From a3b25146805cd4aa893a12b3de9fc19c6b0ea756 Mon Sep 17 00:00:00 2001 From: Noel Power Date: Tue, 26 Jul 2016 11:47:43 +0100 Subject: [PATCH] s3/build: Add support for WSP in configure script. Building wsp cli, tools should be controlled by specifying '--enable-wsp' Note: By default this option is not enabled as the is an experimental feature however it is enabled if configure is called with '--selftest' Signed-off-by: Noel Power Reviewed-by: Andrew Bartlett --- source3/wscript | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source3/wscript b/source3/wscript index af4c7d6328b..93cd68d042f 100644 --- a/source3/wscript +++ b/source3/wscript @@ -100,6 +100,7 @@ def options(opt): # default = None means autodetection opt.samba_add_onoff_option('spotlight', with_name="enable", without_name="disable", default=None) + opt.samba_add_onoff_option('wsp', with_name="enable", without_name="disable", default=False) def configure(conf): default_static_modules = [] @@ -1822,6 +1823,14 @@ int main(void) { and conf.CONFIG_GET('HAVE_UTF8_NORMALISATION') ) + conf.env.with_wsp = False + if conf.CONFIG_GET('ENABLE_SELFTEST'): + Options.options.with_wsp = True + if Options.options.with_wsp: + Logs.info("building with WSP support") + conf.DEFINE('WITH_WSP', '1') + conf.env.with_wsp = True + conf.env.with_spotlight = False if Options.options.with_spotlight is not False: backends = ['noindex'] -- 2.34.1