AC_CHECKING(for PostgreSQL includes)
dnl First Check for a local install
-if test -d $PGROOT ; then
+if test "x$PGROOT" != "x" ; then
IS_LOCAL=1
else
dnl Check common local install paths
fi
fi
dnl If we have a local install path, check for some files
-if test -d $PGROOT && test "x$IS_LOCAL" != "x" ; then
+if test "x$PGROOT" != "x" && test "x$IS_LOCAL" != "x" ; then
if test -e $PGROOT/lib/libpq${libltdl_cv_shlibext} ; then
if test -e $PGROOT/lib/libpq.a ; then
PQ_LIBS="-L$PGROOT/lib -lpq"
fi
fi
-if test "$PGROOT" && test "$PQ_LIBS" && test "$PG_INCLUDE_DIR" ; then
+if test "x$PGROOT" != "x" && test "x$PQ_LIBS" != "x" && test "x$PG_INCLUDE_DIR" != "x"; then
echo Postgresql found in $PGROOT.
fi
-# From configure.in Revision: 1.126
+# From configure.in Revision: 1.127
RADIUSD_VERSION=0.2
echo "checking for PostgreSQL includes" 1>&6
echo "configure:4031: checking for PostgreSQL includes" >&5
-if test -d $PGROOT ; then
+if test "x$PGROOT" != "x" ; then
IS_LOCAL=1
else
if test -d /usr/local/pgsql ; then
ISLOCAL=1
fi
fi
-if test -d $PGROOT && test "x$IS_LOCAL" != "x" ; then
+if test "x$PGROOT" != "x" && test "x$IS_LOCAL" != "x" ; then
if test -e $PGROOT/lib/libpq${libltdl_cv_shlibext} ; then
if test -e $PGROOT/lib/libpq.a ; then
PQ_LIBS="-L$PGROOT/lib -lpq"