summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
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