From: Sascha Schumann Date: Thu, 14 Nov 2002 01:09:46 +0000 (+0000) Subject: - Remove PHP_DISABLE_CLI X-Git-Tag: BEFORE_RENAMING~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46a99e902258eaa6a02e41b0b701cf94416ed3e5;p=php - Remove PHP_DISABLE_CLI - Streamline ircg build: thttpd-dependent part moved into separate source file, so that it can be added to the SAPI-only object list. --- diff --git a/acinclude.m4 b/acinclude.m4 index 6908696165..93a5d94341 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -137,13 +137,6 @@ EOF done ]) -dnl -dnl Disable building CLI -dnl -AC_DEFUN([PHP_DISABLE_CLI],[ - disable_cli=1 -]) - dnl dnl Separator into the configure --help display. dnl diff --git a/configure.in b/configure.in index 7cd79b7339..cc71a074db 100644 --- a/configure.in +++ b/configure.in @@ -607,7 +607,7 @@ PHP_ARG_WITH(pear, [whether to install PEAR, and where], [ --with-pear=DIR Install PEAR in DIR (default PREFIX/lib/php) --without-pear Do not install PEAR], DEFAULT, no) -if test "$PHP_PEAR" != "no" && test "$disable_cli" != "1"; then +if test "$PHP_PEAR" != "no" && test "$PHP_SAPI_CLI" != "no"; then install_pear="install-pear install-build install-headers install-programs" PEAR_INSTALLDIR=$PHP_PEAR fi @@ -957,7 +957,7 @@ AC_DEFINE_UNQUOTED(PHP_UNAME,"$PHP_UNAME",[uname -a output]) PHP_OS=`uname | xargs` AC_DEFINE_UNQUOTED(PHP_OS,"$PHP_OS",[uname output]) -if test "$disable_cli" != "1"; then +if test "$PHP_SAPI_CLI" != "no"; then PHP_CLI_TARGET=sapi/cli/php PHP_INSTALL_CLI_TARGET="install-cli" PHP_ADD_SOURCES(sapi/cli, php_cli.c getopt.c,, cli) diff --git a/sapi/cli/config.m4 b/sapi/cli/config.m4 index 17af168c2e..1fa569d0b1 100644 --- a/sapi/cli/config.m4 +++ b/sapi/cli/config.m4 @@ -29,8 +29,6 @@ if test "$PHP_SAPI_CLI" != "no"; then INSTALL_CLI="\$(INSTALL) -m 0755 \$(SAPI_CLI_PATH) \$(INSTALL_ROOT)\$(bindir)/php" PHP_SUBST(BUILD_CLI) PHP_SUBST(INSTALL_CLI) -else - PHP_DISABLE_CLI fi AC_MSG_RESULT($PHP_SAPI_CLI)