Skip to content

Commit f384971

Browse files
committed
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.
1 parent ff2cccb commit f384971

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

acinclude.m4

+2-2
Original file line numberDiff line numberDiff line change
@@ -2771,8 +2771,8 @@ AC_DEFUN([PHP_CHECK_PDO_INCLUDES],[
27712771
pdo_cv_inc_path=$abs_srcdir/ext
27722772
elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
27732773
pdo_cv_inc_path=$abs_srcdir/ext
2774-
elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
2775-
pdo_cv_inc_path=$prefix/include/php/ext
2774+
elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then
2775+
pdo_cv_inc_path=$phpincludedir/ext
27762776
fi
27772777
])
27782778
if test -n "$pdo_cv_inc_path"; then

ext/pdo_dblib/config.m4

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ if test "$PHP_PDO_DBLIB" != "no"; then
6262
pdo_cv_inc_path=$abs_srcdir/ext
6363
elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
6464
pdo_cv_inc_path=$abs_srcdir/ext
65-
elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
66-
pdo_cv_inc_path=$prefix/include/php/ext
65+
elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then
66+
pdo_cv_inc_path=$phpincludedir/ext
6767
else
6868
AC_MSG_ERROR([Cannot find php_pdo_driver.h.])
6969
fi

ext/pdo_mysql/config.m4

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ if test "$PHP_PDO_MYSQL" != "no"; then
130130
pdo_cv_inc_path=$abs_srcdir/ext
131131
elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
132132
pdo_cv_inc_path=$abs_srcdir/ext
133-
elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
134-
pdo_cv_inc_path=$prefix/include/php/ext
133+
elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then
134+
pdo_cv_inc_path=$phpincludedir/ext
135135
else
136136
AC_MSG_ERROR([Cannot find php_pdo_driver.h.])
137137
fi

ext/pdo_oci/config.m4

+2-2
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ You need to tell me where to find your Oracle Instant Client SDK, or set ORACLE_
217217
pdo_cv_inc_path=$abs_srcdir/ext
218218
elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
219219
pdo_cv_inc_path=$abs_srcdir/ext
220-
elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
221-
pdo_cv_inc_path=$prefix/include/php/ext
220+
elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then
221+
pdo_cv_inc_path=$phpincludedir/ext
222222
else
223223
AC_MSG_ERROR([Cannot find php_pdo_driver.h.])
224224
fi

ext/pdo_odbc/config.m4

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ if test "$PHP_PDO_ODBC" != "no"; then
5050
pdo_cv_inc_path=$abs_srcdir/ext
5151
elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
5252
pdo_cv_inc_path=$abs_srcdir/ext
53-
elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
54-
pdo_cv_inc_path=$prefix/include/php/ext
53+
elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then
54+
pdo_cv_inc_path=$phpincludedir/ext
5555
else
5656
AC_MSG_ERROR([Cannot find php_pdo_driver.h.])
5757
fi

ext/pdo_pgsql/config.m4

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ if test "$PHP_PDO_PGSQL" != "no"; then
107107
pdo_cv_inc_path=$abs_srcdir/ext
108108
elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
109109
pdo_cv_inc_path=$abs_srcdir/ext
110-
elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
111-
pdo_cv_inc_path=$prefix/include/php/ext
110+
elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then
111+
pdo_cv_inc_path=$phpincludedir/ext
112112
else
113113
AC_MSG_ERROR([Cannot find php_pdo_driver.h.])
114114
fi

ext/pdo_sqlite/config.m4

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ if test "$PHP_PDO_SQLITE" != "no"; then
2222
pdo_cv_inc_path=$abs_srcdir/ext
2323
elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
2424
pdo_cv_inc_path=$abs_srcdir/ext
25-
elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
26-
pdo_cv_inc_path=$prefix/include/php/ext
25+
elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then
26+
pdo_cv_inc_path=$phpincludedir/ext
2727
else
2828
AC_MSG_ERROR([Cannot find php_pdo_driver.h.])
2929
fi

0 commit comments

Comments
 (0)