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

Diff of /eclass/autotools.eclass

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

Revision 1.141 Revision 1.142
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.eclass,v 1.141 2012/05/21 18:13:10 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.142 2012/05/24 01:13:32 vapier Exp $
4 4
5# @ECLASS: autotools.eclass 5# @ECLASS: autotools.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org 7# base-system@gentoo.org
8# @BLURB: Regenerates auto* build scripts 8# @BLURB: Regenerates auto* build scripts
208# @FUNCTION: _at_uses_pkg 208# @FUNCTION: _at_uses_pkg
209# @USAGE: <macros> 209# @USAGE: <macros>
210# @INTERNAL 210# @INTERNAL
211# See if the specified macros are enabled. 211# See if the specified macros are enabled.
212_at_uses_pkg() { 212_at_uses_pkg() {
213 if [[ -e aclocal.m4 ]] ; then
214 # If aclocal.m4 exists, trust the trace data.
215 [[ -n $(autotools_check_macro "${@}") ]] 213 if [[ -n $(autotools_check_macro "$@") ]] ; then
214 return 0
216 else 215 else
216 # If the trace didn't find it (perhaps because aclocal.m4 hasn't
217 # If aclocal.m4 hasn't been generated yet, cheat, but be conservative. 217 # been generated yet), cheat, but be conservative.
218 local macro args=() 218 local macro args=()
219 for macro ; do 219 for macro ; do
220 args+=( -e "^[[:space:]]*${macro}\>" ) 220 args+=( -e "^[[:space:]]*${macro}\>" )
221 done 221 done
222 egrep -q "${args[@]}" configure.?? 222 egrep -q "${args[@]}" configure.??

Legend:
Removed from v.1.141  
changed lines
  Added in v.1.142

  ViewVC Help
Powered by ViewVC 1.1.20