From c168e5ce507951c0e54e5a612b70fb82b2df3e63 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 12 Apr 2010 22:56:44 +1000 Subject: s4-ldb: enable waf build of ldb without ldap backend this is useful for cross-compilation testing, where getting all the ldap deps installed can be hard --- source4/lib/ldb/wscript | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source4') diff --git a/source4/lib/ldb/wscript b/source4/lib/ldb/wscript index 911eb77fb2..d796bc0011 100644 --- a/source4/lib/ldb/wscript +++ b/source4/lib/ldb/wscript @@ -44,7 +44,8 @@ def configure(conf): implied_deps='replace talloc tdb tevent'): conf.define('USING_SYSTEM_LDB', 1) # we need this for the ldap backend - conf.CHECK_FUNCS_IN('ber_flush ldap_open', 'lber ldap', headers='lber.h ldap.h', mandatory=True) + if conf.CHECK_FUNCS_IN('ber_flush ldap_open', 'lber ldap', headers='lber.h ldap.h'): + conf.env.ENABLE_LDAP_BACKEND = True conf.DEFINE('HAVE_CONFIG_H', 1, add_to_cflags=True) @@ -133,7 +134,7 @@ def build(bld): bld.SAMBA_MODULE('ldb_ldap', 'ldb_ldap/ldb_ldap.c', init_function='LDB_BACKEND(ldapi),LDB_BACKEND(ldaps),LDB_BACKEND(ldap)', deps='talloc lber ldap', - enabled=not s4_build, + enabled=bld.env.ENABLE_LDAP_BACKEND, subsystem='LIBLDB') # we're not currently linking against the ldap libs, but ldb.pc.in -- cgit