summaryrefslogtreecommitdiff
path: root/source4/lib/talloc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-17 19:17:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:54 -0500
commit550834c9df68377d1308084814870d45d65472df (patch)
tree307c43f7848898bbc39f00078b6394daa13a7b2d /source4/lib/talloc
parent4a854fe809ba617336db3e1d277e00c7ef95c55f (diff)
downloadsamba-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/talloc')
-rw-r--r--source4/lib/talloc/libtalloc.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/lib/talloc/libtalloc.m4 b/source4/lib/talloc/libtalloc.m4
index 14e92b212c..06d5a15ff4 100644
--- a/source4/lib/talloc/libtalloc.m4
+++ b/source4/lib/talloc/libtalloc.m4
@@ -1,13 +1,17 @@
dnl find the talloc sources. This is meant to work both for
dnl talloc standalone builds, and builds of packages using talloc
tallocdir=""
-for d in "$srcdir" "$srcdir/lib/talloc" "$srcdir/talloc" "$srcdir/../talloc"; do
+tallocpaths="$srcdir $srcdir/lib/talloc $srcdir/talloc $srcdir/../talloc"
+for d in $tallocpaths; do
if test -f "$d/talloc.c"; then
tallocdir="$d"
AC_SUBST(tallocdir)
break;
fi
done
+if [ x"$tallocdir" = "x" ]; then
+ AC_MSG_ERROR([cannot find talloc source in $tallocpaths])
+fi
TALLOCOBJ="talloc.o"
AC_SUBST(TALLOCOBJ)