diff options
author | Jeremy Allison <jra@samba.org> | 2003-12-09 22:32:55 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-12-09 22:32:55 +0000 |
commit | c5914a4b552ba0d6bf09305ae539d469847804a4 (patch) | |
tree | 82c03843cf265ef014b573f3cc20e1d5420b2c6a /source3/configure.in | |
parent | 272be24ffd94f81c273775e154f01d93028d4b28 (diff) | |
download | samba-c5914a4b552ba0d6bf09305ae539d469847804a4.tar.gz samba-c5914a4b552ba0d6bf09305ae539d469847804a4.tar.bz2 samba-c5914a4b552ba0d6bf09305ae539d469847804a4.zip |
IRIX spinlock patch from James Peach <jpeach@sgi.com>.
Jeremy.
(This used to be commit 04abff372b8939bd33c6dceb48baac9fdb7e27b6)
Diffstat (limited to 'source3/configure.in')
-rw-r--r-- | source3/configure.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/configure.in b/source3/configure.in index b5b5a7609f..a5db46bc18 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -2016,6 +2016,14 @@ if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then AC_DEFINE(SYSCONF_SC_NGROUPS_MAX,1,[Whether sysconf(_SC_NGROUPS_MAX) is available]) fi +AC_CACHE_CHECK([for sysconf(_SC_NPROC_ONLN)],samba_cv_SYSCONF_SC_NPROC_ONLN,[ +AC_TRY_RUN([#include <unistd.h> +main() { exit(sysconf(_SC_NPROC_ONLN) == -1 ? 1 : 0); }], +samba_cv_SYSCONF_SC_NPROC_ONLN=yes,samba_cv_SYSCONF_SC_NPROC_ONLN=no,samba_cv_SYSCONF_SC_NPROC_ONLN=cross)]) +if test x"$samba_cv_SYSCONF_SC_NPROC_ONLN" = x"yes"; then + AC_DEFINE(SYSCONF_SC_NPROC_ONLN,1,[Whether sysconf(_SC_NPROC_ONLN) is available]) +fi + AC_CACHE_CHECK([for root],samba_cv_HAVE_ROOT,[ AC_TRY_RUN([main() { exit(getuid() != 0); }], samba_cv_HAVE_ROOT=yes,samba_cv_HAVE_ROOT=no,samba_cv_HAVE_ROOT=cross)]) |