* lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'

variables shall be overriden by the cache.
* tests/torture.at (AC_ARG_VAR): Test also with a first value
that contains braces.
This commit is contained in:
Ralf Wildenhues 2006-04-08 09:07:05 +00:00
parent 8acf1027fb
commit 115e3bf448
3 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2006-04-08 Stepan Kasal <kasal@ucw.cz>,
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
variables shall be overriden by the cache.
* tests/torture.at (AC_ARG_VAR): Test also with a first value
that contains braces.
2006-04-07 Stepan Kasal <kasal@ucw.cz>
Revert the patch from 2006-04-01 and only improve

View File

@ -1880,11 +1880,12 @@ _ACEOF
_AC_CACHE_DUMP() |
sed ['
/^ac_cv_env_/b end
t clear
:clear
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
t end
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
:end'] >>confcache
if diff $cache_file confcache >/dev/null 2>&1; then :; else
if test -w $cache_file; then

View File

@ -116,6 +116,9 @@ AT_CHECK_AC_ARG_VAR([apple of my eye], [])
# Change a precious variable
AT_CHECK_AC_ARG_VAR([apple of my eye], [orange of my eye])
# Change a precious variable that contains braces
AT_CHECK_AC_ARG_VAR([apple of my {eye}], [orange of my eye])
AT_CLEANUP