]> granicus.if.org Git - php/commitdiff
- Merged check from trunk to prevent building multiple SAPIs (bug #52419)
authorJani Taskinen <jani@php.net>
Fri, 19 Nov 2010 08:26:47 +0000 (08:26 +0000)
committerJani Taskinen <jani@php.net>
Fri, 19 Nov 2010 08:26:47 +0000 (08:26 +0000)
acinclude.m4

index a94dd6c23b0ca6305ed2e3caa9c383fbf3abd013..2e8ebb7cccd5f499cc045376b84974065d74f008 100644 (file)
@@ -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