summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Jaroszyński <peper@gentoo.org>2006-10-26 22:05:21 +0000
committerPiotr Jaroszyński <peper@gentoo.org>2006-10-26 22:05:21 +0000
commitac21b3e8f32a9f603c83140db3eb38128db72ec0 (patch)
treef69b36a66c6422e7e2e4d8e5624da4947e61511f /eclass/autotools.eclass
parentUpdating deps (diff)
downloadgentoo-2-ac21b3e8f32a9f603c83140db3eb38128db72ec0.tar.gz
gentoo-2-ac21b3e8f32a9f603c83140db3eb38128db72ec0.tar.bz2
gentoo-2-ac21b3e8f32a9f603c83140db3eb38128db72ec0.zip
Fix WANT_AUTOMAKE=latest.
Diffstat (limited to 'eclass/autotools.eclass')
-rw-r--r--eclass/autotools.eclass8
1 files changed, 3 insertions, 5 deletions
diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass
index 552ccee90b7a..1559488da921 100644
--- a/eclass/autotools.eclass
+++ b/eclass/autotools.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.52 2006/10/25 18:30:01 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.53 2006/10/26 22:05:21 peper Exp $
#
# Author: Diego Pettenò <flameeyes@gentoo.org>
# Enhancements: Martin Schlemmer <azarah@gentoo.org>
@@ -202,10 +202,8 @@ autotools_set_versions() {
if [[ -n ${WANT_AUTOMAKE} ]]; then
if [[ ${WANT_AUTOMAKE} == "latest" ]]; then
for amver in 1.10 1.9 1.8 1.7 1.6; do
- WANT_AUTOMAKE="${amver}"
- if WANT_AUTOMAKE="${amver}" automake --version &> /dev/null; then
- break
- fi
+ has_version "=sys-devel/automake-${amver}*" && \
+ WANT_AUTOMAKE="${amver}" && break
done
fi
export WANT_AUTOMAKE