From: Fam Zheng Date: Thu, 4 Dec 2014 06:18:16 +0000 (+0800) Subject: configure: Replace which(1) with "has" X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8ccefb91bf0b4be7a7434c55dae77ed3acb39f68;p=qemu.git configure: Replace which(1) with "has" Using "has" is more slick because which(1) is not always there. Signed-off-by: Fam Zheng Reviewed-by: Stefan Weil Reviewed-by: Amos Kong Signed-off-by: Michael Tokarev --- 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