diff options
author | Jani Taskinen <jani@php.net> | 2008-07-25 13:46:24 +0000 |
---|---|---|
committer | Jani Taskinen <jani@php.net> | 2008-07-25 13:46:24 +0000 |
commit | 281352fe023e30fea30af60adda3b69acd70bd46 (patch) | |
tree | 51462b055267d044860284ad925674b5f96d6069 /ext/pdo_dblib/config.m4 | |
parent | 1f7e547662939345f74ad8731b923b3927d0b6f2 (diff) | |
download | php-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_dblib/config.m4')
-rw-r--r-- | ext/pdo_dblib/config.m4 | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ext/pdo_dblib/config.m4 b/ext/pdo_dblib/config.m4 index b66dd433d2..5aa8968484 100644 --- a/ext/pdo_dblib/config.m4 +++ b/ext/pdo_dblib/config.m4 @@ -2,14 +2,15 @@ dnl dnl $Id$ dnl -if test "$PHP_PDO" != "no"; then PHP_ARG_WITH(pdo-dblib, for PDO_DBLIB support via FreeTDS, -[ --with-pdo-dblib[=DIR] PDO: DBLIB-DB support. DIR is the FreeTDS home - directory]) - +[ --with-pdo-dblib[=DIR] PDO: DBLIB-DB support. DIR is the FreeTDS home directory]) if test "$PHP_PDO_DBLIB" != "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 + if test "$PHP_PDO_DBLIB" = "yes"; then for i in /usr/local /usr; do @@ -84,5 +85,3 @@ if test "$PHP_PDO_DBLIB" != "no"; then PHP_ADD_EXTENSION_DEP(pdo_dblib, pdo) ]) fi - -fi |