--- bash-3.2.orig/aclocal.m4 2006-09-12 22:18:07.000000000 +0100 +++ bash-3.2/aclocal.m4 2006-12-31 10:51:39.000000000 +0000 @@ -1538,13 +1538,18 @@ ]) AC_DEFUN(BASH_CHECK_DEV_FD, -[AC_MSG_CHECKING(whether /dev/fd is available) +[AC_PATH_PROG(TEST, test, test) +AC_MSG_CHECKING(whether /dev/fd is available) AC_CACHE_VAL(bash_cv_dev_fd, [bash_cv_dev_fd="" if test -d /dev/fd && test -r /dev/fd/0 < /dev/null; then # check for systems like FreeBSD 5 that only provide /dev/fd/[012] exec 3&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_TEST+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $TEST in + [\\/]* | ?:[\\/]*) + ac_cv_path_TEST="$TEST" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_TEST="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + + test -z "$ac_cv_path_TEST" && ac_cv_path_TEST="test" + ;; +esac +fi +TEST=$ac_cv_path_TEST +if test -n "$TEST"; then + echo "$as_me:$LINENO: result: $TEST" >&5 + echo "${ECHO_T}$TEST" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 + echo "${ECHO_T}no" >&6 +fi + echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5 echo $ECHO_N "checking whether /dev/fd is available... $ECHO_C" >&6 @@ -27179,7 +27219,11 @@ if test -d /dev/fd && test -r /dev/fd/0 < /dev/null; then # check for systems like FreeBSD 5 that only provide /dev/fd/[012] exec 3