summaryrefslogtreecommitdiff
path: root/source3/wscript
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2016-01-20 15:08:31 +0100
committerRalph Boehme <slow@samba.org>2019-04-24 18:32:14 +0000
commitfa39a7b2e6e3fd22d234b2c6c53772b08243db9d (patch)
tree04ab9351fad535695488ec0bbb704e3631972087 /source3/wscript
parent2f87661c568e33ab4f74e3434ffbb7ec49f03203 (diff)
downloadsamba-fa39a7b2e6e3fd22d234b2c6c53772b08243db9d.tar.gz
s3/lib: new tevent_glib_glue subsystem
tevent_glib_glue_create() takes glib GMainContext and adds its event sources to a tevent context. tevent will poll the sources and run handlers for pending events as detailed in the glib documentation: https://developer.gnome.org/glib/stable/glib-The-Main-Event-Loop.html Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Noel Power <npower@samba.org>
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript13
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index 4eb0fe878cc..84404f73314 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -1637,6 +1637,16 @@ main() {
else:
conf.fatal('AFS headers not available, but --with-fake-kaserver was specified')
+ if conf.CHECK_CFG(package='glib-2.0',
+ args='--cflags --libs',
+ msg='Checking for glib-2.0',
+ uselib_store="GLIB-2.0"):
+ if (conf.CHECK_HEADERS('glib.h', lib='glib-2.0') and conf.CHECK_LIB('glib-2.0', shlib=True)):
+ conf.DEFINE('HAVE_GLIB', 1)
+
+ if conf.CONFIG_SET('HAVE_GLIB'):
+ conf.DEFINE('WITH_TEVENT_GLIB_GLUE', '1')
+
conf.env['libtracker']=''
tracker_versions = ['2.0', '1.0', '0.16', '0.14']
@@ -1677,6 +1687,9 @@ main() {
if not conf.CONFIG_SET('HAVE_TRACKER'):
conf.fatal('Missing Gnome Tracker development files')
+ if not conf.CONFIG_SET('HAVE_GLIB'):
+ conf.fatal('Missing glib-2.0 development files')
+
Logs.info("building with Spotlight support")
default_static_modules.extend(TO_LIST('rpc_mdssvc_module'))
conf.DEFINE('WITH_SPOTLIGHT', '1')