if test "$PHP_PDO" != "no"; then
+ dnl Make sure $PHP_PDO is 'yes' when it's not 'no' :)
+ PHP_PDO=yes
+
PHP_PDO_PEAR_CHECK
if test "$ext_shared" = "yes" ; then
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
PHP_ADD_EXTENSION_DEP(pdo_dblib, pdo)
])
fi
-
-fi
dnl $Id$
dnl
-if test "$PHP_PDO" != "no"; then
-
PHP_ARG_WITH(pdo-firebird,for Firebird support for PDO,
[ --with-pdo-firebird[=DIR] PDO: Firebird support. DIR is the Firebird base
install directory [/opt/firebird]])
if test "$PHP_PDO_FIREBIRD" != "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_FIREBIRD" = "yes"; then
FIREBIRD_INCDIR=/opt/firebird/include
FIREBIRD_LIBDIR=/opt/firebird/lib
PHP_SUBST(PDO_FIREBIRD_SHARED_LIBADD)
PHP_ADD_EXTENSION_DEP(pdo_firebird, pdo)
fi
-
-fi
-dnl
dnl $Id$
-dnl
++ dnl config.m4 for extension pdo_mysql
++ dnl vim: se ts=2 sw=2 et:
PHP_ARG_WITH(pdo-mysql, for MySQL support for PDO,
[ --with-pdo-mysql[=DIR] PDO: MySQL support. DIR is the MySQL base directoy
fi
if test "$PHP_PDO_MYSQL" != "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_MYSQLND_ENABLED=yes
AC_DEFUN([PDO_MYSQL_LIB_CHK], [
PHP_SUBST_OLD(PDO_MYSQL_MODULE_TYPE)
fi
-
-dnl vim: se ts=2 sw=2 et:
dnl $Id$
-
-if test "$PHP_PDO" != "no"; then
+dnl config.m4 for extension pdo_oci
+dnl vim:et:sw=2:ts=2:
AC_DEFUN([AC_PDO_OCI_VERSION],[
AC_MSG_CHECKING([Oracle version])
--with-pdo-oci=instantclient,/usr,10.2.0.3])
if test "$PHP_PDO_OCI" != "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
+
AC_MSG_CHECKING([Oracle Install-Dir])
if test "$PHP_PDO_OCI" = "yes" || test -z "$PHP_PDO_OCI"; then
PDO_OCI_DIR=$ORACLE_HOME
AC_DEFINE_UNQUOTED(PHP_PDO_OCI_CLIENT_VERSION, "$PDO_OCI_VERSION", [ ])
fi
-
-fi
dnl config.m4 for extension pdo_odbc
dnl vim:et:sw=2:ts=2:
-if test "$PHP_PDO" != "no"; then
-
define([PDO_ODBC_HELP_TEXT],[[
include and lib dirs are looked for under 'dir'.
if test "$PHP_PDO_ODBC" != "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
+
ifdef([PHP_CHECK_PDO_INCLUDES],
[
PHP_CHECK_PDO_INCLUDES
PHP_ADD_EXTENSION_DEP(pdo_odbc, pdo)
])
fi
-
-fi
-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)
PHP_ADD_EXTENSION_DEP(pdo_pgsql, pdo)
])
fi
-
-fi
dnl config.m4 for extension pdo_sqlite
dnl vim:et:sw=2:ts=2:
-if test "$PHP_PDO" != "no"; then
-
PHP_ARG_WITH(pdo-sqlite, for sqlite 3 support for PDO,
[ --without-pdo-sqlite[=DIR]
PDO: sqlite 3 support. DIR is the sqlite base
- install directory [BUNDLED]], yes)
+ install directory [BUNDLED]], $PHP_PDO)
if test "$PHP_PDO_SQLITE" != "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
+
ifdef([PHP_CHECK_PDO_INCLUDES],
[
PHP_CHECK_PDO_INCLUDES
PHP_ADD_EXTENSION_DEP(pdo_sqlite, pdo)
])
fi
-
-fi