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

Diff of /eclass/autotools.eclass

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

Revision 1.143 Revision 1.144
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.143 2012/06/05 18:31:54 grobian Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.144 2012/06/06 17:15:08 mgorny 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 glibgettext false "autotools_run_tool glib-gettextize --copy --force"
168 gettext false "eautopoint --force" 169 gettext false "eautopoint --force"
169 # intltool must come after autopoint. 170 # intltool must come after autopoint.
170 intltool false "autotools_run_tool intltoolize --automake --copy --force" 171 intltool false "autotools_run_tool intltoolize --automake --copy --force"
172 gtkdoc false "autotools_run_tool gtkdocize --copy"
173 gnomedoc false "autotools_run_tool gnome-doc-prepare --copy --force"
171 libtool false "_elibtoolize --install --copy --force" 174 libtool false "_elibtoolize --install --copy --force"
172 ) 175 )
173 for (( i = 0; i < ${#tools[@]}; i += 3 )) ; do 176 for (( i = 0; i < ${#tools[@]}; i += 3 )) ; do
174 if _at_uses_${tools[i]} ; then 177 if _at_uses_${tools[i]} ; then
175 tools[i+1]=true 178 tools[i+1]=true
176 ${tools[i+2]} 179 ${tools[i+2]}
220 args+=( -e "^[[:space:]]*${macro}\>" ) 223 args+=( -e "^[[:space:]]*${macro}\>" )
221 done 224 done
222 egrep -q "${args[@]}" configure.?? 225 egrep -q "${args[@]}" configure.??
223 fi 226 fi
224} 227}
225_at_uses_autoheader() { _at_uses_pkg AC_CONFIG_HEADERS; } 228_at_uses_autoheader() { _at_uses_pkg AC_CONFIG_HEADERS; }
226_at_uses_automake() { _at_uses_pkg AM_INIT_AUTOMAKE; } 229_at_uses_automake() { _at_uses_pkg AM_INIT_AUTOMAKE; }
227_at_uses_gettext() { _at_uses_pkg AM_GNU_GETTEXT_VERSION; } 230_at_uses_gettext() { _at_uses_pkg AM_GNU_GETTEXT_VERSION; }
231_at_uses_glibgettext() { _at_uses_pkg AM_GLIB_GNU_GETTEXT; }
228_at_uses_intltool() { _at_uses_pkg {AC,IT}_PROG_INTLTOOL; } 232_at_uses_intltool() { _at_uses_pkg {AC,IT}_PROG_INTLTOOL; }
233_at_uses_gtkdoc() { _at_uses_pkg GTK_DOC_CHECK; }
234_at_uses_gnomedoc() { _at_uses_pkg GNOME_DOC_INIT; }
229_at_uses_libtool() { _at_uses_pkg A{C,M}_PROG_LIBTOOL LT_INIT; } 235_at_uses_libtool() { _at_uses_pkg A{C,M}_PROG_LIBTOOL LT_INIT; }
230 236
231# @FUNCTION: eaclocal_amflags 237# @FUNCTION: eaclocal_amflags
232# @DESCRIPTION: 238# @DESCRIPTION:
233# Extract the ACLOCAL_AMFLAGS value from the Makefile.am and try to handle 239# Extract the ACLOCAL_AMFLAGS value from the Makefile.am and try to handle
234# (most) of the crazy crap that people throw at us. 240# (most) of the crazy crap that people throw at us.
460 AC_PROG_LIBTOOL AM_PROG_LIBTOOL LT_INIT 466 AC_PROG_LIBTOOL AM_PROG_LIBTOOL LT_INIT
461 AC_CONFIG_HEADERS 467 AC_CONFIG_HEADERS
462 AC_CONFIG_SUBDIRS 468 AC_CONFIG_SUBDIRS
463 AC_CONFIG_AUX_DIR AC_CONFIG_MACRO_DIR 469 AC_CONFIG_AUX_DIR AC_CONFIG_MACRO_DIR
464 AM_INIT_AUTOMAKE 470 AM_INIT_AUTOMAKE
471 AM_GLIB_GNU_GETTEXT
465 AM_GNU_GETTEXT_VERSION 472 AM_GNU_GETTEXT_VERSION
466 {AC,IT}_PROG_INTLTOOL 473 {AC,IT}_PROG_INTLTOOL
474 GTK_DOC_CHECK
475 GNOME_DOC_INIT
467) 476)
468autotools_check_macro() { 477autotools_check_macro() {
469 [[ -f configure.ac || -f configure.in ]] || return 0 478 [[ -f configure.ac || -f configure.in ]] || return 0
470 479
471 # We can run in multiple dirs, so we have to cache the trace 480 # We can run in multiple dirs, so we have to cache the trace

Legend:
Removed from v.1.143  
changed lines
  Added in v.1.144

  ViewVC Help
Powered by ViewVC 1.1.20