diff options
Diffstat (limited to 'eclass/autotools.eclass')
-rw-r--r-- | eclass/autotools.eclass | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass index 625abd0e9d12..adeef7b17bea 100644 --- a/eclass/autotools.eclass +++ b/eclass/autotools.eclass @@ -357,6 +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. + 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 + ;; + *) + cp "${BROOT}/usr/share/gnuconfig/config.guess" . || die + cp "${BROOT}/usr/share/gnuconfig/config.sub" . || die + ;; + esac + autotools_run_tool --at-m4flags autoconf "$@" } |