1 | # Copyright 1999-2010 Gentoo Foundation |
1 | # Copyright 1999-2010 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/autotools-utils.eclass,v 1.21 2011/09/18 07:57:34 mgorny Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.22 2011/09/18 07:57:55 mgorny Exp $ |
4 | |
4 | |
5 | # @ECLASS: autotools-utils.eclass |
5 | # @ECLASS: autotools-utils.eclass |
6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
7 | # Maciej Mrozowski <reavertm@gentoo.org> |
7 | # Maciej Mrozowski <reavertm@gentoo.org> |
8 | # Michał Górny <mgorny@gentoo.org> |
8 | # Michał Górny <mgorny@gentoo.org> |
… | |
… | |
223 | # IUSE="static-libs" passes --enable-shared and either --disable-static/--enable-static |
223 | # IUSE="static-libs" passes --enable-shared and either --disable-static/--enable-static |
224 | # to econf respectively. |
224 | # to econf respectively. |
225 | autotools-utils_src_configure() { |
225 | autotools-utils_src_configure() { |
226 | debug-print-function ${FUNCNAME} "$@" |
226 | debug-print-function ${FUNCNAME} "$@" |
227 | |
227 | |
|
|
228 | [[ -z ${myeconfargs+1} || $(declare -p myeconfargs) == 'declare -a'* ]] \ |
|
|
229 | || die 'autotools-utils.eclass: myeconfargs has to be an array.' |
|
|
230 | |
228 | # Common args |
231 | # Common args |
229 | local econfargs=() |
232 | local econfargs=() |
230 | |
233 | |
231 | # Handle debug found in IUSE |
234 | # Handle debug found in IUSE |
232 | if has debug ${IUSE//+}; then |
235 | if has debug ${IUSE//+}; then |