summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/configure2
-rw-r--r--src/configure.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/configure b/src/configure
index 23489e5c69c..12f80fbdecd 100755
--- a/src/configure
+++ b/src/configure
@@ -804,7 +804,7 @@ if test "${with_libraries+set}" = set; then
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"
diff --git a/src/configure.in b/src/configure.in
index cd691e05195..4db172b82d9 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -195,7 +195,7 @@ AC_ARG_WITH(libraries,
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"