Searching for sighander_t is unlikely to succeed anywhere. The attempt to #include <sys/signal.h> is also not working, and fixing it shows that doing an AC_DEFINE in the body of an AC_CHECK_TYPE like that is also risky: both fixed.
(The purpose of this check is opaque to me: neither libcody nor GCC ever includes <sys/signal.h>, and though <signal.h> is widely included, it is not directly included by any of the headers checking this macro... for now I've fixed things to conform to the comment, but perhaps we should be checking the non-deprecated <signal.h> instead, and #including it in mapper-client.h?) Cc: Nathan Sidwell <nat...@acm.org> gcc/ * configure.ac: Fix sighander_t typo and move AC_DEFINE out of AC_CHECK_TYPE. * configure: Regenerated. --- gcc/configure | 14 +++++++++----- gcc/configure.ac | 8 +++++--- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/gcc/configure b/gcc/configure index 41641c64395..fa07a1b67b0 100755 --- a/gcc/configure +++ b/gcc/configure @@ -10435,16 +10435,20 @@ _ACEOF fi -ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h +ac_fn_cxx_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "#include <sys/signal.h> " -if test "x$ac_cv_type_sighander_t" = xyes; then : +if test "x$ac_cv_type_sighandler_t" = xyes; then : + +fi + + +if test x$ac_cv_type_sighandler_t; then $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h fi - ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" if test "x$ac_cv_header_sys_mman_h" = xyes; then : gcc_header_sys_mman_h=yes @@ -19392,7 +19396,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 19405 "configure" +#line 19399 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -19498,7 +19502,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 19511 "configure" +#line 19505 "configure" #include "confdefs.h" #if HAVE_DLFCN_H diff --git a/gcc/configure.ac b/gcc/configure.ac index ff4d3dc078b..66eef665431 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -1491,10 +1491,12 @@ fi AC_CHECK_TYPE(ssize_t, int) AC_CHECK_TYPE(caddr_t, char *) -AC_CHECK_TYPE(sighander_t, +AC_CHECK_TYPE(sighandler_t, [], [], [[#include <sys/signal.h>]]) + +if test x$ac_cv_type_sighandler_t; then AC_DEFINE(HAVE_SIGHANDLER_T, 1, - [Define if <sys/signal.h> defines sighandler_t]), - ,signal.h) + [Define if <sys/signal.h> defines sighandler_t]) +fi GCC_AC_FUNC_MMAP_BLACKLIST -- 2.30.0.252.gc27e85e57d