mirror of
https://github.com/madler/zlib.git
synced 2026-10-24 02:48:53 +03:00
Use command instead of which in ./configure.
This commit is contained in:
4
configure
vendored
4
configure
vendored
@@ -213,7 +213,7 @@ esac
|
||||
if test $cover -eq 1; then
|
||||
if test "$clang" -eq 1; then
|
||||
if test "$cc" = "clang"; then
|
||||
if which -s llvm-cov; then
|
||||
if command -v llvm-cov >/dev/null 2>&1; then
|
||||
GCOV="llvm-cov"
|
||||
LLVM_GCOV_FLAG="gcov"
|
||||
GCOV="llvm-cov"
|
||||
@@ -227,7 +227,7 @@ if test $cover -eq 1; then
|
||||
fi
|
||||
else
|
||||
clangV=`echo "$cc" | sed -e 's/^.*-//'`
|
||||
if which -s llvm-cov-${clangV}; then
|
||||
if command -v llvm-cov-${clangV} >/dev/null 2>&1; then
|
||||
GCOV="llvm-cov-${clangV}"
|
||||
LLVM_GCOV_FLAG="gcov"
|
||||
echo "Using ${GCOV} for coverage"
|
||||
|
||||
Reference in New Issue
Block a user