Annotation of embedaddon/php/ext/pdo/config.m4, revision 1.1

1.1     ! misho       1: dnl $Id: config.m4 263549 2008-07-25 13:46:24Z jani $
        !             2: dnl config.m4 for extension pdo
        !             3: dnl vim:se ts=2 sw=2 et:
        !             4: 
        !             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
        !            12: 
        !            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:
        !            20: 
        !            21:   % sudo pear upgrade pear
        !            22: 
        !            23: or by manually downloading and installing PEAR version 1.3.5 or higher.
        !            24: 
        !            25: Once you've upgraded, please re-try your PDO install.
        !            26:     ])
        !            27:   fi
        !            28: ])
        !            29: 
        !            30: PHP_ARG_ENABLE(pdo, whether to enable PDO support,
        !            31: [  --disable-pdo           Disable PHP Data Objects support], yes)
        !            32: 
        !            33: if test "$PHP_PDO" != "no"; then
        !            34: 
        !            35:   dnl Make sure $PHP_PDO is 'yes' when it's not 'no' :)
        !            36:   PHP_PDO=yes
        !            37: 
        !            38:   PHP_PDO_PEAR_CHECK
        !            39: 
        !            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.
        !            46: 
        !            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:   ])
        !            65: 
        !            66:   dnl so we always include the known-good working hack.
        !            67:   PHP_ADD_MAKEFILE_FRAGMENT
        !            68: fi
        !            69: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>