1
0
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:
Mark Adler
2026-02-16 23:28:11 -08:00
parent 40d05192c7
commit f8b0f9b871

4
configure vendored
View File

@@ -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"