/[gentoo-x86]/eclass/confutils.eclass
Gentoo

Diff of /eclass/confutils.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.3
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/confutils.eclass,v 1.2 2004/07/14 21:24:06 stuart Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/confutils.eclass,v 1.3 2004/07/14 22:33:50 stuart Exp $
4# 4#
5# eclass/confutils.eclass 5# eclass/confutils.eclass
6# Utility functions to help with configuring a package 6# Utility functions to help with configuring a package
7# 7#
8# Based on Stuart's work for the PHP 5 eclass 8# Based on Stuart's work for the PHP 5 eclass
187# $4 - additional setting for configure 187# $4 - additional setting for configure
188 188
189enable_extension_enable () { 189enable_extension_enable () {
190 local my_shared 190 local my_shared
191 191
192 if [ "$3" == "1" -a -n "$shared" ]; then
192 if [ "$3" == "1" ]; then 193 if [ "$4+" != "+" ]; then
193 my_shared="$shared"
194 if [ "$4+" != "+" ]; then
195 my_shared="${my_shared},$4" 194 my_shared="${shared},$4"
196 fi 195 fi
197 else 196 else
198 if [ "$4+" != "+" ]; then 197 if [ "$4+" != "+" ]; then
199 my_shared="=$4" 198 my_shared="=$4"
200 fi 199 fi
235# $4 - additional setting for configure 234# $4 - additional setting for configure
236 235
237enable_extension_with () { 236enable_extension_with () {
238 local my_shared 237 local my_shared
239 238
239 if [ "$3" == "1" -a -n "$shared" ]; then
240 if [ "$3" == "1" ]; then 240 if [ "$4+" != "+" ]; then
241 my_shared="$shared"
242 if [ "$4+" != "+" ]; then
243 my_shared="${my_shared},$4" 241 my_shared="${shared},$4"
244 fi 242 fi
245 else 243 else
246 if [ "$4+" != "+" ]; then 244 if [ "$4+" != "+" ]; then
247 my_shared="=$4" 245 my_shared="=$4"
248 fi 246 fi

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20