2013-11-28 02:21:40 +01:00
|
|
|
#!/bin/sh
|
2019-12-30 10:39:22 +01:00
|
|
|
# Copyright (c) 2013-2019 The Bitcoin Core developers
|
2016-09-22 00:35:21 +02:00
|
|
|
# Distributed under the MIT software license, see the accompanying
|
|
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2018-06-13 16:50:48 +02:00
|
|
|
export LC_ALL=C
|
2013-11-28 02:24:26 +01:00
|
|
|
set -e
|
2019-10-07 23:02:46 +02:00
|
|
|
srcdir="$(dirname "$0")"
|
2013-11-28 02:25:58 +01:00
|
|
|
cd "$srcdir"
|
2019-10-07 23:02:46 +02:00
|
|
|
if [ -z "${LIBTOOLIZE}" ] && GLIBTOOLIZE="$(command -v glibtoolize)"; then
|
2014-10-03 20:58:59 +02:00
|
|
|
LIBTOOLIZE="${GLIBTOOLIZE}"
|
|
|
|
export LIBTOOLIZE
|
2014-06-06 16:23:34 +02:00
|
|
|
fi
|
2019-07-02 18:48:08 +02:00
|
|
|
command -v autoreconf >/dev/null || \
|
2016-02-12 21:44:42 +01:00
|
|
|
(echo "configuration failed, please install autoconf first" && exit 1)
|
2014-08-26 11:39:32 +02:00
|
|
|
autoreconf --install --force --warnings=all
|
2022-10-30 13:54:37 +01:00
|
|
|
|
|
|
|
if expr "'$(build-aux/config.guess --timestamp)" \< "'$(depends/config.guess --timestamp)" > /dev/null; then
|
2023-06-13 14:33:58 +02:00
|
|
|
chmod ug+w build-aux/config.guess
|
|
|
|
chmod ug+w src/secp256k1/build-aux/config.guess
|
2022-10-30 13:54:37 +01:00
|
|
|
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
|
2023-06-13 14:33:58 +02:00
|
|
|
chmod ug+w build-aux/config.sub
|
|
|
|
chmod ug+w src/secp256k1/build-aux/config.sub
|
2022-10-30 13:54:37 +01:00
|
|
|
cp depends/config.sub build-aux
|
|
|
|
cp depends/config.sub src/secp256k1/build-aux
|
|
|
|
fi
|