summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc G. Fournier1999-09-12 22:49:47 +0000
committerMarc G. Fournier1999-09-12 22:49:47 +0000
commitb705fa390918e951af5d9e5cc165e79ca85e520d (patch)
tree41b9434e911aa3b9492605e3eb880a2e890acdd7
parent2b7777bfa2e11362baed00e0ad84fa0912e53248 (diff)
Make sure both SRCH_INC and SRCH_LIB are checked for existances and added to
the CPPFLAGS/LDFLAGS variables...
-rwxr-xr-xsrc/configure4
-rw-r--r--src/configure.in4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/configure b/src/configure
index 433168bfc56..12f80fbdecd 100755
--- a/src/configure
+++ b/src/configure
@@ -766,7 +766,7 @@ if test "${with_includes+set}" = set; then
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"
@@ -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 1b95fd13439..4db172b82d9 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -163,7 +163,7 @@ AC_ARG_WITH(includes,
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"
@@ -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"