diff options
author | Sam James <sam@gentoo.org> | 2021-04-01 00:03:21 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-04-11 20:59:58 +0000 |
commit | 91d7d6378c8df8b0a116b8adcffa5268d040d515 (patch) | |
tree | 890ed823324d050c0c648d24e437e7a7009cc618 /eclass | |
parent | gnuconfig.eclass: use BDEPEND, BROOT where available (drop support for EAPI <5) (diff) | |
download | gentoo-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.eclass | 12 |
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 "$@" |