summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql/config.m4
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2005-07-27 02:39:46 +0000
committerWez Furlong <wez@php.net>2005-07-27 02:39:46 +0000
commit163c92510a84a4ffecf7b2fd8fba2dc661d44816 (patch)
treea9ea9b3eb637cf397bdb24c5a10a14b6d0c62fd0 /ext/pdo_mysql/config.m4
parent2d920f684890e00597c4aac300b67539367e58e6 (diff)
downloadphp-git-163c92510a84a4ffecf7b2fd8fba2dc661d44816.tar.gz
Prep for PECL release
Diffstat (limited to 'ext/pdo_mysql/config.m4')
-rwxr-xr-xext/pdo_mysql/config.m422
1 files changed, 20 insertions, 2 deletions
diff --git a/ext/pdo_mysql/config.m4 b/ext/pdo_mysql/config.m4
index cbfe32f016..70b216a2a1 100755
--- a/ext/pdo_mysql/config.m4
+++ b/ext/pdo_mysql/config.m4
@@ -61,10 +61,28 @@ Note that the MySQL client library is not bundled anymore!])
AC_CHECK_FUNCS([mysql_commit mysql_stmt_prepare mysql_next_result mysql_sqlstate])
LDFLAGS=$_SAVE_LDFLAGS
- PHP_CHECK_PDO_INCLUDES
+ ifdef([PHP_CHECK_PDO_INCLUDES],
+ [
+ PHP_CHECK_PDO_INCLUDES
+ ],[
+ AC_MSG_CHECKING([for PDO includes])
+ if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
+ pdo_inc_path=$abs_srcdir/ext
+ elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
+ pdo_inc_path=$abs_srcdir/ext
+ elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
+ pdo_inc_path=$prefix/include/php/ext
+ else
+ AC_MSG_ERROR([Cannot find php_pdo_driver.h.])
+ fi
+ AC_MSG_RESULT($pdo_inc_path)
+ ])
PHP_NEW_EXTENSION(pdo_mysql, pdo_mysql.c mysql_driver.c mysql_statement.c, $ext_shared,,-I$pdo_inc_path)
- PHP_ADD_EXTENSION_DEP(pdo_mysql, pdo)
+ ifdef([PHP_ADD_EXTENDION_DEP],
+ [
+ PHP_ADD_EXTENSION_DEP(pdo_mysql, pdo)
+ ])
PDO_MYSQL_MODULE_TYPE=external
PDO_MYSQL_INCLUDE=-I$PDO_MYSQL_INC_DIR