2006-10-04 Paul Eggert * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Use AS_EXECUTABLE_P rather than test -f. Index: lib/m4sugar/m4sh.m4 =================================================================== RCS file: /cvsroot/autoconf/autoconf/lib/m4sugar/m4sh.m4,v retrieving revision 1.194 retrieving revision 1.195 diff -u -r1.194 -r1.195 --- lib/m4sugar/m4sh.m4 4 Oct 2006 18:53:19 -0000 1.194 +++ lib/m4sugar/m4sh.m4 4 Oct 2006 21:16:06 -0000 1.195 @@ -255,7 +255,7 @@ for as_shell in $as_candidate_shells $SHELL; do # Try only shells that exist, to save several forks. - AS_IF([{ test -f "$as_shell" || test -f "$as_shell.exe"; } && + AS_IF([AS_EXECUTABLE_P(["$as_shell"]) && _AS_RUN([_AS_DETECT_REQUIRED_BODY], [("$as_shell") 2> /dev/null])], [CONFIG_SHELL=$as_shell