From: Akim Demaille Date: Fri, 11 Oct 2002 12:05:39 +0000 (+0000) Subject: * tests/torture.at (AC_ARG_VAR): Have configure report the value X-Git-Tag: AUTOCONF-2.54a~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9877a5cee44c51cf362aecd0a89e97e0fac48249;p=thirdparty%2Fautoconf.git * tests/torture.at (AC_ARG_VAR): Have configure report the value of `precious'. --- diff --git a/ChangeLog b/ChangeLog index 1c9ec50e0..136f29852 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-10-11 Akim Demaille + + * tests/torture.at (AC_ARG_VAR): Have configure report the value + of `precious'. + 2002-10-11 Akim Demaille * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the diff --git a/tests/torture.at b/tests/torture.at index ac6a37329..1eae31166 100644 --- a/tests/torture.at +++ b/tests/torture.at @@ -58,18 +58,21 @@ m4_define([AT_CHECK_AC_ARG_VAR], m4_ifval([$1], [precious='$1'; export precious], [unset precious]) -AT_CHECK_CONFIGURE([--config-cache]) +AT_CHECK_CONFIGURE([--config-cache -q]) AT_CHECK([cat file], [], [`$1' ]) -# Testing --recheck. +# Testing --recheck: 1. have the environment `forget' about PRECIOUS. unset precious +# 2. Rerun config.status to recreate `file'. AT_CHECK([./config.status --recheck], [], [ignore]) AT_CHECK([./config.status], [], [ignore]) +# 3. Check that file contains the old value of PRECIOUS. AT_CHECK([cat file], [], [`$1' ]) -# Second value. +# Second value: we should issue an error here: the value +# has changed! m4_ifval([$2], [precious='$2'; export precious], [unset precious]) @@ -93,6 +96,7 @@ fi AT_DATA([configure.ac], [[AC_INIT AC_ARG_VAR([precious], [this variable costs a lot]) +echo "precious:$precious" AC_OUTPUT(file) ]])