diff options
author | Fam Zheng | 2014-12-04 07:18:16 +0100 |
---|---|---|
committer | Michael Tokarev | 2014-12-10 09:35:36 +0100 |
commit | 8ccefb91bf0b4be7a7434c55dae77ed3acb39f68 (patch) | |
tree | f547366e169b663b2c8d2280f8c29048ec445563 /configure | |
parent | util: Use g_new() & friends where that makes obvious sense (diff) | |
download | qemu-8ccefb91bf0b4be7a7434c55dae77ed3acb39f68.tar.gz qemu-8ccefb91bf0b4be7a7434c55dae77ed3acb39f68.tar.xz 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>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |