Replace custom HAVE_SYSCTLBYNAME define with AC_CHECK_FUNCS call

This commit is contained in:
Ondřej Surý
2018-09-05 13:33:59 +02:00
parent 4a5ecad038
commit 78bb5761a0
4 changed files with 17 additions and 13 deletions

18
configure vendored
View File

@@ -13573,12 +13573,6 @@ if test $ac_cv_c_volatile = no; then
$as_echo "#define volatile /**/" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
if test "x$ac_cv_func_sysctlbyname" = xyes; then :
$as_echo "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
fi
@@ -13624,6 +13618,18 @@ $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
fi
for ac_func in sysctlbyname
do :
ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
if test "x$ac_cv_func_sysctlbyname" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_SYSCTLBYNAME 1
_ACEOF
fi
done
#
# Check for the existence of mmap to enable the fast format zones
#