m4sh: revert incorrect mix of "${a='b'}"
[autoconf.git] / ChangeLog
blobfa252b32fb886b3d3988030dd66afd8559f5b994
1 2010-08-25  Eric Blake  <eblake@redhat.com>
3         m4sh: revert incorrect mix of "${a='b'}"
4         * bin/autoconf.as: Revert leak of literal '' into assignment.
5         * tests/tools.at (autom4te preselections): Likewise.
7         m4sh: revert regression in AS_TMPDIR
8         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): The previous patch trying to
9         rename $tmp to $as_tmp was wrong; config.status relies on it.
11         m4sh: reduce size of AS_VAR_TEST_SET
12         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Make more compact.
14         tests: improve some shell assumption testing
15         * tests/m4sh.at (Functions Support, Functions and return Support)
16         (Negated classes in globbing): Update comments.
17         (AS@&t@_VAR basics): Test comparison to empty string.
19         docs: mention cost of globbing during variable expansion
20         * doc/autoconf.texi (Shell Substitutions) <${var=literal}>:
21         Recommend quoting substitutions that might trigger globbing.
22         (Limitations of Builtins) <:>: Likewise.
23         * bin/autoconf.as: Follow our own advice.
24         * lib/autoconf/functions.m4 (AC_FUNC_SELECT_ARGTYPES): Likewise.
25         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
26         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
27         * lib/autotest/general.m4 (_AT_FINISH): Likewise.
28         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
29         * tests/autotest.at (parallel autotest and signal handling):
30         Likewise.
31         * tests/c.at (AC_OPENMP and C, AC_OPENMP and C++): Likewise.
32         * tests/foreign.at (shtool): Likewise.
33         * tests/fortran.at: Likewise.
34         * tests/tools.at (autom4te preselections): Likewise.
35         * tests/torture.at (VPATH): Likewise.
37         m4sh: fix some namespace safety issues
38         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Avoid problems if
39         as_myself is inherited from environment.
40         (AS_TMPDIR): Be namespace clean.
42 2010-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44         tests: fix AC_CACHE_CHECK to skip with bad shells.
45         * tests/base.at (AC_CACHE_CHECK): Skip test with malformed
46         config.site file if the shell does not report syntax errors
47         from a sourced file.  Fixes test failure on AIX and FreeBSD.
48         Report from Rainer Tammer.
50 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
52         AC_HEADER_STDBOOL: avoid spurious failure with modern xlc
53         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Move the "bool e =
54         &s;" test into the main program, as C99 might plausibly be
55         interpreted as not requiring support for this construction in
56         static initializers.  Remove the "#if defined __xlc__" stuff, as
57         the bug is not present in recent xlc implementations, and they
58         reject the test for other (valid) reasons.  People using ancient
59         xlc versions, if any, are suggested to update to fixed versions.
60         Reported by Ralf Wildenhues in the thread starting at:
61         http://lists.gnu.org/archive/html/bug-autoconf/2010-08/msg00103.html
63 2010-08-24  Eric Blake  <eblake@redhat.com>
65         AC_FUNC_GETLOADAVG: don't define SVR4 on cygwin
66         * lib/autoconf/functions.m4 (_AC_LIBOBJ_GETLOADAVG): Only define
67         SVR4 when -lkvm is required.
68         * THANKS: Update.
69         Reported by Yaakov Selkowitz.
71 2010-08-23  Eric Blake  <eblake@redhat.com>
73         AC_HEADER_STDBOOL: avoid spurious clang failure
74         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Drop gcc (and by
75         extension clang) check in favor of a gnulib test.  Force failure,
76         rather than merely testing for a compiler extension.
77         * THANKS: Update.
78         Reported by Anders Kaseorg.
80 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82         doc: AIX sed dislikes indented comments.
83         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Update.
85 2010-08-19  Stefano Lattarini  <stefano.lattarini@gmail.com>
87         Fix autoreconf docs w.r.t. AUTOM4TE environment variable.
88         * doc/autoconf.texi (Using autoreconf to Update configure
89         Scripts): List `AUTOM4TE' among the environment variables
90         honored by autoreconf.
91         * bin/autoreconf.in ($help): Likewise.
93 2010-08-17  Eric Blake  <eblake@redhat.com>
95         doc: improve AS_VAR_IF details
96         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_IF>: Make it
97         clear that user must supply quotes as needed.
98         * THANKS: Update.
99         Suggested by Randall Cotton.
101 2010-08-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103         Fix Autotest --errexit to exit after XPASSing tests.
104         * lib/autotest/general.m4 (AT_INIT) <at_fn_group_postprocess>:
105         Exit after an unexpected passing test if $at_errexit.
106         * tests/autotest.at (errexit): Also try tests that xpass, skip,
107         xfail, or fail hard.
109 2010-08-14  Eric Blake  <eblake@redhat.com>
111         AC_INIT: allow bugreport to contain '?'
112         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Relax check.
113         * tests/base.at (AC_INIT with unusual version strings): Enhance
114         test.
115         * doc/autoconf.texi (Initializing configure): Document this.
116         * NEWS: Likewise.
117         * THANKS: Update.
118         Reported by Yavor Doganov and others.
120 2010-08-10  Peter Rosin  <peda@lysator.liu.se>
122         Keep testsuite files on unexpected pass.
123         * lib/autotest/general.m4 (AT_INIT) <at_fn_group_postprocess>:
124         Don't cleanup the group directory when a test unexpectedly passes.
125         * tests/autotest.at (Cleanup): Check that an unexpected pass leaves
126         the test group directory intact.
128 2010-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
130         Skip AC_FC_SRCEXT([f90]) tests with a Fortran 77 compiler in $FC.
131         * tests/fortran.at (AC_FC_FREEFORM with AC_FC_SRCEXT)
132         (AC_FC_FIXEDFORM with AC_FC_SRCEXT): Skip if the compiler cannot
133         handle files with .f90 extension.
134         Report by Luke Dalessandro.
136         Fix testsuite failures with typical m4-x.y.z program suffix.
137         * tests/local.at (AT_CHECK_M4): Normalize hyphens and digits
138         after the `m4' program name.
139         * THANKS: Update.
140         Report by Luke Dalessandro.
142 2010-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
144         Fix description of AC_CONFIG_TESTDIR to not mention atconfig.in.
145         * doc/autoconf.texi (Making testsuite Scripts): atconfig is not
146         created from an input template.
148 2010-08-05  Bruno Haible  <bruno@clisp.org>
149         and Eric Blake  <eblake@redhat.com>
151         AC_FUNC_ALLOCA: modernize
152         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Assume that alloca's
153         return type is 'void *', not 'char *'.  Supply C89 prototype.
154         Reported by Thomas Klausner.
156 2010-08-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
158         Fix testsuite failure due to bugs in third-party aclocal macros.
159         * tests/torture.at (Non-literal AC_CONFIG_SUBDIRS): Create a
160         hand-written aclocal.m4 file, so the -Werror test doesn't fail
161         over aclocal warnings about errors in third-party macro files.
162         Simplify test accordingly, calling autoreconf throughout.
163         Report by Bob Friesenhahn.
165         Fix AC_LANG_SOURCE and AC_LANG_PROGRAM tests.
166         * tests/compile.at (AC_LANG_SOURCE example)
167         (AC_LANG_PROGRAM example): Fix broken sed script for
168         extracting the interesting part of the conftest.c file.
169         Fixes test failure on Haiku.
170         * THANKS: Update.
171         Report by Scott McCreary.
173 2010-08-03  Eric Blake  <eblake@redhat.com>
175         docs: mention bash bug with word splitting
176         * doc/autoconf.texi (Shell Substitutions): Document bash bug, and
177         zsh default behavior difference.
178         Reported by Ralf Wildenhues.
180         docs: mention ksh bug with function syntax
181         * doc/autoconf.texi (Shell Functions): Document ksh93 limitation.
183 2010-08-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
185         Fix typo in Autotest color test, for dash testsuite failure.
186         * tests/autotest.at (colored test results): Use exit not
187         Exit.  Fixes test failure with dash 0.5.4.
189 2010-08-02  Eric Blake  <eblake@redhat.com>
191         docs: track recent copyright assignment
192         * AUTHORS: Add Peter Rosin.
194 2010-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
196         Add testsuite exposure for last-minute fix in 2.67.
197         * tests/autotest.at (parallel args but non-working mkfifo):
198         New test, to expose the failure v2.66-23-g991183c avoided.
200         Ensure unnamed test group categories are separated from previous.
201         * doc/autoconf.texi (Writing Testsuites) <AT_BANNER>: Update
202         description.
203         * lib/autotest/general.m4 (AT_INIT) <at_fn_banner>: Set banner
204         to single space, not empty line, once printed.  For empty
205         banners, print a single empty line to separate them from a
206         previous test group category.
207         * tests/autotest.at (Banners): Insert another test group; adjust
208         tests accordingly.  Extend test to cover semantic change.
209         * NEWS: Update.
211 2010-07-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
213         Fix typos in perlpod docs.
214         * lib/Autom4te/ChannelDefs.pm, lib/Autom4te/Channels.pm,
215         lib/Autom4te/General.pm: Fix typos and spacing in perlpod
216         documentation and in comments.
218 2010-07-29  Eric Blake  <eblake@redhat.com>
220         docs: mention ksh file descriptor limitation
221         * doc/autoconf.texi (File Descriptors): Document issue with fd 10
222         and above.
223         Reported by Ralf Wildenhues.
225         docs: mention cd limitation
226         * doc/autoconf.texi (Limitations of Builtins) <cd>: Document
227         issues with empty argument.
229 2010-07-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
231         Add missing index entries to manual.
232         * doc/autoconf.texi (Fortran Compiler, Language Choice): Add
233         index entries for AC_FC_DUMMY_MAIN, AC_LANG; reformat entry for
234         AC_LANG_ASSERT.
236 2010-07-21  Eric Blake  <eblake@redhat.com>
238         Release Version 2.67.
239         * NEWS: Mention the release.
241         Prepare for release.
242         * maint.mk (PREV_VERSION_REGEXP): New macro, missed when
243         backporting update-NEWS_hash from gnulib.
244         * cfg.mk (old_NEWS_hash): Correctly generate.
245         * build-aux/gendocs.sh: Temporarily break sync from upstream, to
246         avoid including spurious directories in info source tarball.
248         Avoid spurious testsuite failures.
249         * doc/autoconf.texi (Generating Sources): Don't mix gcc '-E' and
250         '-o -', since the former already implies stdout, while the latter
251         creates -.exe on cygwin.
252         * tests/compile.at (AC_LANG_SOURCE example)
253         (AC_LANG_PROGRAM example): Likewise.  Also prevent any config.site
254         interference.
256         Partially revert previous patch.
257         * lib/autotest/general.m4 (AT_INIT) <serial testing>: Changing
258         at_jobs here breaks output if -j2 was requested but shell is
259         insufficient to support parallel testing.
260         Reported by Ralf Wildenhues.
262         Minor testsuite size reduction.
263         * lib/autotest/general.m4 (AT_INIT) <serial testing>: Ensure
264         at_jobs is 1.
265         (AT_SETUP, AT_CLEANUP): Factor initialization code...
266         (AT_INIT) <at_fn_group_banner>: ...into new function.
267         Based in part on suggestion by Ralf Wildenhues.
269 2010-07-20  Eric Blake  <eblake@redhat.com>
271         Close job control fd before running tests.
272         * doc/autoconf.texi (File Descriptors): Clarify limitations.
273         * lib/autotest/general.m4 (AT_CLEANUP): Avoid leaking job control
274         fifo fd to user tests.
275         (AT_INIT): Delete comment, now that close is done elsewhere.
276         Suggested by Ralf Wildenhues.
278 2010-07-20 Paul Eggert  <eggert@cs.ucla.edu>
279         and Eric Blake  <eblake@redhat.com>
281         Plug race in parallel autotest.
282         * lib/autotest/general.m4 (AT_INIT) <Fifo job dispatcher>: Track
283         two fds to fifo in parent, to avoid race where parent can see EOF
284         before child opens fifo.  Avoid any atomicity problems with tokens
285         larger than one byte.
286         * NEWS: Document the bug fix.
288 2010-07-20  Eric Blake  <eblake@redhat.com>
290         Another empty argument through expr workaround.
291         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Detect empty
292         arguments.  Reject empty file argument.
293         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
294         Check for missing argument.
296         Also reject ' and newline from AC_INIT strings.
297         * lib/autoconf/general.m4 (_AC_INIT_LITERAL): Reject a couple more
298         problematic characters.
299         * tests/base.at (AC_INIT with unusual version strings): Enhance
300         test.
301         * doc/autoconf.texi (Initializing configure) <AC_INIT>: Further
302         clarifications, and clean up wording about use of m4_esyscmd.
303         * NEWS: Update previous news entry.
304         Suggested by Paolo Bonzini.
306 2010-07-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
308         Let autoreconf pass warning flags to new-enough aclocal.
309         * bin/autoreconf.in ($aclocal_supports_warnings)
310         ($automake_supports_warnings): New globals.
311         (parse_args): Set and use them.  Be sure to invoke `aclocal
312         --help' and `automake --help' just once each.
313         * NEWS: Update.
314         Prompted by report from Bruno Haible.
316         Fix parsing of empty variable settings on the command line.
317         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Work around
318         expr bug returning 0 instead of the empty string.
319         * lib/autotest/general.m4 (AT_INIT): Likewise.
321         Fix typo in the manual.
322         * doc/autoconf.texi (AC_ACT_IFELSE vs AC_TRY_ACT): Fix typo.
324 2010-07-19  Eric Blake  <eblake@redhat.com>
326         Fix up AC_INIT vs. " issues, and document it.
327         * doc/autoconf.texi (Initializing configure): Improve
328         documentation on argument restrictions.
329         * NEWS: Tweak information.
330         * lib/autoconf/general.m4 (_AC_INIT_GENERAL): New macro, that also
331         rejects literal ".
332         (_AC_INIT_PACKAGE): Use it to plug hole in last patch.
333         * tests/base.at (AC_INIT with unusual version strings): Enhance
334         test.
336 2010-07-19  Eric Blake  <eblake@redhat.com>
337         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
339         Relax AC_INIT requirements for PACKAGE and VERSION strings again.
340         * lib/m4sugar/m4sh.m4 (AS_LITERAL_HEREDOC_IF): New macro.
341         (_AS_LITERAL_HEREDOC_IF, _AS_LITERAL_HEREDOC_IF_YES)
342         (_AS_LITERAL_HEREDOC_IF_NO): New helper macros.
343         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Use
344         AS_LITERAL_HEREDOC_IF for PACKAGE and VERSION strings.
345         * tests/base.at (AC_INIT with unusual version strings): New test.
346         * tests/m4sh.at (AS@&t@_LITERAL_IF): Extend test.
347         * NEWS: Update.
349 2010-07-19  Eric Blake  <eblake@redhat.com>
351         Fix testsuite failures from previous patch.
352         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Also remove
353         conftest.i when preprocessor tests break out of a loop.
355 2010-07-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
357         Allow inspecting AC_PREPROC_IFELSE output in true branch.
358         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY): Redirect
359         preprocessor output to conftest.i rather than /dev/null.
360         (_AC_PREPROC_IFELSE): Remove conftest.i in the postprocessing.
361         * tests/compile.at (Order of user actions and cleanup): Extend
362         test in the ACTION-IF-TRUE branch.
363         * doc/autoconf.texi (Running the Preprocessor): Document new
364         feature.
365         * NEWS: Update.
367         Fix AC_FC_LIBRARY_LDFLAGS detection for BlueGene xlf -qipa.
368         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
369         '-link', added spuriously when -qipa is used with the XL
370         Fortran compilers on BlueGene.
372         manual: compiler flags -D and -L should not be followed by space
373         * doc/autoconf.texi (Preset Output Variables): Remove space
374         between -D and -L flags and their arguments, traditional cpp
375         implementations like Solaris 10, IRIX 6.5, OSF Tru64 5.1D,
376         AIX 5.3 do not accept it.
378 2010-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
380         Fix comment typo in the manual.
381         * doc/autoconf.texi (Generic Compiler Characteristics): Refer
382         to the right test in the example marker comment.
383         Spotted by Eric Blake.
385 2010-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
387         New Fortran macro AC_FC_LINE_LENGTH.
388         * lib/autoconf/fortran.m4 (AC_FC_LINE_LENGTH): New macro.
389         * doc/autoconf.texi (Fortran Compiler): Document it.
390         * tests/fortran.at (AC_FC_LINE_LENGTH): New test.
391         * NEWS: Update.
393         Fix wording about AC_CONFIG_SUBDIRS warning.
394         * doc/autoconf.texi (Subdirectories): We warn, not error, about
395         nonexistent config subdirs, but only at configure run time.
397 2010-07-10  Eric Blake  <eblake@redhat.com>
398         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
400         Fix regression of AC_CHECK_SIZEOF on pointer types.
401         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Translate `*' to `p'
402         when checking literal-ness of the type, for pointer types.
403         * lib/m4sugar/m4sh.m4 (_AS_TR_SH): Also consider `*' as literal.
404         (_AS_TR_CPP): Likewise.
405         * tests/semantics.at (AC_CHECK_ALIGNOF struct): When checking
406         for numeric answer, be sure to not allow variable references.
407         (AC_CHECK_SIZEOF struct): Likewise.  Also, test the
408         `AC_CHECK_SIZEOF([int *])' example from the manual.
409         * doc/autoconf.texi (Generic Compiler Characteristics): Add
410         example marker.
411         * NEWS: Update.
412         Reports by Nishio Futoshi and Roberto Bagnara.
414 2010-07-08  Eric Blake  <eblake@redhat.com>
415         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
417         Fix regression of AC_CONFIG_SUBDIRS with multiple arguments.
418         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Do not assume the
419         argument is a single word.
420         * tests/torture.at (Deep Package): Extend test to cover this.
421         (Non-literal AC_CONFIG_SUBDIRS): New test.
422         * doc/autoconf.texi (Subdirectories): Add example marker.
423         * NEWS: Update.
424         Report by Bruno Haible.
426 2010-07-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
428         Fix minor copy&paste leftover in m4sh tests.
429         * tests/m4sh.at (AS@&t@_TR_SH and AS@&t@_TR_CPP): Remove
430         useless variables assignements ($var, $vAr, $VAR).
432 2010-07-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
434         Fix testsuite to not trigger Solaris sh for bug.
435         * tests/torture.at (Torturing config.status)
436         (Substitute a 2000-byte string)
437         (Substitute and define special characters)
438         (Substitute a newline): Quote first argument in for list so
439         that it does not look like an assignment.
441 2010-07-02  Eric Blake  <eblake@redhat.com>
443         Post-release administrivia.
444         * maint.mk (NEWS_hash): Define.
445         * NEWS: Add header line for next release.
446         * .prev-version: Record previous version.
447         * cfg.mk (old_NEWS_hash): Auto-update.
449         Release Version 2.66.
450         * NEWS: Mention the release.
452 2010-07-02  Eric Blake  <eblake@redhat.com>
454         Pick up some maint.mk improvements from gnulib.
455         * configure.ac (AM_INIT_AUTOMAKE): Require 1.11, and build xz
456         archives by default now.
457         * maint.mk (gzip_rsyncable): Avoid non-portable echo.
458         (VC-tag): Depend on gpg_key_ID.
459         (PREV_VERSION): Don't parse error as version.
460         (announcement): Populate email addresses with defaults.
461         (emit_upload_commands, web-manual): Reflect changes in scripts.
462         (update-NEWS-hash, emit-commit-log, release-prep): New macros.
463         * cfg.mk (announcement_Cc_, announcement_mail_headers_): Override
464         defaults.
465         * HACKING: Modernize a bit.
467         Resync upstream files.
468         * GNUmakefile: Run 'make fetch'.
469         * build-aux/announce-gen: Likewise.
470         * build-aux/config.guess: Likewise.
471         * build-aux/config.sub: Likewise.
472         * build-aux/gendocs.sh: Likewise.
473         * build-aux/git-version-gen: Likewise.
474         * build-aux/gnupload: Likewise.
475         * build-aux/texinfo.tex: Likewise.
476         * build-aux/vc-list-files: Likewise.
477         * doc/gendocs_template: Likewise.
478         * doc/gnu-oids.texi: Likewise.
479         * doc/make-stds.texi: Likewise.
480         * doc/standards.texi: Likewise.
481         * lib/Autom4te/Channels.pm: Likewise.
482         * lib/Autom4te/Configure_ac.pm: Likewise.
483         * lib/Autom4te/FileUtils.pm: Likewise.
484         * lib/Autom4te/XFile.pm: Likewise.
486         Make AS_TR_SH and AS_TR_CPP similar.
487         * lib/m4sugar/m4sh.m4 (_AS_TR_CPP_LITERAL): Avoid underquoting.
488         (_AS_TR_CPP_INDIR): Handle all polymorphic variables.
489         * tests/m4sh.at (AS@&t@_TR_SH and AS@&t@_TR_CPP): New test.
490         * NEWS: Document the fix.
491         Reported by Bruno Haible.
493         Reduce startup cost of autotest.
494         * lib/autotest/general.m4 (_AT_FINISH) <banners>: Rather than
495         doing a recursive find, limit ourselves to top ChangeLog only.
496         Reported by Ralf Wildenhues.
498 2010-07-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
500         New macro AC_FC_FIXEDFORM, improved AC_FC_FREEFORM, coverage.
501         * lib/autoconf/fortran.m4 (_AC_FC_DIALECT_YEAR): Fix typo in
502         comment.
503         (AC_FC_FREEFORM): Update list of known options for Sun, HP,
504         Lahey/Fujitsu Fortran compilers.  Use M4 quoting consistently.
505         (AC_FC_FIXEDFORM): New macro.
506         * tests/fortran.at (AC_FC_DUMMY_MAIN usage, AC_FC_MAIN usage):
507         Use AC_FC_FIXEDFORM, to avoid testsuite failure with FC=xlf95.
508         (AC_FC_FREEFORM with AC_FC_SRCEXT, AC_FC_FIXEDFORM)
509         (AC_FC_FIXEDFORM with AC_FC_SRCEXT): New tests.
510         * tests/mktests.sh: No need to exclude AC_FC_FREEFORM, it uses
511         AC_LANG_PUSH/AC_LANG_POP.
512         * doc/autoconf.texi (Fortran Compiler): Document it.
513         * NEWS: Update.
515 2010-07-02  Eric Blake  <eblake@redhat.com>
517         Optimize AS_BOX.
518         * lib/m4sugar/m4sh.m4 (AS_BOX): Use less m4 time.
519         (_AS_BOX_LITERAL): Use fewer forks in the common case.
520         * doc/autoconf.texi (Common Shell Constructs) <AS_BOX>: Document
521         the macro.
522         * NEWS: Mention it.
524         Use new AS_LITERAL_IF argument when appropriate.
525         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Reduce m4 overhead.
526         (AS_VAR_IF, AS_VAR_TEST_SET): Provide shorter variant for simple
527         references.
528         Suggested by Bruno Haible.
530         Add tests for AS_BOX.
531         * tests/m4sugar.at (m4@&t@_text_box): New test.
532         * tests/m4sh.at (AS@&t@_BOX): Likewise.
533         * lib/m4sugar/m4sugar.m4 (m4_text_box): Support comma.
534         * doc/autoconf.texi (Text processing Macros) <m4_text_box>:
535         Document further limitations.
537         Add optional argument to AS_LITERAL_IF.
538         * lib/m4sugar/m4sh.m4 (_AS_LITERAL_IF): Rewrite to generate macro
539         name, without using m4_cond.
540         (_AS_LITERAL_IF_, _AS_LITERAL_IF_YES, _AS_LITERAL_IF_NO): New
541         helpers.
542         (AS_LITERAL_IF, AS_LITERAL_WORD_IF, _AS_TR_SH, _AS_TR_CPP)
543         (_AS_VAR_PUSHDEF): Adjust callers.
544         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Relax restrictions on
545         invalid bytes, since this allows inline struct layouts.
546         (_AC_CHECK_ALIGNOF): New helper macro.
547         * tests/m4sh.at (AS@&t@_LITERAL_IF): Update test.
548         * doc/autoconf.texi (Polymorphic Variables) <AS_LITERAL_IF>:
549         Update documentation.
551         Use AS_LITERAL_WORD_IF as appropriate.
552         * lib/autoconf/autoheader.m4 (AH_VERBATIM): Use new macro.
553         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE, AC_CACHE_VAL)
554         (AS_CACHE_CHECK, AC_DEFINE_TRACE, _AC_LIBOBJ): Likewise.
555         * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
556         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
557         * lib/m4sugar/m4sh.m4 (AS_UNSET, AS_VAR_COPY, AS_VAR_GET)
558         (AS_VAR_IF, AS_VAR_SET, AS_VAR_TEST_SET): Likewise.
560         Add AS_LITERAL_WORD_IF.
561         * lib/m4sugar/m4sh.m4 (_AS_LITERAL_IF): Also reject shell quoting
562         characters as non-literal, and provide way to reject space.
563         (AS_LITERAL_WORD_IF): New macro.
564         * doc/autoconf.texi (Polymorphic Variables) <AS_LITERAL_IF>:
565         Document new macro.  Fix example to match reality.
566         * NEWS: Document change and new macro.
567         * tests/m4sh.at (AS@&t@_LITERAL_IF): Update test.
569         Optimize AC_DEFINE.
570         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Avoid overhead of
571         AS_LITERAL_IF.
573 2010-07-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
574         and Eric Blake  <eblake@redhat.com>
576         Describe a Solaris /bin/sh bug w.r.t. for loops.
577         * doc/autoconf.texi (Limitations of Shell Builtins) <for>:
578         Document a bug of the 'for' builtin in Solaris /bin/sh, w.r.t.
579         tokens seeming variable assignment in the list of arguments.
581 2010-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
583         Improve VPATH handling in config.status for non-Automake projects.
584         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Be sure not
585         to remove references to a subdir of srcdir.  Fix treatment of
586         multiple colon-separated VPATH entries.
587         * tests/torture.at (VPATH): New test.
588         Report by Keith Marshall.
590         Further improve docs about nested double-quotes and backquotes.
591         * doc/autoconf.texi (Shellology): Remove anchor for pdksh.
592         Move quoting bug example to ...
593         (Shell Substitutions): ... here.  Document which behavior is
594         specified by Posix.
596         Coverage for Fortran compiler macros.
597         * tests/fortran.at (AC_OPENMP and Fortran 77)
598         (AC_OPENMP and Fortran): Simplify, using AT_CHECK_CONFIGURE.
599         (AC_F77_DUMMY_MAIN usage, AC_FC_DUMMY_MAIN usage)
600         (AC_F77_MAIN usage, AC_FC_MAIN usage, AC_F77_FUNC usage)
601         (AC_FC_FUNC usage, AC_FC_SRCEXT usage, AC_FC_FREEFORM): New
602         tests.
603         * doc/autoconf.texi (Fortran Compiler): Use GNU coding style
604         on C code snippets.  Add markers for tested examples.
605         Suggest AC_FC_FREEFORM for source file extensions which the
606         compiler might not natively support but which are accepted
607         with help from AC_FC_SRCEXT.  Suggest AC_CONFIG_HEADERS for
608         setups using one of the AC_*MAIN macros.
610         Accept any nonzero exit status upon config.status write failure.
611         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
612         Normalize nonzero status to 1 for writing to /dev/full, for HP-UX
613         11.31 cat which exits 2.
615         Fix testsuite failure with Tru64 preprocessor.
616         * tests/compile.at (Order of user actions and cleanup): Add
617         incomplete comment to provoke failure with Tru64/OSF 5.1 cc
618         preprocessor.
620 2010-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
621         and Eric Blake  <eblake@redhat.com>
623         Further clarification on sed -e portability.
624         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Clarify
625         more about sed -e and Posix limitations.
627 2010-06-22  Bruno Haible  <bruno@clisp.org>
629         Document how to use literal newlines in makefile rules.
630         * doc/autoconf.texi (Newlines in Make Rules): New section.
632         Document how to write comments in makefile rules.
633         * doc/autoconf.texi (Comments in Make Rules): Mention a workaround
634         syntax.
636 2010-06-22  Ben Pfaff  <blp@cs.stanford.edu>
638         Document how to propogate variables to submakes.
639         * doc/autoconf.texi: Describe technique used by Automake to
640         propagate variables to submakes in more detail.
642 2010-06-22  Peter Johansson  <trojkan@gmail.com>  (tiny change)
644         Be consistent in doc example.
645         * doc/autoconf.texi: (Polymorphic Variables) be consistent in code
646         example and output
648 2010-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
650         Add comments for vim syntax highlighting.
651         * doc/autoconf.texi: Restore font-lock in some examples using
652         $$, for vim.
654         Formatting cleanups for optional arguments.
655         * doc/autoconf.texi (Configuration Actions, Help Formatting)
656         (External Software): Use @r{} for brackets denoting optional
657         arguments, where @ovar is not safe to use.
659         Clarify nested double-quotes and backquotes shell issues.
660         * doc/autoconf.texi (Shellology): New anchor for pdksh.
661         (Shell Substitutions): Link to it for escaped double-quotes
662         within double-quoted backquotes; add ksh example for unescaped
663         inner double-quotes problem.
665         Mention Tru64 5.1 fgrep limitation with emtpy patterns.
666         * doc/autoconf.texi (Limitations of Usual Tools): Update.
668         Overhaul the manual, esp. the Autotest chapter.
669         * doc/autoconf.texi (Installation Directory Variables):
670         Replace some uses of @var with @code.
671         (Special Shell Variables): Fix misordered paragraph about IFS.
672         (Writing Testsuites): Include paragraph following AT_TESTED in
673         the macro definition.
674         (testsuite Invocation): Failed tests are not rerun.
675         (testsuite Scripts, Autotest Logs, testsuite Invocation)
676         (Making testsuite Scripts): Minor edits for consistency and
677         language.
679 2010-06-18  Bruno Haible  <bruno@clisp.org>
681         Document sed -e limitation.
682         * doc/autoconf.texi (Limitations of Usual Tools): Mention portability
683         problem of sed -e option with script fragments.
685 2010-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
687         Document, test, and fix AT_ARG_OPTION, AT_ARG_OPTION_ARG.
688         * lib/autotest/general.m4 (_AT_ARG_OPTION): Fix translation of
689         hyphens to underscores when turning option names to variables.
690         Avoid macro name concatenation garbage with trailing `dnl'.
691         (AT_ARG_OPTION, AT_ARG_OPTION_ARG): Overhaul macro description.
692         The OPTIONS are space-separated, not comma-separated.  The
693         negative form of AT_ARG_OPTION is prefixed with `--no-'.
694         * tests/autotest.at (AT@&t@_ARG_OPTION, AT@&t@_ARG_OPTION_ARG):
695         New tests.
696         * NEWS: Update.
697         * doc/autoconf.texi (Writing Testsuites): Document AT_ARG_OPTION
698         and AT_ARG_OPTION_ARG.
699         (testsuite Invocation): Call the thingies passed to the
700         testsuite options, not arguments.  Note that the testsuite
701         author may add further package-specific options.
703         Autotest: enable colored test results.
704         * lib/autotest/general.m4 (HELP_TUNING_BEGIN): New diversion.
705         (HELP_TUNING, HELP_OTHER, HELP_END): Bump diversion numbers.
706         (AT_INIT): Accept
707         --color and --color=never|auto|always.  If desired, colorize
708         test results and testsuite summary on standard output.
709         [HELP_TUNING]: Divert content instead to ...
710         [HELP_TUNING_BEGIN]: ... this diversion, m4_wrapped until the
711         end, when we know whether AT_COLOR_TESTS has been specified.
712         (AT_COLOR_TESTS): New macro, set the default for color to auto.
713         * doc/autoconf.texi (Writing Testsuites): Document it.
714         (testsuite Invocation): Document --color* options.
715         * tests/local.at: Call AT_COLOR_TESTS for Autoconf's testsuite.
716         * tests/autotest.at (color test results): New test, mirroring
717         color.test from Automake.
718         * NEWS: Update.
720 2010-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
722         Avoid texinfo bug with backslashes in macro arguments.
723         * doc/autoconf.texi (Text processing Macros)
724         (Common Shell Constructs): Do not use @dvar with backslashes.
726 2010-06-14  Eric Blake  <eblake@redhat.com>
728         Make CONFIG_SITE handling more robust.
729         * lib/autoconf/general.m4 (AC_SITE_LOAD): Avoid leading - and path
730         search, and check for failure to load.
731         * tests/base.at (AC_CACHE_CHECK): Enhance test.
732         * doc/autoconf.texi (Site Defaults): Mention that CONFIG_SITE
733         works best as an absolute path.
734         * NEWS: Document the semantic change.
736 2010-03-13  Bruno Haible  <bruno@clisp.org>
737         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
739         Allow plus signs in AC_ARG_ENABLE and AC_ARG_WITH.
740         * doc/autoconf.texi (External Software): Mention that AC_ARG_WITH
741         accepts packages with a + sign in it.
742         (Package Options): Likewise for AC_ARG_ENABLE.
743         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Also replace '+' with '_'.
744         * tests/base.at (AC_ARG_ENABLE and AC_ARG_WITH): New test.
745         * NEWS: Update.
747 2010-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
749         Autotest: simplify logic to compute test group result.
750         * lib/autotest/general.m4 (AT_INIT): Compactify result
751         computation logic.
753         New Autotest testsuite option --recheck.
754         * lib/autotest/general.m4 (AT_INIT): New variable $at_recheck.
755         Escape hyphen in $at_dir early.  Accept command line switch
756         --recheck.  Set $at_suite_log early, based on --directory
757         switch; with --recheck, include the list of FAILed and XPASSed
758         tests from old testsuite.log file in $at_groups.  Document
759         --recheck in --help output.
760         * tests/autotest.at (recheck): New test.
761         * doc/autoconf.texi (testsuite Invocation): Document --recheck.
762         * NEWS: Update.
764 2010-06-14  Karl Berry  <karl@freefriends.org>  (tiny change)
766         Clarify comment about old system.
767         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Prefer GNU/Linux,
768         and note that bug has long since been fixed.
770 2010-06-08  Eric Blake  <eblake@redhat.com>
772         Run libtool test with modern libtool.
773         * tests/foreign.at (Libtool): Request that libtoolize install
774         auxiliary files.  Assume libtool 2.x is modern.
776 2010-06-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
778         Coverage and doc fixes for AC_LANG_SOURCE and AC_LANG_PROGRAM.
779         * tests/compile.at (AC_LANG_SOURCE, AC_LANG_SOURCE(C++))
780         (AC_LANG_SOURCE example, AC_LANG_PROGRAM example): New tests.
781         * doc/autoconf.texi (Generating Sources): Add markers for tested
782         examples; update quoting, and update AC_INIT usage to also set
783         optional URL arguments.  Mention that the examples require gcc.
784         Prompted by report from Brian J. Murrell.
786         Make AS_SET_CATFILE polymorphic, and add testsuite coverage.
787         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Use AS_VAR_SET to set
788         the variable.
789         * tests/m4sh.at (AS@&t@_SET_CATFILE): New test.
790         * doc/autoconf.texi (Common Shell Constructs): Document that
791         AS_SET_CATFILE is polymorphic in its VAR argument now.
792         * NEWS: Update.
794         Testsuite coverage for AC_COPYRIGHT and AT_COPYRIGHT.
795         * tests/autotest.at (AT@&t@_COPYRIGHT): New test.
796         * tests/base.at (AC@&t@_COPYRIGHT): Likewise.
798         Testsuite coverage for __file__ and __line__.
799         * tests/m4sugar.at (__file__ and __line__): New test.
801         Testsuite coverage for AC_CACHE_VAL and caching semantics.
802         * tests/base.at (AC_CACHE_CHECK): Extend test.
803         (AC_CACHE_LOAD): New test.
804         * tests/torture.at (Configuring subdirectories): Also test
805         --config-cache with AC_CONFIG_SUBDIRS.
806         * doc/autoconf.texi (Caching Results): Annotate code snippets
807         which are tested in the test suite.
808         (Cache Files): Documented cache variables may be used on the
809         configure command line to override individual entries in the
810         cache file.
812         Clarify OpenBSD sh errexit issue with compound commands.
813         * doc/autoconf.texi (Limitations of Builtins): Only the last
814         command in a compound list is problematic.
815         Tested on OpenBSD 4.4.
817 2010-06-07  Eric Blake  <eblake@redhat.com>
819         Properly quote AC_PREREQ during autoupdate.
820         * lib/autoconf/general.m4 (AC_PREREQ): Follow consistent quoting
821         style for AC_PREREQ.
822         * tests/tools.at (autoupdating AC_PREREQ): Update expected
823         results.
824         Reported by NightStrike.
826 2010-06-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
828         Documentation and tests for the AC_CHECK_DECL change.
829         * lib/autoconf/general.m4 (_AC_CHECK_DECL_BODY): Squash trailing
830         spaces in as_decl_name.
831         (_AC_CHECK_DECLS): Likewise for the define.
832         * tests/semantics.at (AC_CHECK_DECLS): Extend test.
833         * doc/autoconf.texi (Generic Declarations): Update.
834         * NEWS: Update.
836 2010-06-01  Joern Rennecke  <joern.rennecke@embecosm.com>  (tiny change)
838         Generalize AC_CHECK_DECL for C++: allow optional arguments.
839         * general.m4 (_AC_CHECK_DECL_BODY): Process trailing function
840         argument types as arguments to use for C++.
841         (_AC_CHECK_DECLS): Filter out trailing function argument types
842         when generating the HAVE_DECL_* macro.
844 2010-05-25  Stefano Lattarini  <stefano.lattarini@gmail.com>
845             Eric Blake  <eblake@redhat.com>
847         Don't expose AC_{COMPILE,LINK}_IFELSE internals in documentation.
848         * doc/autoconf.texi (Runtime) <AC_LINK_IFELSE>: Suggest to use
849         `conftest$EXEEXT' rather than `conftest$ac_exeext' to acces the
850         just-linked program file.
851         (Runtime) <AC_COMPILE_IFELSE>: Suggest to use `conftest.$OBJEXT'
852         rather than `conftest.$ac_object' to access the just-compiled
853         object file.  Also, refer to the object file as "just-compiled"
854         rather than "just-linked".
856 2010-05-20  Eric Blake  <eblake@redhat.com>
858         Mention another line-counting alternative.
859         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
860         how to use sed to count lines.
861         Suggested by Paolo Bonzini.
863 2010-05-12  Eric Blake  <eblake@redhat.com>
865         Document the grep workaround.
866         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
867         the bug.
869 2010-05-12  Mark Hessling  <mark@rexx.org>  (tiny change)
871         Work around QNX4 grep bug.
872         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Count ^
873         rather than $ to avoid QNX4 grep bug.
874         * THANKS: Update.
876 2010-05-11  David Reiss  <dreiss@facebook.com>  (tiny change)
878         Improve Erlang documentation.
879         * doc/autoconf.texi (Erlang Libraries): Document actual default
880         values.
881         * THANKS: Update.
883 2010-05-11  Eric Blake  <eblake@redhat.com>
885         Fix typo in previous patch.
886         * doc/autoconf.texi (File Descriptors): Add end '.
887         Reported by Ralf Wildenhues.
889         Mention how to silence program probes.
890         * doc/autoconf.texi (File Descriptors): Document how to silence a
891         program probe.
893 2010-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
895         Error and warning message formatting cleanups.
896         * doc/autoconf.texi (Autoconf Language, Generic Structures):
897         Do not capitalize the first word in error messages, do not end
898         them with a period.
899         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS, AC_MSG_FAILURE):
900         Likewise.
901         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Likewise.
902         * lib/autotest/general.m4 (AT_INIT, at_fn_group_prepare):
903         Likewise.
904         * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
905         * tests/base.at (AC_TRY_COMMAND): Likewise.
906         * tests/torture.at (datarootdir workaround): Adjust expected
907         message.
909         Fix placing of ellipses in English text.
910         * lib/autoconf/general.m4 (_AC_INIT_HELP): Be sure to add a
911         space before `...' in natural language text.
912         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL_BODY):
913         Likewise.
914         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
915         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Likewise.
916         * tests/suite.at: Likewise.
917         * tests/torture.at (@%:@define header templates): Likewise.
919         Ensure autotest tests have an atconfig file, for testsuite -v.
920         * tests/autotest.at (AT_CHECK_AT_PREP): Create a default
921         atconfig file in the directory of the testsuite.
922         (AT_CHECK_AT_TITLE): Also check that `./micro-suite -v' output
923         does not contain empty $at_srcdir expansion.
924         (srcdir propagation): Remove the atconfig file generated by
925         AT_CHECK_AT_PREP.  Check each suite invocation for $at_srcdir
926         expansion.
928         Fix autotest testsuite -v output to print test group title.
929         * lib/autotest/general.m4 (AT_CLEANUP): Actually print test
930         title in verbose output.  Fixes AUTOCONF-2.57-101-gc102ed8
931         regression.
932         * tests/autotest.at (AT_CHECK_AT_TITLE): Amend macro to check
933         for test title in -v output.
935 2010-04-26  Eric Blake  <eblake@redhat.com>
937         Clarify octal escapes with tr.
938         * doc/autoconf.texi (Limitations of Usual Tools): Carriage return
939         is portable in octal, but not newline.
941 2010-04-22  Joel James Adamson  <joel@chondestes.bio.unc.edu>  (tiny change)
943         Add a paragraph to FAQ on Debugging configure scripts.
944         * doc/autoconf.texi (Debugging): Mention inspecting config.log.
945         * THANKS: Update.
947 2010-04-21  Mike Frysinger  <vapier@gentoo.org>  (tiny change)
949         Fix typo in doc example.
950         * doc/autoconf.texi (Subdirectories): Fix typo.
952 2010-04-05  Eric Blake  <eblake@redhat.com>
954         Fix m4_cr_all for EBCDIC.
955         * lib/m4sugar/m4sugar.m4 (m4_cr_all): Swap * and $, so that we
956         don't end up with $* in EBCDIC.
957         * NEWS: Document the fix.
958         * THANKS: Update.
959         Reported by Steve Goetze.
961 2010-03-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
963         Do not use @acronym in the manual.
964         * doc/autoconf.texi: Remove all usage of @acronym.
965         Suggested by Karl Berry.
967         Do not use @sc in the manual.
968         * doc/autoconf.texi: Remove all usage of @sc in the manual.
969         Suggested by Karl Berry.
971 2010-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
973         Fix wrong comment in testsuite.
974         * tests/m4sugar.at (m4@&t@_warn): Remove copy&pasted comment.
976         Formatting cleanups in macro comments.
977         * lib/autoconf/c.m4, lib/autoconf/erlang.m4,
978         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
979         lib/autoconf/general.m4, lib/autoconf/lang.m4,
980         lib/autoconf/programs.m4, lib/autoconf/specific.m4,
981         lib/autoconf/status.m4, lib/autoconf/types.m4,
982         lib/autotest/general.m4, lib/autotest/specific.m4,
983         lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4,
984         tests/autotest.at, tests/local.at, tests/m4sh.at,
985         tests/semantics.at, tests/tools.at, tests/torture.at: Fix macro
986         comment format.
988 2010-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
990         manual: index strings containing colon in non-info outputs.
991         * doc/autoconf.texi (Quadrigraphs, Shell Substitutions): Produce
992         index entries for concepts containing a colon in output formats
993         other than info.
995         Update copyright years for files generated by mktests.sh.
996         * tests/mktests.sh: Update copyright years for generated files.
998 2010-03-04  Eric Blake  <eblake@redhat.com>
1000         Document AC_LANG_CONFTEST semantic change.
1001         * doc/autoconf.texi (Generating Sources) <AC_LANG_CONFTEST>:
1002         Enhance documentation, to show that semantic change in 2.63b was
1003         intentional.
1004         * THANKS: Update.
1005         Reported by Brian J. Murrell, analyzed by Ralf Wildenhues.
1007 2010-03-04  Peter Johansson  <trojkan@gmail.com>  (tiny change)
1009         Autoconf Macro Archive URL has changed.
1010         * doc/autoconf.texi (Introduction, Coding Style, Defining
1011         Directories): The Autoconf Macro Archive is officially `GNU'.
1012         Update URL.
1014 2010-03-02  Eric Blake  <eblake@redhat.com>
1016         Fix shell code in AS_TR_SH documentation.
1017         * doc/autoconf.texi (Common Shell Constructs) <AS_TR_SH>: Fix
1018         example to expand to valid shell code.
1019         Reported by Ralf Wildenhues.
1021         Improve documentation on AC_{COMPILE,LINK}_IFELSE.
1022         * doc/autoconf.texi (Running the Compiler): Mention that the
1023         object file is available after a successful compile.
1024         (Running the Linker): Likewise for the linker output.
1025         Suggested by Paolo Bonzini.
1027         Fix typo in docs.
1028         * doc/autoconf.texi (Conditional constructs) <m4_ifblank>: Fix
1029         typo.
1031 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1033         Fix AS_ERROR for FreeBSD sh.
1034         * lib/m4sugar/m4sh.m4 (_AS_ERROR_PREPARE): Rewrite as_fn_error
1035         to take additional first argument STATUS instead of transporting
1036         $? across shell function entry, which does not work with FreeBSD
1037         sh.  Shift all other arguments by one, adjust.
1038         (AS_ERROR): Pass EXIT-STATUS, defaulting to $?, to as_fn_error.
1039         Report by Václav Haisman.
1041         Fix `autom4te cache creation' testsuite failure on FreeBSD.
1042         * tests/tools.at (autom4te cache creation): Normalize exit
1043         status of failed redirection to 1, may be 2 with FreeBSD sh.
1044         * THANKS: Update.
1045         Report by Václav Haisman.
1047         Fix Autotest tracing of shell pipelines for FreeBSD sh.
1048         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Do not trace
1049         commands that contain [^|]|[^|], a likely shell pipeline.
1050         * tests/local.at (_AT_CHECK_ENV): Turn off tracing for egrep |
1051         grep pipeline.
1052         * doc/autoconf.texi (File Descriptors): Document limitation.
1053         * tests/autotest.at (Trace output): New test.
1055 2010-03-01  Eric Blake  <eblake@redhat.com>
1057         Update file flow diagram to mention Automake.
1058         * doc/autoconf.texi (Making configure Scripts): Avoid confusion
1059         with listing Makefile.in twice on one line.  Add a diagram showing
1060         how automake fits into the picture.
1061         Reported by santilín.
1063 2010-02-26  Eric Blake  <eblake@redhat.com>
1065         Optimize AC_REPLACE_FUNCS.
1066         * lib/autoconf/functions.m4 (_AC_REPLACE_FUNC): New helper macro.
1067         (AC_REPLACE_FUNCS): Use it to reduce forks when checking for
1068         replacements, by using literal rather than shell variable.
1070         Document how to safely override CFLAGS default.
1071         * doc/autoconf.texi (C Compiler) <AC_PROG_CC>: Document a way to
1072         change the default CFLAGS.
1073         (C++ Compiler) <AC_PROG_CXX>: Likewise, for CXXFLAGS.
1074         Reported by Monty Taylor; wording suggested by Paolo Bonzini.
1076         Document that Autoconf relies on IFS.
1077         * doc/autoconf.texi (Special Shell Variables) <IFS>: Add details
1078         about use of IFS within configure script.
1079         * THANKS: Update.
1080         Reported by Arkadiusz Miskiewicz.
1082         Recommend latest m4 release.
1083         * README: Bump recommendation to m4 1.4.14 (minimum remains
1084         1.4.6).
1085         * doc/autoconf.texi (Introduction): Likewise.
1086         * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
1088 2010-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1090         Fix testsuite failures due to setting of $U.
1091         * tests/local.at (_AT_CHECK_ENV): Ignore setting of $U.
1093 2010-02-10  Eric Blake  <ebb9@byu.net>
1095         Avoid $U if it is not initialized.
1096         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Ensure $U is
1097         set if automake did not define it.
1098         * THANKS: Update.
1099         Reported by Heiko Schlichting, via Julien Élie.
1101 2010-01-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1103         Fix substitution of carriage return on Darwin.
1104         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Set
1105         ac_cs_awk_cr to '\\r', so that sed portably expands this to '\r'
1106         rather than a literal carriage return, to fix substitution on
1107         Darwin.  Regression introduced in 2.63b.
1108         Report by Peter O'Gorman.
1110 2010-01-21  Dmitry V. Levin <ldv@altlinux.org>
1112         Fix test failure when a shell uses $TMPDIR for here-documents.
1113         * tests/tools.at (autotools and whitespace in file names): Create
1114         $TMPDIR before potential use like in other whitespace tests.
1116 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
1118         Add recommendation on (not) unsetting IFS.
1119         * doc/autoconf.texi (Special shell variables): Explain why it's
1120         better not to unset IFS.
1122 2010-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1124         config.status: consistent exit status with nonexistent config file input.
1125         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Ensure we
1126         exit with status 1 rather than with that of 'false', for
1127         reproducibility.
1128         (AC_OUTPUT): Ensure to exit 1 in case of config.status failure.
1129         * tests/torture.at (Missing templates): Also test code path
1130         for $srcdir != '.'.
1131         Report by Tim Rice.
1133 2010-01-13  Eric Blake  <ebb9@byu.net>
1135         Fix previous example.
1136         * doc/autoconf.texi (Here-Documents): Touch up the example to
1137         match output to sample command line.
1139         Document here-doc pitfall.
1140         * doc/autoconf.texi (Here-Documents): Mention problem with <<-
1141         operator.
1142         Reported by Jim Meyering.
1144 2010-01-12  Eric Blake  <ebb9@byu.net>
1146         Typo fix in earlier commit.
1147         * doc/autoconf.texi (Autoconf Language): Fix typo.
1149 2010-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1151         Allow AC_FUNC_MKTIME to work with C++.
1152         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME): ANSIfy KnR function
1153         definitions.  Use `const char*' for character literals; cast them
1154         to `char*' for putenv.
1156 2010-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1158         Export AUTOM4TE in tests/atlocal.in, for aclocal.
1159         * tests/atlocal.in: Set and export $AUTOM4TE, for aclocal.
1160         Report by Tim Rice.
1162 2010-01-08  Eric Blake  <ebb9@byu.net>
1164         Make autotest example act better with automake.
1165         * doc/autoconf.texi (Making testsuite Scripts): Rely on automake
1166         feature for recommended autotest snippet, following our own use.
1168         Clarify language on handling of opening parenthesis.
1169         * doc/autoconf.texi (Autoconf Language): Give an example of
1170         improper argument passing.
1171         * THANKS: Update.
1172         Reported by Juan Carlos Hurtado.
1174 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1176         Don't fail autom4te preselection test due to different Automake.
1177         * tests/tools.at (autom4te preselections): If the cache test
1178         fails, extract the Automake version from the toplevel
1179         Makefile.in file of the source tree; skip, rather than fail
1180         the test group if the automake program has a different version.
1181         * THANKS: Update.
1182         Report by Dieter Jurzitza, fix suggested by Eric Blake.
1184 2010-01-06  Peter Breitenlohner  <peb@mppmu.mpg.de>
1185             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1187         Fix AC_CONFIG_LINKS to generated files when srcdir is absolute.
1188         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Check $ac_source,
1189         not $srcdir, for being relative or absolute.
1190         * tests/torture.at (AC_CONFIG_LINKS): New test.
1191         (AC_CONFIG_LINKS and identical files): Extend test, avoid some
1192         forks.
1193         Report, patch and testcase example by Peter Breitenlohner.
1195 2010-01-05  Eric Blake  <ebb9@byu.net>
1197         Improve release automation.
1198         * maint.mk (gnulib_dir, gnulib-version, bootstrap-tools)
1199         (announcement): Copy from latest gnulib maint.mk.
1200         * cfg.mk (announce_gen, gpg_key_ID): Delete.
1201         (bootstrap-tools): Override the default.
1203         Update upstream files.
1204         * GNUmakefile: Update via 'make fetch'.
1205         * build-aux/announce-gen: Likewise.
1206         * build-aux/config.guess: Likewise.
1207         * build-aux/config.sub: Likewise.
1208         * build-aux/gendocs.sh: Likewise.
1209         * build-aux/gnupload: Likewise.
1210         * build-aux/move-if-change: Likewise.
1211         * build-aux/update-copyright: Likewise.
1212         * build-aux/vc-list-files: Likewise.
1213         * doc/standards.texi: Likewise.
1214         * cfg.mk (update-copyright-env): Enforce wrap column.
1216         Update copyright year.
1217         All files changed to add 2010, via 'make update-copyright'.
1219 2009-12-31  Bruno Haible  <bruno@clisp.org>
1221         Improve documentation on Solaris tr bugs.
1222         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Refine
1223         description of NUL handling by Solaris tr.
1225 2009-12-31  Eric Blake  <ebb9@byu.net>
1227         Another tr tweak.
1228         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Clarify
1229         previous commit.
1230         Reported by Ralf Wildenhues.
1232 2009-12-29  Eric Blake  <ebb9@byu.net>
1234         Improve documentation on tr portability.
1235         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Refine
1236         description of NUL handling.  Document set size issue.
1237         Reported by Bruno Haible.
1239         Fix comment in AC_CHECK_DECLS.
1240         * lib/autoconf/general.m4 (AC_CHECK_DECL): Document the includes
1241         argument to the shell function.
1243 2009-12-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1245         Add testsuite exposure for shtool usage.
1246         * tests/foreign.at (shtool): New test.
1247         Report by Dmitry Grebeniuk.
1249 2009-12-12  Eric Blake  <ebb9@byu.net>
1251         Improve wording about m4 quote characters.
1252         * doc/autoconf.texi (Autoconf Language): Autoconf quote characters
1253         come from m4sugar, not raw m4.
1254         (Active Characters): Mention that it is m4sugar which changes
1255         quotes from `' to [].
1256         * THANKS: Update.
1257         Suggested by Josef Vukovic.
1259 2009-12-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1261         Revert "Improve AC_CONFIG_AUX_DIRS a bit." to fix shtool usage.
1262         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Revert test for
1263         shtool as install script.  Regression introduced in 2.64.
1264         * NEWS, THANKS: Update.
1265         Report by Dmitry Grebeniuk.
1266         This reverts commit 93d9386de9c1320afed43f1337ac5ddb2d2dcbb4.
1268 2009-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1270         Fix NEWS description for AC_FUNC_MMAP entry.
1271         * NEWS: Update.
1273         Fix 2.65 AC_TYPE_INT*_T macro body text regression.
1274         * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY): Move helper enum
1275         definition to prologue section, to avoid syntax error.
1276         * NEWS, THANKS: Update.
1277         Report by Pierre Ynard.
1279 2009-12-09  Paolo Bonzini  <bonzini@gnu.org>
1281         Fix `recursion' test failure.
1282         * tests/m4sugar.at (recursion): Use empty diversion, not 0.
1284 2009-12-05  Stefano Lattarini  <stefano.lattarini@gmail.com>
1285             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1287         Document Solaris/Heirloom sh set -e issue with command substitutions.
1288         * doc/autoconf.texi (Limitations of Builtins): Fix typos `set -d'
1289         in previous example.  Document failure to honor && lists with set -e
1290         and a command substitution in the failing command.
1291         Report and initial patch by Stefano Lattarini against Automake.
1293 2009-12-04  Eric Blake  <ebb9@byu.net>
1295         Warn if using unnamed diversion.
1296         * lib/m4sugar/m4sugar.m4 (_m4_divert, m4_divert_push): Add
1297         optional parameter, which controls warning.
1298         (m4_divert_pop, m4_cleardivert, m4_divert_require)
1299         (_m4_require_call): Adjust callers.
1300         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Likewise.
1301         * tests/m4sh.at (AT_DATA_LINENO): Avoid triggering the warning.
1302         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, m4@&t@_append)
1303         (m4@&t@_text_wrap, recursion): Likewise.
1304         (m4@&t@_warn, m4@&t@_divert_stack): Adjust expected output.
1305         * tests/tools.at (autom4te and whitespace in file names)
1306         (autoconf: the empty token): Avoid triggering the warning.
1307         (autoconf: AC_PRESERVE_HELP_ORDER): New test.
1308         * tests/mktests.sh (ac_exclude_list): Retire prior test.
1309         * NEWS: Document the warning.
1310         * doc/autoconf.texi (Redefined M4 Macros) <m4_divert>,
1311         <m4_undivert>: Make even more explicit that using these directly
1312         is discouraged.
1313         (Diversion support): Further warn against improper diversion
1314         changes.
1315         <m4_divert_text>: Give an example of proper use.
1316         Reported by Mike Frysinger.
1318 2009-11-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1320         manual: AC_SEARCH_LIBS also prepends to LIBS.
1321         * doc/autoconf.texi (Libraries): Document that AC_SEARCH_LIBS
1322         prepends to LIBS, just like AC_CHECK_LIB.
1324 2009-11-27  Paolo Bonzini  <bonzini@gnu.org>
1326         Bump m4.m4 serial number.
1327         * m4/m4: Bump serial number to 10.
1329 2009-11-27  Harald van Dijk  <truedfx@gentoo.org>
1331         Fix m4 detection test on dash.
1332         * m4/m4 (AC_PROG_GNU_M4): Use AS_ECHO.
1334 2009-11-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1336         Fix AC_FUNC_MMAP regression with C++ compiler in 2.65.
1337         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Use const char*
1338         for the constant string.  Cast void* to char* for assignment.
1339         * NEWS, THANKS: Update.
1340         Report by Michal Čihař.
1342         Add pgfortran to list of Fortran 95+ compilers.
1343         * lib/autoconf/fortran.m4 (_AC_F95_FC): Add pgfortran before
1344         pgf95.
1345         Based on report by Jeff Squyres.
1347 2009-11-22  Bruno Haible  <bruno@clisp.org>
1349         Fix failure of test 35 when the user has a .autom4te.cfg file.
1350         * tests/tools.at (autom4te cache creation): Skip the test if the
1351         user has a .autom4te.cfg file.
1353 2009-11-21  Eric Blake  <ebb9@byu.net>
1355         Release Version 2.65.
1356         * NEWS: Mention the release.
1358         Prepare for release.
1359         * build-aux/announce-gen: Sync from upstream.
1360         * build-aux/config.guess: Likewise.
1361         * build-aux/config.sub: Likewise.
1362         * cfg.mk (gnu_rel_host, url_dir_list): Move...
1363         * maint.mk: ...here, copying ideas from gnulib.
1364         (major): Rename...
1365         (stable): ...to this, copying gnulib.
1366         * HACKING (release): Document changes in process.
1368         Avoid spurious newline in traced macros.
1369         * bin/autoreconf.in (tracing): Drop newline before parsing traced
1370         arguments; regression from 2009-11-14.
1372 2009-11-20  Eric Blake  <ebb9@byu.net>
1374         Allow absolute names in AT_TESTED.
1375         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Check for
1376         absolute names before path walk.
1377         * THANKS: Update.
1378         Suggested by Allan Clark.
1380 2009-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1382         Fix AC_CONFIG_SUBDIRS tracing in autoreconf.
1383         * bin/autoreconf.in (autoreconf_current_directory): Collapse
1384         newlines in the autoconf trace output, similar to how automake
1385         invokes autoconf, so that newlines do not matter in the argument
1386         to AC_CONFIG_SUBDIRS.
1387         * tests/torture.at (Deep Package): Expose this issue in the
1388         test.
1389         * THANKS: Update.
1390         Report by Nathan Schulte.
1392 2009-11-09  Eric Blake  <ebb9@byu.net>
1394         Fix AC_FUNC_MMAP for cygwin.
1395         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Make the test more
1396         portable: Actually check for <sys/param.h>, and only use MAP_FIXED
1397         on an address previously returned from mmap.
1398         * THANKS: Update.
1399         Reported by Corinna Vinschen.
1401 2009-11-04  Eric Blake  <ebb9@byu.net>
1403         Redocument AS_DIRNAME, even with its flaws.
1404         * doc/autoconf.texi (Common Shell Constructs) <AS_DIRNAME>:
1405         Restore documenatation, since dirname mentions it.
1406         Reported by Peter Johansson.
1408         Update upstream files.
1409         * build-aux/announce-gen: Synchronize from upstream.
1410         * build-aux/config.guess: Likewise.
1411         * build-aux/config.sub: Likewise.
1412         * build-aux/gendocs.sh: Likewise.
1413         * build-aux/git-version-gen: Likewise.
1414         * build-aux/texinfo.tex: Likewise.
1415         * build-aux/update-copyright: Likewise.
1416         * doc/standards.texi: Likewise.
1417         * lib/Autom4te/Channels.pm: Likewise.
1418         * lib/Autom4te/Configure_ac.pm: Likewise.
1419         * lib/Autom4te/FileUtils.pm: Likewise.
1420         * lib/Autom4te/Struct.pm: Likewise.
1421         * lib/Autom4te/XFile.pm: Likewise.
1423 2009-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1425         Coverage for autom4te cache creation issues.
1426         * tests/tools.at (autom4te cache creation): New test.
1428 2009-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1430         Fix testsuite failures with SHELL=zsh.
1431         * tests/statesave.m4 (AC_STATE_SAVE): Ignore argv and ARGC when
1432         comparing configure variables.
1434 2009-11-03  Eric Blake  <ebb9@byu.net>
1435         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1437         Update NEWS for recent fixes.
1438         * NEWS: Add some entries.
1440 2009-10-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1442         Micro-optimization of config.status substitution.
1443         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): No need to
1444         concatenate an empty second string, when we have exactly 148
1445         characters to substitute.
1446         * tests/torture.at (Substitute a 2000-byte string): Add test
1447         exposure for runs of backslashes near the 148 character limit.
1449         Fix testsuite failure on AIX 4.3.3.
1450         * lib/autoconf/general.m4 (_AC_RUN_LOG_LIMIT): Remove conftest.err
1451         also if it is empty.
1453         Fix testsuite failure on IRIX and AIX.
1454         * tests/torture.at (Substitute and define special characters):
1455         Double the backslash before the double-quote in
1456         AC_DEFINE_UNQUOTED, as documented for here-documents.
1458 2009-10-31  Eric Blake  <ebb9@byu.net>
1460         Fix cross-manual link to gcc.
1461         * doc/autoconf.texi (Portable C and C++): Provide uref rather than
1462         xref when building for html.
1463         Reported via Karl Berry.
1465         Update authors.
1466         * AUTHORS: Document recent copyright assignments.
1468 2009-10-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1470         Fix AC_OPENMP configure message for non-C compilers.
1471         * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Accept as additional
1472         fourth arg the compiler variable name, defined in _AC_CC($1).
1473         (_AC_CC): New language dispatch macro.
1474         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Adjust.
1475         * lib/autoconf/fortran.m4 (AC_LANG(Fortran 77), AC_LANG(Fortran)):
1476         Likewise.
1477         * lib/autoconf/c.m4 (AC_LANG(C), AC_LANG(C++))
1478         (AC_LANG(Objective C), AC_LANG(Objective C++)): Likewise.
1479         (AC_OPENMP): Use _AC_CC instead of $CC.
1481         Do not fail OpenMP tests on systems without aclocal.
1482         * tests/c.at (AC_OPENMP and C, AC_OPENMP and C++): Override
1483         `ACLOCAL=true' for autoreconf, the tests don't need aclocal.
1484         * tests/fortran.at (AC_OPENMP and Fortran 77)
1485         (AC_OPENMP and Fortran): Likewise.
1487 2009-10-31  Bruno Haible  <bruno@clisp.org>
1488             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1490         Improve cache variable documentation.
1491         * doc/autoconf.texi (AC_PROG_AWK, AC_PROG_GREP, AC_PROG_EGREP,
1492         AC_PROG_FGREP, AC_PROG_INSTALL, AC_PROG_MKDIR_P, AC_PROG_LEX,
1493         AC_PROG_YACC, AC_CHECK_PROG, AC_CHECK_PROGS, AC_PATH_PROG,
1494         AC_PATH_PROGS): Don't suggest to use the cache variable, only to
1495         override it, or preferably, a non-cache variable associated with
1496         the test.
1497         (AC_PROG_SED): Likewise. Fix name of cache variable.
1498         (AC_FUNC_GETMNTENT): Fix name cache variable.
1499         (AC_FUNC_LSTAT): Fix typo.
1501 2009-10-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1503         Fix AC_OPENMP for Fortran (F77 and FC).
1504         * lib/autoconf/fortran.m4 (AC_LANG_FUNC_LINK_TRY(Fortran): New.
1505         * tests/c.at (AC_C_RESTRICT and C++, AC_OPENMP and C)
1506         (AC_OPENMP and C++): New tests.
1507         * tests/fortran.at (AC_OPENMP and Fortran 77)
1508         (AC_OPENMP and Fortran): New tests.
1509         * THANKS: Update.
1510         Report by Bart Oldeman.
1512         Perl coverage convenience targets.
1513         * Makefile.am (PERL_COVERAGE_DB, PERL_COVERAGE_FLAGS)
1514         (PERL_COVER): New variables.
1515         (check-coverage, check-coverage-run, check-coverage-report)
1516         (clean-coverage): New phony targets.
1517         (clean-local): Depend on clean-coverage.
1519 2009-10-28  Eric Blake  <ebb9@byu.net>
1521         Fix corner cases in AS_LITERAL_IF and AS_TR_SH.
1522         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix bug with unbalanced
1523         parens.  Move guts...
1524         (_AS_LITERAL_IF): into new helper.
1525         (AS_TR_SH, AS_TR_CPP): Fix bugs with expansion of wrong macro.
1526         Move guts...
1527         (_AS_TR_SH, _AS_TR_SH_LITERAL, _AS_TR_SH_INDIR, _AS_TR_CPP)
1528         (_AS_TR_CPP_LITERAL, _AS_TR_CPP_INDIR): ...into new helpers.
1529         (AS_VAR_PUSHDEF): Hoist m4_require, by moving guts...
1530         (_AS_VAR_PUSHDEF): ...into new helper.
1531         * tests/m4sh.at (AS@&t@_LITERAL_IF): Enhance test.
1533         Minor optimizations to m4sh.
1534         * lib/m4sugar/m4sh.m4 (AS_VAR_IF, AS_IDENTIFIER_IF)
1535         (AS_LITERAL_IF): Parse fewer bytes during expansion, by visiting
1536         if-true and if-false arguments only once.
1538         Optimize m4_escape for common case.
1539         * lib/m4sugar/m4sugar.m4 (m4_escape): Don't use regex if string is
1540         already sane, by copying from AS_LITERAL_IF.  Move guts...
1541         (_m4_escape): ...into new helper.
1543         Fix m4_text_wrap handling of quoted whitespace.
1544         * lib/m4sugar/m4sugar.m4 (m4_escape): New macro.
1545         (m4_text_wrap): Use it to avoid issues with embedded [ and ].
1546         * tests/m4sugar.at (m4@&t@_text_wrap): Test it.
1547         * NEWS: Document this.
1548         * doc/autoconf.texi (Text processing Macros) <m4_escape>:
1549         Likewise.
1550         Reported by Mike Frysinger.
1552 2009-10-27  Eric Blake  <ebb9@byu.net>
1554         Mention another feature of AC_RUN_IFELSE.
1555         * doc/autoconf.texi (Runtime) <AC_RUN_IFELSE>: Mention that
1556         compiled test program still exists during if-true branch.
1557         * THANKS: Update.
1558         Reported by Stefano Lattarini, suggestion by Ralf Wildenhues.
1560 2009-10-26  Paolo Bonzini  <bonzini@gnu.org>
1562         Pass Autom4te path down to programs that autoreconf invokes.
1563         * bin/autoreconf.in (autom4te): New variable.  Export its value
1564         as $ENV{'AUTOM4TE'}.  Suggested by Peter Johansson.
1565         * THANKS: Update.
1567 2009-10-20  Eric Blake  <ebb9@byu.net>
1569         Fix AC_TYPE_UINT64_T on Tru64 with gcc 3.4.4.
1570         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT_BODY)
1571         (_AC_TYPE_INT_BODY): Avoid undefined behavior of attempting shift
1572         wider than type.
1573         * NEWS: Document this.
1574         Reported by Rainer Orth.
1576 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1578         Fix a couple of index entries in the manual.
1579         * doc/autoconf.texi (Polymorphic Variables): Fix index entries
1580         for AS_VAR_APPEND, AS_VAR_ARITH.
1582 2009-10-15  Eric Blake  <ebb9@byu.net>
1584         Fix typos in INSTALL.
1585         * doc/install.texi (Basic Installation, Installation Names): Fix
1586         typos in last patch.
1587         Repored by Ralf Wildenhues.
1589         Improve INSTALL wording.
1590         * doc/install.texi (Basic Installation): Clarify installcheck
1591         behavior.
1592         (Installation Names): Mention that --prefix only overrides
1593         directory locations not specified on the command line.  Prefer
1594         /alternate/directory over /path/to.  Remove a sentence targeted to
1595         the developer, not the user.
1596         * THANKS: Update.
1597         Suggested by Alfred M. Szmidt.
1599 2009-10-15  Peter Breitenlohner  <peb@mppmu.mpg.de>
1601         Fix typos in documentation.
1602         * doc/autoconf.texi (Cache Variable Index): Fix typo.
1603         (Libraries) <AC_SEARCH_LIBS>: Mention 'none required' result.
1605 2009-10-09  Bruno Haible  <bruno@clisp.org>
1606             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1608         Recommend `sh -n' debugging, and public result variables for macros.
1609         * doc/autoconf.texi (Debugging): Recommend to use "bash -n
1610         configure".  Recommend the use of result variables as an
1611         alternative to run-if-true/run-if-false parameters.
1613 2009-10-05  Bruno Haible  <bruno@clisp.org>
1615         * doc/autoconf.texi (Particular Functions): Swap sections about
1616         AC_FUNC_MBRTOWC and AC_FUNC_MEMCMP.
1618 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
1620         Unconditionally check for junk ./--version after mkdir search loop.
1621         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Always check for
1622         presence of ./--version.  Reported by Eric Blake.
1624 2009-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1626         Clarify documentation about Solaris sed quantifier restriction.
1627         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: '*' does
1628         not work after subexpressions, \{M,N\} only after one-character
1629         expressions.  From GCC PR 38923.
1631 2009-09-21  Eric Blake  <ebb9@byu.net>
1633         Fit configure output in 80 columns.
1634         * lib/autoconf/functions.m4
1635         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Shorten message.
1637 2009-09-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1639         Use consistent notation for cache variables.
1640         * doc/autoconf.texi (Generic Programs): Remove `$' before
1641         variable name.
1643         Documentation of specific and general cache variables.
1644         * doc/autoconf.texi (Default Includes, Alternative Programs)
1645         (Particular Programs, Generic Programs, Files, Libraries)
1646         (Function Portability, Particular Functions, Generic Functions)
1647         (Particular Headers, Generic Headers, Declarations)
1648         (Generic Declarations, Particular Structures, Particular Types)
1649         (Specific Compiler Characteristics)
1650         (Generic Compiler Characteristics, C Compiler, System Services):
1651         Document lots of cache variables.
1652         * NEWS: Update.
1653         Suggested by Bruno Haible.
1655         New cache variable index in the manual.
1656         * doc/autoconf.texi: Define new index `CA' for cache variables.
1657         (caindex): New macro.
1658         (Cache Variable Index): New appendix node.
1659         (Top, Indices): Adjust menus.
1660         (Cache Variable Names, Site Defaults): Adjust text.
1661         * doc/Makefile.am (CLEANFILES): Add files generated for CA index.
1663         New FAQ node: Debugging.
1664         * doc/autoconf.texi (Debugging): New node.
1665         (Top, FAQ): Adjust menus.
1666         Report by Bruno Haible.
1668         Document AM_MAKEFLAGS workaround to the macro override problem.
1669         * doc/autoconf.texi (Macros and Submakes): Automake makefiles
1670         provide AM_MAKEFLAGS to help with overriding macros in submake
1671         invocations.
1672         Prompted by bug report from Bruno Haible.
1674 2009-09-15  Peter Breitenlohner  <peb@mppmu.mpg.de>
1676         Implement and document Objective C++ support.
1677         * lib/autoconf/c.m4 (AC_LANG(Objective C++), AC_LANG_OBJCXX)
1678         (AC_LANG_PREPROC(Objective C++), AC_PROG_OBJCXXCPP)
1679         (AC_LANG_COMPILER(Objective C++), AC_PROG_OBJCXX)
1680         (_AC_PROG_OBJCXX_G): New macros.
1681         (_AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
1682         (_AC_ARG_VAR_LIBS): Adjusted.
1683         * doc/autoconf.texi (Objective C++ Compiler): New node.
1684         (Preset Output Variables): Document OBJCXXFLAGS.
1685         (Language Choice): Document `Objective C++' language.
1686         * NEWS: Updated.
1687         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C++
1688         related variables.
1690 2009-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1692         Work around DJGPP shell function return bug with command substitutions.
1693         DJGPP bash 2.04 has a bug in that `return $ac_retval' done in a
1694         shell function which also contains a command substitution causes
1695         the shell to barf.  For more details and a fix see:
1696         <http://www.delorie.com/djgpp/mail-archives/browse.cgi?p=djgpp-workers/2009/09/09/03:35:08>
1697         Possible workaround include putting the `return' in a subshell
1698         or calling another function to set the status.
1699         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY)
1700         (_AC_COMPILE_IFELSE_BODY, _AC_LINK_IFELSE_BODY)
1701         (_AC_RUN_IFELSE_BODY, _AC_COMPUTE_INT_BODY): Use AS_SET_STATUS
1702         instead of `return'.
1703         * doc/autoconf.texi (Common Shell Constructs, Shell Functions):
1704         Document the issue.
1705         * THANKS: Update.
1706         Report by Rugxulo and Reuben Thomas.
1708         DJGPP fix: Do not redirect standard input in configure scripts.
1709         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): If $DJGPP is
1710         nonempty, do not dup fd 0 to AS_ORIGINAL_STDIN_FD, do not close
1711         fd 0.
1713 2009-09-14  Eric Blake  <ebb9@byu.net>
1715         Quote result of m4_toupper and m4_tolower.
1716         * lib/m4sugar/m4sugar.m4 (m4_tolower, m4_toupper): Quote result.
1717         * lib/autotest/general.m4 (AT_KEYWORDS): Adjust caller.
1718         * tests/m4sugar.at (m4@&t@_toupper and m4@&t@_tolower): New test.
1719         * NEWS: Document this.
1720         * THANKS: Update.
1721         Reported by Sam Steingold.
1723 2009-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1725         DJGPP fix: remove both conftest and conftest.exe.
1726         The DJGPP compiler may create both `a.out' and `a.exe' without -o,
1727         and both `conftest' and `conftest.exe' with `-o conftest', but not
1728         with `-o conftest.exe'.
1729         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Also remove
1730         `conftest' without $ac_exeext suffix.
1732         DJGPP fix: do not try to source /dev/null as cache or site file.
1733         * lib/autoconf/general.m4 (AC_SITE_LOAD, AC_CACHE_LOAD): Do not
1734         load the cache or site file if it is `/dev/null', as DJGPP treats
1735         it as a regular file, but the shell then warns about it later.
1736         Fixes several test suite failures on DJGPP.
1738         testsuite: pass $configure_options to configure invocations.
1739         * tests/local.at (AT_CHECK_CONFIGURE): Add $configure_options
1740         to configure command line.
1741         * tests/autotest.at, tests/base.at, tests/c.at, tests/torture.at:
1742         Likewise for each configure invocation.
1743         * README-hacking: Document configure_options.
1745         testsuite: improve Erlang tests portability, overridability.
1746         * tests/autotest.at (Erlang Eunit unit tests): Use "no" as
1747         value-if-not-found for Erlang tools.
1748         * tests/erlang.at: Likewise.  Also, use AS_EXIT instead of plain
1749         exit.
1751 2009-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1753         * bin/autoupdate.in: Fix typos in comments.
1755         Improve autotest testsuite summary message.
1756         * lib/autotest/general.m4 (AT_INIT): Hint at the toplevel log
1757         only if not $at_debug_p.  Always hint at the per-test output.
1759         Four new autoupdate tests, expected failures.
1760         * tests/tools.at (autoupdating macros recursively)
1761         (autoupdating with m4@&t@_pushdef, autoupdating with AC_REQUIRE)
1762         (autoupdating with complex quoting): New tests.
1764         Fix description of AC_CHECK_LIB regarding other deplibs.
1765         * doc/autoconf.texi (Libraries): Library linking may not fail
1766         even without missing additional libs.
1768 2009-09-12  Eric Blake  <ebb9@byu.net>
1770         Track recent copyright assignments.
1771         * AUTHORS: Update.
1773         Improve documentation on quoting.
1774         * doc/autoconf.texi (Autoconf Language): Clarify quoting example.
1775         * THANKS: Update.
1776         Reported by santilín.
1778 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1780         New config.status option --config.
1781         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Implement
1782         --config.
1783         * doc/autoconf.texi (config.status Invocation): Document it.
1784         * NEWS: Update.
1785         * tests/torture.at (configure invocation): Test it.
1786         Suggested several times, by several people, in the past.
1788 2009-09-10  Eric Blake  <ebb9@byu.net>
1790         Document that AS_INIT is automatically used.
1791         * doc/autoconf.texi (Initialization Macros) <AS_INIT>: Add words
1792         to clarify that only bare-bones scripts need a direct AS_INIT.
1793         Suggested by Reuben Thomas.
1795         Clarify portability pitfall of test.
1796         * doc/autoconf.texi (Limitations of Builtins) <test>: Give more
1797         reasons why -a and -o are not portable.
1798         Reported by Reuben Thomas.
1800 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1802         Document sed limitation with escaped metacharacters.
1803         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Use `%'
1804         rather than `/' as delimiter in an example `s' command.
1805         Document inconsistent treatment of escaped metacharacters.
1806         * THANKS: Update.
1807         Report by Dave Korn, with additional input from Paolo Bonzini
1808         and Eric Blake.
1810         Document temporary directory `$tmp' for use in config.status.
1811         * doc/autoconf.texi (Configuration Actions): Document `$tmp'.
1812         * NEWS: Update.
1814 2009-09-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1816         Update License to GPLv3+ including new Autoconf Exception.
1817         * NEWS, README: Update licensing information.
1818         * COPYING.EXCEPTION: New file.
1819         * Makefile.am (EXTRA_DIST): Distribute it.
1820         * cfg.mk (autom4te-update): Remove copyright change warning.
1821         * lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
1822         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
1823         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
1824         lib/autoconf/erlang.m4, lib/autoconf/fortran.m4,
1825         lib/autoconf/functions.m4, lib/autoconf/general.m4,
1826         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
1827         lib/autoconf/libs.m4, lib/autoconf/oldnames.m4,
1828         lib/autoconf/programs.m4, lib/autoconf/specific.m4,
1829         lib/autoconf/status.m4, lib/autoconf/types.m4,
1830         lib/autotest/autotest.m4, lib/autotest/general.m4,
1831         lib/autotest/specific.m4, lib/m4sugar/foreach.m4,
1832         lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4: Update exception
1833         statement, bump to GPLv3.
1834         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
1835         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
1836         bin/ifnames.in: Bump to GPLv3+, adjust --version output
1837         to reflect the GPLv3+ and the Autoconf Exception.
1838         * lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
1839         lib/Autom4te/General.pm, lib/Autom4te/Request.pm,
1840         lib/autom4te.in, lib/autoscan/autoscan.pre,
1841         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
1842         lib/freeze.mk, tests/atlocal.in, tests/autoscan.at,
1843         tests/autotest.at, tests/base.at, tests/c.at,
1844         tests/compile.at, tests/erlang.at, tests/foreign.at,
1845         tests/fortran.at, tests/local.at, tests/m4sh.at,
1846         tests/m4sugar.at, tests/mktests.sh, tests/semantics.at,
1847         tests/statesave.m4, tests/suite.at, tests/tools.at,
1848         tests/torture.at, tests/wrapper.as: Bump to GPLv3+.
1850         Allow to work on systems without Fcntl::flock implementation.
1851         * configure.ac (PERL_FLOCK): New substitution variable with test
1852         whether Fcntl::flock is implemented by the system.
1853         * bin/Makefile.am (edit): Substitute @PERL_FLOCK@.
1854         * bin/autom4te.in: Call XFile::lock only if flock is
1855         implemented.
1857 2009-09-04  Reuben Thomas <rrt@sc3d.org>  (tiny change)
1859         Mention the Autoconf archive.
1860         * doc/autoconf.texi (Coding Style): Add a link.
1862 2009-08-30  Bruno Haible  <bruno@clisp.org>
1864         Document another Solaris tr pitfall.
1865         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Mention
1866         that Solaris /usr/bin/tr does not only have problems with
1867         replacing NUL bytes but discards all NUL bytes from the input.
1869 2009-09-04  Eric Blake  <ebb9@byu.net>
1871         Improve wording about what goes before AC_INIT.
1872         * doc/autoconf.texi (Initializing configure): Update wording.
1873         (Versioning) <AC_PREREQ>: Remove misleading text, to match
1874         autoscan's behavior.
1875         * THANKS: Update.
1876         Reported by NightStrike, with input from Ralf Wildenhues.
1878 2009-09-04  Thomas Jahns  <jahns@dkrz.de>  (tiny change)
1880         Fix illegal tab character in Fortran source.
1881         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Change TAB back to
1882         multiple spaces; regression introduced 2008-10-23.
1883         * NEWS: Mention this.
1884         * THANKS: Update.
1886 2009-08-22  Romain Lenglet  <romain.lenglet@laposte.net>
1888         Fix AT_CHECK_EUNIT for versions of Erlang/OTP without init:stop/1.
1889         * lib/autotest/specific.m4 (AT_CHECK_EUNIT): Support older
1890         versions of Erlang/OTP with an erlang:stop() function that doesn't
1891         take arguments.
1893 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1895         Drop unneeded line in Eunit test.
1896         * tests/autotest.at (Erlang Eunit unit tests): Do not copy
1897         install-sh.
1899         Fix build dependencies for Erlang macro files.
1900         * lib/freeze.mk (autotest_m4f_dependencies): Add
1901         $(src_libdir)/autotest/specific.m4.
1902         * tests/Makefile.am (AUTOCONF_FILES): Add erlang.m4.
1904 2009-09-19  Paolo Bonzini  <bonzini@gnu.org>
1906         Use a separate program to test whether the compiler works.
1907         * lib/autoconf/erlang.m4 (_AC_LANG_NULL_PROGRAM(Erlang)): New.
1908         * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Copy _AC_LANG_NULL_PROGRAM.
1909         (_AC_LANG_NULL_PROGRAM(), _AC_LANG_NULL_PROGRAM): New.
1910         (_AC_COMPILER_EXEEXT_DEFAULT): Print here "whether the xyz compiler
1911         works", before exiting.
1912         (_AC_COMPILER_EXEEXT_WORKS): Merge into _AC_COMPILER_EXEEXT_CROSS,
1913         remove the "whether the xyz compiler works" message, use
1914         conftest$ac_cv_exeext instead of $ac_file.
1915         (_AC_COMPILER_EXEEXT): Try _AC_COMPILER_EXEEXT_DEFAULT using
1916         the null program, and clean conftest.out only after
1917         _AC_COMPILER_EXEEXT_CROSS.
1918         (AC_NO_EXECUTABLES): Use _AC_LANG_NULL_PROGRAM.
1919         (_AC_COMPILER_OBJEXT): Use _AC_LANG_NULL_PROGRAM.
1921 2009-08-18  Bruno Haible  <bruno@clisp.org>
1923         Document Solaris tr range and NUL limitations.
1924         * doc/autoconf.texi (Limitations of Usual Tools): Mention that
1925         Solaris /usr/bin/tr does not support ranges, nor the '\0' octal
1926         escape.
1928 2009-08-14  Eric Blake  <ebb9@byu.net>
1930         Simplify version control metadata.
1931         * .cvsignore: Delete.
1932         * bin/.cvsignore: Likewise.
1933         * config/.cvsignore: Likewise.
1934         * doc/.cvsignore: Likewise.
1935         * lib/.cvsignore: Likewise.
1936         * lib/autoconf/.cvsignore: Likewise.
1937         * lib/Autom4te/.cvsignore: Likewise.
1938         * lib/autoscan/.cvsignore: Likewise.
1939         * lib/autotest/.cvsignore: Likewise.
1940         * lib/emacs/.cvsignore: Likewise.
1941         * lib/m4sugar/.cvsignore: Likewise.
1942         * man/.cvsignore: Likewise.
1943         * tests/.cvsignore: Likewise.
1944         * bin/.gitignore: Likewise.
1945         * build-aux/.gitignore: Likewise.
1946         * config/.gitignore: Likewise.
1947         * doc/.gitignore: Likewise.
1948         * lib/.gitignore: Likewise.
1949         * lib/autoconf/.gitignore: Likewise.
1950         * lib/Autom4te/.gitignore: Likewise.
1951         * lib/autoscan/.gitignore: Likewise.
1952         * lib/autotest/.gitignore: Likewise.
1953         * lib/emacs/.gitignore: Likewise.
1954         * lib/m4sugar/.gitignore: Likewise.
1955         * man/.gitignore: Likewise.
1956         * tests/.gitignore: Likewise.
1957         * .gitignore: Consolidate all rules into one file.
1959         Normalize remaining copyright lines.
1960         * BUGS: Reformat copyright line, using UPDATE_COPYRIGHT_FORCE.
1961         * NEWS: Likewise.
1962         * README-hacking: Likewise.
1963         * TODO: Likewise.
1964         * lib/Autom4te/ChannelDefs.pm: Likewise.
1965         * lib/autoconf/fortran.m4: Likewise.
1966         * lib/autoconf/general.m4: Likewise.
1967         * lib/autoconf/lang.m4: Likewise.
1968         * lib/autotest/general.m4: Likewise.
1969         * maint.mk: Likewise.
1970         * tests/compile.at: Likewise.
1972         Improve copyright updating.
1973         * build-aux/update-copyright: Resynchronize from upstream.
1974         * maint.mk (update-copyright): Simplify based on gnulib.
1975         (update-copyright-env): New variable.
1976         * cfg.mk (update-copyright-exclude-regexp): Delete.
1977         (update-copyright-env): New override.
1978         * .x-update-copyright: New file.
1979         * lib/Autom4te/Makefile.am: Add copyright.
1980         * lib/Autom4te/Channels.pm: Revert copyright update to upstream
1981         file.
1982         * lib/Autom4te/Configure_ac.pm: Likewise.
1983         * lib/Autom4te/FileUtils.pm: Likewise.
1984         * lib/Autom4te/Struct.pm: Likewise.
1985         * lib/Autom4te/XFile.pm: Likewise.
1987         Update copyright.
1988         * AUTHORS: Include 2009 in copyright.
1989         * lib/Autom4te/C4che.pm: Likewise.
1990         * lib/Autom4te/Channels.pm: Likewise.
1991         * lib/Autom4te/Configure_ac.pm: Likewise.
1992         * lib/Autom4te/FileUtils.pm: Likewise.
1993         * lib/Autom4te/General.pm: Likewise.
1994         * lib/Autom4te/Request.pm: Likewise.
1995         * lib/Autom4te/Struct.pm: Likewise.
1996         * lib/autoconf/Makefile.am: Likewise.
1997         * lib/autoconf/autoconf.m4: Likewise.
1998         * lib/autoconf/autoscan.m4: Likewise.
1999         * lib/autoconf/autoupdate.m4: Likewise.
2000         * lib/autoconf/functions.m4: Likewise.
2001         * lib/autoconf/libs.m4: Likewise.
2002         * lib/autoconf/oldnames.m4: Likewise.
2003         * lib/autoconf/types.m4: Likewise.
2004         * lib/autoscan/Makefile.am: Likewise.
2005         * lib/autoscan/autoscan.pre: Likewise.
2006         * lib/autotest/Makefile.am: Likewise.
2007         * lib/autotest/autotest.m4: Likewise.
2008         * lib/emacs/autoconf-mode.el: Likewise.
2009         * lib/emacs/autotest-mode.el: Likewise.
2010         * lib/freeze.mk: Likewise.
2011         * lib/m4sugar/foreach.m4: Likewise.
2012         * man/Makefile.am: Likewise.
2013         * tests/atlocal.in: Likewise.
2014         * tests/autoscan.at: Likewise.
2015         * tests/foreign.at: Likewise.
2016         * tests/fortran.at: Likewise.
2017         * tests/mktests.sh: Likewise.
2018         * tests/semantics.at: Likewise.
2019         * tests/suite.at: Likewise.
2020         * tests/wrapper.as: Likewise.
2022         Prepare to bulk update copyright years.
2023         * build-aux/update-copyright: New file.
2024         * cfg.mk (gnulib-update): Sync it from gnulib.
2025         (update-copyright-exclude-regexp): New variable.
2026         (web-manual): Move...
2027         * maint.mk (web-manual): ...here, to match gnulib.
2028         (update-copyright): New target, copied from gnulib's
2029         maint.mk (it would be nice to sync this file...).
2030         (build_aux): New macro.
2031         (VC_LIST, emit_upload_commands): Use it.
2032         * build-aux/texinfo.tex: Resynchronize from upstream.
2033         * lib/autoconf/general.m4 (_AC_COPYRIGHT_YEARS): Reformat to meet
2034         expected pattern.
2035         * lib/autotest/general.m4 (_AT_COPYRIGHT_YEARS): Likewise.
2037 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
2039         Fix testsuite log capturing for tests 183 and 186.
2040         * tests/autotest.at (AT_CHECK_AT_PREP): Prepend AT_dir to
2041         testsuite log file for AT_CAPTURE_FILE.
2043 2009-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2045         Ensure we do not regress with AC_CHECK_MEMBERS.
2046         * tests/semantics.at (AC_CHECK_MEMBERS): Expose the recent
2047         AC_CHECK_MEMBERS fix.
2048         (AC_CHECK_MEMBER): New test group.
2050 2009-08-10  Jeff Squyres  <jsquyres@cisco.com>  (tiny change)
2052         Fix typo in AC_REQUIRE description.
2053         * doc/autoconf.texi (Prerequisite macros): Fix typo.
2055 2009-08-10  Paolo Bonzini  <bonzini@gnu.org>
2057         Fix description of the macro generated by AC_CHECK_MEMBERS.
2058         * lib/autoconf/types.m4 (_AC_CHECK_MEMBERS): Fix regex
2059         replacement.  Reported by Bruno Haible.
2061 2009-08-07  Romain Lenglet  <romain.lenglet@laposte.net>
2063         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Make AC_RUN_IFELSE
2064         fail if the test module doesn't compile.
2066 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
2068         Use exit code to detect no occurrences with grep.
2069         * tests/autotest.at (Erlang Eunit unit tests): Fix grep invocation.
2071 2009-08-01  Romain Lenglet  <romain.lenglet@laposte.net>
2072             Paolo Bonzini  <bonzini@gnu.org>
2074         * lib/autotest/specific.m4 (AT_CHECK_EUNIT): New file.
2075         * lib/autotest/Makefile.am (dist_autotestlib_DATA): Add specific.m4.
2076         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add definitions of
2077         variables used by AT_CHECK_EUNIT macro: ERL, ERLC, ERLCFLAGS.
2078         * tests/autotest.at (Erlang Eunit unit tests): Add test for macro
2079         AT_CHECK_EUNIT.
2080         * doc/autoconf.texi (Writing Testsuites): Document macro
2081         AT_CHECK_EUNIT.
2082         * NEWS: Mention macro AT_CHECK_EUNIT.
2084 2009-07-30  Paolo Bonzini  <bonzini@gnu.org>
2085             Joel E. Denny  <jdenny@clemson.edu>
2087         Clarify comparison of echo, printf, and AS_ECHO*.
2088         * doc/autoconf.texi (Limitations of Builtins): In echo's entry,
2089         give a reason why printf is better than echo.  In printf's
2090         entry, cross-reference echo's entry.
2092 2009-07-30  Paolo Bonzini  <bonzini@gnu.org>
2094         Add back AH_CHECK_HEADERS.
2095         * lib/autoconf/general.m4 (AH_CHECK_HEADERS): New.
2096         * NEWS: Create new section.
2098 2009-07-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2100         testsuite: avoid bogus hostname match from inner test logs.
2101         * tests/autotest.at (Hard fail): Check more restrictively for
2102         passed tests, so that hostnames recorded in the log file do not
2103         wrongly match.
2104         Report by Ludovic Courtès.
2106 2009-07-26  Eric Blake  <ebb9@byu.net>
2108         Release Version 2.64.
2109         * NEWS: Mention the release.
2110         * README: This release is stable.
2111         * HACKING (release): Use dist-xz, not dist-lzma.
2113         Document some optional features in INSTALL.
2114         * doc/install.texi (Basic Installation): Mention that INSTALL is
2115         generic, and that not all packages implement all features.
2116         Mention 'make distcheck' for maintainers, and 'make installcheck'
2117         for users.  Mention the GNU Coding Standards.
2118         (Installation Names): Mention DESTDIR vs. 'make prefix= install'
2119         as ways to alter the configuration, with caveats of each.  Move
2120         --program-prefix discussion...
2121         (Optional Features): ...here.  Mention --enable-silent-rules and
2122         use of make V=0.
2124         Basic improvements to INSTALL.
2125         * doc/install.texi (Basic Installation): Use better markup.
2126         (Multiple Architectures): Introduce the term VPATH.
2127         (Installation Names): Mention that --prefix must be absolute.
2128         * doc/autoconf.texi (Preset Output Variables)
2129         (Installation Directory Variables): Consistently refer to GNU
2130         Coding Standards.
2132         Update some upstream files.
2133         * build-aux/config.guess: Resynchronize from upstream.
2134         * build-aux/config.sub: Likewise.
2135         * build-aux/texinfo.tex: Likewise.
2136         * build-aux/vc-list-files: Likewise.
2137         * doc/standards.texi: Likewise.
2139 2009-07-25  Eric Blake  <ebb9@byu.net>
2141         Recognize new m4sugar keywords.
2142         * lib/emacs/autoconf-mode.el (autoconf-current-defun): Recognize
2143         m4_define_default, m4_defun_init, m4_defun_once.
2144         (autoconf-font-lock-keywords):  Likewise.
2146         Require m4 1.4.6, and fix testsuite to support this version.
2147         * m4/m4.m4 (AC_PROG_GNU_M4): Reject m4 1.4.5, now that we use
2148         regexp it can't handle.
2149         * NEWS: Mention minimum version bump.
2150         * README: Likewise.
2151         * README-hacking: Likewise.
2152         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
2153         * tests/tools.at (autom4te --trace and whitespace): Update test so
2154         still work with older m4 line numbers.
2155         * tests/m4sugar.at (m4@&t@_require: nested): Likewise.
2156         Reported by Ralf Wildenhues.
2158 2009-07-25  Bruno Haible  <bruno@clisp.org>
2160         Clarify autom4te debugging tips.
2161         * doc/autoconf.texi (Debugging via autom4te): Fix example from
2162         previous commit, and add clarification.
2164 2009-07-25  Eric Blake  <ebb9@byu.net>
2166         Document some autom4te debugging tips.
2167         * doc/autoconf.texi (Debugging via autom4te): New node.
2168         Suggested by Bruno Haible.
2170         Fix font-lock.
2171         * configure.ac (ac_cv_unsupported_fs_chars): Make editing easier.
2173         Let autoheader see through m4 macros in AC_DEFINE.
2174         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Expand macro before
2175         tracing its name.
2176         * lib/autoconf/autoheader.m4 (AH_VERBATIM, AH_TEMPLATE): Likewise,
2177         for using the macro in a template file.
2178         * tests/tools.at (autoheader and macros): New test.
2179         * NEWS: Mention this.
2180         Reported by Bruno Haible.
2182         Improve NEWS wording.
2183         * NEWS: Use more accurate statement.
2184         Suggestedy by Ralf Wildenhues.
2186 2009-07-24  Eric Blake  <ebb9@byu.net>
2188         Fix AS_EXIT for FreeBSD sh.
2189         * lib/m4sugar/m4sh.m4 (AS_EXIT): Always supply an argument to the
2190         shell function, since $? is not reliable on function entry.
2191         (_AS_EXIT_PREPARE): Simplify to assume argument.
2192         Reported by Ralf Wildenhues.
2194 2009-07-23  Eric Blake  <ebb9@byu.net>
2196         Run more tests under Solaris.
2197         * tests/local.at (AT_CHECK_AUTOCONF): Don't skip entire test
2198         group when passing over syntax checks.
2200 2009-07-23  Romain Lenglet  <romain.lenglet@laposte.net>
2202         Clean up temporary files generated by Erlang macros.
2203         * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB)
2204         (AC_ERLANG_SUBST_ROOT_DIR, AC_ERLANG_SUBST_LIB_DIR)
2205         (AC_ERLANG_SUBST_ERTS_VER): Delete conftest.out; renamed
2206         erlang_cv_* cache variables into ac_cv_erlang_*.
2207         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Delete conftest.beam
2208         files generated by Erlang compiler.
2209         * tests/local.at (AT_CHECK_ENV): Ignore variables defined by
2210         Erlang macros.
2211         * tests/erlang.at (AT_SETUP_ERLANG): Delete; replace all uses by
2212         AT_CHECK_MACRO.
2213         * tests/Makefile.am (AUTOCONF_FILES): Revert previous addition of
2214         generated Erlang tests; they are all hand-tested.
2216         Add autotests for Erlang macros.
2217         * tests/erlang.at: Added tests for all macros in erlang.m4.
2218         * tests/Makefile.am (TESTSUITE_HAND_AT, AUTOCONF_FILES): Added
2219         erlang.at.
2220         * tests/suite.at: Likewise.
2221         * tests/compile.at (AC_LANG, AC_LANG_PUSH & AC_LANG_POP): Added
2222         test for extension of Erlang files.
2223         (Multiple languages): Use correct m4 quoting.
2224         * NEWS: Mention this.
2226 2009-07-22  Eric Blake  <ebb9@byu.net>
2228         Fix test of autom4te from stdin.
2229         * tests/tools.at (autom4te cache locking): Make stdin request
2230         explicit, so that --force is properly used.
2232 2009-07-16  Eric Blake  <ebb9@byu.net>
2234         Don't hide leading space in autom4te --trace output.
2235         * bin/autom4te.in (handle_traces): Don't flatten leading and
2236         trailing space, since tracing spacing bugs can be useful.
2237         * tests/tools.at (autom4te --trace and whitespace): New test.
2239 2009-07-13  Eric Blake  <ebb9@byu.net>
2241         Document that $srcdir can be used during configure.
2242         * doc/autoconf.texi (Preset Output Variables): Add a paragraph.
2243         * THANKS: Update.
2244         Reported by Monty Taylor.
2246 2009-07-13  Eric Blake  <ebb9@byu.net>
2248         Disable asynchronous job notification for parallel tests.
2249         * lib/autotest/general.m4 (AT_INIT) <Driver loop>: Turn off notify
2250         mode, since zsh leaves it on after 'emulate sh'.
2251         * doc/autoconf.texi (Limitations of Builtins) <set>: Document that
2252         job control options are not portable.
2254         Guarantee that exit status trumps output matching.
2255         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document this
2256         better.
2257         * tests/autotest.at (Skip, parallel skip): Enhance tests.
2259         Fix nits in recent patches.
2260         * configure.ac (ac_cv_dir_trailing_space): Avoid $status, for
2261         zsh.
2262         * doc/autoconf.texi (Writing Testsuites) <AT_FAIL_IF, AT_SKIP_IF>:
2263         Tweak wording.
2264         (Introduction): Recommend m4 1.4.13.
2265         * README: Likewise.
2266         * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.  Use long option --gnu
2267         rather than -g.
2269 2009-07-13  Paolo Bonzini  <bonzini@gnu.org>
2271         Introduce AT_SKIP_IF and AT_FAIL_IF
2272         * NEWS: Mention AT_SKIP_IF and AT_FAIL_IF.
2273         * doc/autoconf.texi (Autotest): Document them.
2274         * lib/autotest/general.m4 (_AT_LINE_ESCAPED, AT_SKIP_IF,
2275         AT_FAIL_IF, _AT_CHECK_EXIT): New.
2276         (AT_CHECK): Use _AT_LINE_ESCAPED.
2277         * tests/autotest.at: Add tests for AT_SKIP_IF and AT_FAIL_IF.
2278         Use AT_SKIP_IF.
2279         * tests/local.at: Use AT_SKIP_IF.
2281 2009-07-13  Paolo Bonzini  <bonzini@gnu.org>
2283         Use m4 -g when available.
2284         * m4/m4.m4: Unset POSIXLY_CORRECT during first test.  Test for -g.
2285         Warn user if he has POSIXLY_CORRECT set but -g is not supported.
2286         * bin/Makefile.am: Substitute @M4_GNU@ into generated files.
2287         * bin/autom4te.in: Pass @M4_GNU@ to m4.
2289 2009-07-13  Eric Blake  <ebb9@byu.net>
2291         Fix previous patch.
2292         * lib/autotest/general.m4 (at_fn_check_prepare_notrace): Use
2293         proper m4 quoting.
2294         (_AT_DECIDE_TRACEABLE): Likewise.
2296 2009-07-13  Paolo Bonzini  <bonzini@gnu.org>
2298         * lib/autotest/general.m4 (at_fn_check_prepare_notrace): Use
2299         $at_trace_echo.  Add new REASON argument.
2300         (at_fn_check_prepare_trace): Do not call at_fn_check_prepare_notrace.
2301         Use $at_check_filter_trace.
2302         (at_fn_check_prepare_dynamic): Use at_fn_check_prepare_notrace.
2303         (at_traceon): Initialize to ':'.
2304         (at_traceoff): Remove, use 'set +x' instead throughout.
2305         (at_check_filter_trace, at_trace_echo): New shell variables.
2306         Initialize them if tracing is requested.
2307         (_AT_DECIDE_TRACEABLE): Adjust call to at_fn_check_prepare_notrace.
2309 2009-07-12  Paolo Bonzini  <bonzini@gnu.org>
2311         Move atlocal feature tests to configure
2312         * configure.ac: Test for unsupported characters in files and
2313         directories here...
2314         * tests/atlocal.in: ... and not here.
2316 2009-07-09  Eric Blake  <ebb9@byu.net>
2318         Fix test typo.
2319         * tests/m4sh.at (AS@&t@_INIT_GENERATED): Close fd, rather than
2320         creating file named -.
2322         Fix testsuite under dash.
2323         * tests/m4sh.at (LINENO stack, AS@&t@_BASENAME, AS@&t@_DIRNAME)
2324         (AS@&t@_ECHO and AS@&t@_ECHO_N, AS@&t@_EXIT, AS@&t@_MKDIR_P)
2325         (AS@&t@_VERSION_COMPARE, as_me, Negated classes in globbing)
2326         (Functions Support, Functions and return Support)
2327         (Nested AS@&t@_REQUIRE_SHELL_FN, Nested AS@&t@_REQUIRE)
2328         (AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require, AS@&t@_HELP_STRING)
2329         (AS@&t@_IF and AS@&t@_CASE, AS@&t@_FOR, AS@&t@_LITERAL_IF)
2330         (AS@&t@_VAR basics, AS@&t@_VAR_APPEND, AS@&t@_VAR_ARITH)
2331         (AS@&t@_INIT cleanup, AS@&t@_INIT_GENERATED, AS@&t@_MESSAGE_FD)
2332         (_AS@&t@_CLEAN_DIR, ECHO_C): Allow testing different CONFIG_SHELL
2333         options during the testsuite run.
2334         Reported by Ralf Wildenhues.
2336 2009-07-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2338         Ignore messages on stderr when testing for the zsh issue.
2339         * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Ignore stderr.
2341 2009-07-07  Eric Blake  <ebb9@byu.net>
2343         Skip parallel tests when zsh 'set -m' fails.
2344         * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Skip test if set -m
2345         is not supported.
2346         Reported by Ralf Wildenhues.
2348         Make parallel testsuite more portable.
2349         * lib/autotest/general.m4 (AT_INIT) <AT_JOB_FIFO_FD>: Avoid <>;
2350         instead open write descriptor in each group and read descriptor in
2351         main driver.
2352         * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Relax condition.
2354 2009-07-03  Eric Blake  <ebb9@byu.net>
2356         Avoid syntax error in ash.
2357         * lib/autotest/general.m4 (AT_INIT) <driver loop>: Avoid syntax
2358         errors on shells that don't recognize <>.
2359         * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Also skip parallel
2360         tests for this reason.   Skip based on the shell to be tested,
2361         not the shell driving the testsuite.
2362         (parallel syntax error): Rearrange similar to previous patch.
2363         (parallel test execution): Defer skip until after serial tests.
2365 2009-07-02  Eric Blake  <ebb9@byu.net>
2367         Skip test on shells that can't catch syntax failure.
2368         * tests/autotest.at (Syntax error): Skip test if shell aborts on
2369         syntax error (AIX ksh88) or doesn't detect it (zsh).
2370         * doc/autoconf.texi (Limitations of Builtins) <.>: Mention these
2371         limitations.
2372         Reported by Ralf Wildenhues.
2374 2009-06-30  Jan Madzik  <jmadzik@gmail.com>  (tiny change)
2375             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2377         Avoid AIX 6.1 ksh88 ECHO_C command substitution bug.
2378         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Ensure more than
2379         one character is output with `\c'; reset echo output state
2380         if buggy ksh was detected, and set ECHO_T instead of ECHO_C.
2381         * doc/autoconf.texi (Limitations of Builtins): Document it.
2382         * tests/m4sh.at (ECHO_C): New test.
2383         * THANKS: Update.
2385 2009-06-27  William Pursell  <bill.pursell@gmail.com>  (tiny change)
2387         Fix grammaro in documenation.
2388         * doc/autoconf.texi (Guidelines): Fix grammaro.
2390 2009-06-17  Eric Blake  <ebb9@byu.net>
2392         Fix AC_CHECK_HEADER infloop for gcc.
2393         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
2394         (_AC_CHECK_HEADER_OLD): Give up on AU_DEFUN, and manually warn
2395         about obsoletion, to avoid infinite loop in gcc.
2396         Reported by Ralf Wildenhues.
2398 2009-06-15  Eric Blake  <ebb9@byu.net>
2400         Add m4_copy_force, m4_rename_force.
2401         * lib/m4sugar/m4sugar.m4 (m4_copy_force, m4_rename_force): New
2402         macros.
2403         * tests/m4sugar.at (m4@&t@_defn): Test them.
2404         * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
2405         them.
2406         * NEWS: Likewise.
2407         Suggested by Ralf Wildenhues.
2409         Reinstate _AC_CHECK_HEADER_OLD for gcc.
2410         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
2411         (_AC_CHECK_HEADER_OLD): Provide autoupdate versions, since gcc and
2412         others used these undocumented macros.
2413         Reported by Ralf Wildenhues.
2415 2009-06-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2417         Fix concurrent autom4te.cache directory creation race.
2418         * bin/autom4te.in: Do not error out if another `autom4te'
2419         instance created the cache directory before we could.
2421 2009-06-11  Steven G. Johnson  <stevenj@alum.mit.edu>
2422         and Eric Blake  <ebb9@byu.net>
2424         Create a file in test program when detecting cross-compilation.
2425         * lib/autoconf/lang.m4 (_AC_LANG_IO_PROGRAM): New macro, returns
2426         program that creates a file.
2427         (_AC_COMPILER_EXEEXT,_AC_COMPILER_EXEEXT_WORKS): Call new macro
2428         and document why it's needed to robustly detect cross-compiling.
2429         (AC_LANG_DEFINE): Copy implementation across similar languages.
2430         * lib/autoconf/c.m4 (_AC_LANG_IO_PROGRAM(C)): Implement new macro.
2431         * lib/autoconf/fortran.m4 (_AC_LANG_IO_PROGRAM(Fortran 77)):
2432         Likewise.
2433         * lib/autoconf/erlang.m4 (_AC_LANG_IO_PROGRAM(Erlang)): Likewise.
2435 2009-06-11  Eric Blake  <ebb9@byu.net>
2437         Simplify AC_LANG(Fortran).
2438         * lib/autoconf/fortran.m4 (AC_LANG(Fortran)): Borrow from Fortran
2439         77, which requires reordering portions of the file.
2440         (AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran)): Now defined
2441         automatically.
2443         Clarify m4_copy semantics.
2444         * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Update
2445         documentation.
2446         * tests/m4sugar.at (m4@&t@_defn): Enhance test.
2448 2009-06-06  Eric Blake  <ebb9@byu.net>
2450         Improve documentation on trap pitfalls.
2451         * doc/autoconf.texi (Limitations of Builtins) <trap>: Mention new
2452         Posix 2008 requirement on trap, and dash bug in implementing it.
2453         Mention various shell bugs with traps defined inside subshells.
2454         Mention older bash limitation with single-command exit trap.
2455         <set>: Mention another 'set -e' limitation.
2456         Reported by Jens Schmidt.
2458 2009-06-06  Jim Meyering  <meyering@redhat.com>
2460         Improve testsuite --help
2461         * lib/autotest/general.m4: Correct the example in ./testsuite --help.
2462         Improve wording.
2464 2009-06-06  Eric Blake  <ebb9@byu.net>
2466         Document fallback behavior of AC_PROG_LEX.
2467         * doc/autoconf.texi (Particular Programs) <AC_PROG_LEX>: Mention
2468         why fallback is :, and that a --version check must be used to
2469         determine whether flex was found.
2470         Reported by Patrick Welche.
2472 2009-05-28  Jim Meyering  <meyering@redhat.com>
2474         Fix syntax errors in autoconf.texi.
2475         * doc/autoconf.texi (Erlang Libraries): @-escape curly braces
2476         in example code.
2478 2009-05-28  Romain Lenglet  <romain.lenglet@laposte.net>
2480         New AC_ERLANG_SUBST_ERTS_VER macro.
2481         * lib/autoconf/erlang.m4: Add macro AC_ERLANG_SUBST_ERTS_VER.
2482         * doc/autoconf.texi (Erlang Libraries): Document
2483         AC_ERLANG_SUBST_ERTS_VER.
2484         * NEWS: Likewise.
2485         * AUTHORS: Update Romain Lenglet's email address.
2486         * THANKS: Update.
2487         Suggested by Ruslan Babayev.
2489 2009-05-26  Eric Blake  <ebb9@byu.net>
2491         Sanitize more problematic environment variables.
2492         * doc/autoconf.texi (Environment Variable Index): Add more
2493         entries, particularly for precious variables and known culprit
2494         variables.  Needed to avoid overfull vbox.
2495         (Special Shell Variables) <CLICOLOR_FORCE, GREP_OPTIONS>: Add
2496         variables known to cause misbehavior.
2497         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Unset variables
2498         known to cause problems.
2499         * THANKS: Update.
2500         Based on reports from Ilya Bobir and Joey Mingrone.
2502 2009-05-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2504         Document VPATH = $(variable) issue in VPATH chapter.
2505         * doc/autoconf.texi (Variables listed in VPATH): New node.
2506         (Top, VPATH and Make): Adjust menus.
2507         (Build Directories): Refer to it.
2508         Prompted by report from Bruno Haible.
2510 2009-05-19  Eric Blake  <ebb9@byu.net>
2512         Update uses of all-permissive license.
2513         * ChangeLog: Relicense under GPL.
2514         * ChangeLog.0: Likewise.
2515         * ChangeLog.1: Likewise.
2516         * ChangeLog.2: Likewise.
2517         * THANKS: Likewise.
2518         * m4/m4.m4: Use latest wording of FSF all-permissive license.
2519         * m4/make-case.m4: Likewise.
2520         * doc/install.texi: Likewise.
2521         * tests/statesave.m4: Relicense to match rest of testsuite; this
2522         file does not need all-permissive license since it is not designed
2523         for reuse by other packages.
2524         * BUGS: Relicense under all-permissive license.
2525         * HACKING: Likewise.
2526         * NEWS: Likewise.
2527         * README: Likewise.
2528         * README-alpha: Likewise.
2529         * README-hacking: Likewise.
2530         * TODO: Likewise.
2532         Update some upstream files.
2533         * build-aux/config.guess: Resynchronize from upstream.
2534         * build-aux/gnupload: Likewise.
2535         * build-aux/vc-list-files: Likewise.
2536         * build-aux/texinfo.tex: Likewise.
2537         * doc/gendocs_template: Likewise.
2539         Don't mention undocumented interface in NEWS.
2540         * NEWS: Correct earlier entry about AS_FOR.
2542 2009-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2544         New manual section `Parallel Make'.
2545         * doc/autoconf.texi (Parallel Make): New node, document NetBSD
2546         `make -jN' quirks.
2547         (Top, Portable Make): Adjust menus.
2549 2009-05-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2551         testsuite: skip `Multiple languages' test without C++ compiler.
2552         * tests/compile.at (Multiple languages): Skip test on systems
2553         without a C++ compiler.
2554         Report by Jim Meyering.
2556 2009-05-13  Eric Blake  <ebb9@byu.net>
2558         Document zsh bug with empty commands.
2559         * doc/autoconf.texi (Special Shell Variables) <?>: Add mention of
2560         more problems with $?.
2562 2009-05-11  Patrick Welche  <prlw1@cam.ac.uk>  (tiny change)
2564         Also try X11R7 when looking for X11 files, for NetBSD.
2565         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Also try directories
2566         with X11R7 in the name.
2568 2009-05-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2570         Limit stderr logging for C compiler version.
2571         * lib/autoconf/general.m4 (_AC_RUN_LOG_LIMIT, _AC_DO_LIMIT): New
2572         internal macros, equivalent to _AC_RUN_LOG and _AC_DO, but with
2573         an optional additional argument to limit the number of lines of
2574         stderr output logged, defaulting to 10.
2575         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Use
2576         _AC_DO_LIMIT for capturing compiler version output.  Also test
2577         -qversion, for the IBM xlc compiler.
2578         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
2579         * THANKS: Update.
2580         Report by Christian Rössel and John R. Cary against Libtool.
2582 2009-04-24  Eric Blake  <ebb9@byu.net>
2584         Fix quoting of m4 macros in AT_CHECK.
2585         * lib/autotest/general.m4 (AT_CHECK): Expand prior to adding
2586         escapes, to avoid shell syntax errors caused by late macro
2587         expansion.
2588         * NEWS: Document this change.
2589         * tests/autotest.at (Metacharacters in command from M4 expansion):
2590         New test.
2592         manual: Use consistent spelling of here-document.
2593         * doc/autoconf.texi (Defining Symbols, Programming in M4sh)
2594         (Common Shell Constructs, Macro Names, Writing Testsuites): Fix
2595         spelling.
2596         Reported by Ralf Wildenhues.
2598         Make AT_CHECK_UNQUOTED more like AC_DEFINE_UNQUOTED.
2599         * lib/autotest/general.m4 (AT_CHECK_NOESCAPE): Keep older,
2600         undocumented semantics, where unbalanced " cannot be used in the
2601         stdout/stderr argument.
2602         (AT_CHECK_UNQUOTED): Treat " in stdout/stderr as a literal, since
2603         the text is used in double-quoted context.
2604         * tests/autotest.at (unquoted output): New test.
2605         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention which
2606         shell expansions are handled.
2608         Rename AT_CHECK_NOESCAPE to AT_CHECK_UNQUOTED.
2609         * lib/autotest/general.m4 (AT_CHECK_NOESCAPE): Deprecate, in favor
2610         of new spelling...
2611         (AT_CHECK_UNQUOTED): ...for consistency with AC_DEFINE_UNQUOTED.
2612         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document the
2613         rename.
2614         * NEWS: Likewise.
2615         * tests/autotest.at (Binary output, Cleanup): Adjust tests.
2616         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
2617         Likewise.
2618         Reported by Ralf Wildenhues.
2620 2009-04-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2622         New test to ensure autom4te cache file locking works.
2623         * tests/tools.at (autom4te cache locking): New test.
2624         Report by Eric Blake.
2626 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
2628         manual: another grammar improvement.
2629         * doc/autoconf.texi (Fortran Compiler): Avoid dependency on
2630         pronunciation of `FCFLAGS_f90'.
2632 2009-04-23  Eric Blake  <ebb9@byu.net>
2634         Change FOO placeholder to use @var{text} instead.
2635         * doc/autoconf.texi (Configuration Actions): Rename AC_CONFIG_FOOS
2636         to AC_CONFIG_@var{ITEMS}.
2637         * doc/autoconf.texi (config.status Invocation): Likewise.
2638         (AC_FOO_IFELSE vs AC_TRY_FOO): Rename node...
2639         (AC_ACT_IFELSE vs AC_TRY_ACT): ...to this.
2641 2009-04-22  Eric Blake  <ebb9@byu.net>
2643         Add m4_argn.
2644         * lib/m4sugar/m4sugar.m4 (m4_argn): New macro.
2645         * NEWS: Document it.
2646         * doc/autoconf.texi (Looping constructs) <m4_argn>: Likewise.
2647         <m4_car, m4_cdr>: Improve documentation.
2648         * tests/m4sugar.at (m4 lists): New test.
2650 2009-04-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2652         Improve description of AC_PROG_CC_C89 and AC_PROG_CC_C99.
2653         * doc/autoconf.texi (C Compiler): Document that AC_PROG_CC_C89
2654         and AC_PROG_CC_C99 prefer extended over strict conformance modes.
2655         Report by Vincent Lefèvre.
2657 2009-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2659         Revert bogus change in last commit.
2660         * doc/autoconf.texi (Initialization Macros): Revert change.
2661         Spotted by Eric Blake.
2663         manual: fix trivial grammar errors.
2664         * doc/autoconf.texi (Fortran Compiler, Initialization Macros)
2665         (Limitations of Usual Tools, Pretty Help Strings)
2666         (config.status Invocation): Fix `a' vs. `an' errors.
2667         Report by Eric Blake.
2669 2009-04-21  Eric Blake  <ebb9@byu.net>
2671         Shuffle maintainer-specific rules.
2672         * Makefile.am (maintainer-check-tests): Delete.
2673         (autom4te-update): Move...
2674         * cfg.mk (autom4te-update): ...here.
2675         (fetch): Depend on autom4te-update.  Split...
2676         (gnulib-update): ...into new rule.  Import move-if-change from
2677         gnulib.
2678         * maint.mk (maintainer-distcheck): Absorb former maintainer-check
2679         rule.
2680         * build-aux/move-if-change: New file, undistributed.
2681         * .gitattributes: Handle new upstream file.
2682         * .gitignore: Ignore maintainer cruft.
2683         * HACKING: Update maintainer instructions.
2684         * build-aux/config.guess: Update from upstream.
2685         * build-aux/config.sub: Likewise.
2686         * build-aux/gendocs.sh: Likewise.
2687         * build-aux/texinfo.tex: Likewise.
2688         * doc/gendocs_template: Likewise.
2689         * doc/standards.texi: Likewise.
2691 2009-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2693         Sync autom4te perl modules from Automake.
2694         * lib/Autom4te/Channels.pm: Sync from Automake.
2695         * lib/Autom4te/FileUtils.pm: Likewise.
2696         * lib/Autom4te/XFile.pm: Likewise.
2698         Adjust channel definitions for new Automake `ordered' flag.
2699         * lib/Autom4te/ChannelDefs.pm (Autom4te::ChannelDefs): Set
2700         `ordered' flag to zero for channels `fatal', `automake', and
2701         `verb'.  This has currently no effect on actual semantics but
2702         avoids a consistency check needed for Automake's usage of the
2703         Channels.pm code.
2705         manual: clarify m4_if synopsis.
2706         * doc/autoconf.texi (Redefined M4 Macros): Rewrite synopsis of
2707         m4_if in the presence of more than three arguments.
2709         Improve and clarify `config.status' usage documentation.
2710         * doc/autoconf.texi (config.status Invocation): Fix markup in
2711         synopsis.  Use `tag' instead of `file' notation for the
2712         non-option arguments, to be consistent with the documentation
2713         of the AC_CONFIG_* macros.
2714         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise,
2715         use `tag' notation for non-option arguments.
2716         Report by John Calcote.
2718 2009-04-15  Eric Blake  <ebb9@byu.net>
2720         Test that autotest handles binary output.
2721         * tests/autotest.at (Binary output): New test.
2722         Suggested by Ralf Wildenhues.
2724         Add stdout-nolog and ignore-nolog to AT_CHECK.
2725         * lib/autotest/general.m4 (AT_DIFF_STDERR(stderr-nolog))
2726         (AT_DIFF_STDERR(ignore-nolog), AT_DIFF_STDOUT(stdout-nolog))
2727         (AT_DIFF_STDOUT(ignore-nolog)): New macros.
2728         * tests/autotest.at (Logging): New test.
2729         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document the
2730         new logging actions.
2731         * NEWS: Likewise.
2732         Reported by Ralf Wildenhues.
2734         Teach AT_CHECK about hard failures.
2735         * lib/autotest/general.m4 (AT_INIT) <at_fn_check_skip>
2736         <at_fn_check_status, at_fn_group_postprocess>: Handle hard
2737         failures.
2738         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document
2739         AT_CHECK_NOESCAPE and exit status 99.
2740         * NEWS: Likewise.
2741         * tests/autotest.at (Hard fail, Cleanup): New tests.
2743 2009-04-14  Eric Blake  <ebb9@byu.net>
2745         Fix yesterday's regression in AS_IF.
2746         * lib/m4sugar/m4sh.m4 (_AS_IF_ELSE): Don't corrupt $? in else
2747         branch; it is up to the user to avoid syntax errors.
2748         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Adjust test.
2750 2009-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2752         Add traces for AM_SILENT_RULES.
2753         * lib/autom4te.in (Automake-preselections): Trace
2754         AM_SILENT_RULES.
2756 2009-04-13  Eric Blake  <ebb9@byu.net>
2758         Improve documentation related to expanded-before-required.
2759         * doc/autoconf.texi (Expanded Before Required): Add a case study.
2760         (Running the Compiler) <AC_COMPILE_IFELSE>: Remind users that
2761         running a compile test will AC_REQUIRE the compiler check.
2762         (Macro Definitions) <AC_DEFUN>: Contrast AC_DEFUN and m4_define.
2763         (C Compiler) <AC_PROG_CC>: Mention the fact that only first
2764         invocation of this macro checks for $EXEEXT, and that many other
2765         macros use it via AC_REQUIRE.
2766         Reported by Andreas Schwab.
2768         Mention latest rules about make and set -e.
2769         * doc/autoconf.texi (Failure in Make Rules): Posix is now clear
2770         that make must use set -e.
2771         (Limitations of Builtins) <set>: Clarify more about set -e
2772         behavior.
2774         Improve documentation about if exit status.
2775         * doc/autoconf.texi (Limitations of Builtins) <if>: Mention that
2776         exit status bugs don't affect modern targets.
2777         Reported by Andreas Schwab.
2779         Add cross-reference to new macros.
2780         * doc/autoconf.texi (Text processing Macros) <m4_normalize>
2781         <m4_strip>: Reference the new m4_ifblank.
2782         Suggested by Mike Frysinger.
2784         Make AS_IF, AS_CASE, and AS_FOR more robust to blank arguments.
2785         * lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT, AS_FOR, _AS_IF)
2786         (_AS_IF_ELSE, AS_IF): Avoid syntax error on blank argument,
2787         including a macro with an empty expansion.
2788         * NEWS: Mention this.
2789         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE, AS@&t@_FOR): Update
2790         tests.
2791         Reported by Mike Frysinger.
2793         Add m4_blank and friends.
2794         * lib/m4sugar/m4sugar.m4 (m4_blank, m4_nblank, m4_default_nblank)
2795         (m4_default_nblank_quoted): New macros.
2796         * NEWS: Document them.
2797         * doc/autoconf.texi (Conditional constructs): Likewise.
2798         * tests/m4sugar.at (m4sugar shorthand conditionals): New test.
2799         Suggested by Mike Frysinger.
2801 2009-04-13  Eric Blake  <ebb9@byu.net>
2803         Finish upgrade to GFDL 1.3.
2804         * doc/autoconf.texi (copying): Use correct license; comment change
2805         was missed on 2008-11-04.
2807 2009-04-10  Eric Blake  <ebb9@byu.net>
2809         Test parallel handling of syntax error.
2810         * tests/autotest.at (parallel syntax error): New test.
2811         Suggested by Ralf Wildenhues.
2813 2009-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2815         Document awk and config.status line length limitations.
2816         * doc/autoconf.texi (Configuration Actions): The input to
2817         config.status should have reasonable line length.
2818         (Limitations of Usual Tools): Document IRIX, HP-UX awk input
2819         line length limit.
2820         Report by Bruno Haible.
2822         Skip `Multiple languages' test if CC is a C++ compiler.
2823         * tests/compile.at (Multiple languages): Before starting the
2824         test proper, build and run a configure script that tests the
2825         C compiler only, and skips the test if this is found to be a
2826         C++ compiler.
2827         Report by Eric Blake.
2829         Note that AC_DEFUN is needed for aclocal.
2830         * doc/autoconf.texi (Coding Style): Public third-party macros
2831         should be AC_DEFUN'ed.
2832         Report by John Calcote.
2834 2009-04-10  Eric Blake  <ebb9@byu.net>
2836         Add undocumented _AS_CLEAN_DIR.
2837         * lib/m4sugar/m4sh.m4 (_AS_CLEAN_DIR): New macro; fixes m4 quoting
2838         in previous patch.
2839         * lib/autotest/general.m4 (AT_INIT) <at_fn_group_prepare>: Use new
2840         macro.
2841         * tests/m4sh.at (_AS@&t@_CLEAN_DIR): New test.
2842         Reported by Ralf Wildenhues.
2844 2009-04-09  Eric Blake  <ebb9@byu.net>
2846         Avoid problems caused by deleting in-use directory.
2847         * lib/autotest/general.m4 (AT_INIT) <at_fn_group_prepare>: Only
2848         remove the contents of $at_group_dir, not the directory itself.
2850         Fix regression in empty test.
2851         * lib/autotest/general.m4 (AT_SETUP): Prep AT_ingroup for fallback
2852         use in empty test.  Fixes regression introduced 2009-04-06.
2853         (_AT_CHECK): Undo fallback when a test is not empty.
2854         (AT_CLEANUP): Expand AT_ingroup before deleting.
2856 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
2858         Make a less conservative cross-compilation guess for AC_FUNC_UTIME_NULL.
2859         * lib/autoconf/functions.m4 (AC_FUNC_UTIME_NULL): Assume
2860         not crosscompiling to an obsolete system.
2862 2009-04-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2864         Automake relies on the undocumented `_AC_COMPILER_EXEEXT' macro.
2865         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Document that
2866         Automake relies on this macro.
2868 2009-04-06  Eric Blake  <ebb9@byu.net>
2870         Reduce testsuite size.
2871         * tests/statesave.m4: New file.
2872         * tests/Makefile.am (EXTRA_DIST): Distribute it.
2873         * tests/local.at (AT_CONFIGURE_AC): Reuse file, rather than
2874         repeating inline definition of AC_STATE_SAVE.
2875         (AT_CHECK_ENV): Factor code...
2876         (_AT_CHECK_ENV): ...into shell function.
2877         * tests/m4sh.at (AT_DATA_LINENO): Avoid churn in testsuite.
2879         Handle shell comments in AT_CHECK.
2880         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Handle # in
2881         test correctly.  Latent bug in handling shell comment was first
2882         fixed 2008-11-20, but regressed two patches later.
2883         * tests/autotest.at (Shell comment in command): New test.
2884         * NEWS: Document the fix.
2886         Hard fail any test with syntax errors.
2887         * lib/autotest/general.m4 (AT_INIT) <at_fn_group_postprocess>:
2888         Guarantee test failure on syntax error, rather than inheriting
2889         status from previous test.
2890         * tests/autotest.at (Syntax error): New test.
2892 2009-03-31  Eric Blake  <ebb9@byu.net>
2894         Beta Release Version 2.63b.
2895         * NEWS: Mention the release.
2896         * README: Clarify that this is a beta release.
2897         * build-aux/texinfo.tex: Synchronize from upstream.
2898         * .x-sc_trailing_blank: Exempt more upstream files.
2900 2009-03-30  Eric Blake  <ebb9@byu.net>
2902         Fix testsuite failures under zsh.
2903         * tests/local.at (AT_CHECK_ENV): Exempt $argv and $ARGC, which are
2904         set by zsh -c 'emulate sh'.
2905         Reported by Ralf Wildenhues.
2907         For now, skip parallel tests under less-tested shells.
2908         * tests/autotest.at (AT_CHECK_AT): Add pre-test argument.
2909         (Tested programs, Startup error messages, AT_CHECK_AT_TITLE)
2910         (Fallacy, Skip, errexit, Long test source lines)
2911         (Debugging a successful test, Debugging script and environment)
2912         (Debugging a failed test, Using atlocal)
2913         (Choosing where testsuite is run): Adjust callers.
2914         (AT_SKIP_PARALLEL_TESTS): New macro, to skip parallel tests except
2915         under zsh, bash, or when TEST_PARALLEL_AUTOTEST is defined.  Makes
2916         it easier to avoid testsuite hangs for users with dash or other
2917         less-tested shell.
2918         (parallel test execution, parallel truth, parallel fallacy)
2919         (parallel skip, parallel errexit)
2920         (parallel autotest and signal handling): Use it.
2921         * BUGS: Mention this.
2923 2009-03-24  Andris Pavenis  <andris.pavenis@iki.fi>  (tiny change)
2925         Fix awk substitution of carriage returns on DJGPP.
2926         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix typo in
2927         generation of ac_cs_awk_cr.
2928         * THANKS: Update.
2930 2009-03-24  Aaron W. LaFramboise  <aaronenvelope277@aaronwl.com>  (tiny change)
2932         Work around cygwin bash igncr mode.
2933         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fall back to
2934         bash carriage returns if ac_cr lost \r from ``.
2935         * THANKS: Update.
2936         Suggested by Eric Blake.
2938 2009-03-24  Eric Blake  <ebb9@byu.net>
2940         Fix underquoted example in manual.
2941         * doc/autoconf.texi (Common Shell Constructs) <AS_TR_CPP>:
2942         Properly m4-quote #.
2943         * THANKS: Update spelling.
2944         Reported by Matěj Týč.
2946 2009-03-18  Eric Blake  <ebb9@byu.net>
2948         Manual: mention more expr pitfalls.
2949         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>:
2950         Mention HP-UX limitation, and $ ambiguity.
2951         * THANKS: Update.
2952         Reported by Jens Schmidt, in http://bugs.debian.org/466990.
2954 2009-03-17  Jim Meyering  <meyering@redhat.com>
2956         Manual: fix a typo.
2957         * lib/m4sugar/m4sh.m4: s/are/is/ => "there is no indirection"
2959 2009-03-17  Eric Blake  <ebb9@byu.net>
2961         Use test consistently in examples.
2962         * doc/autoconf.texi (Subdirectories, Caching Results)
2963         (Common Shell Constructs, Prerequisite Macros, Coding Style)
2964         (Changed Results, Particular Programs, Defining Symbols):
2965         Protect against arbitrary user strings.
2966         (Multiple Cases): Mention why $fstype does not need protection.
2967         Reported by Reuben Thomas.
2969         Improve confusing section names.
2970         * doc/autoconf.texi (Specifying Names): Rename node...
2971         (Specifying Target Triplets): ...to this.
2972         (Generic Programs): Adjust references.
2973         * doc/install.texi (System Type): Touch up formatting.
2974         * THANKS: Update.
2975         Reported by Tim Freeman, in http://bugs.debian.org/312873.
2977         Remove historical inaccuracy.
2978         * doc/autoconf.texi (Portable Shell): Don't perpetuate myth about
2979         #!/bin/sh needing a space.
2980         Reported by Reuben Thomas.
2982         Recommend AS_HELP_STRING more prominently.
2983         * doc/autoconf.texi (External Software): Reduce mention of
2984         hand-written help strings.
2985         Reported by Reuben Thomas.
2987 2009-03-16  Eric Blake  <ebb9@byu.net>
2989         Fix 'make pdf'.
2990         * doc/autoconf.texi (Balancing Parentheses): Fix usage of
2991         @itemize.
2992         Reported by Ralf Wildenhues, fix suggested by Karl Berry.
2994 2009-03-14  Eric Blake  <ebb9@byu.net>
2996         Resync upstream files.
2997         * GNUmakefile: Run 'make fetch'.
2998         * build-aux/announce-gen: Likewise.
2999         * build-aux/config.guess: Likewise.
3000         * build-aux/config.sub: Likewise.
3001         * build-aux/gnupload: Likewise.
3002         * build-aux/texinfo.tex: Likewise.
3003         * build-aux/vc-list-files: Likewise.
3004         * doc/gnu-oids.texi: Likewise.
3005         * doc/standards.texi: Likewise.
3007 2009-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3009         New test for SunStudio `restrict' handling.
3010         * tests/c.at (AC_C_RESTRICT and C++): New test.
3011         Prompted by bug report from Rolf Vandevaart.
3013 2009-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3015         Manual: testsuite depends on package.m4.
3016         * doc/autoconf.texi (Making testsuite Scripts): In the example
3017         makefile snippet, $(TESTSUITE) depends on $(srcdir)/package.m4.
3019 2009-03-02  Allan Caffee  <allan.caffee@gmail.com>  (tiny change)
3021         Fix a typo in comment for AS_LITERAL_IF.
3022         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Update a comment that fell
3023         out of date when this function was moved/renamed in 59ecd766.
3024         * THANKS: Update.
3026 2009-03-02  Eric Blake  <ebb9@byu.net>
3028         Improve wording for AS_ESCAPE.
3029         * doc/autoconf.texi (Common Shell Constructs) <AS_ESCAPE>: Touch
3030         up documentation.
3031         * lib/m4sugar/m4sh.m4 (_AS_ESCAPE): Fix comment typos.
3032         Reported by Ralf Wildenhues.
3034 2009-02-24  Eric Blake  <ebb9@byu.net>
3036         Use pkgdatadir consistently.
3037         * bin/Makefile.am (edit): Substitute pkgdatadir, not datadir.
3038         * lib/Makefile.am (edit): Likewise.
3039         * lib/autom4te.in (Autoconf-without-aclocal-m4, Autotest, M4sh)
3040         (M4sugar): Use @pkgdatadir@, not @datadir@.
3041         * bin/autoheader.in ($datadir): Likewise.
3042         * bin/autom4te.in ($datadir): Likewise.
3043         * bin/autoreconf.in ($datadir): Likewise.
3044         * bin/autoscan.in ($datadir): Likewise.
3045         * bin/autoupdate.in ($datadir): Likewise.
3046         * bin/ifnames.in ($datadir): Likewise.
3047         * doc/autoconf.texi (Installation Directory Variables): Update
3048         example to be consistent; focus on $(bindir) as an autoconf
3049         variable, and mention that $(pkgdatadir) comes from automake.
3050         Reported by Reuben Thomas.
3052 2009-02-19  Eric Blake  <ebb9@byu.net>
3054         Use m4_translit more efficiently in AS_ESCAPE.
3055         * lib/m4sugar/m4sh.m4 (_AS_ESCAPE): Alter API to take first byte
3056         of set separately from rest.
3057         (AS_ESCAPE, _AS_QUOTE_MODERN, AS_TR_SH, AS_VAR_GET): Adjust
3058         callers.
3059         * lib/autoconf/autoheader.m4 (AH_VERBATIM): Avoid duplicate
3060         characters in translit request.
3061         * doc/autoconf.texi (Common Shell Constructs) <AS_ESCAPE>:
3062         Document the macro.
3063         * NEWS: Likewise.
3065         Mention recently documented macros.
3066         * NEWS: Update list of new documentation.
3068 2009-02-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3070         Add index for config.site.
3071         * doc/autoconf.texi (Site Defaults): Add index for config.site.
3072         * THANKS: Update.
3073         Report by Stephen P. Schaefer.
3075 2009-02-12  Eric Blake  <ebb9@byu.net>
3077         Fix m4_set speed regression introduced 2008-12-18.
3078         * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): Alter API to avoid
3079         creating larger argument on each iteration.
3080         (m4_stack_foreach_sep, m4_stack_foreach_sep_lifo)
3081         (_m4_set_contents_2): Adjust all four-argument callers.
3083 2009-02-05  Eric Blake  <ebb9@byu.net>
3085         Mention new AC_DEFUN_ONCE clients.
3086         * NEWS: Mention recent semantic changes.
3087         Reported by Ralf Wildenhues.
3089 2009-02-03  Eric Blake  <ebb9@byu.net>
3091         Use AC_DEFUN_ONCE for some one-shot AC_PROG macros.
3092         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Switch to
3093         AC_DEFUN_ONCE, since this is a one-shot macro.
3094         (AC_PROG_INSTALL): Likewise.
3096 2009-02-03  Eric Blake  <ebb9@byu.net>
3098         Mention that packagers should not pre-set CFLAGS.
3099         * doc/autoconf.texi (Preset Output Variables) <CFLAGS>: Copy
3100         advice given by automake on handling variables reserved by GNU
3101         Coding Standards.
3102         Reported by Karl Berry.
3104         Document lib64 in config.site.
3105         * doc/autoconf.texi (Site Defaults): Fix typo in FHS sample file.
3106         Mention use of lib64.
3107         * THANKS: Update.
3108         Reported by Tom Browder, with help from Peter Breitenlohner.
3110 2009-01-28  Eric Blake  <ebb9@byu.net>
3112         Use AC_DEFUN_ONCE for uncontroversial one-shot macros.
3113         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Switch to
3114         AC_DEFUN_ONCE, since this is a one-shot macro.
3115         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
3116         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD)
3117         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Likewise.
3119 2009-01-28  Eric Blake  <ebb9@byu.net>
3121         Reduce blank lines in AC_DEFUN_ONCE macros.
3122         * lib/m4sugar/m4sugar.m4 (m4_defun_once): Avoid redundant blank
3123         line when a defun_once macro is required.
3124         (_m4_defun_once): New helper macro, for less memory use.
3125         * tests/m4sugar.at (m4@&t@_require: nested): Adjust test.
3127         Silence another false positive expand-before-require.
3128         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro_outer)
3129         (_m4_defun_epi_outer, _m4_require_call, m4_provide): Track name
3130         that caused a diversion change, not just diversion number.
3131         (m4_require): Factor...
3132         (_m4_require_check): ...into new macro, which also checks whether
3133         diversion that performed the expansion has been collected.
3134         * tests/m4sugar.at (m4@&t@_require: nested): Enhance test.
3135         Reported by Ralf Wildenhues.
3137 2009-01-28  Eric Blake  <ebb9@byu.net>
3139         Fix AC_C_RESTRICT for Sun Studio 12 C++.
3140         * lib/autoconf/c.m4 (AC_C_RESTRICT): Newer Sun Studio C provides
3141         __restrict__ rather than _Restrict, which still trips up Sun
3142         Studio 12 C++.
3143         * THANKS: Update.
3144         Reported by Rolf Vandevaart.
3146 2009-01-28  Eric Blake  <ebb9@byu.net>
3148         Fix years in copyright notices.
3149         * lib/m4sugar/m4sugar.m4 (m4_copyright_condense): New macro,
3150         undocumented for now.
3151         * lib/m4sugar/Makefile.am (version.m4): Add m4_PACKAGE_YEAR,
3152         m4_PACKAGE_URL.
3153         (RELEASE_YEAR): New macro, copied from bin/Makefile.am.
3154         * lib/autoconf/general.m4 (_AC_COPYRIGHT_YEARS): New macro.
3155         (AC_COPYRIGHT): Add undocumented third parameter.
3156         (_AC_INIT_COPYRIGHT): Avoid need to bump copyright years.
3157         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
3158         * lib/autotest/general.m4 (AT_INIT): Likewise.
3159         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Likewise.
3160         (AT_COPYRIGHT): Add undocumented third parameter.
3161         * tests/local.at (AT_COPYRIGHT): Don't add an extra copyright
3162         parameter; the generic copyright given by autotest is sufficient
3163         since we are the package that owns autotest.
3165 2009-01-27  Eric Blake  <ebb9@byu.net>
3167         Use URLs in --help output, part 3: testsuite.
3168         * doc/autoconf.texi (Writing Testsuites): Mention autotest
3169         namespace.
3170         (Writing Testsuites) <AT_INIT>: Mention mandatory macros.
3171         (Making testsuite Scripts): Document AT_PACKAGE_URL.
3172         * tests/Makefile.am (package.m4): Follow our own advice.
3173         * lib/autotest/general.m4 (AT_INIT): Give the user a hint about
3174         package.m4.  Enhance --help output.
3175         (_AT_COPYRIGHT_YEARS): New macro, to make copyright bump easier.
3177         Use URLs in --help output, part 2: configure.
3178         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump copyright
3179         date.
3180         (_AC_INIT_PACKAGE): Support optional URL parameter, mapped to
3181         AC_PACKAGE_URL.
3182         (_AC_INIT_DEFAULTS, _AC_INIT_PREPARE): Substitute it.
3183         (_AC_INIT_HELP): Use it in './configure --help' output.
3184         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise, for
3185         './config.status --help'.  Bump copyright date.
3186         * doc/autoconf.texi (Initializing configure) <AC_INIT>: Document
3187         new parameter.
3188         * NEWS: Likewise.
3189         * tests/tools.at (autoheader): Adjust test.
3190         * tests/torture.at (@%:@define header templates)
3191         (Torturing config.status): Likewise.
3193         Use URLs in --help output, part 1: autoconf executables.
3194         * bin/autoconf.as (usage): Make output consistent with recent
3195         change in gnulib version-etc module.
3196         * bin/autoheader.in ($help): Likewise.
3197         * bin/autom4te.in ($help): Likewise.
3198         * bin/autoreconf.in ($help): Likewise.
3199         * bin/autoscan.in ($help): Likewise.
3200         * bin/autoupdate.in ($help): Likewise.
3201         * bin/ifnames.in ($help): Likewise.
3203 2009-01-27  Peter Breitenlohner  <peb@mppmu.mpg.de>  (tiny change)
3205         Quote traced macros passed from autom4te to M4.
3206         * bin/autom4te (handle_m4): Apply shell_quote to macro names.
3207         * tests/tools.at (autom4te --trace and unusual macro names): New
3208         test.
3209         * THANKS: Update.
3211 2009-01-26  Eric Blake  <ebb9@byu.net>
3213         Improve AC_DEFUN_ONCE semantics.
3214         * lib/m4sugar/m4sugar.m4 (m4_defun_once): Rewrite to be no-op,
3215         rather than warning, on second use, and make sure first use never
3216         occurs out of order.
3217         * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
3218         Enhance test.
3219         * tests/base.at (AC_REQUIRE & AC_DEFUN_ONCE: [Require, expand],
3220         (AC_REQUIRE & AC_DEFUN_ONCE: [Expand, require]): Adjust tests.
3221         * NEWS: Document this.
3222         * doc/autoconf.texi (Macro Definitions) <AC_DEFUN>: Mention
3223         AC_DEFUN_ONCE.
3224         (Prerequisite Macros) <AC_REQUIRE>: Likewise.
3225         (Expanded Before Required): Likewise.
3226         (One-Shot Macros) <AC_DEFUN_ONCE>: Document new semantics.
3227         Reported by Bruno Haible, with suggestion by Paolo Bonzini.
3229 2009-01-24  Eric Blake  <ebb9@byu.net>
3231         Fix typos in recent patches.
3232         * lib/m4sugar/m4sugar.m4: Improve m4_defun comments.
3233         * doc/autoconf.texi (Expanded Before Required): Fix typos.
3234         Reported by Ralf Wildenhues.
3236         Revert change to AC_DIR_HEADER.
3237         * lib/autoconf/headers.m4 (AC_DIR_HEADER): Explicitly expanding
3238         AC_HEADER_DIRENT no longer triggers a warning, and helps the user
3239         who decides they don't need the obsolete AC_FUNC_CLOSEDIR_VOID.
3240         Reported by Paolo Bonzini.
3242 2009-01-22  Eric Blake  <ebb9@byu.net>
3244         Silence a false positive expand-before-require case.
3245         * lib/m4sugar/m4sugar.m4 (m4_provide): Track the diversion in
3246         which a macro was provided.
3247         (m4_require): Compare diversion numbers, rather than m4_require
3248         nesting, when determining direct requires.
3249         * tests/m4sugar.at (m4@&t@_require: nested): Test it.
3250         Reported by Ralf Wildenhues, affecting Libtool.
3252 2009-01-21  Eric Blake  <ebb9@byu.net>
3254         Fix out-of-order expansion with expand-before-require.
3255         * lib/m4sugar/m4sugar.m4 (m4_require): Redundantly expand a
3256         required macro when issuing expand-before-require warning.
3257         * doc/autoconf.texi (Prerequisite Macros): Adjust documentation.
3258         (Expanded Before Required): New node.
3259         * tests/m4sugar.at (m4@&t@_require: nested): Adjust test.
3260         * NEWS: Mention this fix.
3261         Suggested by Bruno Haible.
3263         Warn if macro is provided before indirectly required.
3264         * lib/m4sugar/m4sugar.m4 (m4_provide): Track the set of all macros
3265         provided since last outermost defun.
3266         (_m4_defun_pro_outer): Empty the set.
3267         (_m4_require_call): Distinguish between direct and indirect
3268         requires, and remove required macros from the set.
3269         (m4_require): Check the set, in order to warn.
3270         * tests/m4sugar.at (m4@&t@_require: nested): Remove xfail, and add
3271         test case for direct requires.
3273 2009-01-20  Eric Blake  <ebb9@byu.net>
3275         Clean up some bugs caught by preliminary dependency validation.
3276         * lib/autoconf/headers.m4 (AC_DIR_HEADER): Don't invoke
3277         AC_HEADER_DIRENT, since AC_FUNC_CLOSEDIR_VOID requires it.
3278         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
3279         (_AS_SHELL_SANITIZE): Fix quoting bugs.
3281 2009-01-19  Eric Blake  <ebb9@byu.net>
3283         Improve AC_REQUIRE documentation.
3284         * doc/autoconf.texi (Macro Definitions) <AC_DEFUN>: Add @defmac,
3285         and mention interaction with AC_REQUIRE.
3286         (Prerequisite Macros) <AC_REQUIRE>: Give more detail on user
3287         ordering constraint bug, and how to fix it.
3288         * tests/m4sugar.at (m4@&t@_require: nested): New test.
3290         Speed up m4_require.
3291         * lib/m4sugar/m4sugar.m4 (_m4_divert_dump): Change semantics to
3292         always be defined, as either empty or a number.
3293         (_m4_defun_pro_outer, _m4_defun_epi_outer): Treat _m4_divert_dump
3294         as a stack, rather than a one-shot macro.
3295         (_m4_require_call): Expect third argument to be pre-expanded.
3296         (m4_divert_require, m4_require): Adjust clients accordingly.
3297         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Likewise.
3299 2009-01-17  Eric Blake  <ebb9@byu.net>
3301         Avoid underfull hbox.
3302         * doc/autoconf.texi (Installation Directory Variables): Reword to
3303         fit on line.
3305 2009-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3307         Ignore `set -e'-related failure of NetBSD sh.
3308         * tests/m4sh.at (AS@&t@_EXIT): Skip test if (NetBSD) shell
3309         fails to finish EXIT trap after set -e.
3311 2009-01-06  Eric Blake  <ebb9@byu.net>
3313         Maintainer cleanups.
3314         * cfg.mk (web-manual): Use new feature of gendocs.
3315         (fetch): Fetch gendocs.
3316         * Makefile.am (EXTRA_DIST): Distribute new file.
3317         * doc/Makefile.am (EXTRA_DIST): Likewise.
3318         * .gitattributes: Ignore whitespace in upstream files.
3319         * HACKING (Other web updates): Update Free Software Directory
3320         instructions.
3321         (Upload): No longer mention xdelta.
3322         * maint.mk (xd-delta): Likewise.
3323         * build-aux/gendocs.sh: New upstream file.
3324         * doc/gendocs_template: Likewise.
3325         * build-aux/announce-gen: Resync from upstream.
3326         * build-aux/config.guess: Likewise.
3327         * build-aux/config.sub: Likewise.
3328         * build-aux/gnupload: Likewise.
3329         * build-aux/texinfo.tex: Likewise.
3331 2008-12-30  Eric Blake  <ebb9@byu.net>
3333         Make it easier to track diversion bugs.
3334         * lib/m4sugar/m4sugar.m4 (_m4_divert_raw, _m4_undivert): New
3335         internal macros, which are easier to trace than m4_builtin.
3336         (m4_cleardivert, m4_divert, m4_divert_push, m4_divert_pop)
3337         (m4_undivert): Use them.
3338         (_m4_require_call): Likewise.  Use fewer macros.
3339         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix typo.
3341 2008-12-26  Bruno Haible  <bruno@clisp.org>
3343         Improve multiarch detection.
3344         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Make detection of options
3345         indicating a universal build more reliable.
3347 2008-12-28  William Pursell  <bill.pursell@gmail.com>  (tiny change)
3349         Use AS_CASE in documented example.
3350         * doc/autoconf.texi (Using the System Type): Use AS_CASE in
3351         example instead of raw case.
3353 2008-12-23  Eric Blake  <ebb9@byu.net>
3355         Make m4_dumpdef more useful with M4 1.6.
3356         * lib/m4sugar/m4sugar.m4 (_m4_dumpdef): New macro.
3357         (m4_init): Install it for new enough m4.
3358         * tests/m4sugar.at (m4@&t@_dumpdef): Enhance test.
3359         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
3360         lack of sorting.
3362 2008-12-24  Bruno Haible  <bruno@clisp.org>
3364         Improve INSTALL for HP-UX.
3365         * doc/install.texi (Particular Systems): For HP-UX, also recommend
3366         -D_XOPEN_SOURCE=500. Needed for the declaration of mbstate_t on
3367         HP-UX 11.11.
3369 2008-12-22  Bruno Haible  <bruno@clisp.org>
3371         Improve INSTALL for Haiku.
3372         * doc/install.texi (Particular Systems): Add a recommendation
3373         which prefix to use on Haiku.
3375 2008-12-19  Eric Blake  <ebb9@byu.net>
3377         Fix typo in previous commit.
3378         * doc/autoconf.texi (Set manipulation Macros) <m4_set_map_sep>:
3379         Fix typo.
3381         Document some recently added macros.
3382         * lib/m4sugar/m4sugar.m4 (m4_map_args_w): Add optional sep
3383         parameter.
3384         * doc/autoconf.texi (Looping constructs) <m4_map_args_sep>
3385         <m4_map_args_w, m4_stack_foreach, m4_stack_foreach_sep>: Document
3386         new macros.
3387         (Set manipulation Macros) <m4_set_map_sep>: Likewise.
3388         * tests/m4sugar.at (m4@&t@_stack, M4 loops): Enhance tests.
3389         * NEWS: Document new macros.
3391 2008-12-18  Eric Blake  <ebb9@byu.net>
3393         Fix separator in m4_stack_foreach_sep.
3394         * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): Separate separator
3395         from prefix.
3396         * tests/m4sugar.at (m4@&t@_stack): Enhance test.
3398 2008-12-18  Eric Blake  <ebb9@byu.net>
3400         Mention limitation of M4 1.4.x on builtin tokens.
3401         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Document
3402         ramification of M4 1.4.x's inability to pass builtin tokens
3403         through text macros.
3404         (Evaluation Macros) <m4_curry>: Likewise.
3405         * tests/m4sugar.at (m4@&t@_defn): Enhance test.
3406         * NEWS: Mention subtle change in m4_dumpdef semantics.
3408         Document m4_version_prereq.
3409         * doc/autoconf.texi (Number processing Macros)
3410         <m4_version_prereq>: Add documentation.
3411         * NEWS: Mention it.
3412         Reported by Bruno Haible.
3414 2008-12-10  Jim Meyering  <meyering@redhat.com>
3416         AC_HEADER_ASSERT: don't say assertions are disabled when they're not
3417         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Do not make configure
3418         report "checking whether to enable assertions... no", when they are
3419         in fact enabled.  This is solely a bug in the output of configure.
3420         In spite of saying "no", NDEBUG was not defined in that case.
3421         Also, as noted by Eric Blake, leave assertions enabled upon
3422         --enable-assert=INVALID.
3424 2008-12-09  Eric Blake  <ebb9@byu.net>
3426         Fix m4_location inside m4_wrap with m4 1.4.5.
3427         * lib/m4sugar/m4sugar.m4 (m4_undefine): Redefine m4_location
3428         inside wrapped text if older m4 is detected.
3429         Reported by William Pursell.
3431 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
3432         and Eric Blake  <ebb9@byu.net>
3434         Fix AC_HEADER_ASSERT w.r.t. --enable-assert.
3435         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Honor --enable-assert,
3436         rather than treating it as a synonym for --disable-assert.
3437         * NEWS: Document the fix.
3439 2008-12-06  William Pursell  <bill.pursell@gmail.com>  (tiny change)
3441         Fix AC_HEADER_ASSERT to honor --enable-assert, rather than
3442         treat --enable-assert and --disable-assert equivalently.
3443         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Check value of $enableval.
3445 2008-12-05  William Pursell  <bill.pursell@gmail.com>  (tiny change)
3447         Fix some typos and grammatical errors in documentation.
3448         * doc/autoconf.texi: Clean up some bad use of English.
3450 2008-12-03  Eric Blake  <ebb9@byu.net>
3452         Improve AC_STATE_SAVE.
3453         * tests/local.at (AC_STATE_SAVE): Avoid ls -1, and use one less
3454         process by hoisting the uniqueness check into sed.
3455         * doc/autoconf.texi (Limitations of Usual Tools) <ls>: Mention
3456         MacOS bug.
3458 2008-12-02  Eric Blake  <ebb9@byu.net>
3460         Avoid MacOS readdir bug in testsuite.
3461         * tests/local.at (AC_STATE_SAVE): Avoid spurious failures due to
3462         duplicated ls entries.
3463         * THANKS: Update.
3464         Reported by Bruce Dugan and others.
3466 2008-11-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3468         * lib/autotest/general.m4 (AT_JOB_FIFO_FD): Hide zsh 4.3.4
3469         error messages about `set -m'.
3471 2008-11-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3473         Fix a couple of test failures with dash.
3474         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Normalize
3475         exit status of `cd'.
3476         * tests/m4sh.at (AS_MESSAGE_LOG_FD): Remove script before
3477         regeneration, to avoid timing effects.
3479 2008-11-25  Eric Blake  <ebb9@byu.net>
3481         Add m4_cleardivert.
3482         * lib/m4sugar/m4sugar.m4 (m4_cleardivert): New macro.
3483         * lib/autotest/general.m4 (AT_INIT): Use it.
3484         * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Likewise.
3485         * tests/m4sugar.at (m4@&t@_divert_stack): Test it.
3486         * doc/autoconf.texi (Diversion support) <m4_cleardivert>: Document
3487         it.
3488         * NEWS: Likewise.
3489         Suggested by Paolo Bonzini.
3491         Add safety check for m4_expand vs. diversions.
3492         * lib/m4sugar/m4sugar.m4 (m4_expand): Make more robust against
3493         diverted text.
3494         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Document new
3495         safety check.
3497 2008-11-24  Eric Blake  <ebb9@byu.net>
3499         Fix typo in AS_MESSAGE_LOG_FD patch.
3500         * lib/m4sugar/m4sh.m4 (AS_ERROR): Check correct condition.
3502 2008-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3504         More reliable signal handling in Autotest.
3505         * lib/autotest/general.m4 (Driver loop): Rewrite signal handler.
3506         Start parallel jobs in their own process group, enabling job
3507         control in the shell if possible, for better signal handling.
3508         Deal with INT, TERM, and HUP in the testsuite driver.  In the
3509         parallel driver, propagate TSTP to jobs either as TSTP or as
3510         STOP (to avoid fork bombs with ksh).
3511         Inside the job processes, add PIPE handler to write back the
3512         job token, so the master process does not hang.
3513         Disable the parallel driver if job control is not provided or if
3514         trap does not understand signal names.
3515         * tests/autotest.at (parallel autotest and signals): New test,
3516         exercises INT, TERM, and PIPE, serial and parallel, with and
3517         without `make' in the loop.
3518         Kudos to Richard Stevens for writing APUE.
3520 2008-11-22  Eric Blake  <ebb9@byu.net>
3522         Fix testsuite failure on Solaris.
3523         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Normalize
3524         failure status to 1.
3526 2008-11-21  Eric Blake  <ebb9@byu.net>
3528         Clean up AS_MESSAGE_LOG_FD usage.
3529         * lib/m4sugar/m4sh.m4 (AS_MESSAGE_FD, AS_MESSAGE_LOG_FD)
3530         (AS_ORIGINAL_STDIN_FD): Provide default M4sh values.
3531         (_AS_ECHO_LOG, AS_MESSAGE, _AS_ERROR_PREPARE, AS_ERROR): Simplify
3532         usage.
3533         (AS_INIT_GENERATED): Don't shuffle an unchanged AS_MESSAGE_FD.
3534         * tests/m4sh.at (AS@&t@_INIT_GENERATED): Update test.
3535         (AS@&t@_MESSAGE_FD): New test.
3536         * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
3537         Give more details about fd manipulation.
3538         (File Descriptor Macros): Describe M4sh defaults for the fds.
3540 2008-11-21  Eric Blake  <ebb9@byu.net>
3542         Use shell function for AS_ERROR.
3543         * lib/m4sugar/m4sh.m4 (_AS_ERROR_PREPARE): New macro, defining a
3544         new shell function.
3545         (AS_ERROR): Use it.
3546         (_AS_LINENO_PREPARE): Break circular dependency.
3547         (AS_PREPARE, _AS_PREPARE): Initialize for child scripts.
3549 2008-11-21  Eric Blake  <ebb9@byu.net>
3551         Fix typos in recent testsuite improvements.
3552         * lib/autotest/general.m4 (AT_INIT) <at_fn_check_prepare_dynamic>:
3553         Fix typo.
3554         * NEWS: Clarify the potential impact to users.
3555         * tests/autotest.at (AT_DATA_AUTOTEST): New macro, patterned after
3556         AT_DATA_M4SUGAR.
3557         (AT_CHECK_AT_PREP, AT_CHECK_AT_TITLE): Use it.
3558         (unusual file names): Test that the recent echo fix does not
3559         regress.  Fix quoting bug that made the test a no-op.
3560         Reported by Paolo Bonzini and Ralf Wildenhues.
3562 2008-11-21  Eric Blake  <ebb9@byu.net>
3564         Use modern m4sh constructs in autoconf.
3565         * bin/autoconf.as (exit_missing_arg, getopt): Use AS_ERROR, rather
3566         than AS_EXIT.
3568         Change the semantics of AS_EXIT without argument.
3569         * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE): When defaulting, use $?
3570         even if it is 0.
3571         (AS_ERROR): Guarantee non-zero status.
3572         * bin/autoconf.as (exit_missing_arg, getopt): Revert prior change;
3573         we want non-zero status.
3574         * tests/m4sh.at (AS@&t@_EXIT): Update test accordingly.
3575         * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Update
3576         the documentation.
3577         <AS_SET_STATUS>: Don't overly restrict implementation.
3578         (Printing Messages) <AC_MSG_ERROR>: Describe better default.
3579         Suggestions by Paolo Bonzini and Ralf Wildenhues.
3581 2008-11-21  Eric Blake  <ebb9@byu.net>
3583         Add @anchors within Builtins and Usual Tools lists.
3584         * doc/autoconf.texi (Limitations of Builtins)
3585         (Limitatations of Usual Tools): Add anchors for tools called out
3586         by name.  Adjust callers to narrow in on tool of interest.
3588         Move case statement style discussion to m4 quoting section.
3589         * doc/autoconf.texi (Limitations of Builtins): Move comparison of
3590         quoting styles...
3591         (Balancing Parentheses): ...to this new node.
3592         Suggested by Ralf Wildenhues.
3594 2008-11-20  Eric Blake  <ebb9@byu.net>
3596         Factor more common code out of AT_CHECK into shell function.
3597         * lib/autotest/general.m4 (_AT_CHECK): Avoid echo bug if AT_LINE
3598         starts with -.  Move preparations...
3599         (AT_INIT) <at_fn_check_prepare_trace>
3600         <at_fn_check_prepare_notrace, at_fn_check_prepare_dynamic>:
3601         ...into these new shell functions.
3602         <at_fn_check_newline>: Inline into only caller.
3603         (_AT_DECIDE_TRACEABLE): Use them to condense testsuite size.
3605 2008-11-20  Eric Blake  <ebb9@byu.net>
3607         Handle version numbers as decimal, even if they start with 0.
3608         * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Avoid
3609         interpreting leading zeros as octal.
3611 2008-11-20  Eric Blake  <ebb9@byu.net>
3613         Speed up AT_CHECK.
3614         * lib/autotest/general.m4 (AT_CHECK, AT_CHECK_UNQUOTED): Expand
3615         third and fourth arguments once.
3616         (_AT_CHECK): Don't re-expand expected output.  Rearrange code for
3617         fewer scans of arguments.
3618         (AT_CHECK): Update caller.
3619         (AT_INIT) <at_fn_filter_trace>: Drop parameter.
3620         * tests/m4sugar.at (m4@&t@_split): Protect test with
3621         quadrigraphs.
3623         Fix XFAIL related to AT_CHECK.
3624         * lib/autotest/general.m4 (AT_CHECK, AT_CHECK_UNQUOTED): Expand
3625         first argument once.
3626         (_AT_CHECK): Don't re-expand commands.
3627         * tests/autotest.at (Multiline command from M4 expansion): Remove
3628         XFAIL.
3629         * tests/tools.at (autoupdating AU_ALIAS): Quote unbalanced paren.
3630         * NEWS: Document the fallout.
3632 2008-11-20  Eric Blake  <ebb9@byu.net>
3634         Reduce forks in AC_DEFINE.
3635         * lib/autoconf/general.m4 (_AC_DEFINE_Q_PRINT): New macro.
3636         (_AC_DEFINE_Q): Use it to avoid forks for all AC_DEFINE and most
3637         AC_DEFINE_UNQUOTED.
3638         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Properly quote #.
3639         * tests/torture.at (Substitute and define special characters):
3640         (Define to a 2000-byte string): Enhance tests to cover
3641         AC_DEFINE_UNQUOTED.
3642         (@%:@define header templates): Enhance test to cover #.
3644 2008-11-20  Eric Blake  <ebb9@byu.net>
3646         Improve m4_expand robustness, part 2.
3647         * lib/m4sugar/m4sugar.m4 (m4_expand): Support unterminated
3648         comments, by wrapping old implementation...
3649         (_m4_expand): ...as this, and renaming old core...
3650         (_m4_expand_): ...to this.
3651         (m4_text_box): Use lighter-weight _m4_expand.
3652         * lib/m4sugar/m4sh.m4 (_AS_DETECT_EXPAND)
3653         (_AS_DETECT_BETTER_SHELL, AS_FUNCTION_DESCRIBE): Likewise.
3654         * lib/autotest/general.m4 (AT_KEYWORDS): Likewise.
3655         * tests/m4sugar.at (m4@&t@_expand): Enhance test.
3656         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Likewise.
3657         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Mention new
3658         functionality.
3660         Improve m4_expand robustness, part 1.
3661         * lib/m4sugar/m4sugar.m4 (_m4_expand): Tolerate unquoted
3662         unbalanced `)'.
3663         * tests/m4sugar.at (m4@&t@_expand): New test.
3665 2008-11-20  Eric Blake  <ebb9@byu.net>
3667         Add m4_chomp, m4_esyscmd_s.
3668         * lib/m4sugar/m4sugar.m4 (m4_esyscmd_e, m4_chomp, m4_chomp_all):
3669         New macros.
3670         * doc/autoconf.texi (Redefined M4 Macros) <m4_esyscmd_s>: Document
3671         them.
3672         (Text processing Macros) <m4_chomp>: Likewise.
3673         * NEWS: Likewise.
3674         * tests/m4sugar.at (m4@&t@_esyscmd_s): New test.
3676         Remove _m4_index.
3677         * lib/m4sugar/m4sugar.m4 (_m4_index): Delete; it is more efficient
3678         to make callers guarantee a match.
3679         (m4_init): Adjust caller.
3680         * lib/autoconf/status.m4 (_AC_CONFIG_COMPUTE_DEST): Likewise.
3681         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Likewise.
3683         Describe different hacks for balancing ')' in case statements.
3684         * doc/autoconf.texi (Limitations of Builtins) <case>: Add an
3685         exposition on various quoting styles.
3687 2008-11-20  Eric Blake  <ebb9@byu.net>
3689         Speed up _AS_QUOTE.
3690         * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE): Inline into...
3691         (_AS_QUOTE): ...here, delete unused second paramenter, and factor
3692         choice into...
3693         (_AS_QUOTE_MODERN, _AS_QUOTE_OLD): ...new helpers.
3695 2008-11-20  Alfred G. de Wijn  <dwijn@iluvatar.eu.org>  (tiny change)
3697         For consistency, make temporary variable match language name.
3698         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G, _AC_PROG_FC_V_OUTPUT):
3699         Match the save/test variables' names to the FFLAGS/FCFLAGS being
3700         saved.
3701         * THANKS: Update.
3703 2008-11-19  Eric Blake  <ebb9@byu.net>
3705         Improve testsuite generation.
3706         * tests/local.at (AT_DATA_M4SUGAR, AT_DATA_M4SH)
3707         (AT_DATA_AUTOCONF): Escape all quadrigraphs, not just @&t@.  Use
3708         fewer macros.
3710 2008-11-18  Eric Blake  <ebb9@byu.net>
3712         Use fn for shell functions, func for autoconf CHECK_FUNCS.
3713         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Abbreviate shell
3714         function names.
3715         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE)
3716         (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE, _AC_RUN_IFELSE)
3717         (AC_CHECK_DECL, AC_COMPUTE_INT): Likewise.
3718         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
3719         (_AC_CHECK_HEADER_COMPILE, _AC_CHECK_HEADER_PREPROC): Likewise.
3720         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, _AC_TYPE_INT)
3721         (_AC_TYPE_UNSIGNED_INT, AC_CHECK_MEMBER): Likewise.
3722         * lib/autotest/general.m4 (AT_INIT): Likewise.
3723         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK, _AS_EXIT_PREPARE)
3724         (AS_EXIT, AS_SET_STATUS, _AS_UNSET_PREPARE, _AS_MKDIR_P)
3725         (_AS_MKDIR_P_PREPARE, _AS_VAR_APPEND_PREPARE, AS_VAR_APPEND)
3726         (_AS_VAR_ARITH_PREPARE, AS_VAR_ARITH): Likewise.
3727         * doc/autoconf.texi (Shell Functions): Likewise.
3729 2008-11-18  Eric Blake  <ebb9@byu.net>
3731         Alter default value of AS_EXIT.
3732         * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE): Let as_func_exit
3733         parameter be optional.
3734         (AS_EXIT): Use it to make better default.
3735         (_AS_DETECT_BETTER_SHELL): Use new default.
3736         * bin/autoconf.as (exit_missing_arg, getopt): Likewise.
3737         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
3738         * tests/m4sh.at (AS@&t@_EXIT): Update test.
3739         * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Mention
3740         new default behavior.
3741         (Limitations of Builtins) <trap>: Adjust to use new default.
3742         * NEWS: Mention the semantic change.
3743         Suggested by Ralf Wildenhues.
3745         Update example to match actual Tru64 behavior.
3746         * doc/autoconf.texi (Limitations of Builtins) <trap>: Correct
3747         the example.
3748         Reported by Ralf Wildenhues.
3750         Add AS_SET_STATUS, make AS_EXIT more efficient.
3751         * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE, AS_SET_STATUS): New
3752         macros.
3753         (AS_EXIT): Rewrite to avoid forks.
3754         (_AS_SHELL_SANITIZE): Avoid AS_EXIT prior to shell functions.
3755         (AS_PREPARE, _AS_PREPARE): Add new preparation.
3756         * doc/autoconf.texi (Common Shell Constructs) <AS_SET_STATUS>:
3757         Document.
3758         * NEWS: Mention new macro.
3759         * tests/m4sh.at (AS@&t@_EXIT): New test.
3760         (BASENAME_TEST): Sort.
3762         Document Tru64 bug with 'set -e'.
3763         * doc/autoconf.texi (Limitations of Builtins) <trap>: Mention a
3764         bug in mixing 'set -e' with 'trap .. 0'.
3765         Reported by Ralf Wildenhues.
3767         Document a Solaris /bin/sh bug with 'set -e'.
3768         * doc/autoconf.texi (Shell Functions): Mention the bug.
3770 2008-11-17  Eric Blake  <ebb9@byu.net>
3772         Detect empty list in AS_FOR.
3773         * lib/m4sugar/m4sh.m4 (AS_FOR): Handle iteration over $@
3774         properly.
3775         * tests/m4sh.at (AS@&t@_FOR): Enhance test to catch it.
3776         Reported by Paolo Bonzini.
3778 2008-11-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3780         Use a different workaround for an automake quirk.
3781         * tests/Makefile.am (AUTOMAKE_OPTIONS): Remove.
3782         (distclean_generic): New helper variable, to fool automake.
3783         ($(distclean_generic)): Depend on clean-local, to prevent
3784         the race in the two rules with accessing and removing
3785         $(TESTSUITE).
3786         Report by Eric Blake.
3788         * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Simplify, avoid
3789         unbalanced parentheses from last change.
3790         Spotted by Eric Blake, fix suggested by Paolo Bonzini.
3792         Fix exit status of expr version of as_func_arith.
3793         * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Count an exit
3794         status of 1 of expr also as success, to avoid failure if the
3795         computation result is zero.  Fixes test failures with IRIX sh,
3796         where the expr variant of as_func_arith is used.
3798         Do not use read-only variable $status.
3799         * tests/compile.at (AC_RUN_IFELSE): Use $estatus instead of
3800         $status, for zsh.
3802 2008-11-15  Eric Blake  <ebb9@byu.net>
3804         Use the new AS_FOR function.
3805         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Use new
3806         abstraction for cleaner code.
3807         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
3809         Add AS_FOR, undocumented for now.
3810         * lib/m4sugar/m4sh.m4 (AS_FOR): New macro.
3811         * tests/m4sh.at (AS@&t@_FOR): New test.
3812         Suggested by Paolo Bonzini.
3814 2008-11-13  Eric Blake  <ebb9@byu.net>
3816         Optimize single-argument loop.
3817         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid forks when
3818         loop only has one argument.
3819         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
3821 2008-11-13  Eric Blake  <ebb9@byu.net>
3823         Fix AS_ESCAPE usage bugs.
3824         * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
3825         (_AS_VAR_ARITH_PREPARE): Expand macros prior to adding shell
3826         escapes.
3827         (AS_TR_SH, AS_VAR_GET): Use _AS_ESCAPE for speed.
3828         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_SET>: Document
3829         caveat due to conditional AS_ESCAPE.
3830         * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
3832 2008-11-12  Eric Blake  <ebb9@byu.net>
3834         Whitespace reduction in configure.
3835         * lib/autoconf/autoheader.m4 (AH_VERBATIM): Avoid empty lines.
3836         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, AC_CHECK_FILES):
3837         Likewise.
3838         (_AC_DEFINE_Q): Restore empty line, since some clients in the wild
3839         depend on it.
3841 2008-11-12  Eric Blake  <ebb9@byu.net>
3843         Make M4sh, not autoconf, guarantee sane $SHELL.
3844         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Move setting of
3845         SHELL...
3846         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): ...to here.
3847         * doc/autoconf.texi (Initialization Macros): Document the effect
3848         on SHELL.
3849         * tests/m4sh.at (AS@&t@_INIT_GENERATED): New test.
3850         Reported by Ralf Wildenhues.
3852 2008-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3854         Wrap keywords in `testsuite --list' output.
3855         * lib/autotest/general.m4 (AT_INIT): Rewrite --list awk script,
3856         avoid lint warnings from gawk, wrap keyword lists to stay below
3857         80 characters per line if possible.
3858         * tests/autotest.at (Keyword wrapping): New test.
3860         * tests/local.at (AT_COPYRIGHT): Bump copyright years.
3862         * doc/autoconf.texi (Conditional constructs, Macro Names): Fix
3863         typos.
3865 2008-11-10  Eric Blake  <ebb9@byu.net>
3867         Work around <=m4-1.4.9 bug in m4_format.
3868         * lib/m4sugar/m4sugar.m4 (_m4_index): New internal macro.
3869         (m4_init): Only use it in older m4.
3870         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Use it to avoid
3871         m4_format bug in older m4.
3872         * lib/autoconf/status.m4 (_AC_CONFIG_COMPUTE_DEST): Likewise.
3873         Reported by Bob Proulx.
3875 2008-11-10  Eric Blake  <ebb9@byu.net>
3877         Match upstream standards.texi.
3878         * doc/standards.texi: Resync from upstream.
3879         * doc/fdl-1.3.texi: Rename...
3880         * doc/fdl.texi: ...to this.
3881         * doc/Makefile.am (autoconf_TEXINFOS, standards_TEXINFOS): Update
3882         users.
3883         * doc/autoconf.texi (GNU Free Documentation License): Likewise.
3884         * cfg.mk (fetch): Likewise.
3886         Yet more FDL 1.3 fallout.
3887         * NEWS: Mention manual license change.
3889 2008-11-10  Eric Blake  <ebb9@byu.net>
3891         Avoid some regex uses.
3892         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Use m4_format rather
3893         than m4_bpatsubst to grab string prefix.
3894         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER)
3895         (_AC_CONFIG_REGISTER_DEST, AC_CONFIG_SUBDIRS): Likewise.
3896         (_AC_FILE_DEPENDENCY_TRACE_COLON): Use m4_translit instead of
3897         m4_bpatsubst to change bytes.
3898         (_AC_CONFIG_DEPENDENCY_DEFAULT): Use m4_index rather than
3899         m4_bmatch to find byte.
3900         (_AC_CONFIG_COMPUTE_DEST): New helper macro.
3902         Use more efficient macros in AC_CONFIG_SUBDIRS.
3903         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS, AC_CONFIG_SUBDIRS): Use
3904         m4_map_args_w.
3905         (_AC_OUTPUT_FILE): Use m4_map_args_sep and m4_map_args.
3906         (_AC_OUTPUT_FILE_ADJUST_DIR): New helper macro.
3908         Use more efficient macros in AC_CHECK_FILES and AC_CHECK_DECLS.
3909         * lib/autoconf/general.m4 (AC_CHECK_FILES): Use m4_map_args_w,
3910         and avoid typo.
3911         (AC_CHECK_DECLS, AC_CHECK_DECLS_ONCE): Use m4_map_args_sep.
3912         (_AC_CHECK_FILES, _AC_CHECK_DECLS, _AC_CHECK_DECL_ONCE): New
3913         helper macros.
3914         (AC_LIBSOURCES): Use m4_map_args.
3916         Use more efficient macros in AC_CHECK_TYPES.
3917         * lib/autoconf/types.m4 (AC_CHECK_TYPES, AC_CHECK_MEMBERS): Use
3918         m4_map_args_sep.
3919         (_AC_CHECK_TYPES, _AC_CHECK_MEMBERS): New helper macros.
3921         Use more efficient macros in AC_CHECK_HEADERS.
3922         * lib/autoconf/headers.m4 (AH_CHECK_HEADERS)
3923         (AH_CHECK_HEADERS_DIRENT): Rename...
3924         (_AH_CHECK_HEADER, _AH_CHECK_HEADER_DIRENT): ...and take only one
3925         argument, rather than a list.
3926         (AC_CHECK_HEADERS, AC_CHECK_HEADERS_ONCE):
3927         Adjust callers to use m4_map_args_w.
3928         (AC_HEADER_DIRENT): Adjust caller to use m4_map_args.
3929         (_AC_CHECK_HEADER_ONCE): New helper macro.
3931         Use more efficient macros in AC_CHECK_FUNCS.
3932         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): Rename...
3933         (_AH_CHECK_FUNC): ...and take only one argument, rather than a
3934         list.
3935         (AC_CHECK_FUNCS, AC_CHECK_FUNCS_ONCE): Adjust callers to use
3936         m4_map_args_w.
3937         (_AC_CHECK_FUNC_ONCE): New helper macro.
3938         (AC_REPLACE_FUNCS): Use m4_map_args_w.
3940         Use more efficient macro in AT_INIT.
3941         * lib/autotest/general.m4 (AT_INIT): Use m4_map_args.
3943 2008-11-10  Eric Blake  <ebb9@byu.net>
3945         More FDL 1.3 fallout.
3946         * cfg.mk (fetch): Add gnu-oids.texi, drop fdl.texi.
3947         * doc/Makefile.am (standards_TEXINFOS): Reflect upstream
3948         dependency changes.
3949         * doc/fdl.texi: Delete.
3950         * doc/gnu-oids.texi: New upstream file.
3951         * doc/standards.texi: Resync from upstream.
3952         * doc/make-stds.texi: Likewise.
3953         * build-aux/announce-gen: Likewise.
3954         * build-aux/texinfo.tex: Likewise.
3956 2008-11-10  Clinton Roy  <clinton.roy@gmail.com>  (tiny change)
3958         Pass autoreconf -I to aclocal -I
3959         * bin/autoreconf.in (parse_args): Pass --include to aclocal.
3960         * doc/autoconf.texi (autoreconf Invocation): Updates for above.
3961         * NEWS: Document it.
3962         * THANKS: Update.
3964 2008-11-10  Eric Blake  <ebb9@byu.net>
3966         Try 'print -r --' as a non-forking variant of 'printf %s\\n'.
3967         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Cater to Solaris ksh.
3968         * doc/autoconf.texi (Limitations of Builtins) <printf>: Document
3969         the print workaround.
3970         Idea by Paolo Bonzini.
3972 2008-11-10  Eric Blake  <ebb9@byu.net>
3974         Provide a section on all tools allowed in GNU Coding Standards.
3975         * doc/autoconf.texi (Limitations of Builtins) <read>: Sort.
3976         <wait>: Add section.
3977         (Limitations of Usual Tools) <awk>: Make table entry consistent.
3978         <chgrp, mkfifo, rmdir, sleep, sort, tar> Add sections.
3980 2008-11-09  Paolo Bonzini  <bonzini@gnu.org>
3982         Balance parentheses in _AC_CACHE_DUMP.
3983         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Balance parentheses
3984         without introducing \).
3986 2008-11-07  Eric Blake  <ebb9@byu.net>
3988         Further doc updates for AC_CHECK_HEADER change.
3989         * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
3990         new default, and make it more obvious that using [-] is generally
3991         broken.
3993 2008-11-07  Eric Blake  <ebb9@byu.net>
3995         * ChangeLog: Enforce UTF-8 encoding.
3997 2008-11-06  Eric Blake  <ebb9@byu.net>
3999         Skip preprocessor check in AC_CHECK_HEADERS_ONCE.
4000         * lib/autoconf/headers.m4 (_AC_HEADERS_EXPANSION): Provide fourth
4001         argument to speed up check.
4003 2008-11-06  Eric Blake  <ebb9@byu.net>
4005         Speed up AC_CHECK_TYPE.
4006         * lib/autoconf/types.m4 (AC_CHECK_TYPE): Factor out $@, and avoid
4007         regex when enough arguments are present.
4009 2008-11-06  Paolo Bonzini  <bonzini@gnu.org>
4011         Remove three forks per _AC_RUN_LOG_STDERR in the common case.
4012         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR): Avoid grep/rm/cat
4013         sequence when the program's stderr was empty, while providing a
4014         conftest.err file even in that case.
4015         (_AC_CACHE_DUMP): Fix mismatched parenthesis.
4017 2008-11-06  Paolo Bonzini  <bonzini@gnu.org>
4019         Change `present but cannot be compiled' behavior to use compiler result.
4020         * NEWS: Document it.
4021         * doc/autoconf.texi (Present But Cannot Be Compiled): Document it.
4022         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Implement it
4023         and adjust warning.
4024         * tests/semantics.at (AC_CHECK_HEADERS): Test new semantics.
4026 2008-11-05  Eric Blake  <ebb9@byu.net>
4028         Add m4_map_args_w.
4029         * lib/m4sugar/m4sugar.m4 (m4_map_args_w): New macro, undocumented
4030         for now.
4031         (_m4_split): Allow user control over separator.
4032         (m4_split): Adjust caller.
4033         (m4_foreach_w, m4_append_uniq_w, _m4_text_wrap): Rewrite to use
4034         m4_map_args_w.
4035         * tests/m4sugar.at (m4@&t@_append): Augment test keywords.
4036         (M4 loops): Test new interface.
4038         Use m4_set_map_sep in more places.
4039         * lib/m4sugar/m4sugar.m4 (m4_set_difference, m4_set_intersection)
4040         (m4_set_union): Use m4_set_map_sep rather than m4_set_foreach.
4041         * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
4042         Enhance documentation.
4043         <m4_set_foreach>: Mention faster alternative.
4044         (Looping constructs) <m4_foreach>: Likewise.
4046         Unify m4_set_foreach and m4_set_map.
4047         * lib/m4sugar/m4sugar.m4 (m4_set_map_sep): New macro, undocumented
4048         for now.
4049         (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
4050         (m4_set_map): Adjust callers.
4052         Use _m4_foreach in more places.
4053         * lib/m4sugar/foreach.m4 (m4_dquote_elt, m4_join, m4_joinall)
4054         (_m4_minmax, m4_set_add_all): Use _m4_foreach instead of
4055         m4_foreach.
4056         * lib/m4sugar/m4sugar.m4 (_m4_joinall): Use m4_map_args_sep
4057         instead of m4_foreach or m4_map_args.
4059         Unify _m4_foreach and _m4_map.
4060         * lib/m4sugar/m4sugar.m4 (_m4_map): Delete, merged with...
4061         (_m4_foreach): ...this.
4062         (m4_foreach, m4_map, m4_mapall, m4_map_sep, _m4_mapall_sep)
4063         (m4_map_args, m4_map_args_sep): Adjust callers.
4064         * lib/m4sugar/foreach.m4 (_m4_map): Rename...
4065         (_m4_foreach): ...to this, overwriting old definition.
4067 2008-11-04  Eric Blake  <ebb9@byu.net>
4069         Add m4_map_args_sep, undocumented for now.
4070         * lib/m4sugar/m4sugar.m4 (m4_map_args_sep): New macro.
4071         (_m4_map): Change API to cover more of m4_map*.
4072         * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new API.
4073         (m4_map_args): Delete.
4074         * tests/m4sugar.at (m4@&t@_map_args and m4@&t@_curry): Enhance
4075         test.
4077         Improve m4_for performance.
4078         * lib/m4sugar/m4sugar.m4 (_m4_for): Alter API to make it easier to
4079         avoid m4_define by some clients.
4080         (m4_for): Adjust caller.
4081         * lib/m4sugar/foreach.m4 (_m4_foreach, m4_case, m4_bmatch)
4082         (_m4_cond, _m4_bpatsubsts, _m4_shiftn, m4_do, m4_reverse)
4083         (_m4_map, m4_map_args, m4_map_args_pair, _m4_list_pad)
4084         (_m4_list_cmp): Likewise.
4086 2008-11-04  Eric Blake  <ebb9@byu.net>
4088         Adjust expected output.
4089         * tests/torture.at (Missing templates): Reflect added quoting.
4090         Detected by Bob Proulx's buildbot.
4092         Reject arguments with leading =.
4093         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Detect case of
4094         missing variable name, with fewer forks.  Quote invalid arguments
4095         in message, in case they include spaces.
4096         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS)
4097         (_AC_OUTPUT_MAIN_LOOP): Quote invalid arguments.
4098         * lib/autotest/general.m4 (AT_INIT): Likewise.
4099         * tests/base.at (configure arguments): Test this.
4100         Reported by Jeff Squyres.
4102 2008-11-04  Eric Blake  <ebb9@byu.net>
4104         Upgrade to FDL 1.3.
4105         * cfg.mk (fetch): Add fdl-1.3.texi.
4106         * .gitattributes: Likewise.
4107         * doc/autoconf.texi (GNU Free Documentation License): Point to new
4108         upstream version.
4109         * doc/Makefile.am (autoconf_TEXINFOS): Likewise.
4110         (standards_TEXINFOS): Mention current dependence on older license.
4111         * doc/fdl-1.3.texi: New upstream file.
4112         * GNUmakefile: Resync from upstream.
4113         * build-aux/announce-gen: Likewise.
4114         * build-aux/texinfo.tex: Likewise.
4116 2008-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4118         Point at AM_SUBST_NOTMAKE.
4119         * doc/autoconf.texi (Setting Output Variables): Add cross
4120         reference to new Automake macro AM_SUBST_NOTMAKE.
4122 2008-11-03  Paolo Bonzini  <bonzini@gnu.org>
4124         Eliminate a fork per invocation of AC_LANG_CONFTEST.
4125         * lib/autoconf/c.m4 (AC_LANG_CONFTEST(C)): Define instead of
4126         AC_LANG_SOURCE(C).
4127         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Add a comment at the
4128         top of confdefs.h, which also works around cpp deficiencies.
4129         * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Define AC_LANG_CONFTEST(xyz)
4130         (AC_LANG_CONFTEST): Dispatch based on _AC_LANG.
4131         (AC_LANG_CONFTEST()): New.
4133 2008-11-03  Paolo Bonzini  <bonzini@gnu.org>
4135         Reorganize definition of languages.
4136         * lib/autoconf/c.m4 (AC_LANG(C), AC_LANG(C++), AC_LANG(Objective C),
4137         _AC_LANG_ABBREV(C), _AC_LANG_ABBREV(C++), _AC_LANG_ABBREV(Objective C),
4138         _AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++), _AC_LANG_PREFIX(Objective C)):
4139         Replace definitions with usage of AC_LANG_DEFINE.
4140         (Sections 2b, 2c): Delete.
4141         (Sections 1b, 1c): Move after section 2a.
4142         * lib/autoconf/erlang.m4 (AC_LANG(Erlang), _AC_LANG_ABBREV(Erlang),
4143         _AC_LANG_PREFIX(Erlang), AC_LANG_SOURCE(Erlang)): Replace definitions
4144         with usage of AC_LANG_DEFINE.
4145         (AC_LANG_ERLANG): Define using AU_DEFUN.
4146         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_LANG(Fortran 77),
4147         _AC_LANG_ABBREV(Fortran), _AC_LANG_ABBREV(Fortran 77),
4148         _AC_LANG_PREFIX(Fortran), _AC_LANG_PREFIX(Fortran 77),
4149         _AC_LANG_SOURCE(Fortran), AC_LANG_SOURCE(Fortran 77)): Replace
4150         definitions with usage of AC_LANG_DEFINE.
4151         * lib/autoconf/lang.m4 (AC_LANG_DEFINE, AC_LANG_SOURCE()): New.
4153 2008-11-03  Paolo Bonzini  <bonzini@gnu.org>
4155         Use preprocessor in cpp tests.
4156         * tests/c.at (CPP tests): Use AC_CHECK_HEADERS(..., [-]).
4158 2008-10-31  Paolo Bonzini  <bonzini@gnu.org>
4160         Rename _AC_CHECK_HEADER_OLD and _AC_CHECK_HEADER_NEW.
4161         * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Adjust naming.
4162         (_AC_CHECK_HEADER_PREPROC_BODY): New name of _AC_CHECK_HEADER_OLD_BODY.
4163         (_AC_CHECK_HEADER_COMPILE_BODY): New name of _AC_CHECK_HEADER_NEW_BODY.
4164         (_AC_CHECK_HEADER_PREPROC): New name of _AC_CHECK_HEADER_OLD.
4165         (_AC_CHECK_HEADER_COMPILE): New name of _AC_CHECK_HEADER_NEW.
4166         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADER_NEW):
4167         Give better name.
4169 2008-10-31  Eric Blake  <ebb9@byu.net>
4171         Support multiple undiverts and dumpdefs at once.
4172         * lib/m4sugar/m4sugar.m4 (m4_dumpdefs, m4_undivert): Allow extra
4173         arguments.
4174         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>,
4175         <m4_undivert>: Document argument list change.
4176         * tests/m4sugar.at (m4@&t@_divert_stack, m4@&t@_dumpdef): Test
4177         them.
4179         Simplify diversion stack handling.
4180         * lib/m4sugar/m4sugar.m4 (m4_divert_stack): Use fewer macros, and
4181         avoid extra newlines.
4182         (m4_divert_stack_push): Compute location here, rather than caller.
4183         (m4_divert_push): Update caller.
4184         (m4_divert): Likewise, and also adjust current diversion name.
4185         (m4_divert_pop): Simplify rule that diversion stack must never go
4186         empty.
4187         (_m4_require_call): Bypass diversion stack when collecting
4188         required macro text.
4189         (m4_init): Set current diversion without requiring m4_init.
4190         * lib/m4sugar/m4sh.m4 (AS_INIT): Avoid too many pops.
4191         * lib/autotest/general.m4 (AT_INIT): Likewise.
4192         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Schedule wrapped
4193         text to run prior to m4sugar cleanup.
4194         * doc/autoconf.texi (Text processing Macros) <m4_newline>: Mention
4195         optional argument.
4196         (Conditional constructs) <m4_ifvaln, m4_n>: Mention use of dnl.
4197         * NEWS: Undo blurb about m4_divert.
4198         * tests/m4sugar.at (m4@&t@_divert_stack): New test.
4200         Simplify expansion stack handling.
4201         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack): Use fewer macros;
4202         always output 'top level'.
4203         (_m4_expansion_stack_entry): New macro, to format the string only
4204         when needed.
4205         (m4_expansion_stack_push): Only push a macro name.
4206         (m4_warn, _m4_defun_pro): Update callers.
4207         (m4_expansion_stack_pop, m4_expansion_stack_dump): Delete.
4208         (_m4_defun_epi, m4_fatal): Inline the calls.
4209         * tests/m4sugar.at (m4@&t@_expansion_stack): New test.
4211 2008-10-30  Eric Blake  <ebb9@byu.net>
4213         Better documentation of AC_CHECK_HEADER's fourth argument.
4214         * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
4215         how to suppress compiler or preprocessor header check.
4216         Reported by Jeff Squyres.
4218 2008-10-30  Eric Blake  <ebb9@byu.net>
4220         Fix LINENO testsuite failure.
4221         * tests/m4sh.at (AT_DATA_LINENO): Use AS_LINENO_PREPARE, not
4222         undocumented _AS_PREPARE, and move unset earlier in script.
4224         Update LINENO documentation.
4225         * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
4226         (Special Shell Variables) <LINENO>: Mention that LINENO support in
4227         child scripts may be broken.  Modernize example.
4229 2008-10-30  Paolo Bonzini  <bonzini@gnu.org>
4231         Do not check for $LINENO in generated scripts.
4232         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Do not call _AS_LINENO_PREPARE,
4233         and explain why.
4235 2008-10-30  Eric Blake  <ebb9@byu.net>
4237         Don't check for non-POSIX extensions in suggested tests.
4238         * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_WORKS): Remove suggestion;
4239         we still use += if available, but should not reject shells (like
4240         dash) that don't provide it.
4241         (_AS_DETECT_SUGGESTED): Document a policy for m4sh.
4242         Reported by Paolo Bonzini.
4244 2008-10-30  Paolo Bonzini  <bonzini@gnu.org>
4246         Pass CONFIG_SHELL down to generated scripts, and re-export SHELL.
4247         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): If proceeding
4248         with a given CONFIG_SHELL, move it to SHELL.
4249         (AS_INIT_GENERATED): Re-export SHELL.
4251 2008-10-30  Eric Blake  <ebb9@byu.net>
4253         Work around Solaris /bin/sh case bug.
4254         * lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT): Always provide
4255         a non-empty command list.
4256         (AS_CASE): Always guarantee that a case will match.
4257         * doc/autoconf.texi (Limitations of Builtins) <case>: Document the
4258         Solaris bug, and mention AS_CASE.
4260 2008-10-30  Paolo Bonzini  <bonzini@gnu.org>
4262         Require _AS_CR_PREPARE where appropriate.
4263         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Call _AS_CR_PREPARE.
4264         (AS_PREPARE): Require _AS_CR_PREPARE.
4266         Avoid walking the entire PATH when looking for a better shell.
4267         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Test shell characteristics
4268         as the PATH is walked.
4270         Add third argument to _AS_PATH_WALK
4271         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Do not call _AS_CR_PREPARE.
4272         (_AS_PATH_WALK): Add third optional argument.
4274         Trim down the length of the shell function test.
4275         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Condense.
4277 2008-10-29  Eric Blake  <ebb9@byu.net>
4279         Fix LINENO detection to work around bash and pdksh limitations.
4280         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Enhance the test, so
4281         that we can choose which of two tests to trust.
4282         (_AS_RUN): Set flag when alternate shell is running.
4283         (_AS_DETECT_EXPAND): New macro.
4284         (_AS_DETECT_BETTER_SHELL): Use it to massage LINENO tests.
4286 2008-10-29  Eric Blake  <ebb9@byu.net>
4288         Mention proper fix for zsh users.
4289         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Recommend zsh
4290         version known to work.
4291         Suggested by Paolo Bonzini.
4293         Document current beta-quality status.
4294         * configure.ac: Reflect fact that change to git-version-gen
4295         produces -, but not always a letter, on non-release builds.
4296         * BUGS: Mention known issues.
4297         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Ask for help in
4298         debugging platforms with deficient shells.
4300 2008-10-29  Eric Blake  <ebb9@byu.net>
4302         Alter signature of AS_INIT_GENERATED.
4303         * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): Add parameters, and
4304         manage here-doc and chmod in place.  This also allows future
4305         changes for optimizing the child via diversion/m4_wrap magic.
4306         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
4307         caller.
4308         * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
4309         Update the documentation.
4311 2008-10-29  Eric Blake  <ebb9@byu.net>
4313         Use _m4_stack_reverse in m4_set.
4314         * lib/m4sugar/m4sugar.m4 (_m4_set_contents_1)
4315         (_m4_set_contents_2): Rewrite to share _m4_stack_reverse
4316         implementation.
4317         (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
4318         (m4_set_map): Adjust callers to new API.
4320         Add m4_stack_foreach_sep.
4321         * lib/m4sugar/m4sugar.m4 (m4_stack_foreach_sep)
4322         (m4_stack_foreach_sep_lifo): New macros.
4323         (_m4_stack_reverse): Adjust prototype, to support it.
4324         (m4_copy): Use fewer macros.
4325         * tests/m4sugar.at (m4@&t@_stack_foreach): Rename...
4326         (m4@&t@_stack): ...and add m4_stack_foreach_sep tests.
4328 2008-10-29  Bruno Haible  <bruno@clisp.org>
4330         Mention Sun WorkShop 6.2 OpenMP bug.
4331         * doc/autoconf.texi (AC_OPENMP): Document portability pitfall.
4333 2008-10-29  Paolo Bonzini  <bonzini@gnu.org>
4335         Rewrite handling of diversion and expansion stack.
4336         * NEWS: Document stricter requirement on m4_init.
4337         * lib/m4sugar/m4sugar.m4 (m4_divert_stack): New, replacing
4338         _m4_divert_n_stack.
4339         (_m4_divert_stack_push): New.
4340         (m4_divert): Use _m4_divert_stack_push and replace m4_define with
4341         m4_popdef.
4342         (m4_divert_push): Use _m4_divert_stack_push.
4343         (m4_divert_pop): Use m4_divert_stack instead of _m4_divert_n_stack,
4344         pop _m4_divert_stack instead of m4_divert_stack.
4345         (m4_expansion_stack): New.  Update comment above it.
4346         (m4_expansion_stack_push, m4_expansion_stack_pop): Work on
4347         _m4_expansion_stack instead of m4_expansion_stack.
4348         (m4_expansion_stack_dump): Check presence of _m4_expansion_stack
4349         instead of m4_expansion_stack.  Use m4_expansion_stack's expansion
4350         instead of the definition, and compensate for the trailing newline
4351         in the expansion.
4352         (m4_warn, _m4_defun_pro, _m4_defun_epi): Check presence of
4353         _m4_expansion_stack instead of m4_expansion_stack.
4354         (m4_newline): Expand first argument after the newline.
4355         (m4_init): Use m4_divert_stack instead of _m4_divert_n_stack,
4356         * tests/m4sugar.at (m4_append, m4_text_wrap): Invoke m4_init.
4357         * tests/tools.at (whitespace in file names, the empty token): Likewise.
4359 2008-10-28  Eric Blake  <ebb9@byu.net>
4361         Reduce forks while searching for better shell.
4362         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED)
4363         (_AS_DETECT_SUGGESTED): No need to provide extra subshell; _AS_RUN
4364         already does the job.
4365         (_AS_DETECT_BETTER_SHELL): Simplify AS_EXIT when not run in a trap
4366         0 context.
4368         Undo needless efforts to protect $2 in $2_t.
4369         * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY)
4370         (_AC_TYPE_UNSIGNED_INT_BODY): Reduce extra quoting.
4372 2008-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4374         Fix parallel test execution output lossage.
4375         * lib/autotest/general.m4 (_AT_CHECK): Truncate files to hold
4376         standard output and standard error before the test, use append
4377         mode for writing.
4378         * THANKS: Update.
4379         Caught by Bob Proulx' build daemons, analysis and suggested fix
4380         by Stéphane Chazelas.
4382 2008-10-28  Eric Blake  <ebb9@byu.net>
4384         Use m4_map_args in more places.
4385         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_dumpdef, m4_popdef)
4386         (m4_undefine, m4_combine): Use m4_map_args, rather than
4387         m4_foreach.
4389 2008-10-28  Eric Blake  <ebb9@byu.net>
4391         Override m4 1.4.x dumpdef, as it breaks autom4te.
4392         * lib/m4sugar/m4sugar.m4 (m4_dumpdef): New implementation.
4393         (m4_copy): Formatting touchup.
4394         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
4395         semantic differences as well as m4_dumpdefs.
4396         * NEWS: Likewise.
4397         * tests/m4sugar.at (m4@&t@_dumpdef): New test.
4399 2008-10-28  Eric Blake  <ebb9@byu.net>
4401         Allow m4sugar to be used without autom4te, such as in bison.
4402         * lib/m4sugar/m4sugar.m4 (m4_text_wrap, m4_qlen): Document that
4403         alternate escape sequences can be used.
4404         (m4_text_box): Likewise.  Don't output quadrigraphs.
4405         (m4_qdelta): Delete unused macro.
4407 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
4409         Add m4_stack_foreach and m4_stack_foreach_lifo.
4410         * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): New from _m4_copy.
4411         (m4_stack_foreach, m4_stack_foreach_lifo): New.
4412         (m4_copy): Use m4_stack_foreach and m4_curry.
4413         (_m4_dumpdefs_down, _m4_dumpdefs_up): Remove.
4414         (m4_dumpdefs): Rewrite using m4_stack_foreach_lifo.
4415         * tests/m4sugar.at (m4_stack_foreach): New test.
4417 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
4419         use a shell function for AC_TYPE_INTx_T
4420         * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY, _AC_TYPE_UNSIGNED_INT_BODY):
4421         New.
4422         (_AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT): Define and use a shell function.
4424 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
4426         * lib/autoconf/general.m4 (AC_CHECK_DECL): Fix AS_ESCAPE usage.
4427         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL,
4428         _AC_CHECK_HEADER_NEW): Likewise.
4429         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
4431 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
4433         * lib/autoconf/types.m4 (_AC_CHECK_MEMBER_BODY): New.
4434         (AC_CHECK_MEMBER): Define and use a shell function.
4436 2008-10-27  Eric Blake  <ebb9@byu.net>
4438         Prefer m4_fatal over AC_FATAL.
4439         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF)
4440         (AC_CHECK_MEMBER): Use non-obsolete macro name.
4441         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF): Likewise.
4442         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE, AC_SUBST):
4443         Likewise.
4444         * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
4445         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCY_DEFAULT)
4446         (_AC_CONFIG_UNIQUE, _AC_CONFIG_REGISTER_DEST): Likewise.
4448 2008-10-27  Eric Blake  <ebb9@byu.net>
4450         Avoid raw carriage return in scripts.
4451         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Generate CR
4452         via tr, rather than with literal byte.
4453         * THANKS: Update.
4454         Reported by Steven R. Loomis; patch suggested by Thomas Dickey.
4456 2008-10-27  Eric Blake  <ebb9@byu.net>
4458         Use AS_VAR_ARITH.
4459         * lib/autotest/general.m4 (at_func_arith): Delete; replace all
4460         clients with AS_VAR_ARITH instead.
4461         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE): Use new
4462         macro.
4463         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Likewise.
4464         * tests/torture.at (Torturing config.status): Likewise.
4465         * tests/tools.at (autom4te --force): Likewise.
4467         Add AS_VAR_ARITH.
4468         * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE, _AS_VAR_ARITH_WORKS)
4469         (AS_VAR_ARITH): New macros.
4470         (_AS_PREPARE, AS_PREPARE): Emit preparation.
4471         * tests/m4sh.at (AS@&t@_VAR_ARITH): New test.
4472         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_ARITH>:
4473         Document new macro.
4474         (Limitations of Usual Tools) <expr>: Mention portability problem
4475         if first argument starts with -.
4476         (Shell Substitutions) <$((expression))>: Mention it.
4477         * NEWS: Likewise.
4479 2008-10-27  Eric Blake  <ebb9@byu.net>
4481         Use read, rather than `cat`, for safe one-line files.
4482         * lib/autotest/general.m4 (AT_CLEANUP): Avoid a fork, since it is
4483         known that the file has only one line and no \.
4484         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_RUN): Likewise.
4486 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
4488         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE,
4489         _AC_COMPUTE_INT_RUN): Add IF-SUCCESS argument.
4490         (_AC_COMPUTE_INT_BODY): New.
4491         (AC_COMPUTE_INT): Define and use a shell function.
4493 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
4495         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW_BODY): Extract
4496         test body here.  Move head comment of _AC_CHECK_TYPE_NEW here.
4497         (_AC_CHECK_TYPE_NEW): Define a shell function and call it.
4499 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
4501         * lib/autoconf/general.m4 (_AC_CHECK_DECL_BODY): New.
4502         (AC_CHECK_DECL): Use a shell function.
4504 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
4506         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_OLD,
4507         _AC_CHECK_HEADER_NEW): Use a shell function.
4509 2008-10-25  Eric Blake  <ebb9@byu.net>
4511         Track recent copyright assignments.
4512         * AUTHORS: Update.
4514 2008-10-25  Paolo Bonzini  <bonzini@gnu.org>
4515         and Eric Blake  <ebb9@byu.net>
4517         Use a shell function for _AC_CHECK_HEADER_MONGREL.
4518         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL_BODY): New
4519         macro.
4520         (_AC_CHECK_HEADER_MONGREL): Use a shell function.
4522 2008-10-25  Eric Blake  <ebb9@byu.net>
4524         Simplify _AS_PREPARE handling of functions.
4525         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Factor...
4526         (_AS_REQUIRE_SHELL_FN): ...into new helper macro.
4527         (_AS_PREPARE): Temporarily redefine AS_REQUIRE_SHELL_FN to make
4528         this task easier.
4529         (_AS_LINENO_PREPARE): Make more efficient.
4530         (_AS_MKDIR_P_PREPARE): Simplify use in _AS_PREPARE.
4531         (_AS_UNSET_PREPARE): Avoid blank newline.
4532         (AS_INIT): Emit as_func_unset alongside other functions.
4534 2008-10-25  Eric Blake  <ebb9@byu.net>
4536         Document AS_EXIT.
4537         * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Document
4538         this macro.
4539         (Limitations of Builtins): Mention AS_EXIT.
4540         * NEWS: Mention it.
4542         Use AS_EXIT in autoconf.as.
4543         * bin/autoconf.as: Consistently use AS_EXIT.
4545 2008-10-24  Eric Blake  <ebb9@byu.net>
4547         Fix m4 underquoting in AC_PROG_INSTALL.
4548         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Produce accurate
4549         character ranges.
4551         Speed up AC_CHECK_HEADER.
4552         * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Factor out $@.
4554 2008-10-24  Paolo Bonzini  <bonzini@gnu.org>
4555         and Eric Blake  <ebb9@byu.net>
4557         Use a shell function for AC_CHECK_FUNC.
4558         * lib/autoconf/functions.m4 (_AC_CHECK_FUNC_BODY): New macro.
4559         (AC_CHECK_FUNC): Use a shell function.
4560         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Reduce number of forks.
4562 2008-10-24  Eric Blake  <ebb9@byu.net>
4564         Work around fact that gnulib-tool doesn't use m4_copy.
4565         * lib/autoconf/general.m4 (AC_LIBOBJ, AC_LIBSOURCES): Defun, not
4566         define, so that an initial location is present, to account for
4567         fact that gnulib-tool pushes another AC_DEFUN'd macro on top.
4569         Make m4_defun_init more robust.
4570         * lib/m4sugar/m4sugar.m4 (m4_defun_init): Handle indirect macro
4571         names, and correct number of arguments.
4572         (m4_copy): Also set up location of the copy.
4573         (m4_defun): When copied, use current macro name, not original.
4574         * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
4575         Update test.
4577         Optimize clients of AS_REQUIRE.
4578         * lib/m4sugar/m4sugar.m4 (m4_defun): Add undocumented third
4579         argument.
4580         (m4_defun_init): New undocumented macro.
4581         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG, AS_MESSAGE, AS_BASENAME)
4582         (_AS_DIRNAME_EXPR, AS_DIRNAME, AS_ECHO, AS_ECHO_N, AS_TEST_X)
4583         (AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK, AS_VERSION_COMPARE)
4584         (AS_TR_SH, AS_TR_CPP, AS_VAR_APPEND, AS_VAR_PUSHDEF): Use it to
4585         simplify these macros once the one-shot initialization is
4586         complete.
4587         * tests/m4sugar.at (m4@&t@_require: one-shot initialization): New
4588         test.
4590         Improve m4_copy.
4591         * lib/m4sugar/m4sugar.m4 (m4_copy): Add second implementation for
4592         public use.
4593         (_m4_copy): New macro, which preserves pushdef stacks.
4594         (_m4_defun_pro_outer): Bypass it, for speed.
4595         (m4_init): Bypass new implementation, since it breaks on m4_defn.
4596         * bin/autoupdate.in (handle_autoconf_macros): Likewise.
4597         * lib/autoconf/general.m4 (AC_PREREQ): Undefine before redefining,
4598         now that m4_copy checks this.
4599         * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
4600         this, as well as m4_rename.
4601         * lib/autoconf/autoconf.m4 (m4_copy): Temporarily redefine when
4602         renaming builtins, since it breaks on m4_ifdef.
4603         * NEWS: Likewise.
4604         * tests/m4sugar.at (m4@&t@_defn): Enhance test.
4606 2008-10-24  Eric Blake  <ebb9@byu.net>
4608         AC_FUNC_GETGROUPS: Revert regression.
4609         * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Only set
4610         ac_cv_func_getgroups_works=no when it is not available.
4612 2008-10-23  Eric Blake  <ebb9@byu.net>
4614         Whitespace cleanup.
4615         * lib/autoconf/fortran.m4: Consistently use tabs.
4617 2008-10-23  Chikama Masaki  <masaki.chikama@gmail.com>  (tiny change)
4619         For gfortran on sh, ignore -little.
4620         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add -little to
4621         list of ignored arguments.
4622         * THANKS: Update.
4624 2008-10-23  Paolo Bonzini  <bonzinI@gnu.org>
4626         Eliminate empty lines after AC_*_IFELSE.
4627         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
4628         _AC_LINK_IFELSE, _AC_RUN_IFELSE): Add a dnl at end.
4630 2008-10-23  Paolo Bonzini  <bonzinI@gnu.org>
4632         Avoid a fork in _AC_RUN_LOG and _AC_RUN_LOG_STDERR
4633         * lib/autoconf/general.m4 (_AC_RUN_LOG, _AC_RUN_LOG_STDERR):
4634         Return a boolean status code based on $ac_status.
4636 2008-10-23  Paolo Bonzini  <bonzinI@gnu.org>
4638         Ensure actions can look at conftest* files.
4639         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY,
4640         _AC_COMPILE_IFELSE_BODY, _AC_LINK_IFELSE_BODY, _AC_RUN_IFELSE_BODY):
4641         Move rm commands, except IPA files and Apple debug symbols...
4642         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE,
4643         _AC_RUN_IFELSE): ...in here.
4644         * tests/compile.at: Add regression test.
4646 2008-10-23  Eric Blake  <ebb9@byu.net>
4648         Remove excess dnl from m4sh.
4649         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_PREPARE)
4650         (_AS_SHELL_FN_WORK, _AS_SHELL_SANITIZE, AS_IF, _AS_ECHO_LOG)
4651         (AS_MESSAGE, AS_ERROR, AS_BASENAME, _AS_BASENAME_PREPARE)
4652         (_AS_DIRNAME_EXPR, AS_DIRNAME, _AS_DIRNAME_PREPARE, AS_ECHO)
4653         (AS_ECHO_N, AS_TEST_X, AS_EXECUTABLE_P, _AS_ME_PREPARE)
4654         (_AS_LINENO_PREPARE, AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK)
4655         (AS_SET_CATFILE, AS_HELP_STRING, AS_TMPDIR, AS_VERSION_COMPARE)
4656         (_AS_TR_SH_PREPARE, AS_TR_SH, _AS_TR_CPP_PREPARE, AS_TR_CPP)
4657         (_AS_TR_PREPARE, AS_VAR_APPEND, AS_VAR_PUSHDEF)
4658         (AS_INIT_GENERATED): Use fewer dnl in m4sh macro bodies.
4660 2008-10-23  Paolo Bonzini  <bonzini@gnu.org>
4661         and Eric Blake  <ebb9@byu.net>
4663         Use a shell function for _AC_RUN_IFELSE.
4664         * lib/autoconf/general.m4 (_AC_RUN_IFELSE_BODY): New macro.
4665         (_AC_RUN_IFELSE): Use a shell function.
4666         (_AC_RUN_LOG): Avoid subshell for logging.
4668 2008-10-23  Eric Blake  <ebb9@byu.net>
4670         Formatting tweak: balance () with m4sh case statements.
4671         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
4672         (_AS_SHELL_SANITIZE, _AS_ECHO_N_PREPARE, _AS_ECHO_PREPARE)
4673         (AS_SET_CATFILE, _AS_TEST_PREPARE): Add strategic shell comments.
4674         (_AS_CASE, _AS_CASE_DEFAULT, AS_CASE): Rearrange newlines, to
4675         allow output of strategic shell comments.
4676         (AS_VERSION_COMPARE): Use AS_CASE.
4677         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
4679 2008-10-22  Jim Meyering  <meyering@redhat.com>
4681         AC_FUNC_GETGROUPS: always define $ac_cv_func_getgroups_works
4682         * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Always define
4683         the shell variable, $ac_cv_func_getgroups_works.  Otherwise, if
4684         it is set to "yes" in the environment and configure is run on
4685         a system like mingw that lacks the getgroups function, it would
4686         mistakenly define HAVE_GETGROUPS.  Reported by Simon Josefsson in
4687         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/15354>.
4689 2008-10-22  Paolo Bonzini  <bonzini@gnu.org>
4690         and Eric Blake  <ebb9@byu.net>
4692         Use a shell function for _AC_LINK_IFELSE.
4693         * lib/autoconf/general.m4 (_AC_LINK_IFELSE_BODY): New macro.
4694         (_AC_LINK_IFELSE): Use a shell function.
4696 2008-10-22  Eric Blake  <ebb9@byu.net>
4698         Fix autoconf logging commands.
4699         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED, _AC_EVAL)
4700         (_AC_EVAL_STDERR, AC_RUN_LOG): Respect as_lineno.
4701         (_AC_DO_ECHO): Likewise, and use fewer dnl.
4702         (_AC_RUN_LOG_STDERR): Avoid subshell for logging.
4704 2008-10-22  Eric Blake  <ebb9@byu.net>
4706         Fix testsuite failure.
4707         * tests/mktests.sh (ac_exclude_list): Don't generate test for
4708         AC_REQUIRE_SHELL_FN.
4710 2008-10-21  Eric Blake  <ebb9@byu.net>
4712         Improve wording related to automake and autotest.
4713         * doc/autoconf.texi (Making testsuite Scripts): Clarify wording in
4714         relation to automake.  Mention dependency on package.m4.
4715         Consolidate examples.  Define AUTOM4TE.
4716         * THANKS: Update.
4717         Reported by William Pursell.
4719 2008-10-21  Eric Blake  <ebb9@byu.net>
4721         Allow AS_VAR_SET_IF in shell lists.
4722         * lib/m4sugar/m4sh.m4 (AS_VAR_SET_IF): Allow continuation of
4723         line.
4724         * lib/autoconf/general.m4 (AC_CACHE_VAL): Supply newline no longer
4725         provided by AS_VAR_SET_IF.
4726         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Adjust
4727         clients.
4728         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
4729         * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
4731         Allow AS_VAR_IF in shell lists.
4732         * lib/m4sugar/m4sh.m4 (AS_VAR_IF): Allow continuation of line.
4733         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Adjust clients.
4734         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
4735         Likewise.
4736         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
4737         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD)
4738         (_AC_CHECK_HEADER_DIRENT): Likewise.
4739         * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
4740         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
4741         Likewise.
4742         * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
4744         Allow AS_CASE in shell lists.
4745         * lib/m4sugar/m4sh.m4 (AS_CASE): Always execute test, in case of
4746         side effects.  Allow continuation of script on same line as esac.
4747         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Adjust client.
4748         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
4749         * NEWS: Document the subtle change.
4751         Allow AS_IF in shell lists.
4752         * lib/m4sugar/m4sh.m4 (AS_IF): Always execute test, in case of
4753         side effects.  Allow continuation of script on same line as fi.
4754         (_AS_DETECT_BETTER_SHELL): Adjust clients.
4755         (AS_VAR_IF, AS_VAR_SET_IF): For now, supply newline no longer
4756         given by AS_IF.
4757         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Likewise.
4758         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Likewise.
4759         (AC_EGREP_CPP, _AC_RUN_IFELSE): Adjust client.
4760         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
4761         * doc/autoconf.texi (Common Shell Constructs) <AS_IF>: Fix typo.
4762         (Polymorphic Variables): Move mention of dnl to the only two
4763         AS_VAR functions that need it.
4765 2008-10-21  Paolo Bonzini  <bonzini@gnu.org>
4766         and Eric Blake  <ebb9@byu.net>
4768         Use a shell function for _AC_COMPILE_IFELSE.
4769         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE_BODY): New macro.
4770         (_AC_COMPILE_IFELSE): Use a shell function.
4772 2008-10-21  Eric Blake  <ebb9@byu.net>
4774         Use AS_VAR_APPEND.
4775         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS_ONCE): Use new macro.
4776         * lib/autoconf/general.m4 (_AC_INIT_PREPARE)
4777         (_AC_LIBOBJS_NORMALIZE): Likewise.
4778         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): Likewise.
4779         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS)
4780         (_AC_OUTPUT_CONFIG_STATUS, _AC_OUTPUT_MAIN_LOOP): Likewise.
4781         * lib/autotest/general.m4 (AT_INIT): Likewise.
4783         Add AS_VAR_APPEND.
4784         * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
4785         (_AS_VAR_APPEND_WORKS, AS_VAR_APPEND): New macros.
4786         (AS_PREPARE, _AS_PREPARE): Emit preparation.
4787         * tests/m4sh.at (AS@&t@_VAR_APPEND): New test.
4788         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_APPEND>:
4789         Document new macro.
4790         <AS_VAR_SET>: Mention ramification of `""` rules.
4791         * NEWS: Mention new macro.
4793 2008-10-21  Paolo Bonzini  <bonzini@gnu.org>
4794         and Eric Blake  <ebb9@byu.net>
4796         Use a shell function for _AC_PREPROC_IFELSE.
4797         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY): New macro.
4798         (_AC_PREPROC_IFELSE): Use a shell function.
4799         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Factor for faster execution.
4800         (AS_REQUIRE_SHELL_FN): Bypass AS_REQUIRE if function has already
4801         been provided.
4803 2008-10-21  Eric Blake  <ebb9@byu.net>
4805         Add banners to generated files.
4806         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Use m4_text_box for
4807         existing banner.
4808         (AS_INIT): Add new banners at strategic points.
4809         * lib/autoconf/general.m4 (AC_INIT): Alter banner location, and
4810         make consistent with other banners.
4811         * lib/autotest/general.m4 (AT_INIT): Make banners consistent.
4813 2008-10-20  Paolo Bonzini  <bonzini@gnu.org>
4815         Add AC_REQUIRE_SHELL_FN and the SHELL_FN diversion.
4816         * lib/autoconf/general.m4 (AC_REQUIRE_SHELL_FN): New.
4817         (m4_divert(SHELL_FN)): New.
4819 2008-10-20  Eric Blake  <ebb9@byu.net>
4821         Avoid unportable use of echo in testsuite.
4822         * tests/m4sh.at (AS@&t@_VAR basics): Use AS_ECHO, since string
4823         contains backslash.
4825 2008-10-18  Paolo Bonzini  <bonzini@gnu.org>
4827         Make sure that nested AS_REQUIRE do not lose the desired diversion.
4828         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Expand _m4_divert_desired before
4829         passing it to m4_divert_require, so that its content is not used
4830         anymore.
4831         * tests/m4sh.at (Nested AS_REQUIRE): New testcase.
4833 2008-10-18  Eric Blake  <ebb9@byu.net>
4835         Document bugs in { } handling.
4836         * doc/autoconf.texi (Limitations of Builtins): Mention bug on
4837         empty list.
4839         Fix some testsuite failures introduced two days ago.
4840         * tests/m4sh.at (Nested AS@&t@_REQUIRE_SHELL_FN)
4841         (AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require): Adjust to changed
4842         API.
4843         Reported by Ralf Wildenhues.
4845 2008-10-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4847         Show how to extract single substitutions from config.status.
4848         * doc/autoconf.texi (config.status Invocation): Show example
4849         using `--file=-'.
4851 2008-10-17  Eric Blake  <ebb9@byu.net>
4853         Add m4_curry.
4854         * lib/m4sugar/m4sugar.m4 (m4_curry, _m4_curry): New macros.
4855         * tests/m4sugar.at (m4@&t@_map_args): Rename...
4856         (m4@&t@_map_args and m4@&t@_curry): ...and add currying tests.
4857         * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
4858         currying as a way to add parameters.
4859         (Evaluation Macros) <m4_curry>: Document the new macro.
4860         * NEWS: Likewise.
4862         Improve suggested test filtering.
4863         * lib/m4sugar/m4sh.m4 (_AS_DETECT_SUGGESTED_PRUNE): New macro,
4864         extracted from...
4865         (_AS_DETECT_BETTER_SHELL): ...here, to use faster API.  No need to
4866         check for an empty required set.
4868         Add m4_set_map.
4869         * lib/m4sugar/m4sugar.m4 (m4_set_foreach): New macro.
4870         * tests/m4sugar.at (m4@&t@_set): Enhance test.
4871         * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
4872         Document it.
4873         * NEWS: Likewise.
4875         Document m4_map_args.
4876         * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair):
4877         Rename...
4878         (m4_map_args, m4_map_args_pair): ...to these names, and document.
4879         (m4_version_unletter): Use the interface.
4880         * lib/m4sugar/foreach.m4 (m4_map_args, m4_map_args_pair)
4881         (_m4_map_args_, _m4_map_args_pair_, _m4_map_args_pair_end):
4882         Perform same renames.
4883         * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Adjust callers.
4884         * tests/m4sugar.at (m4@&t@_map_args): New test.
4885         (recursion): Adjust caller.
4886         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Likewise.
4887         * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
4888         this interface.
4889         * NEWS: Mention the new macros.
4891 2008-10-17  Eric Blake  <ebb9@byu.net>
4893         Reduce vertical whitespace in configure.
4894         * lib/autoconf/general.m4 (AC_INIT): Silence newline output during
4895         m4 side effect initializations.
4896         * lib/m4sugar/m4sh.m4 (AS_PREPARE): Likewise.
4898 2008-10-17  Eric Blake  <ebb9@byu.net>
4900         Document AS_VAR interfaces.
4901         * doc/autoconf.texi (Programming in M4sh): M4sh is now prime-time.
4902         (Polymorphic Variables): New node.
4903         * NEWS: Update accordingly.
4905         Test AS_VAR interfaces.
4906         * tests/m4sh.at (AS@&t@_VAR): New test.
4907         * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Force expansion of
4908         _AS_TR_SH_PREPARE at top level, rather than argument collection.
4909         (AS_TR_SH): Support command substitution.
4911         Add AS_VAR_COPY.
4912         * lib/m4sugar/m4sh.m4 (AS_VAR_COPY): New macro.
4913         (AS_VAR_IF): Use it, instead of the broken AS_VAR_GET.
4914         * lib/autoconf/general.m4 (AC_CACHE_CHECK): Likewise.
4915         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
4916         * lib/autotest/general.m4 (_AT_FINISH): Likewise.
4918         Sort AS_VAR_* interfaces.
4919         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Reduce output to one line.
4920         (AS_VAR_TEST_SET, AS_VAR_SET, AS_VAR_SET_IF, AS_VAR_POPDEF): Sort,
4921         no code changes.
4923 2008-10-16  Eric Blake  <ebb9@byu.net>
4925         Allow comments before functions emitted by m4sh.
4926         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Add comment
4927         argument.  Supply closing comment, to ease readability.
4928         (_AS_MKDIR_P_PREPARE): Adjust caller.
4929         (_AS_UNSET_PREPARE): Add comment.
4931         Add AS_FUNCTION_DESCRIBE.
4932         * lib/m4sugar/m4sh.m4 (AS_FUNCTION_DESCRIBE): New macro.
4933         * lib/autotest/general.m4 (AT_INIT): Use it.
4935 2008-10-16  Eric Blake  <ebb9@byu.net>
4937         Speed up m4_qlen with caching.
4938         * lib/m4sugar/m4sugar.m4 (_m4_qlen): Renamed from old m4_qlen.
4939         (m4_qlen): Cache results for speed.
4941 2008-10-16  Paolo Bonzini  <bonzini@gnu.org>
4943         Add a testcase using more then one language.
4944         * tests/compile.at (Multiple languages): New test.
4946 2008-10-16  Paolo Bonzini  <bonzini@gnu.org>
4948         Fix Libtool's config.lt test.
4949         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Disable AS_REQUIRE while
4950         expanding it.
4952 2008-10-15  Eric Blake  <ebb9@byu.net>
4954         Break circular require chain in _AS_LINENO_PREPARE.
4955         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Ensure that logging is
4956         disabled when reporting LINENO failure, since logging requires
4957         LINENO.
4958         * doc/autoconf.texi (Initialization Macros): Recommend m4_pushdef,
4959         not m4_rename, since the latter is undocumented.
4960         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid
4961         m4_rename, as it does not yet handle pushdef stacks.
4962         Reported by Ralf Wildenhues.
4964 2008-10-15  Eric Blake  <ebb9@byu.net>
4966         Cleanups to previous patches.
4967         * doc/autoconf.texi (Portable Shell): Minor edits.
4968         (Limitations of Builtins): Touch up wording.
4969         * lib/m4sugar/m4sh.m4 (AS_LINENO_PUSH): Nuke trailing whitespace.
4970         (_AS_SHELL_SANITIZE): Wrap comments less than 80 columns.
4972 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
4974         Updates to shell portability documentation.
4975         * doc/autoconf.texi: Updates all references to "Portable Shell" and
4976         "Limitations of Builtins" to use three-argument commands.
4977         (Programming in M4sh): Document AS_ECHO, AS_ECHO_N, AS_UNSET.
4978         (Portable Shell): Move here discussion about "Where is the POSIX
4979         shell?"  Mention that M4sh provides a SVR2 shell and takes care
4980         of unsetting variables if necessary.  Talk about M4sh and not only
4981         Autoconf-generated scripts.
4982         (Special Shell Variables): Talk about M4sh and not only
4983         Autoconf-generated scripts.  Don't talk about things that Autoconf
4984         does not do.  Mention problems of $LINENO with shell functions.
4985         (Limitations of Builtins).  Mention AS_ECHO and AS_ECHO_N.  Move
4986         discussion of eval bugs before discussion on proper use of eval.
4987         Mention AS_IF.  Reword why not to use "shift N".  Mention "foo=;
4988         unset foo" trick.  Include M4sh code that unsets MAIL for Bash 2.01.
4989         * NEWS: Update list of documented M4sh macros.
4991 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
4993         Assume a (possibly buggy) `unset' is present after a
4994         `better shell' was found.
4995         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Use AS_UNSET.
4996         * lib/autoconf/programs.m4 (AC_PROG_SED): Use AS_UNSET.
4997         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Provide $as_unset as an
4998         alias for AS_UNSET, for backwards compatibility.
4999         (_AS_DETECT_BETTER_SHELL): Set BASH_ENV and ENV to /dev/null in case
5000         the shell does not support unset.
5001         (_AS_SHELL_SANITIZE): Work around Bash 2.01 bugs.  Unset BASH_ENV.
5002         (AS_INIT, _AS_PREPARE, AS_PREPARE): Call it.
5003         (AS_UNSET): Assume it is there but it might fail if the variable is
5004         not set.  Use it throughout instead of $as_unset.
5006 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
5008         Turn AS_SHELL_SANITIZE into a for-Libtool-only wrapper.
5009         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED): Remove
5010         m4_require of _AS_DETECT_BETTER_SHELL.
5011         (_AS_CLEANUP): Add it here.
5012         (_AS_DETECT_BETTER_SHELL): Just expand the test instead of appending it
5013         to _AS_CLEANUP.
5014         (_AS_SHELL_SANITIZE): New name of the old AS_SHELL_SANITIZE macro.
5015         (AS_SHELL_SANITIZE): New macro hacking around Libtool misuse.
5016         (AS_PREPARE): Use _AS_SHELL_SANITIZE.
5017         (AS_INIT): Add m4_provide of itself.
5019 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
5021         Use "test x$foo = xyes" to avoid upsetting Libtool's sh.test.
5022         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_SHELL_FN_WORK): Use
5023         "test x$foo = xyes".
5025 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
5027         Trim down the size of the better-shell test.
5028         * lib/m4sugar/m4sh.at (_AT_DETECT_BETTER_SHELL): Store the common
5029         snippets into shell variables.
5030         (_AS_RUN): Rewrite.
5032 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
5034         Support a stack of LINENO values for AS_MESSAGE.
5035         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): If defined, use $as_lineno as
5036         the line number emitted to the log file.
5037         (AS_LINENO_PUSH, AS_LINENO_POP): New.
5038         * tests/m4sh.at (LINENO Stack): New test.
5040 2008-10-14  Eric Blake  <ebb9@byu.net>
5042         Correct previous patch.
5043         * doc/autoconf.texi (Shell Functions): Bash obeys Posix, after
5044         all.
5046         Document shell function environment pitfall.
5047         * doc/autoconf.texi (Shell Functions): Document bugs in bash,
5048         Solaris /bin/sh.
5050 2008-10-14  Paolo Bonzini  <bonzini@gnu.org>
5052         Use m4_require to implement AS_REQUIRE.
5053         * lib/m4sugar/m4sugar.m4 (_m4_require_call): Accept a third argument.
5054         (m4_require): Pass it.
5055         (m4_divert_require): New.
5056         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Rewrite using m4_divert_require.
5057         Remove comment about differences with m4_require.
5058         * tests/m4sh.at (AS_REQUIRE_SHELL_FN and m4_require): Update to test
5059         the expected behavior.
5060         (Nested AS_REQUIRE_SHELL_FN): New test.
5062 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
5064         Test AS_LINENO_PREPARE.
5065         * tests/m4sh.at: Use documented AS_LINENO_PREPARE.
5067 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
5069         Test AS_ME_PREPARE.
5070         * tests/m4sh.at (as_me): New test.
5072 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
5074         Add and document AS_INIT_GENERATED.
5075         * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): New.
5076         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use it.
5077         * doc/autoconf.texi (Initialization macros): Document it.
5079 2008-10-13  Eric Blake  <ebb9@byu.net>
5081         Use consistent shell function style.
5082         * lib/m4sugar/m4sh.m4 (_AS_PREPARE, AS_REQUIRE_SHELL_FN)
5083         (_AS_SHELL_FN_WORK): Imitate GNU Coding Standards for C
5084         functions.
5086 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
5088         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Place names of
5089         contributors under m4 rather than shell comments.
5091 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
5093         * lib/m4sugar/m4sh.m4 (AS_ME_PREPARE, AS_LINENO_PREPARE): New.
5094         * doc/autoconf.texi (Initialization macros): Document them.
5095         (Portable Shell): Refer to AS_LINENO_PREPARE.
5096         * NEWS: Mention them.
5098         * bin/autoconf.as: Invoke AS_ME_PREPARE.
5099         * lib/autotest/general.m4: Likewise.
5101 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
5103         * doc/autoconf.texi (Programming in M4sh): Make its own chapter.
5105 2008-10-10  Eric Blake  <ebb9@byu.net>
5107         Fix _AS_MKDIR_P usage.
5108         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P): Correct documentation to
5109         match implementation.
5110         (_AS_PREPARE, _AS_MKDIR_P_PREPARE): Adjust callers.
5111         * doc/autoconf.texi (Programming in M4sh) <AS_MKDIR_P>: Tweak
5112         wording to better match behavior.
5114 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
5116         * doc/autoconf.texi: Be less wary of shell functions.
5117         * NEWS: Document the increased use of shell functions.
5119 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
5121         * m4sugar/m4sh.m4 (_AS_MKDIR_P): New, from AS_MKDIR_P.  Adjust
5122         meaning of as_mkdir_p to be `false' or a full `mkdir -p' command.
5123         (AS_MKDIR_P): Just dispatch to as_func_mkdir_p.
5124         (_AS_PREPARE): Define shell functions.
5125         (_AS_MKDIR_P_PREPARE): Set as_mkdir_p according to the above change.
5126         Define shell functions.
5128 2008-10-09  Eric Blake  <ebb9@byu.net>
5130         Only prepare $as_me if it will be used.
5131         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Avoid unconditional
5132         preparation.
5133         (_AS_ECHO_LOG): Depend on $LINENO preparation.
5134         (AS_MESSAGE): Depend on $as_me preparation.
5135         (AS_TMPDIR): Use AS_ERROR, rather than a hand-rolled copy.
5137 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
5139         * m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Delay setting as_me
5140         until the M4SH-INIT diversion using _AS_ME_PREPARE.
5141         (_AS_PREPARE): Invoke _AS_EXPR_PREPARE before _AS_BASENAME_PREPARE
5142         and _AS_DIRNAME_PREPARE, and _AS_BASENAME_PREPARE and _AS_ME_PREPARE
5143         before _AS_LINENO_PREPARE.
5144         (AS_PREPARE): Include all the AS_REQUIREs manually.
5145         (_AS_ME_PREPARE): New.
5146         (_AS_LINENO_PREPARE): Use m4_defun.
5148 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
5150         * m4sugar/m4sh.m4 (_AS_BASENAME_EXPR, _AS_DIRNAME_EXPR): Do not
5151         require _AS_EXPR_PREPARE.
5152         (_AS_BASENAME_PREPARE, _AS_DIRNAME_PREPARE): Do it here.
5153         (_AS_PREPARE): Add _AS_BASENAME_PREPARE.
5155 2008-10-08  Eric Blake  <ebb9@byu.net>
5157         Resync from gnulib.
5158         * cfg.mk (cvs_executable_files, cvs_files): Rewrite...
5159         (fetch): ...into new target.
5160         (executable-update): Delete, now that it is unused.
5161         * maint.mk (update, local_updates, cvs_files, gnulib_repo)
5162         (wget-update, cvs-update): Likewise.
5163         * HACKING (Update the foreign files): Document new procedure.
5164         * GNUmakefile: Resync from upstream, via new 'make fetch'.
5165         * build-aux/config.guess: Likewise.
5167 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
5169         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Remove.
5170         (AS_INIT): Do not call it.
5172 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
5174         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Expand
5175         _AS_UNSET_PREPARE in M4SH-SANITIZE.
5177 2008-10-08  Eric Blake  <ebb9@byu.net>
5179         Avoid repeating required shell tests in suggested set.
5180         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED):
5181         Use m4_set, rather than m4_expand_once/m4_append.
5182         (_AS_DETECT_SUGGESTED): Adjust to new storage layout, and filter
5183         required tests out of suggested tests.
5184         Reported by Paolo Bonzini.
5186 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
5188         Add m4sh keyword to all m4sh.at tests.
5189         * tests/m4sh.at: Add m4sh keyword to all tests.  Fix comment
5190         pastos.
5192 2008-10-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5194         Document AS_VERSION_COMPARE.
5195         * doc/autoconf.texi (Programming in M4sh): Document
5196         AS_VERSION_COMPARE.
5197         * NEWS: Update.
5199         Do not write to testsuite log fd before initialization.
5200         * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD, AT_JOB_FIFO_FD):
5201         Define fds only when initializing the log fd so early error
5202         messages do not try to write to it.
5203         * tests/autotest.at (Startup error messages): New test.
5204         * NEWS: Document this 2.63 regression.
5206 2008-10-07  Eric Blake  <ebb9@byu.net>
5208         Ensure _AS_CLEANUP is defined.
5209         * lib/m4sugar/m4sh.m4 (_AS_CLEANUP): Give initial definition.
5210         * tests/m4sh.at (AS@&t@_INIT cleanup): Expose the need for this.
5212         Improve m4sh maintainability.
5213         * lib/m4sugar/m4sh.m4: Sort macros for sanitizing the shell; no
5214         code change.
5216         Fix m4 quoting in previous patch.
5217         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Determine diversion
5218         name prior to invoking AS_REQUIRE.
5219         Reported by Ralf Wildenhues.
5221 2008-09-18  Paolo Bonzini  <bonzini@gnu.org>
5222         and Eric Blake  <ebb9@byu.net>
5224         Add a separate diversion for shell functions.
5225         * lib/m4sugar/m4sh.m4 (M4SH-INIT-FN): New diversion.
5226         (AS_REQUIRE): Accept diversion parameter.
5227         (AS_REQUIRE_SHELL_FN): Use it.
5229 2008-10-06  Eric Blake  <ebb9@byu.net>
5231         Add m4_default_quoted.
5232         * lib/m4sugar/m4sugar.m4 (m4_default_quoted): New macro.
5233         (m4_for, m4_expand_once, m4_text_wrap, m4_text_box): Use it.
5234         * doc/autoconf.texi (Conditional constructs): Document it.
5235         * NEWS: Likewise.
5237         Fix build with case-insensitive make, again.
5238         * Makefile.am (pkgdata_DATA): Protect by MAKE_CASE_SENSITIVE.
5239         Reported via Keith Marshall, originally by newthinker in
5240         <http://thread.gmane.org/gmane.comp.gnu.mingw.user/27725>.
5242 2008-10-06  Bruno Haible  <bruno@clisp.org>
5244         Warn about /usr/ucb on Solaris.
5245         * doc/install.texi (Particular Systems): Recommend putting
5246         /usr/ucb late in PATH, if at all.
5248 2008-10-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5250         Fix more testsuite hang corner cases.
5251         * lib/autotest/general.m4: Use the serial code path if no test
5252         is to be run.
5253         * tests/autotest.at (parallel test execution): Test -j and -jN
5254         with `-k notmatched'.
5256 2008-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5258         Fix hang with `testsuite -k notmatched'.
5259         * lib/autotest/general.m4: Do not reset $at_jobs if it is equal
5260         to one.  Fixes hang with `-k notmatched'.
5262 2008-10-02  Eric Blake  <ebb9@byu.net>
5264         Document more binary file portability traps.
5265         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Remind
5266         reader that NUL and sed don't always mix.
5267         <tr>: Mention Solaris /usr/ucb/tr bug with \0.
5269 2008-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5271         Implement parallel Autotest test execution: testsuite --jobs.
5272         * lib/autotest/general.m4 (AT_JOB_FIFO_FD): New macro.
5273         (AT_INIT): <at_jobs>: New variable.
5274         Accept -j, -jN, --jobs[=N], document them in --help output.
5275         Implement parallel driver loop using a FIFO, enabled with --jobs
5276         and if mkfifo works; otherwise, fall back to sequential loop.
5277         (AT_SETUP): Store, do not output summary progress line if
5278         parallel.
5279         * tests/autotest.at (parallel test execution, parallel truth)
5280         (parallel fallacy, parallel skip): New tests.
5281         * doc/autoconf.texi (testsuite Invocation): Document -j, --jobs,
5282         the mkfifo requirement, and that --errexit may cause concurrent
5283         jobs to finish.
5284         * NEWS: Update.
5286 2008-09-20  Eric Blake  <ebb9@byu.net>
5288         Fix sample isinf definition.
5289         * doc/autoconf.texi (Function Portability) <isinf>: Filter out NaN
5290         first.
5291         * THANKS: Update.
5292         Reported by David Cournapeau.
5294 2008-09-16  Eric Blake  <ebb9@byu.net>
5296         Fix Erlang regression, introduced 2006-11-17.
5297         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Avoid M4 comment
5298         caused by underquoting.
5299         * NEWS: Mention this fix.
5300         * THANKS: Update.
5301         Reported by BJ Terry.
5303 2008-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5305         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Improve a bit.
5307         Mention Solaris sh ':' redirection bug.
5308         * doc/autoconf.texi (File Descriptors): Redirecting ':'
5309         in a loop causes bogus optimization with Solaris sh.
5311 2008-09-10  Eric Blake  <ebb9@byu.net>
5313         Avoid testsuite bug when autom4te cache is disabled by user.
5314         * tests/tools.at (autoconf: forbidden tokens, basic): Enable
5315         cache, even if user normally disabled it.
5316         Reported by Bruno Haible.
5318         Avoid testsuite bug in presence of verbose config.site.
5319         * tests/base.at (Input/Output): Nullify config.site during test.
5320         Reported by Bob Friesenhahn.
5322 2008-09-09  Eric Blake  <ebb9@byu.net>
5324         Release Version 2.63.
5325         * NEWS: Mention the release.
5327         Formatting tweaks to the manual.
5328         * doc/autoconf.texi (Introduction, Systemology)
5329         (File System Conventions, Portable C and C++)
5330         (Floating Point Portability): Allow URLs to split as needed.
5331         (Indices): Add entries, to work around texinfo bug on indices that
5332         start too close to a page break.
5333         (Particular Functions): Mention ftello.
5334         (Introduction, Language Choice): Use @enddots at sentence end.
5336         Resync from gnulib.
5337         * cfg.mk (cvs_executable_files, cvs_files): Update list of files,
5338         although for now, they are still manually sync'd.
5339         * build-aux/gnupload: Update.
5340         * build-aux/config.sub: Likewise.
5341         * GNUmakefile: Likewise.
5343 2008-09-06  Eric Blake  <ebb9@byu.net>
5345         Mention that Automake already supports VPATH.
5346         * doc/autoconf.texi (Build Directories): Details in this section
5347         only apply to users avoiding automake.
5348         * THANKS: Update.
5349         Reported by Matej Tyc.
5351         Relax tone when warning about cross-compiler names.
5352         * lib/autoconf/programs.m4 (_AC_TOOL_WARN): Support cross-compiles
5353         with poorly named tools; the issue has been reported too many
5354         times in the last four years to pull support.
5355         * doc/autoconf.texi (Specifying Names, Generic Programs): Update
5356         documentation accordingly.
5357         * THANKS: Update.
5358         Reported by Josef Tran and others, wording suggested by Ralf
5359         Wildenhues.
5361 2008-09-01  Eric Blake  <ebb9@byu.net>
5363         Improve AC_C_BIGENDIAN.
5364         * doc/autoconf.texi (C Compiler) <AC_C_BIGENDIAN>: Mention that
5365         universal builds require a config header.
5366         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Enhance comments.  Check
5367         AH_HEADER at the last possible moment, so that users can use
5368         AC_CONFIG_HEADER after this macro.
5369         Reported by Stepan Kasal.
5371         Fix manual date information.
5372         * doc/autoconf.tex: UPDATED refers to the day the manual was
5373         built, not the release date of Autoconf.
5374         Based on a bison patch by Akim Demaille.
5376 2008-08-27  Eric Blake  <ebb9@byu.net>
5378         Fix off-by-one bug in _m4_shiftn.
5379         * lib/m4sugar/foreach.m4 (_m4_shiftn): Handle case when shifting
5380         all arguments.
5381         * tests/m4sugar.at (M4 loops): Test it.
5382         Reported by Akim Demaille.
5384 2008-08-26  Eric Blake  <ebb9@byu.net>
5386         Improve INSTALL formatting.
5387         * doc/install.texi [!autoconf]: Ensure first paragraphs are
5388         indented like all others in a plain text rendering.
5389         * Makefile.am ($(srcdir)/INSTALL): Ensure plaintext formatting.
5390         Reported by Bruno Haible.
5392 2008-08-26  Stepan Kasal  <skasal@redhat.com>
5394         Check for case sensitive make.
5395         * m4/make-check.m4 (AC_PROG_MAKE_CASE_SENSITIVE): New macro,...
5396         * configure.ac: ... called here.
5397         * Makefile.am ($(abs_srcdir)/INSTALL, INSTALL): Return to...
5398         ($(srcdir)/INSTALL): ...this, but enclose the rule in
5399         "if MAKE_CASE_SENSITIVE".
5401 2008-08-26  Eric Blake  <ebb9@byu.net>
5403         Update invocation documentation.
5404         * doc/autoconf.texi (autoscan Invocation): Mention --debug.
5405         (autoreconf Invocation): Mention -v.
5406         (autom4te Invocation): Tie --freeze to -F, not -f.
5407         (autoupdate Invocation): Mention --prepend-include.
5408         * doc/install.texi (configure Invocation): Mention --help=short,
5409         --help=recursive, -n/--no-create, --prefix.  Avoid TABs.
5410         * bin/autoscan.in ($help): Omit space before `...'.
5411         * bin/ifnames.in ($help): Likewise.
5412         * bin/autoconf.as (Usage): Likewise.
5413         * bin/autoreconf.in ($help): Likewise.
5414         * bin/autoheader.in ($help): Likewise.
5415         * bin/autom4te.in ($help): Likewise.
5416         * bin/autoupdate.in ($help): Likewise.
5417         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use
5418         `[OPTION]...', rather than `[OPTIONS]'.  Mention --silent.  Indent
5419         --file correctly.
5421         Don't let frozen __m4_version__ break downgrade to m4 1.4.x.
5422         * bin/autom4te.in: Adjust comments, now that we rely on 1.4.5+.
5423         (files_to_options): Avoid inheriting __m4_version__ from frozen
5424         file if current M4 does not support it.
5426 2008-08-25  Eric Blake  <ebb9@byu.net>
5428         Adjust to recent m4 1.6 change to support m4_debugmode(d).
5429         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Move
5430         freeze-time decision of using faster 1.6 implementation...
5431         (m4_init): ...to a runtime decision, and add use of new debugmode
5432         flag.
5434 2008-08-22  Peter O'Gorman  <pogma@thewrittenword.com>
5436         Limit AC_C_BIGENDIAN univeral checks to Mac OS X.
5437         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Limit the check to
5438         __APPLE_CC__ with possible -arch flags.
5439         * NEWS: Document it.
5441 2008-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5443         * NEWS: Fix typo.
5445 2008-08-22  Eric Blake  <ebb9@byu.net>
5447         * TODO: Add an item for additional m4sugar looping constructs.
5448         Suggested by Ralf Wildenhues.
5450         Add reminder to keep dual implementations in sync.
5451         * lib/m4sugar/m4sugar.m4: Add comments.
5452         * lib/m4sugar/foreach.m4: Likewise.
5453         Suggested by Ralf Wildenhues.
5455 2008-08-22  Peter Eisentraut  <peter_e@gmx.net>  (tiny change)
5457         Format warning and error messages to match GCS.
5458         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK)
5459         (_AC_INIT_PARSE_ARGS, _AC_CACHE_DUMP): Start warning and error
5460         messages with a lowercase letter, end them without punctuation.
5461         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Likewise.
5462         * lib/autoconf/libs.m4 (AC_PATH_X): Likewise.
5463         * lib/autoconf/status.m4 (AC_OUTPUT, _AC_OUTPUT_MAIN_LOOP):
5464         Likewise.
5465         * tests/fortran.at (GNU Fortran): Likewise.
5466         * tests/torture.at (Deep Package): Likewise.
5468 2008-08-21  Eric Blake  <ebb9@byu.net>
5470         Avoid extra side effects in m4sugar list expansion.
5471         * lib/m4sugar/m4sugar.m4 (m4_mapall_sep, m4_list_cmp): Wrap
5472         around...
5473         (_m4_mapall_sep, _m4_list_cmp_raw): ...new helpers, to avoid
5474         duplicate side effects.
5475         (m4_version_compare): Adjust caller.
5476         * lib/m4sugar/foreach.m4 (m4_list_cmp): Rename...
5477         (_m4_list_cmp_raw): ...to match m4sugar.
5478         * doc/autoconf.texi (Looping constructs): Document the behavior of
5479         side effects.
5480         * tests/m4sugar.at (M4 loops, m4@&t@_map, m4@&t@_version_compare):
5481         Ensure only one side effect.
5482         (recursion): Fix test typo.
5483         Reported by Ralf Wildenhues.
5485 2008-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5487         * TODO: Add item for compiler default flags.
5488         Suggested by Bruno Haible.
5490         * tests/m4sh.at (AS_IF and AS_CASE): Set the expansion limit
5491         back to 1000.
5493 2008-08-21  Eric Blake  <ebb9@byu.net>
5495         Formatting improvements.
5496         * doc/autoconf.texi: Use @file and @command, rather than @code,
5497         where appropriate.
5499         Document another make bug.
5500         * doc/autoconf.texi (The Make Macro SHELL): Mention bug in BSD
5501         make, GNU make <= 3.80.
5503         Tweak wording about SHELL in Makefile.
5504         * doc/autoconf.texi (The Make Macro SHELL): Stronger wording on
5505         the importance of proper SHELL settings.
5506         Reported by Bruno Haible, in
5507         http://lists.gnu.org/archive/html/bug-libtool/2008-04/msg00029.html.
5509 2008-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5511         Avoid timestamp races for updated input.
5512         * tests/m4sh.at (AS_IF and AS_CASE): Use `autom4te --force' for
5513         second script.
5514         * tests/tools.at (autotools and whitespace in file names): Add
5515         --force for repeated invocations.
5517 2008-08-20  Bruno Haible  <bruno@clisp.org>
5519         Add section to INSTALL about particular systems.
5520         * doc/install.texi (Particular systems): New node.
5521         * doc/autoconf.texi: Adjust menus.
5523 2008-08-19  Bruno Haible  <bruno@clisp.org>
5524         and Peter O'Gorman  <peter@pogma.com>
5526         Mention universal binaries in INSTALL.
5527         * doc/install.texi (Compiling For Multiple Architectures): Explain
5528         how to create universal binaries on MacOS X.
5530 2008-08-19  Jim Meyering  <jim@meyering.net>
5531             Eric Blake  <ebb9@byu.net>
5532             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5534         Avoid shell parse errors after interrupt due to empty ``.
5535         * doc/autoconf.texi (Shell Substitutions): Document the issue.
5536         * lib/m4sugar/m4sh.m4 (AS_VAR_IF): New function.
5537         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Use it in place of
5538         "test AS_VAR_GET([...]) = yes"
5539         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL): Likewise.
5540         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Likewise.
5541         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD): Likewise.
5542         (_AC_CHECK_HEADER_DIRENT): Likewise.
5543         * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
5544         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
5545         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use
5546         temporary variable to work around the issue.
5547         * tests/foreign.at (Libtool): Quote result of command
5548         substitution.
5550 2008-08-18  Eric Blake  <ebb9@byu.net>
5552         Test m4_transform without tickling shell bugs.
5553         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Relax test to
5554         something more manageable.
5555         * tests/m4sugar.at (recursion): Move stress test of
5556         m4_transform_pair here.
5557         Reported by Ralf Wildenhues.
5559         Let 'git diff' give better context for doc updates.
5560         * .gitattributes (*.texi*): Add new entry.
5561         * README-hacking: Mention how to use it.
5562         Inspired by a coreutils patch by Jim Meyering.
5564 2008-08-15  Eric Blake  <ebb9@byu.net>
5566         Fix m4_map regression from 2007-10-16.
5567         * lib/m4sugar/m4sugar.m4 (_m4_apply): New macro.
5568         (m4_map): Ignore empty sublists.  For a list consisting of only an
5569         empty sublist, this restores 2.61 behavior of being a no-op.
5570         (m4_map_sep): Likewise, and expand separator.
5571         (m4_mapall, m4_mapall_sep): New macros, to regain 2.62 behavior.
5572         (_m4_map): Rewrite, to be common base for all four variants.
5573         * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new prototype.
5574         * tests/m4sugar.at (m4@&t@_map): Add tests.
5575         * doc/autoconf.texi (Looping constructs) <m4_map>: Document new
5576         macros, and mention ramifications of expanded separator.
5577         * NEWS: Mention the change.
5579 2008-08-14  Eric Blake  <ebb9@byu.net>
5581         Implement m4_transform_pair, to speed up AS_IF.
5582         * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair): New
5583         macros, undocumented for now.
5584         * lib/m4sugar/foreach.m4 (m4_transform, m4_transform_pair): Also
5585         the m4 1.4.x counterparts.
5586         * lib/m4sugar/m4sh.m4 (AS_IF, AS_CASE): Use it.
5587         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Test it.
5589 2008-08-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5591         * lib/autoconf/programs.m4 (AC_PATH_TARGET_TOOL)
5592         (AC_CHECK_TARGET_TOOL, AC_CHECK_TARGET_TOOLS): Require, do not
5593         warn about previous AC_CANONICAL_TARGET.
5594         (AC_CHECK_TARGET_TOOL): Add missing `$' making the macro
5595         unusable in the non-cross-compiling case.
5596         * NEWS, THANKS: Update.
5597         Report by Dave Erickson.
5599 2008-08-12  Eric Blake  <ebb9@byu.net>
5601         Optimize m4_bmatch.
5602         * lib/m4sugar/foreach.m4 (m4_bmatch): Provide linear
5603         implementation for m4 1.4.x.
5604         * tests/m4sugar.at (m4@&t@_bmatch): New test.
5605         (recursion): Test the linear nature.
5606         * NEWS: Document the fix.
5608         Fix m4_cond corner case.
5609         * lib/m4sugar/foreach.m4 (_m4_cond): Ensure alternate
5610         implementation allows concatenation with subsequent text.
5611         * tests/m4sugar.at (m4@&t@_cond): Enhance test.
5613         Add test for m4_cond.
5614         * tests/m4sugar.at (m4@&t@_cond): New test.
5615         Reported by Ralf Wildenhues.
5617 2008-08-06  Eric Blake  <ebb9@byu.net>
5619         Fix autoheader 2.62 regression on AC_DEFINE([__EXTENSIONS__]).
5620         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Use a
5621         unique key for the AH_VERBATIM.
5622         * tests/c.at (AC_USE_SYSTEM_EXTENSIONS): New test.
5623         * NEWS: Mention the fix.
5624         Reported by Andreas Schwab, analyzed by Stepan Kasal.
5626         Add linear m4_cond for m4 1.4.x.
5627         * lib/m4sugar/m4sugar.m4 (m4_cond): Split into...
5628         (_m4_cond): ...this, for fewer macros per iteration.
5629         * lib/m4sugar/foreach.m4 (_m4_cond): New implementation.
5630         * tests/m4sugar.at (recursion): Test it.
5631         * NEWS: Document the linear guarantee.
5633         Speed up diversion handling.
5634         * lib/m4sugar/m4sugar.m4 (m4_divert, m4_divert_push)
5635         (m4_divert_pop, m4_divert_text): Avoid dnl for fewer macro
5636         expansions.
5638         AC_C_CHAR_UNSIGNED is not strictly necessary.
5639         * doc/autoconf.texi (C Compiler) <AC_C_CHAR_UNSIGNED>: Mention a
5640         portable alternative to this macro.
5641         * THANKS: Update.
5642         Reported by Hallvard B Furuseth.
5644         Update some files from upstream.
5645         * GNUmakefile: Update.
5646         * build-aux/announce-gen: Likewise.
5647         * build-aux/config.guess: Likewise.
5648         * build-aux/config.sub: Likewise.
5649         * build-aux/git-version-gen: Likewise.
5650         * build-aux/texinfo.tex: Likewise.
5651         * build-aux/vc-list-files: Likewise.
5652         * doc/make-stds.texi: Likewise.
5653         * doc/standards.texi: Likewise.
5655 2008-08-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5657         Fix AC_CONFIG_FILES([$var]) 2.62 regression.
5658         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Flatten
5659         whitespace in $ac_config_files and $ac_config_headers.
5660         * tests/torture.at (Parameterized AC_CONFIG_FILES): New test.
5661         Report by Andreas Schwab and Per Øyvind Karlsen.
5662         * THANKS: Update.
5664 2008-07-30  Eric Blake  <ebb9@byu.net>
5666         Fix bugs in previous version of m4_bpatsubsts.
5667         * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): Don't expand $1, and
5668         allow concatenation with subsequent text.
5669         * tests/m4sugar.at (m4@&t@_bpatsubsts): Enhance test.
5671 2008-07-29  Eric Blake  <ebb9@byu.net>
5673         Add linear m4_bpatsubsts for m4 1.4.x.
5674         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Match documentation
5675         about anchors, even for only one substitution.
5676         * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): New implementation.
5677         * doc/autoconf.texi (Conditional constructs) <m4_bpatsubsts>:
5678         Clarify behavior with regard to quoting.
5679         * tests/m4sugar.at (recursion): Test scaling of m4_bpatsubsts.
5680         (m4@&t@_bpatsubsts): New test.
5681         * NEWS: Document the linear guarantee.
5683         Tweak m4_do semantics.
5684         * lib/m4sugar/m4sugar.m4 (m4_do): Don't concat final argument with
5685         subsequent text.
5686         * lib/m4sugar/foreach.m4 (m4_do): Don't concat intermediate
5687         arguments, and avoid infinite loop.
5688         * doc/autoconf.texi (Evaluation Macros) <m4_do>: Document the
5689         behavior.
5690         * tests/m4sugar.at (m4@&t@_do): New test.
5692         Optimize m4_for.
5693         * lib/m4sugar/m4sugar.m4 (m4_for): Use fewer macros.
5694         (_m4_for): Take additional parameter, for fewer m4_indir calls.
5695         * lib/m4sugar/foreach.m4 (_m4_foreach, _m4_shiftn, m4_do)
5696         (m4_reverse, _m4_list_pad, _m4_list_cmp): Adjust all callers.
5697         * doc/autoconf.texi (Looping constructs) <m4_for>: Document subtle
5698         semantic change caused by the optimization.
5699         * tests/m4sugar.at (M4 loops): Test the new semantics.
5701         One more m4_list_cmp tweak.
5702         * lib/m4sugar/m4sugar.m4 (_m4_list_cmp_1): Don't defer shift.
5703         * lib/m4sugar/foreach.m4 (m4_list_cmp): Fix comment.
5704         * tests/m4sugar.at (recursion): Test both directions of list
5705         disparity.
5707         Add m4_reverse, and improve m4_list_cmp.
5708         * lib/m4sugar/m4sugar.m4 (m4_reverse): New macro.
5709         (m4_list_cmp): Rewrite to give linear behavior with M4 1.6 on an
5710         m4_reverse'd list.
5711         * lib/m4sugar/foreach.m4 (m4_reverse): Add the M4 1.4.x
5712         counterpart.
5713         * tests/m4sugar.at (recursion): Test it.
5714         * doc/autoconf.texi (Evaluation Macros) <m4_reverse>: Document
5715         it.
5716         (Text processing Macros) <m4_append>: Cross-reference to m4_set.
5717         * NEWS: Mention new macro.
5719 2008-07-28  Eric Blake  <ebb9@byu.net>
5721         Avoid _m4_shiftn for m4 1.6 speedup.
5722         * lib/m4sugar/m4sugar.m4 (m4_foreach, _m4_foreach, m4_map)
5723         (_m4_map, m4_map_sep): Rewrite recursion to use one less m4_if.
5724         * lib/m4sugar/foreach.m4 (_m4_map): Accomodate changed signature.
5726         Implement O(n) unique element set creation.
5727         * lib/m4sugar/m4sugar.m4 (m4_set_add, m4_set_add_all)
5728         (m4_set_contains, m4_set_contents, m4_set_delete)
5729         (m4_set_difference, m4_set_dump, m4_set_empty, m4_set_foreach)
5730         (m4_set_intersection, m4_set_list, m4_set_listc, m4_set_remove)
5731         (m4_set_size, m4_set_union): New macros.
5732         * lib/m4sugar/foreach.m4 (m4_set_add_all): Add O(n) fallback for
5733         m4 1.4.x.
5734         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, AC_SUBST): Use
5735         new m4_set API for the set most likely to be large.
5736         * doc/autoconf.texi (Set manipulation Macros): New node.
5737         * NEWS: Mention new macros.
5738         * tests/m4sugar.at (m4@&t@_set): New test.
5740 2008-07-25  Eric Blake  <ebb9@byu.net>
5742         Avoid infinite aclocal loop.
5743         * lib/m4sugar/m4sugar.m4 (m4_init): Bypass m4_include tracing, so
5744         that aclocal doesn't insist on finding m4sugar/foreach.m4.
5746         Provide O(n) replacement macros for M4 1.4.x.
5747         * lib/m4sugar/foreach.m4: New file.
5748         (m4_foreach, m4_case, _m4_shiftn, m4_do, m4_dquote_elt, _m4_map)
5749         (m4_join, m4_joinall, m4_list_cmp, _m4_minmax): Replace m4sugar
5750         macros based on $@ recursion [fast on M4 1.6, but quadratic on M4
5751         1.4.x] with versions based on m4_for/m4_foreach [slow on 1.6, but
5752         linear on 1.4.x].
5753         * lib/m4sugar/m4sugar.m4 (m4_init): Dynamically load new file if
5754         older M4 is assumed.
5755         (m4_map_sep): Optimize.
5756         (m4_max, m4_min): Refactor, by adding...
5757         (_m4_max, _m4_min, _m4_minmax): ...more efficient helpers.
5758         (m4_defn, m4_popdef, m4_undefine): Use foreach recursion.
5759         * lib/m4sugar/Makefile.am (dist_m4sugarlib_DATA): Distribute new
5760         file.
5761         * tests/m4sugar.at (M4 loops): Add a stress test that takes
5762         forever if m4_foreach and friends are quadratic.
5763         * NEWS: Mention this.
5765 2008-07-21  Eric Blake  <ebb9@byu.net>
5767         Ignore undefined macros, necessary with m4 1.6.
5768         * bin/autoupdate.in (_au___undefine): New macro,...
5769         (_au__undefine): ...wrapped by ifdef to silence m4 warnings.
5770         Reported by Ralf Wildenhues.
5772         Resync with gnulib.
5773         * GNUmakefile: Grab from upstream, to fix issue where 'make
5774         install' would allow installation of stale version string.
5776 2008-07-19  Eric Blake  <ebb9@byu.net>
5778         Support multiple arguments to m4_defn, m4_popdef, and m4_undefine.
5779         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Loop
5780         through all variables, per POSIX and newer m4.
5781         (_m4_text_wrap): Exploit the looping capabilities.
5782         * tests/m4sugar.at (m4@&t@_defn): Test this.
5783         * NEWS: Document it.
5784         * doc/autoconf.texi (Redefined M4 Macros) <m4_defn, m4_popdef>
5785         <m4_undefine>: Likewise.
5787         Reduce overhead of m4_builtin([defn]).
5788         * lib/m4sugar/m4sugar.m4 (_m4_defn, _m4_popdef, _m4_undefine): New
5789         internal macros, which are slightly more efficient than
5790         m4_builtin([defn]) and company.
5791         (m4_defn, m4_popdef, m4_undefine, m4_warn, m4_ifset)
5792         (_m4_dumpdefs_up, _m4_dumpdefs_down, _m4_wrap, m4_for)
5793         (_m4_divert_n_stack, m4_divert_pop, m4_expansion_stack_push)
5794         (m4_expansion_stack_dump, _m4_defun_pro, _m4_defun_epi)
5795         (_m4_defun_epi_outer, _m4_require_call, m4_combine, m4_append)
5796         (_m4_append_uniq, m4_append_uniq_w, _m4_text_wrap, m4_text_box)
5797         (m4_version_prereq): Use them.
5799         Use warnings from m4 when available.
5800         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Don't
5801         define slower wrapper if m4 will warn on our behalf; key off of
5802         __m4_version__, added alongside the new warnings in m4 1.6.
5803         * tests/m4sugar.at (m4@&t@_defn): New test.
5805 2008-07-18  Eric Blake  <ebb9@byu.net>
5807         Add m4_joinall.
5808         * lib/m4sugar/m4sugar.m4 (m4_joinall, _m4_joinall): New macros.
5809         * tests/m4sugar.at (m4@&t@_join): Test them.
5810         * doc/autoconf.texi (Text processing Macros) <m4_join>: Document
5811         m4_joinall.
5812         * NEWS: Likewise.
5814 2008-07-17  Stepan Kasal  <skasal@redhat.com>
5815         and Eric Blake  <ebb9@byu.net>
5817         Improve documentation of config.h.in template rules.
5818         * doc/autoconf.texi (Header Templates): Mention rules on comments
5819         and whitespace, and that the user cannot rely on #undef to survive
5820         through config.status.
5822 2008-07-16  Eric Blake  <ebb9@byu.net>
5824         Revert m4_prepend; it is less efficient, and unused by bison.
5825         * lib/m4sugar/m4sugar.m4 (m4_prepend, m4_prepend_uniq)
5826         (m4_prepend_uniq_w): Delete addition from 2008-07-11.
5827         (_m4_grow_uniq_1): Rename back...
5828         (_m4_append_uniq): ...to this.
5829         * NEWS: Revert NEWS blurb.
5830         * doc/autoconf.texi (Text processing Macros) <m4_prepend>: Delete.
5831         * tests/m4sugar.at (m4@&t@_prepend): Delete.
5833 2008-07-15  Eric Blake  <ebb9@byu.net>
5835         Avoid failure if version.m4 is omitted but m4_PACKAGE_* unused.
5836         * lib/m4sugar/m4sugar.m4 (m4_version_compare): Provide alternate
5837         definition for non-Autoconf clients of m4sugar.
5839 2008-07-14  Eric Blake  <ebb9@byu.net>
5841         Tighten bound of potential speed of m4_append.
5842         * doc/autoconf.texi (Text processing Macros) <m4_append>
5843         <m4_prepend>: If m4 is fixed, m4_append can be linear rather than
5844         O(n log n).
5845         * lib/m4sugar/m4sugar.m4 (m4_append, m4_append_uniq): Fix comments.
5846         Analysis by Bruno Haible.
5848 2008-07-11  Eric Blake  <ebb9@byu.net>
5850         Inherit improvements from bison's fork of m4sugar.
5851         * lib/m4sugar/m4sugar.m4 (m4_PACKAGE_VERSION): Ignore failure to
5852         find version.texi, since bison does not provide it.
5853         (m4_prepend): Add new macro, from bison.
5854         (m4_prepend_uniq, m4_prepend_uniq_w): Add new macros, for
5855         completeness.
5856         (_m4_append_uniq): Rename...
5857         (_m4_grow_uniq_1): ...to this to share implementation, and
5858         optimize initial assignment.
5859         (m4_append_uniq_w): Adjust caller.
5860         * NEWS: Document new macros.
5861         * doc/autoconf.texi (Text processing Macros) <m4_append>: Mention
5862         speed consideration.
5863         <m4_prepend>: Document the new prepend variants.
5864         * tests/m4sugar.at (m4@&t@_prepend): New test.
5866         Work around M4 1.6 warning on undefined macros.
5867         * lib/m4sugar/m4sugar.m4 (changeword, symbols): Don't rename if
5868         not already available as builtins.
5870 2008-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5872         * doc/autoconf.texi (@dvar): Remove trailing newline.
5873         (@ovar): Likewise.  Fix macro documentation.
5875 2008-07-02  Stepan Kasal  <skasal@redhat.com>
5877         Add quotes to the header of autoscan-generated source.
5878         * bin/autoscan.in: Add quotes to AC_PREREQ and AC_INIT.
5880 2008-06-28  Andreas Schwab  <schwab@suse.de>
5882         * doc/autoconf.texi (autoscan Invocation): Fix spacing.
5883         (autoconf Invocation): Likewise.
5884         (autoreconf Invocation): Likewise.
5885         (autoheader Invocation): Likewise.
5886         (autom4te Invocation): Likewise.
5888 2008-06-19  Eric Blake  <ebb9@byu.net>
5890         Add comment explaining recent patch.
5891         * lib/autotest/general.m4 (AT_INIT) <at_pass_list>: Explain choice
5892         of * vs. ? globbing.
5894 2008-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5896         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not warn when not
5897         linking a file to itself.
5898         Report by Bruno Haible.
5900 2008-06-19  Eric Blake  <ebb9@byu.net>
5902         Resync with gnulib.
5903         * GNUmakefile: Grab from upstream, to fix VPATH 'make dist' bug.
5904         Reported by Stepan Kasal.
5906 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5908         Reorganize autotest files, factorize for parallel execution.
5909         * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD): Move definition
5910         earlier in the file.
5911         (AT_INIT): Create line number cache in
5912         $at_suite_dir/at-source-lines.
5913         <at_helper_dir>: New directory at-groups below $at_suite_dir.
5914         Add comment explaining the new directory structure.
5915         (at_func_group_prepare, at_func_group_postprocess): New shell
5916         functions to factorize per-test group work.  Keep the actual
5917         test execution outside of a shell function in order to avoid
5918         zsh 4.x exit status bugs.
5919         <at_check_line_file, at_status_file, at_stdout, at_stder1>
5920         <at_stderr, at_test_source>: Turn these into per-group files
5921         below $at_helper_dir.  Also store test results there in files
5922         named pass, fail, xpass, xfail, skip.  Let the parent collect
5923         results from $at_helper_dir.  Adjust summary statistics
5924         computation and result output.
5926 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5928         Fix '#undef variable /* comment */' transform in config headers.
5929         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): For
5930         undefined preprocessor macros that are followed by a comment
5931         in the header template, do not create nested comments in the
5932         output.
5933         * tests/torture.at (@%:@define header templates): Extend test.
5934         * NEWS: Update.
5935         Report by Karsten Hopp <karsten@redhat.com>.
5937 2008-06-09  Eric Blake  <ebb9@byu.net>
5939         Mark AC_TYPE_SIGNAL as obsolete.
5940         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Switch to AU_DEFUN.
5941         * doc/autoconf.texi (Function Portability): Update documentation.
5942         (Particular Types): Move AC_TYPE_SIGNAL...
5943         (Obsolete Macros): ...here, and mention why.
5944         * NEWS: Mention the change.
5946         Allow lib64 as a default X library location.
5947         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Add lib64.
5948         * NEWS: Mention the change.
5949         * THANKS: Update.
5950         Reported by Brad Walker.
5952 2008-06-05  Eric Blake  <ebb9@byu.net>
5954         Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
5955         * lib/autotest/general.m4 (AT_KEYWORDS): Expand argument prior to
5956         converting it to lower case.
5957         * tests/autotest.at (Keywords and ranges): Test this.
5958         * NEWS: Document the fix.
5959         * THANKS: Update.
5960         Reported via Karsten Hopp, by Jochen Schmitt in
5961         https://bugzilla.redhat.com/show_bug.cgi?id=449973
5963 2008-06-03  Eric Blake  <ebb9@byu.net>
5965         Fix 'make dist' regression from 2008-05-08.
5966         * Makefile.am (INSTALL): Add rule, to accomodate 'make dist' after
5967         GNUmakefile's _autoconf rule removes INSTALL.
5969 2008-05-27  Eric Blake  <ebb9@byu.net>
5971         Document Solaris /bin/sh redirection pitfall.
5972         * doc/autoconf.texi (File Descriptors): Mention redirection bug.
5974 2008-05-14  Eric Blake  <ebb9@byu.net>
5976         Improve documentation of ! issues.
5977         * doc/autoconf.texi (Limitations of Builtins) <!>: Touch up.
5978         Reported by Noah Misch.
5980         Document some FreeBSD shell bugs.
5981         * doc/autoconf.texi (Limitations of Builtins) <!>: Mention ! issue
5982         in compound pipe commands.
5983         <export>: Mention difference of exporting an undefined variable.
5984         (Shell Functions): Mention loss of $? in entry to shell functions.
5985         Extracted from the git mailing list.
5987 2008-05-13  Stepan Kasal  <kasal@ucw.cz>
5989         Work around MSYS and Cygwin bugs when dealing with trailing space.
5990         * tests/atlocal.in (func_sanitize_dir_name): Let atlocal succeed,
5991         even when platform bugs are tickled.
5992         Reported by Keith Marshall and Eric Blake.
5994 2008-05-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5996         Let AC_MSG_FAILURE report pwd.
5997         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE):
5998         Output $ac_pwd along with fatal failure.
5999         * tests/torture.at (Deep Package): Extend test.
6000         Reported numerous times against GCC, and probably other packages.
6002 2008-05-12  Eric Blake  <ebb9@byu.net>
6004         Enforce --help and --version compliance.
6005         * configure.ac (AM_INIT_AUTOMAKE): Add std-options option.
6007 2008-05-08  Keith Marshall  <keithmarshall@users.sourceforge.net>  (tiny change)
6009         Avoid case-insensitive `make install' vs. `INSTALL' conflict.
6010         * Makefile.am ($(srcdir)/INSTALL): Replace all references...
6011         ($(abs_srcdir)/INSTALL): ...with this.
6013 2008-05-06  Eric Blake  <ebb9@byu.net>
6015         Fix typo.
6016         * doc/autoconf.texi (Shell Substitutions): Drop at_ prefix.
6018         Avoid overfull \hbox.
6019         * doc/autoconf.texi (Versioning): Reword to fit line size.
6021         Document $(( )) pitfalls.
6022         * doc/autoconf.texi (Shell Substitutions): Mention octal
6023         vs. decimal.  Mention autotest's at_func_arith.
6025         Improve behavior of './testsuite 01'.
6026         * lib/autotest/general.m4 (AT_INIT) <at_func_validate_ranges>:
6027         Alter usage to eval its arguments, in order to normalize away
6028         leading zero.  All callers updated.
6029         * tests/autotest.at (Keywords and ranges): Test range
6030         normalization with leading 0.
6032 2008-04-26  Eric Blake  <ebb9@byu.net>
6034         Mention Solaris /usr/ucb/tr pitfall.
6035         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Add section.
6036         Reported by Bruno Haible and Jim Meyering.
6038 2008-04-24  Eric Blake  <ebb9@byu.net>
6040         Mention m4sugar's internal quote strings.
6041         * doc/autoconf.texi (Quadrigraphs): Mention alternate quote used
6042         in m4sugar, and how to still output it literally.
6043         * tests/m4sugar.at (m4@&t@_split): And test it.
6044         Reported by Joel E. Denny.
6046 2008-04-23  Eric Blake  <ebb9@byu.net>
6048         Allow unbalanced () in m4_expand.
6049         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Use more complex
6050         quotes.
6051         (m4_noquote, _m4_split): Use consistent complex quote.
6052         * tests/autotest.at (Left paren, Right paren): Test this.
6053         (Parentheses): Ensure new quadrigraphs still work.
6054         (AT_CHECK_AT_TITLE_CHAR): All title char tests exercise m4_expand.
6055         * NEWS: Mention the fix.
6056         * doc/autoconf.texi (Quadrigraphs): Revert mention of macros that
6057         require quadrigraphs for ().
6058         (Evaluation Macros) <m4_expand>: Relax the restriction against
6059         unbalanced ().
6060         (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
6061         (Writing Testsuites) <AT_SETUP>: Likewise.
6062         Reported by Joel E. Denny, fix suggested by Noah Misch.
6064 2008-04-22  Eric Blake  <ebb9@byu.net>
6066         Support unbalanced () in AT_SETUP by adding two new quadrigraphs.
6067         * bin/autom4te.in (handle_output): Substitute @{:@ and @:}@.
6068         (handle_traces): Likewise.
6069         * lib/m4sugar/m4sugar.m4 (m4_qlen): Account for new quadrigraphs.
6070         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Add new tests.
6071         * doc/autoconf.texi (Quadrigraphs): Document them.
6072         (Evaluation Macros) <m4_expand>: Enhance documentation.
6073         (Text processing Macros) <m4_text_box>: Document cases where
6074         quadrigraphs can help for problemetic unbalanced parentheses.
6075         (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
6076         (Writing Testsuites) <AT_SETUP>: Likewise.
6077         (Limitations of Builtins) <case>: Consolidate text on unbalanced
6078         parentheses, and add an example of creative comments.
6079         * NEWS: Document the addition.
6080         Reported by Joel E. Denny.
6082 2008-04-16  Eric Blake  <ebb9@byu.net>
6084         Document pdksh exec behavior.
6085         * doc/autoconf.texi (Limitations of Builtins) <exec>: New
6086         subsection.
6087         Discovered by Jim Meyering.
6089 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6091         * tests/autotest.at (AT_CHECK_AT): Allow to pass additional
6092         arguments to the inner suite.
6093         (errexit, input from stdin): New tests.
6095 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6097         * NEWS: Post-release update.
6099 2008-04-10  Eric Blake  <ebb9@byu.net>
6101         AC_AUTOCONF_VERSION might contain arbitrary macro names.
6102         * doc/autoconf.texi (Versioning): Mention problem with expansion.
6103         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Adjust test.
6105 2008-04-09  Slava Sysoltsev <Viatcheslav.Sysoltsev@h-d-gmbh.de>  (tiny change)
6107         Flush buffered output before exit.
6108         * bin/autom4te.in (handle_output): Explicitly close file.
6109         * THANKS: Update.
6110         See http://lists.gnu.org/archive/html/autoconf/2008-04/msg00026.html.
6112 2008-04-08  Eric Blake  <ebb9@byu.net>
6114         Generate web docs for 2.62.
6115         * doc/autoconf.texi (Evaluation Macros): Fix typo.
6116         (Notices): Use recommended means to escape RCS keyword.
6117         * cfg.mk (gnulib_dir): New macro.
6118         (web-manual): New target.
6120 2008-04-05  Eric Blake  <ebb9@byu.net>
6122         Release Version 2.62.
6123         * NEWS: Mention the release.
6125 2008-04-04  Stepan Kasal  <kasal@ucw.cz>
6126         and Eric Blake  <ebb9@byu.net>
6128         Return back to GPLv2+, until the text of the exceptions is
6129         finalized, reverting the change from 2007-07-03 and the first
6130         part of the change from 2007-07-20.
6131         * COPYING: Revert to GPLv2.
6132         * COPYINGv3: New file, since some auxiliary build tools, used for
6133         building autoconf and not installed, are GPLv3.
6134         * Makefile.am (EXTRA_DIST): Distribute COPYINGv3.
6135         * NEWS: Remove mention of GPLv3.
6136         * README: Clarify situation regarding GPLv3.
6138 2008-04-05  Eric Blake  <ebb9@byu.net>
6140         Prepare for release.
6141         * maint.mk (announcement): Avoid deleted option.
6142         * cfg.mk (release_archive_dir): Use default.
6143         * build-aux/gnupload: New file, from automake/gnulib.
6144         * Makefile.am (EXTRA_DIST): Distribute it.
6145         * .x-sc_two_space_separator_in_usage: New file, to exempt gnupload
6146         from syntax check.
6148 2008-04-05  Jim Meyering  <meyering@redhat.com>
6149         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6151         Work around CR EOL markers on OS/2 (www.ecomstation.com Ecs v2 rc4)
6152         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When CR
6153         is the EOL marker, skip a step that would remove and translate
6154         carriage return bytes.
6155         * THANKS: Update.
6156         Reported by Elbert Pol.
6158 2008-04-05  Eric Blake  <ebb9@byu.net>
6160         Avoid some autoreconf -Wall warnings.
6161         * configure.ac: Use proper quoting, to be a good example.
6162         (PACKAGE_NAME): Remove setting covered by autoconf.
6163         (AM_INIT_AUTOMAKE): Bump automake requirement, for html rules.
6164         * doc/Makefile.am (TEXI2DVI): Remove settings covered by
6165         automake.
6166         (html, autoconf_1.html, standards_1.html): Likewise.
6167         (TEXI2HTML, TEXI2HTML_FLAGS): Remove unused macros.
6168         * Makefile.am (html): Likewise.
6169         * doc/autoconf.texi (Quoting and Parameters): Add missing section
6170         name.
6171         * tests/Makefile.am (AUTOMAKE_OPTIONS): Intentionally ignore
6172         warning about our override, until Automake is fixed.
6173         * README-hacking: Document minimum requirements for bootstrap.
6175 2008-04-03  Eric Blake  <ebb9@byu.net>
6177         Fix version number generation in man pages.
6178         * Makefile.am (EXTRA_DIST): Distribute .version.
6179         (.version): New rule.
6180         * man/Makefile.am (common_dep): Depend on .version, not
6181         configure.ac.
6182         (.x.1): Use package name for version string.
6183         * GNUmakefile [!_have-Makefile]: Sync from upstream, again.
6184         * build-aux/git-version-gen: Sync from upstream.
6186         More maintainer tweaks: pass 'make maintainer-distcheck'.
6187         * GNUmakefile (_is-dist-target): Sync from upstream.
6188         * build-aux/vc-list-files: Sync from upstream, yet again.
6189         * tests/atlocal.in (unsupported_fs_chars): Always remove tdir.
6190         * tests/Makefile.am (EXTRA_DIST): Don't distribute the built
6191         package.m4.
6192         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump year.
6194         Fix VPATH 'make syntax-check'.
6195         * maint.mk (VC_LIST, VC_LIST_EXCEPT, sc_changelog)
6196         (sc_prohibit_jm_in_m4, makefile-check): Support VPATH.
6197         (author_mark_check): Avoid error message.
6198         * build-aux/vc-list-files: Sync from upstream again.
6199         * build-aux/texinfo.tex: Likewise.
6201         Sync files from upstream, and pass 'make syntax-check'.
6202         * config/announce-gen: Move...
6203         * build-aux/announce-gen: ...here, and sync from gnulib.
6204         * Makefile.am (EXTRA_DIST): Adjust accordingly.
6205         * cfg.mk (announce_gen): Likewise.
6206         (prev_version_file): Delete, relying on default in maint.mk.
6207         (gpg_key_ID): New macro.
6208         (url_dir_list): Rewrite to match coreutils.
6209         * config/prev-version.txt: Move...
6210         * .prev-version: ...here, and adjust to 2.61.
6211         * build-aux/vc-list-files: Sync from coreutils.
6212         * maint.mk: Resynchronize with coreutils, where possible.
6213         (ME): Remove $(srcdir) from definition.
6214         (CVS): Delete.
6215         (GIT, VC, VC-tag): New macros.
6216         (CVS_LIST, CVS_LIST_EXCEPT): Rename...
6217         (VC_LIST, VC_LIST_EXCEPT): ...to this.
6218         (cvs-tag-check): Delete.
6219         (cvs-diff-check): Rename...
6220         (vc-diff-check): ...to this.
6221         (sc_file_system): Allow FHS acronym.
6222         * doc/autoconf.texi (Particular Functions): Recommend
6223         unconditional <config.h>.
6224         * build-aux/config.guess: Sync from upstream (manually).
6225         * build-aux/config.sub: Likewise.
6226         * build-aux/texinfo.tex: Likewise.
6227         * doc/make-stds.texi: Likewise.
6228         * doc/standards.texi: Likewise.
6229         * .gitattributes: Ignore whitespace problems in upstream files.
6231 2008-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6233         * doc/autoconf.texi (Limitations of Usual Tools): Mention awk %u
6234         bug on HP-UX/IA.
6235         Report by Peter O'Gorman.
6237 2008-04-02  Eric Blake  <ebb9@byu.net>
6239         Recommend the just-released M4 1.4.11.
6240         * NEWS: Update recommendation.
6241         * README: Likewise.
6242         * doc/autoconf.texi (Introduction): Likewise.
6243         * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
6245 2008-04-01  Eric Blake  <ebb9@byu.net>
6247         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Bump
6248         copyright year.
6250 2008-03-28  Peter O'Gorman  <peter@pogma.com>
6252         Find X11 on Mac OS X too.
6253         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT,_AC_PATH_X_XMKMF):
6254         Check for libX11 with extensions dylib la and dll too.
6255         * THANKS: Update.
6256         Reported by Martin Costabel.
6258 2008-03-28  Eric Blake  <ebb9@byu.net>
6260         Update TODO based on completed tasks.
6261         * TODO (AC_PROG_INSTALL takes multiple files): Done.
6262         (AC_GNU_SOURCE deprecation): Done, see AC_USE_SYSTEM_EXTENSIONS.
6263         (AC_COMPILE_IFELSE documentation): Done.
6264         (Tracing builtins): Done, now that we require M4 1.4.5.
6265         (AC_PROG_CC_POSIX suggestion, providing header files)
6266         (AC_TYPE_SIGNAL): Not needed; gnulib's approach is better.
6267         (cache consistency): Done with precious variables.
6269 2008-03-26  Eric Blake  <ebb9@byu.net>
6271         Document --trace=macro:format in --help output.
6272         * bin/autom4te.in (help): Mention optional trace format.
6273         * bin/autoconf.as (usage): Likewise.
6275         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Fix
6276         typos in last patch.
6277         Reported by Ralf Wildenhues.
6279 2008-03-26  Jim Meyering  <meyering@redhat.com>
6281         Fix texinfo syntax error.
6282         * doc/autoconf.texi (Limitations of Usual Tools): s/@kbd {/@kbd{/
6284 2008-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6286         Warn, not fail on whitespace-only precious variable differences.
6287         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Output
6288         precious variable differences less ambiguous with `ugly-quotes'.
6289         If their settings differ only in whitespace, do not fail, but
6290         reuse the old value.
6291         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Extend macro to allow
6292         an optional status and expected-warning argument.  Fix m4
6293         quotation for initial value.
6294         (AC_ARG_VAR): Also test for whitespace-only differences, and
6295         that the old value is retained in this case.
6296         * doc/autoconf.texi (Setting Output Variables): Document this.
6297         * NEWS: Update.
6298         Report and initial patch by Paolo Bonzini.
6300 2008-03-26  Eric Blake  <ebb9@byu.net>
6302         Document busybox sed bug.
6303         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Mention
6304         restrictions when using back-references.
6305         Reported by Vincent Lefevre:
6306         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13013>.
6308         Document Automake interaction with AC_CONFIG_MACRO_DIR.
6309         * doc/autoconf.texi (Input): Mention ACLOCAL_AMFLAGS for automake
6310         users.
6311         * THANKS: Update.
6312         Reported by Chris Pickett.
6314 2008-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6316         * tests/autotest.at (Using atlocal): Quote instances of `pwd`.
6318         * tests/local.at (AT_CHECK_M4): Factorize warning output
6319         normalization.
6320         Suggested by Eric Blake.
6322 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6324         Fix .exe-related test failure on MinGW.
6325         * tests/local.at (AT_CHECK_M4): Normalize `/bin/m4.exe' correctly
6326         for comparing warning output.
6328         Fix Fortran testsuite failures with gfortran 4.3.
6329         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): When scanning
6330         verbose compiler output, skip lines that set variables; gfortran
6331         4.3 sets LIBRARY_PATH, COMPILER_PATH, COLLECT_GCC_OPTIONS.
6332         * THANKS: Update.
6333         Report by Vincent Lefèvre.
6335 2008-03-21  Eric Blake  <ebb9@byu.net>
6337         * GNUmakefile: Resynchronize with gnulib.
6339         Document more uses of $cross_compiling.
6340         * doc/autoconf.texi (Runtime): Document that a temporary override
6341         is permissible.
6342         * THANKS: Update.
6343         Reported by Ineiev, example by Ralf Wildenhues.
6345         Don't swallow $1 in textual local variables.
6346         * lib/m4sugar/m4sugar.m4 (m4_combine): Don't use overquoting and
6347         expansion of text arguments, as that swallows $1.
6348         (m4_text_wrap): Likewise, by splitting out...
6349         (_m4_text_wrap): ...new helper macro.  Also, allow arbitrary
6350         expression for width.
6351         * tests/m4sugar.at (m4@&t@_text_wrap): Test this.
6352         (m4@&t@_combine): Likewise.
6354 2008-03-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6356         Avoid leftover files on Leopard.
6357         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove a.out.dSYM
6358         directory created on darwin.
6359         (AC_NO_EXECUTABLES): Likewise; also remove objects which may be
6360         left over from a broken link.
6361         * tests/c.at (AC_NO_EXECUTABLES (working linker))
6362         (AC_NO_EXECUTABLES (broken linker)): New tests.
6363         Report by Gary V. Vaughan.
6365         * lib/autom4te.in (Automake-preselections): Trace
6366         _AM_COND_IF, _AM_COND_ELSE, _AM_COND_ENDIF.
6368 2008-03-20  Eric Blake  <ebb9@byu.net>
6370         Kill more CVS references.
6371         * README-cvs: Delete.  See README-hacking instead.
6372         * README-hacking: Update wording, based on older file.
6373         * BUGS: Remove CVS mention.
6375 2008-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6377         * tests/tools.at (autotools and whitespace in file names): Skip
6378         if aclocal is not present.
6380 2008-03-20  Eric Blake  <ebb9@byu.net>
6382         Sync GNUmakefile with gnulib.
6383         * GNUmakefile (Makefile.cfg): Rename...
6384         (cfg.mk): ...to this, and make optional.
6385         (GNUmakefile.cfg): Delete, redundant with cfg.mk.
6386         (Makefile.maint): Rename...
6387         (maint.mk): ...to this.
6388         (all) [!_have-Makefile]: Rename...
6389         (abort-due-to-no-makefile): ...to this, and invoke via
6390         .DEFAULT_GOAL to pick up all targets.
6391         * Makefile.cfg: Rename...
6392         * cfg.mk: ...to this.
6393         * Makefile.maint: Rename...
6394         * maint.mk ...to this.
6395         (ME): Reflect name change.
6396         (makefile-check, m4-check, author_mark_check, msg): Use $(ME)
6397         rather than hard-coded name.
6398         * GNUmakefile.cfg: Delete; move rules into cfg.mk.
6399         * Makefile.am (EXTRA_DIST): Reflect file name changes.
6400         * .x-sc_prohibit_atoi_atof: Likewise.
6401         * lib/freeze.mk: Likewise.
6403 2008-03-19  Stepan Kasal  <kasal@ucw.cz>
6405         * doc/autoconf.texi (Introduction): Improve the paraphrase of
6406         Henry Spencer's quotation.
6408 2008-03-19  Eric Blake  <ebb9@byu.net>
6410         AC_CONFIG_HEADERS replaced AC_CONFIG_HEADER.
6411         * bin/autoscan.in (output): Avoid obsolete spelling.
6412         * tests/local.at (AC_STATE_SAVE): Update usage.
6413         * THANKS: Update.
6414         Reported by John Calcote.
6416         Emphasize that ease of configure triumphs over ease of autoconf.
6417         * doc/autoconf.texi (Introduction): Expand on primary
6418         vs. secondary goal of autoconf.
6419         * THANKS: Update.
6420         Inspired by Paul Smith.
6422 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6424         * lib/Autom4te/FileUtils.pm (handle_exec_errors): New argument
6425         $hint, show if the executing program does not exist.
6426         (xsystem_hint): New function, like xsystem but allows to pass
6427         a hint.
6428         * bin/autoreconf.in: Use xsystem_hint for spawning autopoint and
6429         libtoolize.
6430         Report by Bruce Korb.
6432 2008-03-14  Stepan Kasal  <kasal@ucw.cz>
6434         * lib/Autom4te/ChannelDefs.pm, tests/fortran.at,
6435         tests/mktests.sh, tests/wrapper.as: Fix typos.
6437 2008-03-12  Eric Blake  <ebb9@byu.net>
6439         Fix yesterday's regression in m4_wrap([$1]).
6440         * lib/m4sugar/m4sugar.m4 (_m4_wrap): Don't directly invoke wrapped
6441         text, since it may contain text that looks like parameters.
6442         * tests/m4sh.at (AS@&t@_INIT cleanup): Enhance test.
6444 2008-03-11  Eric Blake  <ebb9@byu.net>
6446         Improve error messages for common testsuite bugs.
6447         * lib/autotest/general.m4 (_AT_DEFINE_INIT, _AT_DEFINE_SETUP): New
6448         macros for defining order-enforced macros.
6449         (AT_INIT, AT_SETUP, AT_CLEANUP, AT_BANNER, AT_XFAIL_IF)
6450         (AT_CAPTURE_FILE, AT_DATA, AT_CHECK, AT_CHECK_NOESCAPE): Add error
6451         messages when order violations are detected.
6452         * tests/autotest.at (AT_CHECK_AT_SYNTAX): New helper macro.
6453         (AT_SETUP without AT_INIT, AT_BANNER without AT_INIT)
6454         (AT_CLEANUP without AT_INIT, Missing AT_CLEANUP)
6455         (AT_CHECK without AT_SETUP, AT_DATA without AT_SETUP)
6456         (AT_XFAIL_IF without AT_DATA, AT_KEYWORDS without AT_SETUP,
6457         (AT_CLEANUP without AT_SETUP, AT_BANNER inside AT_SETUP)
6458         (AT_SETUP inside AT_SETUP, Multiple AT_INIT)
6459         (Banner-only test suite): New tests.
6460         Reported by Christopher Hulbert.
6462         Tweak m4_wrap to force FIFO or LIFO semantics.
6463         * lib/m4sugar/m4sugar.m4 (m4_wrap): Override M4 implementation.
6464         (m4_wrap_lifo, _m4_wrap): New macros.
6465         * lib/m4sugar/m4sh.m4 (AS_INIT): Combine all cleanup into known
6466         order, prior to m4sugar's.
6467         (_AS_DETECT_BETTER_SHELL): Use cleanup parameter, rather than
6468         m4_wrap.
6469         * lib/autotest/general.m4 (AT_INIT): Combine all cleanup into
6470         known order, prior to m4sh's.
6471         * doc/autoconf.texi (Diagnostic Macros) <m4_fatal>: Document
6472         argument.
6473         (Redefined M4 Macros) <m4_wrap>: Rewrite documentation to match
6474         new behavior.
6475         * tests/m4sh.at (AS_INIT cleanup): New test.
6476         * NEWS: Document the change.
6478 2008-03-10  Eric Blake  <ebb9@byu.net>
6480         Encode nested autotest data.
6481         * tests/autotest.at (AT_CHECK_AT_PREP): Avoid raw AT_ in output.
6482         (unusual file names): Likewise.
6483         (m4_pattern_allow): Remove loophole, to make it easier to catch
6484         poorly written tests.
6486         Factor some autotest tests.
6487         * tests/autotest.at (AT_CHECK_AT_PREP): New macro, to factor out
6488         common initialization.
6489         (AT_CHECK_AT, Banners, Keywords and ranges, srcdir propagation)
6490         (whitespace in absolute testdir, unusual file names): Use it.
6492 2008-03-06  Eric Blake  <ebb9@byu.net>
6494         Minor documentation fix.
6495         * doc/autoconf.texi (Evaluation Macros): Fix typo.
6497 2008-03-04  Eric Blake  <ebb9@byu.net>
6499         Make AT_CHECK act like a simple command.
6500         * lib/autotest/general.m4 (_AT_CHECK): Wrap commands in {;}.
6501         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Test it.
6503 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6505         On MinGW, substitution of CR and 0xFF fails.
6506         * tests/torture.at (Substitute and define special characters):
6507         MinGW awk cannot handle 0xFF, and on MinGW, the test does the
6508         wrong thing for CR.
6510 2008-03-04  Eric Blake  <ebb9@byu.net>
6512         Pull in recent maintainer improvements from coreutils.
6513         * GNUmakefile (_is-dist-target): 'make distclean' should not
6514         trigger autoreconf.
6515         (_dummy): Change directories before removing autom4te.cache.
6516         (check dist distcheck install) [!_have-Makefile]: Provide nicer
6517         diagnostics.
6518         * configure.ac (AC_CONFIG_LINKS): Copy GNUmakefile into VPATH
6519         builds, after initial bootstrap.
6520         * Makefile.am (distclean-local): Work around current automake bug.
6521         * Makefile.maint (ME): Allow VPATH usage.
6523         Use git-merge-changelog when available.
6524         * .gitattributes: New file.
6525         * README-hacking: Document use of git-merge-changelog.
6527         Work around cygwin bug.
6528         * tests/atlocal.in (unsupported_fs_chars): Avoid cygwin bug where
6529         "touch 't\'" creates regular file 't'.
6531         Ignore tests that require read-only directories under root.
6532         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Skip
6533         no-write portion if user has root-like privileges.
6535 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6537         * lib/autotest/general.m4 (AT_INIT): Fix detection of '-C -'.
6539 2008-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6541         autoreconf -m now honors $MAKE.
6542         * bin/autoreconf.in ($run_make): Renamed from ...
6543         ($make): ... this.  Use now as command to run `make',
6544         overridden by $MAKE.  Document this in --help output.
6545         * doc/autoconf.texi (autoreconf Invocation): Document
6546         all environment variables honored by autoreconf.
6547         * NEWS: Update.
6548         Report by Paul Eggert.
6550 2008-03-03  Eric Blake  <ebb9@byu.net>
6552         Documentation improvements.
6553         * doc/autoconf.texi (Looping constructs): s/recurses/repeats/.
6554         (Evaluation Macros): Drop `1' suffix from metasyntax variable name
6555         that preceeds @dots.  Improve wording.
6556         (Text processing Macros): Drop `1' suffix from metasyntax variable
6557         name that preceeds @dots.
6558         (Number processing Macros): Drop `1' suffix from metasyntax
6559         variable name that preceeds @dots.  Improve wording.
6560         * lib/m4sugar/m4sugar.m4 (m4_cmp): Comment wording fix.
6561         Suggested by Ralf Wildenhues.
6563 2008-03-02  Jim Meyering  <meyering@redhat.com>
6565         Don't infloop upon "make dist".
6566         * GNUmakefile: Merge from coreutils.
6567         * Makefile.am (dist-hook): Inject .tarball-version into tarball,
6568         not .version.
6569         * configure.ac (AC_INIT): Use .tarball-version, not .version.
6570         * build-aux/git-version-gen: Update from gnulib.
6572 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6574         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
6575         Before using /dev/full, check that it is a writable character
6576         special device.
6577         Report by Benoit Sigoure and Eric Blake.
6579         Actually test that @configure_input@ is expanded correctly.
6580         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
6581         Actually check generated file contents for the name of the
6582         generated file, using AC_PROG_FGREP and $FGREP.
6584 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
6586         Be nice with file systems that don't handle unusual characters.
6587         * tests/atlocal.in (func_sanitize_file_name)
6588         (func_sanitize_dir_name): New shell functions.
6589         * tests/tools.at (autom4te and whitespace in file names)
6590         (autotools and whitespace in file names): Use them.
6591         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
6592         Cover more potentially problemtic file names.  Use the new
6593         functions.
6595         Properly handle funny file names for headers in config.status.
6596         The test suite did not cover this bug because the code was not
6597         quoting properly the arguments of `rm -f' (which "fails" silently)
6598         as well as the arguments of `diff' (whose output was redirected to
6599         /dev/null so we couldn't see its error message).
6600         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Properly quote the
6601         file names passed to `rm' and `diff'.
6602         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
6603         Add a regression test.
6605 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
6606         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6608         Properly expand @configure_input@ in config.status.
6609         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_MAIN_LOOP):
6610         Escape the backslashes and ampersands in $configure_input before
6611         using it in the sed replacement string to expand @configure_input@.
6612         Report by Eric Blake and Patrick Welche.
6614 2008-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6616         Ignore errors from ./run on w32.
6617         * tests/autotest.at (whitespace in absolute testdir):
6618         Ignore stderr for `./run' which fails to remove the
6619         busy test directory on w32.
6621 2008-02-22  Eric Blake  <ebb9@byu.net>
6623         Improve documentation for writing autotest suites.
6624         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention that
6625         checks must live inside a test group.
6626         Reported by Christopher Hulbert.
6628 2008-02-21  Eric Blake  <ebb9@byu.net>
6630         Sync git-version-gen from upstream.
6631         * build-aux/git-version-gen: Pull from gnulib.
6632         * configure.ac (AC_INIT): Adjust to new calling convention.
6634 2008-02-12  Eric Blake  <ebb9@byu.net>
6636         Avoid trailing space in config.h with AC_DEFINE([var], []).
6637         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Explicitly mark empty
6638         defines with a comment.
6640 2008-02-08  Eric Blake  <ebb9@byu.net>
6642         Fix texinfo typos in previous patch.
6643         * doc/autoconf.texi (Site Defaults): s/[{}]/@&/g.
6644         Reported by Ralf Wildenhues.
6646         Describe a config.site that can be used for FHS compliance.
6647         * doc/autoconf.texi (Site Defaults): Fix typo.  Add new example
6648         for FHS.
6649         * THANKS: Update.
6650         Reported by Jules Colding and Ralf Wildenhues.
6652 2008-02-02  Eric Blake  <ebb9@byu.net>
6654         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Fix typo.
6656 2008-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6658         * lib/autotest/general.m4 (AT_INIT): Fix --clean to work
6659         again, broken since introduction of `-C dir'.
6660         * tests/autotest.at (Choosing where testsuite is run): Test it.
6662 2008-01-30  Paul Eggert  <eggert@cs.ucla.edu>
6664         * doc/autoconf.texi: Update Back-Cover text to reflect new GNU wording.
6666 2008-01-29  Eric Blake  <ebb9@byu.net>
6668         Fix more autotest regressions.
6669         * lib/autotest/general.m4 (AT_LINE): Fix regression from
6670         2007-10-04 when file name is `dnl'.
6671         (AT_INIT) <PREPARE_TESTS>: Move command-line assignments...
6672         <TESTS_BEGIN>: ...to this new diversion, to fix regression from
6673         yesterday in libtool's testsuite.
6674         (_AT_ARG_OPTION): Detect write failure.
6675         * doc/autoconf.texi (Diversion support): Document PREPARE_TESTS to
6676         make libtool's use kosher.  Document m4_init.
6677         (Programming in M4sh): Document AS_INIT.
6678         (Writing Testsuites): Document limitation of AT_DATA file name.
6679         * tests/autotest.at (unusual file names): New test.
6680         (Banners, Keywords and ranges): Use correct shell.
6682         More corner cases in testsuite VAR=VALUE handling.
6683         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS): Fix quoting
6684         bug.
6685         <PARSE_ARGS_END>: Also detect leading digits in assignments.
6686         * tests/autotest.at (Using atlocal): Enhance test to catch last
6687         bug.
6689         * doc/autoconf.texi (Limitations of Builtins) <.>: Mention bash
6690         bug.
6692 2008-01-28  Eric Blake  <ebb9@byu.net>
6694         Fix regression in handling VAR=VALUE arguments to testsuite.
6695         * lib/autotest/general.m4 (AT_INIT) <PARSE_ARGS_END>: Detect
6696         leading = as invalid.  Defer use of command-line variable
6697         assignments...
6698         <PREPARE_TESTS>: ...here, after atconfig has been sourced.  Fix
6699         regression in sourcing files.
6700         * tests/autotest.at (Using atlocal): New test to catch this.
6701         (Debugging a successful test, Choosing where testsuite is run):
6702         Use correct shell.
6703         Reported by Ralf Wildenhues.
6705         Document grep peculiarity.
6706         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
6707         BSD behavior on binary input.
6709         Minor testsuite improvements.
6710         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Use fewer
6711         forks when sanitizing PATH.  Always output machine information,
6712         not just when atconfig was located.
6714         Add 'testsuite -C dir'.
6715         * lib/autotest/general.m4 (_AT_ARG_OPTION): Move missing argument
6716         detection...
6717         (AT_INIT) <PARSE_ARGS_END>: ...here, since -k always takes
6718         argument.
6719         <DEFAULTS>: Delay computation of variables based on $at_dir...
6720         <PREPARE_TESTS>: ...to here, since -C can change $at_dir.
6721         <TESTS>: Re-invoke via absolute name, since -C may be in effect.
6722         <PARSE_ARGS>: Parse new option.
6723         <HELP_TUNING>: Document it.
6724         * tests/autotest.at (Choosing where testsuite is run): New test
6725         for this feature.
6726         (Keywords and ranges): Add test for missing -k argument.
6727         * NEWS: Document this.
6728         * doc/autoconf.texi (testsuite Invocation): Likewise.
6730 2008-01-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6732         * build-aux/config.guess, build-aux/config.sub,
6733         build-aux/texinfo.tex: Sync from gnulib.
6734         * doc/fdl.texi, doc/make-stds.texi, doc/standards.texi:
6735         Likewise.
6737 2008-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6739         * doc/autoconf.texi (Particular Programs): Do not mention the
6740         Autoconf version in which the AC_PROG_INSTALL change was done.
6741         Suggested by Paul Eggert.
6743 2008-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6745         Fix --help=recursive with multiple AC_CONFIG_SUBDIRS.
6746         * lib/autoconf/general.m4 (_AC_INIT_HELP): If, for recursive help
6747         mode, we change to the source directory, also set $ac_pwd so we
6748         do not go back to the build tree for the next config subdir.
6749         * tests/torture.at (Deep Package): Extend test to contain two
6750         config subdirs on the top level.
6752         Fix parallel `maintainer-check'.
6753         * Makefile.am (maintainer-check-tests): Depend on `all'.
6754         Use `$(MAKE) $(AM_MAKEFLAGS)' instead of plain `make'.
6755         * tests/Makefile.am (maintainer-check-c++, maintainer-check-posix):
6756         Likewise.
6757         (maintainer-check): Serialize the testsuite runs.
6759         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE2): Accept `+'
6760         in feature string for --enable/--with.  Convert to underscore
6761         for variable name.
6763         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Require that
6764         `install -c file1 file2 dir' works.
6765         * doc/autoconf.texi (Particular Programs): Document this.
6766         * NEWS: Update.
6768 2008-01-21  Eric Blake  <ebb9@byu.net>
6770         Improve documentation about default include directives.
6771         * doc/autoconf.texi (Generic Headers, Generic Declarations)
6772         (Generic Structures, Generic Types)
6773         (Generic Compiler Characteristics): Add links to
6774         AC_INCLUDES_DEFAULT.
6775         Reported by Reuben Thomas.
6777 2008-01-15  Eric Blake  <ebb9@byu.net>
6779         * lib/m4sugar/m4sugar.m4 (m4_qlen): Use fewer macros.
6781 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6783         * tests/Makefile.am (noinst_SCRIPTS): Renamed from
6784         check_SCRIPTS.  Building the wrappers for `all' allows help2man
6785         to use them for the manpages.
6786         Report by Benoit Sigoure.
6788         * bin/autoreconf.in: Discard stderr for $autoconf/$aclocal --help.
6790 2007-12-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6792         Fix some write failure cases in Autotest.
6793         * lib/autotest/general.m4 (AT_INIT): Do not exit successfully
6794         upon write failures for --help, --version, --list.
6795         Guard against write failures for intermediate created scripts.
6796         <at_func_create_debugging_script>: Do not make the debugging
6797         script executable if it is not complete.
6799 2007-12-12  Eric Blake  <ebb9@byu.net>
6801         Fix thinko in earlier patch - m4_join isn't defined yet.
6802         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
6803         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
6804         (m4_require): Use m4_do, not m4_join.
6806         Fix some whitespace tests on cygwin.
6807         * tests/tools.at (autom4te and whitespace in file names): Restore
6808         font-lock.  Create $TMPDIR before it might be used.
6810         Fix spurious testsuite failure with M4 1.4.11.
6811         * tests/local.at (AT_CHECK_M4): Cater to new m4 error message.
6813         Optimize AC_REQUIRE.
6814         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
6815         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
6816         (m4_require): Avoid extra macro calls.
6818 2007-12-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6820         * tests/torture.at (srcdir): Fix quoting.
6822         Do not pass top_srcdir to configure scripts in testsuite.
6823         * tests/autotest.at (srcdir propagation): Copy install-sh to
6824         source tree.
6825         (my only test): Drop setting of `top_srcdir'.
6826         * tests/base.at (Input/Output): Likewise.
6827         * tests/local.at (AT_CONFIGURE_AC): Copy install-sh,
6828         config.guess, and config.sub to test source tree.
6829         Drop AC_CONFIG_AUX_DIR setting.
6830         (AT_CHECK_CONFIGURE): Drop setting of `top_srcdir'.
6831         * tests/torture.at (Substitute a 2000-byte string): Drop
6832         AC_CONFIG_AUX_DIR setting, copy install-sh to test source tree.
6833         (Substitute a newline, datarootdir workaround): Likewise.
6834         (Define a newline): Adjust for linenumber changes in configure.ac.
6835         * tests/foreign.at (Libtool): Adjust comment to reflect changes.
6837         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): Skip test
6838         if `pwd` contains whitespace.
6840         Quote $abs_top_srcdir in tests.
6841         * tests/local.at (AT_CHECK_PERL_SYNTAX): Likewise.
6842         * tests/tools.at (Syntax of the shell scripts): Likewise.
6844         * tests/m4sh.at (LINENO): Quote $0.
6846         Fix testsuite program wrapper for whitespace in `pwd`.
6847         The problem here is that the usual mantra is that command
6848         variables can contain arguments, thus we cannot just escape
6849         $AUTOCONF, $AUTOM4TE etc.  The compromise is to put the
6850         $top_builddir/tests directory early in $PATH, so that the
6851         wrappers are found by their plain name.
6852         * tests/wrapper.as: Put $testdir early in $PATH.
6853         (AUTOCONF, AUTOHEADER, AUTOM4TE): Set to plain command names.
6855         Proper config.status --file/--header and $srcdir escaping.
6856         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Quote special
6857         characters in $ac_file_inputs.
6858         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER): eval $ac_file_inputs
6859         accordingly.
6860         * tests/torture.at (datarootdir workaround): Adjust.
6861         (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): Extend test.
6863         Fix Autotest for whitespace in `pwd`.
6864         * lib/autotest/general.m4 (AT_INIT)
6865         <at_func_create_debugging_script, Driver Loop>:
6866         Quote $at_group_dir.
6867         * tests/autotest.at (whitespace in absolute testdir): New test.
6869         * lib/autom4te.in: Quote @datadir@.
6871         Proper file name escaping in Autoconf programs and Perl modules.
6872         This includes escaping of characters special to the shell
6873         as well as special to Perl, e.g., leading `<' or `>'.
6874         For example, when $file starts with `>', `open ">$file"'
6875         wrongly tries to append to a different file.
6876         * bin/autoconf.as: Fix quoting for autom4te options.
6877         * lib/Autom4te/General.pm (shell_quote): New function, taken
6878         from coreutils, written by Jim Meyering.
6879         (mktmpdir): Use it.
6880         * bin/autom4te.in (files_to_options, handle_m4): Use shell_quote
6881         and open_quote.
6882         * bin/autoreconf.in (parse_args): Likewise.
6883         * bin/autoscan.in (main): Likewise.
6884         * bin/autoupdate.in (main): Likewise.
6885         * bin/autoheader.in: Likewise, fixing old insufficient escaping.
6886         * bin/ifnames.in: Likewise, XFile usage fixes.
6887         * tests/tools.at (autom4te and whitespace in file names): Extend
6888         test.  Test twice, with special characters allowed on w32, and the
6889         rest.  Test leading and trailing whitespace, for `open_quote'.
6890         (autotools and whitespace in file names): New, analogous test.
6891         Reported by Paul Eggert and Benoit Sigoure, additional suggestions
6892         by Russ Allbery and Eric Blake.
6894         Sync from Automake.
6895         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
6896         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Likewise.
6897         * lib/Autom4te/FileUtils.pm (open_quote): New function.
6898         (update_file, contents): Use it.
6900         * Makefile.am (autom4te-update): Rewrite for git.
6902 2007-12-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6904         * doc/autoconf.texi (autom4te Invocation, Autom4te Cache): Fix typos.
6906         Fix copyright years.
6907         * Makefile.am, doc/install.texi, lib/autoconf/fortran.m4,
6908         lib/autoconf/lang.m4, lib/freeze.mk: Likewise.
6910 2007-12-04  Eric Blake  <ebb9@byu.net>
6912         Manually resync with gnulib, since 'make cvs-update' no longer works.
6913         * build-aux/config.guess: New upstream version.
6914         * build-aux/config.sub: Likewise.
6916         When using older automake, don't downgrade build-aux/texinfo.tex.
6917         * configure.ac (AM_INIT_AUTOMAKE): Add no-texinfo.tex option.
6918         * doc/Makefile.am (TEXINFO_TEX): Add.
6920 2007-11-27  Paul Eggert  <eggert@cs.ucla.edu>
6922         Fix AC_C_BIGENDIAN bug caused by new awk method of substitution.
6923         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Don't comment out the
6924         #undef as this runs afoul of our new way of creating config.h.
6925         Problem reported by Jim Meyering in
6926         <http://lists.gnu.org/archive/html/autoconf-patches/2007-11/msg00164.html>.
6928 2007-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6930         Fix autom4te for unusual characters in input file names.
6931         * bin/autom4te.in (files_to_options): Quote active characters
6932         for the shell.
6933         * tests/tools.at (autom4te and white space in file names):
6934         New test.
6936         * doc/autoconf.texi (Limitations of Usual Tools) <awk>:
6937         Document that Tru64 awk always splits $0.
6939 2007-11-24  Stepan Kasal  <kasal@ucw.cz>
6941         * lib/autotest/general.m4 (AT_INIT): Do not extract the
6942         `#AT_STOP_...' line at the end of each test.
6944 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6946         * lib/autotest/general.m4 (AT_INIT): For awk line number
6947         extraction script, ensure `$at_group' has a defined value
6948         even for the empty set, and properly quote its usage inside
6949         the awk script.
6951 2007-11-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6953         * doc/autoconf.texi (Shell Functions): New chapter.  Document
6954         IRIX sh $0 issue in functions, move content from ...
6955         (Portable Shell): ... here.
6956         (Shell Script Compiler): Note that shell functions are not
6957         totally unportable any more.
6959 2007-11-22  Stepan Kasal  <kasal@ucw.cz>
6960         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6962         * lib/autotest/general.m4 (AT_INIT): Exit awk script after
6963         extracting the line numbers of the last needed test.
6965 2007-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6967         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
6968         Fix quoting.
6970 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6972         Fix IRIX testsuite debugging failures: $0 in functions.
6973         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
6974         Do not use $0 inside a function, as IRIX sh will set that to the
6975         function name rather than the script invocation name.
6977 2007-11-19  Paolo Bonzini  <bonzini@gnu.org>
6978         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6980         * lib/autotest/general.m4 (at_func_test): Use cached line numbers
6981         to extract test scripts.
6982         (AT_INIT): Extract and cache test script line numbers.
6984 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6986         * lib/autotest/general.m4: Revert 2007-11-15 patch and
6987         subsequent fixups; the awk -> here-document conversion trashes
6988         performance too much with AIX sh.
6990 2007-11-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6992         * tests/local.at: Do not test m4, perl with AT_TESTED.
6994         Diagnose and guard against write errors dealing with config.status.
6995         The general idea is this: all write failures from `configure'
6996         writing `config.status' are indicated by $ac_write_error, which
6997         is only checked at the end.  This is safe because config.status
6998         code is not executed before the file is complete.  Other write
6999         failures, be they inside config.status, or in sub shell/awk
7000         scripts spawned from configure or config.status, typically need
7001         earlier checking, as their results are used right afterwards.
7002         * lib/autoconf/status.m4 (AC_OUTPUT): Initialize `ac_write_fail'
7003         before writing config.status, check afterwards.
7004         (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
7005         (_AC_OUTPUT_HEADERS_PREPARE,_AC_OUTPUT_CONFIG_STATUS):
7006         Set `ac_write_error' for write failures to config.status.  Barf
7007         upon write failures to temporary files.
7008         Adjust note about closing and reopening the here-document.
7009         (_AC_OUTPUT_HEADER, _AC_OUTPUT_LINK, _AC_OUTPUT_COMMAND)
7010         (_AC_OUTPUT_MAIN_LOOP): Likewise, adjust note about closing and
7011         reopening the here-document.
7012         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
7013         Ensure `ac_write_error' does not escape into config.status.
7014         Also, add a couple of code paths not yet exercised in the test
7015         suite: a config file with input from stdin, and a config header
7016         output to stdout.
7017         Suggestion for catching write errors by Bruno Haible.
7019 2007-11-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7021         Avoid error with Tru64 awk and testsuite lines with many words.
7022         * lib/autotest/general.m4 (AT_INIT): In the awk script that
7023         reads the testsuite, set the field separator to an unusual value,
7024         in order to not run over the limit of 199 fields.  Tru64 4.0D awk
7025         even splits the input if $i, i>0, was never accessed in the script.
7027         Revert 2007-10-17 change.
7028         * TODO: Multiline args in config files and headers mean something
7029         different and are not fixed, see
7030         <http://lists.gnu.org/archive/html/autoconf-patches/2007-05/msg00017.html>
7031         Report by Stepan Kasal.
7033         * doc/autoconf.texi (Generic Programs): Fix typo.
7035 2007-11-16  Stepan Kasal  <kasal@ucw.cz>
7037         AC_*_TOOL does not canonicalize the prefix
7038         * doc/autoconf.texi (Generic Programs): Do not say that
7039         the *_TOOL macros canonicalize, they simply use the `host_alias'.
7041 2007-11-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7043         Diagnose write errors in config.status instantiations.
7044         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE)
7045         (_AC_OUTPUT_HEADER, _AC_OUTPUT_MAIN_LOOP): Bail out
7046         on write errors.
7047         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
7048         Extend test to also check for some write error failures, using...
7049         <AT_CHECK_CONFIG_CREATION_NOWRITE>: ...this new macro.
7050         Report by Bruno Haible.
7052         Indentation fixups.
7053         * lib/autotest/general.m4 (AT_INIT) <at_func_log_failure>: Fix
7054         indentation.
7055         (_AT_CHECK): Use less indentation, to save space.
7057 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7059         Add witness macro for @top_build_prefix@ substitution.
7060         * lib/autoconf/status.m4 (_AC_HAVE_TOP_BUILD_PREFIX): New macro.
7061         (_AC_OUTPUT_FILE): Mention it here.
7063 2007-11-15  Paolo Bonzini  <bonzini@gnu.org>
7064         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7066         * lib/autotest/general.m4 (at_func_test): Remove.
7067         (AT_INIT): Pre-extract test groups into separate files.
7068         (AT_CLEANUP): Source pre-extracted file instead of calling at_func_test.
7069         Remove at-test-source files together with the $at_group_dir.
7070         * tests/autotest.at (Long test source lines): New test.
7072 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7074         Shell functions and variables may share a namespace.
7075         * doc/autoconf.texi (Portable Shell): Mention Solaris sh
7076         limitation.
7078 2007-11-14  Paul Eggert  <eggert@cs.ucla.edu>
7080         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Make comment match
7081         gnulib.
7083 2007-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7085         * lib/autoconf/status.m4: Fix a couple of comment typos.
7087         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Use $as_me, not $me.
7089 2007-11-13  Jim Meyering  <meyering@redhat.com>
7091         Clean up the rule to create "expr".
7092         * tests/Makefile.am (expr): Don't redirect directly to target.
7093         Redirect just once, not for each echo statement.
7094         Use $@, not literal "expr".
7096 2007-11-13  Paul Eggert  <eggert@cs.ucla.edu>
7098         Don't worry about preprocessor when testing long long.
7099         See: http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00075.html
7100         * doc/autoconf.texi (Preprocessor Arithmetic): New section.
7101         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT):
7102         These no longer check for preprocessor flaws.
7103         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET):
7104         Do not check for preprocessor flaws.
7106 2007-11-13  Jim Meyering  <meyering@redhat.com>
7108         Adapt dependencies, now that a version change doesn't modify configure.ac
7109         * GNUmakefile: Remove "make clean" kludge.
7110         * lib/m4sugar/Makefile.am (version.m4): Depend on Makefile, not
7111         configure.ac.
7112         Don't redirect directly to target.
7113         Use $@, not literal "version.m4".
7115 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7117         * doc/autoconf.texi (Making testsuite Scripts): Document
7118         ":;{" shorthand as in previous patch.
7120 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
7122         * doc/autoconf.texi (Limitations of Builtins): Document problem
7123         with { ... } a bit more clearly.  Suggest ":;{" as a shorthand
7124         for the workaround.
7125         * lib/m4sugar/Makefile.am (version.m4): Detect 'echo' failure.
7126         Use ":;{" shorthand.
7127         * tests/Makefile.am ($(srcdir)/package.m4): Likewise.
7129 2007-11-12  Jim Meyering  <meyering@redhat.com>
7131         Add more non-srcdir build support.
7132         * GNUmakefile (dummy): Split a long line.
7133         Add -v option to autoreconf invocation.
7135         Remove the autoreconf-provided INSTALL, so that we regenerate it.
7136         * GNUmakefile (dummy): Remove INSTALL.
7138         Remove racy commands to build scripts in bin/ and tests/.
7139         * man/Makefile.am (.x.1): Now that scripts in bin/ and tests/
7140         are guaranteed to be built, remove the rules that tried to build
7141         them.  Before, with a parallel build, these rules could lead to
7142         two processes writing tests/wrapper.in concurrently.
7144         Build in man/ only *after* building in bin/ and tests/.
7145         * Makefile.am (SUBDIRS): The man-page-creation process runs $(MAKE)
7146         in both bin/ and tests/.
7148         Accommodate non-srcdir build-from-checkout.
7149         * build-aux/git-version-gen: Require an additional parameter: $srcdir.
7150         Use git's --git-dir=$srcdir/.git option.
7151         Add quotes, in case tarball_version_file contains shell meta-characters.
7152         * GNUmakefile (_curr-ver): Pass $(srcdir) to git-version-gen.
7153         * configure.ac: Pass "." to git-version-gen.
7155         Avoid spurious test failures due to version skew.
7156         * GNUmakefile (dummy): Run $(MAKE) clean after autoreconf -i.
7158 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7160         Avoid warnings about conftest.dSYM directories on Mac OS X Leopard.
7161         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_RUN_IFELSE):
7162         Remove conftest.dSYM directory.
7163         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT)
7164         (_AC_LANG_PROGRAM_C_, _AC_FC_MAIN, __AC_FC_NAME_MANGLING):
7165         Remove `conftest.*' recursively.
7166         * lib/autoconf/lang.m4 (AC_LINK_IFELSE): Likewise.
7167         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
7168         Likewise.
7169         (_AC_COMPILER_OBJEXT_REJECT): Reject *.dSYM.
7170         * THANKS: Update.
7171         Report and analysis by Jeff Squyres and Peter O'Gorman.
7173 2007-11-12  Benoit Sigoure  <tsuna@lrde.epita.fr>
7175         Fix typos in variable names.
7176         * tests/semantics.at (test for AC_CHECK_LIB): s/at_m/ac_m/.
7178 2007-11-11  Benoit Sigoure  <tsuna@lrde.epita.fr>
7180         Document that $((expression)) is not portable.
7181         * doc/autoconf.texi (Shell Substitutions): Here.
7183 2007-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7185         Ignore configure --help* errors due to LINENO-impaired shells.
7186         * tests/torture.at (Configuring subdirectories, Deep Package):
7187         In the --help* tests in read-only trees, make `.' temporarily
7188         writable again for the `stderr' file, and ignore errors due to
7189         the attempt to write configure.lineno.
7190         Report by Patrick Welche.
7192 2007-11-10  Jim Meyering  <meyering@redhat.com>
7194         Generate package.m4 in build-dir, not srcdir.
7195         * tests/Makefile.am (package.m4): Adjust target.
7196         Don't redirect directly to $@.
7197         (CLEANFILES): Add package.m4.
7198         ($(TESTSUITE)): Depend on just-built package.m4, not the one
7199         in $(srcdir).
7200         When running $(AUTOTEST), search "." before searching $(srcdir).
7202         Avoid a race condition that would make parallel "distclean" fail.
7203         * tests/Makefile.am (distclean-generic): Replace the default,
7204         automake-provided rule with an identical one, but with an additional
7205         dependency on distclean-local.  Simply adding the dependency would
7206         cause automake not to emit the rule at all.
7207         * BUGS: Building with -jN works, now.
7209         Distribute git-version-gen.
7210         * Makefile.am (EXTRA_DIST): Add build-aux/git-version-gen,
7211         since GNUmakefile is distributed, and requires it for dist* rules.
7213         Remove two more generated files from version control.
7214         * INSTALL: Remove generated file.
7215         * lib/autoscan/autoscan.list: Remove generated file.
7217 2007-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7219         * GNUmakefile (PATH): Remove stray apostrophes; they become
7220         part of PATH, which isn't wanted here.
7222 2007-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7224         New config files output variable `top_build_prefix'.
7225         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Substitute
7226         `top_build_prefix'.
7227         * doc/autoconf.texi (Preset Output Variables): Document it.
7228         * NEWS: Update.
7229         Report by Bob Friesenhahn.
7231         Avoid expr for arithmetic evaluation if the shell accepts $((...)).
7232         * lib/autotest/general.m4 (AT_INIT) <at_func_arith>: New
7233         function, to parametrize arithmetic with expr vs. the shell.
7234         Use it where possible.
7235         Suggestion by Benoit Sigoure.
7237 2007-11-03  Benoit Sigoure  <tsuna@lrde.epita.fr>
7239         Adjust the documentation of autotest WRT atlocal.
7240         * doc/autoconf.texi (Making testsuite Scripts): It is not necessary,
7241         when using Automake, to write a rule to produce atlocal, since it's
7242         an AC_CONFIG_FILES.  Mention that atlocal.in needs to be
7243         distributed, not atconfig.in.
7245 2007-11-04  Eric Blake  <ebb9@byu.net>
7247         Update list information.
7248         * README: Mention new autoconf-commit list.
7249         * doc/autoconf.texi (Introduction): Mention autoconf-commit list.
7251 2007-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7253         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Fix comment typo.
7255         * lib/m4sugar/Makefile.am (version.m4): Another bash bug workaround.
7257         * build-aux/.gitignore: Ignore mkinstalldirs.
7259         * doc/autoconf.texi (autoreconf Invocation): Fix an underfull line.
7261 2007-11-03  Jim Meyering  <meyering@redhat.com>
7263         s/-/./ in snapshot version string: 2.61a-256-8b556 -> 2.61a.256-8b556
7264         * build-aux/git-version-gen: This syncs from coreutils.
7266         Adjust the build procedure so "make check" works reliably.
7267         * README-hacking: Include an extra step between "make" and
7268         "make check" to ensure that the latter passes.
7270         Use just-built tools, when possible.
7271         * GNUmakefile (PATH): Set and export here, ...
7272         (dummy): ... rather than here.
7274 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7275         and Andreas Schwab  <schwab@suse.de>
7277         * tests/Makefile.am ($(srcdir)/package.m4): Work around bash
7278         exit status bug.
7280 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7282         * configure.ac (AC_PREREQ): Require version 2.60, for
7283         AC_PROG_SED, AC_PROG_GREP.
7285 2007-11-02  Benoit Sigoure  <tsuna@lrde.epita.fr>
7286         and Jim Meyering  <meyering@redhat.com>
7287         and Andreas Schwab <schwab@suse.de>
7288         and Eric Blake  <ebb9@byu.net>
7290         Document a bug in GNU Bash with compound commands and redirections.
7291         * doc/autoconf.texi (Limitations of Builtins): Mention that GNU
7292         Bash doesn't properly set $? when `{ ... } >/bad' fails, and give
7293         workaround.
7295 2007-11-03  Eric Blake  <ebb9@byu.net>
7297         Support m4 1.4.5 in testsuite.
7298         * tests/torture.at (Define a newline): Exclude line numbers in
7299         error message.
7300         Reported by Ralf Wildenhues.
7302 2007-11-03  Jim Meyering  <meyering@redhat.com>
7304         Remove automake-provided files from version control.
7305         * build-aux/elisp-comp: Remove file.
7306         * build-aux/install-sh: Remove file.
7307         * build-aux/missing: Remove file.
7308         * build-aux/mdate-sh: Remove file.
7309         * build-aux/.gitignore: New file.
7310         Suggestion from Ralf Wildenhues.
7312 2007-11-03  Eric Blake  <ebb9@byu.net>
7314         Adjust version comparison to account for git snapshot numbers.
7315         * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Also treat - as a
7316         component separator.
7317         * doc/autoconf.texi (Number processing Macros)
7318         <m4_version_compare>: Document this change.
7319         * tests/m4sugar.at (m4@&t@_version_compare): Test it.
7321 2007-10-30  Bruno Haible  <bruno@clisp.org>
7323         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro,
7324         extracted from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
7325         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT): Use it.
7326         Fixes problem with Sun C 5.[0-8] in 32-bit mode, reported in
7327         <http://lists.gnu.org/archive/html/autoconf-patches/2007-10/msg00210.html>
7328         Suggested by Paul Eggert.
7330 2007-10-28  Jim Meyering  <meyering@redhat.com>
7332         * README-hacking: Autoconf, Automake, and Perl are required to build.
7333         List Gzip and Tar separately.  Suggested by Ralf Wildenhues.
7335 2007-10-28  Jim Meyering  <meyering@redhat.com>
7337         README-hacking: Recommend running autoreconf -vi.
7338         * GNUmakefile (dummy): Use autoreconf -i, with appropriate PATH,
7339         so that we use just-built tools when they're available.
7340         Suggestions from Ralf Wildenhues.
7342 2007-10-28  Jim Meyering  <meyering@redhat.com>
7344         Make inter-release --version output more useful.
7346         Now, each unofficial build has a version "number" like 2.61a-19-58dd,
7347         which indicates that it is built using the 19th change set
7348         (in _some_ repository) following the "v2.61a" tag, and that 58dd
7349         is a prefix of the commit SHA1.
7350         * build-aux/git-version-gen: New file.
7351         * configure.ac: Run it to set the version.
7352         (AM_INIT_AUTOMAKE): Don't check NEWS here.
7353         * Makefile.am (dist-hook): Arrange so that .version appears only
7354         in distribution tarballs, never in a checked-out repository.
7355         * .gitignore: Add .version here, too.  Just in case.
7356         * tests/Makefile.am ($(srcdir)/package.m4): Depend on Makefile,
7357         not configure.ac, now that the version number changes automatically.
7359         Ensure that $(VERSION) is up to date for dist-related targets.
7360         * GNUmakefile: Arrange to rerun autoconf, if the version reported by
7361         git-version-gen doesn't match $(VERSION), but only for dist targets.
7363 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7365         Fix `Deep Package' failure with a configure script early in PATH
7366         * tests/torture.at (Deep Package): Add `.' early in PATH.
7367         Report by Jim Meyering.
7369 2007-10-27  Jim Meyering  <meyering@redhat.com>
7371         Remove all generated files from version control.
7372         * aclocal.m4: Remove.
7373         * configure: Remove.
7374         * Makefile.in: Remove, along with all other Makefile.in in subdirs.
7375         * .gitignore: Add aclocal.m4, configure and Makefile.in.  Sort.
7376         * README-hacking: New file: how to build from just-checked-out sources.
7378 2007-10-23  Eric Blake  <ebb9@byu.net>
7380         Improve corner case of m4_expand.
7381         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Rewrite more
7382         efficiently.
7383         * tests/m4sh.at (AS@&t@_HELP_STRING): Test overquoted comma.
7384         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Update
7385         documentation.
7387 2007-10-23  Paul Eggert  <eggert@cs.ucla.edu>
7389         * doc/make-stds.texi: Update from gnulib.
7391 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
7392         and Eric Blake  <ebb9@byu.net>
7394         * lib/autoconf/c.m4 (AC_C_RESTRICT): Work around Sun C++ compatibility
7395         problem reported by Bruno Haible in
7396         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00027.html>.
7398 2007-10-22  Eric Blake  <ebb9@byu.net>
7400         * doc/autoconf.texi (Particular Types): Mention bug in HP-UX 11.00
7401         preprocessor.
7403 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
7405         Don't check for bug in HP-UX 11.00 cpp.
7406         * lib/autoconf/types.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
7407         Use -1ull rather than -1u, since that causes problems with gnulib; see
7408         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
7410 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7412         * tests/autotest.at (Backquote command substitution)
7413         (Multiline backquote command substitution)
7414         (Parenthetical command substitution)
7415         (Multiline parenthetical command substitution): Fix typos in
7416         test names.
7418 2007-10-21  Eric Blake  <ebb9@byu.net>
7420         * configure: Regenerate.
7422 2007-10-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7424         Fix config status generation with Tru64 ksh.
7425         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix
7426         escaping of backslash in here-documents.
7428         Fix `Deep Package' test failure on FreeBSD.
7429         * tests/torture.at (Deep Package): Do not add `.' to $PATH
7430         unnecessarily.  Do not try running `/bin/sh configure' with a
7431         configure script to be found in $PATH, if the shell does not do
7432         this resolution.  Fixes test failure on FreeBSD.
7434         Fix config header generation with AIX awk.
7435         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): In awk
7436         script, use helper array D_is_set, as `" 0"' does not evaluate
7437         to true for AIX awk.
7439 2007-10-21  Eric Blake  <ebb9@byu.net>
7441         * tests/autotest.at (Banners): Reinstate test, with typo
7442         corrected.
7444 2007-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7446         * lib/autotest/general.m4 (Defaults): Validate input ranges ...
7447         <at_func_validate_ranges>: ... using this new function.
7448         * tests/autotest.at (Keywords and ranges): Test invalid ranges.
7449         Test --list with ranges and keywords.
7450         (Banners): Remove one now-failing test.
7452 2007-10-20  Eric Blake  <ebb9@byu.net>
7454         Fix testsuite --list subset.
7455         * lib/autotest/general.m4 (AT_INIT) <at_list_p>: Swap newlines
7456         back to spaces, before listing subset of tests.
7457         Reported by Ralf Wildenhues.
7459 2007-10-19  Eric Blake  <ebb9@byu.net>
7461         s/parenthesis/parentheses/ where appropriate.
7462         * doc/autoconf.texi: Fix typos.
7463         * lib/m4sugar/m4sugar.m4: Likewise.
7464         Reported by Ralf Wildenhues.
7466         Document m4_expand limitation.
7467         * lib/m4sugar/m4sugar.m4 (m4_expand): Mention problem with
7468         unbalanced parse.
7469         * doc/autoconf.texi (Pretty Help Strings, Evaluation Macros)
7470         (Writing Testsuites): Mention limitations inherited from
7471         m4_expand.
7473         Improve AT_BANNER handling.
7474         * lib/autotest/general.m4 (BANNERS): New named diversion.
7475         (TESTS_END): Diversion no longer used.
7476         (AT_INIT) <at_func_banner, BANNERS>: Factor all banners into a
7477         shell function, which prints only as needed, using an associative
7478         array of banner text from a special diversion.
7479         <PARSE_ARGS_END>: No longer need awk to find banners.
7480         <TESTS>: Banners are no longer processed by main driver loop, so
7481         we no longer need case statement.
7482         (AT_BANNER): Rewrite to populate new diversion.
7483         (AT_SETUP): Each test invokes its own banner.  No output is needed
7484         to the TESTS diversion.
7485         * doc/autoconf.texi (Writing Testsuites): Document slight
7486         semantics change.
7487         * tests/autotest.at (AT_BANNERS): Enhance test.
7488         * NEWS: Document AT_BANNER.
7490         Document and test AT_BANNER.
7491         * doc/autoconf.texi (Writing Testsuites): Document AT_BANNER.
7492         * tests/autotest.at (AT_CHECK_EGREP): Share between tests.
7493         (AT_CHECK_BANNERS): New test.
7495         Doc touchups.
7496         * doc/autoconf.texi (Text processing Macros) <m4_strip>
7497         <m4_text_wrap>: Clarify and fix typos.
7499 2007-10-18  Eric Blake  <ebb9@byu.net>
7501         Ignore `make dist' changelogs in testsuite.log.
7502         * lib/autotest/general.m4 (AT_INIT) <ChangeLogs>: Prune
7503         directories matching AT_PACKAGE_TARNAME-*.
7505         Fix AT_TESTED, AT_KEYWORDS.
7506         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Warn if separator
7507         occurs in string, as duplicates may be added.
7508         (_m4_append_uniq): New helper macro.
7509         (m4_append_uniq_w): New macro.
7510         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Fix
7511         duplication bug by using new macro.
7512         (AT_INIT) <at_tested>: Restore newline separators.  Invoke tested
7513         programs with stdin redirected, so programs that don't
7514         understand --version won't try to behave interactively.
7515         * tests/autotest.at (Tested programs): Catch this bug.
7516         * tests/m4sugar.at (m4@&t@_append): Test new macro.
7517         * tests/local.at (AT_TESTED): Add m4, perl.
7518         * doc/autoconf.texi (Text processing Macros): Document
7519         m4_append_uniq_w, and update text on m4_append.
7520         * NEWS: Document the addition.
7522 2007-10-17  Eric Blake  <ebb9@byu.net>
7524         Function cleanup.
7525         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Convert
7526         from m4 macro...
7527         (AT_INIT) <at_func_create_debugging_script>: ...to shell
7528         function.
7529         (AT_INIT): Defer function declarations until after --help,
7530         --version.  Format functions consistently, trying to fit in 80
7531         columns.
7532         (TEST_FUNCTIONS): Based on recent changes, rename...
7533         (TEST_GROUPS): ...to this.
7535         Reject FreeBSD m4.
7536         * m4/m4.m4 (AC_PROG_GNU_M4): Also check for frozen file support.
7537         * configure: Regenerate.
7538         Reported by Bob Friesenhahn.
7540         Test recent additions.
7541         * tests/m4sugar.at (m4@&t@_map, m4@&t@_combine)
7542         (m4@&t_max and m4@&t_min): New tests.
7543         * doc/autoconf.texi (Evaluation Macros) <m4_apply>: Enhance
7544         description.
7546 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7548         * TODO: multiline args in config files and headers work now.
7550         Autotest: do not use shell functions for individual tests.
7551         * lib/autotest/general.m4 (AT_INIT) <at_func_test>: Merely
7552         extract the source test source, do not invoke it.
7553         (AT_SETUP, AT_CLEANUP): Source test code outside shell function.
7554         * tests/autotest.at (Fallacy): Actually let the inner suite fail,
7555         expect exit status of 1.
7556         * tests/autotest.at (Skip): New test, for bogus zsh exit status.
7558         * lib/autotest/general.m4 (at_func_test): Fix test extraction
7559         script.
7561 2007-10-17  Eric Blake  <ebb9@byu.net>
7563         Fix m4_combine for empty suffix list.
7564         * lib/m4sugar/m4sugar.m4 (m4_combine): Check for suffix list.
7565         * doc/autoconf.texi (Text processing Macros): Document this.
7567         Add m4_combine, based on Libtool's lt_combine.
7568         * lib/m4sugar/m4sugar.m4 (m4_combine): New macro.
7569         * doc/autoconf.texi (Text processing Macros): Document it.
7570         * NEWS: Likewise.
7572 2007-10-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7574         Fix `configure --help=recursive' in unconfigured/read-only trees.
7575         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Avoid errors when `.'
7576         is not writable, use 'cp -p' in this case, in the hope that it
7577         will not actually be needed.  Still try removing files, in case
7578         of other write errors.
7579         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): For ac_confdir,
7580         use $as_myself, not $0.
7581         (_AC_INIT_HELP): For --help=recursive, if the subdir does not
7582         exist, try again in the the source tree.  This change assumes
7583         that the subpackage configure script is capable of running
7584         --help=recursive in the source tree.
7585         * tests/torture.at (Configuring subdirectories, Deep Package):
7586         Adjust tests to expose both issues, also try invocation as
7587         `sh configure ...' and plain `configure ...' with PATH adjusted.
7588         * NEWS, THANKS: Update.
7589         Report by Hans Ulrich Niedermann.
7591 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
7593         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
7594         Problem reported by H.Merijn Brand in
7595         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
7596         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
7597         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
7598         Check that preprocessor handles 64-bit ints, too.
7600 2007-10-16  Eric Blake  <ebb9@byu.net>
7602         m4_map is a looping construct.
7603         * lib/m4sugar/m4sugar.m4 (m4_map, _m4_map, m4_map_sep): Move.
7605         Fix m4_map, and add some more utility macros.
7606         * lib/m4sugar/m4sugar.m4 (m4_apply, m4_count, m4_dquote_elt)
7607         (m4_echo, m4_make_list): New documented macros.
7608         (_m4_quote, _m4_shift2): New helper macros.
7609         (m4_map): Change semantics to allow calling macro without
7610         arguments.
7611         (m4_map_sep): Likewise.  Also change semantics to quote separator,
7612         to match m4_join and m4_append.
7613         (m4_version_unletter): Fix use of m4_map.
7614         * doc/autoconf.texi (Evaluation Macros): Document m4_apply,
7615         m4_count, m4_dquote_elt, m4_echo, m4_make_list.
7616         (Text processing Macros): Mention m4_dquote as a faster
7617         alternative to joining with commas.
7618         (Looping constructs): Document m4_map, m4_map_sep.
7619         * NEWS: Mention new macros.
7621         A few more m4sugar improvements, to benefit libtool.
7622         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts, _m4_shiftn): Reduce size
7623         of expansion by avoiding extra uses of $@.
7624         (m4_shiftn): Avoid extra dnl, and forbid shifting by 0.
7625         (_m4_cdr): New helper macro.
7626         (_m4_map, m4_map_sep): Use it to reduce size of expansion.
7627         (_m4_shift3): New helper macro.
7628         (_m4_foreach): Swap argument order, and use new macro to reduce
7629         size of expansion.
7630         * doc/autoconf.texi (Looping constructs) <m4_shiftn>: Mention that
7631         count must be positive.
7633         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Fix typo.
7634         Reported by Ralf Wildenhues.
7636 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7638         * doc/autoconf.texi (Portable Shell): Improve description of zsh
7639         4.x function subshell bug with exit and trap.
7641 2007-10-15  Eric Blake  <ebb9@byu.net>
7643         Enhance AS_HELP_STRING.
7644         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't expand arguments,
7645         and reduce number of expansions.
7646         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Rework to use m4_expand,
7647         and to take indent and wrap column numbers.
7648         * tests/m4sh.at (AS@&t@_HELP_STRING): Update the test.
7649         * doc/autoconf.texi (Pretty Help Strings): Document details about
7650         arguments.
7651         (Text processing Macros): Minor tweaks.
7652         * NEWS: Document this change.
7654         Fix 2007-10-03 regression with AT_SETUP([a, b]).
7655         * lib/m4sugar/m4sugar.m4 (m4_expand): New macro.
7656         (m4_text_box): Use it.
7657         * lib/autotest/general.m4 (AT_SETUP): Use it.
7658         * lib/m4sugar/m4sh.m4 (_AS_RUN): Use it.
7659         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Test this.
7660         * NEWS: Revert caveat about semantics change on comma.
7661         * doc/autoconf.texi (Evaluation Macros): Document m4_expand.
7663 2007-10-13  Eric Blake  <ebb9@byu.net>
7665         Change m4_join to match libtool's ltsugar semantics.
7666         * lib/m4sugar/m4sugar.m4 (m4_join): Just define this, not defun.
7667         Ignore empty arguments, using...
7668         (_m4_join): ...this new helper.
7669         * tests/m4sugar.at (m4@&t@_join): New test.
7670         * doc/autoconf.texi (Text processing Macros): Document new
7671         semantics of m4_join.
7673         Make AC_PREREQ faster and more robust.
7674         * lib/m4sugar/m4sugar.m4 (m4_ignore, m4_unquote): New macros.
7675         (m4_version_prereq): Inline constant expansions.
7676         (m4_list_cmp): Reduce number of expansions, by avoiding m4_case.
7677         Rewrite in terms of [] list, not () list.
7678         (_m4_list_cmp, _m4_version_unletter): New helper macros.
7679         (m4_version_unletter): Write wrapper around new implementation to
7680         preserve old semantics.
7681         (m4_version_compare): Pass correct type of list, and avoid
7682         overhead of flattening expressions too early.
7683         (m4_do): Move to be near other quoting macros.
7684         (m4_max, m4_min): Always result in decimal output.
7685         * doc/autoconf.texi (Looping constructs): Add m4_car, m4_cdr.
7686         Move m4_do...
7687         (Evaluation Macros): ...here.  Add m4_ignore, m4_unquote.
7688         (Text processing Macros): Move m4_version_compare...
7689         (Number processing Macros): ...to this new node; document m4_cmp,
7690         m4_list_cmp, m4_sign, m4_max, m4_min.
7691         * tests/m4sugar.at (m4@&t@_version_compare): Enhance test, to pick
7692         up on bugs fixed by this patch.
7693         * NEWS: Document new macros.
7695 2007-10-12  Eric Blake  <ebb9@byu.net>
7697         * doc/autoconf.texi (Text processing Macros): Fix bad merge.
7698         (Reporting Messages): Fix underfull hbox.
7700         Some more m4sugar documentation.
7701         * lib/m4sugar/m4sugar.m4: Clean up macro order.
7702         * doc/autoconf.texi (Programming in M4): Lighten the warning on
7703         using m4sugar; it is stabilizing and useful.
7704         (Redefined M4 Macros): Touch up wording on M4 builtins; sort.  Add
7705         m4_divert, m4_undivert, __file__, __line__, __oline__.
7706         (Diagnostics): New node, documenting m4_assert, m4_errprintn,
7707         m4_fatal, m4_location, m4_warn.
7708         (Diversion support): New node, documenting m4_divert_push,
7709         m4_divert_pop, m4_divert_text, m4_divert_once.
7710         (Text processing Macros): Sort.  Add m4_flatten, m4_join,
7711         m4_newline, m4_strip, m4_text_box, m4_text_wrap.
7712         (Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
7713         as obsolescent.
7714         (Printing Messages): Change cross-reference.
7716         Document interaction of recent m4_append change with Libtool HEAD.
7717         * lib/m4sugar/m4sugar.m4 (m4_append): Document semantics change.
7718         (m4_append_uniq): Add new parameters, based on lt_append_uniq.
7719         * tests/m4sugar.at (m4@&t@_append): New test.
7720         * NEWS: Document semantics change.
7721         * doc/autoconf.texi (Text processing Macros): Likewise.
7723         s/AC_VERSION/AC_AUTOCONF_VERSION/.
7724         * doc/autoconf.texi (Versioning): Change the name.
7725         * NEWS: Likewise.
7726         * lib/autoconf/general.m4 (AC_AUTOCONF_VERSION): Likewise.
7727         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Likewise.
7728         Suggested by Ralf Wildenhues.
7730         Namespace cleanup.
7731         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE)
7732         (_AC_OUTPUT_HEADERS_PREPARE): Convert here-doc delimiters into
7733         autoconf namespace.
7734         * doc/autoconf.texi (Programming in M4sugar, Forbidden Patterns)
7735         (Programming in M4sh, Macro Names): Beef up description of
7736         namespaces reserved for autoconf.
7737         * configure: Regenerate.
7739 2007-10-12  Eric Blake  <ebb9@byu.net>
7740         and Paolo Bonzini  <bonzini@gnu.org>
7742         Speed up execution of subset of testsuite.
7743         * lib/autotest/general.m4 (TEST_FUNCTIONS): New diversion.
7744         (AT_INIT) <at_func_test>: New shell function.
7745         (AT_INIT) <at_myself>: New variable, set to absolute $as_myself.
7746         (AT_INIT) <at_test_source> New variable, names file that holds
7747         current test function definition.
7748         (AT_SETUP): Start the shell function at_func_test_#, into the
7749         TEST_FUNCTIONS diversion.
7750         (AT_CLEANUP): End the shell function.  Simplify the TESTS
7751         diversion to invoke the function.
7753 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7755         * .gitignore: Ignore tags and TAGS files.
7757 2007-10-11  Eric Blake  <ebb9@byu.net>
7759         Config header generation followup.
7760         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Check for raw newlines,
7761         which won't work with the preprocessor nor with the awk
7762         implementation.
7763         * tests/torture.at (Define a newline): Test raw newline detection,
7764         removing the XFAIL.
7765         * doc/autoconf.texi (Defining Symbols): Document recent change to
7766         allow backslash-newline.
7767         * THANKS: Update.
7769 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7771         * lib/autotest/general.m4: Put function braces in separate line.
7773 2007-10-10  Eric Blake  <ebb9@byu.net>
7775         Avoid some overhead from m4_defn and m4_popdef.
7776         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Only
7777         pass on first argument, since we are documented that way.
7778         (m4_for, m4_append_uniq, m4_text_wrap): Optimize out defined-ness
7779         check where it is safe to do so.
7780         (m4_append): Likewise, and quote the separator.
7781         (m4_text_box): Likewise, and avoid regex, also be robust to
7782         expansion and quadrigraphs.
7784         Another AC_DEFINE speedup.
7785         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Move parameter
7786         elision...
7787         (_AC_DEFINE_Q): ...here, and only do it once.
7788         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid overquoting.
7789         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix m4_defn overquoting
7790         introduced 2007-10-05.
7792         Whitespace cleanup.
7793         * lib/autoconf/general.m4: Use consistent indentation.
7794         * configure: Regenerate.
7796         * NEWS: Announce recent round of speed optimizations.
7798 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7800         * NEWS: Announce shell function usage in Autotest.
7802 2007-10-10  Eric Blake  <ebb9@byu.net>
7803         and Paul Eggert  <eggert@cs.ucla.edu>
7805         Reduce number of forks at startup.
7806         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Speed up NLS
7807         sanitization.
7808         * configure: Regenerate.
7810 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7811         and Paul Eggert  <eggert@cs.ucla.edu>
7813         Use awk for config header generation.
7814         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix comments.
7815         (_AC_OUTPUT_HEADERS_PREPARE): New macro.  Rewrite of the config
7816         header machinery for use with awk and placement outside the main
7817         config.status instantiation loop.  Retain multi-line defines
7818         through backslash-newline combinations, do not split the script
7819         any more.
7820         (_AC_OUTPUT_HEADER): Simplify accordingly, use $AWK.
7821         (_AC_OUTPUT_MAIN_LOOP): Call _AC_OUTPUT_HEADERS_PREPARE if
7822         needed.
7823         (AC_OUTPUT_MAKE_DEFS): Remove backslash-newline combinations
7824         from define values.
7825         * NEWS: Update.
7826         * tests/torture.at (#define header templates): Extend test by
7827         several more cases: white space before and after `#', macros
7828         with parameters in config.hin and as defines, multi-line macro
7829         values.
7830         (Torturing config.status): Use a define value twice the length
7831         in order to exercise the awk literal string limit.
7832         (Substitute and define special characters): Also try special
7833         delimiter, to exercise the special-case code.
7834         Suggestion by Eric Lemings.
7836 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7838         * tests/local.at (AT_COPYRIGHT): Bump copyright years.
7840 2007-10-09  Eric Blake  <ebb9@byu.net>
7842         Improve header of bin/autoconf.
7843         * lib/m4sugar/m4sh.m4 (AS_INIT): Add a 'generated from' notice.
7844         * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Override new notice
7845         from M4sh.
7846         * bin/autoconf.as: Put copyright up front in generated file.
7848         * bin/autoconf.as (exit_missing_arg): Font-lock tweak.
7850 2007-10-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7852         * doc/install.texi (Basic Installation): Document `uninstall'.
7853         * INSTALL: Regenerate.
7854         Suggestion by Roberto Bagnara.
7856 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
7858         * doc/autoconf.texi (Limitations of Usual Tools): V7 awk had 'index'.
7860         Adjust doc. to match latest gnulib.
7861         * build-aux/texinfo.tex: Sync from gnulib.
7862         * doc/standards.texi: Likewise.
7863         * doc/autoconf.texi (Copying This Manual): Rename to "GNU Free
7864         Documentation License" and remove the subsection.  This simplifies
7865         the manual a bit and is more like what other GNU projects do
7866         nowadays.
7868 2007-10-08  Eric Blake  <ebb9@byu.net>
7870         Use recent changes.
7871         * configure: Regenerate.
7873         Fix regression in m4_text_wrap from 2007-10-05.
7874         * lib/m4sugar/m4sugar.m4 (m4_max, m4_min): New macros.
7875         (m4_sign): Sort.
7876         (m4_text_wrap): Fix off-by-one error in rewrite from m4_for to
7877         m4_format.
7878         * lib/autotest/general.m4 (AT_SETUP): Avoid negative width.
7879         * tests/autotest.at (Long test title, Longer test title): Test
7880         this fix, beyond what AS_HELP_STRING already tests.
7882         Avoid m4 warnings on bad m4_format usage.
7883         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Use %*s, in case width
7884         evaulates to 0.
7885         * lib/autotest/general.m4 (AT_SETUP): Likewise; also ensure that
7886         enough arguments are provided.
7888 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
7890         * doc/autoconf.texi (Shell portability): Document shell function
7891         portability.
7893 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
7895         * lib/autotest/general.m4 (AT_INIT): Add at_func_diff_devnull,
7896         at_func_check_skip, at_func_check_status, at_func_filter_trace,
7897         at_func_log_failure shell functions.  Use test -s to avoid
7898         useless diff invocations.
7899         (at_func_check_newline): Renamed from at_check_newline.
7900         (AT_SETUP): Define AT_captured_files to empty.
7901         (AT_DIFF_STDERR(*), AT_DIFF_STDOUT(*)): New, extracted from _AT_CHECK.
7902         (_AT_CHECK): Replace m4_case with m4_ifdef/m4_indir.  Use all
7903         the shell functions.
7905 2007-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7907         Don't assume "." is writeable, for commands like "autoconf --version".
7908         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use a
7909         different heuristic instead, one that doesn't rely on creating
7910         files.
7912         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle "///"
7913         correctly.
7915 2007-10-05  Jim Meyering  <meyering@redhat.com>
7917         Avoid makeinfo warnings.
7918         * doc/autoconf.texi (Redefined M4 Macros): Add a `,' after @xref.
7919         (Looping constructs): Add ` ' after @defmac'd name, m4_do.
7921 2007-10-05  Eric Blake  <ebb9@byu.net>
7923         Resolve Python issue 1676135 regarding configure directory args.
7924         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Strip trailing
7925         slashes from directory arguments.
7926         * tests/base.at (configure directories): New test.
7927         * doc/autoconf.texi (Installation Directory Variables): Document
7928         the change.
7929         * NEWS: Likewise.
7930         * THANKS: Update.
7931         Reported by Björn Lindqvist.
7933         Provide better short-circuiting operation.
7934         * lib/m4sugar/m4sugar.m4 (m4_cond, m4_newline): New macros.
7935         (m4_text_wrap): Use it.  Also avoid useless m4_for.
7936         * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE, AS_LITERAL_IF): Use
7937         new macro.
7938         (_AS_IDENTIFIER_IF): Likewise, and fix bug when $1 is [,].
7939         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Use new macros
7940         to avoid regexps.
7941         * doc/autoconf.texi (Redefined M4 Macros): Expand m4_if
7942         documentation.  Sort m4_mkstemp, m4_undefine.  Move m4_ifndef...
7943         (Conditional constructs): ...here, to new section.  Also document
7944         m4_cond, m4_ifval, m4_n, m4_ifvaln, m4_ifset, m4_case, m4_bmatch,
7945         m4_bpatsubsts, and m4_default.
7946         (Looping constructs): Document m4_shiftn, m4_shift2, m4_shift3,
7947         m4_do.
7949 2007-10-04  Eric Blake  <ebb9@byu.net>
7951         Fix recent testsuite failures.
7952         * lib/autotest/general.m4 (AT_INIT, AT_SETUP): Double-quote text
7953         that must not be re-expanded after AS_ESCAPE.
7954         * lib/m4sugar/m4sh.m4 (_AS_IDENTIFIER_IF): Don't expand $1 when
7955         checking if it is an identifier.
7957         Whitespace cleanup.
7958         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Avoid
7959         leading whitespace, as it caused space-tab in testsuite.
7960         (AT_INIT): Avoid trailing newlines in testsuite.
7962         One more round of m4_foreach_w speedups.
7963         * lib/m4sugar/m4sugar.m4 (m4_flatten): Only use regex if newline
7964         is present.
7965         (_m4_split): Avoid useless expansions inside definition.  Move
7966         argument defaulting...
7967         (m4_split): ...here.  Change alternate quote to something less
7968         likely to appear in $1.  Also, special case space as regexp...
7969         (m4_foreach_w): ...to avoid regexp on single-term list.
7970         (m4_default, m4_defn, m4_popdef, m4_undefine, _m4_foreach): Avoid
7971         useless expansions inside definition.
7972         * tests/m4sugar.at (m4@&t@_split): Add tests.
7974 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
7976         * general.m4 (AT_INIT): Add at_check_newline function.
7977         (_AT_DECIDE_TRACEABLE): Include at_traceon test, use shell function.
7978         (_AT_CHECK): Don't use at_trace_this.
7980 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
7982         Fix previous commit.
7983         * lib/autotest/general.m4 (AT_LINE): Fix regex.
7985 2007-10-04  Eric Blake  <ebb9@byu.net>
7987         Speed up building testsuites.
7988         * lib/autotest/general.m4 (AT_LINE): Only use regex when file
7989         changed since last time.  Use simpler regex.
7991 2007-10-03  Eric Blake  <ebb9@byu.net>
7993         Optimize checking for identifiers.
7994         * lib/m4sugar/m4sh.m4 (AS_IDENTIFIER_IF, _AS_IDENTIFIER_IF): New
7995         macros, more efficient than regex on m4_re_word.
7996         * lib/autoconf/general.m4 (AC_SUBST, AC_DEFINE_TRACE_LITERAL):
7997         Rewrite in terms of new macro.  As a side-effect, AC_DEFINE can
7998         now use @&t@.
7999         * configure: Regenerate.
8001         Remove some XFAILs, and make AT_SETUP output line up.
8002         * lib/autotest/general.m4 (AT_SETUP): Only expand description
8003         once; thereafter, use its expansion, properly quoted.
8004         * tests/autotest.at (AT_CHECK_AT_TITLE): Also check macro
8005         expansion with arguments, and check for aligned output.
8006         (AT_CHECK_AT_TITLE_CHAR): Remove XFAILs for tests that now pass.
8007         Add a test for macros with parameters.
8008         * NEWS: Document the semantics change.
8009         * tests/base.at: Fix test titles containing commas.
8010         * tests/compile.at: Likewise.
8011         * tests/tools.at: Likewise.
8012         * tests/torture.at: Likewise.
8014         Another round of regex avoidance.
8015         * lib/m4sugar/m4sugar.m4 (m4_cr_alnum, m4_cr_all)
8016         (_m4_define_cr_not, m4_cr_not_letters, m4_cr_not_LETTERS)
8017         (m4_cr_not_Letters, m4_cr_not_digits, m4_cr_not_alnum)
8018         (m4_cr_not_symbols1, m4_cr_not_symbols2): New macros, implementing
8019         character ranges useful in m4_translit.
8020         (m4_toupper, m4_tolower): Optimize the constant portion of
8021         definition.
8022         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Also reject @S|@ because it
8023         creates $, and reject [] thanks to AS_TR_SH rewrite.
8024         (AS_TR_SH, AS_TR_CPP): Use just translit, not bpatsubst.
8025         (AS_ESCAPE): Factor...
8026         (_AS_ESCAPE): ...into new macro, with second argument required.
8027         Avoid regex in common case.
8028         (_AS_QUOTE): Use new macro.
8030         Whitespace cleanup.
8031         * lib/autoconf/types.m4: Avoid space-tab.
8032         * lib/m4sugar/m4sh.m4: Use tab consistently.
8034 2007-10-03  Paul Eggert  <eggert@cs.ucla.edu>
8036         * lib/m4sugar/m4sugar.m4 (m4_shift2, m4_shift3): New macros.
8037         (m4_shiftn): Remove no-longer-needed optimization.  Perhaps we
8038         should remove m4_shiftn entirely?
8039         (m4_case, b4_bmatch, m4_map_sep, m4_bpatsubsts, m4_join):
8040         Prefer m4_shift2 and m4_shift3 to m4_shiftn.
8041         * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
8042         * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Likewise.
8043         * tests/autotest.at (AT_CHECK_AT_TEST): Likewise.
8045 2007-10-03  Eric Blake  <ebb9@byu.net>
8047         Comment touchups.
8048         * lib/m4sugar/m4sugar.m4: Grammar fixes in comments.
8050 2007-10-02  Eric Blake  <ebb9@byu.net>
8052         Optimize appending text.
8053         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Use index, not regular
8054         expressions.
8056         Optimize recursion.
8057         * lib/m4sugar/m4sugar.m4 (m4_shiftn): This macro is called in a
8058         lot of hot spots; optimize it for 2 and 3 shifts.
8060         Optimize AC_PREREQ and other m4sugar numerics.
8061         * lib/m4sugar/m4sugar.m4 (m4_sign): Write with m4_eval.
8062         (m4_cmp): Compare arbitrary expressions, without overflow.
8063         (m4_version_unletter): Also recognize capital letters.
8064         (m4_version_compare): Avoid regex when splitting version number
8065         string.
8067 2007-10-01  Eric Blake  <ebb9@byu.net>
8069         Once again, reject IRIX m4.
8070         * m4/m4.m4 (AC_PROG_GNU_M4): Use indir builtin to root out non-GNU
8071         implementations that ignore --trace.
8072         * configure: Regenerate.
8073         Reported by Ralf Wildenhues.
8075         Fix regression in AC_DEFINE([macro(with_arg)]).
8076         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't chop off close
8077         quotes with a careless m4_substr.
8079 2007-09-30  Eric Blake  <ebb9@byu.net>
8081         Allow nameless iteration.
8082         * lib/m4sugar/m4sugar.m4 (m4_for, _m4_for): Access variable
8083         indirectly.
8084         * tests/m4sugar.at (myvar): Test this.
8086 2007-09-29  Eric Blake  <ebb9@byu.net>
8088         Speed optimization: avoid m4 regex when other algorithms work.
8089         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Rewrite without regex.
8090         (_AS_QUOTE_IFELSE): Likewise.
8091         * lib/m4sugar/m4sugar.m4 (m4_strip): Reduce from 3 to 2 regex.
8092         (m4_bpatsubsts): Split...
8093         (_m4_bpatsubsts): ...so that recursion can avoid patsubst on empty
8094         regex.
8095         (_m4_divert()): Define, to avoid m4 warning on `m4_divert'.
8096         (m4_qlen): Optimize on short strings, to avoid regex.
8097         (m4_sign): Avoid regex, and fix bug with `01' and `-0'.
8098         * lib/autoconf/general.m4 (AC_CACHE_VAL): Rewrite without regex.
8099         (AC_DEFINE_TRACE): Likewise.
8101 2007-09-28  Eric Blake  <ebb9@byu.net>
8103         Oops - my earlier 'optimization' caused a regression.
8104         * tests/local.at (AT_CHECK_M4): Fix typo.
8106 2007-09-27  Eric Blake  <ebb9@byu.net>
8107         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8109         Catch even more common AC_CACHE_VAL mistakes.
8110         * lib/autoconf/general.m4 (AC_CACHE_VAL): Warn if cache variable
8111         lacks '_cv_', or if AC_SUBST appears in body.
8112         * tests/base.at (AC_CACHE_CHECK): Test this change.
8114 2007-09-27  Stepan Kasal  <kasal@ucw.cz>
8115         and Eric Blake  <ebb9@byu.net>
8117         Autotest no longer caters to Ultrix redirection limitation.
8118         * doc/autoconf.texi (Writing testsuite.at): Remove the
8119         limitation that the first parameter of AT_CHECK cannot
8120         contain redirection.
8121         (File Descriptors): Mention that Ultrix limitation is no longer a
8122         show-stopper in modern code.
8123         * tests/local.at (AT_CHECK_M4): Fix for cases when the fourth
8124         parameter is `stderr' or `experr'.  Optimize if it was `ignore'.
8125         * lib/autotest/general.m4 (AT_CHECK): Update comment.
8127 2007-09-27  Eric Blake  <ebb9@byu.net>
8129         Squelch changeword in m4sugar.
8130         * lib/m4sugar/m4sugar.m4 (changeword): Disable this experimental
8131         feature of m4 1.4.x.
8133         Configure whitespace touchups.
8134         * lib/autoconf/general.m4 (_AC_INIT_HELP): Fix alignment of
8135         installation directories, and avoid TAB, in configure --help
8136         output.
8137         * configure.ac: Avoid extra trailing newline.
8138         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Avoid space-tab.
8139         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid TAB in
8140         config.status --help output.
8141         * configure: Regenerate.
8143         Fix underquotation in AS_HELP_STRING.
8144         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Don't underquote lhs
8145         argument.
8146         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't underquote
8147         first-prefix argument.
8148         * tests/m4sh.at (AS@&t@_HELP_STRING): Test this fix.
8149         * NEWS: Document AS_HELP_STRING fix.
8151         Autotest formatting touchups.
8152         * lib/autotest/general.m4 (HELP_TUNING): Avoid TAB in terminal
8153         output.
8154         (PATH): Simplify computation of new PATH.
8156 2007-09-26  Eric Blake  <ebb9@byu.net>
8158         Fix testsuite breakage in last patch.
8159         * tests/autotest.at (AT_CHECK_AT_TITLE): Properly quote the
8160         font-lock fix.
8161         * tests/torture.at (@%:@define header templates): Rename, so that
8162         output lines up correctly.
8164         More font-lock happiness.
8165         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Clean up font
8166         confusion.
8168 2007-09-25  Eric Blake  <ebb9@byu.net>
8170         Typo fixes.
8171         * lib/autoconf/general.m4 (AC_SUBST): Fix typo in comment.
8172         * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Likewise.
8174         Improve documentation of M4 parameter expansion.
8175         * doc/autoconf.texi (Quoting and Parameters): New section.
8176         (Quotation and Nested Macros): Improve wording.
8178         Improve C99 detection.
8179         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and
8180         avoid deprecation warning with icc.
8181         * THANKS: Update.
8182         Reported by Ted Bullock.
8184 2007-09-24  Jim Meyering  <jim@meyering.net>
8186         Whenever possible, use the vertical bar as sed delimiter.
8187         * lib/autoconf/functions.m4 (GETLOADAVG_LIBS) [AC_FUNC_GETLOADAVG]:
8188         Use "|", not "!".
8189         * lib/autoconf/status.m4 (_AC_SRCDIRS) [ac_top_builddir_sub]:
8190         [ac_dir_suffix]: Use "|", not "," as sed delimiter.
8191         * tests/mktests.sh (as_me): Likewise.
8192         * lib/freeze.mk (check-forbidden-patterns): Likewise.
8193         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
8194         * configure: Regenerate.
8195         * doc/autoconf.texi (Shell Substitutions): Use "|", not "," in examples.
8196         * lib/autotest/general.m4 (AT_INIT): Use "|", not "&" as sed delimiter
8197         in the : -> $PATH_SEPARATOR transformation of $AUTOTEST_PATH.
8198         This is fine, as long as $PATH_SEPARATOR doesn't contain "|".
8200 2007-09-22  Jim Meyering  <jim@meyering.net>
8202         Add a comment.
8203         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Document the
8204         2004-05-31 change also with a comment in the code.
8206 2007-09-20  Eric Blake  <ebb9@byu.net>
8208         More contribution housekeeping.
8209         * THANKS: Sort.
8210         * AUTHORS: Sort, reflect recent assignment from Helge Deller.
8212         Ignore additional files, when copying cross-repository.
8213         * .gitignore: Ignore CVS directories, emacs edits.
8214         * .cvsignore: Ignore .git directory, emacs edits.
8216 2007-09-15  Eric Blake  <ebb9@byu.net>
8218         Provide AC_VERSION, not m4_AUTOCONF_VERSION.
8219         * doc/autoconf.texi (Text processing Macros): Remove mention of
8220         m4_AUTOCONF_VERSION, and leave m4_PACKAGE_VERSION undocumented
8221         once again.
8222         (Notices): Move AC_PREREQ...
8223         (Versioning): ...to this new section, alongside the new AC_VERSION
8224         alias for the undocumented m4_PACKAGE_VERSION.
8225         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): Revert change.
8226         * lib/autoconf/general.m4 (AC_VERSION): New macro.
8227         * NEWS: Update to match this rename.
8228         * tests/m4sugar.at (m4@&t@_version_compare): Remove tests of
8229         m4_PACKAGE_VERSION.
8230         * tests/tools.at (autoconf: AC_VERSION): New test.
8231         Suggested by Paolo Bonzini and Benoit Sigoure.
8233 2007-09-14  Eric Blake  <ebb9@byu.net>
8235         Prepare for conversion to git.
8236         * doc/.cvsignore: Avoid multiple listings on one line.
8237         * bin/.cvsignore: Likewise.
8238         * .gitignore, bin/.gitignore, config/.gitignore, doc/.gitignore,
8239         lib/.gitignore, lib/Autom4te/.gitignore, lib/autoconf/.gitignore,
8240         lib/autoscan/.gitignore, lib/autotest/.gitignore,
8241         lib/emacs/.gitignore, lib/m4sugar/.gitignore, man/.gitignore,
8242         tests/.gitignore: New files, identical to .cvsignore counterpart.
8244 2007-09-13  Eric Blake  <ebb9@byu.net>
8246         Editing eye-candy.
8247         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Restore
8248         font-lock balance.
8249         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Likewise.
8250         * lib/autoconf/general.m4 (_AC_DO_ECHO): Likewise.
8251         * configure: Regenerate.
8253         Clean up 'make dist' of previous patch.
8254         * tests/Makefile.am (EXTRA_DIST): Distribute mktests.stamp.
8255         (CLEANFILES): Don't clean the stamp, since we distribute the
8256         generated files pre-built.
8257         (MAINTAINERCLEANFILES): Clean it here instead.
8258         * tests/Makefile.in: Regenerate.
8260         Avoid parallel 'make check' issue.
8261         * tests/Makefile.am (mktests.stamp): New witness.
8262         (TESTSUITE_GENERATED_AT): Use it.
8263         (CLEANFILES): Clean the witness.
8264         * tests/.cvsignore (mktests.stamp): Ignore the witness.
8266         Document another awk pitfall.
8267         * doc/autoconf.texi (Limitations of Usual Tools) <awk>: Document
8268         limitation of field variables in END.
8269         Reported by Gary V. Vaughan.
8271         * AUTHORS: Add missing entries.
8273 2007-09-12  Eric Blake  <ebb9@byu.net>
8275         Publish m4_ifndef, m4_version_compare, m4_AUTOCONF_VERSION.
8276         * doc/autoconf.texi (Text processing Macros): Document
8277         m4_version_compare, m4_AUTOCONF_VERSION, m4_PACKAGE_VERSION.
8278         (Redefined M4 Macros): Document m4_ifndef.
8279         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): New macro; we
8280         can't obsolete m4_PACKAGE_VERSION at this time since Autoconf 1.10
8281         used it while it was undocumented.
8282         * NEWS: Document this change.
8283         * lib/m4sugar/Makefile.am (version.m4): Update copyright dates.
8284         * lib/m4sugar/Makefile.in: Regenerate.
8285         * tests/m4sugar.at (m4@&t@_version_compare): New test.
8286         Reported by Bruno Haible.
8288         * doc/autoconf.texi (Generic Compiler Characteristics): Add
8289         missing index entries.
8291 2007-09-11  Eric Blake  <ebb9@byu.net>
8293         Centralize all system extensions checks.
8294         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
8295         from AC_AIX, AC_GNU_SOURCE, AC_MINIX.  Add Interix support.
8296         (AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
8297         AC_USE_SYSTEM_EXTENSIONS.
8298         (AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
8299         (AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
8300         * doc/autoconf.texi (Posix Variants): Reword this section,
8301         emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
8302         rather than a series of system-specific checks.
8303         (Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
8304         AC_MINIX.
8305         * NEWS: Document this change.
8306         * THANKS: Update.
8307         Reported by Martin Koeppe.
8309 2007-09-08  Eric Blake  <ebb9@byu.net>
8311         Clean up obsolete macros references.
8312         * doc/autoconf.texi: Add anchors to support better
8313         cross-referencing.
8314         (Particular Structures): Move obsolete macros descriptions...
8315         (External Software): Likewise.
8316         (Package Options): Likewise.
8317         (Obsolete Macros): ...to here.  Add cross-references to
8318         documentation on replacements.
8319         * NEWS: Mention that these macros have been obsolete for a while
8320         now: AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_RDEV AC_WITH AC_ENABLE.
8322         Improve M4 path searching during configure.
8323         * lib/autoconf/programs.m4 (AC_PATH_PROGS_FEATURE_CHECK): New
8324         macro.
8325         (_AC_PATH_PROG_FEATURE_CHECK): Rename...
8326         (_AC_PATH_PROGS_FEATURE_CHECK): ...to this, add defaulted action
8327         parameter, and kill side effects.
8328         (_AC_PROG_GREP, AC_PROG_SED): Adjust callers.
8329         (_AC_FEATURE_CHECK_LENGTH): Kill extra whitespace.
8330         * m4/m4.m4 (AC_PROG_GNU_M4): Don't stop searching until working m4
8331         is found.
8332         (AC_PATH_PROGS_FEATURE_CHECK): Add backwards compatibility hack to
8333         allow bootstrapping with autoconf 2.61.
8334         * configure.ac (M4): AC_PROG_GNU_M4 now exits on failure.
8335         * configure: Regenerate.
8336         * doc/autoconf.texi (Generic Programs): Document new macro.
8337         * tests/mktests.sh (au_exclude_script): Exclude auto-testing new
8338         macro.
8339         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): New test.
8340         * NEWS: Document the change.
8341         * THANKS: Update.
8342         Reported by Hans Aberg.
8344         * doc/autoconf.texi (Generic Programs): Fix typo.
8346 2007-09-06  Eric Blake  <ebb9@byu.net>
8348         * doc/autoconf.texi (Generic Programs): Use $PATH_SEPARATOR, not
8349         :, and make it clear that optional @var{path} defaults to $PATH.
8350         (Erlang Compiler and Interpreter): Likewise.
8352         Texinfo cleanup.
8353         * doc/autoconf.texi: Avoid lines > 80 columns when possible.
8354         Reword some paragraphs to avoid overfull, underfull hbox
8355         warnings.  Add index entries to avoid overfull vbox warnings.
8357 2007-09-05  Eric Blake  <ebb9@byu.net>
8359         * NEWS: Adjust wording for AC_CONFIG_LINKS.
8360         Reported by Ralf Wildenhues.
8362 2007-09-03  Eric Blake  <ebb9@byu.net>
8364         * NEWS: Document fixes that have been applied since 2.61a.
8366         Housekeeping.
8367         * THANKS: Update, and convert to UTF-8 encoding.
8368         * AUTHORS: Likewise.
8370 2007-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8372         * lib/autoconf/general.m4 (AC_SITE_LOAD): Guard against file
8373         names beginning with `-' again.
8375 2007-08-22  Stepan Kasal  <kasal@ucw.cz>
8376             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8378         * doc/autoconf.texi (Defining Directories): Mention
8379         AM_CPPFLAGS, as the way to modify CPPFLAGS when using Automake.
8381 2007-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8383         * lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
8384         here, this macro is expanded by AC_INIT.  Fixes 2.60 regression.
8385         * tests/base.at (configure arguments): New test.
8386         * THANKS: Update.
8387         Report by Olaf Lenz.
8389         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Expand macro
8390         arguments in comment.
8391         Report by Vincent Torri <vtorri at univ minus evry dot fr>.
8393 2007-08-20  Benoit Sigoure  <tsuna@lrde.epita.fr>
8395         * doc/autoconf.texi (File System Conventions): Index the proper
8396         way of detecting absolute file names.
8398 2007-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8400         * build-aux/config.guess, build-aux/config.sub,
8401         build-aux/elisp-comp, build-aux/install-sh, build-aux/mdate-sh,
8402         build-aux/missing, build-aux/texinfo.tex, doc/fdl.texi,
8403         doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
8404         * doc/autoconf.texi (GNU Free Documentation License): Adjust for
8405         sectioning change in fdl.texi.
8407         * bin/autoconf.as: Update --version output to match current GCS.
8408         * bin/autoheader.in: Likewise.
8409         * bin/autom4te.in: Likewise.
8410         * bin/autoreconf.in: Likewise.
8411         * bin/autoscan.in: Likewise.
8412         * bin/autoupdate.in: Likewise.
8413         * bin/ifnames.in: Likewise.
8415 2007-08-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8417         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not try to link a
8418         file to itself if source and build trees coincide.
8419         * tests/torture.at (AC_CONFIG_LINKS and identical files): New
8420         test.
8421         Report by Sebastian Freundt <hroptatyr@gna.org>.
8423 2007-07-20  Paul Eggert  <eggert@cs.ucla.edu>
8425         Reword the copyright notices to match what's suggested in GPLv3.
8426         In ChangeLog files, use more-permissive notice rather than GPL, as
8427         per usual GNU standards these days.
8429 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
8431         * doc/autoconf.texi (autoreconf Invocation): Document ACLOCAL_AMFLAGS
8432         limitation reported by Leo Moisio in
8433         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432941>.
8435 2007-07-03  Paul Eggert  <eggert@cs.ucla.edu>
8437         * COPYING: Update to GPLv3.  All uses changed.
8439 2007-06-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8440         and Paul Eggert  <eggert@cs.ucla.edu>
8442         * doc/autoconf.texi (Limitations of Usual Tools): sed -e ''
8443         fails on AIX 5.3.
8445 2007-06-17  Noah Misch  <noah@cs.caltech.edu>
8447         * lib/autotest/general.m4 (AT_INIT): Handle absolute `srcdir'.
8448         * tests/autotest.at (srcdir propagation): Test absolute `srcdir' and
8449         `srcdir' as subdirectory of `builddir'.
8451 2007-06-13  Noah Misch  <noah@cs.caltech.edu>
8453         * lib/autotest/general.m4 (AT_INIT): Compute $srcdir correctly.
8454         * tests/autotest.at (srcdir propagation): New test.
8455         * THANKS: Update.
8456         Reported by Mike Frysinger.
8458 2007-06-13  Paul Eggert  <eggert@cs.ucla.edu>
8460         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Set FPATH too.
8461         Problem reported by Fred Kreek in
8462         <http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00009.html>.
8463         * doc/autoconf.texi (Special Shell Variables): Warn about FPATH.
8464         (Macro Names, Defining Directories): Don't mention PATH as a name
8465         for a fully qualified file name, as this usage violates the GNU
8466         coding standards and we shouldn't recommend it.
8468         * lib/autotest/general.m4 (AT_INIT): Don't set PATH to the empty
8469         string and then assume shell builtins like "test" will work.
8471 2007-06-12  Noah Misch  <noah@cs.caltech.edu>
8473         * lib/autoconf/general.m4 (AC_SUBST): Raise a fatal error if VARIABLE is
8474         not a valid shell variable name.
8475         * tests/mktests.sh (ac_exclude_list): Add AC_ARG_VAR.
8476         * tests/torture.at (AC_SUBST: variable name validation): New test.
8477         Reported by Andreas Schwab.
8479 2007-06-04  Noah Misch  <noah@cs.caltech.edu>
8481         * doc/autoconf.texi (AC_F77_MAIN): Give a specific usage example that
8482         works with both C and C++.
8484 2007-06-03  Noah Misch  <noah@cs.caltech.edu>,
8485             Bruno Haible  <bruno@clisp.org>
8487         * lib/autoconf/c.m4 (AC_OPENMP): Use a simple loop instead of compiler
8488         brand tests.
8490 2007-05-31  Paul Eggert  <eggert@cs.ucla.edu>
8492         * doc/autoconf.texi (Particular Types): Give example of use for
8493         AC_TYPE_INT8_T etc.
8495 2007-05-29  Stepan Kasal  <kasal@ucw.cz>
8497         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Fix a typo.
8499 2007-05-28  Paul Eggert  <eggert@cs.ucla.edu>
8501         * doc/autoconf.texi (Particular Types): AC_TYPE_INT8_T does not
8502         define HAVE_INT8_T, and likewise for similar macros.
8503         Problem reported by Patrick Welche in
8504         <http://lists.gnu.org/archive/html/autoconf/2007-05/msg00062.html>.
8506 2007-05-25  Noah Misch  <noah@cs.caltech.edu>
8508         * bin/Makefile.am ($(top_builddir)/bin/autom4te): New dependency.
8510 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
8512         * lib/autoconf/c.m4 (AC_OPENMP): Don't echo --enable-openmp
8513         choice, since that's what we do with --enable-largefile etc.
8514         Redo indenting and assignments to simplify things a bit, and make
8515         the parens work with Emacs.
8517         * doc/autoconf.texi (Generic Compiler Characteristics): Fix typo
8518         in my previous change: AC_C_OPENMP -> AC_OPENMP.  Reported by Bruno
8519         Haible.
8521 2007-05-21  Noah Misch  <noah@cs.caltech.edu>
8523         * lib/autoconf/c.m4 (AC_OPENMP): Simplify use of AC_ARG_ENABLE.
8524         * tests/local.at (AT_CHECK_ENV): Exempt OPENMP_CFLAGS.
8526 2007-05-21  Bruno Haible  <bruno@clisp.org>
8528         * NEWS: Rename AC_C_OPENMP to AC_OPENMP.
8529         * lib/autoconf/c.m4 (AC_OPENMP): Renamed from AC_C_OPENMP.
8530         * doc/autoconf.texi (Generic Compiler Characteristics): Move
8531         renamed AC_OPENMP documentation here, from "C compiler".
8532         Mention C++ and Fortran.
8534 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
8536         * doc/autoconf.texi (C Compiler): Tweak OpenMP documentation a bit.
8538 2007-05-21  Bruno Haible  <bruno@clisp.org>
8540         * NEWS: Mention AC_C_OPENMP.
8541         * lib/autoconf/c.m4 (AC_C_OPENMP): New macro.
8542         * doc/autoconf.texi (C Compiler): Document AC_C_OPENMP.
8543         Based in part on Steven G. Johnson's investigations for the AX_OPENMP
8544         macro in the Autoconf macro archive.
8546 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8548         * bin/autom4te.in: Fix typos.
8550 2007-05-16  Noah Misch  <noah@cs.caltech.edu>
8552         * bin/autoconf.as: Handle `-' just like other input files.
8553         * bin/autom4te.in (parse_args): Pass `-' through.
8554         (handle_output): Skip the forbidden token search if we read from stdin.
8555         (up_to_date): Always treat stdin as out of date.
8556         * tests/tools.at (autoconf: input from stdin): New test.
8557         (autoconf: forbidden tokens, basic): Check a second `autoconf' run.
8559 2007-05-16  Stepan Kasal  <kasal@ucw.cz>
8561         * tests/foreign.at tests/semantics.at, tests/tools.at: Remove
8562         parameters for AT_CLEANUP.
8563         * tests/local.at (AT_CHECK_AU_MACRO): Likewise.
8565 2007-05-14  Paul Eggert  <eggert@cs.ucla.edu>
8567         * NEWS: Document that AC_C_RESTRICT checks 'restrict' last.
8568         * doc/autoconf.texi (C Compiler): Likewise.
8570 2007-05-14  Noah Misch  <noah@cs.caltech.edu>
8572         * lib/autoconf/c.m4 (AC_C_RESTRICT): Check `restrict' last.
8574 2007-05-09  Stepan Kasal  <kasal@ucw.cz>
8576         * doc/autoconf.texi: Direntry for "autoconf Invocation"
8577         renamed to "autoconf-invocation"
8579         * doc/autoconf.texi (Caching Results): The CACHE-ID variable
8580         in the examples should not use the internal "ac_" prefix.
8582 2007-05-05  Noah Misch  <noah@cs.caltech.edu>
8584         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): Use `eval'.
8585         * doc/autoconf.texi ($@, case): Document Zsh limitations.
8587 2007-05-03  Stepan Kasal  <kasal@ucw.cz>
8589         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
8590         Reorganize the comments before and in the macro.
8592 2007-05-02  Stepan Kasal  <kasal@ucw.cz>
8594         * lib/autoconf/lang.m4, lib/autoconf/c.m4,
8595         lib/autoconf/fortran.m4, lib/autoconf/erlang.m4: Cleanup of
8596         section titles and other comments; no code change.
8598 2007-05-01  Kevin Ryde  <user42@zip.com.au>
8600         * doc/autoconf.texi (Particular Programs): Typo
8601         @acindex{AC_PROG_MKDIR_P} shouldn't have "AC" in that call.
8603 2007-04-30  Paul Eggert  <eggert@cs.ucla.edu>
8605         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Don't imply that
8606         'configure' will fail if the shell lacks proper support for shell
8607         functions.  Suggested by RMS.
8609 2007-04-29  Paul Eggert  <eggert@cs.ucla.edu>
8611         * doc/autoconf.texi (Limitations of Builtins): Correct the warning
8612         about Solaris /bin/printf '%010000x' 123.  Problem reported by
8613         Bruno Haible.
8615 2007-04-28  Paul Eggert  <eggert@cs.ucla.edu>
8617         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look
8618         for a.* when searching for executables, as this prevents users
8619         from having files like a.c.  Problem reported by Ralf Wildenhues in:
8620         http://lists.gnu.org/archive/html/autoconf-patches/2007-04/msg00029.html
8621         This fixes a problem introduced on 2000-12-19.
8623 2007-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8625         * doc/autoconf.texi (Limitations of Builtins): Warn about Solaris
8626         /bin/printf '%010000x' 123.  Problem reported by Arto C. Nirkko
8627         via Bruno Haible.
8629 2007-04-12  Paul Eggert  <eggert@cs.ucla.edu>
8631         * NEWS: Document recent changes to AC_CHECK_ALIGNOF, AC_CHECK_SIZEOF,
8632         AC_CHECK_TYPE, AC_CHECK_TYPES.
8633         * doc/autoconf.texi (Generic types): C types must be type-names
8634         (the C terminology), not type-ids (the C++ term).  C++ types
8635         must not be anonymous.
8636         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Remove special case
8637         for C++; this drops support for anonymous struct and union types,
8638         which were problematic anyway.
8639         * tests/semantics.at (AC_CHECK_HEADERS_NEW): Adjust test to work even
8640         for C++.
8642 2007-04-12  Jim Meyering  <jim@meyering.net>
8644         * doc/autoconf.texi (Libraries): Typo fix: insert missing "in".
8646 2007-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8648         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Fix AC_CONFIG_LINKS
8649         to prefer a link source from the build tree, if it exists.
8650         Report by Pallav Gupta <pallavgupta@gmail.com>.
8652 2007-04-11  Paul Eggert  <eggert@cs.ucla.edu>
8654         * doc/autoconf.texi (Generic Types): Document the restrictions
8655         on types imposed by AC_CHECK_TYPE, AC_CHECK_TYPES.
8656         (Generic Compiler Characteristics): AC_CHECK_SIZEOF now works
8657         with objects too.  Document the restrictions on its use.
8658         Document the restrictions on AC_CHECK_ALIGNOF's type argument.
8659         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW):
8660         For C, just try sizeof (TYPE) and sizeof ((TYPE)); if the former
8661         works but the latter doesn't, then it's a valid type.
8662         This lets people use function types and so forth.
8663         For C++ there doesn't seem to be a simple solution, so leave it alone.
8664         (AC_CHECK_SIZEOF): Allow argument to be a variable.
8665         (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Don't bother to invoke
8666         AC_CHECK_TYPE; that wasn't documented or necessary.
8668 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
8670         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Skip AS_TEST_X
8671         when cross-compiling.
8673 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
8675         * doc/autoconf.texi (External Software): Fix a typo in the
8676         previous change.
8678 2007-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8680         * doc/autoconf.texi (External Software, Package Options):
8681         Fix ambiguous wording.  Report by Reuben Thomas <rrt@sc3d.org>.
8683 2007-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8685         * doc/autoconf.texi (Particular Types): AC_C_LONG_DOUBLE is now
8686         obsolescent.  Suggested by Bruno Haible.
8687         * NEWS: Document this.
8689 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
8691         * doc/autoconf.texi (Here-Documents, Limitations of Builtins):
8692         (Limitations of Usual Tools): Don't say "older" if Solaris 10 by
8693         default still has the problem.  Problem reported by Bruce Korb.
8695 2007-03-28  Stepan Kasal  <kasal@ucw.cz>
8696         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8698         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix a
8699         comment in the generated config.status.
8701 2007-03-27  Stepan Kasal  <kasal@ucw.cz>
8703         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Update comment.
8705 2007-03-26  Paul Eggert  <eggert@cs.ucla.edu>
8707         * doc/autoconf.texi (Shellology): Rework treatment of the 'test'
8708         command and case statements to make it a bit clearer and describe
8709         more pitfalls.
8711 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
8713         * doc/autoconf.texi (C Compiler): Mention that AC_PROG_CC_C99 also
8714         checks for unsigned long long int.
8716 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8718         * doc/autoconf.texi (Limitations of Usual Tools): Warn about other
8719         nonstandard grep R.E. escape sequences.
8721 2007-03-17  Jim Meyering  <jim@meyering.net>
8723         * doc/autoconf.texi: Adjust grammar around use of "heuristics".
8724         (Limitations of Usual Tools): Also list \< and \>, and mention that
8725         HP-UX's grep, like the one from Solaris, does not support that syntax.
8727 2007-03-09  Stepan Kasal  <kasal@ucw.cz>
8729         * doc/autoconf.texi (Specifying Names): `--host' does not
8730         change the build type.
8732 2007-03-05  Paul Eggert  <eggert@cs.ucla.edu>
8734         * doc/autoconf.texi (C Compiler): Warn that AC_C_BIGENDIAN
8735         suggests AC_CONFIG_HEADERS.
8736         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Warn if not using
8737         AC_CONFIG_HEADERS.  Problem reported by
8738         Peter O'Gorman.
8740 2007-02-28  Paul Eggert  <eggert@cs.ucla.edu>
8742         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Fix typo "__LITLE_ENDIAN__".
8743         Problem reported by Paolo Bonzini in:
8744         http://lists.gnu.org/archive/html/autoconf-patches/2007-02/msg00024.html
8745         * tests/semantics.at (AC_C_BIGENDIAN): Don't reject hosts that have
8746         universal binaries.  Problem reported by Elias Pipping.
8748 2007-02-27  Paul Eggert  <eggert@cs.ucla.edu>
8750         * NEWS: AC_C_BIGENDIAN now supports universal binaries a la Mac OS X.
8751         * doc/autoconf.texi (C Compiler): Document this.  There is a new
8752         extra argument ACTION-IF-UNIVERSAL.
8753         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Implement this.
8754         Add support for Solaris-style _LITTLE_ENDIAN and _BIG_ENDIAN.
8755         Reindent for sanity's sake.
8757 2007-02-24  Eric Blake  <ebb9@byu.net>
8759         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
8760         copyright.
8761         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
8762         * lib/autotest/general.m4 (AT_INIT): Likewise.
8763         (_AT_DECIDE_TRACEABLE): Fix syntax highlighting.
8765 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8767         * lib/autotest/general.m4 (AT_INIT): With --clean, return exit
8768         status of rm so we know when it failed.
8769         If cleaning of test dir failed before running the test, warn.
8770         Output the line separator in verbose mode before the warning
8771         to make clear the warning belongs to the following test.
8773 2007-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8775         * doc/autoconf.texi (Parentheses): Mention problem with (( in
8776         shells.
8778 2007-02-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8779         and Paul Eggert  <eggert@cs.ucla.edu>
8781         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix quoting
8782         errors introduced in last change.
8784 2007-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8786         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer \r to
8787         an actual carriage return.  Use "ac_cr" to contain the actual
8788         carriage return.
8789         * doc/autoconf.texi (Limitations of Usual Tools): Document problem
8790         with traditional Awk and begin.
8791         * tests/torture.at (Limitations of Builtins): Document the problem
8792         with Bash 2.03 printf.
8793         (Substitute and define special characters):
8794         Remove trailing white space.  Work around a bug in Solaris 8 /bin/bash.
8796 2007-02-06  Ralf Menzel  <menzel@ls6.cs.uni-dortmund.de>  (tiny change)
8798         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Redirect
8799         input from /dev/null in awk test, so even Solaris /usr/bin/awk
8800         will not wait for input with a script containing only a BEGIN
8801         rule.
8803 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
8805         * doc/autoconf.texi (Introduction, Why GNU M4): Clarify M4 version
8806         requirements.
8807         * README: Likewise.
8809 2007-02-02  Eric Blake  <ebb9@byu.net>
8811         * NEWS: Update copyright.
8813         * m4/m4.m4 (AC_PROG_GNU_M4): Reject M4 1.4 through 1.4.4 as
8814         broken.
8815         * configure.ac: Update error message.
8816         * NEWS: Note that M4 1.4.5 or later is now a hard dependency.
8817         Reported by Gary Vaughan and Jim Meyering, and problem analyzed
8818         by Stepan Kasal:
8819         http://lists.gnu.org/archive/html/bug-autoconf/2006-11/msg00025.html
8821 2007-01-31  Eric Blake  <ebb9@byu.net>
8823         * THANKS (people): Update.
8825 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8827         * doc/autoconf.texi (Shellology): pdksh 5.2.14 is still the
8828         latest version.
8829         (Shell Substitutions): Note problems with @{var:=value} etc.
8830         Add a new section for problems with @{#var} etc.  Problem noted
8831         by Ralf Wildenhues.  See:
8832         http://lists.gnu.org/archive/html/libtool-patches/2005-01/msg00157.html
8834 2007-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8836         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Also
8837         AC_SUBST([MKDIR_P]), so that Automake < 1.10 will pick up its
8838         trace, if a package uses AC_PROG_MKDIR_P explicitly.  The actual
8839         substitution will still be done by the special code.
8840         Report by Jim Meyering.
8842         * doc/autoconf.texi (File System Conventions): Mention that
8843         $PATH_SEPARATOR is for the build system only.
8844         Report by Keith Marshall.
8846 2007-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8848         * doc/autoconf.texi (Setting Output Variables): Mention that
8849         all non-NUL characters are ok in substituted values.
8850         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Fix comment typo.
8851         (_AC_OUTPUT_FILES_PREPARE): Test and use backslash escaping of
8852         carriage return for $AWK, needed for BSD awk.
8853         * tests/torture.at (Substitute and define special characters):
8854         Test all 8 bit non-NUL characters.
8855         Report against Automake by Patrick Welche.
8857 2007-01-15  Stepan Kasal  <kasal@ucw.cz>
8859         * doc/autoconf.texi: Direntry for "autoconf Invocation" renamed.
8861 2007-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8863         * lib/autoconf/programs.m4 (AC_PROG_SED): When closing a pipe
8864         early on the reader side, drop stderr of the input to avoid
8865         `broken pipe' error output; this may happen even with shell
8866         builtin `echo' of some bash versions.  Reports by Ian Macdonald
8867         <iamacdo@telkomsa.net> and Sam Sexton <Sam.Sexton@reuters.com>.
8869 2007-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8871         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Use newlines to
8872         separate items of `ac_user_opts', to avoid long lines.
8873         (_AC_INIT_PARSE_ENABLE2, _AC_ENABLE_IF_ACTION): Adjust.
8875 2007-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8877         * doc/autoconf.texi: Fix some typos.
8879 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8881         Fix some wording problems noted by Paolo Bonzini in:
8882         http://lists.gnu.org/archive/html/autoconf-patches/2007-01/msg00077.html
8883         * doc/autoconf.texi (Signed Overflow Examples): Give more
8884         discussion about the allow_superuser_privileges example,
8885         and change it a bit to make things clearer.
8886         (Optimization and Wraparound): Clarify whether the compiler
8887         will generate an infinite loop for the example derived from
8888         Autoconf's mktime test.
8889         (Signed Overflow Advice): Say that -ftrapv is meant for debugging.
8890         Also, clarify unsigned multiplication overflow.
8892 2007-01-04  Eric Blake  <ebb9@byu.net>
8894         * bin/Makefile.am (RELEASE_YEAR): New macro.
8895         (edit): Use it to supply correct copyright year to scripts.
8896         * bin/autoconf.as (version): Use it.
8897         * bin/autoheader.in ($version): Likewise.
8898         * bin/autom4te.in ($version): Likewise.
8899         * bin/autoreconf.in ($version): Likewise.
8900         * bin/autoscan.in ($version): Likewise.
8901         * bin/autoupdate.in ($version): Likewise.
8902         * bin/ifnames.in ($version): Likewise.
8904 2007-01-02  Paul Eggert  <eggert@cs.ucla.edu>
8906         * doc/autoconf.texi (Integer Overflow): Revised based on today's
8907         feedback.  The most important changes document what happens when
8908         you convert an out-of-range value to a signed integer type, and
8909         say that (sum < a) != (b < 0) reliably detects overflow when sum =
8910         a + b.
8912         * doc/autoconf.texi (Integer Overflow): Greatly expand and
8913         rewrite, taking notions from the recent discussion on the gcc and
8914         autoconf mailing lists; please see
8915         http://lists.gnu.org/archive/html/autoconf-patches/2006-12/msg00091.html
8916         and follow the many links.
8917         (Integer Overflow Basics, Signed Overflow Examples):
8918         (Optimization and Wraparound, Signed Overflow Advice):
8919         (Signed Integer Division): New sections.
8921 2006-12-28  Steven G. Johnson  <stevenj@alum.mit.edu>
8923         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't include
8924         preprocessor macro arguments in traced name.
8925         * doc/autoconf.texi (Defining symbols): Document longstanding
8926         support for AC_DEFINE-ing macros with arguments, and document
8927         behavior when the same variable has multiple AC_DEFINEs.
8928         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Revert to the
8929         old implementation which AC_DEFINEs the FC_FUNC and FC_FUNC_
8930         macros directly, giving much shorter and simpler code.
8932 2006-12-28  Malcolm Purvis <malcolmp@xemacs.org>  (trivial change)
8934         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Insert a
8935         space before "$ac_configure_args" to prevent a 'config.status
8936         --recheck' failure if ac_configure_args doesn't contain a leading
8937         space.  This works around a problem with the XEmacs configure.ac,
8938         which uses the (undocumented) ac_configure_args variable
8939         inconsistently with Autoconf.
8941 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8943         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):
8944         Include <limits.h>, and use its INT_MAX to rewrite the
8945         j loop so that it does not overflow 'int'.  Problem reported by
8946         Ralf Wildenhues in
8947         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
8948         Play it safe by shifting left by 1 rather than multiplying by 2,
8949         as GCC is less likely to optimize this away when the value
8950         is signed (when it assumes overflow leads to undefined behavior).
8951         Also, don't assume time_t uses two's complement.
8953 2006-12-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8955         * tests/torture.at (Substitute a 2000-byte string): Avoid using
8956         a 10kB long (multi-line) string literal, OpenServer 5.0.7 ksh
8957         dumps core on it.  Report by Tim Rice.
8959 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
8961         * lib/autoconf/general.m4 (AC_ARG_ENABLE): Print help about
8962         --disable-option-checking to --help output even when
8963         AC_PRESERVE_HELP_ORDER is not used.
8964         (_AC_INIT_PARSE_ENABLE2): Print warnings using actual --enable or
8965         --with argument, rather than argument with [-.] replaced by
8966         underscores.
8967         * NEWS: Fix typo in previous change; the news was in the
8968         wrong section.
8970 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8972         * NEWS: Warnings are now generated by default for unknown
8973         --enable-* and --with-* options.
8974         * doc/autoconf.texi (Option Checking): Renamed from
8975         (Configure Option Checking).  Tighten up the wording a bit.
8976         (External Software, Package Options): Cross-reference to Option
8977         Checking, and use this to shorten our section.
8978         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Prefer test -n
8979         "$x" to test "x$foo" != x.
8980         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
8981         Don't warn if $enable_option_checking is "no".
8982         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Initialize
8983         ac_unrecognized_opts to the empty string.
8984         Don't echo the unrecognized opts, as this might mishandle
8985         backslashes or leading -.
8986         (AC_PRESERVE_HELP_ORDER): Put the --disable-option-checking
8987         usage next to the other --disable-FEATURE options in the
8988         help string.
8990 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
8992         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, _AC_INIT_PARSE_ARGS):
8993         (_AC_INIT_PARSE_ENABLE2, _AC_INIT_HELP, _AC_ENABLE_IF):
8994         Print warning for unrecognized --with and --enable options
8995         (AC_DISABLE_OPTION_CHECKING): New macro to disable warnings.
8996         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS):
8997         Disable option checking when subdirs are configured.
8998         (AC_OUTPUT): If warnings are enabled, print warning about
8999         unrecognized --with and --enable options at the end of
9000         the configure output (as well as at the beginning).
9001         * doc/autoconf.texi (Option Checking): New node.
9002         Document new option warning functionality.
9004 2006-12-16  Eric Blake  <ebb9@byu.net>
9006         * configure.ac (AC_INIT): Bump version, since 2.61a is released.
9007         * NEWS: Start news for current version.
9009 2006-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9011         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
9012         Define HAVE_GETMNTENT to 1, not to the empty string.
9013         Problem originally reported by Jochen Friedrich in
9014         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403243>.
9016         This change prompted by a problem report by Andrey Simonenko in
9017         <http://lists.gnu.org/archive/html/bug-autoconf/2006-12/msg00026.html>.
9018         * doc/autoconf.texi (Defining Symbols): AC_DEFINE works for
9019         object-like macros only, in the traditional portable character
9020         set.
9021         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL):
9022         Warn about attempts to define things that are not identifiers.
9023         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Rewrite to avoid
9024         awful hack that AC_DEFINEd macro names containing parentheses.
9026 2006-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9028         * doc/autoconf.texi: Undo some of the 2006-12-10 change.  It was
9029         too drastic, even if Texinfo in theory requires it for info mode.
9031         (config.status Invocation): Renamed back from Recreating a
9032         Configuration).
9033         (Obsolete config.status Use): Renamed back from Obsolete Recreation.
9034         (Autoconf 2.13): Renamed back from 20th-century Autoconf 2.
9036 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
9038         * NEWS: Version 2.61a.
9040 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
9041         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9043         * NEWS: Document changes with echo and printf, and the lack
9044         of limits on the total size of multi-line values of substituted
9045         variables, and the AC_FUNC_FSEEKO fix.
9047 2006-12-10  Paul Eggert  <eggert@cs.ucla.edu>
9049         * doc/autoconf.texi (Writing Autoconf Input): Renamed from
9050         Writing configure.ac.
9051         (Autoconf Input Layout): Renamed from configure.ac Layout.
9052         (Recreating a Configuration): Renamed from config.status Invocation.
9053         (Obsolete Recreation): Renamed from Obsolete config.status Use.
9054         (acconfig Header): Renamed from acconfig.h.
9055         (20th-century Autoconf 2): Renamed from Autoconf 2.13.
9056         (Writing Testsuites): Renamed from Writing testsuite.at.
9057         (Autom4te Cache): Renamed from autom4te.cache.
9059         * BUGS: Remove mention of VPATH problem, since it's now documented
9060         not to be a bug in the Autoconf build procedure itself, but rather
9061         a problem with the proprietary `make' programs.
9063         * doc/autoconf.texi (Build Directories): Add a cross reference
9064         to VPATH and Make.
9066         * build-aux/config.guess, build-aux/config.sub, build-aux/texinfo.tex:
9067         * doc/standards.texi: Sync from gnulib.
9069         * man/autoconf.1, man/autoheader.1, man/autom4te.1, man/autoreconf.1:
9070         * man/autoscan.1, man/autoupdate.1, man/config.guess.1:
9071         * man/config.sub.1, man/ifnames.1: Remove from CVS, since they're
9072         generated automatically.
9074 2006-12-06  Paul Eggert  <eggert@cs.ucla.edu>
9076         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Also try -xc99=all, for Sun
9077         C 5.8 on Solaris 10.  Using -xc99=all rather than -xc99 bypasses
9078         the buggy -xc99 option of Forte Developer 7 C on Solaris 9.
9080 2006-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9082         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the
9083         `CEOF$ac_eof' special marker, the awk script cannot contain a
9084         line matching `^CEOF', so this is not needed any more.
9085         * tests/torture.at (Substitute a newline): Expose the `%!_!# '
9086         special marker in the test.
9088 2006-12-06  Stepan Kasal  <kasal@ucw.cz>
9090         * tests/tools.at (autom4te preselections): Use `find -newer';
9091         remove one of the sleeps.
9093         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Make it
9094         more readable, using ...
9095         (_AC_INIT_PARSE_ENABLE2): ... this new helper macro.
9097         * doc/autoconf.texi (autoheader Invocation): Do not double-
9098         quote the parameter of `AH_BOTTOM' in the example.
9100 2006-12-05  Stepan Kasal  <kasal@ucw.cz>
9102         * doc/autoconf.texi (Configuration Headers): Remove the
9103         example with multiple input files.
9104         (autoheader Invocation): Encourage `AH_BOTTOM', discouraging
9105         multiple input files.
9107 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9109         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When
9110         creating the awk substitution script, handle one input line at a
9111         time, so that the maximum length of a substituted (multi-line)
9112         value is not limited by the size of the sed pattern space.
9113         The trade-off is a slightly repetitive sed script.
9114         * doc/autoconf.texi (Limitations of Usual Tools): Branch labels
9115         can only have up to 7 characters, due to Solaris 10 /bin/sed.
9116         * tests/torture.at (Substitute a 2000-byte string): Increase the
9117         test with several long lines, they should not be caught by sed
9118         limits any more.
9120         * tests/tools.at (autom4te preselections): New test, to flag
9121         entries missing from autom4te.cfg.
9122         Report by David Byron <dbyron@hheld.com>.
9124         * tests/torture.at (Substitute a 2000-byte string): Actually use
9125         AC_PROG_AWK, so the last change works as intended.
9126         (Substitute and define special characters): Likewise.
9127         (Substitute a newline): Likewise.
9129         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use `$AWK'
9130         instead of `awk' consistently.
9131         (_AC_OUTPUT_CONFIG_STATUS): Initialize $AWK.
9132         * tests/torture.at (Torturing config.status): Test both the
9133         result of AC_PROG_AWK and plain awk.
9134         (Substitute a 2000-byte string): Likewise.
9135         (Substitute and define special characters): Likewise.
9136         (Substitute a newline): Likewise.
9138 2006-12-04  Paul Eggert  <eggert@cs.ucla.edu>
9140         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko
9141         can be assigned to a function pointer.  Problem reported by
9142         Peter Palfrader in <http://bugs.debian.org/401377>.  Based on
9143         part of a patch by Ralf Wildenhues in that same bug report.
9145 2006-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9147         * tests/mktests.sh (ac_exclude_list): Exclude AC_FUNC_SETVBUF_REVERSED.
9148         * tests/semantics.at (AC_FUNC_SETVBUF_REVERSED): New test.
9150 2006-12-01  Eric Blake  <ebb9@byu.net>
9152         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in
9153         cross-compiling from cygwin to mingw.
9154         Reported by Bob Rossi.  This resurrects the 2000-11-30 patch to
9155         aclang.m4, which was mistakenly removed in the 2001-09-17 patch
9156         to lib/autoconf/c.m4.
9158 2006-12-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9160         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Use a longer test
9161         string for more reliable failure.  Wrap the entire test that
9162         causes the broken Solaris printf to dump core, in a subshell,
9163         so the segmentation fault message is reliably suppressed.
9164         Fix shell expansion errors by using /usr/ucb/echo always;
9165         avoid an error on systems without it by another subshell.
9166         Avoid m4 expansion of `$1'.  Set the zeroth argument of the
9167         subshell-$as_echo to `as_echo', for better error message.
9169 2006-11-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9171         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): If `BASH_ARGV' or
9172         `BASH_SOURCE' contain a newline, set them to empty, as they may
9173         not be unset.
9175 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
9177         Turn AC_FUNC_SETVBUF_REVERSED into a noop.  It's been obsolete for
9178         years and is too hard to maintain now.  The last straw was
9179         reported by Jerker Baeck in
9180         <http://lists.gnu.org/archive/html/autoconf/2006-11/msg00102.html>.
9181         * NEWS: AC_FUNC_SETVBUF_REVERSED is now obsolete.
9182         * doc/autoconf.texi (Particular Functions): Move
9183         AC_FUNC_SETVBUF_REVERSED from here...
9184         (Obsolete Macros): ... to here.  Say that it does nothing now.
9185         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
9186         Turn into (almost) a no-op.
9188         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL, AC_C_CONST):
9189         (AC_C_VOLATILE):
9190         Do not recommend via AN_FUNCTION, AN_IDENTIFIER, or AN_HEADER.
9191         These macros are obsolescent and new applications shouldn't need them.
9192         * lib/autoconf/functions.m4 (AC_FUNC_CLOSEDIR_VOID, AC_REPLACE_FNMATCH):
9193         (AC_FUNC_GETLOADAVG, AC_FUNC_GETPGRP, AC_FUNC_MEMCMP):
9194         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP, AC_FUNC_STAT, AC_FUNC_LSTAT):
9195         (AC_FUNC_STRFTIME, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
9196         (AC_FUNC_VPRINTF): Likewise.
9197         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT, AC_HEADER_STAT):
9198         (AC_HEADER_STDC, AC_HEADER_SYS_WAIT, AC_HEADER_TIME): Likewise.
9199         * lib/autoconf/types.m4 (AC_STRUCT_TM): Likewise.
9201         * doc/autoconf.texi (Setting Output Variables): Mention that
9202         @VAR1@VAR2 has unspecified behavior.  Problem reported by
9203         Ralf Wildenhues.
9204         * NEWS: Mention this.
9206         * Makefile.am: Put only a single '#' into the copyright notice,
9207         so that it's also present in the output file.  Standardize wording
9208         in makefile copyright notices to match GNU coding standards.
9209         * bin/Makefile.am: Likewise.
9210         * doc/Makefile.am: Likewise.
9211         * lib/Makefile.am: Likewise.
9212         * lib/freeze.mk: Likewise.
9213         * lib/autoconf/Makefile.am: Likewise.
9214         * lib/autoscan/Makefile.am: Likewise.
9215         * lib/autotest/Makefile.am: Likewise.
9216         * lib/m4sugar/Makefile.am: Likewise.
9217         * man/Makefile.am: Likewise.
9218         * tests/Makefile.am: Likewise.
9219         * lib/emacs/Makefile.am: Remove copyright notice; it's just a
9220         one-line file.
9222 2006-11-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9224         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix error
9225         in the sed script that mangles the awk script: delete up to the
9226         first exclamation mark only.
9227         * tests/torture.at (Substitute and define special characters):
9228         Test '!' too.
9230 2006-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9232         Rewrite config files generation: avoid quadratic growth in
9233         the number of substituted variables by using awk instead of sed
9234         for the bulk of the substitutions.
9235         * NEWS: Mention this.
9236         * doc/autoconf.texi (Setting Output Variables): `|#_!!_#|' is also
9237         forbidden in the output (and thus input) file.
9238         * lib/autoconf/status.m4 (_AC_AWK_LITERAL_LIMIT): New macro.
9239         (_AC_OUTPUT_FILES_PREPARE): Instead of several sed scripts,
9240         generate just one large awk script for substitutions,
9241         eliminating much of the earlier complexity, while adding some
9242         new complexity.  Only expand the substitution templates at
9243         configure time, for smaller configure script size.  If
9244         _AC_SUBST_FILES are used, test 'awk' for working getline support
9245         at config.status time.  If absent, interpolate through the
9246         shell.  The awk script was written with much help
9247         from Paolo Bonzini and Paul Eggert.
9248         (_AC_SED_CMD_NUM, _AC_SED_DELIM_NUM, _AC_SED_FRAG): Removed.
9249         (_AC_SED_FRAG_NUM): Likewise.
9250         (_AC_SUBST_CMDS): Renamed from...
9251         (_AC_SED_CMDS): ...this.
9252         (_AC_OUTPUT_FILE): Use _AC_SUBST_CMDS.
9253         * tests/torture.at (Substitute a 2000-byte string): Also
9254         substitute a line with 1000 words, and a variable with several
9255         long lines.
9256         (Substitute and define special characters): Test awk special
9257         characters, and put substitution input strings `@foo@' in the
9258         output, to test that no recursion happens; test several other
9259         combinations from Paolo Bonzini.
9261 2006-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9263         * lib/autotest/general.m4 (AT_INIT): Undo recent changes
9264         that replaced echo with AS_ECHO where this wasn't necessary.
9265         Problem reportd by Ralf Wildenhues.
9266         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Port to Solaris 7,
9267         where "/usr/bin/printf '%s\n' S" dumps core if S is long.
9268         This is Sun bug 4206210.  Problem reportd by Ralf Wildenhues.
9270 2006-11-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9272         * lib/freeze.mk (GREP): Removed, no need to initialize this.
9274 2006-11-21  Paul Eggert  <eggert@cs.ucla.edu>
9276         * doc/autoconf.texi (Limitations of Usual Tools): Don't claim
9277         that traditional Awk lacks 3-arg "split".  It has it.
9278         Mention that FS must be a single character, and a few other
9279         99-byte limits of traditional Awk.
9280         Mention that if (i in a) doesn't work with traditional Awk.
9282 2006-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9284         * tests/autotest.at (BSx641-newline in command):
9285         (BS-BS-newline in command, BSx640-newline in command):
9286         (Newline-CODE-BS-newline in command):
9287         (Single-quote-BS-newline in command):
9288         (Single-quote-newline-BS-newline in command):
9289         Use printf '%s\n' instead of echo, for portability to hosts
9290         where echo interprets backslashes.  This will break on hosts
9291         that lack printf, but for now let's assume all such hosts
9292         are dead (if not, we should get reports of test failures).
9294 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9296         'echo' has some portability problems, when given a first argument
9297         with a leading '-', or when given any argument containing '\'.
9298         Avoid using 'echo' in these cases.
9299         * bin/Makefile.am $(bin_SCRIPTS): Rewrite to avoid 'echo' entirely.
9300         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Likewise.
9301         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
9302         * lib/autotest/general.m4 (AT_INIT): Likewise.
9303         * bin/autoconf.as: Use AS_ECHO rather than plain echo, when the
9304         argument might be unportable.
9305         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Likewise.
9306         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Likewise.
9307         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT):
9308         (_AC_FC_LIBRARY_LDFLAGS): Likewise.
9309         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Likewise.
9310         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE, _AC_INIT_PREPARE):
9311         (_AC_ARG_VAR_VALIDATE, AC_ARG_PROGRAM, _AC_MSG_LOG_CONFTEST):
9312         (AC_RUN_LOG, _AC_RUN_IFELSE, _AC_LIBOBJS_NORMALIZE): Likewise.
9313         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
9314         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Likewise.
9315         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
9316         (AC_PROG_MAKE_SET): Likewise.
9317         * lib/autoconf/status.m4 (_AC_SRCDIRS, _AC_OUTPUT_HEADER):
9318         (_AC_OUTPUT_SUBDIRS, _AC_OUTPUT_CONFIG_STATUS): Likewise.
9319         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT, AT_INIT):
9320         (AT_CLEANUP, _AT_DECIDE_TRACEABLE, _AT_CHECK): Likewise.
9321         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE, _AS_ECHO_UNQUOTED):
9322         (_AS_BASENAME_SED, _AS_DIRNAME_SED, AS_MKDIR_P, AS_TMPDIR, AS_UNAME):
9323         (AS_TR_SH, AS_TR_CPP, AS_VAR_GET): Likewise.
9324         * bin/autoconf.as: Redo verbose flag implementation, as the old
9325         scheme wouldn't work with AS_ECHO.
9326         * lib/autotest/general.m4 (AT_INIT): Likewise.
9327         * lib/autoconf/general.m4 (AC_MSG_RESULT, AC_MSG_RESULT_UNQUOTED):
9328         Don't use ECHO_T, since ECHO_N is now reliable.
9329         * lib/autotest/general.m4 (AT_INIT): Likewise.
9330         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use sed "$script"
9331         rather than using a here-document to put the script into a file.
9332         (_AC_DO_ECHO): Hoist the eval out of the echo, so that we can
9333         use AS_ECHO.
9334         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Likewise.
9335         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Use
9336         AS_ECHO_N rather than ECHO_N and ECHO_C.  This doesn't fix any
9337         bug, but we might as well stop using ECHO_N and ECHO_C internally.
9338         * lib/autotest/general.m4 (AT_SETUP): Likewise.
9339         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N): Likewise.
9340         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
9341         (_AC_OUTPUT_MAIN_LOOP): Rework echo so that it has just one
9342         operand, as AS_ECHO requires.  Avoid double file name expansion.
9343         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke _AS_ECHO_PREPARE.
9344         Don't set as_nl, since _AS_ECHO_PREPARE does that now.
9345         (_AS_PREPARE): Comment that _AS_ECHO_N_PREPARE is just for user code.
9346         (AS_ECHO, AS_ECHO_N, _AS_ECHO_PREPARE): New macros.
9347         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
9348         Double-quote strings that would otherwise contain M4 comments.
9349         * tests/m4sh.at (AS_ECHO and AS_ECHO_N): New test.
9351         * configure.ac (AC_INIT): Bump to 2.61a.
9352         * NEWS: Likewise.
9354 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9356         Version 2.61.
9358         * configure.ac (AC_INIT): Bump to 2.61.
9359         * NEWS: Likewise.
9361         * tests/autotest.at (Macro with backslash in a test title):
9362         Comment out for now, as this tests neither fails nor passes
9363         reliably.  Problem reported by Ralf Wildenhues.
9365 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
9367         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos
9368         in previous change, which caused test failures.
9370 2006-11-16  Stepan Kasal  <kasal@ucw.cz>
9372         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Factor out
9373         code for --enable, --disable, --with, and --without to...
9374         (_AC_INIT_PARSE_ENABLE): ... a new macro.
9375         * doc/autoconf.texi (Package Options):
9376         * NEWS: Document that AC_ARG_ENABLE allows dots, too.
9378 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
9380         Import these changes from config via gnulib:
9382         2006-11-15  Ben Elliston  <bje@gnu.org>
9384         From Josselin Mouette <joss@debian.org>:
9385         * build-aux/config.guess (SX-8:SUPER-UX:*:*): New.
9387         2006-11-08  Ben Elliston  <bje@gnu.org>
9389         * build-aux/config.guess (authenticamd:Interix*:[3456]*): Another AMD64.
9391         2006-11-07  Steve Woodford  <scw@NetBSD.org>
9392                     Ben Elliston  <bje@gnu.org>
9394         * build-aux/config.guess (*:NetBSD:*:*): Handle sh5el arch.
9395         * build-aux/config.sub (sh5el): New basic_machine.
9398         Import this change from coreutils:
9400         2006-02-13  Jim Meyering  <jim@meyering.net>
9402         * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
9405         Import this change from gnustandards via gnulib:
9407         2006-11-15  Karl Berry  <karl@gnu.org>
9409         * standards.texi: core -> memory, throughout.
9410         (CPU Portability): show correct example of calling write
9411         on a char value; thanks to Paul Eggert for the code.
9412         Both of these suggestions from Eugene Y. Vasserman.
9415         Import these changes from texinfo via gnulib:
9417         2006-11-08  Karl Berry  <karl@gnu.org>
9419         * build-aux/texinfo.tex (\dopdfimage): look for png, jpg/jpeg/JPG, and
9420           as well as pdf images, since they are supported in pdftex with
9421           no further ado.
9423         2006-11-05  Karl Berry  <karl@gnu.org>
9425         * doc/texinfo.tex (Image Syntax): don't mention GIF any more.
9427 2006-11-13  Paul Eggert  <eggert@cs.ucla.edu>
9429         * NEWS: Document the AC_ARG_WITH change.
9431 2006-11-13  Bruno Haible  <bruno@clisp.org>
9433         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): For --with, --without
9434         options, transliterate also dots to underscores.
9435         (_AC_ENABLE_IF): Transliterate also dots to underscores.
9436         * doc/autoconf.texi (External Software): Document that AC_ARG_WITH's
9437         first argument may also contain dots.
9439 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9441         * tests/mktests.sh (ac_exclude_list): Exclude AC_PROG_CXX_C_O, for
9442         benefit of platforms like Solaris+GCC where it is common to have a
9443         non-working g++ installation.
9445 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9446         and Joel E. Denny  <jdenny@ces.clemson.edu>
9447         and Paul Eggert  <eggert@cs.ucla.edu>
9449         * tests/autotest.at (AT_CHECK_AT_TITLE): Fix shell quoting bugs
9450         and non-portable sed scripts, and use $CONFIG_SHELL when invoking
9451         ./micro-suite.
9453 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
9455         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Set
9456         ac_cv_type_long_long_int to 'yes' instead of 'cross-compiling'.
9457         Imported from a similar patch to gnulib by Bruno Haible.
9459 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
9461         * NEWS: New macros AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS.
9462         * doc/autoconf.texi (C Compiler): Document them.
9463         * lib/autoconf/c.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS):
9464         New macros, taken from gnulib.
9466 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
9468         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
9469         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
9470         Matthew Woehlke.
9472 2006-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9474         * tests/torture.at (Configuring subdirectories): Do not skip
9475         Automake 1.10 nor future Automake 11.1 (sic).
9477 2006-10-26  Joel E. Denny  <jdenny@ces.clemson.edu>
9478         and Stepan Kasal  <kasal@ucw.cz>
9480         Handle special characters in test case titles correctly.
9481         * lib/autotest/general.m4 (AT_INIT): M4-quote and AS_ESCAPE AT_help_all
9482         properly.
9483         (AT_SETUP): M4-quote and AS_ESCAPE the title properly everywhere.
9484         * tests/autotest.at (AT_CHECK_AT_TITLE): Add EXPANDED-TITLE-TO-TEST
9485         argument.  Extend to check titles printed by ./micro-suite and
9486         ./micro-suite -l and the title in micro-suite.log.
9487         (Backquote in a test title,
9488         Single-quote in a test title,
9489         Double-quote in a test title): Don't expect failure anymore.
9490         (Backslash in a test title): Put a non-whitespace character after the
9491         backslash so that Bourne shells might actually see it as an escape
9492         sequence.
9493         (Brackets in a test title,
9494         Pound in a test title,
9495         Comma in a test title,
9496         Quoted Macro in a test title,
9497         Macro in a test title,
9498         Macro with single-quote in a test title): New tests.
9499         (Macro with backquote in a test title,
9500         Macro with double-quote in a test title,
9501         Macro with backslash in a test title): New tests expected to fail.
9502         * tests/torture.at (#define header templates): M4-quote this title in
9503         AT_SETUP call so that no M4 code is commented inadvertently somewhere.
9504         The visible effect was a stray [] in the testsuite output.
9506 2006-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9508         * doc/autoconf.texi (Limitations of Builtins): Do not invoke
9509         `trap ... 0' inside a function, for AIX sh.
9511 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
9513         * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0,
9514         since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build
9515         5363) simply issues a warning when dividing by zero at compile
9516         time.  Problem reported by Elias Pipping.
9518 2006-10-26  Eric Blake  <ebb9@byu.net>
9520         * THANKS: Update.
9521         * doc/autoconf.texi (Evaluation Macros): Improve the example to
9522         show effect on macros that expand with commas.
9523         Reported by Joel E. Denny.
9525         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
9526         Also work with M4 1.4.8.
9528 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
9530         * doc/autoconf.texi (Slashes): Document Tru64 4.0 bug reported by
9531         Jim Meyering.
9533 2006-10-25  Stepan Kasal  <kasal@ucw.cz>
9535         * tests/tools.at (autom4te --force): New test, verifies that
9536         `--force' always rewrites the output file.
9538 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
9540         * doc/autoconf.texi (Limitations of Usual Tools): Document that rm
9541         needs operands on NetBSD 2.0.2.  Problem reported by Bruno Haible.
9543 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
9545         * tools/trace.at (autoconf --trace: user macros): Test `$%'.
9547 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
9549         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
9550         If FUNCTION-BODY is nonempty, use AC_LINK_IFELSE rather than
9551         AC_COMPILE_IFELSE, to work around problem with OSF/1 4.0F fseeko
9552         reported by Nelson H. F. Beebe for Coreutils 6.4.
9554         * tests/tools.at (autoconf --trace: user macros): Remove test
9555         for tracing multiline macros, since m4 1.4.7a uses a different
9556         way to number lines.  Problem reported by Ralf Wildenhues.
9558 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
9560         * bin/autom4te.in (handle_m4): Do not redirect stdin to
9561         /dev/null since the heuristics for interactive behaviour was
9562         fixed in CVS m4.
9564         * bin/autom4te.in: With --force, always refresh the output
9565         file.  Problem reported by Greg Schafer <gschafer@zip.com.au>.
9567         * bin/autoconf.as: Fix the verbose message at the end.
9569 2006-10-23  Paul Eggert  <eggert@cs.ucla.edu>
9571         * configure.ac (AC_INIT): Bump to 2.60c.
9572         * NEWS: Likewise.
9574 2006-10-22  Paul Eggert  <eggert@cs.ucla.edu>
9576         * NEWS: Version 2.60b.
9578         Import this change from Texinfo:
9579         2006-10-15  Karl Berry  <karl@gnu.org>
9580         * build-aux/texinfo.tex: automake 1.10
9582         * NEWS: Remove AC_CACHE_CHECK_INT.
9583         * doc/autoconf.texi (Caching Results): Likewise.
9584         * lib/autoconf/general.m4 (_AC_CACHE_CHECK_INT): Renamed from
9585         AC_CACHE_CHECK_INT, since it's no longer public.
9586         * lib/autoconf/types.m4: All uses of AC_CACHE_CHECK_INT changed.
9587         * tests/base.at (AC_COMPUTE_INT): Test this, not AC_CACHE_CHECK_INT.
9589 2006-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9591         * doc/autoconf.texi (Limitations of Usual Tools): Fix two typos.
9593 2006-10-19  Eric Blake  <ebb9@byu.net>
9595         * lib/m4sugar/m4sugar.m4 (m4_mkstemp): New macro.
9596         (m4_maketemp): Avoid warnings with M4 1.9a.
9597         * lib/emacs/autoconf-mode.el (autoconf-font-lock-keywords): Color
9598         m4_mkstemp.
9599         * doc/autoconf.texi (Redefined M4 Macros): Document m4_mkstemp.
9600         * NEWS: Likewise.
9602 2006-10-16  Eric Blake  <ebb9@byu.net>
9604         * doc/autoconf.texi (Setting Output Variables): Fix typo.
9606         * bin/autoconf.as (version): Reword to match GNU Coding
9607         Standards.
9608         * bin/autoheader.in (version): Likewise.
9609         * bin/autom4te.in (version): Likewise.
9610         * bin/autoreconf.in (version): Likewise.
9611         * bin/autoscan.in (version): Likewise.
9612         * bin/autoupdate.in (version): Likewise.
9613         * bin/ifnames.in (version): Likewise.
9615 2006-10-14  Stepan Kasal  <kasal@ucw.cz>
9617         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Expand $1 before
9618         looking for special shell characters.
9619         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Do not expand the
9620         macro defined by AS_VAR_PUSHDEF before passing it as a
9621         parameter.
9622         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
9623         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB):
9624         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
9625         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL):
9626         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_DIRENT):
9627         Likewise.
9628         * lib/autotest/general.m4 (AT_INIT): Quote parameters of
9629         AS_VAR_* properly.
9630         * tests/m4sh.at (AS_LITERAL_IF): New test.
9632 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
9634         (Imported from Automake.)
9635         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
9636         which incorrectly sets the mode of an existing destination
9637         directory.  In some cases the unpatched install-sh could do the
9638         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
9639         system.  We hope this is rare in practice, but it's clearly worth
9640         fixing.  Problem reported by Alex Unleashed in
9641         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
9642         Also, don't bother to check for -m bugs unless we're using -m;
9643         suggested by Stepan Kasal.
9645 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
9647         Import this change from Automake:
9649         2006-08-23  Alexandre Duret-Lutz  <adl@gnu.org>
9650         * lib/Autom4te/ChannelDefs.pm (usage): Mention that -Wportability
9651         is enabled by default with gnu and gnits strictness.
9652         Report from Bruno Haible.
9654         2006-03-10  Alexandre Duret-Lutz  <adl@gnu.org>
9655         * lib/Autom4te/ChannelDefs.pm: Make -Wportability the default in
9656         gnu and gnits modes.
9658         Import this change from Config:
9660         2006-09-20  Ben Elliston  <bje@gnu.org>
9661         * build-aux/config.sub (score, score-*): New.
9663         Import this change from Gnulib:
9665         2006-09-16  Karl Berry  <karl@gnu.org>
9666         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
9667         to avoid sectioning errors.
9669         Import these changes from Texinfo:
9671         2006-10-04  Karl Berry  <karl@gnu.org>
9672         * build-aux/texinfo.tex (\singlequotechar): rename to \codequoteright.
9673         (\quoteexpand): rename to \rquoteexpand.
9674         (\codequoteleft): new def, to look for @set codequotebacktick.
9675         (\lquoteexpand, \quoteexpand): new defs.
9676         (\lquoteChar, \rquoteChar, \dashChar, \underChar: new \chardef's.
9677         (\code): must use new \...Char values, since now ` is active.
9679         2006-08-26  Karl Berry  <karl@gnu.org>
9680         * build-aux/texinfo.tex (\textdegree): New command.
9682         2006-08-12  Karl Berry  <karl@gnu.org>
9683         * build-aux/texinfo.tex (error \box0): smaller font.
9685 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9687         * doc/autoconf.texi (Autoheader Macros): Fix syntax error.
9689 2006-10-13  Stepan Kasal  <kasal@ucw.cz>
9691         * doc/autoconf.texi (Autoheader Macros): Warn that the text
9692         added to the template can get mangled.
9694 2006-10-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9696         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): In the test,
9697         include the default headers, and redefine obstack_chunk_alloc
9698         and obstack_chunk_free.  Fixes false failure with glibc.
9700 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
9702         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Set as_executable_p,
9703         for backward compatibility with Libtool 1.5.22.  Problem reported
9704         by Ralf Wildenhues.
9706 2006-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9708         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL): Require
9709         AC_PROG_CC.
9710         Report by IOhannes m zmoelnig <zmoelnig@iem.at>.
9712 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9714         * NEWS: AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for
9715         the NonStop platform.
9716         * doc/autoconf.texi (Posix Variants): Likewise.
9717         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
9719         * lib/m4sugar/m4sh.m4 (AS_TEST_X): New macro.
9720         (AS_EXECUTABLE_P): Use as_test_x rather than as_executable_p.
9721         (_AS_TEST_PREPARE): Set as_test_x rather than as_executable_p.
9722         Use a better substitute, by inspecting the output of "ls"
9723         rather than just using ":".
9724         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Use AS_TEST_X
9725         rather than AS_EXECUTABLE_P, since we needn't worry about
9726         non-regular files here.
9728         * NEWS: Autoconf-generated shell scripts no longer export BIN_SH,
9729         due to configuration hassles with this.  See Tonya Underwood's report
9730         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00003.html>.
9731         * doc/autoconf.texi (Special Shell Variables): Likewise.
9733 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9734             Stepan Kasal  <kasal@ucw.cz>
9736         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Don't set BIN_SH.
9737         (_AS_DETECT_BETTER_SHELL): Don't look in /usr/bin/posix.
9739 2006-10-11  Stepan Kasal  <kasal@ucw.cz>
9741         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Move the
9742           initialization which is not inherited through the environment
9743         (_AS_BOURNE_COMPATIBLE): ... to this new macro.
9744         (_AS_RUN): Call _AS_BOURNE_COMPATIBLE, not AS_BOURNE_COMPATIBLE.
9746 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
9748         * doc/autoconf.texi (Limitations of Usual Tools): Describe
9749         problems with mkdir -p -m.
9751 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
9753         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Remove
9754         comment about ac_cpp_err; it was incorrect, and anyway
9755         ac_cpp_err is being removed below.
9756         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE): Don't
9757         set ac_cpp_err to 'yesyes' if preproc_warn_flag and werror_flag
9758         are both 'yes'.  In fact, don't bother setting ac_cpp_err at all;
9759         nobody uses it.
9760         (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't log our funky tests
9761         with werror_flag and conftest.err and so forth.  This is more
9762         compatible with how _AC_PROG_PREPROC_WORKS_IFELSE behaves,
9763         and anyway the user shouldn't normally want to see this gorp logged.
9764         Problem reported by Ralf Wildenhues.
9765         * lib/autoconf/lang.m4 (AC_LANG_WERROR): werror_flag's default is
9766         empty, not 'no', since the rest of the code uses 'test -z'.
9768 2006-10-04  Paul Eggert  <eggert@cs.ucla.edu>
9770         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
9771         Use a single call to AC_DO_TOKENS rather than multiple, for
9772         efficiency.
9773         (_AC_LINK_IFELSE): Test that resulting file is executable.
9774         Problem reported by mwoehlke in
9775         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00048.html>.
9777         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Use "test -x /" rather
9778         than creating a file to use with test -x; this is much faster.
9780 2006-10-02  Bruno Haible  <bruno@clisp.org>
9782         * lib/autom4te.in (Automake-preselections): Add
9783         AM_GNU_GETTEXT_INTL_SUBDIR, for automake 1.10.
9785 2006-09-27  Stepan Kasal  <kasal@ucw.cz>
9787         * doc/autoconf.texi (Writing testsuite.at): Fix a typo: for
9788         standard error, `experr' should be used, not `expout'.
9790 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9792         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Don't compile the
9793         fseeko testing program twice; just use the earlier result.
9794         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
9795         Set cache var to 'unknown' (not 'no') if leaving the macro unset
9796         still doesn't let the program compile.
9797         (AC_SYS_LARGEFILE): Test for _LARGE_FILES only if earlier tests
9798         failed.
9800         * lib/autoconf/functions.m4: Fix problems reported by Ralf Wildenhues.
9801         (AC_FUNC_ERROR_AT_LINE): Don't bother to check for error.h.  Just
9802         include it, without including anything else.
9803         (AC_FUNC_FSEEKO): Avoid gcc -Wall warnings about constant
9804         expressions.
9805         (AC_FUNC_STRNLEN): Require AC_USE_SYSTEM_EXTENSIONS.
9807 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9809         * lib/autoconf/functions.m4 (AC_FUNC_ERROR_AT_LINE): Check for
9810         `error.h', and include it, for a `error_at_line' prototype.
9811         Use a nonempty format string in the link test.
9812         * lib/autoconf/functions.m4 (AC_FUNC_WAIT3): Include <sys/wait.h>,
9813         for a declaration of wait3.
9815 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9817         * NEWS: AC_CHECK_DECL now also works with aggregate objects.
9818         * doc/autoconf.texi (Generic Declarations): Clarify that AC_CHECK_DECL
9819         can apply to constants too, and that it checks for macro defns.
9820         * lib/autoconf/general.m4 (AC_CHECK_DECL): Assume C89 or better,
9821         and simply cast the identifier to void.  This handles structure
9822         values.  Problem reported by Ralf Wildenhues.
9823         * tests/semantics.at (AC_CHECK_DECLS): Also check enums.
9825 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9827         * tests/semantics.at (AC_CHECK_DECLS): Also check macros,
9828         structure, and function symbols.
9830 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9832         * tests/semantics.at (AC_CHECK_MEMBERS): Also test with a struct
9833         member.
9835 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
9837         * NEWS: Recommend M4 1.4.7 instead of 1.4.6.
9838         * README: Likewise.
9839         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
9841 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
9842         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9844         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): Avoid `gcc -Wall'
9845         warnings (uninitialized value).
9846         (AC_FUNC_UTIME_NULL): Likewise, test for and include <utime.h> if
9847         present.
9848         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Likewise, add
9849         parentheses.
9850         (AC_STRUCT_TM): Likewise, avoid unused variables.
9852 2006-09-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9854         * lib/autoconf/c.m4 (_AC_ARG_VAR_LDFLAGS): Update comment.
9855         (_AC_ARG_VAR_LIBS): New macro: let LIBS be precious.
9856         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Call _AC_ARG_VAR_LIBS.
9857         * lib/autoconf/fortran.m4 (AC_PROG_F77, AC_PROG_FC): Likewise.
9858         Report by Olly Betts.
9860 2006-09-19  Eric Blake  <ebb9@byu.net>
9862         * m4/m4.m4: Change copyright.
9863         * configure: Regenerate.
9864         * Makefile.in: Likewise.
9865         * bin/Makefile.in: Likewise.
9866         * doc/Makefile.in: Likewise.
9867         * lib/Makefile.in: Likewise.
9868         * lib/Autom4te/Makefile.in: Likewise.
9869         * lib/autoconf/Makefile.in: Likewise.
9870         * lib/autoscan/Makefile.in: Likewise.
9871         * lib/autotest/Makefile.in: Likewise.
9872         * lib/emacs/Makefile.in: Likewise.
9873         * lib/m4sugar/Makefile.in: Likewise.
9874         * man/Makefile.in: Likewise.
9875         * tests/Makefile.in: Likewise.
9877         * m4/m4.m4 (AC_PROG_GNU_M4): Check for m4 --debugfile support.
9878         * bin/Makefile.am (edit): Substitute M4_DEBUGFILE.
9879         * bin/autom4te.in (handle_m4): Favor --debugfile over misnamed
9880         --error-output, to avoid warnings with M4 2.0.
9882 2006-09-19  Stepan Kasal  <kasal@ucw.cz>
9884         * lib/autoconf/libs.m4 (AH_CHECK_LIB): Fix quoting, to be
9885           consistent with _AH_CHECK_FUNCS and _AH_CHECK_HEADERS.
9886         * lib/autoconf/headers.m4 (AH_CHECK_HEADERS_DIRENT): Likewise.
9888 2006-09-15  Stepan Kasal  <kasal@ucw.cz>
9890         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Eliminate the
9891         expansion of AC_CHECK_FUNCS.
9893 2006-09-14  Stepan Kasal  <kasal@ucw.cz>
9895         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Remove a
9896         mistaken comment: the path has to be relative; do not use
9897         the path at runtime.
9899 2006-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9901         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote the
9902         argument to `--prefix' for sub-configure scripts.
9903         Pass `--silent' to sub-configure scripts.
9904         * tests/torture.at (Configuring subdirectories): Add tests
9905         for both changes.
9906         * doc/autoconf.texi (Setting Output Variables): Fix example to
9907         not show `--silent' being passed to a `configure' re-run.
9909 2006-09-12  Paul Eggert  <eggert@cs.ucla.edu>
9911         * doc/autoconf.texi (Input): Clarify role of AC_CONFIG_MACRO_DIR.
9912         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Do not check
9913         for the existence of the directory at configure-time.  That's
9914         too late, anyway.  Problem reported by Stefan Seefeld.
9916         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Avoid bug in UnixWare
9917         7.1.4 /usr/bin/posix/sh described by Tim Rice in
9918         <http://lists.gnu.org/archive/html/bug-autoconf/2006-09/msg00017.html>.
9920 2006-09-11  Stepan Kasal  <kasal@ucw.cz>
9922         * tests/local.at (AT_CHECK_M4): Fix this so that the testsuite
9923         works with GNU M4 1.4.3 again; make the normalized form
9924         match the current m4 message; fix the description.
9925         * test/tools.at (autom4te cache): Adapt to the change.
9927 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
9929         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):  Add year_2050_test
9930         to catch glibc bug 2821
9931         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
9933         Merge from gnulib as follows: Use AC_CHECK_HEADERS_ONCE instead of
9934         AC_CHECK_HEADERS, and likewise for AC_CHECK_FUNCS_ONCE and
9935         AC_CHECK_FUNCS.  Don't check for stdlib.h, since we now
9936         assume C89.
9938 2006-09-08  Stepan Kasal  <kasal@ucw.cz>
9940         * lib/autom4te.in (Autoconf-without-aclocal-m4): Move the
9941         preselections ...
9942         (Autoconf): ... here.
9943         (Autoscan-preselections): Delete.
9945 2006-09-07  Stepan Kasal  <kasal@ucw.cz>
9947         * lib/autom4te.in (Automake-preselections): Preselect
9948         AM_ENABLE_MULTILIB.
9950 2006-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9952         * doc/autoconf.texi (Preset Output Variables): srcdir and
9953         top_srcdir are not necessarily relative.  Problem reported
9954         by Dries Kimpe.
9956 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9958         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Prefer xlf90/xlf95 over
9959         f90/f95 because the latter drivers of AIX Fortran 9.1 do not
9960         accept files with extension `.f'.  For consistency, also prefer
9961         xlf over f77.
9962         * doc/autoconf.texi (Fortran Compiler): Remove mention of bug
9963         from last patch.
9965 2006-09-05  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
9967         * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB): Added substitution
9968         of ERLANG_LIB_VER_* variables.
9969         * doc/autoconf.texi (Erlang Libraries): Document ERLANG_LIB_VER_*
9970         variables.
9972 2006-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9973         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9975         * doc/autoconf.texi (Limitations of Builtins): Document 'unset'
9976         bugs of Bash 2.01 and 2.05a.
9977         (Fortran Compiler): Document that AC_PROG_CC should be called
9978         before AC_PROG_FC, due to a bug in Autoconf.
9980 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9982         * NEWS: New macro AC_CACHE_CHECK_INT.  It replaces the
9983         old AC_COMPUTE_INT, which now behaves like _AC_COMPUTE_INT
9984         except the first two arguments are reversed.
9985         * doc/autoconf.texi (Caching Results): New macro AC_CACHE_CHECK_INT.
9986         (Generic Compiler Characteristics): AC_COMPUTE_INT no longer
9987         caches nor outputs a diagnostic.  Suggested by Bruno Haible.
9988         * lib/autoconf/general.m4 (AC_CACHE_CHECK_INT): New macro,
9989         equivalent to the old AC_COMPUTE_INT.
9990         (AC_COMPUTE_INT): No longer caches or reports.  New signature.
9991         All uses changed to AC_CACHE_CHECK_INT.
9992         * tests/base.at (AC_CACHE_CHECK_INT): New test.
9993         * tests/mktests.sh (ac_exclude_list): Add AC_CACHE_CHECK_INT.
9995 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
9997         * NEWS: AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_FUNC_GETLOADVG,
9998         and AC_REPLACE_FNMATCH are now obsolescent in Autoconf.  New
9999         programs should use their Gnulib counterparts.
10000         * doc/autoconf.texi (Particular Functions): Likewise.
10001         (Macro Names, testsuite Invocation): Replace uses of these
10002         obsolete macros with uses of non-obsolete macros.
10004 2006-08-29  Eric Blake  <ebb9@byu.net>
10006         * configure.ac (AC_INIT): Bump to 2.60b.
10007         * NEWS: Update.
10009 2006-08-28  Eric Blake  <ebb9@byu.net>
10011         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Fix logic that was
10012         mistakenly swapped on 2006-08-15.
10014 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10016         * NEWS: Version 2.60a.
10018 2006-08-25  Stepan Kasal  <kasal@ucw.cz>
10020         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Remove the IPA/IPO
10021         file created by the PGI compiler.
10023 2006-08-25  Noah Misch  <noah@cs.caltech.edu>
10025         * lib/Autom4te/General.pm (END): Use `File::Path::rmtree' to
10026         simplify the code.
10028 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10030         Fix Lex library problem reported to us by Julio Garvia.
10031         * doc/autoconf.texi (Particular Programs): YYTEXT_POINTER is
10032         for the default, which the user can override.
10033         * lib/autoconf/programs.m4 (AC_PROG_LEX): Let _AC_PROG_LEX_YYTEXT_DECL
10034         deal with LEXLIB.
10035         (_AC_PROG_LEX_YYTEXT_DECL): Handle caching correctly; the old code
10036         didn't work if some values were cached but not others.  Test for
10037         broken lex libraries like native ia64-hp-hpux11.22; see
10038         <http://sources.redhat.com/ml/binutils/2003-12/msg00337.html>, and
10039         work around the problem by preferring an empty LEXLIB to -lfl or
10040         -ll.  Let the user set LEXLIB='' to indicate no library needed.
10042         * NEWS: Recommend M4 1.4.6 instead of 1.4.5.
10043         * README: Likewise.
10044         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
10046 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10048         Rework to use more-modern build style.
10049         Many files are renamed; all uses of their names were changed.
10050         * .x-sc_trailing_blank: Renamed from .x-sc_trailing_space.
10051         * .x-sc_useless_cpp_parens: New file.
10052         * build-aux/config.guess: Renamed from config/config.guess.  Update.
10053         * build-aux/config.sub: Renamed from config/config.sub.  Update.
10054         * build-aux/elisp-comp: Renamed from config/elisp-comp.
10055         * build-aux/install-sh: Renamed from config/install-sh.  Update.
10056         * build-aux/mdate-sh: Renamed from config/mdate-sh.
10057         * build-aux/missing: Renamed from config/missing.
10058         * build-aux/texinfo.tex: Renamed from config/texinfo.tex.  Update.
10059         * build-aux/vc-list-files: Renamed from config/vc-list-files.
10060         * config/Makefile.am: Removed.
10061         * config/mkinstalldirs: Removed.
10062         * config/move-if-change: Removed.
10063         * m4/m4.m4: Renamed from config/m4.m4.  Add (C) to copyright notice.
10064         * Makefile.am (SUBDIRS): Remove config.
10065         (ACLOCAL_AMFLAGS): Include from m4, not config.
10066         (EXTRA_DIST): Add config/announce-gen, config/prev-version.txt.
10067         (WGET, WGETFLAGS): New macros, since Makefile.maint no longer does this.
10068         (autom4te-update): Rewrite with a loop.  Get from gnulib, not automake.
10069         Fail if there's an error.
10070         * Makefile.cfg (move_if_change): Remove.
10071         (wget_files): Remove.
10072         (cvs_executable_files): New macro.
10073         (cvs_files): Use it.  Remove mkinstalldirs.  Add fdl.texi.
10074         (executable-update): Use $(cvs_executable_files).
10075         (local-checks-to-skip): Remove.
10076         * Makefile.maint: Merge from coreutils, plus add our own changes
10077         (gzip_rsyncable): New macro.
10078         (GZIP_ENV): Use it.
10079         (CVS_LIST): Use build-aux/vc-list-files.
10080         (VERSION_REGEXP): New macro.
10081         (local-checks-available): Add patch-check, $(syntax-check-rules),
10082         check-AUTHORS.
10083         (syntax-check-rules): Compute dynamically.
10084         (sc_cast_of_x_alloc_return_value): Work even if no source files.
10085         (sc_cast_of_alloca_return_value): Likewise.
10086         (sc_prohibit_atoi_atof): Simplify regexp.
10087         (sc_no_if_have_config_h, sc_require_config_h):
10088         (sc_prohibit_assert_without_use,
10089         (sc_obsolete_symbols): Check for O_NDELAY.
10090         (sc_texi_notab): Remove.
10091         (sc-changelog): Don't make an exception for '----' lines.
10092         (.re-list): Remove, so we don't have a junk file behind.
10093         (sc_system_h_headers): Remove the need for .re-list.
10094         (sc_the_the):  New rule.
10095         (sc_tight_scope): Simplify.
10096         (sc_trailing_blank): Renamed from sc_trailing_space.
10097         (longopt_re): New macro.
10098         (sc_two_space_separator_in_usage): New rule.
10099         (sc_unmarked_diagnostics): Look at all files under CVS.
10100         (sc_useless_cpp_parens, patch-check, check-AUTHORS): New rules.
10101         (news-date-check, changelog-check): Version is OK.
10102         (po-check): Look for lib files even if not in CVS.
10103         (copyright-check): Use $() not ``.
10104         (maintainer-distcheck): Do not depend on changelog-check.
10105         (my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz).
10106         Also check for -Wpointer-arith.
10107         (WGET, WGETFLAGS, tgz-md5, tgz-sha1, bz2-md5, bz2-sha1):
10108         (xdelta-md5, xdelta-sha1, tgz-size, bz2-size, xd-size, rel-check):
10109         Remove.
10110         (announcement): Add --gpg-key-id arg.
10111         (cvs-sv): Remove.
10112         (move_if_change): Just use mv.
10113         (local_updates: Remove wget-update, po-update.
10114         (po_repo, do-po-update, po-update, wget_files, get-targets): Remove.
10115         (config.guess-url_prefix, config.sub-url_prefix): Remove.
10116         (ansi2knr.c-url_prefix, texinfo.tex-url_prefix):
10117         (standards.texi-url_prefix, make-stds.texi-url_prefix, target, url):
10118         ($(get-targets)): Remove.
10119         (cvs_files): Remove missing, mkinstalldirs, ansi2knr.c.
10120         (gnulib_repo): Renamed from automake_repo.  Get from gnulib now.
10121         (cvs-update): Get from gnulib.
10122         (emut_upload_commands): gnupload is in build-aux now.
10123         (alpha beta major): Add changelog-check.  Check version.
10124         * configure.ac (AC_CONFIG_AUX_DIR): Renamed from config to build-aux.
10125         (AC_CONFIG_FILES): Remove.
10126         * bin/autoconf.as: Add spaces to avoid distcheck warning.
10127         * config/announce-gen: Sync from coreutils.
10128         * doc/make-stds.texi: Sync from gnulib.
10129         * doc/standards.texi: Likewise.
10130         * man/Makefile.am: Adjust for config -> build-aux renaming.
10131         * tests/Makefile.am: Prefer $(FOO) to @FOO@.
10132         * tests/local.at: Adjust from config -> build-aux renaming.
10133         * tests/tools.at: Likewise.
10134         * tests/torture.at: Likewise.
10136         * NEWS: The C99 check now tests for vararg macros and 64-bit
10137         preprocessor ints.
10138         * doc/autoconf.texi (C Compiler): Document // comments, va_copy.
10139         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Test varargs macros and
10140         64-bit preprocessor ints.  Check for static initialization of
10141         long long.  Remove unnecessary casts.
10143 2006-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10145         * doc/autoconf.texi (Particular Programs): Mention that
10146         @INSTALL@ and @MKDIR_P@ may vary for different output files.
10147         Reported by Alexandre Duret-Lutz.
10149 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10151         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
10152         -lgcc?* and -lSystem, for Darwin/MacOS X.  Problem reported by
10153         Bill Northcott in
10154         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00083.html>.
10156 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
10158         * lib/autoconf/c.m4 (AC_C_CONST): Don't used shadowed vars, to
10159         pacify insanely picky compilers.  Problem reported by Eric Blake.
10161         * doc/autoconf.texi (Posix Variants): INTERACTIVE Unix is no
10162         longer supported by Sun.
10164 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10166         * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
10167         rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
10168         -Wundef -Werror".  Problem reported by David Fang in
10169         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
10170         * doc/autoconf.texi (Header Templates, Default Includes):
10171         (Particular Functions, Generic Functions, Header Portability):
10172         (Particular Headers, Generic Headers, Generic Declarations, Guidelines):
10173         (Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
10174         (Present But Cannot Be Compiled, Preprocessor Symbol Index):
10175         Prefer #ifdef to #if.
10176         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
10177         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
10178         (AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
10179         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
10180         Likewise.
10181         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
10182         (AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
10183         * lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
10184         (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
10185         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
10186         S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
10187         this.
10189 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
10191         * doc/autoconf.texi (Limitations of Usual Tools): Document sed
10192         problems with arg script text that doesn't end in newline, and
10193         with '-e a...'.  Problems reported by Ralf Wildenhues.
10195 2006-08-12  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
10197         * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
10198         check for libXt by a check for libX11.
10200 2006-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10202         * doc/autoconf.texi (config.status Invocation): Adjust according
10203         to last change.
10205 2006-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10207         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
10208         --help' should mention that `--version' outputs configuration
10209         settings.  Report by Bruno Haible.
10211 2006-08-06  Paul Eggert  <eggert@cs.ucla.edu>
10213         Fix test suite failures reported by Pierre in
10214         <http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
10215         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
10216         the compiler created a file "b.out" when it didn't create anything
10217         at all.
10218         * lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
10219         Discard stderr too, when invoking the test script.
10221 2006-08-05  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
10223         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
10224         in the restoring of the werror flag.
10226 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10228         * doc/autoconf.texi (Volatile Objects): Be even a little
10229         less skeptical about "volatile", after discussion with
10230         Bruno Haible on bug-gnulib.
10231         (Limitations of Usual Tools): Warn about sed stripping
10232         leading white space from text.  From Bruno Haible.
10234 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
10236         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
10237         compiler complains about it, even if things works after the
10238         complaint.  Problem reported by Peter O'Gorman.
10240         * doc/autoconf.texi (Preset Output Variables): Document CFLAGS,
10241         CPPFLAGS, and LDFLAGS better.  Problem reported by Bruno Haible.
10242         Similarly for CXXFLAGS, OBJCFLAGS, ERLCFLAGS.
10244 2006-07-17  Paul Eggert  <eggert@cs.ucla.edu>
10246         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space
10247         after -R regardless of host.  Patrick Welche reports that this
10248         fixes things on NetBSD 3.99.
10250         * NEWS: Recommend M4 1.4.5.
10251         * README: Likewise.
10252         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
10253         * tests/tools.at (autom4te cache): Update wording of diagnostic
10254         to match M4 1.4.5.
10256 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
10258         * doc/autoconf.texi (C Compiler): Add a ref to Volatile Objects
10259         under AC_C_VOLATILE.
10260         (Volatile Objects): Be a little less skeptical about what
10261         "volatile" means.  Derived from thoughts by Ben Pfaff in
10262         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00092.html>.
10264 2006-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10266         * doc/autoconf.texi: Fix some typos.
10268 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
10270         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
10271         more globally, since the 2006-06-30 patch didn't suffice.  Problem
10272         reported by Keith Marshall.  Also, don't bother with builddir2,
10273         since it shouldn't be needed any more.
10275 2006-07-07  Paolo Bonzini  <bonzini@gnu.org>
10277         * doc/autoconf.texi (Generic compiler characteristics):
10278         Document AC_COMPUTE_INT.  Fix wrong statements on Default
10279         Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.
10281         * lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
10282         (_AC_COMPUTE_INT): Add obsoletion warnings.
10283         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
10284         AC_COMPUTE_INT.
10286         * NEWS: Document change.
10288 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
10290         * doc/autoconf.texi (Volatile Objects): New section.
10292         * NEWS: Document previous change.
10294 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
10296         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
10297         Require that long long int be at least 64 bits wide.  C99 requires
10298         this and enough programs depend on it so we should check for it.
10299         Bruno Haible reports in
10300         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00286.html>
10301         that long long int is 32 bits wide with some nonstandard compilers.
10302         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
10304 2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
10306         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
10307         to a nonexistent file, so that we don't have to worry about
10308         a local site configuration that doesn't use /usr/local.
10309         Problem reported by Keith Marshall in
10310         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00133.html>.
10312 2006-06-28  Paul Eggert  <eggert@cs.ucla.edu>
10314         * doc/autoconf.texi: Be more consistent about using @acronym with
10315         "HP" and "HP-UX".  Remove mention of OSF; the old version wasn't
10316         quite right (it talked about "OSF/Tru64", even though the
10317         operating systems were called OSF/1, Digital UNIX, and Tru64 UNIX,
10318         and it even mentioned "OSF 4"!) and at this point there's little
10319         reason to talk about OSF any more, since it died in 1994.
10320         (Specific Compiler Characteristics): Simplify example of
10321         negative-size array.
10322         (File Descriptors): Reorder to make the text flow better.
10323         Remove joke about "appreciate the various levels"; I didn't get it.
10324         Add remark about HP-UX sh -x bug with stderr noted by Bob Proulx in
10325         <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00225.html>.
10326         (File Descriptors, Limitations of Usual Tools):
10327         Tone down the advice against renaming or removing open files.
10328         (Limitations of Usual Tools): Add a new section, on 'rm'.
10330 2006-06-26  Stepan Kasal  <kasal@ucw.cz>
10332         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
10333         -lXt in LIBS, idea from Karsten Hopp; this was due since
10334         this change:
10336         2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10337         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
10338         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
10339         (which belong to Xt, not X itself).  See Debian bug 327655.
10341 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10343         * configure.ac (AC_INIT): Bump to 2.60a.
10344         * NEWS: Update.
10346 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10348         Version 2.60.
10350         * configure.ac, NEWS: Update.
10352 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10354         * config/texinfo.tex: Sync from upstream.
10356         * bin/autom4te.in (handle_traces): Transform the `@S|@'
10357         quadrigraph correctly in traces.
10359         * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
10360         Fix typos.
10362         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
10363         datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
10364         not defined.
10365         * doc/autoconf.texi (Changed Directory Variables): New node,
10366         to document the whole `datarootdir' business a bit better.
10367         * NEWS: Update.
10368         * tests/torture.at (datarootdir workaround): Extend test.
10369         Prompted by report by Alexandre Julliard.
10371 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
10373         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
10374         when using default mode of IBM C 6 for AIX.  Problem and two-line
10375         fix reported by Larry Jones.
10377 2006-06-22  Alexandre Julliard <julliard@winehq.org>
10379         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
10380         about literal '${datarootdir}' if a definition is found in the
10381         output file.
10383 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
10385         * NEWS: Use "M4" rather than "m4" when appropriate.
10386         Problem reported by Eric Blake.
10387         * doc/autoconf.texi: Likewise.
10388         Use @acronym around BSD, GCC, and GNU when appropriate.
10389         (Why GNU M4): Renamed from "Why GNU m4".
10390         (Redefined M4 Macros): Mention that Posix
10391         m4wrap takes only 1 argument, but GNU M4 1.4.x takes more.
10392         (Buffer Overruns): Mention size_t and ptrdiff_t as alternatives
10393         to int.
10395 2006-06-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10397         * bin/autom4te.in (handle_output): Do not forbid the empty
10398         pattern.
10399         * tests/tools.at (autoconf: the empty token): New test.
10401 2006-06-20  Stepan Kasal  <kasal@ucw.cz>
10403         * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
10404         calls, so that we do not care whether they are LIFO or FIFO;
10405         in the m4_wrap, do not check which diversion is the topmost
10406         one, just check that the stack is balanced at the end.
10407         * lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
10408         base diversion forever--pop the previous diversion before
10409         opening the new one; consequently, remove the m4_wrap call.
10410         * lib/autotest/general.m4 (AT_INIT): Likewise.
10411         * tests/m4sugar.at: Do not use
10412         m4_wrap([m4_diversion_pop([..])]), for educational purposes.
10414 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
10415         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10417         * NEWS: Document that m4wrap/m4_wrap might not be LIFO.
10418         * doc/autoconf.texi (Redefined M4 Macros): Likewise.
10419         Rework example of m4wrap token-pasting trouble so that it doesn't
10420         care whether it's LIFO or FIFO.
10421         Fix some "contrary to"s that are awkward in English.
10423 2006-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10425         * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
10426         to `yes' instead of `int$1_t' if the type is found, for more
10427         consistent configure output (where $1 is the number of bits).
10428         (_AC_TYPE_UINT): Likewise for `uint$1_t'.
10429         Suggested by Bruno Haible.
10431         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
10432         needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
10433         with system headers.  Report by Bruno Haible.
10435 2006-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10437         * config/config.guess, config/config.sub: Sync from upstream.
10439         * bin/Makefile.am (autoconf.in): Use `--melt' for autom4te,
10440         in order to avoid picking up an older installed frozen m4sh.m4f.
10441         Besides an outdated shell startup, this could have been created
10442         by an earlier M4 version with incompatible frozen file format.
10444 2006-06-16  Paul Eggert  <eggert@cs.ucla.edu>
10446         * README: Recommend m4 1.4.4 instead of 1.4.3..
10447         * doc/autoconf.texi: Likewise.
10448         (Special Chars in Names): Say that $(.FOO) is portable, as
10449         suggested by Stepan Kasal.
10450         (Installation Directory Variables, Build Directories):
10451         (Automatic Remaking, Subdirectories, Fortran Compiler):
10452         (Making testsuite Scripts, Defining Directories):
10453         Quote variable usages better.
10454         (Making testsuite Scripts): Add clean-local rule to makefile
10455         snippet, by Eric Blake.
10456         (Installation Directory Variables): Fix table item font.
10457         Reword slightly to clarify.  Generalize advice about
10458         not using special characters to include all file-related
10459         vars, not just VPATH.
10460         (Special Chars in Variables): Warn about special characters in
10461         $(srcdir) too.
10462         (Assignments): Clarify default-value example as suggested by
10463         Ralf Wildenhues in
10464         <http://lists.gnu.org/archive/html/autoconf-patches/2006-06/msg00072.html>.
10465         (Special Shell Variables): Note leading ./ or ../, as suggested
10466         by Eric Blake.
10467         (Limitations of Builtins): Under cd, warn about CDPATH.
10468         (The Make Macro MAKEFLAGS): Untabify.  Problem reported by
10469         Ralf Wildenhues.
10471 2006-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10473         * doc/autoconf.texi (Configuration Actions): Remove duplicate
10474         `@var', for texi2html.
10475         (Systemology): Some more word wrapping, for DVI output.
10476         (autom4te Invocation): The short option for `--melt' is `-M',
10477         not `-m'.
10479 2006-06-15  Paul Eggert  <eggert@cs.ucla.edu>
10481         * doc/autoconf.texi: More formatting and English tweaks,
10482         many suggested by Ralf Wildenhues.
10483         Reword to avoid "@code{...}'s" and the like, since it's ugly
10484         with Emacs info mode.  discontents -> woes.
10485         Put a few "will"s back.  time stamp -> timestamp.
10486         side-effect -> side effect.
10488 2006-06-14  Paul Eggert  <eggert@cs.ucla.edu>
10490         * doc/autoconf.texi (Initializing configure, Shell Substitutions):
10491         Warn about $@ not persisting.  Problem reported by Julien Danjou in
10492         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372179>.
10493         (Special Chars in Names): Renamed from Leading _ in Macro Names.
10494         Mention other special chars, too.
10496 2006-06-14  Eric Blake  <ebb9@byu.net>
10498         * doc/autoconf.texi (The Make Macro MAKEFLAGS): New node.
10500 2006-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10502         * doc/autoconf.texi: Some systematic minor improvements, as
10503         follows.  Use "makefile" when talking about makefiles
10504         generally (which might be named "makefile" or "Makefile" or even
10505         "foo.mk"), "Makefile" when talking about a specific makefile
10506         called "Makefile".  This unclutters the text from weird quotes
10507         (e.g., "`Makefile's" in info mode).  Similarly, use "@var{foo}
10508         values" rather than "@var{foo}s" and similar constructs containing
10509         "}s".  Use "Make rules" rather than "Makefile rules".  Minor
10510         English-language improvements.  Change the prefix "sub-" to "sub"
10511         and "re-" to "re".
10512         Put blank lines around examples more consistently.
10513         Avoid "rather" and "very" as intensifiers.
10514         Avoid "will" as an auxiliary.
10515         (Limitations of Make): Split this node into....
10516         (Portable Make, $< in Ordinary Make Rules, Failure in Make Rules):
10517         (Leading _ in Macro Names, Backslash-Newline-Newline):
10518         (Backslash-Newline Comments, Long Lines in Makefiles):
10519         (Macros and Submakes, The Make Macro SHELL, Comments in Make Rules):
10520         (obj/ and Make, make -k Status, VPATH and Make):
10521         (VPATH and Double-colon, $< in Explicit Rules):
10522         (Automatic Rule Rewriting, OSF/Tru64 Directory Magic):
10523         (Make Target Lookup, Single Suffix Rules, Timestamps and Make):
10524         New nodes, resulting from splitup of Limitations of Make.
10525         All cross-references changed.  Raise the top node from
10526         a section to a chapter, and all subnodes accordingly.
10527         Redo the introductory wording to match the new organization.
10528         (Installation Directory Variables): Use an example that is
10529         closer to what Autoconf actually does.  Mention that VPATH's
10530         value should not contain metacharacters or white space.
10531         (Fortran Compiler): Fix a VPATH bug in an example.
10532         (Leading _ in Macro Names): Mention that this problem is no longer
10533         of practical concern.
10534         (VPATH and Make): Reword the advice to make it clearer
10535         that Autoconf and Automake support VPATH in non-GNU make, but
10536         many packages have bugs in this area.
10537         ($< in Explicit Rules): Refer to Build Directories rather
10538         than using a (non-VPATH-safe) example.
10539         (Automatic Rule Rewriting): Mention the sort of disaster that
10540         can ensue with Solaris-style rule rewriting with VPATH.
10542 2006-06-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10544         * doc/install.texi (Compilers and Options): Weaken the
10545         suggestion to use GNU make for VPATH builds.
10547         * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
10548         AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
10550         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
10551         in regular expression.
10553 2006-06-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10555         * doc/autoconf.texi (Installation Directory Variables):
10556         Drop extra @samp from `@table @samp' item.
10557         (Limitations of Usual Tools): Comment fix.
10558         Do not nest @samp just to point to other table items.
10559         (Writing testsuite.at) <AT_CHECK>: The second argument to
10560         `@dvar' is already @samp'ed.
10561         (Making testsuite Scripts) <AC_CONFIG_TESTDIR>: Likewise,
10562         do not use @var in the second argument.
10564 2006-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10566         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
10567         $as_shell.exe too.  Problem reported by Andreas Buening in
10568         <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
10570 2006-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10572         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
10573         `unused variable' compiler warning, for `-Wall -Werror'.
10574         Reported by Jaap Haitsma in
10575         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00012.html>.
10577 2006-06-06  Paul Eggert  <eggert@cs.ucla.edu>
10579         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
10580         case the compiler dumps core.  Problem reported for
10581         OpenServer 5.0.7 by Tim Rice in
10582         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
10583         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
10584         Likewise.
10586 2006-06-06  Tim Rice <tim@multitalents.net>.
10588         * lib/freeze.mk: Quiet check-forbidden-patterns so the string
10589         "ERROR" only shows up in "make check" output if there is an
10590         error.
10592 2006-06-06  Eric Blake  <ebb9@byu.net>
10594         * tests/tools.at (automatically allowed tokens): Fix typo.
10596 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
10598         * NEWS: Don't blame non-GNU VPATH compatibility issues on Automake.
10600         * doc/autoconf.texi (Integer Overflow): Mention that INT_MIN % -1
10601         typically overflows on x86 CPUs, even though the C standard
10602         requires otherwise.
10604 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10606         * configure.ac (AC_INIT): Bump to 2.59e.
10607         * NEWS: Update.
10609 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10611         Version 2.59d.
10613         * config/texinfo.tex: Sync from upstream.
10615         * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
10616         seen, invoke libtoolize with `--ltdl' argument.
10617         * lib/autom4te.in (Autoreconf-preselections): Adjust.
10618         * NEWS: Update.
10619         Suggested by Eric Blake.
10621 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
10623         * NEWS: Whoops!  AC_FUNC_STRNLEN isn't obsolescent.  Problem
10624         reported by Ralf Wildenhues.
10625         * doc/autoconf.texi (AC_FUNC_STRNLEN): Likewise.
10627 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10629         * THANKS: Update.
10631 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
10633         * doc/autoconf.texi: Modernize some of the references to Solaris.
10635 2006-06-05  Stepan Kasal  <kasal@ucw.cz>
10637         * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
10638         message issued by AC_REQUIRE.
10639         * tests/m4sugar.at: Check m4_require's error message.
10640         * tests/base.at: Check AC_REQUIRE's error message.
10641         * tests/local.at (AT_CHECK_M4): New macro, almost identical
10642         to...
10643         (AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
10644         AT_CHECK_M4.
10645         (AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
10646         `expout' as the last parameter.
10647         * tests/tools.at: Adapt to the above change.
10649 2006-06-04  Stepan Kasal  <kasal@ucw.cz>
10651         * doc/autoconf.texi (Limitations of Usual Tools): Correct
10652         information about race-free implementations of mkdir.
10654 2006-06-04  Eric Blake  <ebb9@byu.net>
10656         * bin/autoreconf.in (help): Document M4 environment variable.
10657         * bin/autoconf.as (Usage): Likewise.
10658         * bin/autom4te.in (help): Likewise.
10659         * doc/autoconf.texi (autom4te Invocation): Likewise.
10661 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
10663         * NEWS: GNU make now recommended for VPATH builds.
10664         Mention that some macros are now documented to be obsolescent.
10665         * doc/autoconf.texi:
10666         Prefer "current" to "modern" to describe
10667         currently-used (albeit perhaps old-fashioned) hosts.
10668         Mention which ancient features no longer need to be worried about.
10669         setgid -> set-group-ID
10670         setuid -> set-user-ID (these are the Posix terms)
10671         Fix some misuses of "only".
10672         (AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
10673         (AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
10674         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
10675         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
10676         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
10677         (AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
10678         (AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
10679         (AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
10680         (AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
10681         Mention that these macros are obsolescent.
10682         (Installation Directory Variables): shall -> should
10683         (File Descriptors): Mention that 0, 1, 2 might get reopened.
10684         Mention that it's now safe to use 3 and 4.
10685         (Limitations of Usual Tools): cp -r is now specified by Posix.
10686         Omit longwinded and obsolescent discussion of cp -f.
10687         Modernize discussion of expr, ls.
10688         (Limitations of Make): Modernize discussion of VPATH builds.
10689         Mention $? as a workaround in some cases.
10690         * doc/install.texi (Basic Installation):
10691         Mention "./configure; make; make install" first.  Be more
10692         specific about why this file is generic.  Remove unnecessary
10693         parens.  Remove misleading "only".  Remove obsolete advice
10694         about csh.  Don't say "configure" takes awhile; say it
10695         might take a while.  Suggest CFLAGS=-g rather than CFLAGS=-O2,
10696         and CC=c99 rather than CC=c89, as these are blessed by current
10697         Posix.  Recommend GNU make if doing a VPATH build.
10699 2006-06-03  Paul Eggert  <eggert@cs.ucla.edu>
10701         * doc/autoconf.texi: Use a consistent style "$ @kbd{...}" for
10702         examples involving shell prompts.
10704 2006-06-02  Stepan Kasal  <kasal@ucw.cz>
10705         and Paul Eggert  <eggert@cs.ucla.edu>
10707         * doc/autoconf.texi (Here-Documents): Add details about the
10708         pre-ksh93g bug.  Reword slightly to make it clearer.  Consistently
10709         use "here-documents" instead of "here documents".
10711 2006-06-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10713         * config/texinfo.tex, doc/standards.texi: Sync from upstream.
10715 2006-06-01  Paul Eggert  <eggert@cs.ucla.edu>
10717         * doc/autoconf.texi (File System Conventions): Warn about ":"
10718         anywhere in directory names.
10720 2006-05-31  Paul Eggert  <eggert@cs.ucla.edu>
10722         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be even more conservative
10723         about quoting the case statement, just in case.
10724         * doc/autoconf.texi (Here-Documents): Mention that the ksh bug
10725         was fixed in ksh93g; reported by Ralf Wildenhues.
10727 2006-05-31  Stepan Kasal  <kasal@ucw.cz>
10729         * doc/autoconf.texi (System Services): Do not document
10730         overriding EXEEXT via ac_cv_exeext=ext.
10731         (Particular Programs) <AC_PROG_MKDIR_P>:
10732         Document that ${MKDIR_P} understands --.
10733         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Improve the
10734         comment.
10736 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10738         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Guard against test
10739         argument with leading hyphen.  Problem reported by Paul Eggert.
10741 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
10743         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be more conservative
10744         about quoting ac_try: quote all of it, if any of it seems suspicious.
10745         This means we don't have to worry about ${ or sed any more.
10746         Also, double-quote the case statement, to work around misuses via
10747         underquoting as reported by Ralf Wildenhues in
10748         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00169.html>.
10749         (_AC_EVAL_STDERR): Revert, since evidently some packages rely on this
10750         undocumented and dangerous macro.
10751         Problem reported by Ralf Wildenhues in
10752         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00168.html>.
10754 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10756         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Check whether
10757         `dirname -- /' returns `/', for SunOS dirname scripts that escaped.
10758         Report by Sam Sirlin <sam@kalessin.jpl.nasa.gov>.
10760 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
10762         * lib/autoconf/general.m4: Revert AC_TRY_EVAL and AC_TRY_COMMAND,
10763         since evidently some packages rely on the old, broken behavior.
10764         Problem reported by Ralf Wildenhues in
10765         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00160.html>.
10766         (AC_TRY_EVAL, AC_TRY_COMMAND, _AC_EVAL): Go back to the
10767         pre-2006-05-26 definitions, but leave in the comments that
10768         these macros are dangerous and should not be used.
10769         (_AC_DO_ECHO): Renamed from _AC_EVAL_ECHO.  All callers changed.
10770         (_AC_DO): Renamed from _AC_EVAL.  All callers changed.
10771         (_AC_DO_STDERR): Renamed from _AC_EVAL_STDERR.  All callers changed.
10772         (_AC_DO_VAR): Renamed from AC_TRY_EVAL.
10773         (_AC_DO_TOKENS): Renamed from AC_TRY_COMMAND.
10775 2006-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10777         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
10778         the use of 'tr', since this is our only use of 'tr'.
10780 2006-05-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10781         and Paul Eggert  <eggert@cs.ucla.edu>
10783         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
10784         Don't assume 'grep' works on long lines, since AIX grep doesn't.
10786 2005-05-28  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10788         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on
10789         the output file in the `${datarootdir}' test.
10791 2005-05-28  Stepan Kasal  <kasal@ucw.cz>
10792         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10794         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If we have not seen
10795         mention of `datarootdir' in the input file(s), but literal
10796         `${datarootdir}' in the output file, and we haven't warned yet,
10797         then warn as well: the user may have (erroneously) used
10798         `AC_SUBST([mydatadir], [$datadir/my])' instead of the correct
10799         `AC_SUBST([mydatadir], ['${datadir}/my'])'.
10800         * tests/torture.at (datarootdir workaround): Extend this test.
10801         * NEWS: Update.
10803 2006-05-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10804         and Paul Eggert  <eggert@cs.ucla.edu>
10806         * doc/autoconf.texi (autoheader Invocation): The first argument to
10807         `AC_DEFINE_UNQUOTED' need not be a literal.  Mention the
10808         alternatives and clear up the language a bit.
10810 2006-05-27  Paul Eggert  <eggert@cs.ucla.edu>
10812         * NEWS: Reword notice for AC_TRY_COMMAND, AC_TRY_EVAL,
10813         ac_config_guess, ac_config_sub, ac_configure.
10814         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
10815         Fix typo that prevented an unnecessary space from being removed.
10816         Problems reported by Ralf Wildenhues in:
10817         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00143.html
10819 2006-05-26  Paul Eggert  <eggert@cs.ucla.edu>
10821         * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
10822         Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
10823         Don't use the term "thread-safe" to talk about mkdir race
10824         conditions, since the problem is more a process than a thread
10825         issue.  Problem reported by Stepan Kasal in:
10826         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
10827         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
10828         the test for 'install' more closely.  Look at MKDIR_P first.
10829         Look in the PATH, and at /opt/sfw/bin.
10830         Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
10831         Don't bother to try mkdir -p, since we already check mkdir --version;
10832         just look at the version number.  (There's no easy way to check
10833         for race-free implementations.)
10834         * tests/tools.at (autoconf: subdirectories): Adjust to above
10835         changes, since MKDIR_P now might end in "/mkdir -p".
10837         * doc/autoconf.texi (autoheader Invocation): Mention that the
10838         first arg of AC_DEFINE_UNQUOTED must be a literal.
10839         Problem reported by Ben Pfaff in
10840         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00090.html>.
10842         * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
10843         * doc/autoconf.texi (Special Chars in Variables): New section.
10844         (Preset Output Variables): Warn about special chars in CPPFLAGS.
10845         (Installation Directory Variables): Quote $(datadir) better.
10846         (Limitations of Builtins): Describe some of eval's trickiness.
10848         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
10849         * lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
10850         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
10851         in front of every arg, not just trailing args.  Quote apostrophes.
10852         (_AC_EVAL_ECHO): New macro.
10853         (_AC_EVAL, AC_EVAL_STDERR): Use it.  Quote arg of eval.
10854         (AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
10855         removed.
10856         (_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
10857         exposed by quoting of eval argument.  Put the command on line line
10858         so it logs better.
10859         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
10860         (_AC_PATH_X, AC_PATH_X): Quote more safely.
10861         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
10862         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
10863         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
10864         Handle special chars in prefix, ac_srcdir, ac_aux_dir.
10865         Use eval more safely.
10866         (_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
10867         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
10868         to be replaced.
10869         * tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
10870         lines, exposed by quoting of eval argument.
10872 2006-05-26  Stepan Kasal  <kasal@ucw.cz>
10873         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10875         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
10876         initialization of `ac_cv_exeext', do not override it if it was
10877         already set, unless it was set to `no', for compatibility with
10878         Autoconf-2.13, and comment this.
10879         Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
10880         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
10881         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
10882         * doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
10883         Document that this test may be overridden by setting
10884         `ac_cv_exeext'.
10886 2006-05-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10888         Revert these two patches:
10890         2006-04-06  Eric Blake  <ebb9@byu.net>
10891         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
10892         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
10893         2006-04-01.
10895         2006-04-01  Stepan Kasal  <kasal@ucw.cz>
10896         Clean up _AC_COMPILER_EXEEXT* macros.
10897         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
10898           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
10899           ac_file to the name of the default output file and call
10900           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
10901           initial `rm' of the candidate files...
10902         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
10903           the same list in subsequent `rm' calls, and for the temporary
10904           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
10905           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
10906         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
10907         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
10908           no longer needed) by libtool.  Make it a cache check.
10909         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
10910           copied here by mistake.
10911         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
10912           _AC_COMPILER_EXEEXT.
10913         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
10914           _AC_COMPILER_OBJEXT directly.
10915         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
10917 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10919         * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
10920         Fix description of how the buggy `sed' works.
10922 2006-05-25  Noah Misch  <noah@cs.caltech.edu>
10924         Sync from Automake:
10926         * lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
10927         ENOLCK.  Only mention `make -j' when applicable.  Only raise
10928         fatal errors when `make -j' is involved.  Improve error message.
10930 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10932         * doc/autoconf.texi (Here-Documents): We now know more about
10933         the variable expansion in here documents bug.
10934         Thanks to Tim Rice and Stepan Kasal.
10936         * doc/autoconf.texi (Making testsuite Scripts): Add an example
10937         how to use TESTSUITEFLAGS.  Suggested by Eric Blake.
10939 2006-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10941         * tests/autotest.at (Multiline command from M4 expansion):
10942         No failure to be expected if the shell quotes newlines in
10943         commands in the `set -x' output.  Report by Tim Rice.
10944         * THANKS: Update.
10946 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10948         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
10949         expansion in the here-documents used by config.status, as that
10950         runs afoul of the Korn shell version M-12/28/93d bug described in
10951         the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
10952         fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
10953         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
10955 2006-05-23  Jim Meyering  <jim@meyering.net>
10957         * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
10958         Fix typo introduced with 2006-04-02 change.  It reversed the sense
10959         of the test.
10961 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10963         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
10964         ac_dB slightly, to save bytes in the script.
10965         Max out at 50 lines, rather than 96; this is more likely
10966         (though not guaranteed) to avoid obscure 'sed' failures.
10968 2006-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10970         * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
10971         `tr -d -' as bad option argument.  Work around this by deleting
10972         an unrelated character.
10973         Report by Tim Rice <tim@multitalents.net>.
10975 2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>,
10976             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
10977             Stepan Kasal  <kasal@ucw.cz>
10979         * doc/autoconf.texi (Particular Programs): Do not promise that
10980         we always prefer the GNU version of the program, and that we
10981         search according to PATH; both rules can have exceptions.
10982         Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
10983         AC_PROG_SED.  Move descriptions of limitations
10984         to the Limitations of Usual Tools section.
10985         (Limitations of Usual Tools) <sed>: Mention script length
10986         limitations with Solaris /usr/ucb/sed.
10987         <grep>: Fix wording for empty alternative.  Mention that -c and
10988         -l should not be combined, and that -E and -F should not be
10989         combined.
10991 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10992         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10994         * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
10995         limits in Solaris 8 /usr/ucb/sed by testing a long script.
10997 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
10999         * doc/autoconf.texi (Defining Symbols): Literal parameter of
11000         AC_DEFINE is now passed to m4_pattern_allow.
11001         * NEWS: Mention that; likewise for AC_SUBST.
11002         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
11003         the parameter to m4_pattern_allow.
11004         * tests/tools.at: Add a check for that.
11006 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
11008         * lib/autoconf/status.m4: Fix typos.
11010 2006-05-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11012         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
11013         only the files that this macro generates.
11015 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11017         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
11018         the HP-UX sed limitation of 99 commands, labels do not count.
11019         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
11020         in the comment.
11021         (_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
11023 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11025         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
11026         Import the following fix from coreutils:
11028         2006-01-13  Jim Meyering  <jim@meyering.net>
11030         Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
11031         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
11032         not double-quote uses of that variable, to accommodate the rare
11033         case in which getmntent is available in none of the libraries
11034         checked.  This happens at least on FreeBSD 5.0.
11036 2006-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11038         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
11039         ac_config_guess, ac_config_sub, and ac_configure, since evidently
11040         some other programs unwisely rely on these undocumented vars.
11041         But put in warning comments about them.
11042         Problem reported by Ralf Wildenhues in
11043         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
11044         * NEWS: Document that these variables are intended to go away.
11046 2006-05-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11048         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
11049         and set the language to C++ (analogous to the equivalent Fortran
11050         tests).
11052         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
11053         * doc/autoconf.texi (C++ Compiler): Document it.
11054         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
11055         * NEWS: Update.
11057 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11059         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
11060         that caused config.status to generate 100-command sed scripts; the
11061         portable limit is 99.
11063 2006-05-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11065         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
11066         variable `ac_d' instead of `d' to avoid infringing namespace.
11067         Report by Ralf Menzel.
11069 2006-05-18  Paul Eggert  <eggert@cs.ucla.edu>
11071         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
11072         $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
11073         * tests/tools.at (autoconf: subdirectories): New test, taken from
11074         the corresponding problem report by Ralf Wildenhues in:
11075         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
11077         * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
11078         Quote some uses of shell variables if they might suffer unexpected
11079         globbing.  This doesn't fix all instances of quoting problems that
11080         I found, just the easy ones that look safe.
11081         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
11082         (AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
11083         (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
11084         (AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
11085         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
11086         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
11087         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
11088         Likewise.
11089         * lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
11090         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
11092 2006-05-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11094         * bin/autoreconf.in ($help): Reword according to the manual.
11095         Suggested by Olly Betts.
11097 2006-05-17  Olly Betts  <olly@survex.com>  (tiny change)
11098         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11100         * bin/autoreconf.in: Pass the directory argument to
11101         `require_configure_ac'.  Fix comment.
11102         * tests/torture.at (Configuring subdirectories): Expose this.
11103         Reported by Olly Betts.
11105 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11107         * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
11108         lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
11109         Automake as follows:
11111         * lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
11112         `$configure_in' instead of `configure.in', to preserve
11113         directory component.
11115 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11117         * config/config.guess, config/config.sub, config/texinfo.tex,
11118         doc/make-stds.texi, doc/standards.texi: Sync from upstream.
11120 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
11122         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
11123         test for C99 conformance; (bool) 0.5 is an integer constant
11124         expression, but (bool) -0.5 is not.  Problem reported by Fedor
11125         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
11127 2006-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11129         * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
11130         sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
11131         Warn about obsolete install-sh files.  Remove stray sentence
11132         fragment and fix cross reference.
11133         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
11134         install -d; this undoes the 2006-05-10 change.
11135         (MKDIR_P): Mark with AN_MAKEVAR.
11136         (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
11137         that we don't require $INSTALL to be thread-safe.  Move comments
11138         out of generated code.  Require AC_CONFIG_AUX_DIR_DEFAULT instead
11139         of AC_PROG_INSTALL.  Output a message saying that we're checking
11140         mkdir -p.  Set MKDIR_P rather than mkdir_p.  Do special magic for
11141         MKDIR_P instead of AC_SUBST.
11142         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
11143         Special magic for MKDIR_P, too.
11144         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
11145         a dnl.
11146         * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
11148 2006-05-11  Paul Eggert  <eggert@cs.ucla.edu>
11150         Sync from Automake, as follows:
11152         2006-05-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11153         * config/install-sh: Initialize IFS, so field splitting isn't
11154         turned off later.
11155         * config/mkinstalldirs: Likewise.
11156         * config/missing: Remove superfluous quotes.  Replace all uses of
11157         `[' by `test', for consistency, and for..
11158         * config/missing (sed_minuso, sed_output): New variables.
11159         (autom4te, help2man, makeinfo): Use them.  Unifies detection of
11160         `-o FILE', `--output FILE', `--output=FILE', stricter regex.
11161         Fixes `missing' to detect `--output' for help2man.  Fixes
11162         PR automake/483.  Report by Dennis J. Linse.
11163         (autom4te): Document in `missing --help'.
11165 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
11167         * NEWS: New macro AC_PROG_MKDIR_P.  AS_MKDIR_P is now more robust.
11168         * config/install-sh: Don't use 'path' to talk about file names,
11169         as per GNU coding standards.  Close a race condition reported by Ralf
11170         Wildenhues and Stepan Kasal.  There is still a race condition
11171         on hosts that predate Posix 1003.1-1992, but we can't help this.
11172         Don't mishandle weird characters like space on pre-Posix hosts.
11173         Invoke mkdir at most once per dir arg on pre-Posix hosts.
11174         * doc/autoconf.texi (Programming in M4sh): Cross-reference to
11175         AC_PROG_MKDIR_P from AS_MKDIR_P.
11176         (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
11177         from mkdir.  Mention that Autoconf 2.60 install-sh is safe but
11178         earlier editions are not (including Automake 1.8.3).
11179         Do not suggest mkinstalldirs for thread-safety.
11180         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
11181         that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
11182         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
11183         presence of special characters and race conditions.
11184         * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
11185         in Autoconf's name space.
11187 2006-05-10  Bruno Haible  <bruno@clisp.org>
11188         and Paul Eggert  <eggert@cs.ucla.edu>
11190         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
11191         from Automake with minor changes.
11192         * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
11194 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
11196         * config/install-sh: Update to Automake CVS version, as follows:
11197         2006-04-25  Stepan Kasal  <kasal@ucw.cz>
11198         * lib/install-sh: Simplify the expr implementation of dirname.
11199         2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11200         * lib/install-sh: Handle --, and diagnose unknown options.
11202 2006-05-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11204         * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
11205         `./autom4te' to create `./testsuite', since the `all' target
11206         will ensure its presence, but `installcheck' should not create
11207         the uninstalled wrappers.
11209         * tests/torture.at (Unusual Automake input files): Skip if we
11210         detect automake < 1.8.
11212 2006-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11214         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
11215         is set to `no', then that overrides and sets ac_cv_prog_cc_c89
11216         and ac_cv_prog_cc_c99 to `no', for backward compatibility.
11217         * NEWS: Update.
11219 2006-05-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11221         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
11222         munge (multiple) white space and other oddities.
11223         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
11224         single quotes in variable assignment.
11225         (AC_ARG_VAR, configure invocation): Adjust tests to expose this
11226         and similar failures by adding multiple spaces, tabs, and other
11227         special characters.
11228         Report and different test suggested by Francesco Romani
11229         <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
11231         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
11232         single quotes, we only need to search for single quotes; this
11233         both simplifies the search pattern, and makes us less
11234         susceptible to `echo' variations for arguments not containing
11235         single quotes.
11236         (_AC_ARG_VAR_VALIDATE): Likewise.
11238 2006-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11240         * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
11241         `$*' and IFS concatenation issue with traditional shells and
11242         bash-2.04.  Report by Seanster@Seanster.com.
11244 2006-05-03  Bruno Haible  <bruno@clisp.org>
11246         * doc/autoconf.texi (Limitations of Usual Tools): Identify more
11247         precisely which Mac OS X versions have the od problem.
11249 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
11251         * doc/autoconf.texi: Use @option systematically.
11253 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
11254         and Bruno Haible  <bruno@clisp.org>
11256         * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
11257         about 'od'.
11258         (Integer Overflow): Mention the special case of integer division
11259         overflow.
11261 2006-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11263         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
11264         traditional shells like the Solaris one that do not use the
11265         first IFS character for assembling `$*'.
11266         Prompted by a related report from autoconf_bug@nro.ca.
11268 2006-05-01  Paul Eggert  <eggert@cs.ucla.edu>
11269         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11271         * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
11272         Mention more problems with the -e option.
11274 2006-04-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11276         * NEWS: Typo.
11277         * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
11279         * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
11280         in URLs to improve DVI formatted output (requires texinfo 4.6).
11281         (System Services, Systemology, Shellology): Likewise.
11282         (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
11283         output.
11285         * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
11286         continuous text.
11287         (Runtime): Fix macro argument names to match description:
11288         `action-if-found' -> `action-if-true' and similarly.
11289         (Obsolete Macros): Likewise.
11290         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
11291         (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
11292         (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
11294 2006-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11296         * doc/autoconf.texi (Limitations of Make): Clean up markup.
11298         * ChangeLog: Typo.
11299         * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
11300         DVI output.
11302 2006-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11304         * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
11305         /bin/sh set unsorted output.
11306         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
11307         * tests/local.at: Likewise.
11309 2006-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11311         * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
11312         (Integer Overflow, Null Pointers, Buffer Overruns):
11313         (Floating Point Portability, Exiting Portably): New sections.
11314         (Writing Test Programs): Fix some langauge.  Recommend exiting
11315         with status 1, not merely nonzero.  Clarify exit declaration.
11316         (Run Time): Move C exit status stuff to new Exiting Portably section.
11317         (Systemology): Mention Posix and levenez.  Update v7 reference.
11318         (Portable Shell): Mention the Posix shell.
11320 2006-04-25  Stepan Kasal  <kasal@ucw.cz>
11322         * bin/autoconf.as (me): Replace by as_me.
11324 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11326         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
11327         since as_me isn't set yet.
11329 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
11331         Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
11332         a few minor bugs in this area.
11334         * doc/autoconf.texi (Programming in M4sh): Comment out the
11335         documentation of AS_BASENAME, for now.
11336         (Shell Substitutions): Do not use AS_DIRNAME in an example.
11337         (Limitations of Builtins) <basename>: Do not refer to
11338         AS_BASENAME.
11339         * bin/autoconf.as (me): Don't use AS_BASENAME.
11340         (dir): Remove the unused variable.
11341         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
11342         AS_DETECT_REQUIRED.  All uses changed.
11343         (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
11344         All uses changed.
11345         (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
11346         (AS_BASENAME): Use "basename --" to protect against leading "-".
11347         (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR.  All uses changed.
11348         (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED.  All uses changed.
11349         (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
11350         (_AS_DIRNAME_PREPARE): Likewise.
11351         (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR.  All uses changed.
11352         (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED.  All uses changed.
11353         (AS_DIRNAME): Use "dirname --".
11355 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
11357         * doc/autoconf.texi (Runtime): Renamed from "Run Time".  All uses
11358         of "run time" and "run-time" changed to "runtime", for consistency.
11359         * lib/autoconf/fortran.m4: Likewise (in comment).
11360         * lib/autoconf/functions.m4: Likewise.
11361         * lib/autoconf/general.m4: Likewise.
11362         * lib/autoconf/headers.m4: Likewise.
11364         * doc/autoconf.texi (Run Time): Document the exit status situation
11365         with more accuracy and detail.
11367 2006-04-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11369         * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
11370         Archive is not officially `GNU' any more.  Update URL.
11371         (Defining Directories): Likewise
11372         * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
11374 2006-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11376         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
11377         newline from the `trap' code to finish `config.log'; the NetBSD
11378         /bin/sh resets the exit status after an empty command, as
11379         documented in doc/autoconf.texi.
11380         Reported by Dalibor Topic <robilad@kaffe.org>.
11382 2006-04-19  Paul Eggert  <eggert@cs.ucla.edu>
11384         * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
11385         Suggested by Bruno Haible.
11387 2006-04-18  Paul Eggert  <eggert@cs.ucla.edu>
11389         * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
11390         some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
11391         Instead, just list the shells that we know work.
11392         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg.  All uses
11393         changed.  Be more cautious about the _cv_ variable.
11394         * tests/tools.at (Syntax of the shell scripts): Check the
11395         _cv_ variable once, at first, to avoid an internal autoconf error
11396         when sh -n does not work.
11398 2006-04-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11400         * lib/Autom4te/FileUtils.pm: Sync from Automake.
11402 2006-04-16  Paul Eggert  <eggert@cs.ucla.edu>
11404         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
11405         use ">&-" since we're only 99.999% sure that this is portable,
11406         and since the MinGW bug is fixed in a different way.
11407         * lib/autotest/general.m4 (AT_INIT): Likewise.
11409 2006-04-16  Stepan Kasal  <kasal@ucw.cz>
11411         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
11412         before opening config.log, to avoid hitting a bug on MinGW.
11414 2006-04-14  Paul Eggert  <eggert@cs.ucla.edu>
11416         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
11417         AS_MESSAGE_LOG_FD before reopening it onto the log file.
11418         This works around a MinGW bug reported by Eric Paire.
11419         Make sure that all writes to the log file append to it,
11420         rather than possibly losing data.
11421         * lib/autotest/general.m4 (AT_INIT): Likewise.
11423 2006-04-14  Stepan Kasal  <kasal@ucw.cz>
11425         * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
11426         description.
11428 2006-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11430         * NEWS: Update.
11432         * configure.ac (AC_INIT): Bump to 2.59d.
11434 2006-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11436         Version 2.59c.
11438         * Makefile.maint (news-date-check): Do not require a leading `*'
11439         before the release date in NEWS.
11441 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
11442         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11444         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
11445         the instantiated file do not contain the string 'datarootdir'
11446         but contain @datadir@, @docdir@, @infodir@, @localedir@, or
11447         @mandir@, replace the reference '${datarootdir}' by the value.
11448         * tests/torture.at (datarootdir workaround): New test.
11449         * NEWS: Advertise this temporary fixup.
11450         Based on a patch by Bruno Haible, reported and analyzed by
11451         Paul Eggert and Noah Misch.
11453 2006-04-12  Eric Blake  <ebb9@byu.net>
11455         * tests/autotest.at (Debugging a failed test): Fix comment.
11457 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
11459         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
11460         all the changes since 2006-04-07.
11462 2006-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11464         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
11465         succeeded, but `ln -s file dir' failed, take care to remove the
11466         leftover target before the next test, to prevent its spurious
11467         failure; also make sure `ln file dir' works before selecting it.
11468         Thanks to Keith Marshall for pointing this out.
11469         * THANKS: Update.
11471         * lib/autotest/general.m4 (AT_INIT): Store quoted variable
11472         assignments in `at_debug_args', so that we put them correctly
11473         in the `run' script.
11474         * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
11475         Reported by Eric Blake.
11477 2006-04-11  Eric Blake  <ebb9@byu.net>
11479         * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
11480         top-level tests after micro-suite has been run.   Used in...
11481         (Debugging a successful test, Debugging script and environment),
11482         (Debugging a failed test): ...these new tests.  The first of these
11483         is fixed by...
11484         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
11485         macro, split out from...
11486         (AT_INIT): ...here, so that using -d also generates a run script.
11487         Document that -d inhibits top-level logging.
11488         * doc/autoconf.texi (testsuite Invocation): Document that -d only
11489         inhibits top-level logging; debug scripts are created.
11491         * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
11492         check.
11493         * tests/autotest.at (Empty test, Empty check): New test to check it.
11495         * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
11496         from gcc.
11498 2006-04-10  Stepan Kasal  <kasal@ucw.cz>
11500         * tests/mktests.sh: Use "trap '' 0", not "trap 0".  Do not touch
11501         the files if a problem appears.  Make the empty *.at files
11502         read-only, too.  Proposed by Ralf Wildenhues.
11504 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11506         * config/Makefile.am: Add comment to force updated Makefile.in.
11508         * lib/freeze.mk: Fix typo in comment.  Unlike the last, white
11509         space only patch to this file, this patch causes the Makefile.in
11510         files that include freeze.mk to be updated, and thus have a
11511         newer time stamp again, which in turn makes a pristine CVS
11512         checkout have correct time stamps.
11514         * Makefile.maint (cvs-sv): New macro, to be used..
11515         (config.guess-url_prefix, config.sub-url_prefix)
11516         (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
11517         point to CVS text checkout of Gnulib files.
11518         (copyright-check): Bump current year.
11519         (announcement): Do not hard-wire `./announce-gen'.
11520         (cvs-update): Propagate failures of `cvs' and `move-if-change'
11521         correctly.
11522         * Makefile.cfg (executable-update): Use `chmod a+x' instead of
11523         `chmod +x'.
11524         (wget_files): Update config.guess, config.sub, texinfo.tex by
11525         `wget-update', now that their URLs work again.
11527 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
11529         * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
11530         Problem noted by Paul D. Smith.
11532 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11534         * doc/autoconf.texi: Remove unused words from word list.
11535         * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
11536         .x-sc_trailing_space: New files.
11538         * doc/standards.texi: Sync from gnulib.
11540         * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
11541         `LIBOBJDIR' as experimental.
11543         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
11544         with a target directory; it's internally implemented as `cp'
11545         anyway, but since Autoconf advertises the possibility to use
11546         a target directory when LN_S is `ln -s', we need to find out.
11547         Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
11548         analyzed by Keith Marshall <keith.marshall@total.com>.
11550         * THANKS: Update.
11552 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
11554         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
11555         confdefs.h as-is.  In general, if it has backslash-newline or the
11556         like, then it doesn't work either to sort or to remove empty
11557         lines.
11559 2006-04-09  Stepan Kasal  <kasal@ucw.cz>
11561         * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
11563 2006-04-09  Alexandre Duret-Lutz  <adl@gnu.org>
11565         * lib/autom4te.in (Automake-preselections): Preselect
11566         _AM_SUBST_NOTMAKE.
11568 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
11570         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
11571         apostrophe within a single-quoted string, as this is the usual
11572         tradition and is easier to read than '"'"'.  Don't rely on the
11573         shell treating "$/" like '$/'.  Use a more-consistent indenting
11574         style for the trap.
11576 2006-04-09  Eric Blake  <ebb9@byu.net>
11578         * tests/autotest.at (Backquote command substitution),
11579         (Multiline backquote command substitution): Remove mistaken
11580         AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
11581         applied...
11582         (Parenthetical command substitution, Multiline parenthetical
11583         command substitution): here.
11585 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
11587         Import macros from gnulib (often changing their name).
11589         * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
11590         New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
11591         AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
11592         AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
11593         AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
11594         AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
11595         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
11596         AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
11597         AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
11598         AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
11599         The manual mentions Gnulib more prominently.
11600         * doc/autoconf.texi (Gnulib): New node.
11601         (Pointers): Add Gnulib URL.
11602         (Particular Functions): Alphabetize.  Add AC_FUNC_STRTOLD.
11603         (Generic Functions): Add AC_CHECK_FUNCS_ONCE.  Refer to new
11604         Gnulib section.
11605         (Particular Headers): Add AC_HEADER_ASSERT.  For stdbool.h,
11606         suggest a #define rather than a typedef for _Bool, and mention
11607         Gnulib rather than trying to substitute stdbool code.
11608         (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
11609         (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
11610         (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
11611         AC_STRUCT_DIRENT_D_TYPE.
11612         (Particular Types): Mention stdint.h and inttypes.h as standard
11613         headers too.
11614         Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
11615         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
11616         AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
11617         AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
11618         AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
11619         (C Compiler): Move AC_C_LONG_DOUBLE to ...
11620         (Obsolete Macros): here.  Under AC_LONG_DOUBLE, mention
11621         AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
11622         (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
11623         (Coding Style).  Don't mention m4_expand_once.
11624         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
11625         AC_TYPE_LONG_DOUBLE_WIDER.  Now obsolete.
11626         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
11627         (AC_CHECK_FUNCS): Use it.
11628         (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
11629         (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
11630         * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
11631         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
11632         (AC_HEADER_ASSERT): New macro.
11633         (AC_HEADER_STDBOOL): Don't assume "#error" works.
11634         Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
11635         Catch a bug in an HP-UX C compiler.
11636         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
11637         * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
11638         (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
11639         (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
11640         (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
11641         (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
11642         New macros.
11644         * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
11645         use /^foo|bar$/, it does not mean /^(foo|bar)$/.
11647 2006-04-08  Stepan Kasal  <kasal@ucw.cz>
11649         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
11650         of the warning introduced by the 2001-08-28 change.
11652 2006-04-08  Stepan Kasal  <kasal@ucw.cz>,
11653             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11655         * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
11656         variables shall be overriden by the cache.
11657         * tests/torture.at (AC_ARG_VAR): Test also with a first value
11658         that contains braces.
11660 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
11662         Revert the patch from 2006-04-01 and only improve
11663         _AS_DETECT_BETTER_SHELL:
11665         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
11666         skip nonexistent directories.
11667         (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
11668         only shell candidates which exist.
11669         (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
11670         * lib/autotest/general.m4 (AT_INIT): No need to give three
11671         parameters to _AS_PATH_WALK.
11673 2006-04-07  Stepan Kasal  <kasal@ucw.cz>,
11674             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11676         * bin/autoupdate.in (handle_autoconf_patches): Change the way we
11677         distinguish m4sugar macros.
11678         * tests/tools.at (autoupdating with aclocal and m4_include):
11679         New test.  Bug reported by Gary V. Vaughan <gary@gnu.org>,
11680         test case by Noah Misch <noah@cs.caltech.edu>.
11682 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
11684         Revert my change from 2006-03-17, in other words:
11685         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
11686           and DUALCASE=1.
11687         (AS_SHELL_SANITIZE): Remove DUALCASE=1.
11688         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
11689           it is set.
11691 2006-04-07  Eric Blake  <ebb9@byu.net>
11693         * doc/autoconf.texi (Programming in M4sh): Document that
11694         AS_MKDIR_P exits the script on failure.
11695         * lib/autotest/general.m4: Remove redundant AS_ERROR.
11697 2006-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11699         * config/elisp-comp, config/install-sh, config/mdate-sh,
11700         config/missing, config/mkinstalldirs: Sync from Automake.
11702         * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
11703         from Automake.
11705         * doc/make-stds.texi: Sync from gnulib.
11707 2006-04-06  Eric Blake  <ebb9@byu.net>
11709         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
11710         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
11711         2006-04-01.
11713 2006-04-06  Stepan Kasal  <kasal@ucw.cz>,
11714             Eric Blake  <ebb9@byu.net>,
11715             Paul Eggert  <eggert@cs.ucla.edu>,
11716             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11718         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
11719         whether `set' quotes correctly: redirect stderr of the tested
11720         `set', and use a subshell, for Ultrix; use `sed' instead of
11721         `grep' for zsh `set' which may write binary output; match only
11722         at the beginning of a line, to avoid false positives.
11723         In order to avoid false positives by unrelated variables with
11724         multiline content, put the dump algorithm in a subshell and
11725         unset all variables containing newlines (except some which are
11726         special to the shell).  Warn about cache variables that are
11727         unset.
11729 2006-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11731         * config/config.guess, config/config.sub, config/texinfo.tex:
11732         Sync from upstream.
11734         * tests/mktests.sh: Reword comments.
11736         * tests/mktests.sh: Only skip internal macros starting with
11737         `_AC_' or `__AC_'.  Noted by Stepan Kasal.
11738         Update exclusion lists for the test suite to this end:
11739         (AC_ARG_VAR): Do test this now.
11740         (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
11741         (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
11742         (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
11743         (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
11745         * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
11746         shell issue with double-quoted command substitutions of native
11747         commands.
11748         Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
11749         Marshall.
11751         * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
11752         no file matches the glob, discard the warning, set `nullglob'.
11753         (syntax-check): Likewise.
11754         (sc_cast_of_x_alloc_return_value): Likewise.
11755         (sc_cast_of_alloca_return_value, sc_error_exit_success)
11756         (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
11757         (m4-check): Likewise.
11758         (sc_system_h_headers): Do not print rule on execution.
11759         (sc_tight_scope): Do not fail for non-existing `src' directory.
11760         (sc_changelog): Skip the Copyright footer.
11761         * lib/autoconf/lang.m4: Remove trailing space.
11763         * lib/autoconf/status.m4: More replacements to
11764         <tab><space> where this makes sense.
11766 2006-04-06  Stepan Kasal  <kasal@ucw.cz>
11768         * tests/Makefile.am (maintainer-check-posix):
11769           s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
11771         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
11772           ac_config_<foo>s again, sometimes normalized, sometimes not.
11773         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
11774         (AC_CONFIG_COMMANDS): Do not do so here.
11775         (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
11776           and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
11777           2005-07-25 rewrite.  Noticed by Noah Misch.
11779         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
11780           _AC_PRESERVE_HELP_ORDER, ...
11781         (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
11783         * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
11784           inside m4_expand_once; it is redundant.
11786         * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
11787           for --help from Cygnus `configure.'
11789 2006-04-06  Paul Eggert  <eggert@cs.ucla.edu>
11791         * doc/autoconf.texi (C Compiler): Warn about #error.  Follows up
11792         on a patch proposed by Ralf Wildenhues.
11794 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
11796         * lib/autoconf/status.m4: Replace <space>''<tab> with
11797         <tab><space> where this makes sense.
11799 2006-04-05  Howard Chu  <hyc@highlandsun.com>  (trivial change)
11800             Noah Misch  <noah@cs.caltech.edu>
11802         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
11803         (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
11804         * doc/autoconf.texi (Help Formatting): New node.
11805         * NEWS: Announce AC_PRESERVE_HELP_ORDER.
11807 2006-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11809         * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
11810         lib/autoconf/specific.m4, lib/autoconf/status.m4,
11811         lib/autoconf/types.m4, lib/autotest/general.m4,
11812         tests/mktests.sh, tests/torture.at: White space cleanup:
11813         remove some SPACE before TAB, or add quoting ('' or @&t@).
11815         * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
11817         * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
11819 2006-04-05  Eric Blake  <ebb9@byu.net>
11821         * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
11822         empty test suite works.
11823         * tests/autotest.at (Empty test suite): Remove xfail.
11825 2006-04-05  Noah Misch  <noah@cs.caltech.edu>
11827         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
11828         TAGS to ac_config_<foo>s.
11829         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
11830         (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
11831         normalizing it, consistent it with previous releases.
11832         * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
11834 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
11836         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
11837         Use simplified args that Eric Blake originally suggested.
11839 2006-04-04  Paul Eggert  <eggert@cs.ucla.edu>
11841         * tests/mktests.sh: Don't use 'cat'; just read the files directly.
11842         Prefer 'sort -u' to 'sort | uniq'.  Filter data before sorting it.
11843         Use 'comm' rather than N instances of grep; this also fixes a bug
11844         whereby substrings were incorrectly matched, causing us to not
11845         generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
11846         (exclude_list): Exclude empty macros.
11847         (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
11849         Use awk rather than grep -E or egrep, to avoid
11850         portability problems with regular expressions containing newlines.
11851         (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
11852         Switch from grep to awk syntax.
11853         (ac_exclude_script): Renamed from ac_exclude_egrep.
11854         (au_exclude_script): Renamed from au_exclude_egrep.
11856 2006-04-04  Noah Misch  <noah@cs.caltech.edu>
11858         * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
11859         a subdirectory subject to Cygnus `configure'.
11860         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
11862         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
11863         report request when we have no AC_PACKAGE_BUGREPORT.
11865 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11867         * THANKS: Update.
11869         * tests/mktests.sh: Update copyright year in the header of the
11870         generated files.
11872         * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
11873         (AC_C_RESTRICT): Likewise.  Furthermore, add a function with a
11874         typedef'ed restricted pointer, to catch a compiler bug on
11875         HP-UX 11.x, and fix warnings so it passes with -Werror.
11876         (_AC_PROG_CC_C99): Likewise.
11877         Reported by Albert Chin <china@thewrittenword.com>.
11878         * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
11880 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
11882         * bin/autoscan.in (subdirs): New global.
11883         (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
11884         (output): Emit AC_CONFIG_SUBDIRS as needed.
11885         * tests/autoscan.at (autoscan): Remove XFAIL.
11887 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
11889         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
11891 2006-04-03  Eric Blake  <ebb9@byu.net>
11893         * THANKS: Add myself.
11895 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11897         * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
11898         to log, point to testsuite output tree.
11900 2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
11902         * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
11903         * doc/autoconf.texi (Function Portability): Mention that C++
11904         has trouble with 'exit'.
11905         (Guidelines): Test programs shouldn't use 'exit'.
11906         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
11907         Remove; all uses removed.
11908         (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
11909         Return from 'main' instead of calling 'exit'.
11910         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
11911         (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
11912         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
11913         (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
11914         (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
11915         (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
11916         (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
11917         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
11918         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
11919         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
11920         * tests/compile.at: Likewise.
11922 2006-04-02  Pavel Roskin  <proski@gnu.org>
11924         * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
11926 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
11928         Clean up _AC_COMPILER_EXEEXT* macros.
11930         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
11931           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
11932           ac_file to the name of the default output file and call
11933           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
11934           initial `rm' of the candidate files...
11935         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
11936           the same list in subsequent `rm' calls, and for the temporary
11937           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
11938           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
11939         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
11940         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
11941           no longer needed) by libtool.  Make it a cache check.
11942         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
11943           copied here by mistake.
11944         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
11945           _AC_COMPILER_EXEEXT.
11946         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
11947           _AC_COMPILER_OBJEXT directly.
11948         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
11950 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
11952         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
11953         (AS_DIRNAME): Use it.
11954         (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
11956         * tests/*.at: Remove the generated ones.
11958 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
11960         * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
11962 2006-04-01  Eric Blake  <ebb9@byu.net>
11964         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
11965         directories, unless optional third argument supplied.
11966         (AS_UNAME): Don't optimize PATH walk.
11968         * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
11970 2006-04-01  Eric Blake  <ebb9@byu.net>
11971         and Stepan Kasal  <kasal@ucw.cz>
11973         * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
11974         and fix some typos.
11976 2006-04-01  Noah Misch  <noah@cs.caltech.edu>
11978         * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
11979         Autoconf version number despite a zero- or one-argument AC_INIT.
11981         * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
11982         subordinate tools.
11983         * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
11984         * doc/autoconf.texi (autoreconf Invocation): Document it.
11986         * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
11987         Append LocalWords so ispell-buffer passes cleanly.  Spelling fixes.
11989 2006-04-01  Eric Blake  <ebb9@byu.net>
11991         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
11992         * lib/autotest/general.m4: Be tolerant of existing directory when
11993           rm failed to remove it.
11995 2006-04-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11997         * bin/autoupdate.in: Redefine m4_location so that warnings print
11998         the correct lines of the input file by subtracting..
11999         (_au__first_line): ..this new definition.
12001         * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
12002         AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
12003         Remove stray newline in output.
12004         (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
12005         AC_DEFUN this for autoconf, including the obsoletion diagnose.
12006         Fixes autoupdating of code where the replacement output contains
12007         m4sugar macros.
12008         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
12009         * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
12010          (au_exclude_list): Add AC_LANG_SAVE.
12011         * tests/tools.at: Several new tests for all of this.
12012         * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
12013         hairy details.
12014         The AC_LANG_SAVE issue was reported against Libtool by
12015         Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
12016         Kristian Kvilekval <kris@cs.ucsb.edu>.
12018 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
12020         * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
12021           switch all of them on and of when necessary.  Fixes the bug when
12022           m4sugar macros (e.g., m4_define) were expanded after the first
12023           automatic update (e.g., after AC_PREREQ or AC_INIT).
12025 2006-03-31  Paul Eggert  <eggert@cs.ucla.edu>
12027         * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
12028         of AS_BASENAME and AS_DIRNAME.  Reported by Stepan Kasal.
12030         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
12031         correctly.  Problem reported by Eric Blake.
12032         (_AS_EXPR_PREPARE): Detect Tru64 expr bug.  Problem reported by
12033         Ralf Wildenhues.
12035 2006-03-30  Paul Eggert  <eggert@cs.ucla.edu>
12037         * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
12038         Tighten up the basename/dirname wording.
12040 2006-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12042         * Makefile.maint (sc_texi_notab): New check: do not use TABs
12043         in texinfo files outside of verbatim environments.
12044         (syntax-check-rules): Update.
12045         * doc/autoconf.texi (Configuration Headers): Conform to it.
12047 2006-03-30  Chris Pickett <cpicke@cs.mcgill.ca>  (tiny change)
12049         * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
12050           aclocal cannot be given on the command line.
12052 2006-03-29  Paul Eggert  <eggert@cs.ucla.edu>
12054         * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
12055         Give an example for AS_DIRNAME instead of referring to Posix..
12056         (File System Conventions): Put discussion of // versus / here, and
12057         modernize it a bit.
12058         (Limitations of Usual Tools): Add basename.  Remove verbiage
12059         after dirname, since it got moved to the above sections.
12060         All this was inspired by a patch proposed earlier by Eric Blake.
12062 2006-03-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12064         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
12065         `$0' to protect against spaces.
12066         * lib/autotest/general.m4 (AT_INIT): Likewise.
12067         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
12068         `$0', $as_me.
12070 2006-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12072         * bin/autoscan.in: The value of find_configure_ac should be
12073         checked for existence, so we don't barf over a nonexisting
12074         configure.ac.  Reported by Laurence Darby <ldarby@tuffmail.com>.
12076 2006-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12078         * bin/autoupdate.in: Fix some typos.
12080 2006-03-21  Stepan Kasal  <kasal@ucw.cz>
12082         * doc/autoconf.texi (Installation Directory Variables): Fix typo.
12084         * lib/autoscan/autoscan.list: Refreshed.
12086 2006-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12088         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
12089         and Erlang related variables.
12091         * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
12092         (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
12093         (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
12094         (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
12095         (AC_LANG_BOOL_COMPILE_TRY(Objective C))
12096         (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
12097         (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
12098         (_AC_PROG_OBJC_G): New macros.
12099         (_AC_ARG_VAR_CPPFLAGS): Adjusted.
12100         * doc/autoconf.texi (Objective C Compiler): New node.
12101         (Preset Output Variables): Document OBJCFLAGS.
12102         (Language Choice): Document `Objective C' language.
12103         (Fortran Compiler): Fix typo.
12104         * NEWS: Updated.
12105         Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
12107 2006-03-20  Stepan Kasal  <kasal@ucw.cz>
12109         * doc/autoconf.texi (Default Includes): Fix typo
12110           s/AC_HEADERS_STDC/AC_HEADER_STDC/
12111         (Limitations of Usual Tools): s/unwriteable/unwritable/
12112         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
12113           Fix typos in the comments.
12115 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
12117         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
12118           Factor out the warning to...
12119         (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
12120         * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
12121         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
12123         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
12124           case `ac_delim' when writing the sed script.
12126         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
12127           moved DUALCASE=1 ...
12128         (AS_SHELL_SANITIZE): ... here.
12129         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
12130           that it is set.
12132         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
12133           AC_SUBST.
12134         (_AC_PATH_PROG): Store the result to VARIABLE.
12135         (AC_PATH_PROG): No need to set VARIABLE again.
12137         * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
12138           the first one is usual AT_CHECK_MACRO test, the second one checks
12139           that the same works when cross-compiling.
12140         * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
12141         (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
12143 2006-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12145         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
12146         the directory `/usr/bin/posix' in the shell search, to prefer
12147         the Posix shell not only in subsequent spawns as with `$BIN_SH'
12148         on Tru64.
12150         * doc/autoconf.texi (contents): To fix texi2html output, hide
12151         `@setcontentsaftertitlepage' for HTML.
12152         (Writing Autoconf Macros): Likewise, insert space after `@c'.
12153         (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
12154         `@,{c}'.
12156 2006-03-16  Stepan Kasal  <kasal@ucw.cz>
12158         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
12159           sanitizing...
12160         (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
12161         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
12162           why IFS is restored so late; thank you, Ralf, for reminding us.
12164 2006-03-15  Stepan Kasal  <kasal@ucw.cz>
12166         * doc/autoconf.texi (Pretty Help Strings): No need to use cached
12167           variables in the examples.
12169 2006-03-14  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
12171         * doc/autoconf.texi (several sections): Cleaned up documentation for
12172         macros in erlang.m4.
12174 2006-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12176         * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
12177         failure condition for `$(cmd)' style command substitutions.
12178         (Parenthetical command substitution, Multiline parenthetical
12179         command substitution): Use it.
12181         * doc/autoconf.texi (Special Shell Variables): Missing word.
12182         Reported by Keith Marshall <keith.marshall@total.com>.
12184         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
12185         IFS even in case of empty `$PATH'.
12187 2006-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12189         * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
12190         `expr' away if there is nothing to do.
12191         < --keywords >: Simplify and robustify argument handling.
12192         Revert erroneous comment from 2005-08-23.  Extend to allow
12193         keyword negation with `!'.
12194         Update help message.  Remove broken code to prevent running
12195         tests multiple times.
12196         * doc/autoconf.texi (testsuite Invocation) < --keywords >:
12197         Update and fix the documentation accordingly.
12198         * tests/autotest.at (Keywords): Renamed to..
12199         (Keywords and ranges): .. this.  Extended to make sure negated
12200         keywords, keywords taken from AT_SETUP arguments, and numeric
12201         test ranges work, and that matching is case-insensitive.
12203 2006-03-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12205         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
12206         allow to pass unnamed structs even in C++.
12207         (AC_CHECK_SIZEOF):  Likewise.
12208         Also fix quoting error in `AC_MSG_FAILURE' arguments.
12209         * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
12210         struct): New tests for unnamed structs, each both native and
12211         cross-compiling.
12213         * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
12214         a structure inside a cast, for C++ conformance.
12215         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
12216         Also fix quoting error in `AC_MSG_FAILURE' arguments.
12218         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
12219         nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
12220         trying to execute the command `no'.
12222         * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
12223         m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
12224         expanded outside.
12226         * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
12227         example.  Do not emphasize `$%', it is hardly new and special.
12228         Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
12230         * doc/autoconf.texi (Limitations of Usual Tools): Document
12231         OpenBSD and traditional `grep' failure to handle multiple
12232         patterns separated by newlines.
12234 2006-03-10  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
12236         * doc/autoconf.texi (several sections): Add documentation for macros
12237         in erlang.m4.
12239 2006-03-10  Eric Blake  <ebb9@byu.net>
12241         * doc/autoconf.texi (Obsolete Macros): Fix wording of
12242         AC_TRY_LINK_FUNC.
12244 2006-03-10  Paul Eggert  <eggert@cs.ucla.edu>
12246         * doc/autoconf.texi: Use @acronym more consistently for acronyms
12247         like BSD, GPL, LGPL.  Fix minor English typos.
12248         (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
12249         Mention that these macros are becoming obsolete.
12250         (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
12251         Use more modern terminology for which standard is what.
12252         (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
12253         and to ansi2knr.
12254         (AC_PROG_CXX): Likewise.
12255         (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
12256         Remove obsolete discussion about how to port to K&R.
12257         (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
12258         the obsolescent AC_HEADER_STDC.
12259         (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
12260         can't rely on it.
12262 2006-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12264         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
12265         Remove stdin redirection from /dev/null to allow pipe to work.
12267 2006-03-08  Paul Eggert  <eggert@cs.ucla.edu>
12269         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
12270         Require that /lib/cpp include stdio.h correctly.  Solaris 10's
12271         doesn't.  Problem reported by D'Arcy A MacIsaac and diagnosed by
12272         Ralf Wildenhues.
12274 2006-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12276         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
12277         HP-UX sed is 99 commands, not 100.
12278         (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
12279         _AC_SUBST_FILES fragment.  Separate `{' and `r' commands by
12280         newline for portability.
12281         * tests/torture.at (Torturing config.status): Also test 100
12282         AC_SUBST_FILE invocations.  Fix test to actually verify the
12283         AC_CONFIG_FILES output.
12284         * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
12285         command, label, and read-file `r' limits.  Unify HP-UX spelling.
12287         * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
12288         non-suffix rule.
12289         ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
12290         non-GNU make.
12291         (autoconfdir, $(AUTOCONF_FILES)): Likewise.
12292         * tests/mktests.sh: Small shell portability fixes.
12294 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12296         * doc/autoconf.texi (Caching Results): Fix the examples to use a
12297         recommended quoting style and discard unwanted output.
12299 2006-03-05  Paul Eggert  <eggert@cs.ucla.edu>
12301         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
12302         (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
12303         cases, and to work around Tru64 expr bug.
12305 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12307         * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
12308         expr bug that turns the result of a regex match into a number if
12309         possible.
12311 2006-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12313         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
12314         HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
12315         in section `Specific Compiler Characteristics'.
12317 2006-03-04  Eric Blake  <ebb9@byu.net>
12319         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
12320         variable warning.
12322 2006-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12324         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
12325         order of variable initialization, so even the Solaris 2.6 shell
12326         can create a config header correctly.  Fixes lots of test suite
12327         failures.
12329 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12331         * doc/autoconf.texi (Text processing Macros): New node to
12332         document the m4sugar macros m4_re_escape, m4_tolower,
12333         m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
12335 2006-02-22  Paul Eggert  <eggert@cs.ucla.edu>
12337         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
12338         XrmInitialize (0) -> XrmInitialize ().
12339         Reported by Toshio Kuratomi.
12341 2006-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12343         * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
12344         test, as in `if tests; then cmd1; elif ...; else ...; fi'.
12345         * doc/autoconf.texi (Programming in M4sh): Adjusted.
12346         * tests/m4sh.at (AS_IF and AS_CASE): Test this.  Also make sure
12347         both macros are defun'ed so that required macros are evaluated
12348         outside.
12350         * doc/autoconf.texi (Prerequisite Macros): State more precisely
12351         where a required macro will be expanded.
12352         (Coding Style): Another reason not to use `m4_define'.
12354 2006-02-21  Eric Blake  <ebb9@byu.net>
12356         * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
12358 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12360         * doc/autoconf.texi (Looping constructs): New node, to
12361         document m4_for, m4_foreach, m4_foreach_w, and mention
12362         obsolete AC_FOREACH.
12363         (Obsolete Macros): Document AC_FOREACH.
12364         * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
12365         (m4_for): Fix to never loop (almost) endlessly, work correctly
12366         with arithmetic expressions in arguments, a step of zero or
12367         non-integer multiple of the interval, and avoid integer
12368         overflow.
12369         * tests/m4sugar.at: New test for m4_for, m4_foreach, and
12370         m4_foreach_w.
12372 2006-02-20  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
12374         Add basic support for Erlang, both for configuring Erlang/OTP
12375         tools, and Erlang as a conf test language.
12376         * lib/autoconf/erlang.m4: New file.
12377         * lib/autoconf/autoconf.m4: Add erlang.m4.
12378         * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
12379         * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
12380         * NEWS: Add short description of new macros.
12381         * THANKS: Add Romain Lenglet.
12383 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12385         * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
12386         native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
12388 2006-02-15  Eric Blake  <ebb9@byu.net>
12390         * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
12391         warning.
12393 2006-02-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12395         * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
12396         (_AS_CASE): Private helper macro.
12397         * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
12398         * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
12399         Fix syntax of AS_IF description
12400         (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
12401         for the AC_REQUIRE mess.
12402         * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
12403         AS_SHELL_SANITIZE.
12405 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
12407         * doc/autoconf.texi: Minor style cleanup.
12408         Be consistent about spaces after commas.
12409         Insert [] where empty args look a bit funny.
12410         Fix some "i.e." and "e.g." usages.
12411         Try to avoid "X/Y" usages.
12412         Don't be pedantic about "ISO C99"; just say C99.
12413         Prefer GNU style for spaces in front of parens.
12414         (Function Portability): Comment about C89 versus C99
12415         signed integer division.
12416         (Particular Headers): Use current gnulib style for dirent
12417         includes.
12419 2006-02-14  Stepan Kasal  <kasal@ucw.cz>
12420         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12422         * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
12423         macros without parameters.
12424         * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
12425         * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
12426         * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
12427         `$#' bug.
12428         (autoupdate): Updated to match AU_ALIAS fix.
12430 2006-02-13 Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12431         and Paul Eggert  <eggert@cs.ucla.edu>
12433         * doc/autoconf.texi (Programming in M4sh): Document
12434         AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
12436 2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12438         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
12439         (AS_BOURNE_COMPATIBLE): ..this.
12440         (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
12442 2006-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12444         * doc/install.texi (Defining Variables): Tighten up the
12445         CONFIG_SHELL wording.
12447 2006-02-12 Paul Eggert  <eggert@cs.ucla.edu>
12448         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12450         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
12451         of (set -o) rather than testing whether (set -o posix) succeeds,
12452         to work around a bug in the AIX 5.3 shell.  Problem originally
12453         reportd by Howard Chu for libtool.
12455 2006-02-10  J.T. Conklin  <jtc@acorntoolworks.com>
12457         * doc/autoconf.texi (Running the Compiler, Running the Linker):
12458         Changes the macro arguments in summaries to match the
12459         descriptions.
12461 2006-02-04  Stepan Kasal  <kasal@ucw.cz>
12463         * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
12464         hint as ``a workaround for a bug.''
12466 2006-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12468         * bin/autoreconf.in: New option `--no-recursive'.
12469         Improve wording for subpackages a bit.
12470         * doc/autoconf.texi (autoreconf Invocation): Updated.
12471         * NEWS: Updated.
12473         * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
12474         in environment of `configure', not the command line.
12475         Reported by Howard Chu <hyc@highlandsun.com>.
12477 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
12479         * doc/autoconf.texi (Limitations of Builtins): Document the
12480         problem with "trap -".
12482 2006-01-23  Steven G. Johnson  <stevenj@fftw.org>
12484         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
12485         (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
12486         messages to differentiate Fortran and Fortran 77 tests.
12487         (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
12488         AC_LANG_ASSERT, to allow use in mixed-language projects.
12490 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12492         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
12493         FOO" to "defined (FOO)".
12494         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
12495         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
12496         * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
12497         * tests/tools.at (ifnames): Likewise.
12499 2006-01-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12501         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
12502         * lib/Autom4te/General.pm (mktmpdir): Likewise.
12503         (END): Improve error message a bit.
12504         Reported by Bruce Korb <bkorb@gnu.org>.
12506 2006-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12508         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
12509         `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
12511 2006-01-11  Stepan Kasal  <kasal@ucw.cz>
12513         * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
12514         requires sys/stream.h.  Reported by Oliver Kiddle.
12516 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12517             Stepan Kasal  <kasal@ucw.cz>
12519         * lib/autotest/general.m4 (AT_INIT): When ensuring writability
12520         before the removals of test dirs, use `find' to avoid modification
12521         of symlinked directories.
12523 2006-01-11  Steven G. Johnson  <stevenj@alum.mit.edu>
12525         * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
12526         Don't ignore the macro arguments.
12528 2006-01-11  David Thompson  <dthompsn@vizsolutions.com>
12530         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
12531         declaration that works for MSVC.
12533 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12535         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
12536         Add `*.map' and `.inf' for Green Hills compiler.
12537         Reported by Stefan Seefeld <stefan@codesourcery.com>.
12539         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
12540         correctly: pad with spaces after FIRST_PREFIX if necessary,
12541         and compute string lenghts with `m4_qlen' instead of `m4_len'.
12542         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
12543         * tests/m4sh.at (AS_HELP_STRING): Test extended.
12544         * NEWS: Updated.
12545         Reported by numerous people, numerous times.
12547 2006-01-05  Paul Eggert  <eggert@cs.ucla.edu>
12549         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
12550         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
12551         * lib/autoconf/general.m4, lib/autoconf/status.m4:
12552         * lib/autotest/general.m4, tests/local.at:
12553         Update copyright year to 2006.
12555         * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
12556         sed substitutions.
12557         * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
12558         for file names, again.  Reported by Noah Misch.
12559         (Coding Style): Explain that s|a|b| is preferred for file names.
12560         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
12561         (AC_OUTPUT_MAKE_DEFS): Likewise.
12562         * lib/autotest/general.m4 (AT_INIT): Likewise.
12563         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
12564         * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
12566         Fix Posix-conformance bugs re use of { command in sed scripts,
12567         and improve the sed-related documentation a bit.
12568         * doc/autoconf.texi (Installation Directory Variables): Use
12569         our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
12570         rather than "sed" when talking about Sed in general.
12571         (Particular Programs): Likewise.
12572         (Coding Style): y is like s with respect to / and ,.
12573         (Limitations of Usual Tools): Document the weird restrictions
12574         that Posix has about { }.  Use better quoting.
12575         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
12576         Rewrite to conform to Posix rules about { } in sed scripts.
12577         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
12578         * tests/foreign.at (Libtool): Likewise.
12579         * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
12580         Use our own style advice re 's,a,b,' versus 's|a|b|'.
12582 2006-01-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12584         * lib/autoconf/status.m4: Fix typo.
12586         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
12587         singly- or doubly-quoted arguments to `-cmdline', `-ignore',
12588         `-def', for the benefit of Portland `pgf90 -Mipa'.
12589         Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
12591 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
12593         * doc/autoconf.texi: Update copyright (and other) dates to 2006.
12594         * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
12595         shell from zsh to bash.
12597 2005-12-31  Stepan Kasal  <kasal@ucw.cz>
12599         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
12600           ":" caused problems on OS/2-EMX.  Suggested by Andrew Belov.
12602 2005-12-29  Paul Eggert  <eggert@cs.ucla.edu>
12604         * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
12605         parentheses in $(...).  Problem reported by Eric Blake.
12607 2005-12-12  Paul Eggert  <eggert@cs.ucla.edu>
12609         * doc/autoconf.texi (Limitations of Usual Tools):
12610         Mention which characters can be escaped with \ in portable regular
12611         expressions used in grep, sed, expr.  Mention the leading ^ problem
12612         with expr.  Clean up some confusing wording.  Mention which
12613         grep options are portable.
12615 2005-12-09  Stepan Kasal  <kasal@ucw.cz>
12617         * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
12619 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
12621         * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
12622         patch, noted by Ralf Wildenhues.
12624 2005-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12626         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
12627         posix' unconditionally, for pdksh in `native sh' emulation.
12629 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
12631         * doc/autoconf.texi (Shellology): Document eval $? problem
12632         with ash.
12633         (Limitations of Builtins): Likewise.
12635 2005-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12637         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
12638         CONFIG_SHELL in the environment of the configure rerun.
12639         * doc/autoconf.texi (Here-Documents, config.status Invocation):
12640         Suggest passing CONFIG_SHELL absolute, and in the environment
12641         rather than as option.
12643 2005-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12645         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
12646         Fix quoting of output line (triggered for many AC_SUBST_FILEs).
12647         Fix macro quoting.  Fix output for n * 98 substituted variables.
12649 2005-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12651         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
12652         `tmp' to avoid file removal race.
12654 2005-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12656         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
12657         ac_clean_files and LIBOBJS.
12659 2005-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12661         * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
12662         Factor functionality to..
12663         (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
12664         `AC_SUBST($1)' in the public version.
12665         (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
12666         (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
12667         ac_pt_* variables.
12669 2005-11-01  Stepan Kasal  <kasal@ucw.cz>
12671         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
12672         filesystems.
12674 2005-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12676         * NEWS: Move AH_HEADER mention to right place.
12678 2005-10-27  Stepan Kasal  <kasal@ucw.cz>
12680         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
12681         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
12683 2005-10-25  Stepan Kasal  <kasal@ucw.cz>
12685         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
12686         conftst2.$ac_objext.
12687         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
12689 2005-10-24  Stepan Kasal  <kasal@ucw.cz>
12691         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
12692         conftest.o, to see whether the compiler really obeys; rm the object
12693         file before and after the test and register it with ac_clean_files.
12694         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
12696 2005-10-21  Stepan Kasal  <kasal@ucw.cz>
12698         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
12699         the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
12700         code so that the most common case requires less forks.
12702 2005-10-20  Stepan Kasal  <kasal@ucw.cz>
12704         * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
12705         not portable; thanks to Paul Eggert and Alexandre.
12707         * NEWS: Fix an old typo.
12709 2005-10-20  Jim Meyering  <jim@meyering.net>
12711         * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
12712         the latter'', in two places.
12714 2005-10-19  Paul Eggert  <eggert@cs.ucla.edu>
12716         * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
12717         AC_LANG_PROGRAM, fixing a typo.  Don't give details about
12718         the inner workings of AC_LANG_FUNC_LINK_TRY.
12719         * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
12720         AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
12721         by the function rather than ignoring it.
12722         (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
12723         comparing its address.  Intel's interprocedural optimization was
12724         outsmarting the old heuristic.  Problem reported by
12725         Mikulas Patocka.
12727 2005-10-19  Stepan Kasal  <kasal@ucw.cz>
12729         * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
12731 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12733         * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
12734         (m4_map, m4_map_sep): Use it.  Handle the empty list correctly.
12736 2005-10-04  Stepan Kasal  <kasal@ucw.cz>
12738         * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
12739         before removing it (chmod -R u+rwx); there are three instances of this.
12741 2005-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12742             Stepan Kasal  <kasal@ucw.cz>
12744         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
12745         * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
12746         make its content writable before removing it.  Remove an errorneous
12747         comment from the end, where the logs of the failed tests are copied
12748         to the main log file.
12750 2005-09-27  Stepan Kasal  <kasal@ucw.cz>
12752         * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
12753           in case the computer is too quick.  Double quote the configure.ac
12754           snippets.
12756         * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
12757           problems if the testsuite were running too fast.
12759 2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
12761         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
12762         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
12763         (which belong to Xt, not X itself).  See Debian bug 327655.
12764         * NEWS: Mention this.
12766 2005-09-07  Stepan Kasal  <kasal@ucw.cz>
12768         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
12770 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
12772         * config/move-if-change: Don't output "$2 is unchanged";
12773         suggested by Ben Elliston.  Handle weird characters correctly.
12775 2005-09-06  Stepan Kasal  <kasal@ucw.cz>
12777         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
12778           calls, so that the final expansion of this macro is shorter.
12779           Create the conftest.$ac_ext outside the `for' loop, to speed the run.
12780           Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
12781           the cleanup there.  Use AS_VAR_* macros, to be more general.
12782         * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
12784         * lib/autoconf/general.m4: Use AS_IF where appropriate.
12786         * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
12788 2005-09-01  Stepan Kasal  <kasal@ucw.cz>
12790         * doc/autoconf.texi (Configuration Headers): Add an index entry
12791           for AH_HEADER.
12793 2005-08-26  Pavel Roskin  <proski@gnu.org>
12795         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
12796         XMKMF to locate xmkmf.  Make XMKMF precious.  Export CC when
12797         running xmkmf.
12799 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
12801         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
12802         The previous patch didn't work, so try a better one.
12804 2005-08-26  Stepan Kasal  <kasal@ucw.cz>
12806         * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
12807         in the example.  Reported by Bruno Haible.
12808         <AS_TR_SH>: Likewise.  Also modify the example to be more convincing:
12809         "if $undefined_var;" succeeds with my shell.
12811         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
12812         AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
12813         but change the m4_divert_text to m4_divert_once.
12815 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12817         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
12818         Work around bug in Solaris /usr/xpg4/bin/awk.
12819         The bug is present in at least Solaris 8 through 10.
12821 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
12823         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
12824         some evil values and relying on the fact that $* concatenates the
12825         parameters by the first character from IFS.
12827 2005-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
12828             Stepan Kasal  <kasal@ucw.cz>
12830         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
12831         first header appears, define AH_HEADER.
12832         * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
12833         Update limitations about when to call AC_CONFIG_HEADERS.
12834         (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
12835         parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
12836         that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
12837         ``Configuration Actions''; fix their index entries.
12839         * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
12840         options correctly.  Process N-M as M-N if M is smaller than N.
12841         Process ranges correctly so that N-N will run only N.
12842         Sort and uniquify the tests that will be run.  If there is more
12843         than one test, reinsert the banners for the tests.
12844         * tests/autotest.at (Keywords): Unmark XFAIL.
12846 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
12848         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
12849           before passing the macro name to AH_TEMPLATE.
12851         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
12852           now opens log after option processing; in particular, --version
12853           and --help do not touch config.log.
12855         * Makefile.maint: Revert the change from 2005-08-12.
12857 2005-08-22  Stepan Kasal  <kasal@ucw.cz>
12859         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
12860           common code to...
12861         (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
12863 2005-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12865         * doc/autoconf.texi (Using Autotest, testsuite Scripts)
12866         (Autotest Logs, Writing testsuite.at, testsuite Invocation):
12867         Language cleanup.
12869         * doc/autoconf.texi (Defining Symbols, Changed Results):
12870         Prepend to LIBS, not append, in examples.
12872 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
12874         When building in place, set srcdir="."; suggested by Tim Van Holder.
12876         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
12877           build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
12878         (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
12879         * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
12880           does not mean "no --srcdir option".
12882 2005-08-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12884         * tests/autoscan.at (autoscan): New file.
12885         * tests/suite.at: Use it.
12886         * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
12887         Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
12889         * tests/autotest.at (Keywords): Test keywords combinations.
12891 2005-08-12  Stepan Kasal  <kasal@ucw.cz>
12893         * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
12894           add "2>&1"; gzip 1.2.4 prints help on stderr.
12896 2005-07-27  Stepan Kasal  <kasal@ucw.cz>
12898         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
12899         was pushdef'ed twice while popped only once.  Push it only once.
12900         (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
12902 2005-07-26  Stepan Kasal  <kasal@ucw.cz>
12904         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
12905         prefixed by mere "===", not "configure: === ".
12907 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12909         * Makefile.maint: Update from Bison.
12911         * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
12912         "<tab>" in comment, so that the point is understandable.
12914 2005-07-25  Stepan Kasal  <kasal@ucw.cz>
12916         Rewrite substantial part of lib/autoconf/status.m4.
12917         The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
12918         and CONFIG_COMMANDS are not processed in four separate loops.
12919         Instead, there is one main loop.  This alows that the common code
12920         is expanded only once, thus config.status (and configure) is smaller.
12922         The registration mechnism in AC_CONFIG_FILES and cousins also changed;
12923         the AC_LIST_FILES and cousins macros are no longer used.
12925         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
12926         _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
12927         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
12928         _AC_OUTPUT_COMMAND): ..., respectively.  These macros no longer
12929         contain the initialization, nor the for loop, nor the associated
12930         commands; all these go to ...
12931         (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
12932         _AC_OUTPUT_CONFIG_STATUS.
12933         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
12934         Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
12935         (_AC_OUTPUT_FILE): The creation of the sed script ...
12936         (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
12937         (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
12938         _AC_OUTPUT_MAIN_LOOP.
12939         (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
12940         _AC_CONFIG_COMMANDS): Use ...
12941         (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
12942         (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
12943         (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
12944         _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
12945         (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
12946         (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
12947         ... new macros.
12948         (_AC_CONFIG_UNIQUE): Update.
12949         (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
12950         Replaced by this ...
12951         (_AC_LIST_TAGS): ... new common macro.
12952         (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
12953         AC_LIST_COMMAND_COMMANDS): Replaced by this ...
12954         (_AC_LIST_TAG_COMMANDS): ... new common macro.
12955         (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
12956         this didn't belong to the `config commands' section.
12957         (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
12958         (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
12959         AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
12960         to the `config commands' section either.
12961         (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
12962         (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
12964         ... and many changes to the comments nearby.
12966         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
12967         set ac_subdirs_all='_AC_LIST_SUBDIRS'.
12968         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
12969         AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
12970         (#define header templates): The comment at the top of the generated
12971         header now includes the name(s) of the source file(s).
12973         Several unrelated small changes:
12975         * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
12976         parameter to AC_DIAGNOSE.
12977         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
12978         (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
12979         with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
12980         (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
12981         with AU::AC_OUTPUT.
12982         (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
12983         in AC_OUTPUT doesn't double-quote it either.
12984         * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
12985         parameters.
12987 2005-07-10  Stepan Kasal  <kasal@ucw.cz>
12989         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
12990         versions of Portland Group compiler produce single- and double-quoted
12991         -cmdline argument.  Reported by Steven G. Johnson <stevenj@fftw.org>
12992         and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
12994 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12996         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
12997         This is a corrected version of yesterday's patch.
12999 2005-07-07  Stepan Kasal  <kasal@ucw.cz>
13001         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
13002         path, too; insert a "===" to emphasize the line.
13004         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
13005           ac_cv_build_alias to ac_build_alias.
13006         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
13008         On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
13009         change eliminates it.  Problem reported by Alexandre Duret-Lutz.
13010         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
13011         (AC_ARG_VAR): ... here.
13012         (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
13013           target_alias.
13015         Keep a list of all precious variables and process them with one simple
13016         for loop, instead of expanding all commands, or, OTOH, complicated
13017         processing of output of "set".
13018         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
13019         variable names in new macro...
13020         (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
13021         (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
13022           a loop to assign all ac_env_* and ac_cv_env_* variables.
13023         (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
13024           to INIT_PREPARE.
13025         (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
13026           its value to shell variable ac_precious_vars and call
13027           _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
13028         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
13029           _AC_ARG_VAR_VALIDATE.
13031         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
13032           and the AC_SUBSTs ...
13033         (AC_INIT): ... here.
13035         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
13036           the ac_subst_files section in config.log.
13038         * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
13040 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13042         * NEWS: New macro AC_C_TYPEOF.
13043         * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
13044         * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
13045         * tests/c.at (C keywords): Test AC_C_TYPEOF.
13047         Fix problems reported by Nicolas Joly.
13048         * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
13049         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
13050         They are generated by the Tru64 v5.1B shell.
13052 2005-07-05  Stepan Kasal  <kasal@ucw.cz>
13054         Fix my changes from 2005-07-01; reported by Noah Misch.
13055         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
13056         description, the macro now accepts only a single tag.
13057         (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
13059         Fix cases when the varsions of Autoconf and Autotest don't match.
13060         Reported by Noah Misch.
13061         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
13062         at_top_builddir, for compatibility with older autotest.
13063         * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
13064         is not set, use at_top_builddir, for compatibility with older
13065         versions of autoconf.
13067 2005-07-04  Paul Eggert  <eggert@cs.ucla.edu>
13069         * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
13070         Problem reported by Patrick Welche.
13072 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
13074         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
13075         sed substitution command, so that we allow | in program prefixes
13076         and program suffixes.  (& is a problem anyway; we're not fixing
13077         that here.)
13078         * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
13079         configure_input, top_builddir, srcdir, etc.
13080         * lib/autotest/general.m4 (AT_INIT): Likewise, for
13081         PATH_SEPARATOR in AUTOTEST_PATH.
13083 2005-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
13085         * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
13086         for loop over config.site files using `set', to allow
13087         directory names containing IFS characters.
13089 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
13091         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
13092         directories with weird names.  Apparently some people like living
13093         on the edge.  However, improve the test that "pwd" actually does
13094         report a name for the working directory.
13095         * NEWS: Remove the claim that we test for funny chars in dir names.
13097 2005-07-01  Stepan Kasal  <kasal@ucw.cz>
13099         * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
13100         replaced ...
13101         * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
13102         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
13103         Now accept a single tag, not whitespace separated list.
13104         (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
13106 2005-06-30  Stepan Kasal  <kasal@ucw.cz>
13108         * doc/autoconf.texi (Configuration Headers): Change the explanation
13109         about #include <config.h>.
13110         (Generic Functions): Mention the Gnulib project.
13111         (Limitations of Usual Tools) <sed>: Another minor rephrasing.
13113         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
13114         document to output the default config_* lists to config.status.
13115         Don't recognize option --file, if the functionality is not there.
13116         Likewise for --header; moreover, recognize --he and --h as shortcuts
13117         for --help in that case.
13119         * lib/autoconf/status.m4: Fix the order of the "sections", so that it
13120         matches the order of execution.  No code changed.
13122 2005-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13124         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
13125         single-quoted -cmdline argument in Portland Group compiler.
13126         Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
13128 2005-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
13130         * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
13132 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
13134         * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
13135         descriptors to child processes; reported by Norman Gray.
13137 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
13139         * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
13141         * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
13142         instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
13143         (AC_SUBST): Call it.
13144         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
13145         the directory specific variables; but don't call it for configure_input.
13147 2005-06-28  Derek Price  <derek@ximbiot.com>
13149         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
13150         addition.
13152 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13154         * NEWS: Don't worry about spaces in bindir etc.  Only srcdir and working
13155         directory have inherent problems with special characters like spaces,
13156         due to limitations in Make syntax.  Problem reported by Alexandre
13157         Duret-Lutz.
13158         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
13159         Also, fix Tru64 porting problem with shell patterns,
13160         reported by Ralf Wildenhues.
13162 2005-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13164         * doc/autoconf.texi (Subdirectories): Fix markup typos.
13166 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13168         * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
13170         Fix some more shell quoting problems.  Prompted by a bug report
13171         from Justace Clutter.
13172         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
13173         variable into diagnostic.  Make the diagnostic an error, not a warning,
13174         because we really don't support spaces and suchlike in dir names.
13175         (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
13176         Don't worry about backslashes in srcdir; it can't happen now.
13177         (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
13178         Simplify ac_optarg handling.
13179         (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
13181 2005-06-22  Stepan Kasal  <kasal@ucw.cz>
13183         Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
13184         * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
13185         * tests/atlocal.in: Propagate $EGREP and $SED.
13186         * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
13187         (AT_CONFIG_CMP): Use sed instead of grep plumbing.
13189         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
13190         that '\|' is not allowed in BREs; recommend using newline separated
13191         list of patterns instead of multiple -e options.
13193         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
13195         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
13197 2005-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13199         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
13201 2005-06-21  Stepan Kasal  <kasal@ucw.cz>
13203         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
13204         b, t, r, w commands require single space, while : cannot have any.
13205         (Special Shell Variables): Fix sed code this in the example.
13206         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
13207         * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
13209         * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
13210         expand to the empty list.  Don't use two pairs of m4_changequote,
13211         it's not necessary.
13213 2005-06-20  Derek Price  <derek@ximbiot.com>
13215         * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
13217 2005-06-17  Paul Eggert  <eggert@cs.ucla.edu>
13219         * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
13220         * doc/autoconf.texi:
13221         Don't mention Solaris versions so much, if a
13222         problem is common to all extant versions of Solaris.  Say "SunOS
13223         4" instead of "SunOS" for SunOS 4.
13224         (awk): Mention more of the limitations of traditional Awk.
13225         (cat): Don't talk about cat -v.
13227 2005-06-16  Paul Eggert  <eggert@cs.ucla.edu>
13229         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
13230         (AS_VERSION_COMPARE): New macro.  The API is taken from CVS,
13231         but the implementation is entirely different and is designed
13232         to be compatible with glibc strverscmp.
13233         * tests/m4sh.at (AS_VERSION_COMPARE): New test.
13235         * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
13236         on Mac OS X 10.4 reported by Peter O'Gorman in:
13237         http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
13238         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
13239         Use shell builtins rather than 'expr', to work around expr bug.
13241 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
13243         * doc/autoconf.texi: "filesystem" -> "file system".
13244         "behaviour" -> "behavior".
13245         Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
13246         * lib/autoconf/general.m4: Omit blank after ":" sed command,
13247         as per POSIX.
13248         * lib/m4sugar/m4sh.m4: Likewise.
13249         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
13250         with Solaris sed.  Fix by Ralf Menzel and Stepan Kasal.
13252         * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
13253         (.x.1): Ignore the time stamp in the .TH line when deciding whether
13254         to update the man page.  That way, we don't have to check in new
13255         man pages every month.
13257         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
13258         quotes and backslashes.  Patch from Derek Price.
13260 2005-06-10  Derek Price  <derek@ximbiot.com>
13262         * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
13263         AS_TR_SH.
13265 2005-06-08  Paul Eggert  <eggert@cs.ucla.edu>
13267         * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
13268         -u, since it outputs chatter if the input files are the same.
13269         Problem reported by Ralf Menzel.
13271 2005-06-08  Derek Price  <derek@ximbiot.com>
13273         * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
13274         renaming them since they are about to be redefined anyhow.
13276 2005-06-08  Derek Price  <derek@ximbiot.com>
13278         * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
13279         redefined M4 macros to this node.  Document m4_include & m4_sinclude.
13280         Move m4_undefine to alphabetical order.
13282 2005-06-07  Paul Eggert  <eggert@cs.ucla.edu>
13284         * README: Recommend GNU M4 1.4.3 or later.
13285         * doc/autoconf.texi (Introduction): Likewise.
13286         Reword to avoid some formatting glitches.
13287         Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
13288         Clarify explanation of HP compiler bug.
13289         Redo example output tp match current CVS snapshot.
13290         Use @example.org in email addresses when the examples
13291         might get inadvertently cut-and-pasted into user code.
13292         Remove example of autom4te usage that doesn't seem to work now.
13293         Use modern AC_INIT (except when the example is meant to be
13294         shown with Autoconf 2.13).
13295         Update ksh info for Solaris 9 and later.
13296         KB -> kB.
13297         Modernize description of Automake versions a bit.
13298         Don't claim a future version of Autoconf is near.
13299         * doc/install.texi: Reword to avoid some formatting glitches.
13301 2005-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13303         * doc/autoconf.texi: Add [] to examples, so that the manual
13304         follows its own advice about quoting better.
13305         Reword to avoid some formatting glitches.
13306         * doc/installt.exi: Reword to avoid some formatting glitches.
13308         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
13309         Tru64 ksh pattern matching bug.  Reported against Libtool by
13310         Albert Chin <libtool@mlists.thewrittenword.com> and
13311         Nicolas Joly <njoly@pasteur.fr>.
13313 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
13315         m4_cdr of one-member list was [[]] (one-member list containing an
13316         empty string) instead of [] (an empty list.  Callers were skewed to
13317         match this misbehaviour.  As a consequence of this:
13318          - m4_foreach([x], [], [foo]) expanded to `foo', while
13319          - the expansion of m4_foreach([x], [[]], [foo]) was empty.
13320         This bug has been fixed:
13322         * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
13323           expand to an empty string; print error msg if called without
13324           an argument list.
13325         (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
13326           misbehaviour; handle [] and [[]] correctly.
13328 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
13330         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
13331         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
13332           scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
13334 2005-06-06  Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>  (trivial change)
13336         * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
13337           swallow records with more than 99 fields.
13338         * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
13339           parse the long line.
13341 2005-06-04  Stepan Kasal  <kasal@ucw.cz>
13343         * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
13344           swallow literals longer than 399.  Reported by Ralf Wildenhues.
13345         * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
13346           to workaround this limitation.
13348 2005-06-03  Steven G. Johnson  <stevenj@alum.mit.edu>
13350         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
13351         to gfortran, and make these the first two compiler names
13352         checked (following the general autoconf preference for gcc).
13354 2005-06-03  Stepan Kasal  <kasal@ucw.cz>
13356         * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
13357         (DISTCLEANFILES): Remove $(check_SCRIPTS).
13358         (testsuite): Make sure autotest.m4f is up-to-date before using it.
13360 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13362         * lib/autotest/general.m4 (AT_INIT): Don't create a regular
13363         expression of unbounded size when processing the --list
13364         option.  This runs afoul of a limit of 399 bytes per regular
13365         expression on AIX.  Problem reported by Ralf Wildenhues.
13367 2005-06-01  Paul Eggert  <eggert@cs.ucla.edu>
13369         * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
13370         * doc/autoconf.texi (Particular Headers): Reword example
13371         for multiline stdbool replacement.
13372         (Setting Output Variables): Reword text a bit.  Don't
13373         give all the details about |#_!!_#|.
13374         Reword description of line replacement.
13376 2005-05-31  Dan Manthey  <dan_manthey@partech.com>
13378         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
13379         now contain newlines, and substituted files must be referenced on
13380         a line alone; the sed scripts to substitute them are now very
13381         different.
13382         (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
13383         commands can be put in a sed script portably.
13384         * doc/autoconf.texi (Setting Output Variables): Document above
13385         changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
13386         use of multiline substitution.
13387         * tests/torture.at: No longer expect substitution of newline to fail.
13389 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13391         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
13392         From Ralf Menzel (trivial change).
13394 2005-05-25  Paul Eggert  <eggert@cs.ucla.edu>
13396         * tests/local.at: Don't attempt to check for negated character
13397         classes in shell scripts.  The test was too brittle.
13399 2005-05-25  Stepan Kasal  <kasal@ucw.cz>
13401         * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
13402         * doc/autoconf.texi (Limitations of Builtins): Document this
13403           limitation.
13405 2005-05-24  Stepan Kasal  <kasal@ucw.cz>
13407         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
13408           common code; used in many places in the tree.
13409         (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
13410         (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
13412         * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
13414         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
13415           messages when ac_unique_file is not found.
13416         (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
13417         (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
13418           commands, for consistency with AC_MSG_ERROR and such.
13420         * bin/autoconf.as: Make more use of "shift 2" in option processing.
13422         * bin/Makefile.am: Merge the two rules for creating scripts.
13424 2005-05-23  Stepan Kasal  <kasal@ucw.cz>
13426         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
13427         obsolete; it was never documented.
13428         (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
13430 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
13432         * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
13433         * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
13434         (ac_top_builddir): ... this ...
13435         (ac_top_build_prefix): ... to this; the old name is also kept, for
13436           backward compatibility.
13437         (ac_top_builddir_sub): New variable, without the trailing slash,
13438           always nonempty.
13439         (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
13440         * doc/autoconf.texi (Configuration Actions): Rename
13441           ac_top_builddir to ac_top_build_prefix.
13442         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
13443           at_top_builddir to at_top_build_prefix.
13444         * lib/autotest/general.m4 (AT_INIT): Likewise.
13446 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
13448         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
13449           of confdefs.h .
13451 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
13453         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
13454           argument to m4_foreach.  I guess it was necessary in the past,
13455           but I think it's a no-op now.
13457 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
13459         * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
13460           ``cat <<_ACEOF'' commands to one.
13461         (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
13462         * lib/autoconf/status.m4: On various places, use expr instead of
13463           ``echo|sed.''
13464         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
13465         (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
13466         * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
13467           a range.
13468         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
13469           the wrong patterns between ``case'' and ``esac.''  The previous
13470           code had false positives.
13472 2005-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
13474         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
13475         as on 2005-05-02.
13476         * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
13477         Mention LIBOBJDIR.
13479 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13481         * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
13482         ChangeLog.2, GNUmakefile, Makefile.am, Makefile.cfg,
13483         Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
13484         bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
13485         bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
13486         bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
13487         config/config.guess, config/config.sub, config/elisp-comp,
13488         config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
13489         doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
13490         lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
13491         lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
13492         lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
13493         lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
13494         lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
13495         lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
13496         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
13497         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
13498         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
13499         lib/autoconf/general.m4, lib/autoconf/headers.m4,
13500         lib/autoconf/lang.m4, lib/autoconf/libs.m4,
13501         lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
13502         lib/autoconf/specific.m4, lib/autoconf/status.m4,
13503         lib/autoconf/types.m4, lib/autoscan/Makefile.am,
13504         lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
13505         lib/autotest/Makefile.am, lib/autotest/autotest.m4,
13506         lib/autotest/general.m4, lib/emacs/Makefile.am,
13507         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
13508         lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
13509         lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
13510         tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
13511         tests/compile.at, tests/foreign.at, tests/fortran.at,
13512         tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
13513         tests/semantics.at, tests/suite.at, tests/tools.at,
13514         tests/torture.at, tests/wrapper.as:
13515         Update FSF postal mail address.
13517 2005-05-13  Stepan Kasal  <kasal@ucw.cz>
13519         * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
13520           check.
13521         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
13522           enough arguments, similarly as in m4_bpatsubsts.
13524 2005-05-12  Stepan Kasal  <kasal@ucw.cz>
13526         * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
13527           of absolute paths.
13529 2005-05-11  Stepan Kasal  <kasal@ucw.cz>
13531         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
13532           for absolute directory names in one loop.
13533         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
13534           abbreviations of --version and --debug.
13536 2005-05-10  Paul Eggert  <eggert@cs.ucla.edu>
13538         * doc/autoconf.texi (Autoconf Language): Be more precise about
13539         quoting rules.  Problems noted by Stepan Kasal.
13540         Also, throughout this document, be more careful about white space.
13541         "blank", "white space", and "space" all have different meanings
13542         and we should be careful to say what we mean.
13544 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13546         Fix C++ related problems reported by Werner Lemberg.
13547         * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
13548         * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
13549         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
13550         avoid problems with C++ and throw.
13551         * tests/compile.at: .cpp, not .cc.
13553         * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
13555 2005-05-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13557         * doc/autoconf.texi (Generic Functions): Typos.
13559 2005-05-02  Gary V. Vaughan  <gary@gnu.org>
13561         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
13562         object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
13563         set by latest automake.
13565 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13567         * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
13568         outputs 0 on GNU/Linux these days.
13570 2005-04-29  Paul Eggert  <eggert@cs.ucla.edu>
13572         * doc/autoconf.texi (Autoconf Language): Add more description
13573         about quoting heuristics.
13574         (Limitations of Builtins): Describe "set -" problems.
13576 2005-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13578         * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
13579         not newline.
13581         * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
13582         by AC_DEFINE; it was a mistake.
13583         From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
13585 2005-04-25  Stepan Kasal  <kasal@ucw.cz>
13587         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
13589 2005-04-22  Stepan Kasal  <kasal@ucw.cz>
13591         * doc/autoconf.texi (External Software): Quadrigraphs are not
13592           processed correctly in AS_HELP_STRING; avoid this in the examples.
13593         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
13594         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
13595           comment and reduce m4_default([foo], []) to [foo].
13596         (m4_strip): Update the explanation.
13598 2005-04-19  Paul Eggert  <eggert@cs.ucla.edu>
13600         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
13601         Remove core.conftest.* too; it's generated by Tru64 5.1.
13602         Problem reported by Jennis Pruett.
13603         * lib/autoconf/functions.m4
13604         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
13605         Don't bother to remove core files; AC_RUN_IFELSE should do that
13606         for you.
13608 2005-04-19  Stepan Kasal  <kasal@ucw.cz>
13610         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
13612 2005-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
13614         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
13615         Report from Horst Wente.
13617 2005-04-15  Stepan Kasal  <kasal@ucw.cz>
13619         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
13620           the comment.
13622 2005-04-14  Gregorio Guidi  <greg_g@gentoo.org>
13624         * doc/autoconf.texi (External Software, Package Options): Add
13625           examples showing how to implement --with-* and --enable-* options.
13627 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
13629         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
13630         as well as configure.in.  Problem reported by Gregorio Guidi.
13632 2005-04-10  Paul Eggert  <eggert@cs.ucla.edu>
13634         * doc/autoconf.texi (Particular Functions): Use gnulib's current
13635         pattern for alloca snippet.
13637 2005-04-04  Stepan Kasal  <kasal@ucw.cz>
13639         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
13641 2005-04-01  Stepan Kasal  <kasal@ucw.cz>
13643         * doc/autoconf.texi (Generic Programs): Fix a typo.
13645 2005-04-01  Paul Eggert  <eggert@cs.ucla.edu>
13647         * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
13648         fails if %s isn't supported.  Problem reported by Ralf Wildenhues.
13650 2005-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13652         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
13653         Merge `-z option' as well for the benefit of Solaris link flags.  Pass
13654         whole-archive (-zallextract, -zdefaultextract) options in the hope of
13655         unique libraries, for the Sun Fortran 95 8.0 compiler.  Bug reported
13656         against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
13658 2005-03-22  Paul Eggert  <eggert@cs.ucla.edu>
13660         * NEWS: The configure command now warns you if you attempt to use
13661         a directory whose name contains a special character like space,
13662         newline, or "\".
13663         * doc/autoconf.texi (Installation Directory Variables): Allow
13664         "," in file names.  Do not use \@; it's not a portable regexp.
13665         * bin/Makefile.am (edit): Likewise.
13666         * lib/Makefile.am (edit): Likewise.
13667         * tests/Makefile.am (edit): Likewise.
13668         * tests/semantics.at: Likewise.
13669         * tests/torture.at: Likewise.
13670         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
13671         * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
13672         * doc/autoconf.texi (File System Conventions): Warn about
13673         unportable file names.
13674         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
13675         (AC_INIT): Use it.
13676         (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
13677         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
13678         ac_pwd, and quote srcdir.
13679         * lib/autotest/general.m4 (AT_INIT): Quote file name args.
13681         * doc/autoconf.texi: Fix some systematic formatting problems.
13682         ".)"  needs a following @: if not at the end of a sentence, and
13683         similarly for "!)".  "etc." should be preceded by a comma.
13684         "n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
13686 2005-03-22  Bruno Haible  <bruno@clisp.org>
13688         * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
13689         argument is often called 'build-aux'.
13691 2005-03-07  Stepan Kasal  <kasal@ucw.cz>
13693         * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
13694           macro AC_TRY_LINK is obsolete.
13695         (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
13696           `AC_CONFIG_FILES'.
13698 2005-02-24  Stepan Kasal  <kasal@ucw.cz>
13700         * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
13701           `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
13702           from a Common Lisp's `cl'.
13703         (AC_PROG_CXX): Behave according to the documentation: don't
13704           search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
13705           make the variable CCC precious; use `cl.exe', not `cl'.
13707 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
13708             Alexandre Duret-Lutz  <adl@gnu.org>
13710         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
13711         /dev/null, as "configure" shouldn't read stdin, and this insulates
13712         us from problems (e.g., when testing for "cl").  Also, do this
13713         redirection before invoking "hostname" or "uname", and keep the
13714         original input stream available via...
13715         (AS_ORIGINAL_STDIN_FD): ... this new macro.
13716         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
13717         bother with "</dev/null" since it's now done at the top of
13718         'configure'.
13719         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
13720         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
13721         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
13722         * doc/autoconf.texi (File Descriptor Macros): New section.
13723         (Printing Messages): Mention it.
13724         * tests/base.at (Input/Output): New test.
13726 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
13728         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
13729         newline if neither \c nor -n work, as that would output two
13730         newlines.  Prefer -n to \c.  Reported by Stepan Kasal.
13732 2005-02-12  Stepan Kasal  <kasal@ucw.cz>
13734         * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
13735         This causes that any required macros inside will get before the if.
13736         * doc/autoconf.texi (autom4te.cache): A typo.
13738 2005-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13740         Undo previous change, except keep the change to
13741         lib/autoconf/programs.m4 that replaced grep with shell
13742         pattern-matching.  This is because net-snmp configure reads stdin.
13743         Reported by Noah Misch.
13745 2005-02-11  Paul Eggert  <eggert@cs.ucla.edu>
13747         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
13748         from /dev/null, as "configure" shouldn't read stdin, and this
13749         insulates us from problems (e.g., when testing for "cl").
13750         Suggested by Alexandre Duret-Lutz.  Also, do this redirection
13751         before invoking "hostname" or "uname".
13752         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
13753         _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
13754         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
13755         "</dev/null" since it's now done at the top of 'configure'.
13756         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
13757         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
13758         Also, replace grep with shell pattern-matching, to save a process.
13760 2005-02-10  Paul Eggert  <eggert@cs.ucla.edu>
13762         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
13763         _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
13764         avoid thinking that Allegro Common Lisp's "cl" command is a C++
13765         compiler.
13767 2005-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13769         * doc/autoconf.texi (Limitations of Usual Tools): Document that
13770         grep -q isn't portable.  Improve grep -s explanation.
13771         Problem reported by Dan Manthey.
13773 2005-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13775         * doc/autoconf.texi (Special Shell Variables): Clarify
13776         PATH_SEPARATOR wording; fix typo in IFS.  Reported by Gary V. Vaughan.
13778 2005-02-07  Paul Eggert  <eggert@cs.ucla.edu>
13780         * doc/autoconf.texi: Use @acronym for DJGPP.
13781         Fix some @code's that should have been @env's, and vice versa.
13782         Sort environment variable names.
13783         Mention that shells no longer inherit IFS.
13784         Don't recommend PATH_SEPARATOR=';' so strongly.
13785         Mention that $RANDOM might expand to the empty string.
13786         "symlink" and "soft link" -> "symbolic link".
13787         Improve mktemp description (reported by Bruno Haible).
13789 2005-02-05  Paul Eggert  <eggert@cs.ucla.edu>
13791         * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
13792         * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
13793         Likewise.
13794         * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
13795         Likewise.
13797 2005-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13799         * NEWS: Mention AT_COPYRIGHT.
13801         * tests/local.at (AT_CMP): Use diff directly on input files rather
13802         than copying them.
13804         * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
13805         /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
13807 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
13808         and Paul Eggert  <eggert@cs.ucla.edu>
13810         * tests/autotest.at (Empty test suite): New test.
13811         * tests/torture.at (Substitute and define special characters)
13812         (Substitute a 2000-byte string, Define to a 2000-byte string)
13813         (Substitute a newline, Define a newline): New tests.
13815 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
13817         * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
13818         * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
13819         (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
13820         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
13821         (Standard regular expressions): New test.
13822         (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
13823         excess test name quoting.
13824         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
13825         CPPFLAGS to `configure' instead of setting it in `configure'.
13827         * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
13828         any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
13829         on some platforms.
13831         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
13832         s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
13834         * tests/local.at (AT_CMP): New macro.
13835         (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
13836         (AC_SAVE_STATE): Move environment grep...
13837         (AT_CHECK_ENV): to here.  Filter out `'$''.  Use AT_CMP.
13838         (AT_CONFIG_CMP): New macro.
13839         (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
13840         * tests/c.at (Extensions): Do not exit early.
13841         * tests/atlocal.in: Inherit $GREP.
13843         * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
13844         (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
13846         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
13847         (AC_COPYRIGHT): Factor header comment portion out and move into...
13848         * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
13849         * lib/autotest/general.at (AT_COPYRIGHT): New macro.
13850         (AT_INIT): Add Autotest copyright notice.  Display copyright notices in
13851         --version output.
13852         * tests/local.at: Add Autoconf test suite copyright notice.
13853         * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
13855 2005-02-04  Bruno Haible  <bruno@clisp.org>
13856         and Paul Eggert  <eggert@cs.ucla.edu>
13858         * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
13860 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
13862         * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
13863         this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
13865         Try not to generated lines of unlimited length, as POSIX places a
13866         2047-byte limit on line length of portable text files.
13867         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
13868         Use newline as a separator, not space.
13869         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
13870         (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
13871         space.
13873 2005-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13875         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
13876         as_func_*.  Add test to check whether positional parameters
13877         are restored after function return.
13879 2005-02-02  Paul Eggert  <eggert@cs.ucla.edu>
13881         * doc/autoconf.texi (Special Shell Variables): Mention _,
13882         BIN_SH, DUALCASE.  Say that variables other than "status" are safe
13883         if they contain a lower-case letter.  The DUALCASE problem was
13884         reported by Ralf Wildenhues.
13886         * bin/autoconf.as: Don't exit with status 0 after write failure
13887         with --help or --version.
13888         * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
13889         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
13891 2005-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13893         * doc/autoconf.texi (Limitations of Usual Tools):
13894         Unicos 9 sed limitations.
13895         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
13896         to get the option-enhanced interface on older Crays.  Try ftn for
13897         Fortran 95 (newer Crays).
13899 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
13901         * man/Makefile.am (.x.1): Go back to the simple solution, but take
13902         care to echo the commands, so the user knows what's going on.
13903         Modified from a suggestion by Stepan Kasal.
13905         * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
13906         with a cross reference.  Derived from a suggestion by Bruce Korb.
13908 2005-01-31  Paul Eggert  <eggert@cs.ucla.edu>
13910         * doc/autoconf.texi (config.status Invocation): Warn about
13911         discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
13912         * doc/install.texi (Defining Variables): Likewise.
13913         Based on a proposed patch by Ralf Wildenhues.
13915         * man/Makefile.am (.x.1): Make sure the required generated files
13916         are up to date.  Problem and original solution proposed by Stepan Kasal.
13917         $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
13918         implicit-man-prerequisites): New rules, used by the above.
13920         * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
13921         * config/config.guess, config/config.sub, config/install-sh: Likewise.
13922         * config/missing, config/texinfo.tex: Likewise.
13924 2005-01-29  Stepan Kasal  <kasal@ucw.cz>
13926         Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
13927         Update the long comment explaining it.
13929         m4_require no longer writes an ``is required by'' line to the
13930         execution stack.  It contains only one bit of non-redundant
13931         information: that the macro was required, not called.  And even
13932         this bit is useless in most situations: have you ever met a macro
13933         which both calls and requires the same macro?
13935         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
13936         (_m4_defun_pro_outer): ... only via this macro, for the outermost
13937           macro.
13938         (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
13939         (m4_expansion_stack_pop): Remove the misplaced comment.
13940         (m4_require): Don't put the ``is required by'' line to the
13941           execution stack; slightly improve the out-of-a-defun error message.
13942         (_m4_divert_grow): New macro, counter for the temporary diversions.
13943         (_m4_require_call): Use it.
13944         * tests/m4sugar.at (m4_require): Expect output without the
13945           ``is required by'' messages.
13947 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
13949         * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
13950         rather than x for expr.
13952         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
13953         this is safe.
13954         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
13955         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
13956         * lib/autotest/general.m4 (AT_INIT): Likewise.
13957         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
13958         * tests/mktests.sh: Likewise.
13960 2005-01-27  Akim Demaille  <akim@epita.fr>
13962         Have autoheader honor --force.
13964         * doc/make-stds.texi, doc/standards.texi: Update from masters.
13965         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
13966         * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
13967         from masters, so that FileUtils.pm's update_file provide --force
13968         support.
13969         * bin/autoheader.in: Pass $force to update_file so that
13970         config.h.in is always recreated when --force.
13972 2005-01-24  Stepan Kasal  <kasal@ucw.cz>
13974         * doc/autoconf.texi (Introduction): Update Peter Simons' address.
13976 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
13978         * doc/autoconf.texi (Limitations of Builtins): Clarify that
13979         "if test ! -d foo; ..." is portable.  Suggested by Stepan Kasal.
13981 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
13983         * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
13984         Warn about newline stripping in `` and $().  Update Solaris
13985         version to 9.
13986         (Limitations of Builtins): Use expr "X...", not expr "x...", as
13987         X insulates us from future changes to Posix.
13988         (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
13989         stripping.
13991 2005-01-19  Stepan Kasal  <kasal@ucw.cz>
13993         * doc/autoconf.texi (Defining Symbols): Delete the false comment that
13994           you cannot use AC_DEFINE to define macros containing `[' or `]'.
13996 2005-01-13  Paul Eggert  <eggert@cs.ucla.edu>
13998         * doc/autoconf.texi (Limitations of Usual Tools): Document bug
13999         in Solaris 8 join.  Problem reported by Tomohiro Suzuki on
14000         bug-tar mailing list.
14002 2005-01-05  Stepan Kasal  <kasal@ucw.cz>
14004         * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
14006 2005-01-05  Paul Eggert  <eggert@cs.ucla.edu>
14008         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
14009         ulongval to be static, to avoid unwanted GCC warning.  Problem
14010         reported by Michael Jennings via Daniel Reed; see
14011         <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
14013 2005-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
14015         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
14016         docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
14017         datadir, infodir, and mandir.  Adjust argument parsing code.
14018         (_AC_INIT_HELP): Update help text.
14019         * doc/autoconf.texi (Installation Directory Variables): Document
14020         new variables.
14022 2005-01-04  Noah Misch  <noah@cs.caltech.edu>
14024         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
14025         not seem to work, assume it does set $(MAKE).
14026         * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
14028 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
14030         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
14032 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
14034         A cleanup of the diversion support in m4sugar.
14036         * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
14037         (_m4_divert_n_stack): New macro; the expansion is
14038           <newline>m4_divert_stack, if m4_divert_stack is defined, and void
14039           otherwise.
14040         (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
14041         (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
14042           stored in _m4_divert_diversion or _m4_divert_dump.
14043         (m4_divert_pop): When the parameter is given, compare the symbolic
14044           name with the last diversion pushed on the stack.  Previously, the
14045           current diversion was compared with the numeric value of the
14046           diversion given as the parameter.
14047         (m4_require): If the macro hasn't been expanded yet, call ...
14048         (_m4_require_call): this new macro.
14050 2005-01-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14052         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
14053         Workarounds for documented `case' limitations.
14055 2005-01-03  Paul Eggert  <eggert@cs.ucla.edu>
14057         * doc/autoconf.texi (Limitations of Usual Tools): Warn about
14058         sed 'command1;command2'.  Problem reported by Ralf Wildenhues.
14060 2005-01-02  Paul Eggert  <eggert@cs.ucla.edu>
14062         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
14063         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
14064         bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
14066         Patch from Roger Leigh (with some minor changes) as follows:
14067         * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
14068         Resurrect AC_PROG_CC_STDC.
14069         * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
14070         AC_PROG_CC_C89, AC_PROG_CC_C99.
14071         (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
14072         * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
14073         AC_PROG_CC_C99): New macros.
14074         (AC_PROG_CC_STDC): Use them.
14075         (_AC_PROG_CC_STDC): Remove.
14076         (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
14077         * THANKS: Add Roger Leigh.
14079 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
14081         * bin/autoreconf.in (autoreconf_current_directory):  AM_INIT_AUTOMAKE
14082         signals that the package uses Automake; a `Makefile.am' is typical but
14083         not essential.  Reported by Magnus Therning.
14084         * tests/torture.at (autoreconf.): New banner.
14085         (autoreconf and non-AC configure): Rename to `Non-Autoconf
14086         AC_CONFIG_SUBDIRS'.
14087         (autoreconf an empty directory): Rename to `Empty directory'.
14088         (Unusual Automake input files): New test.
14090 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
14092         * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
14093         (AT_SETUP): Clear AT_capture_files.
14094         (_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
14095         (AT_KEYWORDS): Fix comment typo.
14096         * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
14097         * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
14098         * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
14100 2004-12-29  Albert Chin-A-Young  <china@thewrittenword.com>
14102         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
14103         If the variable to set is already set, set ac_cv_path_$1
14104         to the preset value so caller can assume ac_cv_path_$1
14105         is available.  (trivial change)
14107 2004-12-27  Noah Misch  <noah@cs.caltech.edu>
14109         * BUGS (Minor Problems): Warn about makefile limitations.
14110         * Makefile.am: Find and update `INSTALL' in $(srcdir).
14111         * man/Makefile.am: Find and update manual pages in $(srcdir).
14113 2004-12-24  Eric Blake  <ebb9@byu.net>
14115         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
14116         shells in subshell, to avoid noise from ash.  (trivial change)
14118 2004-12-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14120         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
14121         problems with SunOS ksh and backslash escaping, Bourne shells and
14122         closing brackets (both within character classes).  Bug reported
14123         against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
14124         <read>: New entry.  Mention non-availability of -r.
14126 2004-12-21  Akim Demaille  <akim@epita.fr>
14128         * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
14129         avoid cluttering displayed messages.  Rather, prepend srcdir where
14130         AT_LINE is used for log files.
14132 2004-12-21  Stepan Kasal  <kasal@ucw.cz>
14134         * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
14135         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
14136           no longer part of the macro, quote the occurrence of ``$tmp''.
14137         * doc/autoconf.texi (Forbidden Patterns): Typo.
14139 2004-12-21  Akim Demaille  <akim@epita.fr>
14141         * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
14142         separated from the test title by forcing a white space.
14144 2004-12-21  Akim Demaille  <akim@epita.fr>
14146         Enable Emacs navigation within testsuite.log files.
14148         * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
14149         use the compilation mode.
14150         (AT_LINE): Point to the srcdir.
14152 2004-12-19  Noah Misch  <noah@cs.caltech.edu>
14154         * tests/Makefile.am (installcheck-local): Use $(bindir).
14155         (check-local, installcheck-local): Pass TESTSUITEFLAGS.
14156         * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
14157         Makefile.am scheme Autoconf now uses.
14159 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
14161         * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
14162         * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
14164 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
14166         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
14167         (_AT_CHECK): Use it.
14168         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
14169         (AS_ESCAPE): Fix comment.
14170         * tests/autotest.at: Adjust section banner comments.
14171         (AT_CHECK_AT): Accept STATUS and STDERR.
14172         (AT_CHECK_AT_TEST): Likewise.
14173         (Invalid brace-enclosed parameter expansion)
14174         (Multiline command from M4 expansion)
14175         (Double-M4-quoted command): New tests.
14177 2004-12-17  Paul Eggert  <eggert@cs.ucla.edu>
14179         * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
14181 2004-12-17  Akim Demaille  <akim@epita.fr>
14183         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
14184         m4_pattern_allow.
14185         Suggested by Alexandre Duret-Lutz.
14186         * doc/autoconf.texi (Setting Output Variables): Catch up.
14188 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
14190         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
14192 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
14194         * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
14195           remove the comment which said we cannot.
14197 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
14199         Add a specialized check for resolv.h.  Thanks to Gerrit P. Haase,
14200         Reini Urban and Paul Eggert for reporting the dependencies.
14202         * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
14203         * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
14204         (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
14206 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
14208         * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
14209           so that eg. ``autoscan --help'' doesn't truncate it.
14211 2004-12-15  Nicolas Joly  <njoly@pasteur.fr>
14213         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
14214         generated conftest files.
14216 2004-12-13  Noah Misch  <noah@cs.caltech.edu>
14218         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
14219         tracing on commands with possibly-escaped newlines.
14220         * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
14221         discontinued behavior and its implications.
14222         * tests/autotest.at (BS-newline in command, ^BS-newline in command)
14223         (BSx641-newline in command, BS-BS-newline in command)
14224         (BSx640-newline in command, Newline-CODE-BS-newline in command)
14225         (Single-quote-BS-newline in command)
14226         (Single-quote-newline-BS-newline in command): New tests.
14228 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
14230         * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
14231           on platforms where it works.
14232         (_AS_TEST_PREPARE): Test for ``test -x''.
14233         (_AS_BROKEN_TEST_PREPARE): Nuke.
14235 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
14237         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
14238         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
14239           give only 4-letter prefix to AS_TMPDIR, comment fixed.
14240         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
14241           create the temporary directory.
14242         (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
14244 2004-12-12  Kelley Cook  <kcook@gcc.gnu.org>
14246         * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
14247         (trivial change)
14249 2004-12-12  Alexandre Duret-Lutz  <adl@gnu.org>
14251         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
14253 2004-12-11  Noah Misch  <noah@cs.caltech.edu>
14255         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
14256         to avoid using a negated character class.  Reported by Nicolas Joly.
14257         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
14259 2004-12-10  Paul Eggert  <eggert@cs.ucla.edu>
14261         * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
14262         autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
14263         Don't depend on .x file explicitly, since "make" does that for us.
14264         Suggested by Stepan Kasal.
14266         * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
14267         Add *.tmp.
14268         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
14269         ifnames): Factor common code.  And they said it couldn't be done!
14271 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
14273         * bin/.cvsignore: Add autoconf.in.
14274         * tests/.cvsignore: Add wrapper.in.
14275         * lib/autotest/general.m4: Escape '$' in case pattern.
14277 2004-12-09  Noah Misch  <noah@cs.caltech.edu>
14279         * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
14281         * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
14283         * tests/autotest.at: New file.
14284         * tests/suite.at: Include it.
14285         * tests/Makefile.am: Distribute it.
14287         * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
14288           shell tracing on a command that could contain multiple lines.
14289         * doc/autoconf.text: Document that fact and its implications.
14290         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
14291         * tests/autotest.at (Multiline backquote command substitution,
14292           Multiline parameter expansion, Literal multiline command,
14293           Multiline parenthetical command substitution): Remove XFAIL.
14295 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
14297         * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
14298         and suggest AC_SEARCH_LIBS.  Suggested by Noah Misch and Stepan Kasal.
14300 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
14302         * configure.ac (test suite): Cease to generate wrapper scripts.
14303         * configure: Regenerate.
14304         * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
14305         (m4f_dependencies): Adjust accordingly.
14306         * tests/Makefile.am (Wrappers): Generate wrapper scripts.
14307         (wrapper.in): Generate it in the build directory.
14308         (MAINTAINERCLEANFILES): Delete wrapper.in.
14309         (CLEANFILES): Add wrapper.in.
14310         * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
14311         the output.  Replace each $as_me with a @wrap_program@.
14312         * tests/wrapper.in: Delete it; we always build it.
14314         * bin/Makefile.am (autoconf.in): Generate it in the build directory.
14315         (EXTRA_DIST): Remove autoconf.in.
14316         (CLEANFILES): Add autoconf.in.
14317         (autoconf): Find autoconf.in in the build directory.
14318         * bin/autoconf.in: Delete it; we always build it.
14320 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
14322         * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'.  Join
14323         PATH members so as to not prepend an empty element.  Move a comment.
14324         * Makefile.am (SUBDIRS): Build in `tests' last.
14325         * tests/Makefile.am (installcheck-local): Add check-local dependencies.
14327 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
14329         * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
14330         the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
14331         <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
14332         Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
14334 2004-12-07  Stepan Kasal  <kasal@ucw.cz>
14336         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
14337         patch: extra "-l"s.
14339 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
14341         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
14342         looking elsewhere for getmntent.  Problem reported by Mark D. Baushke.
14343         * doc/autoconf.texi (Particular Functions): Mention new behavior.
14345 2004-12-03  Stepan Kasal  <kasal@ucw.cz>
14347         * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
14348           out the common code to ...
14349         (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
14350           value of the #define--default to 1, iff the macro was called
14351           with exactly one parameter.
14353 2004-12-02  Paul Eggert  <eggert@cs.ucla.edu>
14355         * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
14356         "char c = '\200';" rather than "char c = 0x80;" as the
14357         latter doesn't conform to the strict C standard due to
14358         overflow on signed char hosts.
14360         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
14361         to -qlanglvl=ansi.  We don't want to disable extensions.
14363 2004-11-29  Paul Eggert  <eggert@cs.ucla.edu>
14365         * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
14366         (Using Autotest, testsuite Scripts, Writing testsuite.at):
14367         Reword slightly to avoid some English-language problems noted
14368         by Ralf Wildenhues in:
14369         http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
14371 2004-11-29  Stepan Kasal  <kasal@ucw.cz>
14373         * NEWS: Add ^L above each release.
14375 2004-11-28  Paul Eggert  <eggert@cs.ucla.edu>
14377         Fix documentation problems reported by Russ Boylan in
14378         <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
14379         along with some nearby cruft.
14380         * doc/autoconf.texi (Libtool): Libtool can be used without
14381         Automake (not without Autoconf).
14382         (Introduction): Mention lists.gnu.org.
14383         * BUGS: Don't mention bugs.gnu.org.
14384         Remove mention of ancient libtool compatibility problem.
14385         * NEWS: Mention that bugs.gnu.org is kaput.
14386         * README: Likewise.  Mention where mailing list archives can be found.
14388 2004-11-28  Stepan Kasal  <kasal@ucw.cz>
14390         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
14392 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
14394         * doc/autoconf.texi (Pretty Help Strings): Go back to
14395         single-quoting assignments to cache variables.
14397 2004-11-23  Stepan Kasal  <kasal@ucw.cz>
14399         * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
14400         with the examples; fix the bug in MY_ARG_WITH example reported
14401         by Alexandre Duret-Lutz.
14402         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
14403         expansion of $1 in the comment emitted to configure.
14405 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
14407         * doc/autoconf.texi (Pretty Help Strings): Fix typo
14408         in my editing of the previous patch.  Problem reported
14409         by Alexandre Duret-Lutz.
14411 2004-11-22  Stepan Kasal  <kasal@ucw.cz>
14413         * doc/autoconf.texi (Autoconf Language): Explain that
14414         ``descriptions'' may not be double quotes.
14415         (Quotation Rule Of Thumb): Likewise.
14416         (Pretty Help Strings): Likewise; remove the wrong comment;
14417         simplify the examples and improve their quoting.
14419 2004-11-13  Stepan Kasal  <kasal@ucw.cz>
14421         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
14422         the $1_found variable, don't test whether the file is executable;
14423         Both things are checked ...
14424         (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
14425         the former ``test -f''.
14426         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
14428 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
14430         * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
14431         use cp -R instead.
14433 2004-11-10  Derek R. Price  <derek@ximbiot.com>
14435         * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
14436         limitations.  Reorder paragraphs for clarity.
14438 2004-10-11  Paul Eggert  <eggert@cs.ucla.edu>
14440         * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
14441         to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
14442         variants", "Unix", and some related minor wording fixups.
14444         (Shellology, Special Shell Variables): Document that the Zsh
14445         problem with NULLCMD was fixed in zsh 3.1.6-dev-18.  Thanks
14446         to Alexandre Duret-Lutz for this info.
14448 2004-10-10  Alexandre Duret-Lutz  <adl@gnu.org>
14450         * doc/autoconf.texi (One-Shot Macros): New node.
14452 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
14454         * doc/autoconf.texi (Function Portability): Fix misdescription
14455         of putenv.  Problem reported by Michael Wardle.
14457 2004-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14459         * doc/autoconf.texi (auindex): New macro.
14460         (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
14461         Problem reported by Stepan Kasal.
14463 2004-09-05  Paul Eggert  <eggert@cs.ucla.edu>
14465         Fix problems reported by Andreas Buening in:
14466         http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
14467         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
14468         in test makefile.
14469         * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
14470         readable; it's not true in OS/2-emx.
14472 2004-09-04  Paul Eggert  <eggert@cs.ucla.edu>
14474         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
14475         "/usr/include", clear ac_x_includes instead of leaving it as "no"
14476         (trivial change).  Problem and patch reported by Andrew Church in:
14477         http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
14479 2004-09-03  Paul Eggert  <eggert@cs.ucla.edu>
14481         * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
14482         three args in examples.  Problem reported by Frederik Fouvry in:
14483         http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
14484         Also, fix some minor spacing and punctuation bugs.
14486 2004-09-02  Akim Demaille  <akim@epita.fr>
14488         * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
14489         "case" to restore ordering.
14490         Reported by Stepan Kasal.
14492 2004-08-26  Akim Demaille  <akim@epita.fr>
14494         * doc/autoconf.texi: Minor typos and stylos.
14496 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
14498         * configure.ac (AC_INIT): Bump to 2.59c.
14500 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
14502         Version 2.59b.
14504         * README: Add advice about m4 1.4.2.
14506         * Makefile.cfg (wget_files): Remove config.guess, config.sub,
14507         texinfo.tex for now (done by hand now).
14508         * Makefile.maint (wget_files, cvs_files):
14509         Remove ansi2knr.c; nobody uses it.
14510         (ansi2knr.c-url_prefix): Remove.
14511         (cvs-update): Fix test for failure.  I don't know why it ever
14512         worked...
14514         * doc/autoconf.texi: Update URLs, some of which went stale.
14515         Use @uref rather than @href.
14517         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
14518         handle "--" as per POSIX.  Suggested by Paul Pogonyshev.
14520         * config/config.guess, config/config.sub, config/elisp-comp,
14521         config/install-sh, config/mkinstalldirs, config/texinfo.tex,
14522         doc/fdl.texi, doc/standards.texi: Sync with master copy.
14524         * NEWS, TODO, configure.ac, bin/autoscan.in,
14525         bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
14526         doc/install.texi, lib/Autom4te/Configure_ac.pm,
14527         lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
14528         lib/autoconf/programs.m4, lib/autoconf/status.m4,
14529         lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
14530         lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
14531         tests/tools.at, tests/torture.at:
14532         Use "file name" rather than "filename" or "path",
14533         to be consistent with the terminology of the GNU coding standards.
14535 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
14537         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
14538         AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
14539         HP-UX 11.23 cc/aCC or Tru64 4.0 cc.  Problem reported by Noah Misch in
14540         <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
14542         More fixes to support spaces in the name of the build directory.
14543         This isn't a complete fix but it's an improvement.
14545         * bin/autoconf.as (autom4te_options): New var.
14546         Use it instead of appending to AUTOM4TE, so that we can allow
14547         spaces in the build directory's absolute name.
14548         * bin/autoheader.in ($autoconf): Allow spaces in file names.
14549         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
14550         AT_CHECK_NOESCAPE): Likewise.
14551         * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
14552         main program): Likewise.
14554 2004-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14556         * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
14557         From Ralf Corsepius in:
14558         http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
14560 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14562         * doc/autoconf.texi (Function Portability): Document isinf and
14563         and isnan.  From a suggestion by Kevin Ryde.
14565         * lib/Autom4te/General.pm (END): Return correct exit status even
14566         if unlink succeeds and sets $?.  Needed with Solaris 8's perl 5.00503.
14568 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
14570         * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
14571         for compatibility with Automake 1.4.  Reported by J C Fitzgerald in
14572         <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
14574 2004-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
14576         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
14577         (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
14578         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
14579         * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
14580         * lib/autom4te.in (Automake-preselections): Preselect
14581         AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
14583 2004-08-02  Alexandre Duret-Lutz  <adl@gnu.org>
14585         * lib/autom4te.in (Automake-preselections): Preselect
14586         AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
14587         trace them.
14589 2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
14591         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
14592         Tru64.
14593         * doc/autoconf.texi (Shellology): Mention BIN_SH.
14594         Document problem with "`""`" in pdksh POSIX mode.
14596 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
14598         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
14599         with pdksh, too.  Problem reported by Patrick Welche via
14600         Gary V. Vaughan.
14601         * doc/autoconf.texi (Shellology): Note that set -o posix is
14602         useful for pkdsh, too.
14604 2004-06-24  Paul Eggert  <eggert@cs.ucla.edu>
14606         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
14607         _AS_UNSET_PREPARE, so that we can use $as_unset directly.
14608         Don't fail if ENV or BASH_ENV is readonly.
14609         (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
14610         etc. are read only.  Problem reported by Ludovic Courtes.
14612 2004-06-23  Noah Misch  <noah@cs.caltech.edu>
14614         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
14615         zsh, disable GLOB_SUBST to avoid backslash handling problems.
14616         (trivial change)
14618 2004-06-04  Paul Eggert  <eggert@cs.ucla.edu>
14620         * doc/autoconf.texi (File System Conventions): Warn about
14621         names like "aux".  Problem reported by Eric Blake.
14623         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
14624         by zero instead of array size, so that we can use any arithmetic
14625         constant expression (instead of requiring an integer constant
14626         expression).  This allows us to test expressions like DBL_MAX <
14627         LDBL_MAX, which didn't conform to the C standard using the old
14628         method.
14629         (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
14630         now that we can do floating-point tests at compile time.
14632 2004-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14634         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
14635         and LDBL_EPSILON, as the resulting expression isn't an
14636         integer constant expression and violates the C standard.
14637         Problem reported by Nelson H. F. Beebe.  Also, check
14638         for "L" suffix, and check that long double doesn't have
14639         worse range or precision than double, that mixed-mode
14640         arithmetic doesn't generate a diagnostic, that double
14641         constants fit in long double.
14643 2004-06-03  Kevin Ryde  <user42@zip.com.au>
14645         * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
14646         malloc(0) and realloc(NULL,size).
14648         * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
14649         Bob Proulx.
14651 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
14653         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
14654         in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].  Problem reported
14655         by Jim Meyering.
14657 2004-05-26  Paul Eggert  <eggert@cs.ucla.edu>
14659         * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
14660         can be rewritten using if-then-else.  Suggested by Bruno Haible.
14662 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
14664         * doc/autoconf.texi (testsuite Scripts): Fix typo.
14665         Problem reported by Stepan Kasal.
14667 2004-05-24  Paul Eggert  <eggert@cs.ucla.edu>
14669         * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
14670         change).  Patch reported by Ralf Wildenhues in
14671         <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
14673         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
14674         function F exists if the compiler and linker let you compile an
14675         expression like (F != 0).  Recent versions of GCC optimize away
14676         the reference to F in that case, since every function address must
14677         be nonzero, so the link succeeds even if F does not exist.
14678         Problem reported by Manu in
14679         <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
14681         * doc/autoconf.texi (Systemology): Standardize on the spelling of
14682         "Unix".  Many uses changed.
14683         (Limitations of Builtins): Explain better why the ! command isn't
14684         portable.
14686 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
14688         * lib/autom4te.in (Automake-preselections): Preselect
14689         LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
14691 2004-05-19  Kevin Ryde  <user42@zip.com.au>
14693         * doc/autoconf.texi (Function Portability): Add strerror_r, cross
14694         referencing AC_FUNC_STRERROR_R.
14696         * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
14697         note pessimistic assumption when cross compiling.
14699 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14701         * doc/autoconf.texi (Limitations of Make): Note that BSD make
14702         (until 2004) invoked subcommands with sh -e, contra POSIX.
14703         Reported by Kevin Ryde.
14705 2004-05-10  Eric Sunshine  <sunshine@sunshineco.com>
14707         * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
14708         _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
14709         "        $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
14710         `test -f "        /usr/bin/grep"', which _always_ failed.
14711         (AC_PROG_SED): Ditto bogus PATH fix.
14712         * autoconf.texi (AC_PROG_GREP): Properly document that this macro
14713         requires that grep correctly supports _multiple_ `-e' options, rather
14714         than stating only that grep should accept `-e'.
14716 2004-05-03  Paul Eggert  <eggert@cs.ucla.edu>
14718         Port to C99, which requires that 'exit' be declared.
14720         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
14721         to ensure that stdlib.h is included.
14722         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
14723         AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
14724         _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
14725         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
14726         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
14727         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
14728         when using 'exit' in a test; C99 requires that 'exit' be declared.
14730 2004-05-02  Paul Eggert  <eggert@cs.ucla.edu>
14732         * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
14733         now prefers 'grep' implementations that accept -e.
14734         (Limitations of Usual Tools): Describe problems of traditional
14735         egrep and fgrep with long input lines, and of traditional grep
14736         with -e.
14737         * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
14738         (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
14739         All callers changed.  Append /usr/xpg4/bin to the PATH, for
14740         Solaris.
14741         (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
14742         the user with complaints about multiple -e options.
14743         * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
14744         Define it with AC_PROG_GREP.
14745         * configure.ac (AC_PROG_GREP): Add.
14746         * lib/freeze.mk (GREP): New macro.
14748 2004-05-02  Eric Sunshine  <sunshine@sunshineco.com>
14750         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
14751         a possible candidate only after all others fail, rather than
14752         consulting it first.  This improves backward compatibility by
14753         better reflecting the way shell selection occurred in previous
14754         versions of Autoconf, and should help to avoid triggering latent
14755         problems in other packages, such as the one in Automake where zsh
14756         is not handled robustly:
14757         http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
14758         Although it is not Autoconf's responsibility to work around
14759         problems in Automake, it nevertheless makes sense to avoid
14760         introducing unnecessary incompatibilites.
14762 2004-04-22  Albert Chin-A-Young  <china@thewrittenword.com>,
14763             Gary V. Vaughan  <gary@gnu.org>
14765         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
14766         how deeply nested we are when a suitable tool is found, set the
14767         ac_path_TOOL_found flag.
14768         (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
14769         nested we are in this macro.  Break out of all 3 nested loops if
14770         ac_path_TOOL_found is set.
14772 2004-04-21  Gary V. Vaughan  <gary@gnu.org>
14774         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
14775         of the _AS_PATH_WALK loop too if GNU flavor is found.
14777 2004-04-21  Alexandre Duret-Lutz  <adl@gnu.org>
14779         * doc/autoconf.texi (Limitations of Make): Update documentation
14780         for `$<'.  New entry `Long lines', based on a report from Simon
14781         Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
14782         paragraph about DJGPP, based on a mail from Richard Dawe.
14784 2004-04-20  Paul Eggert  <eggert@twinsun.com>
14786         * tests/c.at (C keywords): Don't assume that GCC supports
14787         "restrict" and "inline", as sufficiently-old GCC versions do not
14788         (also, GCC configured to be in pedantic C89 mode does not).
14789         Problem reported by Sumit Pandya in:
14790         http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
14792         * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
14793         consider -g to work if it generates warnings when plain compiles
14794         don't.  Problem reported by Braden McDaniel in:
14795         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
14797         * doc/autoconf.texi (Slashes): New section, to document a problem
14798         reported by Jim Meyering in:
14799         http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
14801         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
14802         linker output files before linking, to work around IRIX 6 linker bug.
14803         Problem reported by Rainer Orth in:
14804         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
14806 2004-04-20  Gary V. Vaughan  <gary@gnu.org>
14808         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
14809         best tool so far counter rely on the tool path variable name to
14810         avoid checks for one tool being affected by the results of running
14811         the length check on a previous tool.
14813         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
14814         match expression argument, as different greps have different
14815         regular expression flavours.
14816         (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
14817         literals.
14818         (AC_PROG_EGREP): Pass 'EGREP$'.
14819         (AC_PROG_GREP): Pass 'GREP$'.
14821 2004-04-20  Albert Chin-A-Young  <china@thewrittenword.com>
14823         * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
14824         is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
14826 2004-03-29  Paul Eggert  <eggert@twinsun.com>
14828         * doc/autoconf.texi (Particular Headers, Particular Types, Generic
14829         Types, Specific Compiler Characteristics, System Services,
14830         Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
14831         etc. consistently instead of 'long', 'short', 'unsigned' etc.
14832         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
14833         * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
14834         Likewise.
14835         * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
14836         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
14837         AC_TYPE_OFF_T): Likewise.
14838         * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
14839         Likewise.
14841         * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
14842         pacify libtool 1.5.2.  Fix quoting problems in sed command.
14844 2004-03-28  Paul Eggert  <eggert@twinsun.com>
14846         * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
14847         now defines HAVE_DECL_TZNAME if it is declared, when
14848         HAVE_STRUCT_TM_TM_ZONE is not defined.
14849         * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
14850         Do not assume atoi.  Rely on HAVE_DECL_TZNAME when testing
14851         for HAVE_TZNAME.
14853 2004-03-28  Steven G. Johnson  <stevenj@fftw.org>
14855         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
14856         superfluous backslashing of quotes (") in sed expressions;
14857         thanks to Paul Eggert.
14859 2004-03-26  Steven G. Johnson  <stevenj@alum.mit.edu>
14861         * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
14862         Fortran compiler is ifort, also added pghpf; thanks to Nelson
14863         H. F. Beebe for the bug report.
14865 2004-03-26  Steven G. Johnson  <stevenj@fftw.org>
14867         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
14868         quoted -cmdline argument in Portland Group compiler (bug
14869         reported by Jeffrey J. Barteet).
14871 2004-03-25  Kevin Ryde  <user42@zip.com.au>
14873         * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
14874         (Run Time): ... here, where it's now mentioned.
14876 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
14878         * doc/autoconf.texi (autom4te Invocation): Language Autoconf
14879         inherits from language Autoconf-without-aclocal-m4.
14880         (Customizing autom4te): Adjust example; the cache must now be
14881         disabled for language Autoconf-without-aclocal-m4.
14883 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
14884             Nathanael Nerode  <neroden@twcny.rr.com>
14886         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
14887         AC_CHECK_TOOLS): Warn if a cross-tool is found without
14888         a prefix.
14889         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
14890         AC_CHECK_TARGET_TOOLS): New macros.
14891         * doc/autoconf.texi (Generic Programs): Document
14892         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
14893         AC_CHECK_TARGET_TOOLS, and warn for future changes
14894         in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
14895         AC_CHECK_TOOLS.
14896         (Specifying Names): Document the reason for these future
14897         behavioral changes.
14898         * tests/mktests.sh: Do not generate tests for the
14899         new macros.
14900         * NEWS: Document these changes.
14902         * doc/autoconf.texi: Avoid macros with unbraced arguments,
14903         they make TeX hang up.
14905 2004-03-15  Paul Eggert  <eggert@bogus.example.com>
14907         * NEWS: New macro AC_CHECK_ALIGNOF.
14908         * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
14909         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
14910         int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
14911         vowel.
14912         (AC_CHECK_ALIGNOF): New macro.
14913         * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
14914         * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
14915         those for sizeof.
14917 2004-03-03  Paul Eggert  <eggert@twinsun.com>
14919         * bin/Makefile.am (edit): Don't use $< in a context where
14920         POSIX doesn't require support for it.  Use $@.in instead.
14921         Problem reported by Anthony N. Frasso in
14922         <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
14923         * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
14925 2004-02-23  Gary V. Vaughan  <gary@gnu.org>
14927         * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
14928         from the next generation of Libtool.
14929         * lib/autom4te.in (Autoreconf-preselections): Ditto.
14931 2004-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
14933         * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
14934         is not always thread-safe.  Report from Nathanael Nerode.
14936 2004-02-18  Paul Eggert  <eggert@twinsun.com>
14938         Fix a dependencies problem, stemming from a Autoconf 2.59 build
14939         problem on QNX reported by Stephen Rasku in
14940         <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
14942         * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
14943         $(m4sh_m4f_dependencies); this removes a FIXME.
14944         * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
14945         (MAINTAINERCLEANFILES): Split into pieces,
14946         one per related section.  Add $(srcdir)/wrapper.in.
14948 2004-02-09  Paul Eggert  <eggert@twinsun.com>
14950         * doc/autoconf.texi (Setting Output Variables): Emphasize that
14951         AC_SUBST provides no portable way to escape literal newlines.
14953         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
14954         flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
14955         Darwin uses -lcrt2.o and there's little point to cataloging all
14956         the system variants.  Partial fix reported by Andreas Waechter in:
14957         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
14958         for bug reported by Nelson H. F. Beebe in:
14959         http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
14961 2004-02-04  Paolo Bonzini  <bonzini@gnu.org>
14963         * doc/autoconf.texi (AU_DEFUN): Fix English,
14964         suggested by Paul Eggert.
14965         * lib/autoconf/autoupdate.m4: Correct reference to
14966         acobsolete.m4, suggested by Alexandre Duret-Lutz.
14968 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
14970         * bin/autoupdate.in: Define __file__ so that warnings
14971         refer to the correct file.
14972         * doc/autoconf.texi (AU_DEFUN): Describe more correctly
14973         the behavior of the third argument.
14974         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
14975         correctly the behavior of the third argument.  Document
14976         what the three macros that AU_DEFUN defines do.  Fix
14977         warning message when the third argument includes $0
14978         (reported by Alexandre Duret-Lutz).
14980 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
14981             Eric Sunshine  <sunshine@sunshineco.com>
14982             Paul Eggert  <eggert@twinsun.com>
14984         * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
14985         (AS_INIT): Output shell initialization there. Removed optional
14986         parameter. Expand _AS_SHELL_FN_SPY.
14987         (AS_INIT_WITH_SHELL_FN): Removed.
14988         (_AS_SHELL_FN_SPY): New macro.
14989         (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
14990         macros.
14991         (AS_SHELL_SANITIZE): Remove loop to find better shell
14992         and documentation for the parameter.
14993         (_AS_DETECT_BETTER_SHELL): Move it here.
14994         (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
14995         (_AS_RUN): Move it here, support testing with eval.
14996         (AS_REQUIRE_SHELL_FN): Require shell functions when
14997         it is used.
14998         (_AS_LINENO_WORKS): Put around braces, we do not
14999         trigger the bash bug anymore.
15000         * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
15001         use AS_INIT_WITH_SHELL_FN.
15002         * bin/autoconf.in, tests/wrapper.in: Regenerated.
15004 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
15006         * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
15007         * doc/autoconf.texi: Don't say that the third parameter
15008         is broken.
15009         * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
15010         (AU_DEFUN): Honor the third parameter, create autoupdate
15011         macros with AU_DEFINE.
15012         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
15013         AC_DIR_HEADER): Use AU_DEFUN's third parameter.
15014         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
15015         * lib/autoconf/programs.m4 (AC_RSH): Likewise.
15016         * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
15017         AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
15018         AC_XENIX_DIR): Likewise.
15019         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
15020         AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
15021         * lib/autoconf/status.m4: Remove FIXME.
15022         * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
15023         that the macro is not present anymore in the updated
15024         configure.ac.
15025         * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
15026         of autoupdate.
15028 2004-01-28  Paul Eggert  <eggert@twinsun.com>
15030         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
15031         copyright years.
15032         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
15033         2003 (except 1997) to the list of copyright years.  This undoes
15034         the 2003-05-22 change, which removed the older years from the list.
15035         * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
15037 2004-01-27  Gary V. Vaughan  <gary@gnu.org>
15038             Albert Chin-A-Young  <china@thewrittenword.com>
15040         * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
15041         grep or ggrep program in PATH that accepts as long lines as
15042         possible.
15043         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
15044         AC_PROG_GREP.
15045         (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
15046         egrep and fgrep respectively if $GREP -E/-F don't work.
15047         (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
15048         _AC_PROG_GREP, and AC_PROG_SED.
15049         (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
15050         longest input length accepted by a command.
15051         (AC_PROG_SED): Use it.
15052         * doc/autoconf.texi (Particular Programs): Document the changes.
15053         * NEWS: Updated.
15055 2004-01-27  Paul Eggert  <eggert@twinsun.com>
15057         * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
15058         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
15059         bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
15060         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
15062         * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
15063         bin/autoconf.in, config/Makefile.in, config/config.guess,
15064         config/config.sub, config/install-sh, config/mdate-sh,
15065         config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
15066         lib/Makefile.in, lib/Autom4te/Makefile.in,
15067         lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
15068         lib/autotest/Makefile.in, lib/emacs/Makefile.in,
15069         lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
15070         man/autoheader.1, man/autom4te.1, man/autoreconf.1,
15071         man/autoscan.1, man/autoupdate.1, man/config.guess.1,
15072         man/config.sub.1, man/ifnames.1, tests/Makefile.in,
15073         tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
15074         tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
15075         tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
15076         tests/actypes.at: Regenerate and/or sync with original
15077         sources.
15079 2004-01-26  Paul Eggert  <eggert@twinsun.com>
15081         * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
15082         HAVE_INTTYPES_H is defined.  This is needed on Tru64 5.1b with
15083         Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
15084         not <inttypes.h>.  Problem reported by Tim Mooney in
15085         <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
15086         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
15087         Likewise.
15089         * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
15090         otherwise "make check" fails because it forbids cmp (I guess
15091         because cmp treats files as binary on DOS-like systems).
15093         * tests/mktests.sh: Update copyright date to 2004, since some tests
15094         have changed in 2004.
15096 2004-01-23  Gary V. Vaughan  <gary@gnu.org>
15098         * lib/autoconf/programs.m4 (AC_PROG_SED):  New macro to test for a
15099         non-truncating sed or gsed program in PATH.
15100         * tests/acprograms.at: Add it.
15101         * doc/autoconf.texi (Particular Programs): Document it.
15102         * NEWS: Updated.
15104 2004-01-15  Paul Eggert  <eggert@twinsun.com>
15106         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
15107         -std1 disables some useful extensions on Tru64.  Problem reported
15108         by N. Lichtmaier in
15109         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
15111 2004-01-14  Paul Eggert  <eggert@twinsun.com>
15113         * doc/autoconf.texi (Programming in M4sh): Document that
15114         AS_MKDIR_P succeeds if the destination is a symbolic link
15115         to an existing directory.
15116         (Limitations of Usual Tools): Note that mkdir -p might not
15117         succeed on symlinks to directories.
15119 2004-01-13  Paul Hilfinger  <hilfinger@CS.Berkeley.EDU>
15121         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
15122         * bin/autoheader.in: Grammar fix in message.
15123         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
15124         Test for dir before calling mkdir -p.  (trivial changes)
15126 2004-01-13  Eric Blake  <ebb9@byu.net>
15128         * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
15129         AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
15131 2004-01-10  Jim Meyering  <jim@meyering.net>
15133         * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
15135 2004-01-09  Paul Eggert  <eggert@twinsun.com>
15137         * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
15138         with `autoconf -Wall,error'.  Bug reported by Eric Blake in:
15139         http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
15140         (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
15141         AC_COMPILE_IFELSE, since we now assume our caller invokes
15142         AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
15143         (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
15144         of AC_RUN_IFELSE; this avoids the warning mentioned above.
15145         (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
15147 2004-01-07  Paul Eggert  <eggert@twinsun.com>
15149         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
15150         `"'...'"`, as it's confusing (and I suspect it may not work on
15151         some platforms).  The code was incorrect anyway, as it assumed
15152         that \$ evaluated to itself in that context.  Reported by
15153         Alexandre Duret-Lutz.
15155 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
15157         * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
15158         and _LT_AC_TAGCONFIG.
15160 2004-01-06  Paul Eggert  <eggert@twinsun.com>
15162         * doc/autoconf.texi (One Macro Call): Fix an incorrect
15163         example, and add more examples.  Reported by Eric Sunshine.
15165 2004-01-05  Paul Eggert  <eggert@twinsun.com>
15167         * doc/autoconf.texi (Limitations of Usual Tools):
15168         Remove warning against "rm -fr" introduced yesterday; it
15169         was a false alarm.
15171         * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
15172         autoscan, autoupdate, ifnames): Don't use chmod -w.
15173         * lib/Makefile.am (autom4te.cfg): Likewise.
15174         * doc/autoconf.texi (Limitations of Usual Tools): Warn against
15175         "chmod -w".
15177 2004-01-04  Paul Eggert  <eggert@twinsun.com>
15178             Paolo Bonzini  <bonzini@gnu.org>
15180         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
15181         by doing lineno substitution only on lines containing "$LINENO".
15183 2004-01-04  Paul Eggert  <eggert@twinsun.com>
15185         * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
15186         Use "rm -f" to remove conftest.sed, not plain "rm".
15187         Bug reported by David Relson in
15188         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
15190         * Makefile.am (autom4te-update):
15191         Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
15192         * Makefile.maint (my-distcheck, do-po-update): Likewise.
15193         * doc/autoconf.texi (Guidelines): Likewise.
15194         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
15195         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
15196         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
15197         * lib/autotest/general.m4 (AT_INIT): Likewise.
15198         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
15199         * tests/Makefile.am (clean-local): Likewise.
15200         * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
15201         srcdir): Likewise.
15202         * doc/autoconf.texi (Limitations of Usual Tools):
15203         Warn against "rm -fr".
15205 2004-01-03  Paul Eggert  <eggert@twinsun.com>
15207         * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
15208         -c -o might not work.  From a suggestion by Kevin Ryde.
15209         (C Compiler, Generating Sources, Limitations
15210         of Usual Tools, Limitations of Make, Making testsuite Scripts):
15211         Don't put '-o' after non-options, as POSIX doesn't allow this.
15212         Mention that cc's name might be gcc or c89 or whatever.
15214 2004-01-04  Kevin Ryde  <user42@zip.com.au>
15216         * doc/autoconf.texi: Add various further index entries.
15218 2003-12-29  Paul Eggert  <eggert@twinsun.com>
15220         * bin/autoreconf.in (autoreconf_current_directory):
15221         Fix typo: mkdir without umask arg.
15223 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
15225         * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
15226         Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
15227         `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
15228         explanation clearer.
15230 2003-12-24  Andreas Schwab  <schwab@suse.de>
15232         * doc/autoconf.texi (Default Includes): Fix misspelling of
15233         AC_INCLUDES_DEFAULT.
15235 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
15237         * configure.ac: Test if sh -n works.
15238         * configure: Regenerate.
15239         * tests/atlocal.in: Store the result here.
15240         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
15241         tools.at, looking in atlocal's ac_cv_sh_n_works instead
15242         of explicitly testing.
15243         (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
15244         (AT_CHECK_AUTOCONF): Test for the configure script syntax.
15245         * tests/tools.at (Syntax of the shell scripts): Simplify
15246         using AT_CHECK_SHELL_SYNTAX.
15247         (Syntax of the Perl scripts): Remove definition of
15248         AT_CHECK_PERL_SYNTAX.
15250 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
15252         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
15253         stderr to /dev/null.
15254         * bin/autoconf.in: Regenerate.
15255         * bin/wrapper.in: Regenerate.
15257 2003-11-26  Paolo Bonzini  <bonzini@gnu.org>
15259         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
15260         Extracted from AS_SHELL_SANITIZE.
15261         (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
15262         macros.
15263         (AS_SHELL_SANITIZE): Move reinvocation code from
15264         _AS_LINENO_WORKS, use it to find out if shell
15265         functions work.
15266         (_AS_LINENO_WORKS): Don't find another shell if $LINENO
15267         does not work.
15268         (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
15269         (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
15270         was called.
15271         * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
15272         * bin/autoconf.in: Regenerate.
15273         * tests/wrapper.in: Regenerate.
15274         * tests/tools.at: Test the syntax of tests/autoconf
15275         and tests/testsuite.
15277 2003-11-24  Akim Demaille  <akim@epita.fr>
15279         * config/announce-gen (&print_locations, &print_signatures)
15280         (&sizes): New.
15281         Use them.
15282         No longer rely on Gnus to inline the list of signatures: compute
15283         them on the fly.
15285 2003-11-24  Akim Demaille  <akim@epita.fr>
15287         * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
15288         override some files.
15289         (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
15290         From Debian Autoconf 2.58.
15292 2003-11-24  Akim Demaille  <akim@epita.fr>
15294         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
15295         uses.
15296         From Debian Autoconf 2.58.
15298 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
15300         * TODO: Remove already done things.  Update the part about finding
15301         tools for the target.
15303 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
15305         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
15306         Make wording more consistent.
15307         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
15308         Explain the transition better.
15309         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
15310         the transition better.
15312 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
15314         * doc/autoconf.texi (Obsoleting Macros): Don't document the third
15315         parameter of AU_DEFUN.
15316         * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
15317         (AU_DEFUN): Remove the third parameter, it was not used.
15318         Use AC_DEFUN directly, not AU_DEFINE.
15319         * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
15320         the expanded body, consistently with other macros such as AC_USG.
15322 2003-11-17  Paul Eggert  <eggert@twinsun.com>
15324         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
15325         into the initial confdefs.h, to work around a bug in NextStep 3.3
15326         patch 3 reported by Eric Sunshine.
15328 2003-11-15  Kevin Ryde  <user42@zip.com.au>
15330         * doc/autoconf.texi (Using System Type): Revise, showing $host rather
15331         than $target since the latter is not usual, add guidelines on when to
15332         use or not use the system type.
15334 2003-11-12  Derek Price  <derek@ximbiot.com>
15336         * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
15337         typo misrepaired by an auto-spellcheck.
15339 2003-11-12  Akim Demaille  <akim@epita.fr>
15341         * bin/autoreconf.in (&parse_args): Don't call automake with
15342         --force-missing unless it actually supports it.
15343         From Debian #219336.
15345 2003-11-12  Akim Demaille  <akim@epita.fr>
15347         * configure.ac: Bump to 2.59a.
15348         Require 2.59.
15350 2003-11-06  Akim Demaille  <akim@epita.fr>
15352         Version 2.59.
15354 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
15356         * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
15357         so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
15358         and ac_abs_top_srcdir are absolute paths.
15359         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
15361 2003-11-05  Akim Demaille  <akim@epita.fr>
15363         * configure.ac: Bump to 2.58a.
15365 2003-11-05  Kevin Ryde  <user42@zip.com.au>
15367         * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
15368         it provokes a warning from makeinfo about looking like a cross
15369         reference in info output.
15371         * doc/autoconf.texi (Function Portability): Add notes on signal
15372         handler return type, as per AC_TYPE_SIGNAL.
15374 2003-11-04  Akim Demaille  <akim@epita.fr>
15376         Version 2.58.
15377         * doc/standards.texi: Update from master.
15379         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
15381 2003-11-04  Akim Demaille  <akim@epita.fr>
15383         AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
15384         computing the absolute path to d1 in the source hierarchy: it may
15385         not exist at all.  So don't cd into it.
15386         From Alexandre Duret-Lutz.
15387         http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
15389         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
15390         From Paul Eggert, but named after Perl's IO::Spec->catfile.
15391         * doc/autoconf.texi (Programming in M4sh): Document.
15392         * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
15394 2003-11-03  Pavel Roskin  <proski@gnu.org>
15396         * doc/autoconf.texi (Generic Structure Checks): Describe
15397         action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
15399 2003-10-31  Akim Demaille  <akim@epita.fr>
15401         * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
15402         (GNU Fortran): New.
15403         * doc/autoconf.texi (Language Choice): Document.
15404         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
15405         the current language is Fortran.
15407 2003-10-31  Akim Demaille  <akim@epita.fr>
15409         * bin/autom4te.in (&freeze): Use a less likely warning separator
15410         than `\n\n', so that `\n\n\n' is valid in warnings.
15411         Reported by Steve Huston.
15413 2003-10-28  Akim Demaille  <akim@epita.fr>
15415         * Makefile.cfg (local_updates, executable-update): Tweak to be
15416         robust to parallel makes.
15417         Suggested by Alexandre Duret-Lutz.
15419 2003-10-27  Akim Demaille  <akim@epita.fr>
15421         * Makefile.cfg (executable-update): New.
15422         (local_updates): Call it.
15424 2003-10-27  Akim Demaille  <akim@epita.fr>
15426         * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
15427         Don't remove core.* as it may remove valid user files.
15428         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
15429         (AC_FUNC_UTIME_NULL): Likewise.
15431 2003-10-23  Akim Demaille  <akim@epita.fr>
15433         Version 2.57g.
15434         * config/config.guess, config/config.sub: Upgrade from masters.
15436 2003-10-23  Akim Demaille  <akim@epita.fr>
15438         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
15439         AC_COMPILE_IFELSE that use break skip the clean up.  So do it by
15440         hand...
15442 2003-10-23  Akim Demaille  <akim@epita.fr>
15444         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
15445         Don't forget to remove conftest.err.
15447 2003-10-23  Akim Demaille  <akim@epita.fr>
15449         * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
15450         same object file in $LIBOBJS.
15451         Reported by Alexandre Duret-Lutz & Derek Robert Price.
15452         * doc/autoconf.texi (Generic Functions): Adjust.
15454 2003-10-20  Paul Eggert  <eggert@twinsun.com>
15456         * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
15457         Use 'eval', so that the resulting configure scripts work even if
15458         the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
15460 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
15462         * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
15463         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
15464         (_AC_LINK_IFELSE): Check the werror flag.
15465         * doc/autoconf.texi (Generic Compiler Characteristics): Document
15466         AC_LANG_WERROR.
15467         * NEWS: Mention it.
15469 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
15471         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
15472         _AC_COMPILER_EXEEXT to attempt a link.  If linking fails,
15473         override AC_LINK_IFELSE.
15475 2003-10-15  Paul Eggert  <eggert@twinsun.com>
15477         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
15478         pdksh 5.2.14.  Bug reported by Ralf Corsepius.
15479         * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
15480         Mention /usr/dt/bin/dtksh on Solaris.
15481         (Shell Substitutions): Warn about $((...)).
15482         (Parentheses): New section.
15484 2003-10-15  Kevin Ryde  <user42@zip.com.au>
15486         * doc/autoconf.texi (Function Portability): Add @prindex for exit.
15487         Add putenv and unsetenv.  Add sysconf _SC_PAGE_SIZE.
15489 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
15491         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
15492         cross test.
15494 2003-10-11  Steven G. Johnson  <stevenj@alum.mit.edu>
15496         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
15497         name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
15499 2003-10-10  Andreas Schwab  <schwab@suse.de>
15501         * bin/autoheader.in: Avoid empty first line in --version and
15502         --help output.
15503         * bin/ifnames.in: Likewise.
15505 2003-10-09  Paul Eggert  <eggert@twinsun.com>
15507         * lib/Autom4te/XFile.pm: Don't assume -j is solo.
15508         Issue a more-informative diagnostic.
15509         Problems reported by Eric Sunshine.
15511 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
15513         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
15514         -mGLOB_options_string stuff for Intel ifc, which can cause
15515         _AC_FC_LIBRARY_LDFLAGS to fail.  Use (faster) case for
15516         pattern-matching instead of grep.
15518 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
15520         * doc/autoconf.texi: Document new FC Fortran macros.
15522 2003-10-08  Gary V. Vaughan  <gary@gnu.org>
15524         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
15525         that future autopoint/aclocal/automake/autoreconf will be able
15526         to trace to find where to install local m4 macros.
15527         * doc/autoconf.texi (Input): Document it.
15528         * NEWS: Updated.
15530 2003-10-06  Gary V. Vaughan  <gary@gnu.org>
15532         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
15533         -lcrtbegin.o to list of ignored flags and fix underquoting of
15534         -lcrt[01].o.
15536 2003-10-04  Steven G. Johnson  <stevenj@ab-initio.mit.edu>
15538         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
15539         cache variable instead of $G77 to decide whether to include -O2,
15540         since $G77 is specific to Fortran 77.
15542 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
15544         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
15545         free" flag.  Re-order flags tested into rough order of popularity.
15547 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
15549         * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
15550         arguments so that it can be used with syntax identical to
15551         AC_PROG_F77, and so that we can more easily decide to
15552         remove/deprecate the DIALECT optional argument in the future if it
15553         proves troublesome.
15554         (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
15555         non-freeform-supporting compilers.  Document freeform flags.
15557 2003-10-03  Akim Demaille  <akim@epita.fr>
15559         * configure.ac: Look for emacs, not macs.
15560         Reported by Eric Sunshine.
15562 2003-10-03  Akim Demaille  <akim@epita.fr>
15564         * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
15565         * bin/autoreconf.in (autoreconf_current_directory): Create the
15566         AUX_DIR if needed, for sake of automake --add-missing etc.
15567         Suggested by Alexandre Duret-Lutz.
15569 2003-10-03  Akim Demaille  <akim@epita.fr>
15571         * configure.ac: Quotation and formatting changes.
15572         (EMACS): Don't set it if it is not recent enough to support
15573         autoconf-mode.el.
15574         From Eric Sunshine.
15576 2003-10-02  Akim Demaille  <akim@epita.fr>
15578         * bin/ifnames.in (&scan_file): Skip C++ comments.
15579         From Jeremy Yallop.
15581 2003-10-01  Pavel Roskin  <proski@gnu.org>
15583         * doc/autoconf.texi (Particular Structure Checks):
15584         Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
15586 2003-10-01  Akim Demaille  <akim@epita.fr>
15588         Version 2.57f.
15590 2003-09-30  Paul Eggert  <eggert@twinsun.com>
15592         * lib/Autom4te/XFile.pm: Use Errno.
15593         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
15594         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
15596 2003-09-30  Akim Demaille  <akim@epita.fr>
15598         * config/announce-gen (&print_news_deltas): Extracted from...
15599         (&print_changelog_deltas): here.
15600         (&news_file): Rename as...
15601         (@news_file): this.
15603 2003-09-30  Nicolas Joly  <njoly@pasteur.fr>
15605         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
15606         have been created when invoking the compiler.
15607         * tests/fortran.at (GNU Fortran 77): Quote $G77.
15609 2003-09-29  Akim Demaille  <akim@epita.fr>
15611         Version 2.57e.
15613         * config/mkinstalldirs: Upgrade.
15615 2003-09-28  Paul Eggert  <eggert@twinsun.com>
15617         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
15618         Problem reported by Lars J. Aas in
15619         <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
15620         (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
15621         "test -d ./-p && rmdir ./-p".  Suggested by Andreas Schwab in:
15622         http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
15624 2003-09-26  Akim Demaille  <akim@epita.fr>
15626         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
15627         directory for AC_CONFIG_COMMANDS' first argument exists.
15628         This makes valid the invocation of _AC_SRCPATH that follows.
15629         Reported by Eric Sunshine.
15630         * doc/autoconf.texi (Configuration Commands): Adjust.
15632 2003-09-26  Akim Demaille  <akim@epita.fr>
15634         * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
15635         Reported by Ralf Corsepius.
15637 2003-09-26  Akim Demaille  <akim@epita.fr>
15639         * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
15640         arguments.
15641         Actually, use AU_ALIAS.
15642         From Bruno Haible.
15644 2003-09-26  Paul Eggert  <eggert@twinsun.com>
15646         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
15647         rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
15648         Problem reported by Eric Sunshine in:
15649         http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
15651 2003-09-26  Akim Demaille  <akim@epita.fr>
15653         The test suite are sometimes assigning timings incorrectly.
15654         Reported by Henk Krus.
15655         Diagnosed by Nicolas Joly.
15657         * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
15658         AT_help_all.
15659         Instead of making AT_help a sequence of assignments to grow
15660         $at_help_all, just make AT_help_all be the growing contents of
15661         $at_help_all, and make a single assignment in...
15662         (AT_INIT): here.
15663         (at_times_skip): Flip the meaning and rename as...
15664         (at_times_p): this.
15665         (AT_INIT): When summarizing the test that ran, remove
15666         $at_times_file after use, and check it is present before trying to
15667         use it.
15669 2003-09-25  Akim Demaille  <akim@epita.fr>
15671         Version 2.57d.
15673         * bin/Makefile.am (edit): Handle '@configure_input@'.
15674         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
15675         (ifnames): chmod -w.
15676         * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
15677         executables, not bin/ executables!  Otherwise all the magic needed
15678         to find non installed files is turned off.  This caused a failure
15679         of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
15680         as found in its environment (sent by tests/autoreconf): pointing
15681         to bin/autom4te that could not find its files.
15682         * tests/mktests.sh: Force the replacement of generated files, for
15683         the sake of "mv" program that are interactive when overwriting a
15684         -w file.
15685         * config/install-sh: Upgrade from CVS Automake.
15687 2003-09-23  Paul Eggert  <eggert@twinsun.com>
15689         * doc/autoconf.texi (Limitations of Builtins): Document test -h
15690         versus test -L issues.
15692 2003-09-23  Daniel Jacobowitz  <drow@mvista.com> and
15693             Paul Eggert  <eggert@twinsun.com>
15695         Trivial change to support GCC's configuration procedure.
15696         * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
15697         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
15698         about inconsistency if the preprocessor is set to give errors for
15699         any warning.
15700         * doc/autoconf.texi (C Compiler Characteristics): Document this.
15702 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
15704         * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
15705         and XFile.pm from Automake.
15706         * lib/Autom4te/XFile.pm: Update from Automake.
15708 2003-09-12  Akim Demaille  <akim@epita.fr>
15710         Version 2.57c.
15712 2003-09-12  Akim Demaille  <akim@epita.fr>
15714         * config/config.guess, config/config.sub, config/missing,
15715         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
15716         from masters.
15718 2003-09-12  Akim Demaille  <akim@epita.fr>
15720         * doc/autoconf.texi (Header Portability): Promote linux/types.h,
15721         not asm/types.h.
15723 2003-09-11  Akim Demaille  <akim@epita.fr>
15725         * doc/autoconf.texi (Header Portability): linux/random.h.
15726         From Peter Hendrickson.
15728 2003-09-10  Akim Demaille  <akim@epita.fr>
15730         * tests/mktests.sh (au_exclude_egrep): Make it harder to be
15731         willing to edit the output files.
15733 2003-09-10  Akim Demaille  <akim@epita.fr>
15735         * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
15736         and AC_FC_FREEFORM.
15737         * tests/mktests.sh: Skip AC_FC_SRCEXT.
15738         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
15740 2003-09-09  Akim Demaille  <akim@epita.fr>
15742         * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
15743         Reported by Gary Vaughan.
15744         * bin/autom4te.in (handle_m4): Likewise.
15746 2003-09-09  Akim Demaille  <akim@epita.fr>
15748         * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
15749         trailing files.
15751 2003-09-07  Paul Eggert  <eggert@twinsun.com>
15753         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
15754         Improve the accuracy of the wording about obsolescence.
15755         From a suggestion by Ian Lance Taylor in
15756         <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
15758 2003-09-05  Paul Eggert  <eggert@twinsun.com>
15760         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
15761         for the benefit of g77 3.2.  Fix suggested by Steven G. Johnson.
15763 2003-09-04  Akim Demaille  <akim@epita.fr>
15765         * tests/mktests.sh (ac_exclude_list): Fix the filtering of
15766         AC_FUNC_WAIT3.
15768 2003-09-04  Akim Demaille  <akim@epita.fr>
15770         * bin/autom4te.in: Use &fatal where more appropriate than &error.
15771         (freeze): When exiting, use $exit_code.
15772         * lib/autoconf/fortran.m4: Comment changes.
15774 2003-09-04  Akim Demaille  <akim@epita.fr>
15776         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
15778 2003-09-02  Steven G. Johnson  <stevenj@alum.mit.edu>
15780         Add support for newer Fortran dialects.  The F77 interface is
15781         unchanged, and continues to support Fortran 77.  New FC macros
15782         correspond to all the old F77 macros, with output variables FC,
15783         FCFLAGS, and FCLIBS.  AC_PROG_FC defaults to picking the newest
15784         available dialect, but older dialects can be specified.  There are
15785         new macros AC_FC_SRCEXT to set the source extension, and
15786         AC_FC_FREEFORM to accept free-form source files.
15788         * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
15789         New macros.
15790         (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
15791         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
15792         _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
15793         _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
15794         AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
15795         AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
15796         _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
15797         _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
15798         AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
15799         _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
15800         AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
15801         _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
15802         AC_FC_SRCEXT, AC_FC_FREEFORM):
15803         New macros.
15804         (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
15805         AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
15806         AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
15807         Rewrite in terms of the above.
15808         (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
15809         * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
15810         * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
15811         AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
15813 2003-09-02  Paul Eggert  <eggert@twinsun.com>
15815         * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
15816         Document problems with timestamp resolution that 'make', 'cp -p', and
15817         'touch -r' have.
15819 2003-08-27  Akim Demaille  <akim@epita.fr>
15821         * tests/m4sugar.at (cross_warning): Make sure to enable the
15822         output, so that we can track spurious m4sugar output.
15823         * tests/local.at: Require 2.57.
15824         (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
15825         are defaulted by AT_CHECK anyway.
15826         Use AT_CHECK_AUTOM4TE.
15827         * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
15828         missing dnl.
15830 2003-08-27  Akim Demaille  <akim@epita.fr>
15832         * bin/autoheader.in: Issue the "Using auxiliary..." message only
15833         when -Wobsolete is set.
15834         Set it on by default.
15835         Suggested by Klee Dienes.
15837 2003-08-27  Akim Demaille  <akim@epita.fr>
15839         * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
15840         documentation.
15841         From Guido Draheim.
15843 2003-08-26  Akim Demaille  <akim@epita.fr>
15845         * doc/autoconf.texi (Output): Make clear that one can run code
15846         after AC_OUTPUT.
15848 2003-08-25  Akim Demaille  <akim@epita.fr>
15850         * config/announce-gen, GNUmakefile, Makefile.maint: Update from
15851         CVS Bison.
15853 2003-08-25  Alexandre Duret-Lutz  <adl@gnu.org>
15855         * bin/autoreconf.in (parse_args): Do not pass --no-force to
15856         Automake versions prior to 1.8.
15858 2003-08-25  Akim Demaille  <akim@epita.fr>
15860         * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
15861         From Ville Karaila.
15863 2003-08-24  Akim Demaille  <akim@epita.fr>
15865         * configure.ac: Bump to 2.57c.
15867 2003-08-22  Akim Demaille  <akim@epita.fr>
15869         Version 2.57b.
15871         * Makefile.cfg (local-checks-to-skip): New.
15872         * Makefile.maint (local-check): Rename as...
15873         (local-checks-available): this.
15874         (local-check): New.
15876         * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
15877         * configure.ac: Require Automake 1.7.6.
15879 2003-08-22  Akim Demaille  <akim@epita.fr>
15881         Output stack traces in warnings.
15883         * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
15884         Replace the former...
15885         (m4_warn): Pass the call stack to _m4_warn.
15886         * bin/autom4te.in: Adjust to output the call stack.
15887         * tests/m4sugar.at (m4@&t@_warn): Adjust.
15889 2003-08-22  Akim Demaille  <akim@epita.fr>
15891         * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
15892         * bin/autom4te.in: Adjust.
15894 2003-08-21  Akim Demaille  <akim@epita.fr>
15896         * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
15897         (&verbose): Remove.
15898         (&getopt): Adjust the note and verb channels, depending upon
15899         --verbose.
15900         * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
15901         * bin/autoupdate.in: Adjust.
15902         Use &verb, not &verbose.
15904 2003-08-21  Akim Demaille  <akim@epita.fr>
15906         * bin/autoheader.in (&parse_args): Use &parse_warnings and
15907         &parse_WARNINGS.
15908         ($help): Use Autom4te::ChannelDefs::usage.
15909         * bin/autoscan.in: Use Autom4te::ChannelDefs.
15910         * lib/Autom4te/General.pm: Don't export error: you don't own it.
15912 2003-08-21  Akim Demaille  <akim@epita.fr>
15914         First stab at preserving warnings between calls to autom4te,
15915         including when the cache is used.
15917         There are still several issues: (i) there are too many runs of m4
15918         (one for include, one for warnings, and some more), (ii) warnings
15919         spreading on several lines are not handled gracefully, (iii) the
15920         code meant to have the call stack display for errors does not work
15921         (its handling should move from m4 to autom4te).
15923         * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
15924         Use them.
15925         (@preselect): Add m4_warn.
15926         ($exit_status): Remove, use $exit_code.
15927         ($help): Use Autom4te::ChannelDefs::usage.
15928         (&handle_m4): No longer define the m4_warnings.
15929         At each run, extract and report the warnings.
15930         Always cache the result, including if the exit status is on
15931         failure, since if nothing changes, we should result in the same
15932         failure, hence we can use the cache.
15933         * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
15934         (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
15935         Remove.
15936         (m4_warn): Redefine as a do-nothing: it is its invocation that
15937         matters, as warnings are now reported via traces.
15938         * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
15939         the contents of m4_warn: make it _call_ m4_warn, so that tracing
15940         the latter reveals calls to the former.
15942         Adjust the tests.
15944         * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
15946 2003-08-21  Akim Demaille  <akim@epita.fr>
15948         * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
15949         Use them.
15951 2003-08-21  Akim Demaille  <akim@epita.fr>
15953         * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
15954         forward order.
15955         * lib/Autom4te/ChannelDefs.pm: Doc typos.
15956         (&parse_warnings): Accept a list of warning requests.
15957         (&usage): Return a string, not a side effect.
15958         (cross): New warning category.
15960 2003-08-21  Akim Demaille  <akim@epita.fr>
15962         * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
15963         (&require_configure_ac): Accept an optional directory argument.
15964         ($configure_ac): Remove.
15965         * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
15966         (&catfile): Remove.
15967         * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
15968         * bin/autoscan.in: Adjust.
15970 2003-08-20  Akim Demaille  <akim@epita.fr>
15972         * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
15973         Reported by Alexandre Duret-Lutz.
15975 2003-08-20  Akim Demaille  <akim@epita.fr>
15977         * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
15978         * bin/autom4te: Adjust.
15979         In particular, be Autoconf tools are really silent when properly
15980         working, bind the verbosity of the 'note' channel to $verbose.
15981         * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
15982         (&xsystem, &contents): Remove, since they are exported by...
15983         * lib/Autom4te/FileUtils.pm: this.
15984         More perldoc.
15985         * lib/Autom4te/General.pm (&up_to_date_p): Move to...
15986         * lib/Autom4te/FileUtils.pm: here.
15988 2003-08-20  Akim Demaille  <akim@epita.fr>
15990         * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
15991         * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
15992         from CVS Automake.
15994 2003-08-20  Akim Demaille  <akim@epita.fr>
15996         * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
15997         (autom4te-update): New.
15998         * Makefile.cfg (update): Bind autom4te-update.
16000 2003-08-19  Derek Price  <derek@ximbiot.com>
16002         * lib/autotest/general.m4: Comment various HELP_* diversions.
16003         (PARSE_ARGS_BEGIN): New section for option parsing related
16004         initialization.
16005         (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
16006         package specific options and associated help.
16008 2003-08-19  Akim Demaille  <akim@epita.fr>
16010         * config/announce-gen, Makefile.cfg: New.
16011         * Makefile.am: Adjust.
16012         * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
16014 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
16016         * lib/autom4te.in (Automake-preselections): Preselect
16017         AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
16018         and m4_sinclude.
16020 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
16022         * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
16023         (Autoconf-without-aclocal-m4): ... this new language.
16024         * doc/autoconf.texi (autom4te Invocation): Mention
16025         Autoconf-without-aclocal-m4.
16027 2003-08-18  Derek Price  <derek@ximbiot.com>
16029         * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
16030         RUN-IF-PASS optional arguments.
16032 2003-08-18  Derek Price  <derek@ximbiot.com>
16034         * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
16036 2003-08-16  Derek Price  <derek@ximbiot.com>
16038         * doc/autoconf.texi (Writing testsuite.at): Document defaults for
16039         STDOUT & STDERR arguments.
16041 2003-08-14  Derek Price  <derek@ximbiot.com>
16043         * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
16044         DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
16045         shorter column three.  Add DESCRIPTION to log file content.
16047 2003-08-13  Derek Price  <derek@ximbiot.com>
16049         * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
16050         output.
16052 2003-08-12  Derek Price  <derek@ximbiot.com>
16054         * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
16055         (AT_CHECK_NOESCAPE): Move core functionality to...
16056         (_AT_CHECK): ...this new macro.
16058 2003-08-07  Derek Price  <derek@ximbiot.com>
16060         * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
16061         (AT_CHECK_NOESCAPE): ...to this new macro.
16063 2003-07-31  Paul Eggert  <eggert@twinsun.com>
16065         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
16066         in Bash 2.01.  Problem reported by Brian Gough in
16067         <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
16069 2003-07-25  John W. Eaton  <jwe@bevo.che.wisc.edu>
16071         * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
16072         -lcrt1.o, for OS X.  (trivial change)
16074 2003-07-07  Paul Eggert  <eggert@twinsun.com>
16076         * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
16077         inside '#ifndef __cplusplus'.  Problem reported by
16078         Bob Friesenhahn.
16080 2003-07-06  Bill Clarke  <llib@computer.org>
16082         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
16083         'long', not 'int', for benefit of Sun's recent C++ compilers
16084         (trivial change).  See:
16085         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
16086         (This really should be 'intptr_t', not 'long', but that would
16087         take more work.)
16089 2003-06-25  Akim Demaille  <akim@epita.fr>
16091         * lib/Makefile.am (autom4te.cfg): Make it read only.
16092         Depend on Makefile since it contains substitutions.
16093         From Paolo Bonzini.
16094         * lib/autom4te.in (args): Add local.at? for Autotest args.
16095         This change was made on autom4te.cfg which is generated.
16096         Reported by Raja R. Harinath.
16098 2003-06-25  Akim Demaille  <akim@epita.fr>
16100         * doc/autoconf.texi (Header Portability): sys/mount.h.
16101         From Gareth McCaughan.
16103 2003-06-23  Akim Demaille  <akim@epita.fr>
16105         * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
16106         not all of them.  This fixes 1. the fact that when testing
16107         Autoconf there are many many config.log, 2. the incorrect use of
16108         top_srcdir to find config.log.
16109         Don't mix the detailed output of failed test with the summary of
16110         failures.  Rather, append detailed log afterwards.
16112 2003-06-23  Akim Demaille  <akim@epita.fr>
16114         * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
16115         always run: output config.log on $at_group_log.
16117 2003-06-23  Akim Demaille  <akim@epita.fr>
16119         * tests/torture.at (#define header templates): Don't use quotes in
16120         C++ comments as it puzzles Emacs' sh font-lock-mode.
16122 2003-06-23  Akim Demaille  <akim@epita.fr>
16124         * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
16125         * lib/autom4te.cfg (args): Add local.at? for Autotest args.
16126         * tests/atspecific.m4: Rename as...
16127         * tests/local.at: This.
16128         * tests/suite.at: Move the globals into...
16129         * tests/local.at: here.
16130         * tests/Makefile.am: Adjust.
16131         * doc/autoconf.texi (testsuite Scripts): Adjust.
16133 2003-06-21  Kevin Ryde  <user42@zip.com.au>
16135         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
16136         error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
16137         ensuring we add -std1 for full-ANSI.
16139         * doc/autoconf.texi (hdrindex): New macro.
16140         Add index entries for portability of various standard header files.
16142 2003-06-20  Akim Demaille  <akim@epita.fr>
16144         * configure.ac: Bump to 2.57b.
16146 2003-06-20  Akim Demaille  <akim@epita.fr>
16148         Version 2.57a.
16150 2003-06-20  Akim Demaille  <akim@epita.fr>
16152         * bin/autom4te.in: Don't rely on $HOME being defined.
16153         Reported by Marc Espie as PR/233.
16155 2003-06-20  Akim Demaille  <akim@epita.fr>
16157         * lib/autotest/general.m4: Use at_times_file only if used.
16158         From Nicolas Joly.
16160 2003-06-20  Akim Demaille  <akim@epita.fr>
16162         * config/config.guess, config/config.sub, config/elisp-comp,
16163         * config/install-sh, config/mkinstalldirs, doc/standards.texi:
16164         Update from masters.
16166 2003-06-11  Paolo Bonzini  <bonzini@gnu.org>
16168         * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
16169         * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
16170         (TEST_SCRIPT): New diversion.
16171         (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
16172         (AT_CLEANUP): ...to here.  Undivert TEST_SCRIPT.
16173         (AT_INIT): Support for expected failures.
16175 2003-06-02  Akim Demaille  <akim@epita.fr>
16177         * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
16178         changes.
16179         * lib/Autom4te/General.pm (&backname): Remove, no longer used by
16180         Autoconf nor Automake.
16181         (&contents): New, from Automake.
16182         PODify.
16184 2003-05-28  Paul Eggert  <eggert@twinsun.com>
16186         * NEWS, doc/autoconf.texi (Particular Functions),
16187         lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
16188         is the inverse of localtime.
16190 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
16192         * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
16193         (handle_exec_errors): New function.  Work around $! being
16194         altered by WEXITSTATUS.
16195         (xqx, xsystem): Use handle_exec_errors.
16197 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
16199         * lib/Autom4te/General.pm (END): Rewrite exit code processing.
16200         Do not call `_exit()', simply modify `$?'.
16201         (xsystem): Reset $! before running system, and check it afterward.
16202         * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
16203         63 for version mismatches.
16205 2003-05-23  Akim Demaille  <akim@epita.fr>
16207         * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
16208         Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
16209         the middle of a line).
16210         * lib/m4sugar/m4sugar.m4: Likewise.
16211         Remove useless spaces in comments.
16213 2003-05-23  Akim Demaille  <akim@epita.fr>
16215         * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
16216         exit 63, so that we (or Automake's "missing") can tell the
16217         difference with a plain failure.
16218         * doc/autoconf.texi (Notices): Adjust.
16220 2003-05-23  Akim Demaille  <akim@epita.fr>
16222         * Makefile.am, bin/Makefile.am, config/Makefile.am,
16223         * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
16224         White spaces cleanup.
16226 2003-05-22  Jim Meyering  <jim@meyering.net>
16227             Paul Eggert  <eggert@twinsun.com>
16229         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
16230         Remove `#include <stdlib.h>' from the list; we should never
16231         make confdefs.h include <stdlib.h> or <cstdlib>, because the
16232         resulting namespace pollution would cause other tests to fail.
16233         Configure scripts run with some older versions of g++ and HP's
16234         aCC would fail due to such an #include.  Problems reported by
16235         Matthew Mueller in <http://bugs.debian.org/120704> and by
16236         Keith Bostic in
16237         <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
16238         In the test, use the test declaration before including <stdlib.h>,
16239         as that's closer to how it'll be used.
16241 2003-05-23  Akim Demaille  <akim@epita.fr>
16243         * doc/autoconf.texi (Header Portability): ucred.h.
16244         From Ian Redfern.
16246 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
16248         Overhaul Autotest's logging: generate separate log files
16249         in testsuite.dir/NNN/testsuite.log, and append them to
16250         testsuite.log instead of re-running the test verbosely.
16252         * lib/autotest/general.m4 (AT_INIT): Use a single redirected
16253         file descriptor, write 0 to at_status_file instead of setting
16254         at_status=0, initialize some new variables (at_status_file,
16255         at_group_log, at_suite_log, at_tee_pipe).  Remove the cruft
16256         to rerun the tests, instead append the at_group_log to the
16257         at_suite_log when a test fails.
16258         (AT_SETUP): pipe the test case's output into at_tee_pipe,
16259         with the AS_MESSAGE_LOG_FD redirected to stdout.
16260         (AT_CLEANUP): save the output status in $at_status_file
16261         and restore it, redirect the AS_MESSAGE_LOG_FD back to
16262         its original place.
16263         (AT_CHECK): since tests are run with a redirected stdout,
16264         and used to be re-run in verbose mode, turn some $at_verbose
16265         into echo, and don't redirect the output of testing stdout
16266         and stderr.
16268         * lib/autotest/autoconf.texi (testsuite Scripts): Update
16269         the name of the debugging directory and information about
16270         its contents.
16272 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
16274         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
16275         parameter.
16277 2003-05-22  Akim Demaille  <akim@epita.fr>
16279         * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
16280         * lib/autoconf/fortran.m4 lib/autoconf/general.m4
16281         * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
16282         * lib/autoconf/status.m4: Fix and adjust copyright notices.
16284 2003-05-22  Akim Demaille  <akim@epita.fr>
16286         * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
16287         * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
16288         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
16289         * lib/autoconf/general.m4, lib/autoconf/headers.m4,
16290         * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
16291         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
16292         * lib/autoconf/status.m4, lib/autoconf/types.m4,
16293         * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
16294         * tests/atspecific.m4, tests/base.at, tests/compile.at,
16295         * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
16296         * tests/tools.at, tests/torture.at:
16297         Whitespace clean up.
16298         Suggested by Jim Meyering.
16300 2003-05-22  Akim Demaille  <akim@epita.fr>
16302         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
16303         ' \t' as '\t ' so that Emacs' whitespace.el keep it.
16304         Reported by Jim Meyering.
16306 2003-05-22  Akim Demaille  <akim@epita.fr>
16308         * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
16309         Add AC_HELP_STRING  to the obsolete macros section.
16310         Typos.
16311         Use '@.' for sentences that ended in a capital letter.
16312         From Art Haas.
16314 2003-05-22  Akim Demaille  <akim@epita.fr>
16316         * config/config.guess, config/config.sub, config/elisp-comp,
16317         * config/install-sh, config/mdate-sh, config/mkinstalldirs,
16318         * config/texinfo.tex, doc/standards.texi: Update from masters.
16320 2003-05-21  Paolo Bonzini  <bonzini@gnu.org>
16322         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
16323         it to eval.
16325 2003-05-21  Akim Demaille  <akim@epita.fr>
16327         * bin/autoupdate.in ($m4): Fix quotation.
16328         Reported by Martin Mokrejs.
16330 2003-05-19  Paul Eggert  <eggert@twinsun.com>
16332         * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
16333         Remove non-ASCII characters.
16335 2003-05-18  Paolo Bonzini  <bonzini@gnu.org>
16337         * tests/semantics.at (AC_SEARCH_LIBS): New test.
16338         * tests/semantics.at (AC_CHECK_HEADERS_OLD,
16339         AC_CHECK_HEADERS_NEW): New tests.
16341 2003-05-17  Akim Demaille  <akim@epita.fr>
16343         * lib/autoconf/functions.m4: Use the default includes so that
16344         memcmp be declared before being tested.
16345         Reported by Sander Niemeijer.
16346         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
16347         * doc/autoconf.texi (Default Includes): Document
16348         AC_INCLUDES_DEFAULT.
16350 2003-05-17  Akim Demaille  <akim@epita.fr>
16352         * lib/autoconf/specific.m4: Include signal.h and unistd.h.
16353         * doc/autoconf.texi (Obsolete Macros): Adjust.
16354         Reported by Werner LEMBERG and Debian Bug 190886.
16356 2003-05-16  Akim Demaille  <akim@epita.fr>
16358         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
16359         user name space clashes.
16360         Reported by Bruno Haible.
16362 2003-05-16  Akim Demaille  <akim@epita.fr>
16364         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
16365         * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
16366         them uniform, and more robust to Perl special characters.
16367         Reported by Martin Mokrejs.
16369 2003-05-14  Akim Demaille  <akim@epita.fr>
16371         * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
16373 2003-05-14  Akim Demaille  <akim@epita.fr>
16375         * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
16376         linux/irda.h.
16378 2003-05-12  Akim Demaille  <akim@epita.fr>
16380         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
16381         message.
16382         From Matthias Andree.
16384 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
16386         * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
16387         and truncate.
16389 2003-05-06  Akim Demaille  <akim@epita.fr>
16391         Don't try to be smart with aclocal 1.8+ because (i) aclocal no
16392         longer updates aclocal.m4 if useless, (ii) if a file m4_included
16393         by aclocal.m4 is changed it might require the importing of another
16394         m4 extension file, i.e., aclocal must be run.
16396         * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
16397         (&parse_args): Use --force with aclocal if required and supported.
16398         (&autoreconf_current_directory): Use &run_aclocal.
16400 2003-05-06  Akim Demaille  <akim@epita.fr>
16402         Lock autom4te's cache.
16404         * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
16405         * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
16406         argument instead of a file name, so that the request file remains
16407         open during the whole autom4te run.
16408         ($icache_file): New.
16409         (&freeze): Lock the $icache_file.
16411 2003-04-29  Derek Price  <derek@ximbiot.com>
16413         * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
16414         seperator with m4_append_uniq().  It doesn't work.
16415         (AT_CLEANUP): Add `;' to end of at_help_all.
16416         (AT_INIT): Allow --keywords to be specified more than once.  When
16417         grepping $at_help_all for keywords, use the field and keyword
16418         seperators to ensure a complete keyword match.  Alter at_prev handling
16419         to support the new --keywords behavior.
16421 2003-04-27  Karl Berry  <karl@freefriends.org>
16423         * doc/autoconf.texi: Make the dir entries in the autoconf manual
16424         align better with others.  I also made some of the individual
16425         entries on one line, for brevity and to make it easier for me to
16426         sort my dir-example file in the Texinfo distribution :).
16428 2003-04-12  Jim Meyering  <jim@meyering.net>
16430         * NEWS: Mention the new macro.
16431         * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
16432         * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
16433         * tests/c.at: Test AC_C_RESTRICT.
16434         * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
16436 2003-04-08  Akim Demaille  <akim@epita.fr>
16438         * bin/ifnames.in: Skip C++ comments.
16439         From Jeremy Yallop.
16441 2003-04-08  Akim Demaille  <akim@epita.fr>
16443         * GNUmakefile (SHELL): Don't assume sh is in /bin/.
16444         From Ilya Zakharevich.
16446 2003-04-08  Akim Demaille  <akim@epita.fr>
16448         * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
16449         net/if.h, stdlib.h.
16451 2003-04-01  Derek Price  <derek@ximbiot.com>
16453         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
16454         from Akim's checkin of 2003-03-29.
16456 2003-04-01  Derek Price  <derek@ximbiot.com>
16458         * tests/torture.at (Configuring subdirectories): Add missing
16459         close-quote for Akim's change from 2003-03-28.
16461 2003-04-01  Akim Demaille  <akim@epita.fr>
16463         * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
16464         (AC, AT, MS): these.
16465         (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
16466         New.
16467         Use them.
16468         * doc/Makefile.am (CLEANFILES): Adjust.
16469         (TEXI2DVI): Make it --batch.
16471 2003-03-31  Derek Price  <derek@ximbiot.com>
16473         * lib/autotest/general.m4: Revert the checkin from 2003-03-27
16474         which removed the main loop.
16475         Thanks to Akim Demaille.
16477 2003-03-29  Akim Demaille  <akim@epita.fr>
16479         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
16480         that starts a GUI.
16481         From Ilya Zakharevich.
16483 2003-03-29  Akim Demaille  <akim@epita.fr>
16485         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
16486         documentation to read is Autoconf's.
16487         Suggested by Paul Eggert.
16489 2003-03-28  Akim Demaille  <akim@epita.fr>
16491         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
16492         reading the section "Present But Cannot Be Compiled" when the
16493         header causes problems.
16495 2003-03-28  Akim Demaille  <akim@epita.fr>
16497         * tests/torture.at (Configuring subdirectories): Require aclocal
16498         1.4, otherwise the test fails, as it does support configure.ac.
16499         This fixes the "test 40 failed" bug reports.
16501 2003-03-28  Akim Demaille  <akim@epita.fr>
16503         * doc/autoconf.texi (C Compiler): `#line' portability.
16504         From Paul Eggert and Nelson H. F. Beebe.
16506 2003-03-27  Derek Price  <derek@ximbiot.com>
16508         * lib/autotest/general.m4: Eliminate main loop and reorganize test
16509         layout in order to allow scripting around test groups.
16511 2003-03-27  Derek Price  <derek@ximbiot.com>
16513         * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
16514         HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
16515         use new diversions in preparation for accepting new arguments and
16516         allowing scripting around tests.
16517         (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
16519 2003-03-26  Derek Price  <derek@ximbiot.com>
16521         * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
16522         obsolete AC_HELP_STRING.
16523         (AC_HELP_STRING): AU_DEFUN to...
16524         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
16525         * tests/m4sh.at (AS_HELP_STRING): New test.
16527         * tests/acgeneral.at: Regenerated.
16529 2003-03-26  Derek Price  <derek@ximbiot.com>
16531         * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
16532         sense.  Verbosify the diversion definitions comment.
16534 2003-03-26  Derek Price  <derek@ximbiot.com>
16536         * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
16537         AS_PREPARE.
16539 2003-03-21  Eric Siegerman  <eric_97@pobox.com>
16541         * doc/autoconf.texi (Present But Cannot Be Compiled):
16542         Grammar fixes and minor rewording. (trivial change)
16544 2003-03-06  Paul Eggert  <eggert@twinsun.com>
16546         Work around a problem noted by Nelson H. F. Beebe with coreutils
16547         4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
16548         2002/05/09) rejects '#line 32768 "configure"' because the line
16549         number overflows.
16550         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
16551         #line directives.
16552         * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
16553         * doc/autoconf.texi (Generating Sources): Document this.
16555 2003-03-01  Richard Dawe  <rich@phekda.freeserve.co.uk>
16557         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
16558         file name for the m4 program, when it has an "exe" file extension.
16559         DJGPP's error messages include the error code in brackets -
16560         remove the error code during normalization.
16562 2003-02-28  Akim Demaille  <akim@epita.fr>
16564         * doc/autoconf.texi (Present But Cannot Be Compiled): New.
16566 2003-02-28  Alexandre Duret-Lutz  <adl@gnu.org>
16568         * doc/autoconf.texi (Limitations of Make): Remove the section
16569         about `$<' in inference rules, it was a bogus interpretation of
16570         an old Automake change.  Discuss NetBSD, FreeBSD, OpenBSD, and
16571         Tru64 make in the "target lookup" section.
16572         (Automake): Automake 1.5+ no longer requires special tools to be
16573         present on the developer's host.
16575 2003-02-26  Richard Dawe  <rich@phekda.freeserve.co.uk>
16577         * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
16578         to a shell that can handle redirection or quoting correctly.
16579         Override SHELL with the shell detected by configure.
16580         Use of $^O suggested by Tim van Holder.
16581         * bin/autom4te.in (BEGIN): Likewise.
16582         * bin/autoreconf.in (BEGIN): Likewise.
16583         * bin/autoscan.in (BEGIN): Likewise.
16584         * bin/autoupdate.in (BEGIN): Likewise.
16585         * bin/ifnames.in (BEGIN): Likewise.
16587         * bin/ifnames.in: Add final newline to help and version messages.
16589         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
16590         to cope with DOS-style absolute paths, when constructing
16591         ${ac_make}.
16593         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
16594         When constructing paths with IFS=:, quote the path. If we're
16595         constructing a DOS-style absolute path, we don't want to split it
16596         on the colon.
16598         * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
16599         in description.
16601 2003-02-25  Pavel Roskin  <proski@gnu.org>
16603         * bin/autoheader.in: Add missing newline when printing
16604         suggestion how change AC_DEFINE call.
16606 2003-02-24  Paul Eggert  <eggert@twinsun.com>
16608         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
16609         2002-09-01 patch by replacing "test -n" with "test -z".
16610         This fixes a bug found by Jeff Painter and reported by Tom Epperly in
16611         <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
16613         * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
16614         to fix a mismatch between example and discussion.
16616 2003-02-24  Kevin Ryde  <user42@zip.com.au>
16618         * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
16619         format starting with "-".
16621 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
16623         * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
16624         is not portable inside Makefile.
16626 2003-02-20  Akim Demaille  <akim@epita.fr>
16628         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
16629         compiler says yeah, but preproc says nope, compiler is right.
16630         Conversely, prompt the reader to send a bug report to the
16631         maintainers of the package, not of Autoconf.
16633 2003-02-20  Klee Dienes  <kdienes@apple.com>
16635         * bin/autoreconf.in (autoreconf_current_directory): Properly
16636         handle an empty aclocal.m4.
16638 2003-02-20  Akim Demaille  <akim@epita.fr>
16640         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
16641         $ac_prefix_program.
16642         From Larry Jones.
16644 2002-12-23  Paul Eggert  <eggert@twinsun.com>
16646         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
16647         innocuous variant befor including <limits.h> or <assert.h>.  This
16648         works around a bug reported by Albert Chin: HP-UX 11i
16649         (and earlier versions) have a <limits.h> that declares
16650         gettimeofday and many other functions.
16652 2002-12-03  Paul Eggert  <eggert@twinsun.com>
16654         Version 2.57.
16656         * NEWS, configure.ac: Update version.
16658         * doc/fdl.texi: Upgrade to FDL version 1.2.
16660         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
16661         nontrivially in main's body, so that f's external declaration is
16662         not optimized away in AIX.  This should fix the bug reported by
16663         Martin Frydl in
16664         <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
16666         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
16667         _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
16668         defined, to support freestanding compilers.  This should fix the
16669         bug reported by Momchil Velkov in
16670         <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
16672         * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
16673         arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
16674         obsolete AC_CHECK_TYPE.  The missing empty arg was reported
16675         by Simon Josefsson in
16676         <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
16678         * Makefile.maint (www-gnu): New macro.
16679         (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
16680         the location has moved.
16682 2002-12-02  Martin Frydl  <martin@systinet.com>
16684         * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
16685         \(.*\) match is too long and there is something more to be checked.
16686         <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
16688 2002-11-15  Akim Demaille  <akim@epita.fr>
16690         Version 2.56.
16692         * config/install-sh: chmod +x.
16693         From Paul Eggert.
16694         * config/move-if-change: Indenting changes.
16695         * Makefile.am (AUTOMAKE_OPTIONS): Move to...
16696         * configure.ac (AM_INIT_AUTOMAKE): here.
16697         Require 1.7.1.
16699 2002-11-14  Akim Demaille  <akim@epita.fr>
16701         Version 2.55.
16703         * config/config.guess, config/config.sub, config/install-sh:
16704         Update from masters.
16706 2002-11-14  Akim Demaille  <akim@epita.fr>
16708         * Makefile.maint: Sync with Bison, i.e.:
16709         (po-check): Scan .l and .y files instead of the
16710         .c and the .h files that they generate.  This fixes the bug
16711         reported by Tim Van Holder in:
16712         <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
16713         Look for N_ as well as for _.  Try to avoid matching #define for
16714         N_ and _.
16715         From Paul Eggert.
16717 2002-11-14  Akim Demaille  <akim@epita.fr>
16719         * doc/autoconf.texi (C Compiler): Compiling several files at once.
16720         From Paul Eggert and Albert Chin-A-Young.
16722 2002-11-14  Akim Demaille  <akim@epita.fr>
16724         * doc/autoconf.texi (C Compiler): Solitary backslashes.
16725         From Paul Eggert and Albert Chin-A-Young.
16727 2002-11-14  Kevin Ryde  <user42@zip.com.au>
16729         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
16730         than assigning in main, to avoid HP cc +O3 optimizing it away.
16732 2002-11-12  Peter Eisentraut  <peter_e@gmx.net>
16734         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
16735         option.  Process --recheck after parsing all options.  Pass -q
16736         option to configure on --recheck.
16737         (AC_OUTPUT): Pass -q from configure to config.status.
16738         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
16739         arguments to record.
16740         * doc/autoconf.texi (config.status Invocation): Document
16741         config.status -q option.
16743 2002-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
16745         * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
16746         Makefile.in if Makefile.am exists.
16747         (output): Strip `.am' from Makefiles.  Don't
16748         output AC_CONFIG_FILES if no Makefiles were found.
16750 2002-11-07  Akim Demaille  <akim@epita.fr>
16752         * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
16753         (local_updates): New.
16754         * Makefile.maint: Update, from CVS Bison.
16755         (local_updates): New.
16757 2002-11-06  Akim Demaille  <akim@epita.fr>
16759         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
16760         declaration in extern "C" too.
16761         Reported by Roberto Bagnara.
16763 2002-11-06  Akim Demaille  <akim@epita.fr>
16765         * tests/torture.at (Configuring subdirectories): Don't use grep
16766         -w.
16767         * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
16768         Reported by Ezra Peisach.
16770 2002-11-05  Akim Demaille  <akim@epita.fr>
16772         * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
16773         Remove.
16774         We _have_ to stop using the old compatibility scheme that tried to
16775         avoid useless backslashes because Libtool 1.4.3 contains a
16776         AC_DEFINE([error_t], [int],
16777         [Define to a type to use for \`error_t' if it is not
16778         otherwise available.])
16779         We _have_ to quote the single quote and backslashes with \.  The
16780         old compatibility scheme saw that ` was backslashed, and therefore
16781         did not quote the single quote.  Hence before this patch, Autoconf
16782         was not compatible with Libtool.
16784 2002-11-04  Paul Eggert  <eggert@twinsun.com>
16786         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
16787         too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
16788         LC_NAME, LC_PAPER, LC_TELEPHONE.
16789         * doc/autoconf.texi (Special Shell Variables): Mention those vars.
16791 2002-11-04  Akim Demaille  <akim@epita.fr>
16793         Version 2.54c.
16795         * Makefile.maint (update, cvs-update, po-update, do-po-update):
16796         New.
16797         * config/texinfo.tex: Update.
16799 2002-11-03  Akim Demaille  <akim@epita.fr>
16801         * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
16802         from...
16803         (&autoreconf): here.
16804         ($help, $make, &parse_args, &autoreconf_current_directory):
16805         Support -m/--make.
16806         * doc/autoconf.texi (autoreconf Invocation): Adjust.
16808 2002-10-31  Bruno Haible  <bruno@clisp.org>
16810         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
16811         Change name of cache variable to ac_cv_func_malloc_0_nonnull.
16812         (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
16813         (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
16814         to ac_cv_func_realloc_0_nonnull.
16815         (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
16817 2002-10-31  Akim Demaille  <akim@epita.fr>
16819         The test suite was no longer checking for trailing envvars and files.
16821         * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
16822         (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
16824 2002-10-31  Akim Demaille  <akim@epita.fr>
16826         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
16827         `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
16828         Make variable, not a shell variable.
16829         Suggested by Bruno Haible.
16831 2002-10-31  Akim Demaille  <akim@epita.fr>
16833         * bin/autom4te.in (load_configuration): Reject #args out of any
16834         language.
16836 2002-10-31  Akim Demaille  <akim@epita.fr>
16838         * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
16839         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
16840         (_AC_RUN_IFELSE): Use it.
16841         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
16842         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
16843         * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
16844         inline it.
16846 2002-10-30  Akim Demaille  <akim@epita.fr>
16848         * bin/autom4te.in (&parse_args, $help): Support --no-cache.
16849         * doc/autoconf.texi (autom4te Invocation): Adjust.
16850         Suggested by Tim van Holder.
16852 2002-10-29  Paul Eggert  <eggert@twinsun.com>
16854         * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
16855         AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
16856         Problem reported by Bruno Haible.
16858 2002-10-29  Akim Demaille  <akim@epita.fr>
16860         * doc/autoconf.texi (Header Templates): Put also in words what the
16861         pictures says to assist free style readers.
16862         (Customizing autom4te): s/--cache=/--cache /.
16864 2002-10-29  Akim Demaille  <akim@epita.fr>
16866         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
16867         sys/wait.h.
16868         sparc_address_test returns void.
16869         Use it with an argument, as prototyped.
16870         From Bruno Haible.
16872 2002-10-29  Akim Demaille  <akim@epita.fr>
16874         * doc/autoconf.texi (Subdirectories): Cygnus dirs have
16875         configure.in, not configure.ac.
16876         Reported by Bruno Haible.
16878 2002-10-29  Akim Demaille  <akim@epita.fr>
16880         * tests/torture.at (Deep Package): New test.
16881         (Configuring subdirectories): Don't use a testSubDir as Autotest
16882         now does it itself.
16884 2002-10-29  Akim Demaille  <akim@epita.fr>
16886         * bin/autoreconf.in (&parse_args, $help): Support --warnings.
16887         * doc/autoconf.texi (Invoking autom4te): Rename as...
16888         (autom4te Invocation): this, for consistency with the other nodes.
16890 2002-10-29  Akim Demaille  <akim@epita.fr>
16892         * lib/autom4te.in (Autoconf): s/automate/autom4te/.
16893         Reported by Ralf Corsepius.
16895 2002-10-29  Akim Demaille  <akim@epita.fr>
16897         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
16898         characters is a back as an `obsolete' warning now.
16899         Reported by Ralf Corsepius.
16901 2002-10-28  Akim Demaille  <akim@epita.fr>
16903         * configure.ac: Bump to 2.54c.
16905 2002-10-28  Akim Demaille  <akim@epita.fr>
16907         Version 2.54b.
16909         * tests/foreign.at (Libtool): Adjust to broken libtoolize.
16911 2002-10-28  Akim Demaille  <akim@epita.fr>
16913         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
16914         m4 executable names, and different GNU M4 version.
16915         Reported by Ezra Peisach and Paul Jarc.
16917 2002-10-27  Akim Demaille  <akim@epita.fr>
16919         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
16920         AC_RUN_IFELSE.
16922 2002-10-27  Akim Demaille  <akim@epita.fr>
16924         * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
16925         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
16926         Die when a simple Fortran program cannot be compiled.
16927         * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
16928         Issue a warning if no function is given.
16930 2002-10-27  Akim Demaille  <akim@epita.fr>
16932         * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
16933         Move the documentation of AC_TRY_RUN to...
16934         (Obsolete Macros): here.
16935         Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
16936         (autoconf Invocation): Remove the duplicates with `invoking
16937         autom4te'.
16938         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
16939         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
16941 2002-10-27  Akim Demaille  <akim@epita.fr>
16943         * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
16944         and AC_LANG_FUNC_LINK_TRY.
16945         (Examining Libraries): Rename as...
16946         (Running the Linker): this.
16947         Document AC_LINK_IFELSE.
16948         Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
16949         (Obsolete Macros): here.
16950         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
16951         AC_TRY_LINK_FUNC nor AC_TRY_LINK.
16952         * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
16953         * lib/autoconf/headers.m4 (AC_USG): Likewise.
16955 2002-10-27  Akim Demaille  <akim@epita.fr>
16957         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
16959         More `check config.log' messages.
16961         * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
16962         * doc/autoconf.texi (Printing Messages): Document it.
16963         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
16964         appropriate.
16965         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
16966         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
16967         (_AC_COMPILER_OBJEXT): Likewise.
16968         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
16969         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
16970         Likewise.
16971         * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
16972         Likewise.
16974         Deprecate macros with unusual interfaces.
16976         * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
16977         (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
16979         Document the new ones, and proper style.
16981         * doc/autoconf.texi (Generating Sources): New.
16982         Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
16983         (Examining Declarations): Rename as...
16984         (Running the Preprocessor): this.
16985         Document AC_PREPROC_IFELSE.
16986         (Examining Syntax): Rename as...
16987         (Running the Compiler): this.
16988         (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
16989         (Obsolete Macros): Move the definition of AC_TRY_CPP and
16990         AC_TRY_COMPILE here.
16992 2002-10-27  Akim Demaille  <akim@epita.fr>
16994         Move sections around.
16996         * doc/autoconf.texi (Customizing autom4te): Remove a lost
16997         sentence.
16998         Reported by Burno Haible.
16999         (Language Choice): Now the first section of...
17000         (Writing Tests): this section.
17001         Make the introduction less C-centric.
17002         (Guidelines, Test Functions): Move to...
17003         (Writing Test Programs): this new section.
17004         (Test Programs): Merge into...
17005         (Run Time): this.
17007 2002-10-27  Akim Demaille  <akim@epita.fr>
17009         * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
17010         autom4te.in that resulted in the need for two `make' runs.
17012 2002-10-27  Akim Demaille  <akim@epita.fr>
17014         * configure.ac: Bump to 2.54b.
17016 2002-10-25  Akim Demaille  <akim@epita.fr>
17018         Version 2.54a.
17020         * Makefile.maint: Update from the Coreutils.
17021         (AMTAR): Remove, obsolete.
17022         (automake_repo): Update to redhat.com.
17023         (cvs_file): New.
17024         Adjust to the fact that ansi2knr is now hosted by Automake.
17025         * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
17026         * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
17027         Update from masters.
17028         * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
17029         autoscan.pre is not to be installed, and autoscan.list is not to
17030         be shipped.
17031         (CLEANFILES): Add autoscan.list.
17032         (autoscan.list): Disable the cache.
17033         * bin/Makefile.am: Include freeze.mk.
17035 2002-10-25  Akim Demaille  <akim@epita.fr>
17037         * bin/autom4te.in (&load_configuration): Take the file as
17038         argument.
17039         (&parse_args): Handle -C, --cache.
17040         ($help): Adjust.
17041         (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
17042         * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
17043         * doc/autoconf.texi (Invoking autom4te): Document --cache.
17044         Now a subsection of...
17045         (Using autom4te): This new section.
17046         (Customizing autom4te): New.
17047         (autom4te.cache): Adjust.
17049 2002-10-25  Akim Demaille  <akim@epita.fr>
17051         * doc/autoconf.texi (Generic Headers): More information on how to
17052         use AC_CHECK_HEADERS.
17054 2002-10-25  Akim Demaille  <akim@epita.fr>
17056         * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
17057         Space changes.
17059 2002-10-25  Akim Demaille  <akim@epita.fr>
17061         * bin/autoscan.in (output): Output AC_PREREQ.
17062         (%needed_macros): Add AC_PREREQ so that configure.ac without one
17063         be reported.
17065 2002-10-23  Akim Demaille  <akim@epita.fr>
17067         * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
17068         document _Bool.
17070 2002-10-23  Akim Demaille  <akim@epita.fr>
17072         * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
17073         Reported by Peter Eisentraut.
17075 2002-10-23  Akim Demaille  <akim@epita.fr>
17077         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
17078         type _Bool.
17079         Fix a typo.
17080         * doc/autoconf.texi (Particular Headers): Adjust according to Paul
17081         Eggert's recommandations.
17083 2002-10-22  Akim Demaille  <akim@epita.fr>
17085         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
17086         Bison, by Paul Eggert.
17087         * doc/autoconf.texi (Particular Headers): Document it.
17089 2002-10-22  Aaron M. Ucko  <amu@alum.mit.edu>
17091         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
17092         `$ac_configure_args'.
17094 2002-10-22  Akim Demaille  <akim@epita.fr>
17096         * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
17097         (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
17098         From Art Haas.
17100 2002-10-22  Akim Demaille  <akim@epita.fr>
17102         Restore the 2002-10-11  Akim Demaille  <akim@epita.fr> patch:
17104         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
17105         (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
17106         (_AC_CHECK_HEADER_NEW): Rename as...
17107         (AC_CHECK_HEADER): this.
17109 2002-10-22  Akim Demaille  <akim@epita.fr>
17111         * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
17112         words about HP-UX cmp: it was actually a user-written cmp.
17114 2002-10-22  Akim Demaille  <akim@epita.fr>
17116         * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
17117         are a few warnings.
17118         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
17119         Quote for Perl '' strings, not "".
17120         * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
17121         strings.
17123 2002-10-22  Akim Demaille  <akim@epita.fr>
17125         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
17126         characters is a syntax warning now.
17127         (_AS_QUOTE): Accept $2 as list of characters to quote.
17128         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
17129         Quote for Perl, not sh.
17130         * bin/autoheader.in: When $debug, report the file which is
17131         `do'ne.
17132         * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
17133         `@', to tickle Perl's lists.
17134         Reported by Carlos Velasco.
17136 2002-10-18  Akim Demaille  <akim@epita.fr>
17138         * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
17139         missing included files _are_ errors.
17140         Thanks to Alexandre Duret-Lutz.
17141         * tests/tools.at (autom4te cache): Adjust.
17142         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
17143         (AT_CHECK_M4SUGAR): Use it.
17144         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
17145         Adjust.
17146         * tests/tools.at (autom4te): Now it does exit 1.
17148 2002-10-17  Akim Demaille  <akim@epita.fr>
17150         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
17151         Fixes the `AC_ARG_VAR' test failures.
17152         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
17153         * lib/freeze.mk (check-forbidden-patterns): New.
17154         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
17155         * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
17156         * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
17157         /dev/null.
17158         Reported months ago by H. Merijn Brand.
17160 2002-10-17  Akim Demaille  <akim@epita.fr>
17162         * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
17164 2002-10-16  Paul Eggert  <eggert@twinsun.com>
17166         * Makefile.maint (wget_files): Remove ansi2knr.c.
17167         (ansi2knr.c-url_prefix): Remove.
17169 2002-10-16  Akim Demaille  <akim@epita.fr>
17171         Because of caching, some files that no longer exist and are no
17172         longer required can still cause errors.
17173         Reported by Alexandre Duret-Lutz.
17175         * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
17176         to frozen files in @ARGV, as @ARGV must remain being a list of
17177         files.  Rather, at M4 call sites, use this...
17178         (&files_to_options): New function.
17179         (&freeze): Use &error.
17180         (&up_to_date): If a file that was included according to the cache
17181         is no longer there, then the output is out dated.
17182         (&main): Don't even check whether a file is up to date is anyway
17183         --force is given.
17184         * tests/tools.at (autom4te cache): New.
17186 2002-10-16  Akim Demaille  <akim@epita.fr>
17188         * bin/autoconf.as: Kill dead options.
17189         * bin/autoupdate.in (&parse_args): Kill old options.
17190         * bin/autoreconf.in (&parse_args): Remove dead options.
17191         Factor some code.
17192         (&autoreconf): Report the directories we enter *and leave*, so
17193         that error messages can be easily located, and use GNU Make
17194         format, so that Emacs' compile mode understands us.
17195         * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
17196         if some file was changed instead of `print'.
17197         * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
17198         (&parse_args): Remove the dead options.
17199         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
17200         autoheader's quiet mode.
17201         (AT_CHECK_AUTOUPDATE): Likewise.
17202         * tests/tools.at (autoupdate): Adjust.
17203         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
17205 2002-10-11  Akim Demaille  <akim@epita.fr>
17207         No longer use CPP to check for the existing of headers: use CC to
17208         check for compilability.
17210         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
17211         (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
17212         (_AC_CHECK_HEADER_NEW): Rename as...
17213         (AC_CHECK_HEADER): this.
17215         * lib/autotest/general.m4 (AT_INIT): Include the failed test
17216         numbers in the Subject suggestion.
17218 2002-10-11  Akim Demaille  <akim@epita.fr>
17220         * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
17221         Suggest using AC_CHECK_DECLS instead.
17223 2002-10-11  Akim Demaille  <akim@epita.fr>
17225         * tests/torture.at (AC_ARG_VAR): Have configure report the value
17226         of `precious'.
17228 2002-10-11  Akim Demaille  <akim@epita.fr>
17230         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
17231         file name to enable parallel executions.
17232         From Sam Varshavchik.
17234 2002-10-08  Akim Demaille  <akim@epita.fr>
17236         * bin/autoreconf.in (&autoreconf): Run autopoint before the first
17237         aclocal invocation, as Gettext macros might not be visible to
17238         aclocal.
17239         Instead of blindly running autopoint, scan configure.ac (not the
17240         traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
17241         Reported by Paul D. Smith.
17243 2002-10-08  Paul Eggert  <eggert@twinsun.com>
17245         Work around problems found when POSIXLY_CORRECT=1 is set.
17246         None of this seems to have anything to do with POSIX, really,
17247         but it's how Perl getopt works.
17248         * bin/autom4te.in (parse_args): Configure GetOpt with
17249         "permute", too.
17250         * doc/autoconf.texi (Invoking autom4te):
17251         --warning -> --warnings.
17252         * lib/autom4te.in: --warning -> --warnings.
17254 2002-09-28  Akim Demaille  <akim@epita.fr>
17256         * doc/autoconf.texi (autom4te.cache): New section.
17258 2002-09-28  Akim Demaille  <akim@epita.fr>
17260         * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
17261         (Automake-preselections): Update.
17262         * bin/autoreconf.in, bin/autoheader.in: Comment changes.
17264 2002-09-28  Akim Demaille  <akim@epita.fr>
17266         * lib/autoscan/autoscan.pre: Move all the remaining rules to...
17267         * lib/autoconf/c.m4, lib/autoconf/functions.m4,
17268         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
17269         * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
17271 2002-09-28  Akim Demaille  <akim@epita.fr>
17273         * tests/torture.at (Configuring subdirectories): Be robust to
17274         users who use config.site to require for a cache: in this case,
17275         the two last configure runs, using two different sets of
17276         arguments, trigger a legitimate error.
17278 2002-09-28  Akim Demaille  <akim@epita.fr>
17280         * tests/m4sh.at (Functions Support, Functions and return Support):
17281         New.
17283 2002-09-28  Akim Demaille  <akim@epita.fr>
17285         * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
17286         autoheader are Perl programs.
17287         (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
17288         (autom4te): Specify that the sources are in the $srcdir.
17289         * doc/autoconf.texi (Installation Directory Variables): Adjust.
17291 2002-09-28  Akim Demaille  <akim@epita.fr>
17293         * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
17294         (tm_zone): Move their rules to...
17295         * lib/autoconf/types.m4: here, using AN_ macros.
17296         * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
17297         (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
17298         (make, mawk, nawk, ranlib, yacc): Similarly, move to...
17299         * lib/autoconf/programs.m4: here.
17300         * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
17301         (ETAGS_FOR_AUTOCONF): New.
17302         Use it.
17304 2002-09-28  Akim Demaille  <akim@epita.fr>
17306         * lib/autoconf/autoscan.m4: New file.
17307         * lib/autoconf/autoconf.m4: Include it.
17308         * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
17309         that were listed in the original autoscan.list.
17310         * lib/autoconf/headers.m4: Similarly with headers.
17311         * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
17312         (.m4.m4f): Don't pass --prepend-include, since that's done by
17313         tests/autom4te itself.
17314         * lib/autoscan/Makefile.am: Include freeze.mk.
17315         (autoscan.list): New target --this file is no longer a source.
17316         (autoscan.pre): New file.
17318 2002-09-28  Akim Demaille  <akim@epita.fr>
17320         * bin/autoscan.in (@kinds): Make them singular.
17321         Adjust all uses.
17322         (&init_tables): When --debug, report the list of rules to ease
17323         tracking changes in autoscan.list.
17324         * lib/autoscan/autoscan.list (function): Strip comments, sort.
17326 2002-09-28  Akim Demaille  <akim@epita.fr>
17328         * lib/autoscan/functions, lib/autoscan/headers,
17329         * lib/autoscan/identifiers, lib/autoscan/makevars,
17330         * lib/autoscan/programs: Merge into...
17331         * lib/autoscan/autoscan.list: this.
17332         * bin/autoscan.in (&init_tables): Adjust.
17334 2002-09-28  Akim Demaille  <akim@epita.fr>
17336         * lib/autoscan/functions, lib/autoscan/headers,
17337         * lib/autoscan/identifiers, lib/autoscan/makevars,
17338         * lib/autoscan/programs: Make the `kind' explicit, i.e., each
17339         `functions' line is now prefixed with `function:'.
17340         * bin/autoscan.in (&init_tables): Adjust.
17342 2002-09-28  Akim Demaille  <akim@epita.fr>
17344         From now on, autoscan files must always map a macro name to a
17345         word: there is no `default' macro for autoscan.
17347         * bin/autoscan.in (&init_tables): Reject entries with no macro at
17348         all.
17349         * lib/autoscan/functions, lib/autoscan/headers: Make the macro
17350         explicit.
17352 2002-09-28  Akim Demaille  <akim@epita.fr>
17354         * bin/autoscan.in (%c_keywords): Remove.
17355         (&used): Keep only track of the words we might be interested in.
17356         (&output_kind): It is no longer needed to look for non active
17357         checks.
17359 2002-09-27  Akim Demaille  <akim@epita.fr>
17361         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
17362         jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
17363         * lib/autoscan/functions: Adjust.
17364         * doc/autoconf.texi (Particular Functions): Adjust.
17366 2002-09-27  Akim Demaille  <akim@epita.fr>
17368         * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
17369         from /tmp.
17370         Thanks to Bill Moseley and Paul Eggert.
17371         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
17372         the tmpdir must be created.
17373         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
17374         dir be in the build tree, instead of $TMPDIR.
17376 2002-09-27  Akim Demaille  <akim@epita.fr>
17378         * bin/autoscan.in: Improve the comments.
17379         (&parse_args): Drop obsolete undocumented options.
17380         (&output_kind): Output warnings.
17381         * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
17382         (getwd): Trigger a warning.
17384 2002-09-26  Akim Demaille  <akim@epita.fr>
17386         * bin/autoreconf.in: Clarify that -s is meaningless without -i.
17387         Reported by Ralf Corsepius.
17388         * doc/autoconf.texi (autoreconf Invocation): Likewise.
17390 2002-09-26  Akim Demaille  <akim@epita.fr>
17392         Single suffix rules and seperated dependencies are not portable.
17394         * doc/autoconf.texi (Installation Directory Variables): Update.
17395         (Limitations of Make): Some about `Single Suffix Rules and
17396         Separated Dependencies'.
17397         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
17398         (ifnames, autoscan, autom4te): Un-factor into several rules.
17400 2002-09-25  Paul Eggert  <eggert@twinsun.com>
17402         * BUGS (Interoperability bugs): New section.  Mention libtool
17403         1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
17405 2002-09-24  Paul Eggert  <eggert@twinsun.com>
17407         Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
17408         make handles suffix-rules differently from GNU make.
17410         * bin/Makefile.am (SUFFIXES, .in): Remove.
17411         (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
17412         Move the body of the old .in rule here.
17414 2002-09-16  Akim Demaille  <akim@epita.fr>
17416         i960 compilers create `b.out' files by default.
17417         Reported by Ralf Corsepius.
17419         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
17420         (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
17422 2002-09-13  Paul Eggert  <eggert@twinsun.com>
17424         * doc/autoconf.texi (Particular Headers): Remove obsolete
17425         reference to `struct timezone' in the description of
17426         AC_HEADER_TIME.
17428 2002-09-13  Akim Demaille  <akim@epita.fr>
17430         Version 2.54.
17432         * config/config.sub, config/config.guess: Update.
17433         * Makefile.maint: Update from bits of the Coreutils 4.5.1.
17434         * Makefile.am: Adjust.
17436 2002-09-13  Akim Demaille  <akim@epita.fr>
17438         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
17439         reading config.log when the compiler is rejected.
17440         Suggested by Guido Draheim.
17442 2002-09-13  Akim Demaille  <akim@epita.fr>
17444         * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
17445         (chdir_init) might hang when stat'ing mounted directories.
17446         Reported by Vance Shipley.
17448 2002-09-12  Akim Demaille  <akim@epita.fr>
17450         * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
17451         the lists.
17453 2002-09-12  Akim Demaille  <akim@epita.fr>
17455         * doc/autoconf.texi (Defining Symbols): Present two different
17456         prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
17457         difference between 1 argument calls, and 2-3 argument calls.
17459 2002-09-12  Peter Eisentraut  <peter_e@gmx.net>
17461         * doc/autoconf.texi: Review grammar and punctuation.
17463 2002-09-11  Paul Eggert  <eggert@twinsun.com>
17465         * doc/autoconf.texi: Fix minor formatting, spelling, and
17466         grammatical typos.
17467         (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
17468         AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
17469         is obsolescent.
17471 2002-09-11  Akim Demaille  <akim@epita.fr>
17473         * doc/autoconf.texi (Questions): Rename as...
17474         (FAQ): this.
17475         (Defining Directories): New.
17477 2002-09-09  Akim Demaille  <akim@epita.fr>
17479         * doc/autoconf.texi (Making testsuite Scripts): Update.
17480         Suggested by Nishio Futoshi.
17482 2002-09-09  Koji Arai  <JCA02266@nifty.ne.jp>
17484         * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
17485         plain `@' is wanted.
17487 2002-09-09  Akim Demaille  <akim@epita.fr>
17489         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
17490         `duplicates', since the algorithm was too naive and could keep
17491         `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
17492         keep `--prefix foo --prefix bar' as `--prefix foo bar'.
17493         Reported by Ralf Corsepius.
17494         * tests/torture.at (Configuring subdirectories): Exercise these
17495         cases.
17497 2002-09-09  Akim Demaille  <akim@epita.fr>
17499         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
17500         looking for a replacement file.
17501         * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
17502         directory is relative.
17503         * doc/autoconf.texi (Generic Functions): Clarify the replacement
17504         directory definition.
17505         Reported by Andreas Schwab and Jim Meyering.
17507 2002-09-06  Akim Demaille  <akim@epita.fr>
17509         * doc/autoconf.texi (Setting Output Variables): Clarify what
17510         precious variables are.
17511         Suggested by Pontus Skoeld.
17513 2002-09-05  Akim Demaille  <akim@epita.fr>
17515         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
17516         (ifnames, autoscan, autom4te): Since we don't only depend on
17517         configure.ac variables (such as VERSION etc.), but also on prefix
17518         and so forth, depend on Makefile, not configure.ac.
17519         Reported by Alexandre Duret-Lutz.
17520         * doc/autoconf.texi (Installation Directory Variables): Adjust.
17522 2002-09-05  Kevin Ryde  <user42@zip.com.au>
17524         * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
17525         doesn't seem to be confined to ia64, just say "some versions".
17527 2002-09-04  Akim Demaille  <akim@epita.fr>
17529         * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
17530         Automake 1.6c.
17531         * Makefile.am (maintainer-clean-local): Remove.
17532         (MAINTAINERCLEANFILES): Remove COPYING.
17534 2002-09-03  Paul Eggert  <eggert@twinsun.com>
17536         * doc/autoconf.texi (Configuration Commands): Remove obsolete
17537         example for AC_CONFIG_COMMANDS_PRE.  Problem reported by Marcus
17538         Brinkmann.
17540 2002-09-03  Akim Demaille  <akim@epita.fr>
17542         * configure.ac: Bump to 2.53d.
17543         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
17544         as of today, on Automake's team suggestion.
17546 2002-09-03  Akim Demaille  <akim@epita.fr>
17548         Version 2.53c.
17550 2002-09-02  Akim Demaille  <akim@epita.fr>
17552         * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
17553         SITE_MACRO_DIR.
17554         * configure.ac: Disable SITE_MACRO_DIR.
17556 2002-09-02  Jim Meyering  <meyering@lucent.com>
17558         * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
17559         i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
17560         Also, tweak grammar: s/make sure to/be sure to/.
17562 2002-09-02  Paul Eggert  <eggert@twinsun.com>
17564         * doc/autoconf.texi (Limitations of Builtins): Explain why logical
17565         directory names are generally preferable to physical names.
17567 2002-09-02  Akim Demaille  <akim@epita.fr>
17569         * lib/Autom4te/General.pm (&update_file): s/die/error/.
17570         Reported by Raja R. Harinath.
17571         * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
17572         * bin/autoupdate.in: Use error instead of die.
17574 2002-09-01  Paul Eggert  <eggert@twinsun.com>
17576         * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
17577         ordinary shell concatenation rather than echo+tr+sed command that
17578         runs afoul of a long-line-related sed bug in Solaris 8.
17580         * bin/autoheader.in (parse_args): --warning -> --warnings.
17582         * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
17583         stdout, as traditional "ls" does.
17584         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
17585         _AC_COMPILER_EXEEXT_O): Likewise.
17586         * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
17588         * bin/autoconf.as: Add --prepend-include option.  This patch was
17589         applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
17590         but bin/autoconf.in is generated automatically from bin/autoconf.as.
17592         * bin/autoconf.in, configure: Regenerate.
17594         * doc/autoconf.texi (Special Shell Variables): Mention
17595         ENV, MAIL, MAILPATH, PS1, PS2, PS4.  Index PWD.
17597         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
17598         MAILPATH and set PS1, PS2, PS4 to default values, to work
17599         around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
17600         For LC_ALL etc, first try to set to "C" as POSIX requires and as
17601         the Autoconf documentation specifies; fall back to "unset" only if
17602         this fails.  Use a shell for-loop for this rather than an m4 loop,
17603         to shorten the output script.
17605 2002-08-30  Paul Eggert  <eggert@twinsun.com>
17607         * doc/autoconf.texi (Special Shell Variables): Mention POSIX
17608         1003.1-2001's requirements for CDPATH.  Give a simpler workaround
17609         for the CDPATH problem.  Document PWD.
17610         (Limitations of Builtins): Document the problem that "cd $foo" and
17611         "ls $foo" may refer to different directories in shells conforming
17612         to POSIX 1003.1-2001.  Use PS1 rather than CDPATH for "unset"
17613         example, since the old example is now out of date.
17615         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
17616         FOO" and "ls FOO" talk about different directories; this catches
17617         problems when POSIX 1003.1-2001 "cd" fails due to symlink
17618         spaghetti.
17620         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
17621         of rolling our own unset.
17622         (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
17623         in practice we needn't worry about CDPATH if unset doesn't work.
17625         * Makefile.in, aclocal.m4, bin/Makefile.in,
17626         config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
17627         lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
17628         lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
17629         lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
17630         tests/Makefile.in: Regenerate with Automake 1.6.3.
17632         * config/config.guess, config/config.sub, config/mkinstalldirs:
17633         Update.
17635         * configure: Regenerate with self.
17637 2002-08-30  Kevin Ryde  <user42@zip.com.au>
17639         * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
17640         default output.
17642 2002-08-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17644         * bin/autom4te.in (Request::load): Correctly test for "do" read
17645         failure.
17647 2002-08-29  Akim Demaille  <akim@epita.fr>
17649         * lib/Autom4te/General.pm (&xqx): New.
17650         (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
17651         hand, which is not portable.
17652         (&error): New.
17653         * bin/autom4te.in: Use them.
17654         Use &error instead of die.
17655         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
17656         Adjust.
17658 2002-08-17  Paul Eggert  <eggert@twinsun.com>
17660         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
17661         default list of compilers to try, since it was long ago superseded
17662         by the ksh fc builtin.  Suggested by Steven G. Johnson.
17664 2002-07-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
17666         * doc/autoconf.texi (Invoking autom4te): End the option table,
17667         fixing a bug introduced by the previous patch.
17668         (Limitations of Make): Add a 'target lookup' subentry in the
17669         'VPATH' entry.  Rewrite all `make' occurences as `@command{make}'.
17671 2002-07-29  Mark D. Roth  <roth@feep.net>
17673         * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
17674         options and use $AUTOM4TE_PATH.
17675         * doc/autoconf.texi: Remove documentation of autom4te
17676         --include-envvar and --site-macro-subdir options and document
17677         use of $AUTOM4TE_PATH.
17678         * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
17679         arguments from each language section.
17681 2002-07-29  Paul Eggert  <eggert@twinsun.com>
17683         * doc/install.texi: Include copyright symbol in copyright notice.
17685         * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
17686         Replace with:
17687         (AM_MAKEINFOFLAGS): New macro.
17688         * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
17689         * Makefile.am (INSTALL): Use the new macros.
17690         Use -o rather than --output, since "missing" does not grok --output.
17692 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
17694         * doc/autoconf.texi (Limitations of Make): Escaped newlines in
17695         comments do not always work. Never trust the exit status of
17696         `make -k'.
17698 2002-07-24  Kevin Ryde  <user42@zip.com.au>
17700         * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
17701         Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
17703 2002-07-23  Paul Eggert  <eggert@twinsun.com>
17705         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
17706         Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
17707         apparently treats PATH="nonexistent" as if it contained ".".
17708         Bug reported by Stefan `Sec' Zehl.
17710 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
17712         * doc/autoconf.texi (Limitations of Make): Mention the special
17713         handling of the obj/ directory by BSD make.
17715 2002-07-20  Kevin Ryde  <user42@zip.com.au>
17717         * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
17718         backslashes.
17720 2002-07-19  Akim Demaille  <akim@epita.fr>
17722         * doc/autoconf.texi (Function Portability): `exit'.
17723         (Programming in M4sh): Ethymology of M4sh.
17725 2002-07-19  Akim Demaille  <akim@epita.fr>
17727         * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
17729 2002-07-18  Akim Demaille  <akim@epita.fr>
17731         Version 2.53b.
17733 2002-07-18  Akim Demaille  <akim@epita.fr>
17735         * config/config.guess, config/config.sub: Update.
17737 2002-07-18  Akim Demaille  <akim@epita.fr>
17739         Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
17740         Automake's parts.
17742         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
17743         * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
17744         * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
17746 2002-07-18  Akim Demaille  <akim@epita.fr>,
17747             Alexandre Duret-Lutz  <duret_g@epita.fr>
17749         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
17750         _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
17752 2002-07-17  Russ Allbery  <rra@stanford.edu>
17754         * doc/autoconf.texi (Initializing configure): Clarify the
17755         description of the tarname default.
17757 2002-07-17  Andreas Buening  <andreas.buening@nexgo.de>
17759         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
17760         ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
17761         latter was not run.
17763 2002-07-17  Akim Demaille  <akim@epita.fr>
17765         * lib/Autom4te/General.pm (find_file): Browse the directories in
17766         the order they are given.
17768 2002-07-17  Akim Demaille  <akim@epita.fr>
17770         * tests/wrapsh.as, tests/wrappl.as: Merge into...
17771         * tests/wrapper.as: this.
17772         * tests/Makefile.am, configure.ac: Adjust.
17774 2002-07-17  Mark D. Roth  <roth@feep.net>
17776         * configure.ac: Add --enable-site-macro-dir option.
17777         * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
17778         * bin/autom4te.in: Add --prepend-include, --include-envvar, and
17779         --site-macro-subdir options.
17780         * bin/autoconf.in: Add --prepend-include option.
17781         * bin/autoheader.in: Add --prepend-include option.
17782         * bin/autoreconf.in: Add --prepend-include option.
17783         * bin/autoscan.in: Add --prepend-include option.
17784         * bin/autoupdate.in: Add --prepend-include option.
17785         * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
17786         macro directory, remove note that include path directories are
17787         used in reverse order, and document --prepend-include option.
17788         * lib/autom4te.in: Use --prepend-include instead of --include.
17789         * tests/wrapsh.in: Use --prepend-include instead of --include.
17791 2002-07-17  Akim Demaille  <akim@epita.fr>
17793         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
17794         tarnames.
17795         * doc/autoconf.texi (Initializing configure): Adjust.
17797 2002-07-17  Akim Demaille  <akim@epita.fr>
17799         * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
17800         (_AC_FUNC_MALLOC): New.
17801         (AC_FUNC_MALLOC): Use the latter.
17802         Define HAVE_MALLOC to 0 if broken.
17803         * doc/autoconf.texi (Particular Functions): Adjust.
17805 2002-07-16  Akim Demaille  <akim@epita.fr>
17807         * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
17808         * doc/autoconf.texi (C Compiler): Adjust.
17810 2002-07-09  Akim Demaille  <akim@epita.fr>
17812         * doc/autoconf.texi: Properly set the ``header'' part.
17814 2002-07-09  Akim Demaille  <akim@epita.fr>
17816         * doc/autoconf.texi (Systemology): Some about Darwin.
17818 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
17820         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
17821         Don't use AC_REQUIRE in AU_DEFUN.
17823 2002-07-09  Art Haas  <ahaas@neosoft.com>
17825         * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
17827 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
17829         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
17830         bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
17831         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
17832         so that Emacs setups GNU style for perl-mode and cperl-mode.
17834 2002-06-27  Paul Eggert  <eggert@twinsun.com>
17836         * config/install-sh: Quote $src.  Prefer || to test's -o option,
17837         as per "Limitations of Builtins".
17838         * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
17839         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
17841         * tests/mktests.sh: Use grep instead of fgrep, as per
17842         "Limitations of Builtins".
17844 2002-06-15  Paul Eggert  <eggert@twinsun.com>
17846         * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
17847         autom4te_perllibdir): Set to top build dir or src dir as appropriate,
17848         so that we consistently test the just-built programs.
17849         * tests/wrappl.as: Likewise.
17851 2002-06-12  Paul Eggert  <eggert@twinsun.com>
17853         * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
17854         name, so that symlinks to 'autoconf' work properly.  Bug reported
17855         by Bruno Haible.
17856         * bin/autoheader.in (AUTOM4TE): Likewise.
17857         * bin/autoreconf.in (autoconf, autoheader): Likewise.
17858         * bin/autoscan.in (autom4te): Likewise.
17859         * bin/autoupdate.in (autom4te): Likewise.
17861         * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
17862         btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
17863         on Solaris 2.5.1.
17865 2002-06-11  Andreas Schwab  <schwab@suse.de>
17867         * doc/autoconf.texi: Add more dir entries.
17869 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
17871         * bin/autom4te.in ($cache): Don't define using `$me', the name
17872         of the cache should not depend on the name under which autom4te
17873         was installed.
17875 2002-06-07  Akim Demaille  <akim@epita.fr>
17877         * tests/tools.at (autoconf: forbidden tokens, basic)
17878         (autoconf: forbidden tokens, exceptions): Adjust to the change of
17879         words in autom4te.in.
17881 2002-06-07  Peter Eisentraut  <peter_e@gmx.net>
17883         * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
17884         _AC_LANG_PROGRAM_C_F77_HOOKS.
17886 2002-06-07  Akim Demaille  <akim@epita.fr>
17888         * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
17889         rename as...
17890         (AC_REPLACE_FNMATCH): this.
17891         * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
17892         AC_FUNC_FNMATCH_GNU.
17894 2002-06-07  Akim Demaille  <akim@epita.fr>
17896         * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
17897         Rosetta Stone for Unix.
17899 2002-06-07  Akim Demaille  <akim@epita.fr>
17901         * bin/autom4te.in (warn_forbidden): When rejecting a token,
17902         suggest m4_pattern_allow.
17903         Suggested by Adam J. Richter.
17905 2002-06-07  Akim Demaille  <akim@epita.fr>
17907         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
17908         ac_config_libobj_dir.
17909         (AC_CONFIG_LIBOBJ_DIR): New.
17910         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
17911         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
17912         Use ac_config_libobj_dir to find the replacement files.
17913         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
17914         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
17915         (AC_REPLACE_FNMATCH_GNU): these.
17916         (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
17917         * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
17918         * tests/mktests.sh (ac_exclude_list): Don't check
17919         AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
17921 2002-06-06  Paul Eggert  <eggert@twinsun.com>
17923         * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
17924         if ln doesn't work.
17925         * NEWS: Likewise.
17926         * doc/autoconf.texi (Configuration Links): Likewise.
17927         (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
17929 2002-06-05  Paul Eggert  <eggert@twinsun.com>
17931         * config/config.guess, config/config.sub, config/texinfo.tex:
17932         Update from masters.
17934 2002-05-29  Paul Eggert  <eggert@twinsun.com>
17936         * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
17937         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
17938         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
17939         Likewise.
17940         * lib/autoconf/Makefile.am (check-local): Likewise.
17941         * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
17942         * lib/autoconf/types.m4 (commentary only): Likewise.
17943         * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
17944         * lib/autotest/Makefile.am (check-local): Likewise.
17945         * lib/m4sugar/Makefile.am (check-local): Likewise.
17946         * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
17947         * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
17949         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
17950         * doc/autoconf.texi (Particular Programs): Document them.
17951         (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
17952         * NEWS: Likewise.
17954 2002-05-27  Paul Eggert  <eggert@twinsun.com>
17956         * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
17957         * NEWS, doc/autoconf.texi (Particular Types): Document it.
17958         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
17959         instead of AC_MBSTATE_T, which never existed.
17961 2002-05-23  Akim Demaille  <akim@epita.fr>
17963         * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
17964         version of Autoconf that is discussed.
17966 2002-05-22  Paul Eggert  <eggert@twinsun.com>
17968         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
17969         from the default list of compilers to try.  Suggested by
17970         Kate Hedstrom.
17971         * NEWS: Document the above.
17972         * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
17974 2002-05-17  Paul Eggert  <eggert@twinsun.com>
17976         * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
17977         the member is itself an aggregate.  Bug reported by Sergey Poznyakoff.
17978         This improves on an earlier suggestion by H. Peter Anvin.
17980 2002-05-16  Paul Eggert  <eggert@twinsun.com>
17982         AC_FUNC_FNMATCH now tests only for POSIX compatibility.
17983         AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
17984         Both macros now accept an optional source-dir arg.
17985         New macro AC_GNU_SOURCE to define _GNU_SOURCE.
17987         * NEWS: Document this.
17988         * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
17990         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
17991         (AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
17992         not for GNU extensions; this undoes part of the 2000-11-03 change,
17993         reverting to 2.13-compatible behavior.
17994         Add new optional argument DIR.
17995         (AC_FUNC_FNMATCH_GNU): New macro.
17997         * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
17999 2002-05-08  Paul Eggert  <eggert@twinsun.com>
18001         * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
18002         Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
18003         and it causes a 'test' syntax error if it fails.
18004         Bug reported by Stephen Gildea.
18006         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
18007         If prototypes are supported, use them to check this at compile-time,
18008         instead of trying to check it at run-time.  If we must do a run-time
18009         check, assume that setvbuf is standard when cross-compiling, as
18010         nonstandard setvbuf occurs only on ancient and unlikely hosts.
18011         Bug reported by Paul D. Smith.
18013         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
18014         argument specifying location of getloadavg.c.  This removes a
18015         FIXME.  This idea was taken from Jim Meyering's implementation in
18016         textutils.
18017         * doc/autoconf.texi (Particular Functions): Document this.
18018         Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
18019         that's what the code does; this fixes a bug reported by
18020         Paul D. Smith.
18022 2002-05-03  Akim Demaille  <akim@epita.fr>
18024         * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
18025         autopoint instead of gettextize.
18026         ($uses_alocal): Rename as...
18027         ($uses_aclocal): this.
18028         * doc/autoconf.texi (autoreconf Invocation): Adjust.
18029         Suggested by Bruno Haible.
18031 2002-05-03  Akim Demaille  <akim@epita.fr>
18033         * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
18035 2002-04-29  Paul Eggert  <eggert@twinsun.com>
18037         * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
18038         files to be 1 second older; just set them to be the same time.
18039         Also, sleep 1 second after the first aclocal, to work around
18040         problems with sub-second time stamps on the input files.
18042 2002-04-29  Thien-Thi Nguyen  <ttn@gnu.org>
18044         * doc/autoconf.texi: Mention "set -e -x" lossage
18045         under node "Limitations of Builtins".
18047 2002-04-29  Akim Demaille  <akim@epita.fr>
18049         * doc/install.texi: Better wording for setting variables when
18050         running configure.
18051         From Christian Cornelssen.
18053 2002-04-29  Akim Demaille  <akim@epita.fr>
18055         * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
18056         of lack of $LINENO support, then the test will compare the $LINENO
18057         in testsuite vs. the lineno in the test file.  This is wrong, of
18058         course.
18059         Be sure to protect it.
18060         Reported by Patrick Welche.
18062 2002-04-25  Akim Demaille  <akim@epita.fr>
18064         * doc/autoconf.texi (Obsolete Macros): Typo.
18065         Reported by Vladimir Volovich.
18067 2002-04-25  Akim Demaille  <akim@epita.fr>
18069         * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
18070         than some of the input files, hence, on the second run of aclocal,
18071         if some of its input are younger, make them older.
18072         Suggested by Paul Eggert.
18074 2002-04-25  Akim Demaille  <akim@epita.fr>
18076         * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
18077         Thanks to Paul Eggert.
18079 2002-04-25  Akim Demaille  <akim@epita.fr>
18081         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
18082         and ac_subst_vars be sh variables containing the list of
18083         AC_SUBST_FILES'ed and AC_SUBST'ed identifiers.  Output them in the
18084         DEFAULT diversion.
18085         (_AC_INIT_PREPARE): Use them to log them.
18086         (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
18087         (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
18088         _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
18089         _AC_SUBST_FILES and _AC_SUBST_VARS.
18090         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
18092 2002-04-24  Akim Demaille  <akim@epita.fr>
18094         * bin/autoreconf.in (autoreconf): Run automake after autoconf and
18095         autoheader, so that automake does not complain about a missing
18096         config.h.in that was to be created.
18098 2002-04-23  Akim Demaille  <akim@epita.fr>
18100         * bin/autoheader.in (parse_args): --warning takes an argument.
18101         Fixes PR/220.
18103 2002-04-22  Peter Eisentraut  <peter_e@gmx.net>
18105         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
18106         and bb.out when cleaning up.
18108 2002-04-22  Akim Demaille  <akim@epita.fr>
18110         Version 2.53a.
18112 2002-04-22  Akim Demaille  <akim@epita.fr>
18114         * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
18116 2002-04-22  Akim Demaille  <akim@epita.fr>
18118         * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
18119         comma.
18120         Reported by Gregory Giannoni.
18122 2002-04-22  Akim Demaille  <akim@epita.fr>
18124         * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
18125         Fixes false failures on Darwin.
18127 2002-04-21  Paul Eggert  <eggert@twinsun.com>
18129         * TODO, bin/autoupdate.in, doc/autoconf.texi,
18130         lib/autoconf/general.m4, lib/autoconf/libs.m4,
18131         lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
18132         tests/tools.at: Minor spelling and grammar fixes.
18134 2002-04-20  Paul Eggert  <eggert@twinsun.com>
18136         * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
18137         ZSH_VERSION fixes.  Bug reported by Raja R Harinath.
18138         * lib/autotest/general.m4 (AT_INIT): Likewise.
18139         * tests/atgeneral.m4 (AT_INIT): Likewise.
18141 2002-04-19  Paul Eggert  <eggert@twinsun.com>
18143         * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
18144         doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
18145         lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
18146         lib/autoconf/functions.m4, lib/autoconf/general.m4,
18147         lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
18148         lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
18149         tests/atspecific.m4, tests/semantics.at, tests/torture.at:
18150         Minor spelling and grammar fixes.
18152         * doc/autoconf.texi: Follow the outline suggested in the GNU
18153         Sample Texts sections of the Texinfo 4.2 manual.  Most
18154         importantly, this makes sure that the copyright notices appear in
18155         all output formats.  You probably need Texinfo 4.2 to generate
18156         the manual now.
18158         Fix some bugs when using "$@" when there might be zero positional
18159         arguments in cases where this matters.
18161         * bin/autoconf.as: Rewrite so that the problem does not come up.
18162         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
18163         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
18164         * lib/autotest/general.m4 (AT_INIT): Likewise.
18166         * bin/autoheader.in: Use 'case' statement to work around problem.
18167         * bin/auto4mte.in: Likewise.
18168         * bin/autoreconf.in: Likewise.
18169         * bin/autoscan.in: Likewise.
18170         * bin/autoupdate.in: Likewise.
18171         * bin/ifnames.in: Likewise.
18173         * doc/autoconf.texi (Shell Substitutions): Document the problem.
18175         * lib/autotest/general.m4 (AT_INIT):
18176         Use Zsh alias to work around problem.
18177         * tests/atgeneral.m4 (AT_INIT): Likewise.
18179         * tests/c.at: We can't have zero arguments, so remove workaround
18180         that is not portable to Zsh.
18182 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
18184         * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
18185         from aclocal.m4 too.
18187 2002-04-12  Akim Demaille  <akim@epita.fr>
18189         * tests/wrappl.as: New, M4sh precursor of wrappl.in.
18191 2002-04-10  Akim Demaille  <akim@epita.fr>
18193         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
18194         workaround for ${1+"$@"}.
18195         * doc/autoconf.texi (Shell Substitutions): Explain it.
18196         From Oliver Kiddle and Peter Stephenson.
18198         Have M4sh perform minimal shell sanitizing.
18200         * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
18201         part into...
18202         (_AS_PREPARE): this new macro.
18203         (AS_PREPARE): New.
18204         (AS_INIT): Invoke AS_SHELL_SANITIZE.
18205         * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
18207         Adjust Autoconf and Autotest.
18209         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
18210         AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
18211         * lib/autotest/general.m4 (AT_INIT): Likewise.
18212         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
18213         Invoke _AS_PREPARE (not AS_PREPARE) in addition to
18214         AS_SHELL_SANITIZE.
18216         Use this M4sh to generate Autoconf's shell scripts.
18218         * tests/wrapsh.as: New, precursor of wrapsh.in.
18219         * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
18220         on Autotest and M4sh.
18221         ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
18222         (wrapsh.in): New target.
18223         * bin/autoconf.as: New, precursor of autoconf.in.
18224         (autoconf.in): New target.
18226 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
18228         * doc/autoconf.texi (Limitations of Make): Mention the issue
18229         with indented comments in rules.
18231 2002-04-09  Andreas Schwab  <schwab@suse.de>
18233         * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
18234         ac_top_builddir when setting ac_abs_top_builddir.
18236 2002-04-06  Kevin Ryde  <user42@zip.com.au>
18238         * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
18239         (Portable Shell): Cross reference to Systemology.
18241 2002-04-05  Akim Demaille  <akim@epita.fr>
18243         * bin/autoreconf.in (autoreconf): Be sure to accumulate the
18244         directories when descending in a SUBDIRS.
18245         Reported by Ezra Peisach.
18247 2002-04-04  Andreas Schwab  <schwab@suse.de>
18249         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
18250         contains no literal separators.
18252 2002-04-03  Akim Demaille  <akim@epita.fr>
18254         * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
18255         (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
18256         Use dnl, not the KILL diversion.
18257         Extracted from...
18258         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
18259         (AC_CONFIG_LINKS): here.
18260         Adjust.
18261         Don't use the KILL diversion, as it kills spurious output, which
18262         results in failures being hidden.
18263         Use m4_defn where appropriate.
18264         (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
18265         after the second argument.
18266         Use m4_defn.
18267         * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
18268         syntax, as it is provided by M4sugar.
18269         * tests/torture.at (Multiple AC_CONFIG_FILES): New.
18271 2002-04-03  Andreas Schwab  <schwab@suse.de>
18273         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
18274         expanded if $# <= 2.
18276         * bin/autoreconf.in (autoreconf): Run automake after rerunning
18277         aclocal.
18279 2002-04-03  Akim Demaille  <akim@epita.fr>
18281         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
18282         (_AC_COMPILER_EXEEXT_REJECT): New.
18283         Also recognize *.bb and *.bbg as compilation byproducts.
18284         (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
18285         (_AC_COMPILER_OBJEXT): Use them.
18286         Fixes Debian #138666.
18288 2002-04-02  Peter Eisentraut  <peter_e@gmx.net>
18290         Integrate AC_PROG_CC_STDC into AC_PROG_CC.
18292         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
18293         AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
18294         (AC_PROG_CC): Call _AC_PROG_CC_STDC.
18295         (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
18296         (AC_C_CONST): Same.
18297         (AC_C_INLINE): Same.
18298         (AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
18299         * doc/autoconf.texi, NEWS: Document.
18300         * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
18301         AC_C_CROSS.
18303 2002-04-02  Akim Demaille  <akim@epita.fr>
18305         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
18306         _AS_MKDIR_P_PREPARE.
18308 2002-03-28  Kevin Ryde  <user42@zip.com.au>
18310         * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
18311         to avoid versions of HP C which don't allow that.
18313 2002-03-27  Paul Eggert  <eggert@twinsun.com>
18315         * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
18316         (AS_SHELL_SANITIZE): Invoke it.
18317         (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
18319 2002-03-26  Akim Demaille  <akim@epita.fr>
18321         * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
18323 2002-03-26  Akim Demaille  <akim@epita.fr>
18325         * doc/autoconf.texi (Introduction): The GNATS base moved.
18327 2002-03-25  Paul Eggert  <eggert@twinsun.com>
18329         * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
18330         as POSIX requires, as it doesn't work with Zsh.
18331         * doc/autoconf.texi (Assignments): Document the problem.
18333 2002-03-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
18335         * doc/autoconf.texi (Limitations of Make): Mention more issue
18336         about VPATH, overriding of macros in sub-makes, and handling of
18337         SHELL.
18339 2002-03-21  Paul Eggert  <eggert@twinsun.com>
18341         * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
18342         problem with here-document buffer boundaries.
18344         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
18345         when reinvoking the shell, to work around problems with installers
18346         who put strange things like "cd" commands in their environments.
18348 2002-03-19  Akim Demaille  <akim@epita.fr>
18350         * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
18351         From Aaron Ucko.
18353 2002-03-19  Akim Demaille  <akim@epita.fr>
18355         * bin/autoscan.in (scan_file): Specify the location in `&used'
18356         invocations.
18357         From Nicolas Joly.
18359 2002-03-19  Akim Demaille  <akim@epita.fr>
18361         * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
18362         From Nishio Futoshi.
18364 2002-03-19  Akim Demaille  <akim@epita.fr>
18366         * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
18368 2002-03-18  Paul Eggert  <eggert@twinsun.com>
18370         * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
18371         (Limitations of Usual Tools): Add mkdir section.
18373         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
18374         (AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
18375         back on AS_DIRNAME to compute prefixes otherwise; this is
18376         roughly what mkinstalldirs does.  That way, we need not have
18377         our own filename disassembler.  The old disassembler did not
18378         work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
18380         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
18381         Create at_test_all by a series of assignments,
18382         not by a single assignment of a long string.  The latter causes ksh
18383         version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
18384         presumably because of a buffer overrun.
18386 2002-03-14  Paul Eggert  <eggert@twinsun.com>
18388         * lib/autotest/general.m4 (at_times_skip):
18389         Renamed from at_times.  Now a boolean.
18390         ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
18391         says 'times: not found'.
18393 2002-03-14  Akim Demaille  <akim@epita.fr>
18395         * bin/autoreconf.in (&study_gettextize): New.
18396         (&autoreconf): Handle newest gettextize.
18397         Rerun aclocal if needed.
18398         Suggested by Andreas Schwab.
18400 2002-03-13  Akim Demaille  <akim@epita.fr>
18402         * doc/autoconf.texi (Special Shell Variables): More about IFS.
18404 2002-03-13  Akim Demaille  <akim@epita.fr>
18406         * doc/autoconf.texi (Header Portability): New.
18407         Add information about stdint.h and inttypes.h from Paul Eggert.
18409 2002-03-13  Akim Demaille  <akim@epita.fr>
18411         * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
18412         -p'.
18413         From Bob Proulx.
18415 2002-03-12  Akim Demaille  <akim@epita.fr>
18417         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
18418         m4_require.
18420 2002-03-11  Andreas Schwab  <schwab@suse.de>
18422         * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
18423         does not do it if --with-lispdir is given.
18425 2002-03-08  Akim Demaille  <akim@epita.fr>
18427         Version 2.53.
18429 2002-03-08  Akim Demaille  <akim@epita.fr>
18431         * doc/autoconf.texi (Subdirectories): Clarify that the
18432         subdirectory should exist.
18434 2002-03-08  Akim Demaille  <akim@epita.fr>
18436         * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
18438 2002-03-08  Akim Demaille  <akim@epita.fr>
18440         * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
18441         aliases the actual variables, and modifications of the former
18442         affect the latter.
18444 2002-03-08  Akim Demaille  <akim@epita.fr>
18446         * bin/autom4te.in (&handle_m4): Protect us from corrupted file
18447         because of C-c: have m4 output in tmp files, then mv them.
18449 2002-03-08  Akim Demaille  <akim@epita.fr>
18451         * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
18452         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
18453         * bin/ifnames.in: Copyright update.
18455 2002-03-08  Akim Demaille  <akim@epita.fr>
18457         * doc/autoconf.texi (Invoking autom4te): New.
18459 2002-03-05  Akim Demaille  <akim@epita.fr>
18461         * doc/autoconf.texi (Specifying Names): Clarification suggested by
18462         Kevin Ryde.
18464 2002-03-05  Akim Demaille  <akim@epita.fr>
18466         Version 2.52i.
18468 2002-03-04  Akim Demaille  <akim@epita.fr>
18470         * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
18471         * lib/autoconf/general.m4 (AC_INIT): More informative error
18472         message for LIBOBJ.
18474 2002-03-04  Akim Demaille  <akim@epita.fr>
18476         * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
18477         parallel builds.
18479 2002-03-04  Akim Demaille  <akim@epita.fr>
18481         * doc/autoconf.texi (Transforming Names): Equality between target
18482         and host is irrelevant.
18483         (Specifying Names, Canonicalizing): Remove all references to the
18484         backward compatibility hooks.  Rather, collect them all into...
18485         (Hosts and Cross-Compilation): this new section.
18486         * doc/install.texi (System Type): Ditto.
18487         * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
18488         that `--host' implies cross-compilation.
18490 2002-03-04  Akim Demaille  <akim@epita.fr>
18492         * doc/autoconf.texi (Evaluation Macros): New.
18493         * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
18494         useless.
18495         (_m4_foreach): Define the variant with immediate evaluation so
18496         that it contains exactly the items, not an expression which
18497         evaluation is the current item.
18498         (m4_re_string, m4_re_word): Don't over quote them.
18500 2002-03-04  Akim Demaille  <akim@epita.fr>
18502         Instead of having stacking `shift's evaluated at the end, let
18503         `foreach' loops immediately evaluate them.
18505         * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
18506         $*.  This is the n-th time I change my mind, but hopefully this is
18507         the last...
18508         (m4_lquote): New.
18509         (m4_text_wrap): Use m4_foreach, which is finally correct _and_
18510         efficient.
18511         (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
18512         it was only a hack for m4_text_wrap.
18513         (m4_car2): Remove, replaced by...
18514         (m4_cdr): New.
18515         (_m4_foreach): Adjust.
18516         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
18517         m4_bpatsubst for clarification.
18519 2002-03-04  Akim Demaille  <akim@epita.fr>
18521         * doc/autoconf.texi (Changequote is Evil): New.
18523 2002-03-03  Kevin Ryde  <user42@zip.com.au>
18525         * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
18526         on old systems like SunOS.
18528 2002-03-01  Peter Eisentraut  <peter_e@gmx.net>
18530         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
18531         lib/autoconf/functions.m4, lib/autoconf/general.m4,
18532         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
18533         lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
18534         of messages.
18536 2002-02-28  Akim Demaille  <akim@epita.fr>
18538         * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
18539         message to be sent.
18541 2002-02-28  Kevin Ryde  <user42@zip.com.au>
18543         * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
18545 2002-02-25  Akim Demaille  <akim@epita.fr>
18547         * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
18548         From Akinori Musha.
18550 2002-02-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
18552         * lib/Autom4te/XFile.pm (getline, getlines): New functions,
18553         translate \r\n to \n.
18555 2002-02-07  Akim Demaille  <akim@epita.fr>
18557         Version 2.52h.
18559 2002-02-07  Akim Demaille  <akim@epita.fr>
18561         Fix Autoconf PR/209.
18562         Also reported by Frank Denis.
18564         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
18566 2002-02-07  Akim Demaille  <akim@epita.fr>
18568         Fix Autoconf PR/207:
18569         AC_PREFIX_PROGRAM fails with dashed program names
18571         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
18572         variable when looking for the prefix program.
18573         Now it also works for shell variables.
18575 2002-02-07  Akim Demaille  <akim@epita.fr>
18577         * doc/autoconf.texi (Limitations of Builtins): More about
18578         case/esac.
18580 2002-02-06  Akim Demaille  <akim@epita.fr>
18582         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
18583         case/esac, some shells don't support it.
18584         Reported by Zack Weinberg.
18585         * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
18587 2002-02-06  Akim Demaille  <akim@epita.fr>
18589         * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
18590         sure not to introduce newlines in at_groups.
18591         * lib/autotest/Makefile.am (autotest.m4f): Typo.
18593 2002-02-06  Akim Demaille  <akim@epita.fr>
18595         * tests/torture.at (Configuring subdirectories): Skip if aclocal
18596         is not available.
18598 2002-02-05  Paul Eggert  <eggert@twinsun.com>
18600         * doc/autoconf.texi (Specific Compiler Characteristics):
18601         Describe HP-UX cc bug workaround more accurately.
18602         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
18603         not unsigned long.
18604         * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
18605         cross-compilers, too.  This undoes some of the most recent change
18606         to this file.
18608 2002-02-05  Akim Demaille  <akim@epita.fr>
18610         * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
18611         to make sure they are up to date when `check' is run.
18613 2002-02-05  Akim Demaille  <akim@epita.fr>
18615         * doc/autoconf.texi (Making testsuite Scripts): Document
18616         package.m4.
18618 2002-02-05  Akim Demaille  <akim@epita.fr>
18620         * lib/freeze.mk: New.
18622 2002-02-05  Akim Demaille  <akim@epita.fr>
18624         Implement `autom4te --freeze'.
18626         * bin/autom4te.in (&freeze): New.
18627         * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
18628         * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
18630 2002-02-05  Akim Demaille  <akim@epita.fr>
18632         * bin/autom4te.in (&parse_args): Implement `frozen files are
18633         optional are the sum of the previous files on the command line'.
18634         Also, pass `--reload-state=' on them, so...
18635         (handle_m4): don't.
18636         * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
18637         (M4sh): Rely on M4sugar.
18638         (Autotest, M4sh, M4sugar): Use frozen files.
18640 2002-01-31  Akim Demaille  <akim@epita.fr>
18642         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
18643         * doc/autoconf.texi (Initializing configure): Adjust.
18645 2002-01-30  Akim Demaille  <akim@epita.fr>
18647         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
18648         alphanumeric to `-' instead of `_'.
18650 2002-01-30  Akim Demaille  <akim@epita.fr>
18652         * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
18653         for plain code, the other for cross-compilation code.  The latter
18654         is now run with GCC only.
18655         * doc/autoconf.texi (Compilers and Preprocessors): New.
18657 2002-01-30  Akim Demaille  <akim@epita.fr>
18659         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
18660         values.
18661         * doc/autoconf.texi (Initializing configure): Explain how to
18662         change AC_INIT default values.
18664 2002-01-29  Akim Demaille  <akim@epita.fr>
18666         * tests/torture.at (Configuring subdirectories): Use configure.in,
18667         so that aclocal 1.4 works.
18668         Reported by Alexandre Duret-Lutz and Larry Schmitt.
18670 2002-01-28  Akim Demaille  <akim@epita.fr>
18672         * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
18673         needs an argument.
18675 2002-01-28  Akim Demaille  <akim@epita.fr>
18677         * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
18678         AUTOTEST_PATH *after* it was set.
18679         Don't put `.' in the PATH: the user should be precise and `./' if
18680         needed.  In addition, given that the test suite does some `cd', if
18681         `.' is in the path, the `tested programs' sections will report
18682         programs found in the test suite's directory, while during the
18683         tests (performed in their own directory), these programs are no
18684         longer visible.  In other words, the results is confusing and
18685         useless.
18686         * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
18688 2002-01-24  Akim Demaille  <akim@epita.fr>
18690         Version 2.52g.
18692 2002-01-24  Akim Demaille  <akim@epita.fr>
18694         * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
18695         * doc/autoconf.texi: Finally add Akim as an author.
18697 2002-01-24  Akim Demaille  <akim@epita.fr>
18699         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
18700         (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
18701         Bourne. Use /bin/sh.
18702         From Andreas Buening.
18704 2002-01-24  Akim Demaille  <akim@epita.fr>
18706         * config/config.guess, config/config.sub, config/texinfo.tex:
18707         Update from masters.
18709 2002-01-24  Akim Demaille  <akim@epita.fr>
18711         * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
18712         * config/auxdir.m4, config/cond.m4, config/depend.m4,
18713         * config/init.m4, config/install-sh.m4, config/lispdir.m4,
18714         * config/missing.m4, config/sanity.m4, config/select.m4,
18715         * config/strip.m4: Remove, to ease sync'ing with any version of
18716         Automake.
18718 2002-01-24  Akim Demaille  <akim@epita.fr>
18720         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
18721         (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
18722         Reported by Geir Ove Myhr.
18724 2002-01-21  Akim Demaille  <akim@epita.fr>
18726         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
18728 2002-01-21  Akim Demaille  <akim@epita.fr>
18730         * lib/Autom4te/General.pm (getopt): Use a more GNUish error
18731         message on invalid options.
18732         * bin/autom4te.in (parse_args): Don't use
18733         Autoconf::General::getopt with non valid options.
18735 2002-01-17  Jim Meyering  <meyering@lucent.com>
18737         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
18738         $ac_cv_exeext so we don't use an old, invalid, cached value.
18740 2002-01-11  Akim Demaille  <akim@epita.fr>
18742         * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
18743         Meyering.
18744         * doc/autoconf.texi (Function Portability): Document the strnlen
18745         limitation.
18746         (Particular Functions): Document AC_FUNC_STRNLEN.
18747         * lib/autoscan/functions: Adjust.
18749 2002-01-06  Akim Demaille  <akim@epita.fr>
18751         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
18752         package.m4, since is really depends upon configure.ac, not
18753         configure.
18754         * doc/autoconf.texi (testsuite Scripts): Adjust.
18755         * tests/Makefile.am (package.m4): New.
18756         EXTRA_DIST it since its a source.
18758 2002-01-06  Akim Demaille  <akim@epita.fr>
18760         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
18761         of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
18762         and PACKAGE_BUGREPORT from here...
18763         (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
18764         arguments.
18765         (_AC_INIT_PREPARE): AC_DEFINE these symbols.
18766         * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
18767         (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
18768         * tests/tools.at (autoheader): Adjust.
18769         * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
18771 2002-01-06  Akim Demaille  <akim@epita.fr>
18773         * bin/autoscan.in (scan_file): Use `&used'.
18775 2002-01-03  Akim Demaille  <akim@epita.fr>
18777         * doc/autoconf.texi (Output): Improved wording regarding use of
18778         AC_OUTPUT.
18779         From Olly Betts.
18781 2001-12-18  Kevin Ryde  <user42@zip.com.au>
18783         * doc/autoconf.texi (Function Portability): Add notes on sscanf
18784         sometimes needing writable input.
18786 2001-12-17  Jim Meyering  <meyering@lucent.com>
18788         * doc/autoconf.texi (New Macros): Tweak wording.
18790 2001-12-14  Akim Demaille  <akim@epita.fr>
18792         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
18793         trailing files, don't apply `-rf' to files which might not be
18794         created by configure (core, core.*, and *.core), but just `rm -f'.
18795         Suggested by Jonathan Kamens.
18797 2001-12-14  Aaron M. Ucko  <amu@alum.mit.edu>
18799         * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
18801 2001-12-14  Akim Demaille  <akim@epita.fr>
18803         * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
18805 2001-12-13  Peter Eisentraut  <peter_e@gmx.net>
18807         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
18808         abs_builddir, top_buildpath to abs_top_builddir, srcpath to
18809         abs_srcdir, top_srcpath to abs_top_srcdir.
18810         (_AC_OUTPUT_FILES): Adjust.
18811         * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
18812         * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
18813         * tests/wrappl.in, tests/wrapsh.in: Adjust.
18815 2001-12-12  Steven G. Johnson  <stevenj@alum.mit.edu>
18817         * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
18818         C/Fortran linking on HP/UX, by extracting the Fortran library
18819         search path from the LPATH line in the $F77 -v output.
18821 2001-12-12  Kevin Ryde  <user42@zip.com.au>
18823         * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
18824         forbidden file descriptors table.
18826 2001-11-26  Akim Demaille  <akim@epita.fr>
18828         * bin/autoscan.in (%c_keywords): Build it at top level.
18829         Map to 1 in order to simplify its uses.
18831 2001-11-26  Akim Demaille  <akim@epita.fr>
18833         * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
18834         Remove $filepath, useless.
18835         (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
18836         variables, they are really part of the tokens.
18837         Split the input line on spaces and then look for tokens.
18838         Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
18839         because of `lex$U.$(OBJEXT)'.
18840         (&scan_files): Use "@list" instead of join.
18841         * doc/Makefile.am (CLEANFILES): Add *.fns.
18843 2001-11-26  Akim Demaille  <akim@epita.fr>
18845         * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
18846         Remove, replaced by...
18847         * tests/wrappl.in: Be common for all the Perl executables.
18848         In particular autoscan and autoheader want -I.
18849         * configure.ac: Adjust.
18850         * lib/autoscan/headers: errno.h is portable.
18852 2001-11-26  Akim Demaille  <akim@epita.fr>
18854         * bin/autoscan.in (used): New.
18855         Use it.
18857 2001-11-26  Akim Demaille  <akim@epita.fr>
18859         * bin/autoscan.in (&scan_c_file): Better parsing of CPP
18860         directives.
18861         (&scan_sh_file): Remove a duplicate pattern.
18862         (&check_configure_ac): Use long options.
18863         * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
18865 2001-11-26  Akim Demaille  <akim@epita.fr>
18867         * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
18868         Before, having a line containing the opening of a multi line
18869         comment made the whole line be ignored.
18871 2001-11-26  Akim Demaille  <akim@epita.fr>
18873         * doc/autoconf.texi (Using an Autotest Test Suite): New.
18874         (testsuite Scripts): Be one of its subsection.
18875         (Autotest Logs): New.
18877 2001-11-26  Akim Demaille  <akim@epita.fr>
18879         Test groups are now run two directories deeper.
18881         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
18882         top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
18883         at_top_builddir.
18884         * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
18885         top_srcdir, builddir and top_builddir.
18886         Use `at_*dir' relatively to the directory containing the
18887         suite, use `*dir' when relatively to the current group dir.
18889 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
18891         * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
18892         lib/autoconf/functions.m4, lib/autoconf/headers.m4,
18893         tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
18894         spelling errors.
18896 2001-11-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
18898         * doc/autoconf.texi (Using System Type): Add an example of `case
18899         $host' usage so people quit using `case $target' everywhere.
18901 2001-11-22  Akim Demaille  <akim@epita.fr>
18903         * doc/autoconf.texi (Installation Directory Variables): Englishoes
18904         spotted by Jim Meyering.
18906 2001-11-16  Paul Eggert  <eggert@twinsun.com>
18908         This patch implements a `long double' suggestion by Oliver Kiddle.
18910         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
18911         static, to catch errors if the value isn't known at compile-time
18912         and the compiler supports dynamic arrays.  Change its name from
18913         `_array_' to `test_array' to avoid potential name clashes.
18914         (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
18915         test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
18916         better than double.  Catch a bug in GCC 2.95.2 x86.
18917         * doc/autoconf.texi (C Compiler): Document the above.
18918         * NEWS: Likewise.
18920 2001-11-13  Akim Demaille  <akim@epita.fr>
18922         * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
18923         hand.
18924         * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
18926 2001-11-13  Akim Demaille  <akim@epita.fr>
18928         * lib/autotest/general.m4 (AT_INIT): After having run the test
18929         group, go back to the initial directory, not to at_suite_dir.
18931 2001-11-13  Akim Demaille  <akim@epita.fr>
18933         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
18934         (AT_DATA_AUTOCONF):  Also protect @&t@ from autom4te.
18935         (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
18936         option.
18937         (AT_CHECK_CONFIGURE): Use absolute paths.
18938         (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
18939         The problem is still the old one: there is no means in M4 (that I
18940         know about) to create a defining macro, because there is no means
18941         to create `$1' etc., therefore, the defining macro ``swallows''
18942         all the arguments meant to the defined macro.
18944 2001-11-13  Akim Demaille  <akim@epita.fr>
18946         * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
18947         (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
18948         configure.ac.
18949         * tests/aclocal.m4: Remove, as it is no longer used.
18951 2001-11-13  Akim Demaille  <akim@epita.fr>
18953         * lib/autotest/general.m4: Change `tests?' into `groups?' in
18954         variable names when referring to a single test group, or to
18955         `suite' when referring to the whole test suite.
18956         `at_last_test' is removed: m4 compute at_format itself.
18957         (at_stdout, at_stder1, at_stderr): New variables.
18958         (AT_CHECK): Use them.
18960 2001-11-13  Akim Demaille  <akim@epita.fr>
18962         * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
18963         in PATH.
18964         Create `testsuite.dir/003/run' instead of `testsuite.003'.
18965         Do it as soon as a test fails, don't wait till the end of the test
18966         suite.
18967         Don't remove $as_me.[0-9]*, since these files no longer exist.
18969 2001-11-13  Akim Demaille  <akim@epita.fr>
18971         * tests/tools.at: Use absolute paths, since we are no longer run
18972         in place.
18974 2001-11-13  Akim Demaille  <akim@epita.fr>
18976         Now that tests are running in their own private dir, there is no
18977         need to list the files to remove at the end of tests groups.
18979         * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
18980         (AT_data_files, at_data_files): Remove.
18981         (AT_CLEANUP, AT_DATA): Simplify.
18982         (AT_INIT): Adjust.
18983         Remove the group dir if !debug && !failed.
18984         * tests/atspecific.m4: Adjust.
18986 2001-11-13  Akim Demaille  <akim@epita.fr>
18988         Start a new layout for Autotest: `testsuite' creates
18989         `testsuite.dir' in which the at-check-line etc. files are to be
18990         found, and `testsuite.dir/003' where the test group 3 is run.
18992         * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
18993         at_check_line_file, at_format, at_test_normalized, at_group_dir
18994         are new variables.
18995         Create the directories.
18996         Use absolute paths for at- files.
18997         (AT_CHECK): Adjust.
18999 2001-11-11  Michael Matz  <matz@kde.org>
19001         * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
19002         (m4_car2): New.
19003         (m4_car): Properly quote arguments.
19005 2001-11-13  Akim Demaille  <akim@epita.fr>
19007         * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
19008         with stricter rules on LIBOBJS.
19010 2001-11-12  Paul Eggert  <eggert@twinsun.com>
19012         * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
19013         * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
19014         __PROTOTYPES too.
19016 2001-11-12  Akim Demaille  <akim@epita.fr>
19018         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
19020 2001-11-12  Akim Demaille  <akim@epita.fr>
19022         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
19023         * lib/autoconf/functions.m4, lib/autoconf/general.m4,
19024         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
19025         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
19026         * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
19027         specify to what the macro should be defined (typically to 1).
19029 2001-11-12  Akim Demaille  <akim@epita.fr>
19031         * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
19032         From Jim Meyering.
19034 2001-11-12  Akim Demaille  <akim@epita.fr>
19036         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
19037         AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
19038         definition used by Automake where LEX is +/- "${missing} lex" and
19039         `missing' itself contains variables.
19041 2001-11-12  Akim Demaille  <akim@epita.fr>
19043         * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
19044         Now that M4sh pushes BODY, the comments were output at the end of
19045         the test suites.
19047 2001-11-08  Akim Demaille  <akim@epita.fr>
19049         * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
19050         that we can trace macros from aclocal.m4.
19051         Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
19052         obsoleted, and redirect to the former anyway.
19053         Reported by Ralf Corsepius.
19055 2001-11-08  Akim Demaille  <akim@epita.fr>
19057         * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
19058         processed only if present.
19059         * tests/torture.at (Configuring subdirectories): Use autoreconf
19060         instead of successive calls to autoconf.
19061         Add a nonexistent subdirectory to exercise the patch above.
19062         Reported by Ralf Corsepius.
19064 2001-11-08  Kevin Ryde  <user42@zip.com.au>
19066         * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
19067         doesn't accept .S files.
19069 2001-11-07  Akim Demaille  <akim@epita.fr>
19071         * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
19072         * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
19073         (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
19074         * bin/autom4te.in (warn_forbidden): New.
19075         (handle_output): Use it.
19076         Read m4_pattern_forbid with messages.
19078 2001-11-05  Akim Demaille  <akim@epita.fr>
19080         * bin/autom4te.in (--normalize): Remove.
19081         * lib/autom4te.in: Adjust.
19083 2001-11-05  Akim Demaille  <akim@epita.fr>
19085         * tests/Makefile.am (testsuite): Rename this target as...
19086         ($(TESTSUITE)): this.
19087         From Nicolas Joly.
19089 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
19091         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
19092         the --prefix option, also remove it's argument.
19094 2001-11-05  Akim Demaille  <akim@epita.fr>
19096         * doc/autoconf.texi (testsuite Invocation): Update.
19097         (Writing testsuite.at): Update.
19099 2001-11-03  Akim Demaille  <akim@epita.fr>
19101         * doc/autoconf.texi: s/@code/@command/ where appropriate.
19103 2001-11-03  Akim Demaille  <akim@epita.fr>
19105         * lib/Autom4te/General.pm: (&catfile, &canonfile)
19106         (&file_name_is_absolute): New, wrappers around routines from
19107         File::Spec.
19108         Use and export them.
19109         (&find_configure_ac): Optionally take a directory where to look at.
19110         * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
19111         the arguments.
19112         Default @ARGV to `.', not find_configure_ac.
19113         (&autoreconf): Argument is a directory.
19114         Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
19115         * doc/autoconf.texi (autoreconf Invocation): Update.
19117 2001-11-03  Akim Demaille  <akim@epita.fr>
19119         * lib/Autom4te/General.pm (@export_vars, @export_subs)
19120         (@export_forward_subs): New.
19121         Add basename, dirname, and fileparse.
19122         (@EXPORT): Adjust.
19123         * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
19124         Don't look for aclocal flags if we already know aclocal is not
19125         used.
19126         Move aclocal.m4t only if it exists.
19127         Reported by Ezra Peisach.
19129 2001-11-03  Akim Demaille  <akim@epita.fr>
19131         * bin/autoreconf.in (&parse_args): Work only on the configure.ac
19132         passed on command line, defaulting to ./configure.ac if present.
19133         (&maybe_autoreconf, File::Find): Remove, unused.
19134         (&autoreconf): If autoconf is not used, don't try to trace.
19136 2001-11-02  Akim Demaille  <akim@epita.fr>
19138         * configure.ac: Bump to 2.52g.
19140 2001-11-02  Akim Demaille  <akim@epita.fr>
19142         Version 2.52f.
19144 2001-11-02  Akim Demaille  <akim@epita.fr>
19146         * config/config.guess, config/config.sub, doc/standards.texi:
19147         * config/lispdir.m4: Update from masters.
19148         * configure.ac: Bump to 2.52f.
19150 2001-11-02  Akim Demaille  <akim@epita.fr>
19152         * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
19153         Don't run aclocal when aclocal.m4 is not from aclocal.
19154         From Ezra Peisach.
19155         Don't run libtoolize and gettextize if --install is not given.
19157 2001-11-01  Paul Eggert  <eggert@twinsun.com>
19159         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
19160         be invoked before _AS_LINENO_PREPARE.
19161         (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
19162         than character ranges.
19164         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
19165         invoking AS_BASENAME.  Set the locale variables to 'C' if
19166         possible, as POSIX requires this to get the traditional
19167         behavior.
19168         * doc/autoconf.texi (Special Shell Variables): Describe the above.
19170 2001-10-31  Paul Eggert  <eggert@twinsun.com>
19172         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
19173         with {}, as that triggers a bug in Bash 2.05.
19175         (_AS_LINENO_PREPARE): Use Sed rather than
19176         Awk.  Fix the sed prepass to work even if there are multiple
19177         instances of $LINENO on the same line.  Do not substitute for
19178         other variables like $LINENOT.  Do not check file dates; such a
19179         check is unreliable on sufficiently fast machines, and removing
19180         the check makes the code simpler and more reliable.  Check for
19181         output and chmod failures.
19183         * doc/autoconf.texi (Special Shell Variables): Document
19184         the above.
19186 2001-10-31  Akim Demaille  <akim@epita.fr>
19188         * tests/Makefile.am (atconfig): Remove this target, Automake
19189         handles it now.
19191 2001-10-31  Akim Demaille  <akim@epita.fr>
19193         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
19194         AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
19195         provided, while it is optional.
19196         * configure.ac: Adjust.
19198 2001-10-26  Paul Eggert  <eggert@twinsun.com>
19200         * NEWS, README, configure.ac, lib/Autom4te/General.pm,
19201           lib/Autom4te/Struct.pm:
19202         Require Perl 5.005_03 instead of just 5.005, as some tests fail
19203         with 5.005_02.
19205         * doc/autoconf.texi (Special Shell Variables): Document some
19206         more LINENO gotchas, particularly with respect to the Awk+Sed hack.
19208         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
19209         (_AS_LINENO_PREPARE): Use it instead of shell eval, since
19210         eval $LINENO is not portable in practice.
19212 2001-10-24  Akim Demaille  <akim@epita.fr>
19214         * lib/Autom4te/General.pm (backname): New.
19216 2001-10-24  Akim Demaille  <akim@epita.fr>
19218         * m4/: Remove, merged into...
19219         * config/: here.
19221 2001-10-23  Tim Van Holder  <tim.van.holder@pandora.be>
19223         * doc/autoconf.texi (Shellology): Mention the problems with bash
19224         2.05's use of ANSI quoting in its `set' builtin.
19226 2001-10-22  Paul Eggert  <eggert@twinsun.com>
19228         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
19229         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
19230         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
19231         POSIX decided to standardize on the int flavor of strerror_r.
19232         Always do char* test, as there's no reason not to.
19233         Assign to a char* var, to catch strerror_r that returns int*.
19235         * doc/autoconf.texi (Particular Functions):
19236         Document the above changes.  Also, document the fact that
19237         AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
19239         * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
19241 2001-10-20  Akim Demaille  <akim@epita.fr>
19243         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
19244         the executable was missing from the log.
19246 2001-10-20  Akim Demaille  <akim@epita.fr>
19248         * lib/Autom4te/General.pm (&update_file): If destination is
19249         unchanged, remove the source.
19250         (&up_to_date_p): Don't be verbose, be debug.
19251         * bin/autoreconf.in: No longer support --m4dir.
19252         (&autoreconf): Display the full path of the configure.ac we are
19253         studying.
19254         Trace it only once.
19255         Be sure to honor --force with gettextize.
19256         Always run aclocal.
19257         * doc/autoconf.texi: Adjust.
19259 2001-10-20  Akim Demaille  <akim@epita.fr>
19261         * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
19262         Remove, dead.
19263         * bin/autoreconf.in (&autoreconf): Do not run gettextize when
19264         `intl' is already present, as it refuses unless --force.
19265         (&parse_args): Use -I, --include instead of the old Autoconf
19266         options.
19267         ($localdir, $autoconf_dir): Remove.
19268         (@include): New.
19269         (&maybe_autoreconf): New, to preserve $_ for File::Find.
19271 2001-10-19  Jens Petersen  <petersen@redhat.com>
19273         * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
19274         * doc/autoconf.texi (Particular Programs): Likewise.
19276 2001-10-19  Akim Demaille  <akim@epita.fr>
19278         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
19279         file in @configure_input@.
19280         Don't mention `automatically' in addition to `generated'.
19281         * tests/torture.at (#define header templates): Adjust.
19283 2001-10-19  Akim Demaille  <akim@epita.fr>
19285         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
19286         comment, explain how to install automatic mode selection.
19287         From Russ Allbery.
19289 2001-10-19  Ezra Peisach  <epeisach@zif.mit.edu>
19291         * bin/autoreconf.in (autoreconf): Display the path to the
19292         configure.ac being studied.
19294 2001-10-18  Paul Eggert  <eggert@twinsun.com>
19296         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
19297         long, to work around a bug in the HP C compiler version HP92453-01
19298         B.11.11.23709.GP.
19300         * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
19301         (AS_BASENAME_EXPR): New macro.
19302         (AS_BASENAME_SED): Do not assume GNU sed semantics.
19303         (AS_BASENAME): Use 'basename' if that works; then try 'expr';
19304         and fall back on 'sed' only if the other two fail.  This makes
19305         AS_BASENAME act more like AS_DIRNAME.
19306         (as_me): Shell-quote the argument of AS_BASENAME, in case $0
19307         contains white space.
19308         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
19309         Use AS_DIRNAME, since I think it's now DOS-friendly.
19310         * tests/m4sh.at (DIRNAME_TEST): New arg $3.
19311         Allow "dirname //FOO" to return either / or //, as POSIX allows
19312         either behavior.
19314 2001-10-10  Akim Demaille  <akim@epita.fr>
19316         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
19317         `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
19318         From Eric Sharkey.
19320 2001-10-10  Akim Demaille  <akim@epita.fr>
19322         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
19323         m4_define, since...
19324         (_AS_ECHO_N): AS_REQUIREs it.
19326 2001-10-10  Akim Demaille  <akim@epita.fr>
19328         * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
19329         (AC_INCLUDES_DEFAULT): Move to...
19330         * lib/autoconf/headers.m4: here.
19331         * lib/autoconf/types.m4: Comment changes.
19332         * doc/autoconf.texi: Specify where the default includes are used
19333         in the macro prototypes.
19335 2001-10-09  Akim Demaille  <akim@epita.fr>
19337         * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
19338         transition code.
19340 2001-10-08  Akim Demaille  <akim@epita.fr>
19342         * bin/autoreconf.in (&autoreconf): Remove debugging code.
19343         (&parse_args): Pass verbosity/debugging options to subtools when
19344         --debug, not when --verbose.
19345         * lib/autom4te.in (Autoreconf-preselections): New.
19346         (Autoconf): Use it.
19348 2001-10-08  Akim Demaille  <akim@epita.fr>
19350         * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
19352 2001-10-08  Akim Demaille  <akim@epita.fr>
19354         * doc/autoconf.texi (autoreconf Invocation): Adjust.
19355         * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
19357 2001-10-08  Akim Demaille  <akim@epita.fr>
19359         * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
19360         (Syntax of the shell scripts): Don't.
19361         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
19362         bother with $force since...
19363         * lib/Autom4te/General.pm: does.
19365 2001-10-08  Akim Demaille  <akim@epita.fr>
19367         * bin/autoreconf.in: Rewrite in Perl.
19368         * configure.ac: Adjust.
19369         * lib/Autom4te/General.pm (&up_to_date_p): New.
19370         * bin/autom4te.in (&up_to_date_p): Use it.
19371         Rename as...
19372         (&up_to_date): this.
19374 2001-10-08  Akim Demaille  <akim@epita.fr>
19376         * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
19377         (m4_list_cmp): Use $0 to reinvoke yourself.
19378         (m4_patsubsts): New.
19379         (m4_strip, m4_version_unletter): Use it.
19380         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
19382 2001-10-08  Akim Demaille  <akim@epita.fr>
19384         * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
19385         * lib/autoconf/libs.m4, lib/autoconf/status.m4,
19386         * lib/autoconf/types.m4, lib/autotest/general.m4,
19387         * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
19388         * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
19389         m4_bregexp, m4_bpatsubst, and m4_bmatch.
19390         * doc/autoconf.texi (Redefined M4 Macros): Adjust.
19392 2001-10-08  Akim Demaille  <akim@epita.fr>
19394         * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
19396 2001-10-08  Akim Demaille  <akim@epita.fr>
19398         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
19399         * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
19400         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
19401         * tests/tools.at, tests/m4sh.at: Use it.
19402         * tests/m4sh.at: Don't rely on Autoconf macros.
19403         (DIRNAME_TEST): Also exercise the expr variant.
19404         * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
19405         preferred M4sugar extension is now `.4s'.
19406         * tests/README: Remove.
19408 2001-10-08  Akim Demaille  <akim@epita.fr>
19410         * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
19411         (m4_provide_if): this.
19412         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
19413         * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
19414         (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
19415         M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
19417 2001-10-08  Akim Demaille  <akim@epita.fr>
19419         Use `add-log-current-defun-function' for ChangeLog creation.
19420         Suggested by Tom Tromey.
19422         * lib/emacs/autotest-mode.el (autotest-mode-map): New.
19423         (autotest-mode): Adjust.
19424         * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
19425         'comment-region onto `C-c ;'.
19426         Comments are `#', not `dnl'.
19427         (autoconf-current-defun): New.
19428         (autoconf-font-lock-keywords): Recognize `m4_defun'.
19430 2001-10-08  Akim Demaille  <akim@epita.fr>
19432         * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
19433         * lib/m4sugar/m4sh.m4: here.
19434         (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
19435         * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
19436         (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
19437         include handle the m4_pattern_*, no longer push the
19438         BODY diversion nor set the /bin/sh line, AS_INIT does it.
19439         * lib/autotest/general.m4 (AT_INIT): Likewise.
19440         * tests/base.at: Adjust the tests to use AS_INIT.
19441         * tests/tools.at (AT_DATA_FORBIDDEN): New.
19442         (autoconf: forbidden tokens): Adjust to work on M4sh instead of
19443         Autoconf.
19445 2001-10-07  Paul Eggert  <eggert@twinsun.com>
19447         * doc/autoconf.texi (config.status Invocation):
19448         CONFIG_SHELL defaults to a shell that supports LINENO if available.
19450         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
19451         shell does not support LINENO, and if CONFIG_SHELL is unset or
19452         empty, and if we can find a shell that does support LINENO,
19453         then set CONFIG_SHELL to that shell and then re-execute
19454         ourselves with CONFIG_SHELL.
19456 2001-10-05  Paul Eggert  <eggert@twinsun.com>
19458         * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
19459         doesn't exist.  Remove *.tmp, as a .tmp file is created during the
19460         build of $(TESTSUITE).
19462 2001-10-05  Akim Demaille  <akim@epita.fr>
19464         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
19465         iff we are a bareword.
19466         Reported by Raja R Harinath.
19468 2001-10-05  Akim Demaille  <akim@epita.fr>
19470         * tests/m4sh.at (LINENO): New.
19471         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
19472         PATH_SEPARATOR before using it.
19473         Fix the absolute path case/esac pattern.
19474         Provide $0 as fallback for as_myself.
19475         Reported by Raja R Harinath.
19477 2001-10-05  Akim Demaille  <akim@epita.fr>
19479         * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
19480         * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
19482 2001-10-05  Akim Demaille  <akim@epita.fr>
19484         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
19485         (AS_SHELL_SANITIZE): here.  Use it.
19486         (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
19487         From Paul Eggert.
19489 2001-10-04  Akim Demaille  <akim@epita.fr>
19491         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
19492         combination of Awk and sed to replace $LINENO.
19494 2001-10-02  Paul Eggert  <eggert@twinsun.com>
19496         * doc/autoconf.texi (Limitations of Builtins): You can't use
19497         "source"; it's not portable.  Remove confusing and
19498         somewhat-incorrect example involving "." and "/".
19500         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
19501         compatibility with POSIX shells.
19503 2001-10-02  Akim Demaille  <akim@epita.fr>
19505         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
19506         instead of exec'ing to preserve $0 and $@.
19508 2001-10-01  Akim Demaille  <akim@epita.fr>
19510         * tests/testsuite (AT_INIT) <at_pass_list>: New.
19511         Don't run twice the same test.
19513 2001-10-01  Akim Demaille  <akim@epita.fr>
19515         * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
19516         No longer output the list of tests.
19517         <--list>: New option.
19518         <--full-help>: Remove.
19519         Complete the short/long options duality.
19520         Various small adjustments.
19522 2001-10-01  Akim Demaille  <akim@epita.fr>
19524         * doc/autoconf.texi: Use @kbd for user input.
19525         Always use `$' as shell prompt.
19527 2001-09-30  Paul Eggert  <eggert@twinsun.com>
19529         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
19530         Don't use nested parenthesization.  This patch was originally
19531         suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
19532         but somehow it didn't get incorporated then.
19533         * doc/autoconf.texi (Limitations of Usual Tools):
19534         Clarify remark about sed and nested parenthesization.
19536         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
19537         Report an error if the size cannot be determined even though
19538         the type exists.
19539         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
19540         Check for `expr' arithmetic overflow, and for compilation failure,
19541         and invoke a new argument $4 if either is discovered.
19542         This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
19543         (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
19545 2001-09-28  Akim Demaille  <akim@epita.fr>
19547         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
19548         * m4/lispdir.m4: New.
19549         * aclocal.m4, configure.ac: Adjust.
19551 2001-09-28  Akim Demaille  <akim@epita.fr>
19553         * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
19554         (AT_TESTED): this.
19555         (AT_INIT): More the wrapped section to where it will be expanded.
19556         Output `AT_tested' only when existing.
19557         Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
19559 2001-09-27  Akim Demaille  <akim@epita.fr>
19561         Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
19562         generates too many bug reports.
19564         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
19565         status when executing the ACTION-IF-FALSE.
19566         * tests/base.at (AC_TRY_*): Rename as...
19567         (AC_TRY_COMMAND): this.
19568         (AC_RUN_IFELSE): New.
19569         * tests/compile.at (Extensions, C keywords)
19570         (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
19571         (Broken/missing compilers, AC_PROG_CPP with warnings)
19572         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
19573         * tests/c.at (Extensions, C keywords)
19574         (Broken/missing compilers, AC_PROG_CPP with warnings)
19575         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
19576         (AC_PROG_CPP requires AC_PROG_CC): here and...
19577         * tests/fortran.at (GNU Fortran 77): there.
19578         * doc/autoconf.texi (autoconf Invocation): Fix the example:
19579         AC_TRY_RUN is about compilation, not shell commands.
19580         (Test Programs): AC_TRY_RUN works as used to be advertised.
19582 2001-09-27  Akim Demaille  <akim@epita.fr>
19584         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
19585         Raja R Harinath:
19586         Be sure to detect when $LINENO always returns the same value.
19587         Look for the original script, basename($0) is certainly not
19588         enough.
19589         Pass the CLI arguments to `$as_me.lineno'.
19591 2001-09-25  Akim Demaille  <akim@epita.fr>
19593         * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
19594         Be sure the close and reopen the LOG fd before and after using tee
19595         to extend the log.
19596         <at_tests_pattern>: Adjust to the new format of at_help_all.
19598 2001-09-23  Akim Demaille  <akim@epita.fr>
19600         * bin/autom4te.in (parse_args): There can be several invocations
19601         of --language now.
19603 2001-09-23  Akim Demaille  <akim@epita.fr>
19605         * doc/autoconf.texi (Top): Wrap in @ifnottex.
19607 2001-09-23  Akim Demaille  <akim@epita.fr>
19609         * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
19610         ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
19611         (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
19612         builddir, buildpath, top_builddir, and top_buildpath.
19613         (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
19614         the current directory.
19615         * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
19616         variables *before* changing the current directory.
19617         Skip nonexistent dirs.
19618         * doc/autoconf.texi (Preset Output Variables): Document these
19619         variables.
19621         * lib/autotest/general.m4: Do not reset AT_victims.
19622         Don't compute at_srcdir nor at_top_srcdir.
19624         * tests/tools.at: Hence use top_srcdir.
19626         * tests/Makefile.am, tests/autoconf, tests/autoheader,
19627         * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
19628         Remove.
19629         * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
19630         * tests/wrapsh.in, tests/autoupdate.in: New.
19631         * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
19632         * configure.ac: Build the position independent wrappers.
19634         * man/Makefile.am: Now that test wrappers are position
19635         independent, use them and drop dark envvar magic.
19637 2001-09-23  Akim Demaille  <akim@epita.fr>
19639         * doc/autoconf.texi (Common Shell Constructs): Rename as...
19640         (Programming in M4sh): this.
19641         Promote to @section.
19643 2001-09-23  Akim Demaille  <akim@epita.fr>
19645         * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
19646         Pass $at_debug_args to the rerun test suite.
19647         * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
19648         * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
19649         From Paul Eggert.
19651 2001-09-23  Akim Demaille  <akim@epita.fr>
19653         * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
19655 2001-09-23  Akim Demaille  <akim@epita.fr>
19657         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
19658         over-escaping.
19660 2001-09-23  Akim Demaille  <akim@epita.fr>
19662         * lib/Autom4te/General.pm (&debug): New.
19663         * bin/autom4te.in ($language): Move to...
19664         (parse_args): here.
19665         Handle --language in languages.
19666         * lib/autom4te.in (Automake-selections, Autoheader-selections)
19667         (Autoscan-selections): New.
19668         (Autoconf): Adjust.
19670 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
19672         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
19673         * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
19674         to match current versions from CVS Automake.
19676 2001-09-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
19678         * doc/autoconf.texi (Special Shell Variables): Add pdksh output
19679         for $LINENO.
19681 2001-09-22  Akim Demaille  <akim@epita.fr>
19683         * lib/autoconf/autotest.m4: Create `package.m4'.
19684         * tests/Makefile.am (package.m4): Remove.
19686 2001-09-22  Akim Demaille  <akim@epita.fr>
19688         Rely on `$LINENO' when possible instead of `__oline__'.
19690         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
19691         `$LINENO' support replacement when not supported.
19692         (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
19693         them explicitly to be sure they are not output before this section
19694         (via m4_require).  Cosmetic only.
19695         * lib/autoconf/c.m4, lib/autoconf/general.m4,
19696         * lib/autoconf/programs.m4: Replace all the occurrences of
19697         `__oline__' with `$LINENO'.
19698         * doc/autoconf.texi (Special Shell Variables): Document LINENO.
19700 2001-09-21  Tim Van Holder  <tim.van.holder@pandora.be>
19702         * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
19703         character (u: -> ue) in a code comment.
19704         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
19705         it works.
19707 2001-09-21  Akim Demaille  <akim@epita.fr>
19709         * Makefile.maint (AUTOM4TE): Neutralize autom4te.
19710         Suggested by Jim Meyering.
19712 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
19714         * lib/autoconf/programs.m4: Use extensions listed in
19715         $ac_executable_extensions when looking for programs.
19717 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
19719         * lib/autoconf/general.m4: Fix a small Englisho.
19720         * lib/autoconf/status.m4: Fix a small typo.  Handle DOS paths when
19721         setting up ac_dir_suffix and ac_top_builddir.
19722         * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
19724 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
19726         * doc/autoconf.texi (File System Conventions): Clarify the use of
19727         PATH_SEPARATOR.
19728         (Special Shell Variables[PATH_SEPARATOR]): Ditto.
19729         (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
19730         be used instead of ':'.
19731         * lib/autotest/general.m4: Replace occurrences of ':' in
19732         AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
19734 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
19736         * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
19737         arguments.  Fixed a typo.
19739 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
19741         * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
19742         $PATH.  Also set AUTOM4TE_CFG, so we can process autom4te properly.
19744 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
19746         * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
19747         * bin/autoupdate.in: Ditto.
19748         * bin/autoheader.in: Reworded a few comments.
19749         * bin/autoconf.in: Reworded help text for a few options.
19750         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
19751         * bin/autoscan.in, bin/autoupdate.in: Ditto.
19753 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
19755         * lib/Autom4te/XFile.pm (open): Simplified the error message (we
19756         already have $file).  Set output files to binary mode (helps avoid
19757         CR issues on DOSish systems).
19759 2001-09-19  Akim Demaille  <akim@epita.fr>
19761         * lib/autotest/general.m4: Englishoes.
19762         From Tim Van Holder and Alexey Mahotkin.
19764 2001-09-18  Paul Eggert  <eggert@twinsun.com>
19766         * doc/autoconf.texi (Common Shell Constructs): New node,
19767         documenting AS_DIRNAME.
19768         (Limitations of Usual Tools): Refer to it when discussing dirname.
19769         Also, update discussion of POSIX standard to reflect latest draft.
19771         * lib/autoconf/c.m4:
19772         (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
19774         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
19775         Do not pass a first argument with leading '-'
19776         to expr, by parenthesizing initial integers that might be negative.
19778         * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
19779         now merely checks whether it is an error to pass an argument
19780         to getpgrp.
19782         * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
19783         (AC_FUNC_GETPGRP): Don't bother with a runtime test.  Just check
19784         whether it is a (compile-time) error to pass an argument to
19785         getpgrp.  This simpler test supports the revised documentation,
19786         and is all that AC_FUNC_GETPGRP's users really need.
19788 2001-09-18  Akim Demaille  <akim@epita.fr>
19790         * doc/autoconf.texi (Limitations of Make) <$<>: New.
19792 2001-09-18  Akim Demaille  <akim@epita.fr>
19794         * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
19795         `{}'.
19796         * lib/autotest/general.m4 (AT_INIT): Adjust.
19798 2001-09-18  Paul Wagland  <paul@wagland.net>
19800         * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
19801         correctly.
19802         Add test for AS_BASENAME.
19803         * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
19804         added test. It now correctly handles /1/2/3/, returning '3' not ''.
19805         Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
19806         * tests/base.at: Fixed the expected responses. The old ones were
19807         one line out...
19808         * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
19809         the documentation claims it should (and how it behaved in 2.13).
19811 2001-09-18  Akim Demaille  <akim@epita.fr>
19813         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
19814         the AC_CONFIG_COMMANDS invocation.
19815         This also solves the name clash problems.
19816         Don't set the package's ID.
19817         * lib/m4sugar/Makefile.am (version.m4): Revamp.
19818         No longer to be shipped.
19819         (version.in): Remove.
19820         * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
19821         * lib/autoconf/status.m4: Adjust.
19822         Use `m4_PACKAGE_STRING'.
19823         * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
19824         the only optional argument is the name of the test suite.
19825         Expect `package.m4' to define the package signature.
19826         * lib/autom4te.in (Autotest): Add `package.m4?'.
19827         * tests/Makefile.am (package.m4): New.
19828         * tests/suite.at: ifnames is a victim.
19830 2001-09-18  Akim Demaille  <akim@epita.fr>
19832         * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
19833         AC_LIBSOURCE, AC_CONFIG_FILES.
19834         * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
19835         program version string doesn't match the package's.
19836         * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
19837         after `(cached)'.
19839 2001-09-17  Paul Eggert  <eggert@twinsun.com>
19841         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
19842         Allow expression to return any value that can fit into unsigned long
19843         (not int, as before).  Check for output errors.
19845 2001-09-17  Bruno Haible  <haible@ilog.fr>
19847         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
19848         Always include <stdio.h> and <stdlib.h>. Evaluate
19849         the expression in an extra function before these includes. Call
19850         fprintf "%d" only after ensuring the argument is of type 'int'.
19851         Reported by Wayne Chapeskie <waynec@spinnaker.com>.
19853 2001-09-17  Paul Eggert  <eggert@twinsun.com>
19855         Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
19856         or CFLAGS=-O5.  In that case, the linker has a relaxed view of
19857         fatal errors, and AC_CHECK_LIB causes it to include libraries even
19858         when they don't exist.
19860         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
19861         not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
19862         need it.
19864         * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
19865         version with the version used by fileutils 4.1, except use
19866         AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
19867         we don't need it.
19869         * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
19871 2001-09-13  Akim Demaille  <akim@epita.fr>
19873         * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
19874         _first_.
19875         Reported by Gerrit P. Haase.
19877 2001-09-13  Akim Demaille  <akim@epita.fr>
19879         * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
19880         m4_defn'ing is valid.
19882 2001-09-13  Akim Demaille  <akim@epita.fr>
19884         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
19885         * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
19886         Use it.
19888 2001-09-13  Akim Demaille  <akim@epita.fr>
19890         * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
19891         m4_match.
19892         (m4_re_escape): New.
19893         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
19894         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
19895         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
19896         Likewise.
19897         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
19898         (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
19899         * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
19900         AT_tests_all for consistency.
19901         Set at_victims.
19902         (AT_VICTIMS): Similar to AT_KEYWORDS.
19903         (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
19905 2001-09-13  Akim Demaille  <akim@epita.fr>
19907         * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
19909 2001-09-13  Akim Demaille  <akim@epita.fr>
19911         * lib/autotest/general.m4 (AT_INIT): Create and remove
19912         `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
19913         test suites can cohabit.
19915 2001-09-13  Akim Demaille  <akim@epita.fr>
19917         * tests/mktests.sh: Don't output banners for empty test files.
19919 2001-09-13  Akim Demaille  <akim@epita.fr>
19921         Test suites can be run independently of configure.
19923         * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
19924         * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
19925         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
19926         ECHO_N etc.
19927         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
19928         and at_c.
19929         * lib/autotest/general.m4: Use ECHO_*.
19931 2001-09-13  Akim Demaille  <akim@epita.fr>
19933         * bin/ifnames.in: Rewrite in Perl.
19934         * configure.ac: Don't look for AWK.
19935         * tests/tools.at (AWK portability): Remove.
19936         (Syntax of the shell scripts): Don't check ifnames.
19937         (AT_CHECK_PERL_SYNTAX): New.
19938         (Syntax of the Perl scripts): Check ifnames.
19939         * tests/ifnames: New.
19941 2001-09-13  Akim Demaille  <akim@epita.fr>
19943         * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
19944         test group titles.
19945         * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
19946         Remove all the other keywords.
19948 2001-09-10  Akim Demaille  <akim@epita.fr>
19950         * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
19951         SETUP: no longer used.
19952         Support -k, --keywords.
19953         <at_help>: Be `no', `short', or `long'.
19954         <at_help_all>: New variable.
19955         (AT_KEYWORDS): New.
19956         (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
19957         (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
19958         (_AT_CLEANUP_FILE_IF): Simplify the regexp.
19959         (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
19960         No longer fill the HELP diversion.
19961         (AT_CLEANUP): Use them.
19962         * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
19963         (m4_list_append): Remove.
19965         Spread a few keywords in the Autoconf test suite.
19967 2001-09-10  Akim Demaille  <akim@epita.fr>
19969         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
19970         PATH_SEPARATOR, let M4sh compute it.
19971         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
19972         * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
19973         Move to...
19974         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
19975         Simplify when the path is not a literal.
19976         (AS_UNAME): Use it to report PATH.
19977         * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
19978         (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
19979         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
19980         * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
19981         normalize the path, and to look for victims.
19982         * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
19983         (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
19985 2001-09-07  Akim Demaille  <akim@epita.fr>
19987         * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
19988         doesn't neutralize SIGINT, making autoconf etc. non interruptible.
19989         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
19990         related variables into `at_package_*'.
19991         * lib/autotest/general.m4 (AT_VICTIMS): New.
19992         (AT_INIT): Adjust for stand-alone/embedded test suites.
19993         (AS_MESSAGE_LOG_FD): Define and use it.
19994         * tests/suite.at (AT_VICTIMS): Use it.
19995         * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
19996         at_version.
19998 2001-09-07  Akim Demaille  <akim@epita.fr>
20000         Move toward possibly stand-alone test suites.
20002         * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
20003         in addition, it introduces useless differences in logs.
20004         (AT_INIT): Let atconfig and atlocal be both optional.
20005         Adjust PATH computation.
20006         * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
20008 2001-09-07  Akim Demaille  <akim@epita.fr>
20010         * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
20011         m4sugar/version.m4.
20013 2001-09-05  Akim Demaille  <akim@epita.fr>
20015         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
20016         to avoid GCC warnings.
20017         From Uwe Seimet.
20019 2001-09-05  Akim Demaille  <akim@epita.fr>
20021         * bin/autom4te.in: --language is -l, not -s.
20023 2001-09-05  Akim Demaille  <akim@epita.fr>
20025         Be ready to handle filenames as stupid as `dnl.at', for if even
20026         the maintainer is dumb enough to do that...
20028         * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
20029         excellence in M4 quotation: consider `__file__' is active.
20031         And BTW, when invoking m4, pass the --include in the right order:
20032         the wrong one.
20034         * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
20035         4m.
20037 2001-09-05  Akim Demaille  <akim@epita.fr>
20039         * lib/Autom4te/XFile.pm: New lib file.
20040         * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
20041         * bin/autoheader.in: Use it.
20043 2001-09-05  Akim Demaille  <akim@epita.fr>
20045         * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
20046         defined.
20048 2001-09-05  Akim Demaille  <akim@epita.fr>
20050         * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
20051         * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
20053         * bin/autoscan.in: Use `getopt' and `find_files' etc.
20054         Add -I, --include support.
20055         * doc/autoconf.texi (autoscan Invocation): Adjust.
20057 2001-09-05  Akim Demaille  <akim@epita.fr>
20059         CVS GNU M4 doesn't like `undefine(undefined)'.
20061         * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
20062         New, extracted from main.
20063         Use IO::File wherever possible.
20064         (input.m4): Be constant, use -I instead of hard coding $tmp.
20065         Therefore be a quoted heredoc.
20066         Don't invoke `_au_disable', since ac was not loaded, but just
20067         `unm4.m4'.
20069 2001-08-31  Akim Demaille  <akim@epita.fr>
20071         Version 2.52d.
20073 2001-08-31  Akim Demaille  <akim@epita.fr>
20075         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
20076         previous patch.
20077         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
20079 2001-08-31  Akim Demaille  <akim@epita.fr>
20081         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
20082         serious problems handling heredocs in heredocs.
20083         Reported by Nicolas Joly.
20085 2001-08-31  Akim Demaille  <akim@epita.fr>
20087         * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
20088         (Making testsuite Scripts): Update.
20090 2001-08-31  Akim Demaille  <akim@epita.fr>
20092         * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
20094 2001-08-31  Akim Demaille  <akim@epita.fr>
20096         * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
20097         (testsuite Scripts): There is no such thing as `atconfig.in'.
20098         And actually one diagram is missing: test suite runtime.
20100 2001-08-31  Akim Demaille  <akim@epita.fr>
20102         * lib/Autom4te/General.pm (&find_file): Browse the includes in the
20103         inverse order.
20105 2001-08-31  Akim Demaille  <akim@epita.fr>
20107         * bin/autoupdate.in (@include): `installcheck' revealed the path
20108         to m4sugar was lacking!
20110 2001-08-31  Akim Demaille  <akim@epita.fr>
20112         * man/Makefile.am (.x.1): We really have to pass
20113         autom4te_perllibdir.
20115 2001-08-31  Akim Demaille  <akim@epita.fr>
20117         * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
20118         debug scripts, in particular passing explicitly listed tests to
20119         run is stupid.
20121 2001-08-31  Akim Demaille  <akim@epita.fr>
20123         * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
20124         * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
20125         Use directly autom4te, not autoconf.
20126         * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
20128 2001-08-31  Akim Demaille  <akim@epita.fr>
20130         * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
20131         * bin/autoheader.in (%symbol): Strip arguments of macros.
20133 2001-08-31  Akim Demaille  <akim@epita.fr>
20135         * doc/autoconf.texi: Catch up -I, --include changes.
20137 2001-08-31  Akim Demaille  <akim@epita.fr>
20139         * bin/autom4te.in (&parse_args): Die on unknown languages.
20140         * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
20141         need for autoconf.
20142         Promote --include over --macrodir and other obsolete options.
20144 2001-08-31  Akim Demaille  <akim@epita.fr>
20146         * lib/Autom4te/General.pm ($version, $help, &getopt): New.
20147         * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
20148         * bin/autom4te.in ($autoconf): Pass --force.
20149         `print $out' doesn't print `$_' but `$out'.
20150         * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
20151         (autoheader): Pass --force since the test suite goes too fast for
20152         the time stamps.
20153         Adjust to the new autoheader messages.
20155 2001-08-31  Akim Demaille  <akim@epita.fr>
20157         * bin/autoheader.in: Handle the acconfig.h etc. junk files.
20158         Check the completeness of the #template.
20159         * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
20160         * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
20161         invocation.
20163 2001-08-31  Akim Demaille  <akim@epita.fr>
20165         * lib/Autom4te/General.pm (&find_file, &update_file): New.
20166         * bin/autoupdate.in, bin/autoheader.in: Adjust.
20167         Drop AC_MACRODIR dead for real.
20168         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
20169         `autoheader: `config.hin' is created'.
20170         * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
20172 2001-08-31  Akim Demaille  <akim@epita.fr>
20174         * bin/autoheader.in: Rewrite in Perl.
20175         * tests/autoheader: Adjust.
20177 2001-08-31  Akim Demaille  <akim@epita.fr>
20179         * bin/autoconf.in (--include, -I): New option.
20180         Map --localdir, --autoconf-dir onto it.
20181         Forward autom4te's options instead of interpreting them.
20182         * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
20183         There is no such envvar since the inception of autom4te.cfg.
20184         * bin/autom4te.in (&parse_args): Uniquify `@include'.
20185         * bin/autoupdate.in: Adjust, and perform more control.
20186         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
20187         * tests/autoconf: Dittowise.
20189 2001-08-31  Akim Demaille  <akim@epita.fr>
20191         * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
20192         * bin/autom4te.in (&find_file): Support `FILE?' standing for
20193         optionally `FILE'.
20194         Use -e, not -f, since /dev/null for instance is OK.
20195         (&parse_args): Adjust.
20196         * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
20198 2001-08-31  Akim Demaille  <akim@epita.fr>
20200         * configure.ac: Also find tested executables in bin.
20201         * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
20202         * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
20203         installed peer executables, only PATH is allowed to resolve it.
20204         Pass `autoconf_dir' via options, not via invisible envvars.
20205         * lib/Autom4te/General.pm (&find_peer): Remove.
20206         * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
20207         `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
20208         * man/Makefile.am: Let help2man rely on PATH instead of trying to
20209         find the executables for it.
20210         * tests/Makefile.am: Major cleanup.  Too lazy to document...
20211         * tests/atlocal.in: Remove all the obscure envvar manipulations.
20212         We only need PERL.
20213         * tests/atspecific.m4, tests/tools.at: Passing --localdir is
20214         indeed related to running the test suite, while passing
20215         --autoconf-dir and others is related to running non installed
20216         Autoconf executables.  So don't do that, leave it to...
20217         * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
20218         * tests/autoscan: New.
20219         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
20220         refer to library files: rely on --language.
20222 2001-08-29  Akim Demaille  <akim@epita.fr>
20224         * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
20225         s/--set/--language/.
20227 2001-08-29  Akim Demaille  <akim@epita.fr>
20229         * doc/autoconf.texi: Strip the @nodes.
20230         Suggested by Paul Eggert.
20231         (Initializing configure): Typo.
20233 2001-08-29  Akim Demaille  <akim@epita.fr>
20235         * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
20236         Suggested by Paul Eggert.
20238 2001-08-29  Akim Demaille  <akim@epita.fr>
20240         * Makefile.maint (do-po-update): Wget refuses to overwrite files:
20241         download in a tmp dir.
20243 2001-08-29  Akim Demaille  <akim@epita.fr>
20245         * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
20246         case insensitive OSes out there :(
20247         From Tim Van Holder.
20249 2001-08-29  Akim Demaille  <akim@epita.fr>
20251         * lib/autom4te.in: New.
20252         * lib/Makefile.am (edit, autom4te.cfg): New.
20253         * bin/autom4te.in (BEGIN): Simplify.
20254         Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
20255         (&load_configuration): New.  Use it.
20256         (&parse_args): Support --mode, --set, and --melt.
20257         * bin/autoconf.in: Simplify and adjust.
20258         * tests/Makefile.am (AUTOMAKE): Use --set.
20259         * tests/atlocal.in: Adjust.
20260         * BUGS: distcheck and check are weak.
20262 2001-08-29  Akim Demaille  <akim@epita.fr>
20264         * lib/autotest/general.m4: Use
20265                 foo=`(command) 2>/dev/null`
20266         not
20267                 foo=`command` 2>/dev/null
20268         (at-devnull): Rename as...
20269         (AT-devnull): this.
20270         (--clean): Remove AT-* files too.
20271         * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
20272         Reported by Nicolas Joly.
20274 2001-08-28  Akim Demaille  <akim@epita.fr>
20276         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
20277         quotes inside single quotes.
20278         Reported by Nicolas Joly.
20280 2001-08-28  Kevin Ryde  <user42@zip.com.au>
20282         * doc/autoconf.texi (Function Portability): Mention C right shifts.
20284 2001-08-27  Tim Van Holder  <tim.van.holder@pandora.be>
20286         * lib/autotest/general.m4: Reword some messages.
20287         (AT_INIT): Check for the `times' builtin before using it.
20288         Support test ranges as arguments to the testsuite.
20289         Have -e imply -d as the help text suggested.
20291 2001-08-27  Akim Demaille  <akim@epita.fr>
20293         * Makefile.maint: Formatting changes.
20294         (do-po-update, po-update, cvs-update, update): New targets.
20295         (AMTAR): Remove.
20297 2001-08-27  Akim Demaille  <akim@epita.fr>
20299         * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
20300         <at_cmd_line>: New.
20301         Pass it to debug-*.sh scripts.
20302         <AUTOTEST_PATH>: May contain absolute dir names.
20304 2001-08-27  Akim Demaille  <akim@epita.fr>
20306         * lib/autotest/general.m4 (AT_INIT): Log the command line.
20307         Support `VAR=VAL' as arguments.
20308         Compute PATH _after_ the options processing, so that AUTOTEST_PATH
20309         may be set via the command line.
20311 2001-08-27  Akim Demaille  <akim@epita.fr>
20313         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
20314         * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
20315         first the build dirs, then the src dirs.
20316         * configure.ac (AC_CONFIG_TESTDIR): Adjust.
20318 2001-08-27  Akim Demaille  <akim@epita.fr>
20320         * lib/autotest/general.m4 (AT_INIT): Output the definition of
20321         at_data_files earlier.
20322         (--clean, -c): New option.
20323         * tests/Makefile.am: Use this option.
20325 2001-08-27  Akim Demaille  <akim@epita.fr>
20327         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
20328         `ac_top_builddir' to mimic Automake's vocabulary, which much more
20329         readable.
20330         Adjust callers.
20331         * doc/autoconf.texi (Configuration Actions): Document the vars
20332         available in commands.
20333         Emphasize the risks of collisions in init-cmds.
20335 2001-08-27  Akim Demaille  <akim@epita.fr>
20337         * doc/autoconf.texi (Input) <AC_INIT>: Move to..
20338         (Initializing configure): this new node.
20340 2001-08-27  Akim Demaille  <akim@epita.fr>
20342         * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
20344 2001-08-27  Akim Demaille  <akim@epita.fr>
20346         * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
20347         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
20348         New file.
20349         * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
20351 2001-08-27  Akim Demaille  <akim@epita.fr>
20353         * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
20354         to...
20355         * lib/autoconf/autoheader.m4: this new file.
20356         * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
20357         (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
20358         Move to...
20359         * lib/autoconf/autoupdate.m4: this new file.
20361 2001-08-27  Akim Demaille  <akim@epita.fr>
20363         * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
20364         (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
20365         Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
20366         -> ac_dir).
20367         (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
20368         * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
20370 2001-08-27  Akim Demaille  <akim@epita.fr>
20372         * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
20373         (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
20374         (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
20375         (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
20376         (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
20377         (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
20378         (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
20379         (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
20380         (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
20381         (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
20382         (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
20383         (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
20384         (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
20385         (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
20386         (_AC_OUTPUT_SUBDIRS): Move to...
20387         * lib/autoconf/status.m4: this new file.
20388         * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
20389         * tests/Makefile.am, tests/suite.at: Adjust.
20391 2001-08-27  Akim Demaille  <akim@epita.fr>
20393         Automake 1.5.
20395         * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
20396         (AMTAR): Help automake define it.
20397         (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
20398         needed, 1.5 can have a macro and a target with the same name.
20399         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
20400         * m4/strip.m4: New.
20401         * m4/init.m4, m4/sanity.m4: Update.
20402         * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
20403         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
20404         * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
20405         * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
20407 2001-08-27  Akim Demaille  <akim@epita.fr>
20409         Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
20411         * lib/autoconf/version.in: Remove.
20412         * lib/m4sugar/version.in: New.
20413         * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
20414         Adjust callers.
20415         * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
20416         the name of the directory they're in, instead of the filename,
20417         since version.m4 is now in m4sugar, but m4_acversion must not be
20418         classified as an Autoconf macro.
20419         ($input_m4): Don't qualify the path to m4sugar.
20420         Rather, pass autoconf_dir to m4.
20421         * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
20422         * tests/suite.at: Require 2.52c.
20424 2001-08-27  Akim Demaille  <akim@epita.fr>
20426         testsuite.log should include config.log.
20428         * lib/autotest/autotest.m4: New.
20429         * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
20430         * tests/suite.at : Adjust.
20431         (AT_INIT): Log config.log.
20432         * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
20433         * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
20434         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
20435         (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
20436         of config.log on traps.
20437         (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
20438         Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
20439         for config.status'.
20440         Open the log as soon as possible.
20441         Use the same log introduction as configure's.
20443 2001-08-22  Paul Eggert  <eggert@twinsun.com>
20445         * doc/autoconf.texi (Indices): New node.
20446         Move indices out of the top level menu and into this submenu.
20448 2001-08-22  Akim Demaille  <akim@epita.fr>
20450         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
20451         AC_TRY_COMMAND.
20452         (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
20454 2001-08-22  Akim Demaille  <akim@epita.fr>
20456         * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
20457         (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
20458         (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
20459         * lib/autoconf/programs.m4: here.
20460         * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
20461         (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
20462         (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
20463         * lib/autoconf/programs.m4: here.
20464         (_AC_DECL_YYTEXT): Rename as...
20465         (_AC_PROG_LEX_YYTEXT_DECL): this.
20466         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
20467         * tests/Makefile.am, tests/suite.am: Adjust.
20469 2001-08-22  Akim Demaille  <akim@epita.fr>
20471         * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
20472         Move to...
20473         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
20474         here.
20475         * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
20476         * lib/autoconf/functions.m4: here.
20477         * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
20478         (AH_CHECK_LIB): Move to...
20479         * lib/autoconf/libs: this new file.
20480         * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
20481         (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
20482         * lib/autoconf/libs.m4: here.
20483         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
20485 2001-08-22  Akim Demaille  <akim@epita.fr>
20487         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
20488         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
20489         (AC_SITE_LOAD): Better logging of config.site.
20491 2001-08-20  Akim Demaille  <akim@epita.fr>
20493         * configure.ac (AT_CONFIG): Fix the path.
20494         * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
20495         can be used.
20497 2001-08-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
20499         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
20500         program with AC_LANG_PROGRAM before feeding it to
20501         AC_COMPILE_IFELSE.  Cleanup grep usage.
20503 2001-08-20  Akim Demaille  <akim@epita.fr>
20505         * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
20506         * NEWS, README, README-alpha, TODO, tests/README: This package is
20507         `Autoconf', not `autoconf' (the executable).
20509 2001-08-20  Akim Demaille  <akim@epita.fr>
20511         Info readers seem to need `Index' in the index node title :(
20513         * doc/autoconf.texi: Reverse the 2001-08-15 change which
20514         simplified index node names.
20516 2001-08-20  Akim Demaille  <akim@epita.fr>
20518         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
20519         arguments are not literals.
20520         * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
20521         Specify the output variables, and macros defined.
20523 2001-08-20  Akim Demaille  <akim@epita.fr>
20525         * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
20526         (Examining Syntax) <AC_TRY_COMPILE>
20527         (Examining Libraries) <AC_TRY_LINK>
20528         (Test Programs) <AC_TRY_RUN>: These macros double quote some of
20529         their arguments.
20530         Reported by Werner Lemberg.
20532 2001-08-20  Akim Demaille  <akim@epita.fr>
20534         * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
20535         top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
20536         Load atlocal late enough to dump it in the log.
20537         * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
20539 2001-08-20  Akim Demaille  <akim@epita.fr>
20541         * tests/torture.at (Configuring subdirectories): New test.
20542         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
20543         looking for.
20544         * m4/atconfig.m4: Be sure the let $[0] be expandable.
20545         (top_srcdir): Fix its computation.
20547 2001-08-20  Akim Demaille  <akim@epita.fr>
20549         * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
20550         * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
20551         test suite lives.
20552         Create `atconfig' automagically.
20553         Configure atlocal.in if present.
20554         * tests/atconfig.in: Remove.
20555         * tests/atlocal.in: New.
20556         * tests/Makefile.am: Adjust.
20558 2001-08-20  Akim Demaille  <akim@epita.fr>
20560         Huh!?!?!  There are still some user EOF tags used, which prevents
20561         their use in AC_CONFIG_COMMANDS for instance...
20563         * lib/autoconf/general.m4, lib/autoconf/specific.m4,
20564         * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
20565         `_CSEOF', or `_ATEOF', as appropriate.
20566         * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
20567         * lib/autotest/Makefile.am (check-local): Enforce this constraint.
20569 2001-08-20  Akim Demaille  <akim@epita.fr>
20571         * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
20572         * tests/semantics.at, tests/tools.at, tests/torture.at:
20573         s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
20575 2001-08-20  Akim Demaille  <akim@epita.fr>
20577         Autotest invokes M4sh's initialization.
20579         * lib/autotest/general.m4: Adjust the diversion names.
20580         (AT_INIT): Run AS_INIT.
20581         Use the BINSH diversion to invoke /bin/sh.
20582         * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
20583         * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
20585 2001-08-20  Akim Demaille  <akim@epita.fr>
20587         Let M4sh have its own diversions.
20589         * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
20590         (_m4_divert(NOTICE)): Rename as...
20591         * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
20592         (_m4_divert(HEADER-COMMENT)): these.
20593         (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
20594         (_m4_divert(NOTICE)): New, for Libtool.
20595         * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
20596         long ago with `_m4_divert(GROW)'.
20597         (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
20599 2001-08-20  Akim Demaille  <akim@epita.fr>
20601         * tests/base.at, tests/compile.at, tests/foreign.at,
20602         * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
20603         * tests/semantics.at, tests/suite.at, tests/tools.at,
20604         * tests/torture.at: Ask Autotest mode, not Autoconf mode.
20606 2001-08-20  Akim Demaille  <akim@epita.fr>
20608         * bin/autom4te.in (handle_output): Handle @__@.
20610 2001-08-20  Akim Demaille  <akim@epita.fr>
20612         * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
20613         * lib/autotest/general.m4: Adjust the license.
20615 2001-08-17  Paul Eggert  <eggert@twinsun.com>
20617         * doc/autoconf.texi (Function Portability): Mention snprintf,
20618         following up on a suggestion by Kevin Ryde.
20620 2001-08-17  Akim Demaille  <akim@epita.fr>
20622         * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
20623         `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
20625 2001-08-17  Akim Demaille  <akim@epita.fr>
20627         * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
20628         `$0.log' as for projects where testsuite is in src, we'd have
20629         testsuite.log created in src.
20631 2001-08-17  Akim Demaille  <akim@epita.fr>
20633         * bin/autom4te.in (&parse_args): Recognize --normalize.
20635 2001-08-17  Akim Demaille  <akim@epita.fr>
20637         Start implementing the AC_CHECK_HEADER transition scheme.
20639         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
20640         (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
20641         (AC_CHECK_HEADER): Use them.
20643 2001-08-17  Akim Demaille  <akim@epita.fr>
20645         * doc/autoconf.texi: Work around Texinfo buglets.
20646         (Transformation Rules): One example is enough, users are expected
20647         to have their brains on. And BTW, use DESTDIR.
20648         (dvar): New macro.  Use it.
20650 2001-08-17  Akim Demaille  <akim@epita.fr>
20652         * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
20653         * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
20654         looking for ChangeLogs.
20656 2001-08-17  Akim Demaille  <akim@epita.fr>
20658         * bin/autom4te.in: --normalize is a new option.
20659         * bin/autoconf.in: Use it.
20661 2001-08-17  Akim Demaille  <akim@epita.fr>
20663         * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
20664         * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
20666 2001-08-16  Paul Eggert  <eggert@twinsun.com>
20668         * doc/autoconf.texi, doc/install.texi: Put copyright notice at
20669         start, not at end.
20671 2001-08-15  Akim Demaille  <akim@epita.fr>
20673         * doc/Makefile.am (fu): New index, can't use fn because of defmac.
20674         Use it.
20676 2001-08-15  Akim Demaille  <akim@epita.fr>
20678         * doc/autoconf.texi (pr): New index.
20679         (prindex, findex): Use, merge, and output them.
20680         (Environment Variable Index, Output Variable Index)
20681         (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
20682         (Autotest Macro Index): Rename as...
20683         (Environment Variables, Output Variables,Preprocessor Symbols)
20684         (Autoconf Macros, M4 Macros, Autotest Macros): these.
20685         * doc/install.texi: Use @command.
20686         (Environment Variables): Rename as...
20687         (Defining Variables): this.
20689 2001-08-15  Akim Demaille  <akim@epita.fr>
20691         * doc/autoconf.texi (Function Portability): sprintf's return
20692         value.
20693         From Kevin Ryde.
20695 2001-08-15  Akim Demaille  <akim@epita.fr>
20697         * Makefile.maint (CVS): New.
20698         (local-check): Run changelog-check. last.
20699         (alpha): Don't depend upon local-check, since...
20700         (cvs-dist): depends upon it.
20702 2001-08-15  Tim Van Holder  <tim.van.holder@pandora.be>
20704         * tests/Makefile.am: Use a clean-local rule to remove
20705         autom4te.cache (it's a directory, not a file.
20706         * Makefile.am: Ditto (but maintainer-clean-local).
20708 2001-08-15  Akim Demaille  <akim@epita.fr>
20710         * bin/autom4te.in (@m4_warning): New.
20711         (&handle_m4): Use it.
20712         * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
20713         warnings are issued at each run.
20714         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
20715         is in the src tree.
20717 2001-08-15  Akim Demaille  <akim@epita.fr>
20719         * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
20720         don't waste time running `autoupdate --version' works.
20721         * tests/tools.at (autoupdating AC_PREREQ): Likewise.
20723 2001-08-13  Akim Demaille  <akim@epita.fr>
20725         * doc/autoconf.texi (ma): Rename this index as...
20726         (ac): this.
20728 2001-08-13  Akim Demaille  <akim@epita.fr>
20730         * Makefile.am: Remove dead code and dead comments.
20731         (pdf, html): New targets.
20732         * doc/autoconf.texi (Using Autotest): New chapter.
20733         * doc/Makefile.am (pdf): New targets.
20734         (CLEANFILES): Adjust.
20736 2001-08-13  Akim Demaille  <akim@epita.fr>
20738         * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
20739         duration of the test suite.
20741 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
20743         * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
20744         endianness for comparison instead of relying on AT_CHECK_ENV.
20746 2001-08-11  Paul Eggert  <eggert@twinsun.com>
20748         * doc/autoconf.texi, doc/install.texi: Add a copyright notice
20749         to the INSTALL file.
20751 2001-08-11  Paul Eggert  <eggert@twinsun.com>
20753         * NEWS: The autoconf manual now is distributed under the terms
20754         of the GNU Free Documentation License.
20756         * doc/autoconf.texi: Switch from old style copyright notice to FDL.
20757         Add an appendix "Copying This Manual" for the FDL.
20759         * doc/fdl.texi: New file, from
20760         <http://www.gnu.org/licenses/fdl.texi>.
20762         * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
20764 2001-08-10  Paul Eggert  <eggert@twinsun.com>
20766         * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
20767         ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
20768         README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
20769         m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
20770         m4/sanity.m4, tests/README, tests/aclocal.m4,
20771         tests/atspecific.m4, tests/base.at, tests/compile.at,
20772         tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
20773         tests/semantics.at, tests/suite.at, tests/tools.at,
20774         tests/torture.at: Add copyright notice.
20776         * tests/mktests.sh: Update year in copyright notice.
20778 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
20780         * tests/semantics.at (AC_C_BIGENDIAN): New test.
20782 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
20784         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
20785         ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
20786         * doc/autoconf.texi (C Compiler Characteristics): Update
20787         documentation for AC_C_BIGENDIAN.
20789 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
20791         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
20792         magic values from an object file when cross-compiling.
20793         Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
20795 2001-08-10  Akim Demaille  <akim@epita.fr>
20797         * bin/autom4te.in (&handle_output): Don't use `grep' with side
20798         effects.
20799         Suggested by Russ Allbery.
20801 2001-08-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
20803         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
20804         current $prefix to the sub-configures.
20806 2001-08-09  Tim Van Holder  <tim.van.holder@pandora.be>
20808         * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
20809         extension (needed on BeOS).  Reported by Guido van Rossum.
20811 2001-08-09  Akim Demaille  <akim@epita.fr>
20813         * bin/autom4te.in ($icache): Load it only if older than autom4te.
20815 2001-08-07  Akim Demaille  <akim@epita.fr>
20817         * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
20818         removed.
20819         (at-setup-line): Huh?  Be a variable `at_setup_line', not a file.
20820         No need to remove the files before and after the each test, before
20821         each test and at the end of the suite is enough.
20822         Display only the children `times', not the shell's.
20823         If the test failed or was skipped, at-times is not available.
20825 2001-08-07  Akim Demaille  <akim@epita.fr>
20827         Always produce testsuite.log, including when there are no
20828         failures.  This helps getting information on skipped tests, and
20829         duration of the tests.  Err, implement the latter btw.
20831         * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
20832         Dump information on the first run of each test.
20833         (AT_CLEANUP): Create `at-times' containing the duration of the
20834         test group.
20836 2001-08-07  Akim Demaille  <akim@epita.fr>
20838         The use of `dumpstat' revealed that `len' was used although it
20839         should not.  m4_text_wrap was using it, but in the Autoconf world
20840         where it is legal.  Hence (i) test M4sh in its own world, not
20841         Autoconf's, and (ii), ahem, fix the bug :)
20843         * lib/autotest/general.m4: Be sure the set good quotes, as tracing
20844         does not like `' instead of [].
20845         (AT_INIT): Forbid `^_?AT_'.
20846         And don't output such tokens.
20847         * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
20848         `script.as', and `autom4te.cache'.
20849         Remove `empty' and `macro' which are no longer used.
20850         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
20851         * tests/m4sugar.at: Use it.
20852         * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
20854 2001-08-07  Akim Demaille  <akim@epita.fr>
20856         * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
20858 2001-08-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
20860         * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
20862 2001-08-04  Akim Demaille  <akim@epita.fr>
20864         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
20865         (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
20866         AC_TRY_LINK.
20867         * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
20868         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
20869         (AC_F77_MAIN): Likewise.
20871 2001-08-04  Akim Demaille  <akim@epita.fr>
20873         Don't rely on M4sugar outputting the patterns in files, since we
20874         might process the output _without_ running m4, hence without these
20875         files.
20877         * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
20878         * bin/autom4te.in (@Request::includes): Remove, unused.
20879         (@Request::source): Rename as...
20880         (@Request::input): this.
20881         (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
20882         (&handle_output): Fetch the patterns from the traces.
20883         `$forbidden' and `$allowed' are constant: use m//o.
20884         (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
20885         (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
20887 2001-08-04  Akim Demaille  <akim@epita.fr>
20889         `autoconf && autoheader' is sped up.  Now, speed up `autoheader &&
20890         autoconf', i.e., in addition to caching traces, cache the output.
20892         * bin/autom4te.in (Request::cache): Rename as...
20893         (Request::id): this.
20894         ($cache, $icache, $tcache, $ocache): New.
20895         (&handle_m4): Save M4 output in the cache instead of $tmp.
20896         (&handle_output): Adjust.
20897         (&up_to_date_p): Check that the output cache is up to date too.
20898         (top level): Run `&handle_m4' iff force or the cache is invalid.
20899         Run `&handle_output' if the output cache is more recent.
20901 2001-08-04  Akim Demaille  <akim@epita.fr>
20903         * bin/autom4te.in ($force): New.
20904         (&parse_args, &print_usage): -f, --force is a new option.
20905         (&handle_output): CPP directives might have spaces after `#'.
20906         (&parse_args): The first file only can be frozen.
20908 2001-08-04  Akim Demaille  <akim@epita.fr>
20910         Don't let autom4te compute the `include' traces several times:
20911         first check that the trace cache file is up to date, and then
20912         compare its timestamp with that of the output.
20914         * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
20915         the preamble.  Don't require 5.005 as Autom4te::General does it,
20916         and better yet (use `use', not `require'!).
20917         * lib/Autom4te/Struct.pm: Rename the last occurrences of
20918         Class::Struct as Autom4te::Struct.
20919         * lib/Autom4te/General.pm (File::stat): Use it.
20920         (&mtime): New, export it.
20921         * bin/autom4te.in: Use it.
20922         Declare `$req' is invalid if it is outdated.
20923         Don't declare it valid before saving it if something went wrong.
20925 2001-08-04  Akim Demaille  <akim@epita.fr>
20927         Autom4te shall not encode Autoconf data, and preselecting traces
20928         must be proposed to the users.
20930         * bin/autom4te.in (@required_trace): Remove.
20931         (@preselect): New.
20932         (&parse_args, &print_usage): -p, --preselect is a new option.
20933         (&up_to_date_p): Adjust.
20934         * bin/autoconf.in: Preselect some Autoconf macros.
20936 2001-08-04  Akim Demaille  <akim@epita.fr>
20938         * tests/tools.at (autoconf --trace: user macros): Check traces on
20939         macros invoked without arguments, and macros invoked with multiple
20940         lines arguments.
20942 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
20944         * bin/autom4te.in (handle_traces): Fix rewriting of traces without
20945         arguments.
20947 2001-08-03  Akim Demaille  <akim@epita.fr>
20949         * bin/autoconf.in ($@): Work around the usual sh bug.
20950         From Nicolas Joly.
20952 2001-08-03  Akim Demaille  <akim@epita.fr>
20954         Clean up the handling of the M4 builtins tracing exception.
20956         * bin/autom4te.in (Request::request): Don't complete M4 builtins
20957         trace requests.
20958         (@m4_builtins): Rename as...
20959         (@m4_builtin): this.
20960         (%m4_builtin_alternate_name): New.
20961         (&parse_args): Complete the trace requests with alternate names.
20962         (&handle_traces): Hence no longer do it here.
20963         (&trace_requests): Remove, unused.
20965 2001-08-03  Akim Demaille  <akim@epita.fr>
20967         * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
20968         m4_if, and m4_wrap.
20970 2001-08-03  Akim Demaille  <akim@epita.fr>
20972         * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
20973         (m4_divert_pop): Dump the whole diversion stack when a diversion
20974         mismatch happens.
20975         * bin/autom4te.in (&handle_output): Remember of the first
20976         occurrence of a possibly undefined macro, not the last.
20977         Complain about the possibly undefined macros in the same order as
20978         the appear in the output.
20979         * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
20980         * tests/tools.at (autoconf: forbidden tokens, basic)
20981         (autoconf: forbidden tokens, exceptions): No longer sort
20982         autoconf's stderr, as it is now deterministic.
20983         Check that `dnl' is caught.
20985 2001-08-01  Akim Demaille  <akim@epita.fr>
20987         * configure.ac: Bump to 2.52c.
20989 2001-08-01  Akim Demaille  <akim@epita.fr>
20991         Version 2.52b.
20993         * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
20995 2001-08-01  Akim Demaille  <akim@epita.fr>
20997         Version 2.52a.
20999 2001-08-01  Akim Demaille  <akim@epita.fr>
21001         * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
21002         `die'.
21003         (&END): New.
21004         * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
21005         `END', as `Autom4te::General::END' will be triggered.
21006         * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
21007         * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
21008         system to run `mv', `rm', and `cmp'.
21010 2001-08-01  Akim Demaille  <akim@epita.fr>
21012         * lib/Autom4te/General.pm (&unique): New.
21013         * bin/autoscan.in (&output): Use it to issue trace requests once.
21015 2001-08-01  Akim Demaille  <akim@epita.fr>
21017         * lib/Autom4te/General.pm: New.
21018         * bin/autom4te.in (Autom4te::General): Use it.
21019         ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
21020         (&find_configure_ac, &find_slave): Remove.
21021         * bin/autoscan.in: Likewise.
21022         * bin/autoupdate.in: Likewise.
21024 2001-08-01  Akim Demaille  <akim@epita.fr>
21026         * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
21027         * autoheader.in, autoreconf.in, autoupdate.in: Move to...
21028         * bin: here, new directory.
21029         * lib/Autoconf: Rename as...
21030         * lib/Autom4te: this, to please case insensitive junkie OSes.
21032 2001-08-01  Akim Demaille  <akim@epita.fr>
21034         * autom4te.in ($m4): Handle the --nesting-limit.
21035         * autoconf.in (M4): Remove.
21037 2001-08-01  Akim Demaille  <akim@epita.fr>
21039         * autoconf.in ($AWK): Remove, no longer used.
21040         * test/tools.at: Use AT_CHECK_AUTOCONF.
21041         (AWK portability): Remove, for autoconf no longer uses AWK.
21042         (Syntax of the Perl scripts): New.
21043         * configure.ac: autoconf no longer needs an AWK with a good
21044         regexp engine.
21045         Use a static test on AC_PACKAGE_VERSION.
21046         * autom4te.in (&up_to_date_p): Output depends on the arguments.
21047         * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
21048         * tests/atconfig.in (PERL): New.
21050 2001-08-01  Akim Demaille  <akim@epita.fr>
21052         * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
21053         (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
21054         (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
21055         (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
21056         (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
21057         (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
21058         (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
21059         (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
21060         (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
21061         (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
21062         (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
21063         (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
21064         (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
21065         * lib/autoconf/c.m4: here, new file.
21067         * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
21068         (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
21069         (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
21070         (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
21071         (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
21072         (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
21073         (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
21074         (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
21075         (AC_F77_FUNC): Move to...
21076         * lib/autoconf/fortran.m4: here, new file.
21078 2001-08-01  Akim Demaille  <akim@epita.fr>
21080         * acfunctions.m4: Rename as...
21081         * lib/autoconf/functions.m4: this.
21082         * acgeneral.m4: Rename as...
21083         * lib/autoconf/general.m4: this.
21084         * acheaders.m4: Rename as...
21085         * lib/autoconf/headers.m4: this.
21086         * aclang.m4: Rename as...
21087         * lib/autoconf/lang.m4: this.
21088         * acoldnames.m4: Rename as...
21089         * lib/autoconf/oldnames.m4: this.
21090         * acspecific.m4: Rename as...
21091         * lib/autoconf/specific.m4: this.
21092         * actypes.m4: Rename as...
21093         * lib/autoconf/types.m4: this.
21094         * autoconf.m4: Rename as...
21095         * lib/autoconf/autoconf.m4: this.
21097         * m4sugar.m4: Rename as...
21098         * lib/m4sugar/m4sugar.m4: this.
21099         * m4sh.m4: Rename as...
21100         * lib/m4sugar/m4sh.m4: this.
21102         * tests/atgeneral.m4: Rename as...
21103         * lib/autotest/general.m4: this.
21105         * acfunctions: Rename as...
21106         * lib/autoscan/functions: this.
21107         * acheaders: Rename as...
21108         * lib/autoscan/headers: this.
21109         * acidentifiers: Rename as...
21110         * lib/autoscan/identifiers: this.
21111         * aclibraries: Rename as...
21112         * lib/autoscan/libraries: this.
21113         * acmakevars: Rename as...
21114         * lib/autoscan/makevars: this.
21115         * acprograms: Rename as...
21116         * lib/autoscan/programs: this.
21118 2001-08-01  Akim Demaille  <akim@epita.fr>
21120         * doc/autoconf.texi: Moving/deleting open files is not portable.
21121         Portability issues for `.' (source), and more information about sed.
21123 2001-07-25  Steven G. Johnson  <stevenj@alum.mit.edu>
21125         * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
21126         which has a special meaning and is not a reference to libibmil.a.
21127         Reported by Matteo Frigo.
21129 2001-07-25  Pavel Roskin  <proski@gnu.org>
21131         * autom4te.in (mktmpdir): Strip trailing newline from mktemp
21132         output.
21134 2001-07-25  Akim Demaille  <akim@epita.fr>
21136         * autoconf.in: Try to define the variables before using them.
21137         * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
21138         instead of `$perllibdir'.
21139         * tests/atconfig.in ($autom4te_perllibdir): Export it.
21141 2001-07-25  Akim Demaille  <akim@epita.fr>
21143         * autoconf.in (ac_LF_and_DOT): Remove, unused.
21145 2001-07-24  Akim Demaille  <akim@epita.fr>
21147         Let autoconf use autom4te for traces.
21149         * autoconf.in ($task, task trace): Remove, merely pass --trace to
21150         autom4te.
21151         * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
21152         (Because I found no way for autom4te to accept `-').
21153         * autom4te.in (&Request::request): Beware of M4 builtins.
21154         (END): Don't try to remove the content of an empty dir.
21155         (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
21156         (&handle_output): Set a default value to `$forbidden'.
21157         * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
21158         ($autoconf): Pass --debug and --verbose.
21159         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
21160         cache.
21162 2001-07-24  Akim Demaille  <akim@epita.fr>
21164         Let autoconf use autom4te to create configure.
21166         * autoconf.in ($automate): New var.
21167         (task script): Use autom4te.
21168         * autom4te.in (File::Spec): Use it.
21169         (&find_file): New.
21170         (&parse_args): --warning is -W, not -w.
21171         Find the top level files.
21172         (&handle_m4): Pass the warnings flags.
21173         Don't report verbosely m4's failures, unless requested.
21174         (&handle_output): Don't complain for forbidden tokens in comments.
21175         Be sure to report all the forbidden tokens within a single line.
21176         (&trace_format_to_m4): Preserve `$_'.
21177         (&handle_traces): Sort the output macros.
21178         (&up_to_date_p): Find the files before trying to get its time stamp.
21180 2001-07-24  Akim Demaille  <akim@epita.fr>
21182         * Makefile.am: Ship, build and install Autom4te.
21183         (SUBDIRS): Add lib.
21184         * lib/Autoconf/Struct.pm: New, from Automake 1.5.
21185         * configure.in: Require Perl.
21186         * man/autom4te.in: New.
21188 2001-07-19  Paul Eggert  <eggert@twinsun.com>
21190         * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
21191         example, rather than (exit 1); exit (which isn't portable).
21193 2001-07-18  Akim Demaille  <akim@epita.fr>
21195         Version 2.52.
21197 2001-07-18  Akim Demaille  <akim@epita.fr>
21199         The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
21200         was run, while they are needed also when it is expanded.
21201         Reported by Nicolas Joly.
21203         * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
21204         (AC_LANG_PROGRAM(C)): Use it instead of depending upon
21205         AC_F77_DUMMY_MAIN being expanded.
21207 2001-07-18  Akim Demaille  <akim@epita.fr>
21209         * configure.in: Bump to 2.51a.
21211 2001-07-17  Akim Demaille  <akim@epita.fr>
21213         Version 2.51.
21215 2001-07-17  Akim Demaille  <akim@epita.fr>
21217         * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
21218         Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
21220 2001-07-17  Akim Demaille  <akim@epita.fr>
21222         The runtime test for AC_FUNC_GETPGRP fails when prototypes are
21223         used.  Well, then use the prototypes when you can, and runtime as
21224         a last resort.
21225         Reported by Artur Frysiak
21227         * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
21228         (AC_FUNC_GETPGRP): Use it.
21229         First try to compile with 0-ary or 1-ary calls.
21231 2001-07-17  Akim Demaille  <akim@epita.fr>
21233         * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
21234         replacement type.
21235         From Paul Eggert.
21237 2001-07-17  Akim Demaille  <akim@epita.fr>
21239         * Makefile.maint: Sync. with cppi 1.10.
21241 2001-07-17  Akim Demaille  <akim@epita.fr>
21243         * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
21244         AC_F77_DUMMY_MAIN has been run.
21245         From Pavel Roskin and Steven G. Johnson.
21247 2001-07-17  Akim Demaille  <akim@epita.fr>
21249         * configure.in: Rename as...
21250         * configure.ac: this.
21252 2001-07-17  Akim Demaille  <akim@epita.fr>
21254         * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
21255         rules.
21256         From Marc Espie.
21257         * Makefile.maint (release-archive-dir): Rename as...
21258         (release_archive_dir): this, so that it can be specialized in
21259         Makefile.
21261 2001-07-14  Akim Demaille  <akim@epita.fr>
21263         * configure.in: Bump to 2.50d.
21265 2001-07-14  Akim Demaille  <akim@epita.fr>
21267         Version 2.50c.
21268         * Makefile.maint (alpha): Typo.
21270 2001-07-14  Akim Demaille  <akim@epita.fr>
21272         * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
21274 2001-07-14  Akim Demaille  <akim@epita.fr>
21276         * config/config.guess, config/config.sub, config/texinfo.tex
21277         * doc/standards.texi, doc/make-stds.texi: Update.
21279 2001-07-14  Akim Demaille  <akim@epita.fr>
21281         * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
21283 2001-07-14  Akim Demaille  <akim@epita.fr>
21285         * Makefile.maint (maintainer-check): Rename as...
21286         (maintainer-distcheck): this.
21287         (changelog-check, static-check): New.
21288         Use them.
21290 2001-07-14  Kevin Ryde  <user42@zip.com.au>
21292         * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
21293         for CXX is g++, not gcc.
21295 2001-07-14  Akim Demaille  <akim@epita.fr>
21297         * doc/autoconf.texi (Files): New subsection.
21299 2001-07-14  Akim Demaille  <akim@epita.fr>
21301         * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
21302         of...
21303         (Generic Compiler Characteristics): this.
21304         (C++ Compiler): New subsection.
21306 2001-07-14  Akim Demaille  <akim@epita.fr>
21308         * autoscan.in: Use IO::File.
21309         Adjust all the routines to use it.
21310         ($log): New file (autoscan.log).
21311         (output): Dump detailed logs into $log, and a shortened version to
21312         stderr.
21313         (&scan_makefile): Refine the regexp catching tokens in the code.
21314         * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
21315         and the `configure.ac' checking feature.
21317 2001-07-12  Akim Demaille  <akim@epita.fr>
21319         For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
21320         Reported by Michael Elizabeth Chastain.
21322         * autoconf.in: Refuse such AWK.
21323         * configure.in: Likewise.
21324         * Makefile.am (acversion.m4): Do not use move-if-change this file
21325         has dependencies.
21326         * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
21328 2001-07-10  Jens Petersen  <petersen@redhat.com>
21330         * autoscan.in (&scan_makefile): Improve programs regexp to parse
21331         things like "g++", "file.c" and "some-conf" as tokens.
21332         (&scan_file): Match C++ files extensions.
21333         If the filename extension is C++ then ask for c++.
21335 2001-07-05  Steven G. Johnson  <stevenj@alum.mit.edu>
21337         * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
21338         AC_TRY_LINK_FUNC, to check whether defining a dummy
21339         main-like routine is needed for linking with F77 libs.
21341 2001-07-05  Pavel Roskin  <proski@gnu.org>
21343         * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
21344         after using break.
21345         (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
21346         linking.
21348 2001-07-05  Akim Demaille  <akim@epita.fr>
21350         * Makefile.am (move_if_change): New.  Use it instead of `mv'.
21351         (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
21352         Makes' lives.
21353         Reported by Nicolas Joly.
21355 2001-07-04  Akim Demaille  <akim@epita.fr>
21357         * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
21358         up.
21359         * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
21360         warnings from compilers.
21361         * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
21362         for all the compilers, not only GNU.  Hence move from here...
21363         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
21365 2001-07-04  Akim Demaille  <akim@epita.fr>
21367         * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
21368         (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
21369         AC_COMPILE_IFELSE.
21371 2001-07-04  Akim Demaille  <akim@epita.fr>
21373         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
21374         the ``strings.h'' change claimed below.
21376 2001-07-04  Akim Demaille  <akim@epita.fr>
21378         * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
21380 2001-07-04  Akim Demaille  <akim@epita.fr>
21382         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
21383         strings.h if usable with string.h.
21384         Suggested by Paul Eggert.
21386 2001-07-04  Akim Demaille  <akim@epita.fr>
21388         * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
21389         From Jens Petersen.
21391 2001-07-03  Akim Demaille  <akim@epita.fr>
21393         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
21394         etc. in the log.
21396 2001-07-03  Akim Demaille  <akim@epita.fr>
21398         * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
21399         compiler, not the preprocessor.
21400         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
21401         dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
21402         the right thing.
21403         * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
21404         earlier if there are.
21406 2001-07-03  Akim Demaille  <akim@epita.fr>
21408         * autoscan.in ($initfile): Remove.
21409         (&find_file): Rename as...
21410         (&scan_file): this.
21411         Immediately scan the current file, instead of gathering them, and
21412         later having them handled by &scan_files.
21413         (&scan_files): Merely invoke Find::File.
21414         Adjust.
21416 2001-07-02  Akim Demaille  <akim@epita.fr>
21418         * autoscan.in: Formatting changes, matching the invocation order.
21419         (File::Find): Use it instead of Perl 4's `find.pl'.
21420         (&wanted): Rename as...
21421         (&find_file): this.
21423 2001-07-01  Pavel Roskin  <proski@gnu.org>
21425         * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
21426         break in the argument to AC_TRY_LINK_FUNC.
21427         (AC_F77_MAIN): Remove conftest* after using break in the
21428         argument to AC_TRY_LINK.
21430 2001-07-01  Steven G. Johnson  <stevenj@alum.mit.edu>
21432         Add alternate 'main' routine detection for linking C/C++ with Fortran,
21433         fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
21435         * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
21436         dummy alternate main is required even if the user provides her own
21437         'main'.
21438         (AC_F77_MAIN): New macro to detect whether it is possible to
21439         provide an alternate 'main' function name, using the 'main' from
21440         the Fortran libraries.
21441         (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
21442         cross-language link tests can be performed successfully.
21443         (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN.  Also put $FLIBS
21444         after $LIBS, for consistency; this should be the general rule since
21445         the user may want to link to Fortran libraries that require $FLIBS.
21446         * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
21448 2001-06-29  Pavel Roskin  <proski@gnu.org>
21450         * atgeneral.m4 (AT_CHECK): Add a newline to the end of
21451         at-stdout and at-stderr instead of removing the newline
21452         from the echo output, which is not guaranteed to work.
21454 2001-06-28  Jens Petersen  <petersen@redhat.com>
21456         * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
21457         confdefs.h when non-zero.
21459 2001-06-28  Akim Demaille  <akim@epita.fr>
21461         * configure.in: Bump to 2.50c.
21463 2001-06-26  Akim Demaille  <akim@epita.fr>
21465         Version 2.50b.
21467 2001-06-26  Akim Demaille  <akim@epita.fr>
21469         Version 2.50a.
21471 2001-06-25  Pavel Roskin  <proski@gnu.org>
21473         * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
21474         argument, AUTOCONF-FLAGS.
21475         * tests/mktests.sh (update_exclude_list): Add
21476         AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
21477         * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
21478         AC_FUNC_WAIT3 with "-W no-obsolete".
21480 2001-06-25  Akim Demaille  <akim@epita.fr>
21482         * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
21484 2001-06-25  Akim Demaille  <akim@epita.fr>
21486         * autoscan.in (%macro): Now maps from word to list of macros.
21487         (&init_tables): Die when a word which is already handled by
21488         explicit macros is mapped to the default macro.
21489         (&print_unique): Remove, inlined in...
21490         (&output_kind): here.
21491         (File::Basename): Use it.
21492         (&output): Sort the CONFIG_FILES.
21493         * acheaders: Normalize.
21494         * acfunctions: Likewise.
21496 2001-06-25  Akim Demaille  <akim@epita.fr>
21498         * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
21499         characteristics in the logs.
21500         Suggested by Mo DeJong.
21502 2001-06-24  Akim Demaille  <akim@epita.fr>
21504         * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
21505         (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
21506         * doc/autoconf.texi (Autoconf 2.13): New section.
21508 2001-06-24  Akim Demaille  <akim@epita.fr>
21510         * autoconf.in (Task traces): Separate the error messages from the
21511         traces to improve robustness.
21513 2001-06-23  Akim Demaille  <akim@epita.fr>
21515         * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
21516         three as failures are unlikely, and speed matters.
21518 2001-06-23  Akim Demaille  <akim@epita.fr>
21520         * doc/autoconf.texi (Redefined M4 Macros): New.
21522 2001-06-23  Akim Demaille  <akim@epita.fr>
21524         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
21525         inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
21526         5.3.
21528 2001-06-23  Paolo Bonzini  <bonzini@gnu.org>
21530         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
21531         config.status targets to after the evaluation of the INIT-CMDS.
21532         Double quote config.status targets (used to be single quoted).
21534 2001-06-23  Akim Demaille  <akim@epita.fr>
21536         * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
21537         Check the content of the created file.
21538         Check the ./config.status command line invocation.
21540 2001-06-23  Akim Demaille  <akim@epita.fr>
21542         * tests/foreign.at (Libtool): Reject prehistoric versions.
21544 2001-06-23  Akim Demaille  <akim@epita.fr>
21546         * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
21547         preexisting files matching a.*.
21549 2001-06-23  Akim Demaille  <akim@epita.fr>
21551         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
21552         stderr.
21553         * doc/autoconf.texi (AC_ARG_VAR): Update.
21555 2001-06-21  Akim Demaille  <akim@epita.fr>
21557         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
21558         precious variables have changed.
21559         * tests/torture.at (AC_ARG_VAR): Adjust.
21561 2001-06-21  Akim Demaille  <akim@epita.fr>
21563         ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
21564         but some sed choke on multiple `;', and other tools (e.g.,
21565         Automake), include the separator themselves.
21567         * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
21569 2001-06-19  Tim Van Holder  <tim.van.holder@pandora.be>
21571         * doc/autoconf.texi (Functions Portability): Rename as...
21572         (Function Portability): this.
21573         (Function Portability): Document potential problems with unlink().
21575 2001-06-19  Paul Eggert  <eggert@twinsun.com>
21577         * NEWS, doc/autoconf.texi: Document quadrigraphs.
21579 2001-06-18  Akim Demaille  <akim@epita.fr>
21581         * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
21583 2001-06-18  Ruediger Kuhlmann  <info@ruediger-kuhlmann.de>
21585         * acfunctions.m4: (AC_FUNC_VFORK) rename as...
21586         (_AC_FUNC_VFORK): this.
21587         Remove AC_DEFINEs and don't guess cross-compilation values.
21588         (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
21589         (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
21590         define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
21591         vfork doesn't work.
21592         Guess values if cross-compiling, but warn.
21593         * acfunctions: Add AC_FUNC_FORK.
21594         * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
21595         and vfork appropriately.
21597 2001-06-18  Akim Demaille  <akim@epita.fr>
21599         * doc/autoconf.texi (Functions Portability): New section.
21601 2001-06-18  Akim Demaille  <akim@epita.fr>
21603         * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
21604         in $M4.
21605         Suggested by Andreas Schwab.
21607 2001-06-18  Akim Demaille  <akim@epita.fr>
21609         * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
21610         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
21611         (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
21612         (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
21613         Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
21614         and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
21615         (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
21616         the converse).
21618 2001-06-18  Akim Demaille  <akim@epita.fr>
21620         * doc/autoconf.texi (ms): New index.
21621         (Macro Index): Rename as...
21622         (Autoconf Macro Index): this.
21623         (M4 Macro Index): New appendix.
21624         (Programming in M4): New chapter.
21625         Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
21626         (Quoting): Rename as...
21627         (M$ Quotation): this.
21628         Be part of `Programming in M4).
21630 2001-06-18  Nicolas Joly  <njoly@pasteur.fr>
21632         * tests/torture.at (AC_ARG_VAR): Set variables and export them
21633         in separate statements for compatibility with Tru64 v5.1.
21635 2001-06-17  Akim Demaille  <akim@epita.fr>
21637         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
21638         current values of the precious variables, not the previously
21639         cached values.
21640         Pass precious variables which are set to config.status.
21641         * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
21642         * tests/torture.at (AC_ARG_VAR): New.
21644 2001-06-15  Paul Eggert  <eggert@twinsun.com>
21646         * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
21647         AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
21648         and explain why and how to replace them.
21649         * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
21650         * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
21652 2001-06-15  Akim Demaille  <akim@epita.fr>
21654         `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
21655         Reported by Bruno Haible.
21657         * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
21658          (_AC_ARG_VAR_PRECIOUS): to here.
21660 2001-06-15  Pavel Roskin  <proski@gnu.org>
21662         * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
21663         an unused pointer use cast to this type and `if' statement to
21664         avoid warnings from the compiler.
21665         (AC_HEADER_TIME): Likewise.
21666         * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
21667         in `if' statement to avoid warnings from the compiler. Declare
21668         ac_aggr static to avoid the need to initialize it.
21670 2001-06-14  Akim Demaille  <akim@epita.fr>
21672         * doc/autoconf.texi (Portable Shell): Move to follow `Writing
21673         Macros'.
21675 2001-06-13  Akim Demaille  <akim@epita.fr>
21677         * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
21678         Suggested by Alexander Mai.
21680 2001-06-13  Akim Demaille  <akim@epita.fr>
21682         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
21683         sys/types.h and sys/stat.h, and check for them.
21685 2001-06-13  Akim Demaille  <akim@epita.fr>
21687         * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
21688         INCLUDES.
21690 2001-06-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
21692         * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
21693         succeeds and only try adding libdnet upon a failure.
21695 2001-06-12  Akim Demaille  <akim@epita.fr>
21697         * autoscan.in (&output_kind): Output the comment only if it exists.
21698         (%kind_comment): Add entry for `programs'.
21699         (&output_programs): Use &output_kind.
21700         (&output_functions, &output_identifiers, &output_headers)
21701         (&output_programs): Inline, and remove.
21703 2001-06-12  Akim Demaille  <akim@epita.fr>
21705         * autoscan.in (%kind_comment): New.
21706         (output_kind): New.
21707         (output_functions, output_identifiers, output_headers): Use it.
21709 2001-06-12  Akim Demaille  <akim@epita.fr>
21711         * autoscan.in (&print_unique): Take `$kind' and `$word' as
21712         arguments, to factor indirections into `%macro' and `%used'.
21713         (%generic_macro): Fix a typo.
21715 2001-06-12  Akim Demaille  <akim@epita.fr>
21717         * aclibraries: New.
21718         * autoscan.in (@kinds): Add `libraries'.
21719         Use `@kinds' instead of hard coded lists.
21720         (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
21721         Remove, replaced by...
21722         (%used): this.
21724 2001-06-12  Akim Demaille  <akim@epita.fr>
21726         * autoscan.in (%functions_macros %headers_macros)
21727         (%identifiers_macros %programs_macros %makevars_macros): Remove,
21728         replaced by...
21729         (%macro): New.
21731 2001-06-11  Raja R Harinath  <harinath@cs.umn.edu>
21733         * aclang.m4 (AC_NO_EXECUTABLES): Override
21734         _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
21736 2001-06-11  Akim Demaille  <akim@epita.fr>
21738         * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
21739         trailing new line.
21740         Reported by Andreas Schwab.
21742 2001-06-11  Akim Demaille  <akim@epita.fr>
21744         * Makefile.am, Makefile.maint: Typos.
21746 2001-06-09  Akim Demaille  <akim@epita.fr>
21748         * doc/autoconf.texi (Here-Documents): New section, gathering
21749         documentation about here-documents.
21750         Use `href', not `uref', and other changes.
21752 2001-06-09  Akim Demaille  <akim@epita.fr>
21754         * doc/autoconf.texi (Portable Shell Programming): Promoted as a
21755         chapter.
21757 2001-06-09  Akim Demaille  <akim@epita.fr>
21759         * doc/autoconf.texi (Limitations of Builtins): Complete the
21760         description of the here-docs penalties with Alexandre Oliva's
21761         explanations.
21763 2001-06-01  Paul Eggert  <eggert@twinsun.com>
21765         * doc/autoconf.texi: Talk about here documents and speedups.
21766         Do not use "echo" on arbitrary strings.
21767         Spell "here-documents" consistently with the standard.
21769 2001-06-09  Akim Demaille  <akim@epita.fr>
21771         * doc/autoconf.texi (Concept Index): Introduce it.
21772         Regenerate the menus.
21774 2001-06-09  Akim Demaille  <akim@epita.fr>
21776         * Makefile.maint, GNUmakefile: New, from Jim Meyering.
21777         * config/prev-version.txt: New.
21778         * config/move-if-change: New, for GNU libc.
21780 2001-06-06  Pavel Roskin  <proski@gnu.org>
21782         * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
21784 2001-06-06  Akim Demaille  <akim@epita.fr>
21786         * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
21787         properly when $1 is not a literal.
21788         Fixes PR Autoconf/187, reported by Bram Moolenaar.
21790 2001-06-06  Akim Demaille  <akim@epita.fr>
21792         Invoking AC_COPYRIGHT before AC_INIT fails.
21794         * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
21795         * acgeneral.m4 (_m4_divert(VERSION_FSF))
21796         (_m4_divert(VERSION_USER)): New.
21797         (AC_COPYRIGHT): $2 is the diversion to use.
21798         (_AC_INIT_COPYRIGHT): Use the FSF diversion.
21799         (AC_INIT): Remove dead comments as now it's commutative.
21801 2001-06-06  Akim Demaille  <akim@epita.fr>
21803         * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
21804         PR autoconf/187.
21806 2001-06-05  Akim Demaille  <akim@epita.fr>
21808         * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
21809         can be empty.
21810         `*dir' variables cannot be NONE.
21811         Reported by Mark Kettenis.
21813 2001-06-05  Paul Eggert  <eggert@twinsun.com>
21815         * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
21817 2001-06-04  Akim Demaille  <akim@epita.fr>
21819         * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
21820         (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
21821         (AC_TR_SH): Move as...
21822         * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
21823         (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
21824         (AS_TR_SH): these.
21825         (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
21826         (_AS_TR_SH_PREPARE): New.
21827         (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
21828         * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
21830 2001-06-02  Akim Demaille  <akim@epita.fr>
21832         * Makefile.am (.m4.m4f): Pass the options first.
21833         Fixes PR autoconf/182.
21835 2001-06-02  Nathan Sidwell  <nathan@codesourcery.com>
21837         GNU getopt, when POSIXLY_CORRECT does not permute options and
21838         arguments.  So pass the options first.
21839         Fixes PR autoconf/184.
21841         * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
21842         (run_m4): Remove files.
21843         (run_m4f): Remove.
21844         Update remainder of script to use them.
21845         (for warning in): Do not use a literal comma as it will not be
21846         split by IFS.
21848 2001-06-02  Christian Marquardt  <marq@gfz-potsdam.de>
21850         * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
21851         Fortran compilers to check.
21852         (_AC_PROG_F77_V): Add '-###' as a possible option to print
21853         information on library and object files.
21854         (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
21855         to check.
21857 2001-06-02  Akim Demaille  <akim@epita.fr>
21859         * autom4te.in (Request::@request): Declare with `vars', not `my',
21860         as it prevents updates via `do FILENAME'.
21862 2001-06-02  Akim Demaille  <akim@epita.fr>
21864         * configure.in (standards_texi): Remove, dead code.
21866 2001-06-02  Akim Demaille  <akim@epita.fr>
21868         * autom4te.in: New.
21870 2001-06-02  Pavel Roskin  <proski@gnu.org>
21872         * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
21873         for signals other than 0 - exit with code 1.
21874         * m4sh.m4 (AS_TMPDIR): Likewise.
21875         * autoconf.in: Likewise. Also don't rely on exit == exit $?.
21876         * autoheader.in: Likewise.
21877         * autoreconf.in: Likewise.
21878         * tests/torture.at (Signal handling): New test for the above.
21880 2001-06-01  Akim Demaille  <akim@epita.fr>
21882         * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
21883         message.
21885 2001-05-31  Akim Demaille  <akim@epita.fr>
21887         * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
21888         Add copyright and comments.
21889         * acheaders: Add stdint.h.
21890         Suggested by Paul Eggert.
21892 2001-05-31  Akim Demaille  <akim@epita.fr>
21894         * atgeneral.m4 (AT_INIT): Use $SHELL.
21895         * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
21897 2001-05-31  Akim Demaille  <akim@epita.fr>
21899         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
21900         stdint.h.
21901         From Paul Eggert and Lars Hecking.
21903 2001-05-31  Akim Demaille  <akim@epita.fr>
21905         * tests/base.at: Adjust line numbers in error messages.
21907 2001-05-31  Akim Demaille  <akim@epita.fr>
21909         * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
21910         to emit the bangshe line.
21911         Reported by David Carter.
21913 2001-05-30  Steven G. Johnson  <stevenj@alum.mit.edu>
21915         * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
21916         Fortran (95) compilers to check.
21918 2001-05-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
21920         * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
21921         Macro Archive URL.
21923 2001-05-23  Pavel Roskin  <proski@gnu.org>
21925         * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
21926         _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
21927         (AC_PROG_CXXCPP): Likewise.
21929 2001-05-22  Akim Demaille  <akim@epita.fr>
21931         * config: New directory.
21932         * configure.in: AC_CONFIG_AUX_DIR it.
21933         * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
21935 2001-05-22  Akim Demaille  <akim@epita.fr>
21937         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
21938         * autoupdate.in: Specify the Emacs mode.
21939         * acversion.m4.in: Rename as...
21940         * acversion.m4: this.
21941         * tests/Makefile.am (CLEANFILES): More garbage.
21943 2001-05-22  Akim Demaille  <akim@epita.fr>
21945         * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
21946         Rename as...
21947         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
21948         these.
21950 2001-05-21  Akim Demaille  <akim@epita.fr>
21952         * configure.in: Bump to 2.50a.
21955         -----
21957         Local Variables:
21958         coding: utf-8
21959         End:
21961         Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
21962         2009, 2010 Free Software Foundation, Inc.
21964         This program is free software: you can redistribute it and/or
21965         modify it under the terms of the GNU General Public License as
21966         published by the Free Software Foundation, either version 3 of the
21967         License, or (at your option) any later version.
21969         This program is distributed in the hope that it will be useful,
21970         but WITHOUT ANY WARRANTY; without even the implied warranty of
21971         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21972         General Public License for more details.
21974         You should have received a copy of the GNU General Public License
21975         along with this program.  If not, see
21976         <http://www.gnu.org/licenses/>.