]> granicus.if.org Git - php/commitdiff
Make it possible to actually disable the CLI..
authorfoobar <sniper@php.net>
Sun, 14 Apr 2002 03:57:59 +0000 (03:57 +0000)
committerfoobar <sniper@php.net>
Sun, 14 Apr 2002 03:57:59 +0000 (03:57 +0000)
sapi/cli/config.m4

index 724c759de72640cf8ef311fd058b375e84c83b04..4b5086c17ce731a22159b112540c09e886d18bca 100644 (file)
@@ -7,14 +7,10 @@ AC_MSG_CHECKING(for CLI build)
 AC_ARG_ENABLE(cli,
 [  --disable-cli           Disable 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=yes
+])
 
 if test "$PHP_SAPI_CLI" != "no"; then
   INSTALL_CLI="\$(INSTALL) -m 0755 sapi/cli/php \$(INSTALL_ROOT)\$(bindir)/php"