]> granicus.if.org Git - php/commitdiff
Make this work as it was supposed to work.
authorfoobar <sniper@php.net>
Sun, 14 Apr 2002 03:50:40 +0000 (03:50 +0000)
committerfoobar <sniper@php.net>
Sun, 14 Apr 2002 03:50:40 +0000 (03:50 +0000)
sapi/cli/config.m4

index 96d67c3c5215b910f0263973e9f2a9cc8d94a19d..5b0f2b0d943ea79418c55357acb4044a9aa4bb45 100644 (file)
@@ -5,18 +5,14 @@ dnl
 AC_MSG_CHECKING(for CLI build)
 
 AC_ARG_ENABLE(cli,
-[  --disable-cli           Disable building CLI version of PHP.],
+[  --enable-cli            Enable building CLI version of PHP.],
 [
-  if test "$enable_cli" != "no"; then
-    PHP_SAPI_CLI=yes
-  else
-    PHP_SAPI_CLI=no
-  fi
-],
-[PHP_SAPI_CLI=yes]
-)
+  PHP_SAPI_CLI=$enableval
+],[
+  PHP_SAPI_CLI=no
+])
 
-if test "$PHP_SAPI_CLI" = "no"; then
+if test "$PHP_SAPI_CLI" != "yes"; then
   PHP_DISABLE_CLI
 fi