summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-04-01 00:03:21 +0000
committerSam James <sam@gentoo.org>2021-04-11 20:59:58 +0000
commit91d7d6378c8df8b0a116b8adcffa5268d040d515 (patch)
tree890ed823324d050c0c648d24e437e7a7009cc618 /eclass
parentgnuconfig.eclass: use BDEPEND, BROOT where available (drop support for EAPI <5) (diff)
downloadgentoo-91d7d6378c8df8b0a116b8adcffa5268d040d515.tar.gz
gentoo-91d7d6378c8df8b0a116b8adcffa5268d040d515.tar.bz2
gentoo-91d7d6378c8df8b0a116b8adcffa5268d040d515.zip
autotools.eclass: use gnuconfig.eclass for finding latest config.{guess, sub}
No need to duplicate logic. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/autotools.eclass12
1 files changed, 2 insertions, 10 deletions
diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass
index 04d94d882607..054a31781e72 100644
--- a/eclass/autotools.eclass
+++ b/eclass/autotools.eclass
@@ -35,7 +35,7 @@ case ${EAPI:-0} in
*) die "${ECLASS}: EAPI ${EAPI} not supported" ;;
esac
-inherit libtool
+inherit gnuconfig libtool
# @ECLASS-VARIABLE: WANT_AUTOCONF
# @PRE_INHERIT
@@ -400,15 +400,7 @@ eautoconf() {
# Install config.guess and config.sub which are required by many macros
# in autoconf >=2.70.
- local _gnuconfig
- case ${EAPI:-0} in
- 0|1|2|3|4|5|6)
- _gnuconfig="${EPREFIX}/usr/share/gnuconfig"
- ;;
- *)
- _gnuconfig="${BROOT}/usr/share/gnuconfig"
- ;;
- esac
+ local _gnuconfig=$(gnuconfig_findnewest)
cp "${_gnuconfig}"/config.{guess,sub} . || die
autotools_run_tool --at-m4flags autoconf "$@"