From: Fam Zheng <f...@redhat.com> Using "has" is more slick because which(1) is not always there.
Signed-off-by: Fam Zheng <f...@redhat.com> Reviewed-by: Stefan Weil <s...@weilnetz.de> Reviewed-by: Amos Kong <ak...@redhat.com> Signed-off-by: Michael Tokarev <m...@tls.msk.ru> --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 47048f0..cae588c 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 -- 2.1.3