diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-09-17 19:17:41 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:18:54 -0500 |
commit | 550834c9df68377d1308084814870d45d65472df (patch) | |
tree | 307c43f7848898bbc39f00078b6394daa13a7b2d /source4/lib/tdb | |
parent | 4a854fe809ba617336db3e1d277e00c7ef95c55f (diff) | |
download | samba-550834c9df68377d1308084814870d45d65472df.tar.gz samba-550834c9df68377d1308084814870d45d65472df.tar.bz2 samba-550834c9df68377d1308084814870d45d65472df.zip |
r18594: fail the configure step if the required library is not found for tdb,
talloc or libreplace
(This used to be commit 9f45f970f71ee5585bf3c924b9c77188405fa246)
Diffstat (limited to 'source4/lib/tdb')
-rw-r--r-- | source4/lib/tdb/libtdb.m4 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/lib/tdb/libtdb.m4 b/source4/lib/tdb/libtdb.m4 index f2d604a840..86d42164cb 100644 --- a/source4/lib/tdb/libtdb.m4 +++ b/source4/lib/tdb/libtdb.m4 @@ -1,13 +1,17 @@ dnl find the tdb sources. This is meant to work both for dnl tdb standalone builds, and builds of packages using tdb tdbdir="" -for d in "$srcdir" "$srcdir/lib/tdb" "$srcdir/tdb" "$srcdir/../tdb"; do +tdbpaths="$srcdir $srcdir/lib/tdb $srcdir/tdb $srcdir/../tdb" +for d in $tdbpaths; do if test -f "$d/common/tdb.c"; then tdbdir="$d" AC_SUBST(tdbdir) break; fi done +if [ x"$tdbdir" = "x" ]; then + AC_MSG_ERROR([cannot find tdb source in $tdbpaths]) +fi TDBOBJ="common/tdb.o common/dump.o common/transaction.o common/error.o common/traverse.o" TDBOBJ="$TDBOBJ common/freelist.o common/io.o common/lock.o common/open.o" AC_SUBST(TDBOBJ) |