diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2020-12-09 15:16:36 +0100 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2020-12-09 15:17:59 +0100 |
commit | 6cc76ab7680a0ed328810f9dcea63dd859c26ad6 (patch) | |
tree | 38415ed8b469fb420f38f03ac46343ca1206c0a0 /eclass/autotools.eclass | |
parent | sys-devel/autoconf: Minor style adjustments (diff) | |
download | gentoo-6cc76ab7680a0ed328810f9dcea63dd859c26ad6.tar.gz gentoo-6cc76ab7680a0ed328810f9dcea63dd859c26ad6.tar.bz2 gentoo-6cc76ab7680a0ed328810f9dcea63dd859c26ad6.zip |
autotools.eclass: Simplified config.{guess,sub} handling a bit
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'eclass/autotools.eclass')
-rw-r--r-- | eclass/autotools.eclass | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass index adeef7b17bea..d7ce23bfdf35 100644 --- a/eclass/autotools.eclass +++ b/eclass/autotools.eclass @@ -357,17 +357,18 @@ eautoconf() { eqawarn "when it finds this file. See https://bugs.gentoo.org/426262 for details." fi - # Install config.guess and config.sub which are required by many macros in Autoconf >=2.70. + # 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) - cp "${EPREFIX}/usr/share/gnuconfig/config.guess" . || die - cp "${EPREFIX}/usr/share/gnuconfig/config.sub" . || die - ;; + gnuconfig="${EPREFIX}/usr/share/gnuconfig" + ;; *) - cp "${BROOT}/usr/share/gnuconfig/config.guess" . || die - cp "${BROOT}/usr/share/gnuconfig/config.sub" . || die - ;; + gnuconfig="${BROOT}/usr/share/gnuconfig" + ;; esac + cp "${gnuconfig}"/config.{guess,sub} . || die autotools_run_tool --at-m4flags autoconf "$@" } |