summaryrefslogtreecommitdiff
path: root/sapi/cli/config.m4
blob: 96d67c3c5215b910f0263973e9f2a9cc8d94a19d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
dnl
dnl $Id$
dnl

AC_MSG_CHECKING(for CLI build)

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
  PHP_DISABLE_CLI
fi

AC_MSG_RESULT($PHP_SAPI_CLI)