]> granicus.if.org Git - php/commitdiff
Refine PEAR option. Since it does not reference anything external, it should be
authorSascha Schumann <sas@php.net>
Sun, 19 Dec 1999 13:59:29 +0000 (13:59 +0000)
committerSascha Schumann <sas@php.net>
Sun, 19 Dec 1999 13:59:29 +0000 (13:59 +0000)
AC_ARG_ENABLE instead of AC_ARG_WITH.

configure.in

index fbfe83eb0aaf2d99c91bfab2144eeb5de78b2cba..22ffe72b3c11072497d5683cb2429cffbd43bb6e 100644 (file)
@@ -605,19 +605,20 @@ AC_ARG_ENABLE(low-memory,
 ])
 AC_MSG_RESULT($PHP_LOW_MEMORY)
 
-AC_MSG_CHECKING(whether to install PEAR)
-AC_ARG_WITH(pear,
-[  --without-pear          Do not install PEAR],[
-  if test "$withval" = "yes"; then
-    PEAR_DIR=pear
-    AC_MSG_RESULT(yes)
-  else
-    AC_MSG_RESULT(no)
-  fi
+AC_ARG_ENABLE(pear,
+[  --disable-pear          Do not install PEAR],[
+  PHP_PEAR=$enableval
 ],[
-  PEAR_DIR=pear
-  AC_MSG_RESULT(yes)
+  PHP_PEAR=yes
 ])
+
+AC_MSG_CHECKING(whether to install PEAR)
+AC_MSG_RESULT($PHP_PEAR)
+
+if test "$PHP_PEAR" = "yes"; then
+  PEAR_DIR=pear
+fi
+
 AC_SUBST(PEAR_DIR)
 
 PHP_SAPI=cgi