2015-05-18 09:33:39 +02:00
|
|
|
# This hook overrides config.sub and config.guess.
|
2015-03-22 19:09:14 +01:00
|
|
|
|
|
|
|
hook() {
|
2019-11-18 18:29:21 +01:00
|
|
|
local _cfgdir="${XBPS_COMMONDIR}/environment/configure/automake"
|
|
|
|
|
2015-03-22 19:09:14 +01:00
|
|
|
if [ -z "$build_style" -o "$build_style" = "gnu-configure" ]; then
|
2020-09-02 19:04:41 +02:00
|
|
|
for f in $(find "${wrksrc}" -type f -name "*config*.sub"); do
|
2019-11-18 18:29:21 +01:00
|
|
|
cp -f ${_cfgdir}/config.sub ${f}
|
2015-03-22 19:09:14 +01:00
|
|
|
done
|
2020-09-02 19:04:41 +02:00
|
|
|
for f in $(find "${wrksrc}" -type f -name "*config*.guess"); do
|
2019-11-18 18:29:21 +01:00
|
|
|
cp -f ${_cfgdir}/config.guess ${f}
|
2015-03-22 19:09:14 +01:00
|
|
|
done
|
|
|
|
fi
|
|
|
|
}
|