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 433168bfc56..23489e5c69c 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"
diff --git a/src/configure.in b/src/configure.in
index 1b95fd13439..cd691e05195 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"