Break out of loop when first POSIX-compatible shell is found

This commit is contained in:
Ondřej Surý
2018-12-17 22:37:53 +01:00
parent 39f6d33002
commit cc0a3c5d3c
2 changed files with 2 additions and 2 deletions

2
configure vendored
View File

@@ -11699,7 +11699,7 @@ else
/*) :
if "$ac_cv_prog_shell" -c "$ac_test_shell_script" 2>/dev/null; then :
ac_cv_path_shell=$SHELL
break
fi
;; #(
*) :

View File

@@ -14,7 +14,7 @@ AC_DEFUN([AX_POSIX_SHELL],
AS_CASE([$ac_cv_prog_shell],
[/*],[
AS_IF(["$ac_cv_prog_shell" -c "$ac_test_shell_script" 2>/dev/null],
[ac_cv_path_shell=$SHELL])
[break])
])
done
])