sniper          Mon Feb  7 07:51:26 2005 EDT

  Modified files:              (Branch: PHP_5_0)
    /php-src    NEWS configure.in 
  Log:
  MFH: - Fixed bug #31858 (--disable-cli does not force --without-pear)
  
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1760.2.236&r2=1.1760.2.237&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.1760.2.236 php-src/NEWS:1.1760.2.237
--- php-src/NEWS:1.1760.2.236   Sat Feb  5 06:02:07 2005
+++ php-src/NEWS        Mon Feb  7 07:51:23 2005
@@ -15,6 +15,7 @@
   is passed. (Tony)
 - Fixed posix_getsid() & posix_getpgid() to return sid & pgid instead 
   of true. (Tony)
+- Fixed bug #31858 (--disable-cli does not force --without-pear). (Jani)
 - Fixed bug #31842 (*date('r') does not return RFC2822 conforming date string).
   (Jani)
 - Fixed bug #31832 (SOAP encoding problem with complex types in WSDL mode with
http://cvs.php.net/diff.php/php-src/configure.in?r1=1.514.2.34&r2=1.514.2.35&ty=u
Index: php-src/configure.in
diff -u php-src/configure.in:1.514.2.34 php-src/configure.in:1.514.2.35
--- php-src/configure.in:1.514.2.34     Wed Jan 19 20:46:38 2005
+++ php-src/configure.in        Mon Feb  7 07:51:25 2005
@@ -1,4 +1,4 @@
-dnl ## $Id: configure.in,v 1.514.2.34 2005/01/20 01:46:38 sniper Exp $ -*- sh 
-*-
+dnl ## $Id: configure.in,v 1.514.2.35 2005/02/07 12:51:25 sniper Exp $ -*- sh 
-*-
 dnl ## Process this file with autoconf to produce a configure script.
 
 divert(1)
@@ -902,6 +902,11 @@
   with_pear=no
 fi
 
+# If CLI is disabled -> disable PEAR
+if test "$PHP_SAPI_CLI" = "no"; then
+  with_pear=no
+fi
+
 PHP_ARG_WITH(pear, [whether to install PEAR],
 [  --with-pear=DIR         Install PEAR in DIR (default PREFIX/lib/php)
   --without-pear          Do not install PEAR], DEFAULT, yes)
@@ -911,17 +916,13 @@
   dnl
   dnl PEAR dependancies
   dnl
-  if test "$PHP_SAPI_CLI" = "no"; then
-    pear_error_msg="$pear_error_msg 
-                    PEAR requires CLI to be enabled.     Add --enable-cli to 
the configure line. (or --disable-pear)"
-  fi
   if test "$PHP_PCRE_REGEX" = "no"; then
     pear_error_msg="$pear_error_msg 
-                    PEAR requires PCRE to be enabled.    Add --with-pcre-regex 
to the configure line. (or --disable-pear)"
+                    PEAR requires PCRE to be enabled.    Add --with-pcre-regex 
to the configure line. (or --without-pear)"
   fi
   if test "$PHP_XML" = "no"; then
     pear_error_msg="$pear_error_msg 
-                    PEAR requires XML to be enabled.     Add --enable-xml to 
the configure line. (or --disable-pear)"
+                    PEAR requires XML to be enabled.     Add --enable-xml to 
the configure line. (or --without-pear)"
   fi
 
 dnl
@@ -929,7 +930,7 @@
 dnl
 dnl  if test "$PHP_XMLRPC" = "no"; then
 dnl    pear_error_msg="$pear_error_msg 
-dnl                    PEAR requires XML-RPC to be enabled. Add --with-xmlrpc 
to the configure line. (or --disable-pear)"
+dnl                    PEAR requires XML-RPC to be enabled. Add --with-xmlrpc 
to the configure line. (or --without-pear)"
 dnl fi
 dnl
 
@@ -946,6 +947,8 @@
       *)   PEAR_INSTALLDIR=$libdir/php;;
     esac
   fi
+
+  
PHP_ADD_MAKEFILE_FRAGMENT($abs_srcdir/pear/Makefile.frag,$abs_srcdir/pear,pear)
 fi
 
 
@@ -1295,7 +1298,6 @@
 PHP_ADD_BUILD_DIR(Zend)
 
 
PHP_ADD_MAKEFILE_FRAGMENT($abs_srcdir/scripts/Makefile.frag,$abs_srcdir/scripts,scripts)
-PHP_ADD_MAKEFILE_FRAGMENT($abs_srcdir/pear/Makefile.frag,$abs_srcdir/pear,pear)
 PHP_ADD_MAKEFILE_FRAGMENT($abs_srcdir/Makefile.frag,$abs_srcdir/Zend,Zend)
 
 PHP_GEN_BUILD_DIRS

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to