2004-05-17 23:41:51 +08:00
|
|
|
dnl $Id$
|
|
|
|
dnl config.m4 for extension pdo
|
2005-02-13 09:54:59 +08:00
|
|
|
dnl vim:se ts=2 sw=2 et:
|
2004-05-17 23:41:51 +08:00
|
|
|
|
2005-02-09 12:54:56 +08:00
|
|
|
AC_ARG_WITH(broken-pear-install,
|
|
|
|
[],[
|
|
|
|
if test "x$withval" = "xyes"; then
|
2005-02-13 09:54:59 +08:00
|
|
|
case $host_alias in
|
|
|
|
*darwin*)
|
|
|
|
AC_MSG_ERROR([
|
|
|
|
Due to the way that loadable modules work on OSX/Darwin, you need to
|
|
|
|
compile the PDO package statically into the PHP core.
|
|
|
|
|
|
|
|
Please follow the instructions at: http://netevil.org/node.php?nid=202
|
|
|
|
for more detail on this issue.
|
|
|
|
])
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
AC_MSG_ERROR([
|
2005-02-09 12:54:56 +08:00
|
|
|
Due to a bug in the pear installer you should install the PDO package manually
|
|
|
|
using the following steps:
|
|
|
|
|
|
|
|
1. Download the PDO package to your local machine:
|
|
|
|
|
|
|
|
% wget http://pecl.php.net/get/PDO
|
|
|
|
|
|
|
|
2. Determine your PHP bin dir.
|
|
|
|
If your php5 cli binary lives at /usr/local/php5/bin/php
|
|
|
|
the bin dir is /usr/local/php5/bin
|
|
|
|
|
|
|
|
3. Set your path so that your PHP bin dir is at the front:
|
|
|
|
export PATH="/usr/local/php5/bin:\$PATH"
|
|
|
|
|
|
|
|
4. Manually build:
|
|
|
|
|
|
|
|
% tar xzf PDO-0.2.tgz
|
|
|
|
% cd PDO-0.2
|
|
|
|
% phpize
|
|
|
|
% ./configure
|
|
|
|
% make
|
|
|
|
% sudo -s
|
|
|
|
# make install
|
|
|
|
# echo extension=pdo.so >> /usr/local/php5/lib/php.ini
|
|
|
|
|
|
|
|
We apologize for the inconvenience, and hope to resolve this problem
|
|
|
|
in a future PHP/PEAR release.
|
|
|
|
|
|
|
|
])
|
2005-02-13 09:54:59 +08:00
|
|
|
;;
|
|
|
|
esac
|
2005-02-09 12:54:56 +08:00
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
2005-02-07 05:05:59 +08:00
|
|
|
PHP_ARG_ENABLE(pdo, whether to disable PDO support,
|
|
|
|
[ --disable-pdo Disable PHP Data Objects support], yes)
|
2004-05-17 23:41:51 +08:00
|
|
|
|
|
|
|
if test "$PHP_PDO" != "no"; then
|
2005-02-13 09:54:59 +08:00
|
|
|
if test "$ext_shared" = "yes" ; then
|
|
|
|
case $host_alias in
|
|
|
|
*darwin*)
|
|
|
|
ext_shared=no
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
2005-01-07 13:23:10 +08:00
|
|
|
PHP_NEW_EXTENSION(pdo, pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c, $ext_shared)
|
2004-05-18 02:13:03 +08:00
|
|
|
PHP_ADD_MAKEFILE_FRAGMENT
|
2004-05-17 23:41:51 +08:00
|
|
|
fi
|