aboutsummaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-10-30 12:54:37 +0000
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2023-04-23 11:26:11 +0100
commitea7b8528490d330f0f4e34e9b26ab00ba528f546 (patch)
tree550f8771f9cdb4ebe043928bb698fedbf08a9c4d /autogen.sh
parent397ed22162f05fa7fb27c2e5f49f5917884b4716 (diff)
build: Use newest `config.{guess,sub}` available
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index de16260b56..d0ac7ef7ed 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -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