summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2012-09-07 19:49:25 +0200
committerBjörn Jacke <bj@sernet.de>2012-09-07 19:49:25 +0200
commit58f6247c79de329ea19cdc1f131ed3f49f552fd7 (patch)
tree91977cd84369d4ee722ac57125e73187f8d8362d /source3
parenta7f0a07a05a38a371fef67f5611d2089713d4d4b (diff)
downloadsamba-58f6247c79de329ea19cdc1f131ed3f49f552fd7.tar.gz
samba-58f6247c79de329ea19cdc1f131ed3f49f552fd7.tar.bz2
samba-58f6247c79de329ea19cdc1f131ed3f49f552fd7.zip
waf: make checks for different XFS flavours
Diffstat (limited to 'source3')
-rwxr-xr-xsource3/wscript22
1 files changed, 20 insertions, 2 deletions
diff --git a/source3/wscript b/source3/wscript
index a496aaa306..a858f2d6f7 100755
--- a/source3/wscript
+++ b/source3/wscript
@@ -1188,12 +1188,30 @@ main() {
if Options.options.with_quotas:
# For quotas on Veritas VxFS filesystems
conf.CHECK_HEADERS('sys/fs/vx_quota.h')
- # For quotas on Linux XFS filesystems
- conf.CHECK_HEADERS('xfs/xqm.h')
# For sys/quota.h and linux/quota.h
conf.CHECK_HEADERS('sys/quota.h')
# For quotas on BSD systems
conf.CHECK_HEADERS('ufs/ufs/quota.h')
+ # For quotas on Linux XFS filesystems
+ if conf.CHECK_HEADERS('xfs/xqm.h'):
+ conf.DEFINE('HAVE_XFS_QUOTAS', '1')
+ else:
+ # For Irix XFS
+ conf.CHECK_CODE('''
+ #include "confdefs.h"
+ #ifdef HAVE_SYS_TYPES_H
+ #include <sys/types.h>
+ #endif
+ #ifdef HAVE_ASM_TYPES_H
+ #include <asm/types.h>
+ #endif
+ #include <sys/quota.h>
+ int i = Q_XGETQUOTA;''',
+ define='HAVE_XFS_QUOTAS',
+ msg='for XFS QUOTA in <sys/quota.h>',
+ execute=False,
+ local_include=False)
+
#