autoconf/lib
Ralf Wildenhues 5ccf45a370 Diagnose and guard against write errors dealing with config.status.
The general idea is this: all write failures from `configure'
writing `config.status' are indicated by $ac_write_error, which
is only checked at the end.  This is safe because config.status
code is not executed before the file is complete.  Other write
failures, be they inside config.status, or in sub shell/awk
scripts spawned from configure or config.status, typically need
earlier checking, as their results are used right afterwards.
* lib/autoconf/status.m4 (AC_OUTPUT): Initialize `ac_write_fail'
before writing config.status, check afterwards.
(_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
(_AC_OUTPUT_HEADERS_PREPARE,_AC_OUTPUT_CONFIG_STATUS):
Set `ac_write_error' for write failures to config.status.  Barf
upon write failures to temporary files.
Adjust note about closing and reopening the here-document.
(_AC_OUTPUT_HEADER, _AC_OUTPUT_LINK, _AC_OUTPUT_COMMAND)
(_AC_OUTPUT_MAIN_LOOP): Likewise, adjust note about closing and
reopening the here-document.
* tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
Ensure `ac_write_error' does not escape into config.status.
Also, add a couple of code paths not yet exercised in the test
suite: a config file with input from stdin, and a config header
output to stdout.
Suggestion for catching write errors by Bruno Haible.
2007-11-18 14:03:06 +01:00
..
autoconf Diagnose and guard against write errors dealing with config.status. 2007-11-18 14:03:06 +01:00
Autom4te Remove all generated files from version control. 2007-10-27 12:44:59 +02:00
autoscan Remove two more generated files from version control. 2007-11-11 09:22:43 +01:00
autotest Avoid error with Tru64 awk and testsuite lines with many words. 2007-11-17 09:36:17 +01:00
emacs Remove all generated files from version control. 2007-10-27 12:44:59 +02:00
m4sugar * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Use $as_me, not $me. 2007-11-14 21:55:59 +01:00
.cvsignore Extend. 2001-09-17 21:11:22 +00:00
.gitignore Prepare for conversion to git. 2007-09-14 22:25:56 +00:00
autom4te.in Reword the copyright notices to match what's suggested in GPLv3. 2007-07-20 23:11:49 +00:00
freeze.mk Whenever possible, use the vertical bar as sed delimiter. 2007-09-24 21:57:21 +02:00
Makefile.am Reword the copyright notices to match what's suggested in GPLv3. 2007-07-20 23:11:49 +00:00