]> granicus.if.org Git - php/commitdiff
Update for pending PEAR release.
authorWez Furlong <wez@php.net>
Fri, 18 Feb 2005 01:39:36 +0000 (01:39 +0000)
committerWez Furlong <wez@php.net>
Fri, 18 Feb 2005 01:39:36 +0000 (01:39 +0000)
ext/pdo/Makefile.frag
ext/pdo/config.m4
ext/pdo/package.xml

index c5f1be442fe315c8c6a88c89a656dcee3f2d2e03..9af532d8338146b8de4750a46906241e968000de 100644 (file)
@@ -20,14 +20,6 @@ install-pdo-headers:
                        echo "hmmm"; \
                fi \
        done;
-       @echo ""
-       @echo ""
-       @echo "You're now ready to install PDO drivers for your database"
-       @echo "If you'd like to have PDO show up in the list of installed"
-       @echo "packages when you run \"pear list\", you may now run"
-       @echo "\"sudo pear install package.xml\""
-       @echo "this time, when prompted to press enter, you should type"
-       @echo "\"no\" and press enter instead."
 
 # mini hack
 install: $(all_targets) $(install_targets) install-pdo-headers
index bd2e2b94ef5486d47ae8af6643babf6ebcd9825c..24eb3f0b24e0b4bfd8309fdf4910a3b33561fceb 100755 (executable)
@@ -2,54 +2,28 @@ dnl $Id$
 dnl config.m4 for extension pdo
 dnl vim:se ts=2 sw=2 et:
 
-AC_ARG_WITH(broken-pear-install,
-[],[
-  if test "x$withval" = "xyes"; then
-  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.
-    ])
+pdo_running_under_pear=0
+case `pwd` in
+  /var/tmp/pear-build-*)
+    pdo_running_under_pear=1
     ;;
-  *)
-    AC_MSG_ERROR([
-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
+esac
 
- 3. Set your path so that your PHP bin dir is at the front:
-    export PATH="/usr/local/php5/bin:\$PATH"
+if test "$pdo_running_under_pear$PHP_PEAR_VERSION" = "1"; then
+  # we're running in an environment that smells like pear,
+  # and the PHP_PEAR_VERSION env var is not set.  That implies
+  # that we're running under a slightly broken pear installer
+  AC_MSG_ERROR([
+PDO requires that you upgrade your PEAR installer tools. Please
+do so now by running:
 
- 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
+  % sudo pear upgrade pear
 
-We apologize for the inconvenience, and hope to resolve this problem
-in a future PHP/PEAR release.
+or by manually downloading and installing PEAR version 1.3.5 or higher.
 
+Once you've upgraded, please re-try your PDO install.
 ])
-    ;;
-  esac
 fi
-])
 
 PHP_ARG_ENABLE(pdo, whether to enable PDO support,
 [  --enable-pdo=yes         Enable PHP Data Objects support (recommended)], yes)
@@ -58,6 +32,15 @@ if test "$PHP_PDO" != "no"; then
   if test "$ext_shared" = "yes" ; then
     case $host_alias in
       *darwin*)
+        if test "$pdo_running_under_pear" = "1"; then
+          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.
+          ])
+        fi
         ext_shared=no
         ;;
     esac
index 3608a5ce0c2de10fd41fb80bf2bea4aed63e8b15..50289f600f12ab9164f14f710e430c033af70707 100755 (executable)
   </maintainer>
  </maintainers>
 
-<!-- pear is still broken -->
-<configureoptions>
-  <configureoption name="with-broken-pear-install" default="yes" prompt="the pear installer has a bug; press enter to find out more"/>
-</configureoptions>
-
  <description>
   PDO provides a uniform data access interface, sporting advanced features such
   as prepared statements and bound parameters.  PDO drivers are dynamically