Ralf Wildenhues <[EMAIL PROTECTED]> writes: > Looks ok to me (untested). Doesn't Autotest though guarantee that each > test runs in its own subshell, saving you from the need to unset,
I didn't know that. OK, thanks, I installed the following simpler patch instead. --- torture.at 23 Jun 2006 14:56:30 -0000 1.65 +++ torture.at 7 Jul 2006 20:22:15 -0000 1.68 @@ -794,6 +794,11 @@ AT_CHECK([aclocal --version || exit 77], # It should understand configure.ac. AT_CHECK([[grep '1.[01234]' stdout && exit 77]], [1], [ignore]) +# Set CONFIG_SITE to a nonexistent file, so that there are +# no worries about nonstandard values for 'prefix'. +CONFIG_SITE=no-such-file +export CONFIG_SITE + # The contents of `inner/', and `inner/innermost/'. AS_MKDIR_P([inner/innermost]) @@ -862,12 +867,9 @@ prefix=/usr/local ]) # Make sure precious variables and command line options are properly -# passed, even when there are duplicates. Run another directory so -# that if the user has set config.site to have a config.cache, then -# the two runs don't have colliding caches. -AS_MKDIR_P([builddir2]) -AT_CHECK([cd builddir2 && ../configure --prefix /bad --prefix /good INNER=bad INNER=good], 0, [ignore]) -AT_CHECK([cat builddir2/inner/innermost/config], 0, +# passed, even when there are duplicates. +AT_CHECK([cd builddir && ../configure --prefix /bad --prefix /good INNER=bad INNER=good], 0, [ignore]) +AT_CHECK([cat builddir/inner/innermost/config], 0, [INNER=good srcdir=../../../inner/innermost top_srcdir=../../../inner
