| 1 | # Copyright 1999-2005 Gentoo Foundation |
1 | # Copyright 1999-2005 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.42 2006/09/20 18:55:44 flameeyes Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.43 2006/09/20 19:10:36 flameeyes Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Diego Pettenò <flameeyes@gentoo.org> |
5 | # Author: Diego Pettenò <flameeyes@gentoo.org> |
| 6 | # Enhancements: Martin Schlemmer <azarah@gentoo.org> |
6 | # Enhancements: Martin Schlemmer <azarah@gentoo.org> |
| 7 | # |
7 | # |
| 8 | # This eclass is for handling autotooled software packages that |
8 | # This eclass is for handling autotooled software packages that |
| … | |
… | |
| 150 | eautomake() { |
150 | eautomake() { |
| 151 | local extra_opts |
151 | local extra_opts |
| 152 | |
152 | |
| 153 | [[ -f Makefile.am ]] || return 0 |
153 | [[ -f Makefile.am ]] || return 0 |
| 154 | |
154 | |
|
|
155 | if [[ -n ${WANT_AUTOMAKE} ]]; then |
|
|
156 | export WANT_AUTOMAKE # let the automake wrapper pick it up |
|
|
157 | einfo "Required automake ${WANT_AUTOMAKE}. Using $(automake --version | head -n 1)." |
|
|
158 | fi |
|
|
159 | |
| 155 | if [[ -z ${FROM_EAUTORECONF} && -f Makefile.in ]]; then |
160 | if [[ -z ${FROM_EAUTORECONF} && -f Makefile.in ]]; then |
| 156 | local used_automake |
161 | local used_automake |
| 157 | local installed_automake |
162 | local installed_automake |
| 158 | |
163 | |
| 159 | installed_automake=$(automake --version | head -n 1 | \ |
164 | installed_automake=$(automake --version | head -n 1 | \ |