configure: use 'command -v' instead of 'which'

This commit is contained in:
Thomas Bernard 2021-09-30 01:33:10 +02:00
parent 6e16650bc2
commit d2f558f659
No known key found for this signature in database
GPG Key ID: DB511043A31ACAAF
1 changed files with 2 additions and 2 deletions

4
miniupnpd/configure vendored
View File

@ -80,7 +80,7 @@ CONFIGFILE=`mktemp tmp.config.h.XXXXXXXXXX`
CONFIGFILE_FINAL="config.h" CONFIGFILE_FINAL="config.h"
CONFIGMACRO="CONFIG_H_INCLUDED" CONFIGMACRO="CONFIG_H_INCLUDED"
if [ -z "$PKG_CONFIG" ] ; then if [ -z "$PKG_CONFIG" ] ; then
PKG_CONFIG=`which pkg-config` PKG_CONFIG=`command -v pkg-config`
fi fi
MINIUPNPD_DATE=`date +"%Y%m%d"` MINIUPNPD_DATE=`date +"%Y%m%d"`
@ -350,7 +350,7 @@ case $OS_NAME in
OS_URL=https://www.clearos.com/ OS_URL=https://www.clearos.com/
fi fi
# use lsb_release (Linux Standard Base) when available # use lsb_release (Linux Standard Base) when available
LSB_RELEASE=`which lsb_release` LSB_RELEASE=`command -v lsb_release`
if [ 0 -eq $? ]; then if [ 0 -eq $? ]; then
OS_NAME=`${LSB_RELEASE} -i -s` OS_NAME=`${LSB_RELEASE} -i -s`
OS_VERSION=`${LSB_RELEASE} -r -s` OS_VERSION=`${LSB_RELEASE} -r -s`