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

Diff of /eclass/autotools.eclass

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

Revision 1.135 Revision 1.136
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.135 2012/05/20 12:38:33 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.136 2012/05/20 12:55:06 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
414 WANT_AUTOCONF="2.5" autoconf $(autotools_m4dir_include) --trace="${macro}" 2>/dev/null 414 WANT_AUTOCONF="2.5" autoconf $(autotools_m4dir_include) --trace="${macro}" 2>/dev/null
415 done 415 done
416 return 0 416 return 0
417} 417}
418 418
419# @FUNCTION: autotools_check_macro_val
420# @USAGE: <macro> [macros]
421# @INTERNAL
422# @DESCRIPTION:
419# Internal function to look for a macro and extract its value 423# Look for a macro and extract its value.
420autotools_check_macro_val() { 424autotools_check_macro_val() {
421 local macro=$1 scan_out 425 local macro scan_out
422 426
427 for macro ; do
423 autotools_check_macro "${macro}" | \ 428 autotools_check_macro "${macro}" | \
424 gawk -v macro="${macro}" \ 429 gawk -v macro="${macro}" \
425 '($0 !~ /^[[:space:]]*(#|dnl)/) { 430 '($0 !~ /^[[:space:]]*(#|dnl)/) {
426 if (match($0, macro ":(.*)$", res)) 431 if (match($0, macro ":(.*)$", res))
427 print res[1] 432 print res[1]
428 }' | uniq 433 }' | uniq
434 done
429 435
430 return 0 436 return 0
431} 437}
432 438
433# Internal function to get additional subdirs to configure 439# Internal function to get additional subdirs to configure

Legend:
Removed from v.1.135  
changed lines
  Added in v.1.136

  ViewVC Help
Powered by ViewVC 1.1.20