From: Jani Taskinen Date: Fri, 19 Nov 2010 08:26:47 +0000 (+0000) Subject: - Merged check from trunk to prevent building multiple SAPIs (bug #52419) X-Git-Tag: php-5.3.4RC2~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=caf792940ff1d5f072f3bd8060ee4b33ce2167f8;p=php - Merged check from trunk to prevent building multiple SAPIs (bug #52419) --- 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