From: Ben Elliston Date: Thu, 25 Feb 1999 18:24:02 +0000 (+0000) Subject: 1999-02-10 Tom Tromey X-Git-Tag: experimental-branchpoint~47 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=67d8e848ec7d4a7c6d97a8190d234786ec4c8f31;p=thirdparty%2Fautoconf.git 1999-02-10 Tom Tromey * acgeneral.m4 (AC_CACHE_LOAD): Avoid sourcing special files. Works around bug in some versions of bash. --- diff --git a/acgeneral.m4 b/acgeneral.m4 index c1c3a6f2..0d4f9143 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -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 diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index c1c3a6f2..0d4f9143 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -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