r6486: Add 'make install' and pkg-config file.
authorJelmer Vernooij <jelmer@samba.org>
Tue, 26 Apr 2005 10:58:54 +0000 (10:58 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:16:19 +0000 (13:16 -0500)
(This used to be commit e3be094fb7b0c0fec50abcb4b242414e84a9a32d)

source4/lib/ldb/Makefile.in
source4/lib/ldb/configure.in
source4/lib/ldb/ldb.pc.in [new file with mode: 0644]

index 88824f031d1aec6946a756b9c06c4da83ea9ac4a..8b5e66fd750168d57e4623ada59a12d3bddb0681 100644 (file)
@@ -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
index 9de28cbe26c40f75677a3f175483a88eb63242f9..74b25577b9f9ee76f2469930cc9133d3ddde25de 100644 (file)
@@ -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 (file)
index 0000000..e524fbe
--- /dev/null
@@ -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@