- # Prefer shells that are more likely to be installed in the
- # same place on all hosts of this platform. Therefore, prefer
- # shells in /bin and /usr/bin to shells in the installer's
- # PATH. Also, loop through PATH first and then through
- # shells, since less-"nice" shells in /bin and /usr/bin are
- # more likely to be installed than "nicer" shells elsewhere.
- as_save_IFS=$IFS; IFS=:
- for as_dir in /bin /usr/bin $PATH
- do
- IFS=$as_save_IFS
- case $as_dir in
- /*)
- for ac_base in sh bash ksh sh5; do
- rm -f conftest.c
- if ("$as_dir/$ac_base" -c "$ac_command") 2>/dev/null; then
- ac_cv_path_shell=$as_dir/$ac_base
- break
- fi
- done
- case $ac_cv_path_shell in
- /*) break;;
- esac;;
- esac
- done
- rm -f conftest.c;;
+ # Prefer shells that are more likely to be installed in the
+ # same place on all hosts of this platform. Therefore, prefer
+ # shells in /bin and /usr/bin to shells in the installer's
+ # PATH. Also, loop through PATH first and then through
+ # shells, since less-"nice" shells in /bin and /usr/bin are
+ # more likely to be installed than "nicer" shells elsewhere.
+ ac_break_if_good_shell=:
+ as_save_IFS=$IFS; IFS=:
+ for as_dir in /bin /usr/bin $PATH
+ do
+ IFS=$as_save_IFS
+ case $as_dir in
+ /*)
+ for ac_base in sh bash ksh sh5; do
+ rm -f conftest.c
+ if ("$as_dir/$ac_base" -c "$ac_command") 2>/dev/null; then
+ if "$as_dir/$ac_base" -c "$ac_maybe_solaris_sh_bug" 2>/dev/null
+ then
+ test "$ac_cv_path_shell" = no
+ else
+ ac_break_if_good_shell=break
+ :
+ fi && ac_cv_path_shell=$as_dir/$ac_base
+ $ac_break_if_good_shell
+ fi
+ done
+ $ac_break_if_good_shell
+ esac
+ done
+ rm -f conftest.c