diff options
author | Steven Danneman <steven.danneman@isilon.com> | 2009-02-20 23:25:49 -0800 |
---|---|---|
committer | Steven Danneman <steven.danneman@isilon.com> | 2009-02-20 23:25:49 -0800 |
commit | c207fe42a796cf33f1901caeb2c4c1e493b94471 (patch) | |
tree | 92df5ee190cb86476a64df9f96a2148e391b848d /source3/configure.in | |
parent | fc02c3b0890a9549989bb0aba16588026c6d6b43 (diff) | |
download | samba-c207fe42a796cf33f1901caeb2c4c1e493b94471.tar.gz samba-c207fe42a796cf33f1901caeb2c4c1e493b94471.tar.xz samba-c207fe42a796cf33f1901caeb2c4c1e493b94471.zip |
s3: Fix build break in d9a842b2
* actually check for existance of sysctlbyname()
Diffstat (limited to 'source3/configure.in')
-rw-r--r-- | source3/configure.in | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/source3/configure.in b/source3/configure.in index 7fe824c9892..bd3d4af40b6 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -837,25 +837,6 @@ if test x"$samba_cv_msghdr_msg_control" = x"yes"; then 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], samba_cv_msghdr_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" |