diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-09-20 00:39:19 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:38:29 -0500 |
commit | 5b02ee9b9d7037b385cf4f1c3eca81b28ff19690 (patch) | |
tree | f82847834df59854814aeef94b883d2ea239473a /source4/lib/ldb/SConscript | |
parent | 6cd5ede5d5b6375cdcf6229ec612cbb3f81559f5 (diff) | |
download | samba-5b02ee9b9d7037b385cf4f1c3eca81b28ff19690.tar.gz samba-5b02ee9b9d7037b385cf4f1c3eca81b28ff19690.tar.bz2 samba-5b02ee9b9d7037b385cf4f1c3eca81b28ff19690.zip |
r10336: Add sconscript for a couple more subsystems.
(This used to be commit 59d4450453c25f5cce9b67b808ff0c4433c1d194)
Diffstat (limited to 'source4/lib/ldb/SConscript')
-rw-r--r-- | source4/lib/ldb/SConscript | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/source4/lib/ldb/SConscript b/source4/lib/ldb/SConscript index 1698a7cff3..1ef1c5f9e6 100644 --- a/source4/lib/ldb/SConscript +++ b/source4/lib/ldb/SConscript @@ -1,29 +1,37 @@ Import('hostenv') - +Import('talloc') hostenv.StaticLibrary('modules/timestamps.c') hostenv.StaticLibrary('modules/rdn_name.c') hostenv.StaticLibrary('modules/schema.c') hostenv.StaticLibrary('ldb_ildap/ldb_ildap.c') hostenv.StaticLibrary('modules/ldb_map.c') -hostenv.StaticLibrary('ldb_sqlite3/ldb_sqlite3.c') + +conf = Configure(hostenv) +have_sqlite3 = conf.CheckLibWithHeader("sqlite3","sqlite3.h",'c',"sqlite3_open()") +conf.Finish() + +if have_sqlite3: + hostenv.StaticLibrary('ldb_sqlite3/ldb_sqlite3.c') + hostenv.StaticLibrary('ldb_tdb', ['ldb_tdb/ldb_tdb.c','ldb_tdb/ldb_search.c','ldb_tdb/ldb_pack.c', 'ldb_tdb/ldb_index.c','ldb_tdb/ldb_cache.c','ldb_tdb/ldb_tdb_wrap.c']) -hostenv.StaticLibrary('ldb', - ['common/ldb.c','common/ldb_ldif.c','common/ldb_parse.c', +ldb = hostenv.StaticLibrary('ldb', + [talloc,'common/ldb.c','common/ldb_ldif.c','common/ldb_parse.c', 'common/ldb_parse.c','common/ldb_msg.c','common/ldb_utf8.c', 'common/ldb_debug.c','common/ldb_modules.c','common/ldb_match.c', 'common/attrib_handlers.c','common/ldb_dn.c']) +Export('ldb') hostenv.StaticLibrary('samba/ldif_handlers.c') -hostenv.StaticLibrary('ldb_cmdline', 'tools/cmdline.c') +ldb_cmdline = hostenv.StaticLibrary('ldb_cmdline', 'tools/cmdline.c') -hostenv.Program('ldbadd',['tools/ldbadd.c']) -hostenv.Program('ldbdel',['tools/ldbdel.c']) -hostenv.Program('ldbmodify',['tools/ldbmodify.c']) -hostenv.Program('ldbsearch',['tools/ldbsearch.c']) -hostenv.Program('ldbrename',['tools/ldbrename.c']) -hostenv.Program('ldbtest',['tools/ldbtest.c']) -hostenv.Program('oLschema2ldif',['tools/oLschema2ldif.c']) +hostenv.Program('ldbadd',['tools/ldbadd.c',ldb,talloc,ldb_cmdline]) +hostenv.Program('ldbdel',['tools/ldbdel.c',ldb,ldb_cmdline]) +hostenv.Program('ldbmodify',['tools/ldbmodify.c',ldb,ldb_cmdline]) +hostenv.Program('ldbsearch',['tools/ldbsearch.c',ldb,ldb_cmdline]) +hostenv.Program('ldbrename',['tools/ldbrename.c',ldb,ldb_cmdline]) +hostenv.Program('ldbtest',['tools/ldbtest.c',ldb,ldb_cmdline]) +hostenv.Program('oLschema2ldif',['tools/oLschema2ldif.c',ldb]) |