From fd7ff95fde48d2b941d00ea4b461131c83240668 Mon Sep 17 00:00:00 2001 From: Edin Kadribasic Date: Thu, 24 Jan 2002 17:55:13 +0000 Subject: [PATCH] Added --disable-cli option. --- sapi/cli/config.m4 | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/sapi/cli/config.m4 b/sapi/cli/config.m4 index a14dabc25e..83aef7b2bb 100644 --- a/sapi/cli/config.m4 +++ b/sapi/cli/config.m4 @@ -2,9 +2,24 @@ dnl dnl $Id$ 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) -- 2.40.0