summaryrefslogtreecommitdiff
path: root/sapi/cli/config.m4
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/cli/config.m4')
-rw-r--r--sapi/cli/config.m419
1 files changed, 6 insertions, 13 deletions
diff --git a/sapi/cli/config.m4 b/sapi/cli/config.m4
index c38db2fcc..4ea165c46 100644
--- a/sapi/cli/config.m4
+++ b/sapi/cli/config.m4
@@ -1,19 +1,13 @@
dnl
-dnl $Id: config.m4,v 1.22.2.1 2006/02/02 09:59:23 dmitry Exp $
+dnl $Id: config.m4,v 1.22.2.1.2.1 2007/07/11 23:20:36 jani Exp $
dnl
-AC_MSG_CHECKING(for CLI build)
-
-AC_ARG_ENABLE(cli,
+PHP_ARG_ENABLE(cli,,
[ --disable-cli Disable building CLI version of PHP
- (this forces --without-pear)],
-[
- PHP_SAPI_CLI=$enableval
-],[
- PHP_SAPI_CLI=yes
-])
+ (this forces --without-pear)], yes, no)
-if test "$PHP_SAPI_CLI" != "no"; then
+AC_MSG_CHECKING(for CLI build)
+if test "$PHP_CLI" != "no"; then
PHP_ADD_MAKEFILE_FRAGMENT($abs_srcdir/sapi/cli/Makefile.frag,$abs_srcdir/sapi/cli,sapi/cli)
SAPI_CLI_PATH=sapi/cli/php
PHP_SUBST(SAPI_CLI_PATH)
@@ -38,5 +32,4 @@ if test "$PHP_SAPI_CLI" != "no"; then
PHP_SUBST(INSTALL_CLI)
PHP_OUTPUT(sapi/cli/php.1)
fi
-
-AC_MSG_RESULT($PHP_SAPI_CLI)
+AC_MSG_RESULT($PHP_CLI)