1999-02-10 Tom Tromey <tromey@cygnus.com>

* acgeneral.m4 (AC_CACHE_LOAD): Avoid sourcing special files.
	Works around bug in some versions of bash.
This commit is contained in:
Ben Elliston 1999-02-25 18:24:02 +00:00
parent 99759c687a
commit 67d8e848ec
2 changed files with 6 additions and 2 deletions

View File

@ -1032,7 +1032,9 @@ dnl AC_CACHE_LOAD()
define(AC_CACHE_LOAD,
[if test -r "$cache_file"; then
echo "loading cache $cache_file"
. $cache_file
dnl Some versions of bash will fail to source /dev/null, so we
dnl avoid doing that.
test -f "$cache_file" && . $cache_file
else
echo "creating cache $cache_file"
> $cache_file

View File

@ -1032,7 +1032,9 @@ dnl AC_CACHE_LOAD()
define(AC_CACHE_LOAD,
[if test -r "$cache_file"; then
echo "loading cache $cache_file"
. $cache_file
dnl Some versions of bash will fail to source /dev/null, so we
dnl avoid doing that.
test -f "$cache_file" && . $cache_file
else
echo "creating cache $cache_file"
> $cache_file