summaryrefslogtreecommitdiff
path: root/sapi/cli/config.m4
diff options
context:
space:
mode:
authorEdin Kadribasic <edink@php.net>2002-01-06 14:08:14 +0000
committerEdin Kadribasic <edink@php.net>2002-01-06 14:08:14 +0000
commitb1f3a91569419fc2c8af1b455bcecc520a0ff3ec (patch)
tree530f632d510c52fa38d22e8eeebf541349602029 /sapi/cli/config.m4
parent1788410a56c7ee10fdaabb7d438c7938158c8d4c (diff)
downloadphp-git-b1f3a91569419fc2c8af1b455bcecc520a0ff3ec.tar.gz
@- Added CLI (command line intrerface) sapi based on a cut-down version
@ of the CGI sapi which is more suited for writing shell scripts. Some of @ the differences are: it prints no HTTP headers, displays plain text @ error messages, etc. (Edin) Added CLI (command line intrerface) sapi. # Let's see if a build expert can make this compile along # side some other sapi.
Diffstat (limited to 'sapi/cli/config.m4')
-rw-r--r--sapi/cli/config.m421
1 files changed, 21 insertions, 0 deletions
diff --git a/sapi/cli/config.m4 b/sapi/cli/config.m4
new file mode 100644
index 0000000000..5fb91a83fd
--- /dev/null
+++ b/sapi/cli/config.m4
@@ -0,0 +1,21 @@
+dnl
+dnl $Id$
+dnl
+
+AC_MSG_CHECKING(for CLI build)
+AC_ARG_WITH(cli,
+[ --with-cli Build PHP as CLI application],[
+ if test "$withval" = "yes"; then
+ CLIPATH=/usr/local
+ else
+ CLIPATH=$withval
+ fi
+ PHP_SAPI=cli
+ PHP_PROGRAM=php
+ INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_PROGRAM \$(bindir)/$PHP_PROGRAM"
+ RESULT=yes
+ PHP_SUBST(EXT_PROGRAM_LDADD)
+],[
+ RESULT=no
+])
+AC_MSG_RESULT($RESULT)