2002-01-06 14:08:14 +00:00
|
|
|
dnl
|
|
|
|
dnl $Id$
|
|
|
|
dnl
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for CLI build)
|
2002-01-12 14:51:54 +00:00
|
|
|
|
2002-01-24 17:55:13 +00:00
|
|
|
AC_ARG_ENABLE(cli,
|
2002-06-11 09:35:59 +00:00
|
|
|
[ --disable-cli Disable building CLI version of PHP
|
|
|
|
(this forces --without-pear).],
|
2002-01-24 17:55:13 +00:00
|
|
|
[
|
2002-04-14 03:57:59 +00:00
|
|
|
PHP_SAPI_CLI=$enableval
|
|
|
|
],[
|
|
|
|
PHP_SAPI_CLI=yes
|
|
|
|
])
|
2002-01-12 14:51:54 +00:00
|
|
|
|
2002-01-24 17:55:13 +00:00
|
|
|
if test "$PHP_SAPI_CLI" != "no"; then
|
2002-03-07 14:20:02 +00:00
|
|
|
INSTALL_CLI="\$(INSTALL) -m 0755 sapi/cli/php \$(INSTALL_ROOT)\$(bindir)/php"
|
|
|
|
PHP_SUBST(INSTALL_CLI)
|
2002-01-24 17:55:13 +00:00
|
|
|
else
|
|
|
|
PHP_DISABLE_CLI
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_MSG_RESULT($PHP_SAPI_CLI)
|