diff --git a/ncat/config.h.in b/ncat/config.h.in index 6f85afa46..ac1b44957 100644 --- a/ncat/config.h.in +++ b/ncat/config.h.in @@ -159,9 +159,6 @@ /* Define to the version of this package. */ #undef PACKAGE_VERSION -/* Define as the return type of signal handlers (`int' or `void'). */ -#undef RETSIGTYPE - /* Define to the type of arg 1 for `select'. */ #undef SELECT_TYPE_ARG1 diff --git a/ncat/configure b/ncat/configure index 35eb23b0c..238a63daa 100755 --- a/ncat/configure +++ b/ncat/configure @@ -4614,39 +4614,6 @@ printf "%s\n" "#define SELECT_TYPE_ARG5 ($3)" >>confdefs.h rm -rf conftest* -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 -printf %s "checking return type of signal handlers... " >&6; } -if test ${ac_cv_type_signal+y} -then : - printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include - -int -main (void) -{ -return *(signal (0, 0)) (0) == 1; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - ac_cv_type_signal=int -else $as_nop - ac_cv_type_signal=void -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 -printf "%s\n" "$ac_cv_type_signal" >&6; } - -printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h - - if test "x$ac_cv_func_vprintf" = xno diff --git a/ncat/configure.ac b/ncat/configure.ac index 26b70895a..22b049cc6 100644 --- a/ncat/configure.ac +++ b/ncat/configure.ac @@ -4,7 +4,7 @@ AC_PREREQ(2.59) AC_INIT(ncat_main.c) -AC_CONFIG_HEADER(config.h) +AC_CONFIG_HEADERS([config.h]) m4_include([../acinclude.m4]) m4_include([../m4/ax_check_compile_flag.m4]) @@ -49,7 +49,6 @@ AC_C_CONST # Checks for library functions. AC_FUNC_FORK AC_FUNC_SELECT_ARGTYPES -AC_TYPE_SIGNAL AC_FUNC_VPRINTF AC_SEARCH_LIBS(setsockopt, socket) # Ncat does not call gethostbyname directly, but some of the libraries