| 1 | # Copyright 1999-2008 Gentoo Foundation |
1 | # Copyright 1999-2008 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.86 2009/05/18 11:24:30 flameeyes Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.87 2009/12/04 09:11:14 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 |
| … | |
… | |
| 213 | |
213 | |
| 214 | if [[ -z ${FROM_EAUTORECONF} && -f ${makefile_name}.in ]]; then |
214 | if [[ -z ${FROM_EAUTORECONF} && -f ${makefile_name}.in ]]; then |
| 215 | local used_automake |
215 | local used_automake |
| 216 | local installed_automake |
216 | local installed_automake |
| 217 | |
217 | |
| 218 | installed_automake=$(automake --version | head -n 1 | \ |
218 | installed_automake=$(WANT_AUTOMAKE= automake --version | head -n 1 | \ |
| 219 | sed -e 's:.*(GNU automake) ::') |
219 | sed -e 's:.*(GNU automake) ::') |
| 220 | used_automake=$(head -n 1 < ${makefile_name}.in | \ |
220 | used_automake=$(head -n 1 < ${makefile_name}.in | \ |
| 221 | sed -e 's:.*by automake \(.*\) from .*:\1:') |
221 | sed -e 's:.*by automake \(.*\) from .*:\1:') |
| 222 | |
222 | |
| 223 | if [[ ${installed_automake} != ${used_automake} ]]; then |
223 | if [[ ${installed_automake} != ${used_automake} ]]; then |