summaryrefslogtreecommitdiff
path: root/aclocal.m4~
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2011-12-03 22:51:40 -0500
committerChet Ramey <chet.ramey@case.edu>2011-12-03 22:51:40 -0500
commitf51aa1b6f67ba20958d792b6f1d2eb42cca42163 (patch)
treeae8b232f6aa5e19e9c7531ccf279eba65a084bbc /aclocal.m4~
parent723529391cfd8215032b12854f72398cfc6a4a3d (diff)
downloadbash-f51aa1b6f67ba20958d792b6f1d2eb42cca42163.tar.gz
commit bash-20060810 snapshot
Diffstat (limited to 'aclocal.m4~')
-rw-r--r--aclocal.m4~16
1 files changed, 10 insertions, 6 deletions
diff --git a/aclocal.m4~ b/aclocal.m4~
index b9539591..ad08b239 100644
--- a/aclocal.m4~
+++ b/aclocal.m4~
@@ -1540,7 +1540,8 @@ fi
AC_DEFUN(BASH_CHECK_DEV_FD,
[AC_MSG_CHECKING(whether /dev/fd is available)
AC_CACHE_VAL(bash_cv_dev_fd,
-[if test -d /dev/fd && test -r /dev/fd/0 < /dev/null; then
+[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<&0
if test -r /dev/fd/3; then
@@ -1549,11 +1550,14 @@ AC_CACHE_VAL(bash_cv_dev_fd,
bash_cv_dev_fd=absent
fi
exec 3<&-
- elif test -d /proc/self/fd && test -r /proc/self/fd/0 < /dev/null; then
- bash_cv_dev_fd=whacky
- else
- bash_cv_dev_fd=absent
- fi
+fi
+if test -z "$bash_cv_dev_fd" ; then
+ if test -d /proc/self/fd && test -r /proc/self/fd/0 < /dev/null; then
+ bash_cv_dev_fd=whacky
+ else
+ bash_cv_dev_fd=absent
+ fi
+fi
])
AC_MSG_RESULT($bash_cv_dev_fd)
if test $bash_cv_dev_fd = "standard"; then