Busybox: Upgrade to 1.21.1 (stable). lsof active.
[tomato.git] / release / src / router / php / ext / pdo / config.m4
blobf8515ddb1d4baa2a1f9fa9e653e124e04f6061cb
1 dnl $Id$
2 dnl config.m4 for extension pdo
3 dnl vim:se ts=2 sw=2 et:
5 AC_DEFUN([PHP_PDO_PEAR_CHECK],[
6   pdo_running_under_pear=0
7   case `pwd` in
8     /var/tmp/pear-build-*)
9       pdo_running_under_pear=1
10       ;;
11   esac
13   if test "$pdo_running_under_pear$PHP_PEAR_VERSION" = "1"; then
14     # we're running in an environment that smells like pear,
15     # and the PHP_PEAR_VERSION env var is not set.  That implies
16     # that we're running under a slightly broken pear installer
17     AC_MSG_ERROR([
18 PDO requires that you upgrade your PEAR installer tools. Please
19 do so now by running:
21   % sudo pear upgrade pear
23 or by manually downloading and installing PEAR version 1.3.5 or higher.
25 Once you've upgraded, please re-try your PDO install.
26     ])
27   fi
30 PHP_ARG_ENABLE(pdo, whether to enable PDO support,
31 [  --disable-pdo           Disable PHP Data Objects support], yes)
33 if test "$PHP_PDO" != "no"; then
35   dnl Make sure $PHP_PDO is 'yes' when it's not 'no' :)
36   PHP_PDO=yes
38   PHP_PDO_PEAR_CHECK
40   if test "$ext_shared" = "yes" ; then
41     case $host_alias in
42       *darwin*)
43           AC_MSG_ERROR([
44 Due to the way that loadable modules work on OSX/Darwin, you need to
45 compile the PDO package statically into the PHP core.
47 Please follow the instructions at: http://netevil.org/node.php?nid=202
48 for more detail on this issue.
49           ])
50         ext_shared=no
51         ;;
52     esac
53   fi
54   PHP_NEW_EXTENSION(pdo, pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c, $ext_shared)
55   ifdef([PHP_ADD_EXTENSION_DEP],
56   [
57     PHP_ADD_EXTENSION_DEP(pdo, spl, true)
58   ])
59   
60   ifdef([PHP_INSTALL_HEADERS],
61   [
62     dnl Sadly, this is a complete NOP for pecl extensions
63     PHP_INSTALL_HEADERS(ext/pdo, [php_pdo.h php_pdo_driver.h])
64   ])
66   dnl so we always include the known-good working hack.
67   PHP_ADD_MAKEFILE_FRAGMENT