summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Bickel <mabi@gentoo.org>2010-08-11 20:55:41 +0000
committerMatti Bickel <mabi@gentoo.org>2010-08-11 20:55:41 +0000
commit218a8617792aa95ccc8d03d9510acb984603c50f (patch)
tree4c131ffd2445a0b2d2a388cbd0ee01b5ae3592f0 /dev-lang/php/files
parentMarked ~ppc. (diff)
downloadhistorical-218a8617792aa95ccc8d03d9510acb984603c50f.tar.gz
historical-218a8617792aa95ccc8d03d9510acb984603c50f.tar.bz2
historical-218a8617792aa95ccc8d03d9510acb984603c50f.zip
readd USE="discard-path force-cgi-redirect", which got lost in 5.2.14 (bug #332257), also fixes building with fastcgi
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'dev-lang/php/files')
-rw-r--r--dev-lang/php/files/eblits/src_configure-v52.eblit14
1 files changed, 12 insertions, 2 deletions
diff --git a/dev-lang/php/files/eblits/src_configure-v52.eblit b/dev-lang/php/files/eblits/src_configure-v52.eblit
index 40af374e286a..8e37da4e1df0 100644
--- a/dev-lang/php/files/eblits/src_configure-v52.eblit
+++ b/dev-lang/php/files/eblits/src_configure-v52.eblit
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_configure-v52.eblit,v 1.2 2010/08/09 13:02:23 mabi Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_configure-v52.eblit,v 1.3 2010/08/11 20:55:41 mabi Exp $
eblit-php-src_configure() {
PHP_DESTDIR="/usr/$(get_libdir)/php${SLOT}"
@@ -243,7 +243,7 @@ eblit-php-src_configure() {
for sapi in $SAPIS ; do
case "$sapi" in
- cli|cgi|embed|fpm)
+ cli|embed)
if [[ "${one_sapi}" == "${sapi}" ]] ; then
sapi_conf="${sapi_conf} --enable-${sapi}"
else
@@ -251,6 +251,16 @@ eblit-php-src_configure() {
fi
;;
+ cgi)
+ if [[ "${one_sapi}" == "${sapi}" ]] ; then
+ sapi_conf+=" --enable-cgi --enable-fastcgi"
+ use discard-path && sapi_conf+=" --enable-discard-path"
+ use force-cgi-redirect && sapi_conf+=" --enable-force-cgi-redirect"
+ else
+ sapi_conf+=" --disable-${sapi}"
+ fi
+ ;;
+
apache2)
if [[ "${one_sapi}" == "${sapi}" ]] ; then
sapi_conf="${sapi_conf} --with-apxs2=/usr/sbin/apxs"