diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-02-10 12:04:36 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-02-10 06:51:06 +0100 |
commit | 7fac3258f7ec52e44998276e848a27c03d7fe0b6 (patch) | |
tree | b688b55f219c61e6c2b60542455e3e693357dd07 /source4/lib | |
parent | 0122a4f41744c36aa97d73c060cfb952d2fdbc2d (diff) | |
download | samba-7fac3258f7ec52e44998276e848a27c03d7fe0b6.tar.gz samba-7fac3258f7ec52e44998276e848a27c03d7fe0b6.tar.bz2 samba-7fac3258f7ec52e44998276e848a27c03d7fe0b6.zip |
ldb: added a include/ldb_version.h
this fixes a problem with the installed ldb_modules.h header, which
depended on LDB_VERSION being defined.
Thanks to Simo for noticing this!
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/ldb/include/ldb.h | 1 | ||||
-rw-r--r-- | source4/lib/ldb/wscript | 11 |
2 files changed, 10 insertions, 2 deletions
diff --git a/source4/lib/ldb/include/ldb.h b/source4/lib/ldb/include/ldb.h index 4b1a5fb708..ff0ebe7c09 100644 --- a/source4/lib/ldb/include/ldb.h +++ b/source4/lib/ldb/include/ldb.h @@ -49,6 +49,7 @@ #include <stdbool.h> #include <talloc.h> #include <tevent.h> +#include "ldb_version.h" #include "ldb_errors.h" /* diff --git a/source4/lib/ldb/wscript b/source4/lib/ldb/wscript index 81d2adcfd3..24d541b78c 100644 --- a/source4/lib/ldb/wscript +++ b/source4/lib/ldb/wscript @@ -56,8 +56,6 @@ def configure(conf): if conf.CHECK_FUNCS_IN('ber_flush ldap_open ldap_initialize', 'lber ldap', headers='lber.h ldap.h'): conf.env.ENABLE_LDAP_BACKEND = True - conf.DEFINE('LDB_VERSION', VERSION, quote=True) - conf.DEFINE('HAVE_CONFIG_H', 1, add_to_cflags=True) # we don't want any libraries or modules to rely on runtime @@ -135,6 +133,15 @@ def build(bld): abi_directory = 'ABI', abi_match = abi_match) + # generate a include/ldb_version.h + t = bld.SAMBA_GENERATOR('ldb_version.h', + rule='echo "#define LDB_VERSION \\"${LDB_VERSION}\\"" > ${TGT}', + target='include/ldb_version.h', + public_headers='include/ldb_version.h') + t.env.LDB_VERSION = VERSION + bld.add_manual_dependency(bld.path.find_or_declare('include/ldb_version.h'), VERSION) + + bld.SAMBA_PYTHON('pyldb', 'pyldb.c', deps='ldb pyldb-util', |