about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Darakananda <pongad@gmail.com>2014-03-29 00:16:41 -0400
committerMichael Darakananda <pongad@gmail.com>2014-03-29 00:16:58 -0400
commit092eefcfb21737364033a2b93fff0bc58af8a3e6 (patch)
treec2d867710e4278a5070136add36e7bfe826a3dab
parentb334f7c3cc3fcab8170ccb46a1f9a12702a2582c (diff)
downloadrust-092eefcfb21737364033a2b93fff0bc58af8a3e6.tar.gz
rust-092eefcfb21737364033a2b93fff0bc58af8a3e6.zip
configure uses `command -v` instead of `which` #13147
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index b2b861a019a..784362808d2 100755
--- a/configure
+++ b/configure
@@ -27,7 +27,7 @@ need_ok() {
 }
 
 need_cmd() {
-    if which $1 >/dev/null 2>&1
+    if command -v $1 >/dev/null 2>&1
     then msg "found $1"
     else err "need $1"
     fi
@@ -83,7 +83,7 @@ probe() {
     local T
     for P
     do
-        T=$(which $P 2>&1)
+        T=$(command -v $P 2>&1)
         if [ $? -eq 0 ]
         then
             VER0=$($P --version 2>/dev/null | head -1 \