diff options
-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 7fe824c989..bd3d4af40b 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" |