From caf792940ff1d5f072f3bd8060ee4b33ce2167f8 Mon Sep 17 00:00:00 2001 From: Jani Taskinen Date: Fri, 19 Nov 2010 08:26:47 +0000 Subject: [PATCH] - Merged check from trunk to prevent building multiple SAPIs (bug #52419) --- acinclude.m4 | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.40.0