dnl find the popt sources. This is meant to work both for
dnl popt standalone builds, and builds of packages using popt
poptdir=""
- for d in "$srcdir" "$srcdir/lib/popt" "$srcdir/popt" "$srcdir/../popt"; do
+ poptpaths="$srcdir $srcdir/lib/popt $srcdir/popt $srcdir/../popt"
+ for d in $poptpaths; do
if test -f "$d/popt.c"; then
poptdir="$d"
POPT_CFLAGS="-I$d"
break
fi
done
+ if test x"$poptdir" = "x"; then
+ AC_MSG_ERROR([cannot find popt source in $poptpaths])
+ fi
POPTOBJ="popt.o findme.o poptconfig.o popthelp.o poptparse.o"
AC_SUBST(POPTOBJ)
AC_CHECK_HEADERS([float.h alloca.h])
break;
fi
done
-if [ x"$libreplacedir" = "x" ]; then
+if test x"$libreplacedir" = "x"; then
AC_MSG_ERROR([cannot find libreplace in $libreplacepaths])
fi
LIBREPLACEOBJ="replace.o"
break;
fi
done
-if [ x"$tdbdir" = "x" ]; then
+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"