Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
19ae4438
Commit
19ae4438
authored
Sep 05, 2018
by
Ondřej Surý
Browse files
Replace custom HAVE_SYSCONF with proper AC_CHECK_FUNCS call
parent
927b65aa
Changes
4
Hide whitespace changes
Inline
Side-by-side
acconfig.h
View file @
19ae4438
...
...
@@ -20,9 +20,6 @@
/** define if your system has sigwait() */
#undef HAVE_SIGWAIT
/** define if sysconf() is available */
#undef HAVE_SYSCONF
/** define if sysctlbyname() is available */
#undef HAVE_SYSCTLBYNAME
...
...
config.h.in
View file @
19ae4438
...
...
@@ -20,9 +20,6 @@
/** define if your system has sigwait() */
#undef HAVE_SIGWAIT
/** define if sysconf() is available */
#undef HAVE_SYSCONF
/** define if sysctlbyname() is available */
#undef HAVE_SYSCTLBYNAME
...
...
@@ -413,6 +410,9 @@
/* Define to 1 if you have the `strlcpy' function. */
#undef HAVE_STRLCPY
/* Define to 1 if you have the `sysconf' function. */
#undef HAVE_SYSCONF
/* Define to 1 if you have the <sys/capability.h> header file. */
#undef HAVE_SYS_CAPABILITY_H
...
...
configure
View file @
19ae4438
...
...
@@ -15358,11 +15358,16 @@ done
#
# Look for sysconf to allow detection of the number of processors.
#
ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
for ac_func in sysconf
do :
ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
if test "x$ac_cv_func_sysconf" = xyes; then :
$as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
cat >>confdefs.h <<_ACEOF
#define HAVE_SYSCONF 1
_ACEOF
fi
done
...
...
configure.in
View file @
19ae4438
...
...
@@ -761,7 +761,7 @@ AC_CHECK_HEADERS([pthread_np.h], [], [], [#include <pthread.h>])
#
# Look for sysconf to allow detection of the number of processors.
#
AC_CHECK_FUNC
(
sysconf
, AC_DEFINE(HAVE_SYSCONF),
)
AC_CHECK_FUNC
S([
sysconf
]
)
AC_SUBST(ALWAYS_DEFINES)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment