]> granicus.if.org Git - postgresql/commitdiff
Make sure both SRCH_INC and SRCH_LIB are checked for existances and added to
authorMarc G. Fournier <scrappy@hub.org>
Sun, 12 Sep 1999 22:49:47 +0000 (22:49 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Sun, 12 Sep 1999 22:49:47 +0000 (22:49 +0000)
the CPPFLAGS/LDFLAGS variables...

src/configure
src/configure.in

index 433168bfc561a10b4df2a1e7fd8a1e18ce3ada2a..12f80fbdecd4c9da7192fee44f754a62c6e89e34 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"
@@ -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"
index 1b95fd134392ced0788ea3f014e6d618ae0f47b4..4db172b82d95236f230f22300c41c4a39ef7ad7e 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"
@@ -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"