- signals_not_posix=
- AC_EGREP_HEADER(sigset_t, signal.h, , signals_not_posix=1)
- if test -z "$signals_not_posix"; then
- AC_CHECK_FUNC(sigprocmask,
- AC_DEFINE(HAVE_POSIX_SIGNALBLOCKING, 1,
- [Define to 1 if you have the sigset_t type and the sigprocmask function.]))
+ AC_REQUIRE([gl_SIGNAL_H_DEFAULTS])
+ AC_REQUIRE([gl_CHECK_TYPE_SIGSET_T])
+ if test $gl_cv_type_sigset_t = yes; then
+ AC_CHECK_FUNC([sigprocmask], [gl_cv_func_sigprocmask=1])
+ fi
+ if test -z "$gl_cv_func_sigprocmask"; then
+ HAVE_POSIX_SIGNALBLOCKING=0