diff options
author | Ralph Boehme <slow@samba.org> | 2019-08-05 16:25:01 +0200 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2019-10-09 14:35:29 +0000 |
commit | f5510d7db3816c6a18dc333e1ae7f505fca69815 (patch) | |
tree | 4610b30a3ceaec7f7d520d25a9b0f05f3a628e18 /source3/wscript | |
parent | c338bdf5a4aef16cb3048b18c77a0095f3fc3e53 (diff) | |
download | samba-f5510d7db3816c6a18dc333e1ae7f505fca69815.tar.gz |
s3:mdssvc: add Elasticsearch backend
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'source3/wscript')
-rw-r--r-- | source3/wscript | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/source3/wscript b/source3/wscript index e29bf657b5e..a6092b87615 100644 --- a/source3/wscript +++ b/source3/wscript @@ -1789,6 +1789,13 @@ main() { and conf.CONFIG_GET('HAVE_UTF8_NORMALISATION') ) + with_spotlight_es_backend = ( + conf.CONFIG_SET('HAVE_JSON_OBJECT') + and conf.env['BISON'] + and conf.env['FLEX'] + and conf.CONFIG_GET('HAVE_UTF8_NORMALISATION') + ) + conf.env.with_spotlight = False if Options.options.with_spotlight is not False: backends = ['noindex'] @@ -1804,14 +1811,23 @@ main() { Logs.warn('Missing libtracker-sparql development files for Spotlight backend "tracker"') if not conf.CONFIG_SET('HAVE_GLIB'): Logs.warn('Missing glib-2.0 development files for Spotlight backend "tracker"') + if not conf.CONFIG_GET('HAVE_JSON_OBJECT'): + Logs.warn('Missing libjansson development files for Spotlight backend "elasticsearch"') if with_spotlight_tracker_backend: conf.env.spotlight_backend_tracker = True backends.append('tracker') conf.DEFINE('HAVE_SPOTLIGHT_BACKEND_TRACKER', '1') - if Options.options.with_spotlight is True and not conf.env.spotlight_backend_tracker: - conf.fatal("Unmet dependencies for Spotlight backend") + if with_spotlight_es_backend: + conf.env.spotlight_backend_es = True + backends.append('elasticsearch') + conf.DEFINE('HAVE_SPOTLIGHT_BACKEND_ES', '1') + + if (Options.options.with_spotlight is True + and not conf.env.spotlight_backend_tracker + and not conf.env.spotlight_backend_es): + conf.fatal("Unmet dependencies for Spotlight backends") Logs.info("Building with Spotlight support, available backends: %s" % ', '.join(backends)) default_static_modules.extend(TO_LIST('rpc_mdssvc_module')) |