summaryrefslogtreecommitdiff
path: root/source3/wscript
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-02-16 18:29:33 +0100
committerGünther Deschner <gd@samba.org>2011-02-16 18:39:41 +0100
commita029235b3e152988b6964c1cbdf2b20bbea9b55c (patch)
treef10aa016fa12b5d926007688d5e1cac28e1eac5b /source3/wscript
parent9d78512b2bb85547f955552801d8770f92e0b2f5 (diff)
downloadsamba-a029235b3e152988b6964c1cbdf2b20bbea9b55c.tar.gz
samba-a029235b3e152988b6964c1cbdf2b20bbea9b55c.tar.bz2
samba-a029235b3e152988b6964c1cbdf2b20bbea9b55c.zip
s3-waf: add check for various sysconf() variables.
Guenther
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index dc612724f1..59f0a1d5e4 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -1077,6 +1077,14 @@ ssize_t err = posix_fadvise(0,0,0x80000,POSIX_FADV_WILLNEED);
'HAVE_POSIX_FADVISE',
msg='Checking whether posix_fadvise is available')
+ for v in ['_SC_NGROUPS_MAX', '_SC_NPROC_ONLN', '_SC_NPROCESSORS_ONLN', '_SC_PAGESIZE' ]:
+ conf.CHECK_CODE('''
+ #include <unistd.h>
+ return sysconf(%s) == -1 ? 1 : 0;
+ ''' % v,
+ 'SYSCONF%s' % v,
+ msg='Checking whether sysconf(%s) is available' % v)
+
default_static_modules=TO_LIST('''pdb_smbpasswd pdb_tdbsam pdb_wbc_sam
auth_sam auth_unix auth_winbind auth_wbc auth_server
auth_domain auth_builtin vfs_default