summaryrefslogtreecommitdiff
path: root/source4/lib/tdb
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/tdb')
-rw-r--r--source4/lib/tdb/Makefile.in (renamed from source4/lib/tdb/Makefile.tdb)14
-rw-r--r--source4/lib/tdb/configure.in7
2 files changed, 19 insertions, 2 deletions
diff --git a/source4/lib/tdb/Makefile.tdb b/source4/lib/tdb/Makefile.in
index ee612bfb63..f9912cd6b1 100644
--- a/source4/lib/tdb/Makefile.tdb
+++ b/source4/lib/tdb/Makefile.in
@@ -2,14 +2,24 @@
# Makefile for tdb directory
#
-CFLAGS = -DTDB_DEBUG -g -DHAVE_MMAP=1 -Iinclude
-CC = gcc
+CFLAGS = -DTDB_DEBUG -g -Iinclude
+CC = @CC@
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+bindir = @bindir@
+includedir = @includedir@
+libdir = @libdir@
PROGS = bin/tdbtest bin/tdbtool bin/tdbtorture
TDB_OBJ = common/tdb.o common/spinlock.o
all: $(PROGS)
+install: all
+ cp $(PROGS) $(bindir)
+ cp include/tdb.h $(includedir)
+ cp tdb.pc $(libdir)/pkgconfig
+
bin/tdbtest: tools/tdbtest.o $(TDB_OBJ)
$(CC) $(CFLAGS) -o bin/tdbtest tools/tdbtest.o $(TDB_OBJ) -lgdbm
diff --git a/source4/lib/tdb/configure.in b/source4/lib/tdb/configure.in
new file mode 100644
index 0000000000..b47b43f0ed
--- /dev/null
+++ b/source4/lib/tdb/configure.in
@@ -0,0 +1,7 @@
+AC_DEFUN([SMB_MODULE_DEFAULT], [echo -n ""])
+AC_DEFUN([SMB_LIBRARY_ENABLE], [echo -n ""])
+AC_INIT(include/tdb.h)
+AC_PROG_CC
+AC_FUNC_MMAP
+sinclude(config.m4)
+AC_OUTPUT(Makefile tdb.pc)