From 550834c9df68377d1308084814870d45d65472df Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 17 Sep 2006 19:17:41 +0000 Subject: r18594: fail the configure step if the required library is not found for tdb, talloc or libreplace (This used to be commit 9f45f970f71ee5585bf3c924b9c77188405fa246) --- source4/lib/replace/libreplace.m4 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source4/lib/replace') diff --git a/source4/lib/replace/libreplace.m4 b/source4/lib/replace/libreplace.m4 index 677c5c535a..de8e4ba4a3 100644 --- a/source4/lib/replace/libreplace.m4 +++ b/source4/lib/replace/libreplace.m4 @@ -5,13 +5,17 @@ echo "LIBREPLACE_LOCATION_CHECKS: START" dnl find the libreplace sources. This is meant to work both for dnl libreplace standalone builds, and builds of packages using libreplace libreplacedir="" -for d in "$srcdir" "$srcdir/lib/replace" "$srcdir/libreplace" "$srcdir/../libreplace" "$srcdir/../replace"; do +libreplacepaths="$srcdir $srcdir/lib/replace $srcdir/libreplace $srcdir/../libreplace $srcdir/../replace" +for d in $libreplacepaths; do if test -f "$d/replace.c"; then libreplacedir="$d" AC_SUBST(libreplacedir) break; fi done +if [ x"$libreplacedir" = "x" ]; then + AC_MSG_ERROR([cannot find libreplace in $libreplacepaths]) +fi LIBREPLACEOBJ="replace.o" AC_SUBST(LIBREPLACEOBJ) -- cgit