s4-waf: ensure all the ldb.pc.in vars are set
authorAndrew Tridgell <tridge@samba.org>
Sat, 27 Mar 2010 10:29:42 +0000 (21:29 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:11 +0000 (20:27 +1000)
source4/lib/ldb/wscript

index 6ea68976f9efbe3d7b47eaade79676c5ba9a1c2d..58b3e4b93a86ea341eaa38ba42828feea1b67b02 100644 (file)
@@ -99,6 +99,14 @@ def build(bld):
                      enabled=s4_build,
                      subsystem='LIBLDB')
 
+    # we're not currently linking against the ldap libs, but ldb.pc.in
+    # has @LDAP_LIBS@
+    bld.env.LDAP_LIBS = ''
+
+    if not 'PACKAGE_VERSION' in bld.env:
+        bld.env.PACKAGE_VERSION = VERSION
+        bld.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig'
+
     ldb_deps = 'tevent LIBLDB'
     if s4_build:
         ldb_deps += ' LDBSAMBA POPT_CREDENTIALS POPT_SAMBA LIBCMDLINE_CREDENTIALS gensec'
@@ -126,3 +134,4 @@ def build(bld):
         bld.SAMBA_PYTHON('pyldb', 'pyldb.c',
                          deps='ldb',
                          realname='ldb.so')
+