summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/ldb/Makefile.in11
-rw-r--r--source4/lib/ldb/configure.in2
-rw-r--r--source4/lib/ldb/ldb.pc.in10
3 files changed, 22 insertions, 1 deletions
diff --git a/source4/lib/ldb/Makefile.in b/source4/lib/ldb/Makefile.in
index 88824f031d..8b5e66fd75 100644
--- a/source4/lib/ldb/Makefile.in
+++ b/source4/lib/ldb/Makefile.in
@@ -1,6 +1,11 @@
CC = @CC@
GCOV = @GCOV@
YODL2MAN = @YODL2MAN@
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+includedir = @includedir@
+libdir = @libdir@
+bindir = @bindir@
ifeq ($(WITH_LDAP),1)
OPENLDAP_PREFIX=/usr
@@ -107,6 +112,12 @@ test-schema:
test: test-tdb test-ldap test-schema
+install: all
+ cp include/ldb.h $(includedir)
+ cp $(LDB_LIB) $(libdir)
+ cp $(BINS) $(bindir)
+ cp ldb.pc $(libdir)/pkgconfig
+
gcov:
$(GCOV) -po ldb_ldap ldb_ldap/*.c 2| tee ldb_ldap.report.gcov
$(GCOV) -po ldb_tdb ldb_tdb/*.c 2| tee ldb_tdb.report.gcov
diff --git a/source4/lib/ldb/configure.in b/source4/lib/ldb/configure.in
index 9de28cbe26..74b25577b9 100644
--- a/source4/lib/ldb/configure.in
+++ b/source4/lib/ldb/configure.in
@@ -7,4 +7,4 @@ AC_PATH_PROG(YODL2MAN,yodl2man)
AC_PATH_PROG(GCOV,gcov)
sinclude(ldap.m4)
sinclude(config.m4)
-AC_OUTPUT(Makefile)
+AC_OUTPUT(Makefile ldb.pc)
diff --git a/source4/lib/ldb/ldb.pc.in b/source4/lib/ldb/ldb.pc.in
new file mode 100644
index 0000000000..e524fbed36
--- /dev/null
+++ b/source4/lib/ldb/ldb.pc.in
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: ldb
+Description: An LDAP-like embedded database
+Version: 4.0
+Libs: @LIBS@ -L${libdir} -lldb
+Cflags: -I${includedir} @CFLAGS@