summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Longinotti <chtekk@gentoo.org>2006-08-29 19:24:59 +0000
committerLuca Longinotti <chtekk@gentoo.org>2006-08-29 19:24:59 +0000
commit09863e67f79308c2f750337e1298a47a99a6d2b9 (patch)
treee59828c6715b1207ae242877a35fd7fb6dcb45fd /eclass/php4_4-sapi.eclass
parentStable on Alpha, bug 144446. (diff)
downloadhistorical-09863e67f79308c2f750337e1298a47a99a6d2b9.tar.gz
historical-09863e67f79308c2f750337e1298a47a99a6d2b9.tar.bz2
historical-09863e67f79308c2f750337e1298a47a99a6d2b9.zip
Switch to using external libs in some cases, fixes bug #145220.
Diffstat (limited to 'eclass/php4_4-sapi.eclass')
-rw-r--r--eclass/php4_4-sapi.eclass11
1 files changed, 9 insertions, 2 deletions
diff --git a/eclass/php4_4-sapi.eclass b/eclass/php4_4-sapi.eclass
index 3e8faf00d2aa..b2316207bfb9 100644
--- a/eclass/php4_4-sapi.eclass
+++ b/eclass/php4_4-sapi.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php4_4-sapi.eclass,v 1.25 2006/08/28 20:54:53 chtekk Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/php4_4-sapi.eclass,v 1.26 2006/08/29 19:24:59 chtekk Exp $
#
# ########################################################################
#
@@ -78,6 +78,7 @@ DEPEND="adabas? ( >=dev-db/unixODBC-1.8.13 )
nls? ( sys-devel/gettext )
oci8-instant-client? ( dev-db/oracle-instantclient-basic )
odbc? ( >=dev-db/unixODBC-1.8.13 )
+ pcre? ( dev-libs/libpcre )
postgres? ( >=dev-db/libpq-7.1 )
readline? ( sys-libs/readline )
recode? ( app-text/recode )
@@ -385,7 +386,6 @@ php4_4-sapi_src_compile() {
phpconfutils_extension_disable "overload" "overload" 0
phpconfutils_extension_with "ovrimos" "ovrimos" 1
phpconfutils_extension_enable "pcntl" "pcntl" 1
- phpconfutils_extension_without "pcre-regex" "pcre" 0
phpconfutils_extension_with "pfpro" "pfpro" 1
phpconfutils_extension_with "pgsql" "postgres" 1
phpconfutils_extension_disable "posix" "posix" 0
@@ -489,6 +489,13 @@ php4_4-sapi_src_compile() {
phpconfutils_extension_with "solid" "solid" 1
fi
+ # PCRE support
+ if useq pcre || phpconfutils_usecheck pcre ; then
+ phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
+ else
+ phpconfutils_extension_without "pcre-regex" "pcre" 0
+ fi
+
# readline/libedit support
# You can use readline or libedit, but you can't use both
phpconfutils_extension_with "readline" "readline" 0