/[autoconf]/autoconf/tests/torture.at
ViewVC logotype

Diff of /autoconf/tests/torture.at

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.36 by akim, Sat Sep 28 14:10:46 2002 UTC revision 1.37 by akim, Fri Oct 11 12:05:40 2002 UTC
# Line 58  m4_define([AT_CHECK_AC_ARG_VAR], Line 58  m4_define([AT_CHECK_AC_ARG_VAR],
58  m4_ifval([$1],  m4_ifval([$1],
59           [precious='$1'; export precious],           [precious='$1'; export precious],
60           [unset precious])           [unset precious])
61  AT_CHECK_CONFIGURE([--config-cache])  AT_CHECK_CONFIGURE([--config-cache -q])
62  AT_CHECK([cat file], [], [`$1'  AT_CHECK([cat file], [], [`$1'
63  ])  ])
64    
65  # Testing --recheck.  # Testing --recheck: 1. have the environment `forget' about PRECIOUS.
66  unset precious  unset precious
67    # 2. Rerun config.status to recreate `file'.
68  AT_CHECK([./config.status --recheck], [], [ignore])  AT_CHECK([./config.status --recheck], [], [ignore])
69  AT_CHECK([./config.status], [], [ignore])  AT_CHECK([./config.status], [], [ignore])
70    # 3. Check that file contains the old value of PRECIOUS.
71  AT_CHECK([cat file], [], [`$1'  AT_CHECK([cat file], [], [`$1'
72  ])  ])
73    
74  # Second value.  # Second value: we should issue an error here: the value
75    # has changed!
76  m4_ifval([$2],  m4_ifval([$2],
77           [precious='$2'; export precious],           [precious='$2'; export precious],
78           [unset precious])           [unset precious])
# Line 93  fi Line 96  fi
96  AT_DATA([configure.ac],  AT_DATA([configure.ac],
97  [[AC_INIT  [[AC_INIT
98  AC_ARG_VAR([precious], [this variable costs a lot])  AC_ARG_VAR([precious], [this variable costs a lot])
99    echo "precious:$precious"
100  AC_OUTPUT(file)  AC_OUTPUT(file)
101  ]])  ]])
102    

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26