Commit f8b0f9b for zlib
commit f8b0f9b8719226d51054522490e39f5c8d2f3ca4
Author: Mark Adler <git@madler.net>
Date: Mon Feb 16 23:28:11 2026 -0800
Use command instead of which in ./configure.
diff --git a/configure b/configure
index e7b2b31..bc72344 100755
--- a/configure
+++ b/configure
@@ -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"