the CPPFLAGS/LDFLAGS variables...
fi
-if test "$INCLUDE_DIRS"; then
+if test "$INCLUDE_DIRS" -o "$SRCH_INC"; then
for dir in $INCLUDE_DIRS $SRCH_INC; do
if test -d "$dir"; then
PGSQL_CPPFLAGS="$PGSQL_CPPFLAGS -I$dir"
fi
-if test "$LIBRARY_DIRS"; then
+if test "$LIBRARY_DIRS" -o "$SRCH_LIB"; then
for dir in $LIBRARY_DIRS $SRCH_LIB; do
if test -d "$dir"; then
PGSQL_LDFLAGS="$PGSQL_LDFLAGS -L$dir"
INCLUDE_DIRS="$withval"
])
-if test "$INCLUDE_DIRS"; then
+if test "$INCLUDE_DIRS" -o "$SRCH_INC"; then
for dir in $INCLUDE_DIRS $SRCH_INC; do
if test -d "$dir"; then
PGSQL_CPPFLAGS="$PGSQL_CPPFLAGS -I$dir"
LIBRARY_DIRS="$withval"
])
-if test "$LIBRARY_DIRS"; then
+if test "$LIBRARY_DIRS" -o "$SRCH_LIB"; then
for dir in $LIBRARY_DIRS $SRCH_LIB; do
if test -d "$dir"; then
PGSQL_LDFLAGS="$PGSQL_LDFLAGS -L$dir"