diff options
author | Zack Weinberg <zackw@panix.com> | 2020-12-29 15:33:33 -0500 |
---|---|---|
committer | Zack Weinberg <zackw@panix.com> | 2020-12-29 15:33:33 -0500 |
commit | 07130c3e48d12ec155ac5d7630dc7477b6989904 (patch) | |
tree | 8a4124d5b43f134b213e5ff04df6165f389de7b5 /bin | |
parent | 2d0f19d84ddb13412382674fd48e6fc5c2875d0e (diff) | |
download | autoconf-07130c3e48d12ec155ac5d7630dc7477b6989904.tar.gz |
autom4te: always update the output file, even if it hasn’t changed
Automake generates a Makefile rule for regenerating the configure
script, that relies on an invocation of ‘autoconf’ always bumping the
timestamp on the configure script, even if it hasn’t changed.
The patch to make autom4te update the output file atomically
(1725c947144d9bebfe7817c2c5f0d53d884b1297) broke this.
Fixes several failures in automake’s test suite.
* bin/autom4te.in (handle_output): Always call update_file with force=1.
* tests/tools.at (autoconf: timestamp changes): New test.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/autom4te.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/autom4te.in b/bin/autom4te.in index 4c2b905c..64653a44 100644 --- a/bin/autom4te.in +++ b/bin/autom4te.in @@ -609,7 +609,9 @@ sub handle_output ($$) } $out->close(); - update_file ($scratchfile, $output, $force) + # Always update the file, even if it didn't change; + # Automake relies on this. + update_file ($scratchfile, $output, 1) if defined $scratchfile; # If no forbidden words, we're done. |