mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
r6546: Fix ldb standalone build
Add autoconf to tdb (This used to be commit 95fed657f458a856feec2fb256edd642e4179979)
This commit is contained in:
parent
cf476b09b5
commit
dfaa7a3bae
@ -6,6 +6,7 @@ exec_prefix = @exec_prefix@
|
|||||||
includedir = @includedir@
|
includedir = @includedir@
|
||||||
libdir = @libdir@
|
libdir = @libdir@
|
||||||
bindir = @bindir@
|
bindir = @bindir@
|
||||||
|
WITH_GCOV = @WITH_GCOV@
|
||||||
|
|
||||||
ifeq ($(WITH_LDAP),1)
|
ifeq ($(WITH_LDAP),1)
|
||||||
OPENLDAP_PREFIX=/usr
|
OPENLDAP_PREFIX=/usr
|
||||||
@ -22,8 +23,10 @@ CFLAGS1=-Wall -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith \
|
|||||||
-I$(TDBDIR)/include -I$(TALLOCDIR) -DUSE_MMAP=1 $(LDAP_FLAGS)
|
-I$(TDBDIR)/include -I$(TALLOCDIR) -DUSE_MMAP=1 $(LDAP_FLAGS)
|
||||||
|
|
||||||
# enable the following two lines to build with gcov code coverage support
|
# enable the following two lines to build with gcov code coverage support
|
||||||
#GCOV_FLAGS = -ftest-coverage -fprofile-arcs
|
ifeq ($(WITH_GCOV),1)
|
||||||
#GCOV_LIBS = -lgcov
|
GCOV_FLAGS = -ftest-coverage -fprofile-arcs
|
||||||
|
GCOV_LIBS = -lgcov
|
||||||
|
endif
|
||||||
|
|
||||||
CFLAGS = $(CFLAGS1) $(GCOV_FLAGS) @CFLAGS@
|
CFLAGS = $(CFLAGS1) $(GCOV_FLAGS) @CFLAGS@
|
||||||
|
|
||||||
|
@ -1,6 +1,21 @@
|
|||||||
|
AC_DEFUN([AC_CHECK_LIB_EXT], [
|
||||||
|
AC_CHECK_LIB([$1],[$3],[$4],[$5],[$7])
|
||||||
|
ac_cv_lib_ext_$1_$3=$ac_cv_lib_$1_$3
|
||||||
|
])
|
||||||
|
AC_DEFUN([AC_CHECK_FUNC_EXT], [
|
||||||
|
AC_CHECK_FUNC([$1],[$3],[$4])
|
||||||
|
ac_cv_func_ext_$1=$ac_cv_func_$1
|
||||||
|
])
|
||||||
AC_DEFUN([SMB_MODULE_DEFAULT], [echo -n ""])
|
AC_DEFUN([SMB_MODULE_DEFAULT], [echo -n ""])
|
||||||
AC_DEFUN([SMB_LIBRARY_ENABLE], [echo -n ""])
|
AC_DEFUN([SMB_LIBRARY_ENABLE], [echo -n ""])
|
||||||
|
AC_DEFUN([SMB_EXT_LIB_ENABLE], [echo -n ""])
|
||||||
|
AC_DEFUN([SMB_EXT_LIB], [echo -n ""])
|
||||||
AC_INIT(include/ldb.h)
|
AC_INIT(include/ldb.h)
|
||||||
|
WITH_GCOV=0
|
||||||
|
AC_ARG_ENABLE(gcov,
|
||||||
|
[ --enable-gcov Enable GCOV code coverage tests],
|
||||||
|
[ WITH_GCOV=1])
|
||||||
|
AC_SUBST(WITH_GCOV)
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AC_FUNC_MMAP
|
AC_FUNC_MMAP
|
||||||
AC_PATH_PROG(YODL2MAN,yodl2man)
|
AC_PATH_PROG(YODL2MAN,yodl2man)
|
||||||
|
@ -2,14 +2,24 @@
|
|||||||
# Makefile for tdb directory
|
# Makefile for tdb directory
|
||||||
#
|
#
|
||||||
|
|
||||||
CFLAGS = -DTDB_DEBUG -g -DHAVE_MMAP=1 -Iinclude
|
CFLAGS = -DTDB_DEBUG -g -Iinclude
|
||||||
CC = gcc
|
CC = @CC@
|
||||||
|
prefix = @prefix@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
bindir = @bindir@
|
||||||
|
includedir = @includedir@
|
||||||
|
libdir = @libdir@
|
||||||
|
|
||||||
PROGS = bin/tdbtest bin/tdbtool bin/tdbtorture
|
PROGS = bin/tdbtest bin/tdbtool bin/tdbtorture
|
||||||
TDB_OBJ = common/tdb.o common/spinlock.o
|
TDB_OBJ = common/tdb.o common/spinlock.o
|
||||||
|
|
||||||
all: $(PROGS)
|
all: $(PROGS)
|
||||||
|
|
||||||
|
install: all
|
||||||
|
cp $(PROGS) $(bindir)
|
||||||
|
cp include/tdb.h $(includedir)
|
||||||
|
cp tdb.pc $(libdir)/pkgconfig
|
||||||
|
|
||||||
bin/tdbtest: tools/tdbtest.o $(TDB_OBJ)
|
bin/tdbtest: tools/tdbtest.o $(TDB_OBJ)
|
||||||
$(CC) $(CFLAGS) -o bin/tdbtest tools/tdbtest.o $(TDB_OBJ) -lgdbm
|
$(CC) $(CFLAGS) -o bin/tdbtest tools/tdbtest.o $(TDB_OBJ) -lgdbm
|
||||||
|
|
7
source4/lib/tdb/configure.in
Normal file
7
source4/lib/tdb/configure.in
Normal file
@ -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)
|
Loading…
x
Reference in New Issue
Block a user