cvs: php4 /sapi/cli config.m4
| From: | Edin Kadribasic | Date: | Thu, 24 Jan 2002 17:55:14 +0000 |
| Subject: | cvs: php4 /sapi/cli config.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-9167@lists.php.net to get a copy of this message | ||
edink Thu Jan 24 12:55:14 2002 EDT
Modified files:
/php4/sapi/cli config.m4
Log:
Added --disable-cli option.
Index: php4/sapi/cli/config.m4
diff -u php4/sapi/cli/config.m4:1.2 php4/sapi/cli/config.m4:1.3
--- php4/sapi/cli/config.m4:1.2 Sat Jan 12 09:51:54 2002
+++ php4/sapi/cli/config.m4 Thu Jan 24 12:55:13 2002
@@ -1,10 +1,25 @@
dnl
-dnl $Id: config.m4,v 1.2 2002/01/12 14:51:54 edink Exp $
+dnl $Id: config.m4,v 1.3 2002/01/24 17:55:13 edink Exp $
dnl
-dnl Just for fun (not actually need)
AC_MSG_CHECKING(for CLI build)
-AC_MSG_RESULT(yes)
-INSTALL_IT="$INSTALL_IT; \$(INSTALL) -m 0755 sapi/cli/php \$(INSTALL_ROOT)\$(bindir)/"
+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]
+)
+if test "$PHP_SAPI_CLI" != "no"; then
+ INSTALL_IT="$INSTALL_IT; \$(INSTALL) -m 0755 sapi/cli/php
\$(INSTALL_ROOT)\$(bindir)/php"
+else
+ PHP_DISABLE_CLI
+fi
+
+AC_MSG_RESULT($PHP_SAPI_CLI)