summaryrefslogtreecommitdiff
path: root/source4/lib/popt
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-18 01:31:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:55 -0500
commite84ee4a6fd3bb1cc0b92de89f4568e0865ccac0a (patch)
treea3db2d3c48a3b2ee50772f49c3f5e010404c2a42 /source4/lib/popt
parente7b9aeb8833be0e7d0c16afdf014b19e787bd5ef (diff)
downloadsamba-e84ee4a6fd3bb1cc0b92de89f4568e0865ccac0a.tar.gz
samba-e84ee4a6fd3bb1cc0b92de89f4568e0865ccac0a.tar.bz2
samba-e84ee4a6fd3bb1cc0b92de89f4568e0865ccac0a.zip
r18600: - fix shell syntax in tests for libraries
- add library test for libpopt (This used to be commit 13878b7e7ec65b21df954f83afc0e9ceb73e44a0)
Diffstat (limited to 'source4/lib/popt')
-rw-r--r--source4/lib/popt/libpopt.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/lib/popt/libpopt.m4 b/source4/lib/popt/libpopt.m4
index f0c683ce57..b3e2df519b 100644
--- a/source4/lib/popt/libpopt.m4
+++ b/source4/lib/popt/libpopt.m4
@@ -25,7 +25,8 @@ if test x"$INCLUDED_POPT" != x"no"; then
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"
@@ -33,6 +34,9 @@ if test x"$INCLUDED_POPT" != x"no"; then
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])