summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiraty <piraty1@inbox.ru>2022-02-24 22:15:00 +0100
committerJoe Orton <jorton@apache.org>2022-03-23 14:46:48 +0000
commit332937397dbc7d4a7dde3332c58110b4dac7ca75 (patch)
tree39974e164f0f0b684e0135f34e01ab56afd310e2
parent33011cd888c7cf6030dac0d72f6ea7af350421ca (diff)
downloadneon-git-332937397dbc7d4a7dde3332c58110b4dac7ca75.tar.gz
autogen.sh: use 'command -v' instead of 'which'
which is not standardized and can even be considered problematic [1] [1] https://lwn.net/Articles/874049/
-rwxr-xr-xautogen.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 4b7251f..7d3c674 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -12,7 +12,7 @@ if test ! -f .version; then
fi
set -e
printf "libtoolize... "
-LIBTOOLIZE=${LIBTOOLIZE:-`which libtoolize || which glibtoolize`}
+: "${LIBTOOLIZE:="$(command -v libtoolize || command -v glibtoolize)"}"
if ${LIBTOOLIZE} --help | grep -- --install > /dev/null; then
${LIBTOOLIZE} --copy --force --install >/dev/null;
else