eclass/autotools: Sync with Gentoo

It's from Gentoo commit 5ff4a902b3706209c6fe148d9e3c621f6cc53ba4.
This commit is contained in:
Flatcar Buildbot 2024-10-07 07:05:33 +00:00 committed by Krzesimir Nowak
parent cba5fd532c
commit 3ccc1cd5d0

View File

@ -312,7 +312,13 @@ eautoreconf() {
else
eautoconf --force
fi
[[ ${AT_NOEAUTOHEADER} != "yes" ]] && eautoheader
if [[ ${AT_NOEAUTOHEADER} != "yes" ]] ; then
if [[ ${WANT_AUTOCONF} == "2.1" ]] ; then
eautoheader
else
eautoheader --force
fi
fi
[[ ${AT_NOEAUTOMAKE} != "yes" ]] && FROM_EAUTORECONF="yes" eautomake ${AM_OPTS}
if [[ ${AT_NOELIBTOOLIZE} != "yes" ]] ; then