]> granicus.if.org Git - php/commitdiff
MFH: - Fixed bug #35911 (HAVE_PG_CONFIG_H set incorrectly)
authorfoobar <sniper@php.net>
Thu, 5 Jan 2006 21:53:30 +0000 (21:53 +0000)
committerfoobar <sniper@php.net>
Thu, 5 Jan 2006 21:53:30 +0000 (21:53 +0000)
ext/pgsql/config.m4

index 95540d4eb4c3cb3f8b45741c471c2759181cc3f8..d6e91943160ac6e0f19b8b0e8d09c9c280d347b8 100644 (file)
@@ -24,7 +24,9 @@ if test "$PHP_PGSQL" != "no"; then
     AC_MSG_RESULT([$PG_CONFIG])
     PGSQL_INCLUDE=`$PG_CONFIG --includedir`
     PGSQL_LIBDIR=`$PG_CONFIG --libdir`
-    AC_DEFINE(HAVE_PG_CONFIG_H,1,[Whether to have pg_config.h])
+    if test -r "$PGSQL_INCLUDE/pg_config.h"; then
+      AC_DEFINE(HAVE_PG_CONFIG_H,1,[Whether to have pg_config.h])
+    fi
   else
     AC_MSG_RESULT(not found)
     if test "$PHP_PGSQL" = "yes"; then