summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/wscript
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-06-20 11:49:08 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-06-20 11:49:08 +0200
commit9bcd0daba2cdd2acd6fc0e3de44f5138f2f3303f (patch)
treef24d7e9c4b4fcdcb768040129a878f96a62f2bc3 /source4/lib/ldb/wscript
parent44c01a5eb45a0cd5ca3de8be5c4680de75418dce (diff)
downloadsamba-9bcd0daba2cdd2acd6fc0e3de44f5138f2f3303f.tar.gz
samba-9bcd0daba2cdd2acd6fc0e3de44f5138f2f3303f.tar.bz2
samba-9bcd0daba2cdd2acd6fc0e3de44f5138f2f3303f.zip
ldb: Change LDBSAMBA back to subsystem, update comments, use different
ABI file based on whether ldb_ildap is included.
Diffstat (limited to 'source4/lib/ldb/wscript')
-rw-r--r--source4/lib/ldb/wscript9
1 files changed, 7 insertions, 2 deletions
diff --git a/source4/lib/ldb/wscript b/source4/lib/ldb/wscript
index 6f6c9a1f9e..df2245f674 100644
--- a/source4/lib/ldb/wscript
+++ b/source4/lib/ldb/wscript
@@ -74,13 +74,15 @@ def build(bld):
ldb_attributes.c attrib_handlers.c ldb_controls.c qsort.c''')
if s4_build:
+ builtin_ildap = not bld.CONFIG_SET('USING_SYSTEM_LDB')
# this is only in the s4 build
bld.SAMBA_MODULE('ldb_ildap', 'ldb_ildap/ldb_ildap.c',
init_function='LDB_BACKEND(ldapi),LDB_BACKEND(ldaps),LDB_BACKEND(ldap)',
deps='talloc LIBCLI_LDAP CREDENTIALS',
- internal_module=not bld.CONFIG_SET('USING_SYSTEM_LDB'),
+ internal_module=builtin_ildap,
subsystem='ldb')
else:
+ builtin_ildap = False
# this is not included in the s4 build
bld.SAMBA_MODULE('ldb_ldap', 'ldb_ldap/ldb_ldap.c',
init_function='LDB_BACKEND(ldapi),LDB_BACKEND(ldaps),LDB_BACKEND(ldap)',
@@ -96,7 +98,10 @@ def build(bld):
bld.env.PACKAGE_VERSION = VERSION
bld.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig'
- abi_file = 'ABI/ldb-%s.sigs' % VERSION
+ if builtin_ildap:
+ abi_file = 'ABI/ldb-ildap-%s.sigs' % VERSION
+ else:
+ abi_file = 'ABI/ldb-%s.sigs' % VERSION
bld.SAMBA_SUBSYSTEM('pyldb_util', deps='ldb',
source='pyldb_util.c', needs_python=True)