diff options
author | Björn Jacke <bj@sernet.de> | 2019-02-07 04:39:04 +0100 |
---|---|---|
committer | Bjoern Jacke <bjacke@samba.org> | 2019-02-17 13:33:14 +0100 |
commit | e2cc29daf7390b037014ebca67fa4480a1648787 (patch) | |
tree | 8ba52f11fe6172fe56c16c246572c2641baeea63 /source3/wscript | |
parent | 7859ebc55a4a61747902921c7616f77a0c73934e (diff) | |
download | samba-e2cc29daf7390b037014ebca67fa4480a1648787.tar.gz |
waf/quotas: fail configure when quotas were requested but not found
Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
Diffstat (limited to 'source3/wscript')
-rw-r--r-- | source3/wscript | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/wscript b/source3/wscript index d7679c72e23..a7891a829a8 100644 --- a/source3/wscript +++ b/source3/wscript @@ -46,7 +46,7 @@ def options(opt): opt.samba_add_onoff_option('cups', with_name="enable", without_name="disable") opt.samba_add_onoff_option('iprint', with_name="enable", without_name="disable") opt.samba_add_onoff_option('pam') - opt.samba_add_onoff_option('quotas') + opt.samba_add_onoff_option('quotas', default=None) opt.samba_add_onoff_option('sendfile-support', default=None) opt.samba_add_onoff_option('utmp') opt.samba_add_onoff_option('avahi', with_name="enable", without_name="disable") @@ -1396,7 +1396,7 @@ main() { conf.CHECK_FUNCS_IN('getspnam', 'sec') legacy_quota_libs = '' - if Options.options.with_quotas: + if not Options.options.with_quotas == False: # For quotas on Veritas VxFS filesystems conf.CHECK_HEADERS('sys/fs/vx_quota.h') # For sys/quota.h and linux/quota.h @@ -1504,6 +1504,9 @@ main() { legacy_quota_libs = '' conf.env['legacy_quota_libs'] = legacy_quota_libs + if Options.options.with_quotas == True and not conf.CONFIG_SET('WITH_QUOTAS'): + conf.fatal('quota support not found but it was equested !') + conf.CHECK_CODE('(void)unshare(CLONE_FS);', headers='sched.h', define='HAVE_UNSHARE_CLONE_FS', |