-
Notifications
You must be signed in to change notification settings - Fork 393
/
autogen.sh
executable file
·24 lines (20 loc) · 787 Bytes
/
autogen.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# Copyright (c) 2013 - 2016 The Bitcoin Core developers
# Copyright (c) 2019 - 2020 The Verge Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
export LC_ALL=C
set -e
git submodule update --init --recursive
srcdir="$(dirname $0)"
cd "$srcdir"
if [ -z ${LIBTOOLIZE} ] && GLIBTOOLIZE="`command -v glibtoolize 2>/dev/null`"; then
LIBTOOLIZE="${GLIBTOOLIZE}"
export LIBTOOLIZE
fi
command -v autoreconf >/dev/null || \
(echo "configuration failed, please install autoconf first" && exit 1)
autoreconf --install --force --warnings=all
echo "Configure subtrees (secp256k1 and tor)"
(cd "${srcdir}/src/secp256k1" && ./autogen.sh)
(cd "${srcdir}/src/tor" && ./autogen.sh)