]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
when checking include directories, make sure you check for existence of
authorMarc G. Fournier <scrappy@hub.org>
Sun, 12 Sep 1999 22:47:14 +0000 (22:47 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Sun, 12 Sep 1999 22:47:14 +0000 (22:47 +0000)
SRCH_INC also...makes template file kinda useless without :)

src/configure
src/configure.in

index 433168bfc561a10b4df2a1e7fd8a1e18ce3ada2a..23489e5c69c9f3d2e0bfbeb394e942e8a947f49a 100755 (executable)
@@ -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"
index 1b95fd134392ced0788ea3f014e6d618ae0f47b4..cd691e051959bc0c2e41615449881b9672ce94c0 100644 (file)
@@ -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"