autogen.sh: which -> command -v
command -v is a POSIX standard, available in all POSIX sh. which is not. Prefer command -v for portability.
This commit is contained in:
+5
-5
@@ -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
|
rm -f configure config.h config.h.in src/lib/Makefile.in
|
||||||
|
|
||||||
AUTOCONF=$(which autoconf)
|
AUTOCONF=$(command -v autoconf)
|
||||||
AUTOMAKE=$(which automake)
|
AUTOMAKE=$(command -v automake)
|
||||||
LIBTOOL=$(which libtool)
|
LIBTOOL=$(command -v libtool)
|
||||||
LIBTOOLIZE=$(which libtoolize)
|
LIBTOOLIZE=$(command -v libtoolize)
|
||||||
AUTORECONF=$(which autoreconf)
|
AUTORECONF=$(command -v autoreconf)
|
||||||
|
|
||||||
if test -z $AUTOCONF; then
|
if test -z $AUTOCONF; then
|
||||||
echo "autoconf is missing: please install it and try again"
|
echo "autoconf is missing: please install it and try again"
|
||||||
|
|||||||
Reference in New Issue
Block a user