summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2010-11-19 08:26:47 +0000
committerJani Taskinen <jani@php.net>2010-11-19 08:26:47 +0000
commitcaf792940ff1d5f072f3bd8060ee4b33ce2167f8 (patch)
tree9c42601b218d171fbec2fa59a238030750593341 /acinclude.m4
parent64f21f63add836acf13c3787d59940944b7610fd (diff)
downloadphp-git-caf792940ff1d5f072f3bd8060ee4b33ce2167f8.tar.gz
- Merged check from trunk to prevent building multiple SAPIs (bug #52419)
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m411
1 files changed, 11 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index a94dd6c23b..2e8ebb7ccc 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -878,6 +878,17 @@ dnl and optionally also the source-files for the SAPI-specific
dnl objects.
dnl
AC_DEFUN([PHP_SELECT_SAPI],[
+ if test "$PHP_SAPI" != "default"; then
+AC_MSG_ERROR([
++--------------------------------------------------------------------+
+| *** ATTENTION *** |
+| |
+| You've configured multiple SAPIs to be build. You can build only |
+| one SAPI module and CLI binary at the same time. |
++--------------------------------------------------------------------+
+])
+ fi
+
PHP_SAPI=$1
case "$2" in