build: Use newest `config.{guess,sub}` available

This commit is contained in:
Hennadii Stepanov 2022-10-30 12:54:37 +00:00
parent 397ed22162
commit ea7b852849
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F
1 changed files with 9 additions and 0 deletions

View File

@ -14,3 +14,12 @@ fi
command -v autoreconf >/dev/null || \
(echo "configuration failed, please install autoconf first" && exit 1)
autoreconf --install --force --warnings=all
if expr "'$(build-aux/config.guess --timestamp)" \< "'$(depends/config.guess --timestamp)" > /dev/null; then
cp depends/config.guess build-aux
cp depends/config.guess src/secp256k1/build-aux
fi
if expr "'$(build-aux/config.sub --timestamp)" \< "'$(depends/config.sub --timestamp)" > /dev/null; then
cp depends/config.sub build-aux
cp depends/config.sub src/secp256k1/build-aux
fi