From be38c3d90e143b2998e41c3b9880405d1733b3b9 Mon Sep 17 00:00:00 2001 From: Bjørn Forsman Date: Sun, 18 Feb 2018 18:46:04 +0100 Subject: autogen.sh: which -> command -v command -v is a POSIX standard, available in all POSIX sh. which is not. Prefer command -v for portability. --- autogen.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/autogen.sh b/autogen.sh index 0b6dbfc43..b6c256bda 100755 --- a/autogen.sh +++ b/autogen.sh @@ -7,11 +7,11 @@ NDPI_VERSION_SHORT="$NDPI_MAJOR.$NDPI_MINOR.$NDPI_PATCH" rm -f configure config.h config.h.in src/lib/Makefile.in -AUTOCONF=$(which autoconf) -AUTOMAKE=$(which automake) -LIBTOOL=$(which libtool) -LIBTOOLIZE=$(which libtoolize) -AUTORECONF=$(which autoreconf) +AUTOCONF=$(command -v autoconf) +AUTOMAKE=$(command -v automake) +LIBTOOL=$(command -v libtool) +LIBTOOLIZE=$(command -v libtoolize) +AUTORECONF=$(command -v autoreconf) if test -z $AUTOCONF; then echo "autoconf is missing: please install it and try again" -- cgit v1.2.3