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

Diff of /eclass/autotools.eclass

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

Revision 1.139 Revision 1.140
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.139 2012/05/21 17:40:44 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.140 2012/05/21 17:53:08 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
163 [[ -n ${m4dirs} ]] && mkdir -p ${m4dirs} 163 [[ -n ${m4dirs} ]] && mkdir -p ${m4dirs}
164 164
165 # Run all the tools before aclocal so we can gather the .m4 files. 165 # Run all the tools before aclocal so we can gather the .m4 files.
166 local i tools=( 166 local i tools=(
167 # <tool> <was run> <command> 167 # <tool> <was run> <command>
168 gettext false "eautopoint --force" 168 gettext false "eautopoint --force"
169 # intltool must come after autopoint.
170 intltool false "autotools_run_tool intltoolize --automake --copy --force"
169 libtool false "_elibtoolize --install --copy --force" 171 libtool false "_elibtoolize --install --copy --force"
170 ) 172 )
171 for (( i = 0; i < ${#tools[@]}; i += 3 )) ; do 173 for (( i = 0; i < ${#tools[@]}; i += 3 )) ; do
172 if _at_uses_${tools[i]} ; then 174 if _at_uses_${tools[i]} ; then
173 tools[i+1]=true 175 tools[i+1]=true
174 ${tools[i+2]} 176 ${tools[i+2]}
218 args+=( -e "^[[:space:]]*${macro}\>" ) 220 args+=( -e "^[[:space:]]*${macro}\>" )
219 done 221 done
220 egrep -q "${args[@]}" configure.?? 222 egrep -q "${args[@]}" configure.??
221 fi 223 fi
222} 224}
223_at_uses_gettext() { _at_uses_pkg AM_GNU_GETTEXT_VERSION; }
224_at_uses_autoheader() { _at_uses_pkg AC_CONFIG_HEADERS; } 225_at_uses_autoheader() { _at_uses_pkg AC_CONFIG_HEADERS; }
225_at_uses_automake() { _at_uses_pkg AM_INIT_AUTOMAKE; } 226_at_uses_automake() { _at_uses_pkg AM_INIT_AUTOMAKE; }
227_at_uses_gettext() { _at_uses_pkg AM_GNU_GETTEXT_VERSION; }
228_at_uses_intltool() { _at_uses_pkg IT_PROG_INTLTOOL; }
226_at_uses_libtool() { _at_uses_pkg A{C,M}_PROG_LIBTOOL LT_INIT; } 229_at_uses_libtool() { _at_uses_pkg A{C,M}_PROG_LIBTOOL LT_INIT; }
227 230
228# @FUNCTION: eaclocal_amflags 231# @FUNCTION: eaclocal_amflags
229# @DESCRIPTION: 232# @DESCRIPTION:
230# Extract the ACLOCAL_AMFLAGS value from the Makefile.am and try to handle 233# Extract the ACLOCAL_AMFLAGS value from the Makefile.am and try to handle
458 AC_CONFIG_HEADERS 461 AC_CONFIG_HEADERS
459 AC_CONFIG_SUBDIRS 462 AC_CONFIG_SUBDIRS
460 AC_CONFIG_AUX_DIR AC_CONFIG_MACRO_DIR 463 AC_CONFIG_AUX_DIR AC_CONFIG_MACRO_DIR
461 AM_INIT_AUTOMAKE 464 AM_INIT_AUTOMAKE
462 AM_GNU_GETTEXT_VERSION 465 AM_GNU_GETTEXT_VERSION
466 IT_PROG_INTLTOOL
463) 467)
464autotools_check_macro() { 468autotools_check_macro() {
465 [[ -f configure.ac || -f configure.in ]] || return 0 469 [[ -f configure.ac || -f configure.in ]] || return 0
466 470
467 # We can run in multiple dirs, so we have to cache the trace 471 # We can run in multiple dirs, so we have to cache the trace

Legend:
Removed from v.1.139  
changed lines
  Added in v.1.140

  ViewVC Help
Powered by ViewVC 1.1.20