- dnl Due to autoconf conventions, we can't tell if HAVE_SIGACTION
- dnl means we have the type or means we have the function. We assume
- dnl that all implementations either have both or neither.
- AC_REPLACE_FUNCS([sigaction])
- if test $ac_cv_func_sigaction = no ; then
+ AC_REQUIRE([gl_SIGNAL_H_DEFAULTS])
+ AC_CHECK_FUNCS_ONCE([sigaction])
+ if test $ac_cv_func_sigaction = yes; then
+ AC_CHECK_MEMBERS([struct sigaction.sa_sigaction], , ,
+ [[#include <signal.h>]])
+ if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
+ HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
+ fi
+ else