From: Björn Jacke Date: Fri, 7 Sep 2012 17:49:25 +0000 (+0200) Subject: waf: make checks for different XFS flavours X-Git-Tag: samba-4.0.0rc1~148 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=58f6247c79de329ea19cdc1f131ed3f49f552fd7;p=thirdparty%2Fsamba.git waf: make checks for different XFS flavours --- diff --git a/source3/wscript b/source3/wscript index a496aaa306e..a858f2d6f7b 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 + #endif + #ifdef HAVE_ASM_TYPES_H + #include + #endif + #include + int i = Q_XGETQUOTA;''', + define='HAVE_XFS_QUOTAS', + msg='for XFS QUOTA in ', + execute=False, + local_include=False) + #