summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2014-12-04 14:18:16 +0800
committerMichael Tokarev <mjt@tls.msk.ru>2014-12-10 11:35:36 +0300
commit8ccefb91bf0b4be7a7434c55dae77ed3acb39f68 (patch)
treef547366e169b663b2c8d2280f8c29048ec445563
parente1cf5582644ef63528993fb2b88dd3b43b9914c6 (diff)
downloadfocaccia-qemu-8ccefb91bf0b4be7a7434c55dae77ed3acb39f68.tar.gz
focaccia-qemu-8ccefb91bf0b4be7a7434c55dae77ed3acb39f68.zip
configure: Replace which(1) with "has"
Using "has" is more slick because which(1) is not always there.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Amos Kong <akong@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 47048f0086..cae588c128 100755
--- a/configure
+++ b/configure
@@ -2727,7 +2727,7 @@ fi
 if test "$modules" = yes; then
     shacmd_probe="sha1sum sha1 shasum"
     for c in $shacmd_probe; do
-        if which $c >/dev/null 2>&1; then
+        if has $c; then
             shacmd="$c"
             break
         fi