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

Diff of /eclass/confutils.eclass

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

Revision 1.3 Revision 1.4
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.3 2004/07/14 22:33:50 stuart Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/confutils.eclass,v 1.4 2004/07/14 23:19:16 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 [ "$shared+" != "+" ]; then
194 my_shared="${shared}"
193 if [ "$4+" != "+" ]; then 195 if [ "$4+" != "+" ]; then
194 my_shared="${shared},$4" 196 my_shared="${my_shared},$4"
197 fi
195 fi 198 fi
196 else 199 else
197 if [ "$4+" != "+" ]; then 200 if [ "$4+" != "+" ]; then
198 my_shared="=$4" 201 my_shared="=$4"
199 fi 202 fi
234# $4 - additional setting for configure 237# $4 - additional setting for configure
235 238
236enable_extension_with () { 239enable_extension_with () {
237 local my_shared 240 local my_shared
238 241
239 if [ "$3" == "1" -a -n "$shared" ]; then 242 if [ "$3" == "1" ]; then
243 if [ "$shared+" != "+" ]; then
244 my_shared="${shared}"
240 if [ "$4+" != "+" ]; then 245 if [ "$4+" != "+" ]; then
241 my_shared="${shared},$4" 246 my_shared="${my_shared},$4"
247 fi
242 fi 248 fi
243 else 249 else
244 if [ "$4+" != "+" ]; then 250 if [ "$4+" != "+" ]; then
245 my_shared="=$4" 251 my_shared="=$4"
246 fi 252 fi

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

  ViewVC Help
Powered by ViewVC 1.1.20