]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: Fix build break in d9a842b2
authorSteven Danneman <steven.danneman@isilon.com>
Sat, 21 Feb 2009 07:25:49 +0000 (23:25 -0800)
committerSteven Danneman <steven.danneman@isilon.com>
Sat, 21 Feb 2009 07:25:49 +0000 (23:25 -0800)
* actually check for existance of sysctlbyname()

source3/configure.in

index 7fe824c98920cf6d7f46cc86cfaf4b73017a91fd..bd3d4af40b6290baf776730741a9ee8b84c13805 100644 (file)
@@ -836,25 +836,6 @@ if test x"$samba_cv_msghdr_msg_control" = x"yes"; then
             [If we can use msg_control for passing file descriptors])
 fi
 
-#############################################
-# check for sysctlbyname
-AC_CACHE_CHECK([for sysctlbyname],samba_cv_sysctlbyname, [
-    AC_TRY_COMPILE([
-#include <sys/types.h>
-#include <sys/sysctl.h>
-#include <stdlib.h>
-#include <stddef.h>],
-[
-       int sysctl_max;
-       size_t size = sizeof(sysctl_max);
-       sysctlbyname("test", &sysctl_max, &size, NULL, 0);
-],
-       samba_cv_sysctlbyname=yes,samba_cv_sysctlbyname=no)])
-if test x"$samba_cv_msghdr_msg_control" = x"yes"; then
-    AC_DEFINE(HAVE_SYSCTLBYNAME,1,
-            [If we support sysctlbyname api])
-fi
-
 #############################################
 # check for fd passing struct via msg_acctrights
 AC_CACHE_CHECK([for fd passing via msg_acctrights],
@@ -1063,6 +1044,9 @@ AC_SEARCH_LIBS(backtrace_symbols, [execinfo])
 AC_CHECK_FUNCS(backtrace_symbols)
 AC_CHECK_LIB(exc, trace_back_stack)
 
+# check for sysctlbyname for BSD systems
+AC_CHECK_FUNCS(sysctlbyname)
+
 printf "%s" "checking for GPFS GPL libs... "
 save_LIBS="$LIBS"
 LIBS="$LIBS -lgpfs_gpl"