summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime BESSON <maxime.besson@smile.fr>2015-02-06 12:06:29 +0100
committerMaxime BESSON <maxime.besson@smile.fr>2015-02-06 12:06:29 +0100
commitf38497155226d2ee8d2d7fc32fc26b58b9c0057c (patch)
treef29b825988a663a8fd05c853c8b4a94aeb0b2044
parentff2cccbfdde4c92bdd285b957237e5eac5099689 (diff)
downloadphp-git-f38497155226d2ee8d2d7fc32fc26b58b9c0057c.tar.gz
Look for PDO include files in the right folder
Configure scripts for extensions look for PDO include files in $prefix/include/php. This change makes them look into $phpincludedir instead, which may be different from $prefix/include/php.
-rw-r--r--acinclude.m44
-rw-r--r--ext/pdo_dblib/config.m44
-rwxr-xr-xext/pdo_mysql/config.m44
-rwxr-xr-xext/pdo_oci/config.m44
-rwxr-xr-xext/pdo_odbc/config.m44
-rw-r--r--ext/pdo_pgsql/config.m44
-rw-r--r--ext/pdo_sqlite/config.m44
7 files changed, 14 insertions, 14 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index a4d4d509e0..b2220c3d5e 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -2771,8 +2771,8 @@ AC_DEFUN([PHP_CHECK_PDO_INCLUDES],[
pdo_cv_inc_path=$abs_srcdir/ext
elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
pdo_cv_inc_path=$abs_srcdir/ext
- elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$prefix/include/php/ext
+ elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then
+ pdo_cv_inc_path=$phpincludedir/ext
fi
])
if test -n "$pdo_cv_inc_path"; then
diff --git a/ext/pdo_dblib/config.m4 b/ext/pdo_dblib/config.m4
index ba8244c721..407c3fe4de 100644
--- a/ext/pdo_dblib/config.m4
+++ b/ext/pdo_dblib/config.m4
@@ -62,8 +62,8 @@ if test "$PHP_PDO_DBLIB" != "no"; then
pdo_cv_inc_path=$abs_srcdir/ext
elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
pdo_cv_inc_path=$abs_srcdir/ext
- elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$prefix/include/php/ext
+ elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then
+ pdo_cv_inc_path=$phpincludedir/ext
else
AC_MSG_ERROR([Cannot find php_pdo_driver.h.])
fi
diff --git a/ext/pdo_mysql/config.m4 b/ext/pdo_mysql/config.m4
index 95ae6ca7ed..4b79a8b54c 100755
--- a/ext/pdo_mysql/config.m4
+++ b/ext/pdo_mysql/config.m4
@@ -130,8 +130,8 @@ if test "$PHP_PDO_MYSQL" != "no"; then
pdo_cv_inc_path=$abs_srcdir/ext
elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
pdo_cv_inc_path=$abs_srcdir/ext
- elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$prefix/include/php/ext
+ elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then
+ pdo_cv_inc_path=$phpincludedir/ext
else
AC_MSG_ERROR([Cannot find php_pdo_driver.h.])
fi
diff --git a/ext/pdo_oci/config.m4 b/ext/pdo_oci/config.m4
index e3795db0ea..34cfb1397e 100755
--- a/ext/pdo_oci/config.m4
+++ b/ext/pdo_oci/config.m4
@@ -217,8 +217,8 @@ You need to tell me where to find your Oracle Instant Client SDK, or set ORACLE_
pdo_cv_inc_path=$abs_srcdir/ext
elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
pdo_cv_inc_path=$abs_srcdir/ext
- elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$prefix/include/php/ext
+ elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then
+ pdo_cv_inc_path=$phpincludedir/ext
else
AC_MSG_ERROR([Cannot find php_pdo_driver.h.])
fi
diff --git a/ext/pdo_odbc/config.m4 b/ext/pdo_odbc/config.m4
index 74734c4d63..2301e87b8d 100755
--- a/ext/pdo_odbc/config.m4
+++ b/ext/pdo_odbc/config.m4
@@ -50,8 +50,8 @@ if test "$PHP_PDO_ODBC" != "no"; then
pdo_cv_inc_path=$abs_srcdir/ext
elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
pdo_cv_inc_path=$abs_srcdir/ext
- elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$prefix/include/php/ext
+ elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then
+ pdo_cv_inc_path=$phpincludedir/ext
else
AC_MSG_ERROR([Cannot find php_pdo_driver.h.])
fi
diff --git a/ext/pdo_pgsql/config.m4 b/ext/pdo_pgsql/config.m4
index c61c5de4f4..1b6dd0e118 100644
--- a/ext/pdo_pgsql/config.m4
+++ b/ext/pdo_pgsql/config.m4
@@ -107,8 +107,8 @@ if test "$PHP_PDO_PGSQL" != "no"; then
pdo_cv_inc_path=$abs_srcdir/ext
elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
pdo_cv_inc_path=$abs_srcdir/ext
- elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$prefix/include/php/ext
+ elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then
+ pdo_cv_inc_path=$phpincludedir/ext
else
AC_MSG_ERROR([Cannot find php_pdo_driver.h.])
fi
diff --git a/ext/pdo_sqlite/config.m4 b/ext/pdo_sqlite/config.m4
index 0a7d0fe826..fcbe0b5b64 100644
--- a/ext/pdo_sqlite/config.m4
+++ b/ext/pdo_sqlite/config.m4
@@ -22,8 +22,8 @@ if test "$PHP_PDO_SQLITE" != "no"; then
pdo_cv_inc_path=$abs_srcdir/ext
elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
pdo_cv_inc_path=$abs_srcdir/ext
- elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$prefix/include/php/ext
+ elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then
+ pdo_cv_inc_path=$phpincludedir/ext
else
AC_MSG_ERROR([Cannot find php_pdo_driver.h.])
fi