]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Replace custom HAVE_SIGWAIT define with AC_CHECK_FUNCS
authorOndřej Surý <ondrej@sury.org>
Wed, 5 Sep 2018 11:31:27 +0000 (13:31 +0200)
committerOndřej Surý <ondrej@sury.org>
Fri, 7 Sep 2018 10:17:40 +0000 (12:17 +0200)
acconfig.h
config.h.in
configure
configure.in

index 2ab1a827cdea126173e18fa142e1769ef9d2610f..7b87198d04e6f564b576134cb78e41020dd7e85c 100644 (file)
@@ -17,9 +17,6 @@
  ***/
 @TOP@
 
-/** define if your system has sigwait() */
-#undef HAVE_SIGWAIT
-
 /** define if sysctlbyname() is available */
 #undef HAVE_SYSCTLBYNAME
 
index 3cc00140c023cd01644f93cb87096789cf70e830..eeeea85bc6221c146320767ea495565d5c75da3e 100644 (file)
@@ -17,9 +17,6 @@
  *** it does not get installed.
  ***/
 
-/** define if your system has sigwait() */
-#undef HAVE_SIGWAIT
-
 /** define if sysctlbyname() is available */
 #undef HAVE_SYSCTLBYNAME
 
index 701d58e2261511e0eef0868f7339db852e2b3723..293ecfe419f771650c0699e4cba75b313198684d 100755 (executable)
--- a/configure
+++ b/configure
@@ -15266,54 +15266,10 @@ done
 
 
 #
-# Additional OS-specific issues related to pthreads and sigwait.
+# Additional OS-specific issues related to pthreads.
 #
 case "$host" in
-       #
-       # One more place to look for sigwait.
-       #
        *-freebsd*)
-               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
-$as_echo_n "checking for sigwait in -lc_r... " >&6; }
-if ${ac_cv_lib_c_r_sigwait+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lc_r  $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char sigwait ();
-int
-main ()
-{
-return sigwait ();
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_c_r_sigwait=yes
-else
-  ac_cv_lib_c_r_sigwait=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
-$as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
-if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
-  $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
-
-fi
-
                case $host in
                *-freebsd5.[012]|*-freebsd5.[012].*);;
                *-freebsd5.[3456789]|*-freebsd5.[3456789].*)
index fd135f7436fc28f4351cbeaa9356d1357911b8cb..d4fe8ebc1d8539a8be04758f0cc49d5df7504f20 100644 (file)
@@ -734,14 +734,10 @@ AC_SEARCH_LIBS([sched_yield],[rt])
 AC_CHECK_FUNCS([sched_yield pthread_yield pthread_yield_np])
 
 #
-# Additional OS-specific issues related to pthreads and sigwait.
+# Additional OS-specific issues related to pthreads.
 #
 case "$host" in
-       #
-       # One more place to look for sigwait.
-       #
        *-freebsd*)
-               AC_CHECK_LIB(c_r, sigwait, AC_DEFINE(HAVE_SIGWAIT),)
                case $host in
                *-freebsd5.[[012]]|*-freebsd5.[[012]].*);;
                *-freebsd5.[[3456789]]|*-freebsd5.[[3456789]].*)