diff options
author | Björn Jacke <bj@sernet.de> | 2012-09-07 19:49:25 +0200 |
---|---|---|
committer | Björn Jacke <bj@sernet.de> | 2012-09-07 19:49:25 +0200 |
commit | 58f6247c79de329ea19cdc1f131ed3f49f552fd7 (patch) | |
tree | 91977cd84369d4ee722ac57125e73187f8d8362d | |
parent | a7f0a07a05a38a371fef67f5611d2089713d4d4b (diff) | |
download | samba-58f6247c79de329ea19cdc1f131ed3f49f552fd7.tar.gz samba-58f6247c79de329ea19cdc1f131ed3f49f552fd7.tar.bz2 samba-58f6247c79de329ea19cdc1f131ed3f49f552fd7.zip |
waf: make checks for different XFS flavours
-rwxr-xr-x | source3/wscript | 22 |
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) + # |