summaryrefslogtreecommitdiff
path: root/ext/pdo_pgsql
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2008-07-25 13:46:24 +0000
committerJani Taskinen <jani@php.net>2008-07-25 13:46:24 +0000
commit281352fe023e30fea30af60adda3b69acd70bd46 (patch)
tree51462b055267d044860284ad925674b5f96d6069 /ext/pdo_pgsql
parent1f7e547662939345f74ad8731b923b3927d0b6f2 (diff)
downloadphp-git-281352fe023e30fea30af60adda3b69acd70bd46.tar.gz
MFH: Fix PDO configure dependancy: If --disable-pdo is used, disable all
MFH: enabled-by-default drivers. Also error out if you try to configure MFH: a driver as static but pdo is disabled.
Diffstat (limited to 'ext/pdo_pgsql')
-rw-r--r--ext/pdo_pgsql/config.m413
1 files changed, 7 insertions, 6 deletions
diff --git a/ext/pdo_pgsql/config.m4 b/ext/pdo_pgsql/config.m4
index 3abaf1306a..8d480a32b8 100644
--- a/ext/pdo_pgsql/config.m4
+++ b/ext/pdo_pgsql/config.m4
@@ -1,14 +1,17 @@
-dnl
dnl $Id$
-dnl
-
-if test "$PHP_PDO" != "no"; then
+dnl config.m4 for extension pdo_pgsql
+dnl vim:et:sw=2:ts=2:
PHP_ARG_WITH(pdo-pgsql,for PostgreSQL support for PDO,
[ --with-pdo-pgsql[=DIR] PDO: PostgreSQL support. DIR is the PostgreSQL base
install directory or the path to pg_config])
if test "$PHP_PDO_PGSQL" != "no"; then
+
+ if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
+ AC_MSG_ERROR([PDO is not enabled! Add --enable-pdo to your configure line.])
+ fi
+
PHP_EXPAND_PATH($PGSQL_INCLUDE, PGSQL_INCLUDE)
AC_MSG_CHECKING(for pg_config)
@@ -128,5 +131,3 @@ if test "$PHP_PDO_PGSQL" != "no"; then
PHP_ADD_EXTENSION_DEP(pdo_pgsql, pdo)
])
fi
-
-fi