Skip to content

Commit 9c93264

Browse files
committed
Update autogen.sh
1 parent 1697431 commit 9c93264

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

autogen.sh

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
#!/bin/sh
2-
# Copyright (c) 2013-2016 The Bitcoin Core developers
2+
# Copyright (c) 2013-2019 The Bitcoin Core developers
33
# Distributed under the MIT software license, see the accompanying
44
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
55

6+
export LC_ALL=C
67
set -e
7-
srcdir="$(dirname $0)"
8+
srcdir="$(dirname "$0")"
89
cd "$srcdir"
9-
if [ -z ${LIBTOOLIZE} ] && GLIBTOOLIZE="`which glibtoolize 2>/dev/null`"; then
10+
if [ -z "${LIBTOOLIZE}" ] && GLIBTOOLIZE="$(command -v glibtoolize)"; then
1011
LIBTOOLIZE="${GLIBTOOLIZE}"
1112
export LIBTOOLIZE
1213
fi
13-
which autoreconf >/dev/null || \
14+
command -v autoreconf >/dev/null || \
1415
(echo "configuration failed, please install autoconf first" && exit 1)
1516
autoreconf --install --force --warnings=all

0 commit comments

Comments
 (0)