Try to update config.cache atomically; respect symlinks.
[autoconf.git] / ChangeLog
blob02308674209c913de9997fba21e69466ac2718e0
1 2010-08-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3         Try to update config.cache atomically; respect symlinks.
4         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use `mv -f' to update
5         the cache file if it is a regular file and not a symlink.  Move
6         first to temporary name in the target directory if not in the
7         current directory for atomicity across mount points.
8         * tests/base.at (AC_CACHE_CHECK): Try symlinked cache file.
9         * doc/autoconf.texi (Cache Files): Leftover temporary cache
10         files may be deleted by the user.
11         * NEWS: Update.
13 2010-08-27  Eric Blake  <eblake@redhat.com>
15         m4sh: protect LINENO against stray macro
16         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Double quote entire
17         sed script, to avoid issue uncovered by automake testsuite where
18         'b' was an m4 macro that broke execution on dash.
19         Reported by Stefano Lattarini.
21         m4sh: assume ${a:-b} support
22         * tests/m4sh.at (Null variable substitution): New test.
23         * doc/autoconf.texi (Shell Substitutions) <${var:-value}>: Mention
24         that m4sh guarantees support.
25         (Limitations of Usual Tools) <mktemp>: Use it.
26         * lib/m4sugar/m4sh.m4 (AS_LINENO_POP, AS_VAR_IF, AS_TMPDIR):
27         Exploit use of colon for smaller files.
29 2010-08-26  Eric Blake  <eblake@redhat.com>
31         docs: document m4_define_default
32         * doc/autoconf.texi (Conditional constructs) <m4_define_default>:
33         Document it, since gnulib wants to use it.
34         * NEWS: Mention this.
36         autoconf: warn if AC_*_IFELSE lacks complete program
37         * lib/autoconf/lang.m4 (AC_LANG_DEFINES_PROVIDED): New macro.
38         (AC_LANG_SOURCE): Call it.
39         (AC_LANG_CONFTEST): Add warning if new macro is not called.
40         * lib/autoconf/c.m4 (_AC_LANG_OPENMP): Add missing AC_LANG_SOURCE.
41         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM, AC_FC_FIXEDFORM)
42         (AC_FC_LINE_LENGTH, __AC_FC_NAME_MANGLING): Intentionally bypass
43         AC_LANG_SOURCE.
44         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Likewise.
45         * tests/compile.at (AC_COMPILE_IFELSE): New test.
46         * doc/autoconf.texi (Generating Sources) <AC_LANG_CONFTEST>:
47         Document new warning.
48         <AC_LANG_DEFINES_PROVIDED>: Document new macro.
49         <AC_LANG_SOURCE>: Document use of new macro.
50         * NEWS: Document the improvement.
51         Suggested by Bruno Haible.
53         autoconf: fix regression in AC_FUNC_SELECT_ARGTYPES
54         * lib/autoconf/functions.m4 (AC_FUNC_SELECT_ARGTYPES): Fix
55         quoting; regression from yesteray leaked '' into default value.
56         Reported by Ralf Wildenhues.
58         docs: mention another issue with variable expansion
59         In particular, see http://austingroupbugs.net/view.php?id=221
60         and http://austingroupbugs.net/view.php?id=255.
61         * doc/autoconf.texi (Shell Substitutions) <${var+value}>: New
62         subsection.
63         <${var=literal}>: Tweak wording.  Add mention of an ambiguity
64         allowed by POSIX.
65         * tests/torture.at (Substitute and define special characters):
66         Make test more robust; here, the outer "" is in a here-doc, and
67         does not violate the quoting rules of thumb just documented.
69 2010-08-25  Eric Blake  <eblake@redhat.com>
71         m4sh: revert incorrect mix of "${a='b'}"
72         * bin/autoconf.as: Revert leak of literal '' into assignment.
73         * tests/tools.at (autom4te preselections): Likewise.
75         m4sh: revert regression in AS_TMPDIR
76         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): The previous patch trying to
77         rename $tmp to $as_tmp was wrong; config.status relies on it.
79         m4sh: reduce size of AS_VAR_TEST_SET
80         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Make more compact.
82         tests: improve some shell assumption testing
83         * tests/m4sh.at (Functions Support, Functions and return Support)
84         (Negated classes in globbing): Update comments.
85         (AS@&t@_VAR basics): Test comparison to empty string.
87         docs: mention cost of globbing during variable expansion
88         * doc/autoconf.texi (Shell Substitutions) <${var=literal}>:
89         Recommend quoting substitutions that might trigger globbing.
90         (Limitations of Builtins) <:>: Likewise.
91         * bin/autoconf.as: Follow our own advice.
92         * lib/autoconf/functions.m4 (AC_FUNC_SELECT_ARGTYPES): Likewise.
93         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
94         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
95         * lib/autotest/general.m4 (_AT_FINISH): Likewise.
96         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
97         * tests/autotest.at (parallel autotest and signal handling):
98         Likewise.
99         * tests/c.at (AC_OPENMP and C, AC_OPENMP and C++): Likewise.
100         * tests/foreign.at (shtool): Likewise.
101         * tests/fortran.at: Likewise.
102         * tests/tools.at (autom4te preselections): Likewise.
103         * tests/torture.at (VPATH): Likewise.
105         m4sh: fix some namespace safety issues
106         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Avoid problems if
107         as_myself is inherited from environment.
108         (AS_TMPDIR): Be namespace clean.
110 2010-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112         tests: fix AC_CACHE_CHECK to skip with bad shells.
113         * tests/base.at (AC_CACHE_CHECK): Skip test with malformed
114         config.site file if the shell does not report syntax errors
115         from a sourced file.  Fixes test failure on AIX and FreeBSD.
116         Report from Rainer Tammer.
118 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
120         AC_HEADER_STDBOOL: avoid spurious failure with modern xlc
121         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Move the "bool e =
122         &s;" test into the main program, as C99 might plausibly be
123         interpreted as not requiring support for this construction in
124         static initializers.  Remove the "#if defined __xlc__" stuff, as
125         the bug is not present in recent xlc implementations, and they
126         reject the test for other (valid) reasons.  People using ancient
127         xlc versions, if any, are suggested to update to fixed versions.
128         Reported by Ralf Wildenhues in the thread starting at:
129         http://lists.gnu.org/archive/html/bug-autoconf/2010-08/msg00103.html
131 2010-08-24  Eric Blake  <eblake@redhat.com>
133         AC_FUNC_GETLOADAVG: don't define SVR4 on cygwin
134         * lib/autoconf/functions.m4 (_AC_LIBOBJ_GETLOADAVG): Only define
135         SVR4 when -lkvm is required.
136         * THANKS: Update.
137         Reported by Yaakov Selkowitz.
139 2010-08-23  Eric Blake  <eblake@redhat.com>
141         AC_HEADER_STDBOOL: avoid spurious clang failure
142         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Drop gcc (and by
143         extension clang) check in favor of a gnulib test.  Force failure,
144         rather than merely testing for a compiler extension.
145         * THANKS: Update.
146         Reported by Anders Kaseorg.
148 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
150         doc: AIX sed dislikes indented comments.
151         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Update.
153 2010-08-19  Stefano Lattarini  <stefano.lattarini@gmail.com>
155         Fix autoreconf docs w.r.t. AUTOM4TE environment variable.
156         * doc/autoconf.texi (Using autoreconf to Update configure
157         Scripts): List `AUTOM4TE' among the environment variables
158         honored by autoreconf.
159         * bin/autoreconf.in ($help): Likewise.
161 2010-08-17  Eric Blake  <eblake@redhat.com>
163         doc: improve AS_VAR_IF details
164         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_IF>: Make it
165         clear that user must supply quotes as needed.
166         * THANKS: Update.
167         Suggested by Randall Cotton.
169 2010-08-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
171         Fix Autotest --errexit to exit after XPASSing tests.
172         * lib/autotest/general.m4 (AT_INIT) <at_fn_group_postprocess>:
173         Exit after an unexpected passing test if $at_errexit.
174         * tests/autotest.at (errexit): Also try tests that xpass, skip,
175         xfail, or fail hard.
177 2010-08-14  Eric Blake  <eblake@redhat.com>
179         AC_INIT: allow bugreport to contain '?'
180         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Relax check.
181         * tests/base.at (AC_INIT with unusual version strings): Enhance
182         test.
183         * doc/autoconf.texi (Initializing configure): Document this.
184         * NEWS: Likewise.
185         * THANKS: Update.
186         Reported by Yavor Doganov and others.
188 2010-08-10  Peter Rosin  <peda@lysator.liu.se>
190         Keep testsuite files on unexpected pass.
191         * lib/autotest/general.m4 (AT_INIT) <at_fn_group_postprocess>:
192         Don't cleanup the group directory when a test unexpectedly passes.
193         * tests/autotest.at (Cleanup): Check that an unexpected pass leaves
194         the test group directory intact.
196 2010-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
198         Skip AC_FC_SRCEXT([f90]) tests with a Fortran 77 compiler in $FC.
199         * tests/fortran.at (AC_FC_FREEFORM with AC_FC_SRCEXT)
200         (AC_FC_FIXEDFORM with AC_FC_SRCEXT): Skip if the compiler cannot
201         handle files with .f90 extension.
202         Report by Luke Dalessandro.
204         Fix testsuite failures with typical m4-x.y.z program suffix.
205         * tests/local.at (AT_CHECK_M4): Normalize hyphens and digits
206         after the `m4' program name.
207         * THANKS: Update.
208         Report by Luke Dalessandro.
210 2010-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
212         Fix description of AC_CONFIG_TESTDIR to not mention atconfig.in.
213         * doc/autoconf.texi (Making testsuite Scripts): atconfig is not
214         created from an input template.
216 2010-08-05  Bruno Haible  <bruno@clisp.org>
217         and Eric Blake  <eblake@redhat.com>
219         AC_FUNC_ALLOCA: modernize
220         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Assume that alloca's
221         return type is 'void *', not 'char *'.  Supply C89 prototype.
222         Reported by Thomas Klausner.
224 2010-08-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
226         Fix testsuite failure due to bugs in third-party aclocal macros.
227         * tests/torture.at (Non-literal AC_CONFIG_SUBDIRS): Create a
228         hand-written aclocal.m4 file, so the -Werror test doesn't fail
229         over aclocal warnings about errors in third-party macro files.
230         Simplify test accordingly, calling autoreconf throughout.
231         Report by Bob Friesenhahn.
233         Fix AC_LANG_SOURCE and AC_LANG_PROGRAM tests.
234         * tests/compile.at (AC_LANG_SOURCE example)
235         (AC_LANG_PROGRAM example): Fix broken sed script for
236         extracting the interesting part of the conftest.c file.
237         Fixes test failure on Haiku.
238         * THANKS: Update.
239         Report by Scott McCreary.
241 2010-08-03  Eric Blake  <eblake@redhat.com>
243         docs: mention bash bug with word splitting
244         * doc/autoconf.texi (Shell Substitutions): Document bash bug, and
245         zsh default behavior difference.
246         Reported by Ralf Wildenhues.
248         docs: mention ksh bug with function syntax
249         * doc/autoconf.texi (Shell Functions): Document ksh93 limitation.
251 2010-08-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
253         Fix typo in Autotest color test, for dash testsuite failure.
254         * tests/autotest.at (colored test results): Use exit not
255         Exit.  Fixes test failure with dash 0.5.4.
257 2010-08-02  Eric Blake  <eblake@redhat.com>
259         docs: track recent copyright assignment
260         * AUTHORS: Add Peter Rosin.
262 2010-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
264         Add testsuite exposure for last-minute fix in 2.67.
265         * tests/autotest.at (parallel args but non-working mkfifo):
266         New test, to expose the failure v2.66-23-g991183c avoided.
268         Ensure unnamed test group categories are separated from previous.
269         * doc/autoconf.texi (Writing Testsuites) <AT_BANNER>: Update
270         description.
271         * lib/autotest/general.m4 (AT_INIT) <at_fn_banner>: Set banner
272         to single space, not empty line, once printed.  For empty
273         banners, print a single empty line to separate them from a
274         previous test group category.
275         * tests/autotest.at (Banners): Insert another test group; adjust
276         tests accordingly.  Extend test to cover semantic change.
277         * NEWS: Update.
279 2010-07-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
281         Fix typos in perlpod docs.
282         * lib/Autom4te/ChannelDefs.pm, lib/Autom4te/Channels.pm,
283         lib/Autom4te/General.pm: Fix typos and spacing in perlpod
284         documentation and in comments.
286 2010-07-29  Eric Blake  <eblake@redhat.com>
288         docs: mention ksh file descriptor limitation
289         * doc/autoconf.texi (File Descriptors): Document issue with fd 10
290         and above.
291         Reported by Ralf Wildenhues.
293         docs: mention cd limitation
294         * doc/autoconf.texi (Limitations of Builtins) <cd>: Document
295         issues with empty argument.
297 2010-07-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
299         Add missing index entries to manual.
300         * doc/autoconf.texi (Fortran Compiler, Language Choice): Add
301         index entries for AC_FC_DUMMY_MAIN, AC_LANG; reformat entry for
302         AC_LANG_ASSERT.
304 2010-07-21  Eric Blake  <eblake@redhat.com>
306         Release Version 2.67.
307         * NEWS: Mention the release.
309         Prepare for release.
310         * maint.mk (PREV_VERSION_REGEXP): New macro, missed when
311         backporting update-NEWS_hash from gnulib.
312         * cfg.mk (old_NEWS_hash): Correctly generate.
313         * build-aux/gendocs.sh: Temporarily break sync from upstream, to
314         avoid including spurious directories in info source tarball.
316         Avoid spurious testsuite failures.
317         * doc/autoconf.texi (Generating Sources): Don't mix gcc '-E' and
318         '-o -', since the former already implies stdout, while the latter
319         creates -.exe on cygwin.
320         * tests/compile.at (AC_LANG_SOURCE example)
321         (AC_LANG_PROGRAM example): Likewise.  Also prevent any config.site
322         interference.
324         Partially revert previous patch.
325         * lib/autotest/general.m4 (AT_INIT) <serial testing>: Changing
326         at_jobs here breaks output if -j2 was requested but shell is
327         insufficient to support parallel testing.
328         Reported by Ralf Wildenhues.
330         Minor testsuite size reduction.
331         * lib/autotest/general.m4 (AT_INIT) <serial testing>: Ensure
332         at_jobs is 1.
333         (AT_SETUP, AT_CLEANUP): Factor initialization code...
334         (AT_INIT) <at_fn_group_banner>: ...into new function.
335         Based in part on suggestion by Ralf Wildenhues.
337 2010-07-20  Eric Blake  <eblake@redhat.com>
339         Close job control fd before running tests.
340         * doc/autoconf.texi (File Descriptors): Clarify limitations.
341         * lib/autotest/general.m4 (AT_CLEANUP): Avoid leaking job control
342         fifo fd to user tests.
343         (AT_INIT): Delete comment, now that close is done elsewhere.
344         Suggested by Ralf Wildenhues.
346 2010-07-20 Paul Eggert  <eggert@cs.ucla.edu>
347         and Eric Blake  <eblake@redhat.com>
349         Plug race in parallel autotest.
350         * lib/autotest/general.m4 (AT_INIT) <Fifo job dispatcher>: Track
351         two fds to fifo in parent, to avoid race where parent can see EOF
352         before child opens fifo.  Avoid any atomicity problems with tokens
353         larger than one byte.
354         * NEWS: Document the bug fix.
356 2010-07-20  Eric Blake  <eblake@redhat.com>
358         Another empty argument through expr workaround.
359         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Detect empty
360         arguments.  Reject empty file argument.
361         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
362         Check for missing argument.
364         Also reject ' and newline from AC_INIT strings.
365         * lib/autoconf/general.m4 (_AC_INIT_LITERAL): Reject a couple more
366         problematic characters.
367         * tests/base.at (AC_INIT with unusual version strings): Enhance
368         test.
369         * doc/autoconf.texi (Initializing configure) <AC_INIT>: Further
370         clarifications, and clean up wording about use of m4_esyscmd.
371         * NEWS: Update previous news entry.
372         Suggested by Paolo Bonzini.
374 2010-07-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
376         Let autoreconf pass warning flags to new-enough aclocal.
377         * bin/autoreconf.in ($aclocal_supports_warnings)
378         ($automake_supports_warnings): New globals.
379         (parse_args): Set and use them.  Be sure to invoke `aclocal
380         --help' and `automake --help' just once each.
381         * NEWS: Update.
382         Prompted by report from Bruno Haible.
384         Fix parsing of empty variable settings on the command line.
385         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Work around
386         expr bug returning 0 instead of the empty string.
387         * lib/autotest/general.m4 (AT_INIT): Likewise.
389         Fix typo in the manual.
390         * doc/autoconf.texi (AC_ACT_IFELSE vs AC_TRY_ACT): Fix typo.
392 2010-07-19  Eric Blake  <eblake@redhat.com>
394         Fix up AC_INIT vs. " issues, and document it.
395         * doc/autoconf.texi (Initializing configure): Improve
396         documentation on argument restrictions.
397         * NEWS: Tweak information.
398         * lib/autoconf/general.m4 (_AC_INIT_GENERAL): New macro, that also
399         rejects literal ".
400         (_AC_INIT_PACKAGE): Use it to plug hole in last patch.
401         * tests/base.at (AC_INIT with unusual version strings): Enhance
402         test.
404 2010-07-19  Eric Blake  <eblake@redhat.com>
405         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
407         Relax AC_INIT requirements for PACKAGE and VERSION strings again.
408         * lib/m4sugar/m4sh.m4 (AS_LITERAL_HEREDOC_IF): New macro.
409         (_AS_LITERAL_HEREDOC_IF, _AS_LITERAL_HEREDOC_IF_YES)
410         (_AS_LITERAL_HEREDOC_IF_NO): New helper macros.
411         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Use
412         AS_LITERAL_HEREDOC_IF for PACKAGE and VERSION strings.
413         * tests/base.at (AC_INIT with unusual version strings): New test.
414         * tests/m4sh.at (AS@&t@_LITERAL_IF): Extend test.
415         * NEWS: Update.
417 2010-07-19  Eric Blake  <eblake@redhat.com>
419         Fix testsuite failures from previous patch.
420         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Also remove
421         conftest.i when preprocessor tests break out of a loop.
423 2010-07-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
425         Allow inspecting AC_PREPROC_IFELSE output in true branch.
426         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY): Redirect
427         preprocessor output to conftest.i rather than /dev/null.
428         (_AC_PREPROC_IFELSE): Remove conftest.i in the postprocessing.
429         * tests/compile.at (Order of user actions and cleanup): Extend
430         test in the ACTION-IF-TRUE branch.
431         * doc/autoconf.texi (Running the Preprocessor): Document new
432         feature.
433         * NEWS: Update.
435         Fix AC_FC_LIBRARY_LDFLAGS detection for BlueGene xlf -qipa.
436         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
437         '-link', added spuriously when -qipa is used with the XL
438         Fortran compilers on BlueGene.
440         manual: compiler flags -D and -L should not be followed by space
441         * doc/autoconf.texi (Preset Output Variables): Remove space
442         between -D and -L flags and their arguments, traditional cpp
443         implementations like Solaris 10, IRIX 6.5, OSF Tru64 5.1D,
444         AIX 5.3 do not accept it.
446 2010-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
448         Fix comment typo in the manual.
449         * doc/autoconf.texi (Generic Compiler Characteristics): Refer
450         to the right test in the example marker comment.
451         Spotted by Eric Blake.
453 2010-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
455         New Fortran macro AC_FC_LINE_LENGTH.
456         * lib/autoconf/fortran.m4 (AC_FC_LINE_LENGTH): New macro.
457         * doc/autoconf.texi (Fortran Compiler): Document it.
458         * tests/fortran.at (AC_FC_LINE_LENGTH): New test.
459         * NEWS: Update.
461         Fix wording about AC_CONFIG_SUBDIRS warning.
462         * doc/autoconf.texi (Subdirectories): We warn, not error, about
463         nonexistent config subdirs, but only at configure run time.
465 2010-07-10  Eric Blake  <eblake@redhat.com>
466         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
468         Fix regression of AC_CHECK_SIZEOF on pointer types.
469         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Translate `*' to `p'
470         when checking literal-ness of the type, for pointer types.
471         * lib/m4sugar/m4sh.m4 (_AS_TR_SH): Also consider `*' as literal.
472         (_AS_TR_CPP): Likewise.
473         * tests/semantics.at (AC_CHECK_ALIGNOF struct): When checking
474         for numeric answer, be sure to not allow variable references.
475         (AC_CHECK_SIZEOF struct): Likewise.  Also, test the
476         `AC_CHECK_SIZEOF([int *])' example from the manual.
477         * doc/autoconf.texi (Generic Compiler Characteristics): Add
478         example marker.
479         * NEWS: Update.
480         Reports by Nishio Futoshi and Roberto Bagnara.
482 2010-07-08  Eric Blake  <eblake@redhat.com>
483         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
485         Fix regression of AC_CONFIG_SUBDIRS with multiple arguments.
486         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Do not assume the
487         argument is a single word.
488         * tests/torture.at (Deep Package): Extend test to cover this.
489         (Non-literal AC_CONFIG_SUBDIRS): New test.
490         * doc/autoconf.texi (Subdirectories): Add example marker.
491         * NEWS: Update.
492         Report by Bruno Haible.
494 2010-07-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
496         Fix minor copy&paste leftover in m4sh tests.
497         * tests/m4sh.at (AS@&t@_TR_SH and AS@&t@_TR_CPP): Remove
498         useless variables assignements ($var, $vAr, $VAR).
500 2010-07-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
502         Fix testsuite to not trigger Solaris sh for bug.
503         * tests/torture.at (Torturing config.status)
504         (Substitute a 2000-byte string)
505         (Substitute and define special characters)
506         (Substitute a newline): Quote first argument in for list so
507         that it does not look like an assignment.
509 2010-07-02  Eric Blake  <eblake@redhat.com>
511         Post-release administrivia.
512         * maint.mk (NEWS_hash): Define.
513         * NEWS: Add header line for next release.
514         * .prev-version: Record previous version.
515         * cfg.mk (old_NEWS_hash): Auto-update.
517         Release Version 2.66.
518         * NEWS: Mention the release.
520 2010-07-02  Eric Blake  <eblake@redhat.com>
522         Pick up some maint.mk improvements from gnulib.
523         * configure.ac (AM_INIT_AUTOMAKE): Require 1.11, and build xz
524         archives by default now.
525         * maint.mk (gzip_rsyncable): Avoid non-portable echo.
526         (VC-tag): Depend on gpg_key_ID.
527         (PREV_VERSION): Don't parse error as version.
528         (announcement): Populate email addresses with defaults.
529         (emit_upload_commands, web-manual): Reflect changes in scripts.
530         (update-NEWS-hash, emit-commit-log, release-prep): New macros.
531         * cfg.mk (announcement_Cc_, announcement_mail_headers_): Override
532         defaults.
533         * HACKING: Modernize a bit.
535         Resync upstream files.
536         * GNUmakefile: Run 'make fetch'.
537         * build-aux/announce-gen: Likewise.
538         * build-aux/config.guess: Likewise.
539         * build-aux/config.sub: Likewise.
540         * build-aux/gendocs.sh: Likewise.
541         * build-aux/git-version-gen: Likewise.
542         * build-aux/gnupload: Likewise.
543         * build-aux/texinfo.tex: Likewise.
544         * build-aux/vc-list-files: Likewise.
545         * doc/gendocs_template: Likewise.
546         * doc/gnu-oids.texi: Likewise.
547         * doc/make-stds.texi: Likewise.
548         * doc/standards.texi: Likewise.
549         * lib/Autom4te/Channels.pm: Likewise.
550         * lib/Autom4te/Configure_ac.pm: Likewise.
551         * lib/Autom4te/FileUtils.pm: Likewise.
552         * lib/Autom4te/XFile.pm: Likewise.
554         Make AS_TR_SH and AS_TR_CPP similar.
555         * lib/m4sugar/m4sh.m4 (_AS_TR_CPP_LITERAL): Avoid underquoting.
556         (_AS_TR_CPP_INDIR): Handle all polymorphic variables.
557         * tests/m4sh.at (AS@&t@_TR_SH and AS@&t@_TR_CPP): New test.
558         * NEWS: Document the fix.
559         Reported by Bruno Haible.
561         Reduce startup cost of autotest.
562         * lib/autotest/general.m4 (_AT_FINISH) <banners>: Rather than
563         doing a recursive find, limit ourselves to top ChangeLog only.
564         Reported by Ralf Wildenhues.
566 2010-07-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
568         New macro AC_FC_FIXEDFORM, improved AC_FC_FREEFORM, coverage.
569         * lib/autoconf/fortran.m4 (_AC_FC_DIALECT_YEAR): Fix typo in
570         comment.
571         (AC_FC_FREEFORM): Update list of known options for Sun, HP,
572         Lahey/Fujitsu Fortran compilers.  Use M4 quoting consistently.
573         (AC_FC_FIXEDFORM): New macro.
574         * tests/fortran.at (AC_FC_DUMMY_MAIN usage, AC_FC_MAIN usage):
575         Use AC_FC_FIXEDFORM, to avoid testsuite failure with FC=xlf95.
576         (AC_FC_FREEFORM with AC_FC_SRCEXT, AC_FC_FIXEDFORM)
577         (AC_FC_FIXEDFORM with AC_FC_SRCEXT): New tests.
578         * tests/mktests.sh: No need to exclude AC_FC_FREEFORM, it uses
579         AC_LANG_PUSH/AC_LANG_POP.
580         * doc/autoconf.texi (Fortran Compiler): Document it.
581         * NEWS: Update.
583 2010-07-02  Eric Blake  <eblake@redhat.com>
585         Optimize AS_BOX.
586         * lib/m4sugar/m4sh.m4 (AS_BOX): Use less m4 time.
587         (_AS_BOX_LITERAL): Use fewer forks in the common case.
588         * doc/autoconf.texi (Common Shell Constructs) <AS_BOX>: Document
589         the macro.
590         * NEWS: Mention it.
592         Use new AS_LITERAL_IF argument when appropriate.
593         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Reduce m4 overhead.
594         (AS_VAR_IF, AS_VAR_TEST_SET): Provide shorter variant for simple
595         references.
596         Suggested by Bruno Haible.
598         Add tests for AS_BOX.
599         * tests/m4sugar.at (m4@&t@_text_box): New test.
600         * tests/m4sh.at (AS@&t@_BOX): Likewise.
601         * lib/m4sugar/m4sugar.m4 (m4_text_box): Support comma.
602         * doc/autoconf.texi (Text processing Macros) <m4_text_box>:
603         Document further limitations.
605         Add optional argument to AS_LITERAL_IF.
606         * lib/m4sugar/m4sh.m4 (_AS_LITERAL_IF): Rewrite to generate macro
607         name, without using m4_cond.
608         (_AS_LITERAL_IF_, _AS_LITERAL_IF_YES, _AS_LITERAL_IF_NO): New
609         helpers.
610         (AS_LITERAL_IF, AS_LITERAL_WORD_IF, _AS_TR_SH, _AS_TR_CPP)
611         (_AS_VAR_PUSHDEF): Adjust callers.
612         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Relax restrictions on
613         invalid bytes, since this allows inline struct layouts.
614         (_AC_CHECK_ALIGNOF): New helper macro.
615         * tests/m4sh.at (AS@&t@_LITERAL_IF): Update test.
616         * doc/autoconf.texi (Polymorphic Variables) <AS_LITERAL_IF>:
617         Update documentation.
619         Use AS_LITERAL_WORD_IF as appropriate.
620         * lib/autoconf/autoheader.m4 (AH_VERBATIM): Use new macro.
621         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE, AC_CACHE_VAL)
622         (AS_CACHE_CHECK, AC_DEFINE_TRACE, _AC_LIBOBJ): Likewise.
623         * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
624         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
625         * lib/m4sugar/m4sh.m4 (AS_UNSET, AS_VAR_COPY, AS_VAR_GET)
626         (AS_VAR_IF, AS_VAR_SET, AS_VAR_TEST_SET): Likewise.
628         Add AS_LITERAL_WORD_IF.
629         * lib/m4sugar/m4sh.m4 (_AS_LITERAL_IF): Also reject shell quoting
630         characters as non-literal, and provide way to reject space.
631         (AS_LITERAL_WORD_IF): New macro.
632         * doc/autoconf.texi (Polymorphic Variables) <AS_LITERAL_IF>:
633         Document new macro.  Fix example to match reality.
634         * NEWS: Document change and new macro.
635         * tests/m4sh.at (AS@&t@_LITERAL_IF): Update test.
637         Optimize AC_DEFINE.
638         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Avoid overhead of
639         AS_LITERAL_IF.
641 2010-07-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
642         and Eric Blake  <eblake@redhat.com>
644         Describe a Solaris /bin/sh bug w.r.t. for loops.
645         * doc/autoconf.texi (Limitations of Shell Builtins) <for>:
646         Document a bug of the 'for' builtin in Solaris /bin/sh, w.r.t.
647         tokens seeming variable assignment in the list of arguments.
649 2010-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
651         Improve VPATH handling in config.status for non-Automake projects.
652         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Be sure not
653         to remove references to a subdir of srcdir.  Fix treatment of
654         multiple colon-separated VPATH entries.
655         * tests/torture.at (VPATH): New test.
656         Report by Keith Marshall.
658         Further improve docs about nested double-quotes and backquotes.
659         * doc/autoconf.texi (Shellology): Remove anchor for pdksh.
660         Move quoting bug example to ...
661         (Shell Substitutions): ... here.  Document which behavior is
662         specified by Posix.
664         Coverage for Fortran compiler macros.
665         * tests/fortran.at (AC_OPENMP and Fortran 77)
666         (AC_OPENMP and Fortran): Simplify, using AT_CHECK_CONFIGURE.
667         (AC_F77_DUMMY_MAIN usage, AC_FC_DUMMY_MAIN usage)
668         (AC_F77_MAIN usage, AC_FC_MAIN usage, AC_F77_FUNC usage)
669         (AC_FC_FUNC usage, AC_FC_SRCEXT usage, AC_FC_FREEFORM): New
670         tests.
671         * doc/autoconf.texi (Fortran Compiler): Use GNU coding style
672         on C code snippets.  Add markers for tested examples.
673         Suggest AC_FC_FREEFORM for source file extensions which the
674         compiler might not natively support but which are accepted
675         with help from AC_FC_SRCEXT.  Suggest AC_CONFIG_HEADERS for
676         setups using one of the AC_*MAIN macros.
678         Accept any nonzero exit status upon config.status write failure.
679         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
680         Normalize nonzero status to 1 for writing to /dev/full, for HP-UX
681         11.31 cat which exits 2.
683         Fix testsuite failure with Tru64 preprocessor.
684         * tests/compile.at (Order of user actions and cleanup): Add
685         incomplete comment to provoke failure with Tru64/OSF 5.1 cc
686         preprocessor.
688 2010-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
689         and Eric Blake  <eblake@redhat.com>
691         Further clarification on sed -e portability.
692         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Clarify
693         more about sed -e and Posix limitations.
695 2010-06-22  Bruno Haible  <bruno@clisp.org>
697         Document how to use literal newlines in makefile rules.
698         * doc/autoconf.texi (Newlines in Make Rules): New section.
700         Document how to write comments in makefile rules.
701         * doc/autoconf.texi (Comments in Make Rules): Mention a workaround
702         syntax.
704 2010-06-22  Ben Pfaff  <blp@cs.stanford.edu>
706         Document how to propogate variables to submakes.
707         * doc/autoconf.texi: Describe technique used by Automake to
708         propagate variables to submakes in more detail.
710 2010-06-22  Peter Johansson  <trojkan@gmail.com>  (tiny change)
712         Be consistent in doc example.
713         * doc/autoconf.texi: (Polymorphic Variables) be consistent in code
714         example and output
716 2010-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
718         Add comments for vim syntax highlighting.
719         * doc/autoconf.texi: Restore font-lock in some examples using
720         $$, for vim.
722         Formatting cleanups for optional arguments.
723         * doc/autoconf.texi (Configuration Actions, Help Formatting)
724         (External Software): Use @r{} for brackets denoting optional
725         arguments, where @ovar is not safe to use.
727         Clarify nested double-quotes and backquotes shell issues.
728         * doc/autoconf.texi (Shellology): New anchor for pdksh.
729         (Shell Substitutions): Link to it for escaped double-quotes
730         within double-quoted backquotes; add ksh example for unescaped
731         inner double-quotes problem.
733         Mention Tru64 5.1 fgrep limitation with emtpy patterns.
734         * doc/autoconf.texi (Limitations of Usual Tools): Update.
736         Overhaul the manual, esp. the Autotest chapter.
737         * doc/autoconf.texi (Installation Directory Variables):
738         Replace some uses of @var with @code.
739         (Special Shell Variables): Fix misordered paragraph about IFS.
740         (Writing Testsuites): Include paragraph following AT_TESTED in
741         the macro definition.
742         (testsuite Invocation): Failed tests are not rerun.
743         (testsuite Scripts, Autotest Logs, testsuite Invocation)
744         (Making testsuite Scripts): Minor edits for consistency and
745         language.
747 2010-06-18  Bruno Haible  <bruno@clisp.org>
749         Document sed -e limitation.
750         * doc/autoconf.texi (Limitations of Usual Tools): Mention portability
751         problem of sed -e option with script fragments.
753 2010-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
755         Document, test, and fix AT_ARG_OPTION, AT_ARG_OPTION_ARG.
756         * lib/autotest/general.m4 (_AT_ARG_OPTION): Fix translation of
757         hyphens to underscores when turning option names to variables.
758         Avoid macro name concatenation garbage with trailing `dnl'.
759         (AT_ARG_OPTION, AT_ARG_OPTION_ARG): Overhaul macro description.
760         The OPTIONS are space-separated, not comma-separated.  The
761         negative form of AT_ARG_OPTION is prefixed with `--no-'.
762         * tests/autotest.at (AT@&t@_ARG_OPTION, AT@&t@_ARG_OPTION_ARG):
763         New tests.
764         * NEWS: Update.
765         * doc/autoconf.texi (Writing Testsuites): Document AT_ARG_OPTION
766         and AT_ARG_OPTION_ARG.
767         (testsuite Invocation): Call the thingies passed to the
768         testsuite options, not arguments.  Note that the testsuite
769         author may add further package-specific options.
771         Autotest: enable colored test results.
772         * lib/autotest/general.m4 (HELP_TUNING_BEGIN): New diversion.
773         (HELP_TUNING, HELP_OTHER, HELP_END): Bump diversion numbers.
774         (AT_INIT): Accept
775         --color and --color=never|auto|always.  If desired, colorize
776         test results and testsuite summary on standard output.
777         [HELP_TUNING]: Divert content instead to ...
778         [HELP_TUNING_BEGIN]: ... this diversion, m4_wrapped until the
779         end, when we know whether AT_COLOR_TESTS has been specified.
780         (AT_COLOR_TESTS): New macro, set the default for color to auto.
781         * doc/autoconf.texi (Writing Testsuites): Document it.
782         (testsuite Invocation): Document --color* options.
783         * tests/local.at: Call AT_COLOR_TESTS for Autoconf's testsuite.
784         * tests/autotest.at (color test results): New test, mirroring
785         color.test from Automake.
786         * NEWS: Update.
788 2010-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
790         Avoid texinfo bug with backslashes in macro arguments.
791         * doc/autoconf.texi (Text processing Macros)
792         (Common Shell Constructs): Do not use @dvar with backslashes.
794 2010-06-14  Eric Blake  <eblake@redhat.com>
796         Make CONFIG_SITE handling more robust.
797         * lib/autoconf/general.m4 (AC_SITE_LOAD): Avoid leading - and path
798         search, and check for failure to load.
799         * tests/base.at (AC_CACHE_CHECK): Enhance test.
800         * doc/autoconf.texi (Site Defaults): Mention that CONFIG_SITE
801         works best as an absolute path.
802         * NEWS: Document the semantic change.
804 2010-03-13  Bruno Haible  <bruno@clisp.org>
805         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
807         Allow plus signs in AC_ARG_ENABLE and AC_ARG_WITH.
808         * doc/autoconf.texi (External Software): Mention that AC_ARG_WITH
809         accepts packages with a + sign in it.
810         (Package Options): Likewise for AC_ARG_ENABLE.
811         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Also replace '+' with '_'.
812         * tests/base.at (AC_ARG_ENABLE and AC_ARG_WITH): New test.
813         * NEWS: Update.
815 2010-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
817         Autotest: simplify logic to compute test group result.
818         * lib/autotest/general.m4 (AT_INIT): Compactify result
819         computation logic.
821         New Autotest testsuite option --recheck.
822         * lib/autotest/general.m4 (AT_INIT): New variable $at_recheck.
823         Escape hyphen in $at_dir early.  Accept command line switch
824         --recheck.  Set $at_suite_log early, based on --directory
825         switch; with --recheck, include the list of FAILed and XPASSed
826         tests from old testsuite.log file in $at_groups.  Document
827         --recheck in --help output.
828         * tests/autotest.at (recheck): New test.
829         * doc/autoconf.texi (testsuite Invocation): Document --recheck.
830         * NEWS: Update.
832 2010-06-14  Karl Berry  <karl@freefriends.org>  (tiny change)
834         Clarify comment about old system.
835         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Prefer GNU/Linux,
836         and note that bug has long since been fixed.
838 2010-06-08  Eric Blake  <eblake@redhat.com>
840         Run libtool test with modern libtool.
841         * tests/foreign.at (Libtool): Request that libtoolize install
842         auxiliary files.  Assume libtool 2.x is modern.
844 2010-06-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
846         Coverage and doc fixes for AC_LANG_SOURCE and AC_LANG_PROGRAM.
847         * tests/compile.at (AC_LANG_SOURCE, AC_LANG_SOURCE(C++))
848         (AC_LANG_SOURCE example, AC_LANG_PROGRAM example): New tests.
849         * doc/autoconf.texi (Generating Sources): Add markers for tested
850         examples; update quoting, and update AC_INIT usage to also set
851         optional URL arguments.  Mention that the examples require gcc.
852         Prompted by report from Brian J. Murrell.
854         Make AS_SET_CATFILE polymorphic, and add testsuite coverage.
855         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Use AS_VAR_SET to set
856         the variable.
857         * tests/m4sh.at (AS@&t@_SET_CATFILE): New test.
858         * doc/autoconf.texi (Common Shell Constructs): Document that
859         AS_SET_CATFILE is polymorphic in its VAR argument now.
860         * NEWS: Update.
862         Testsuite coverage for AC_COPYRIGHT and AT_COPYRIGHT.
863         * tests/autotest.at (AT@&t@_COPYRIGHT): New test.
864         * tests/base.at (AC@&t@_COPYRIGHT): Likewise.
866         Testsuite coverage for __file__ and __line__.
867         * tests/m4sugar.at (__file__ and __line__): New test.
869         Testsuite coverage for AC_CACHE_VAL and caching semantics.
870         * tests/base.at (AC_CACHE_CHECK): Extend test.
871         (AC_CACHE_LOAD): New test.
872         * tests/torture.at (Configuring subdirectories): Also test
873         --config-cache with AC_CONFIG_SUBDIRS.
874         * doc/autoconf.texi (Caching Results): Annotate code snippets
875         which are tested in the test suite.
876         (Cache Files): Documented cache variables may be used on the
877         configure command line to override individual entries in the
878         cache file.
880         Clarify OpenBSD sh errexit issue with compound commands.
881         * doc/autoconf.texi (Limitations of Builtins): Only the last
882         command in a compound list is problematic.
883         Tested on OpenBSD 4.4.
885 2010-06-07  Eric Blake  <eblake@redhat.com>
887         Properly quote AC_PREREQ during autoupdate.
888         * lib/autoconf/general.m4 (AC_PREREQ): Follow consistent quoting
889         style for AC_PREREQ.
890         * tests/tools.at (autoupdating AC_PREREQ): Update expected
891         results.
892         Reported by NightStrike.
894 2010-06-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
896         Documentation and tests for the AC_CHECK_DECL change.
897         * lib/autoconf/general.m4 (_AC_CHECK_DECL_BODY): Squash trailing
898         spaces in as_decl_name.
899         (_AC_CHECK_DECLS): Likewise for the define.
900         * tests/semantics.at (AC_CHECK_DECLS): Extend test.
901         * doc/autoconf.texi (Generic Declarations): Update.
902         * NEWS: Update.
904 2010-06-01  Joern Rennecke  <joern.rennecke@embecosm.com>  (tiny change)
906         Generalize AC_CHECK_DECL for C++: allow optional arguments.
907         * general.m4 (_AC_CHECK_DECL_BODY): Process trailing function
908         argument types as arguments to use for C++.
909         (_AC_CHECK_DECLS): Filter out trailing function argument types
910         when generating the HAVE_DECL_* macro.
912 2010-05-25  Stefano Lattarini  <stefano.lattarini@gmail.com>
913             Eric Blake  <eblake@redhat.com>
915         Don't expose AC_{COMPILE,LINK}_IFELSE internals in documentation.
916         * doc/autoconf.texi (Runtime) <AC_LINK_IFELSE>: Suggest to use
917         `conftest$EXEEXT' rather than `conftest$ac_exeext' to acces the
918         just-linked program file.
919         (Runtime) <AC_COMPILE_IFELSE>: Suggest to use `conftest.$OBJEXT'
920         rather than `conftest.$ac_object' to access the just-compiled
921         object file.  Also, refer to the object file as "just-compiled"
922         rather than "just-linked".
924 2010-05-20  Eric Blake  <eblake@redhat.com>
926         Mention another line-counting alternative.
927         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
928         how to use sed to count lines.
929         Suggested by Paolo Bonzini.
931 2010-05-12  Eric Blake  <eblake@redhat.com>
933         Document the grep workaround.
934         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
935         the bug.
937 2010-05-12  Mark Hessling  <mark@rexx.org>  (tiny change)
939         Work around QNX4 grep bug.
940         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Count ^
941         rather than $ to avoid QNX4 grep bug.
942         * THANKS: Update.
944 2010-05-11  David Reiss  <dreiss@facebook.com>  (tiny change)
946         Improve Erlang documentation.
947         * doc/autoconf.texi (Erlang Libraries): Document actual default
948         values.
949         * THANKS: Update.
951 2010-05-11  Eric Blake  <eblake@redhat.com>
953         Fix typo in previous patch.
954         * doc/autoconf.texi (File Descriptors): Add end '.
955         Reported by Ralf Wildenhues.
957         Mention how to silence program probes.
958         * doc/autoconf.texi (File Descriptors): Document how to silence a
959         program probe.
961 2010-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
963         Error and warning message formatting cleanups.
964         * doc/autoconf.texi (Autoconf Language, Generic Structures):
965         Do not capitalize the first word in error messages, do not end
966         them with a period.
967         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS, AC_MSG_FAILURE):
968         Likewise.
969         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Likewise.
970         * lib/autotest/general.m4 (AT_INIT, at_fn_group_prepare):
971         Likewise.
972         * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
973         * tests/base.at (AC_TRY_COMMAND): Likewise.
974         * tests/torture.at (datarootdir workaround): Adjust expected
975         message.
977         Fix placing of ellipses in English text.
978         * lib/autoconf/general.m4 (_AC_INIT_HELP): Be sure to add a
979         space before `...' in natural language text.
980         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL_BODY):
981         Likewise.
982         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
983         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Likewise.
984         * tests/suite.at: Likewise.
985         * tests/torture.at (@%:@define header templates): Likewise.
987         Ensure autotest tests have an atconfig file, for testsuite -v.
988         * tests/autotest.at (AT_CHECK_AT_PREP): Create a default
989         atconfig file in the directory of the testsuite.
990         (AT_CHECK_AT_TITLE): Also check that `./micro-suite -v' output
991         does not contain empty $at_srcdir expansion.
992         (srcdir propagation): Remove the atconfig file generated by
993         AT_CHECK_AT_PREP.  Check each suite invocation for $at_srcdir
994         expansion.
996         Fix autotest testsuite -v output to print test group title.
997         * lib/autotest/general.m4 (AT_CLEANUP): Actually print test
998         title in verbose output.  Fixes AUTOCONF-2.57-101-gc102ed8
999         regression.
1000         * tests/autotest.at (AT_CHECK_AT_TITLE): Amend macro to check
1001         for test title in -v output.
1003 2010-04-26  Eric Blake  <eblake@redhat.com>
1005         Clarify octal escapes with tr.
1006         * doc/autoconf.texi (Limitations of Usual Tools): Carriage return
1007         is portable in octal, but not newline.
1009 2010-04-22  Joel James Adamson  <joel@chondestes.bio.unc.edu>  (tiny change)
1011         Add a paragraph to FAQ on Debugging configure scripts.
1012         * doc/autoconf.texi (Debugging): Mention inspecting config.log.
1013         * THANKS: Update.
1015 2010-04-21  Mike Frysinger  <vapier@gentoo.org>  (tiny change)
1017         Fix typo in doc example.
1018         * doc/autoconf.texi (Subdirectories): Fix typo.
1020 2010-04-05  Eric Blake  <eblake@redhat.com>
1022         Fix m4_cr_all for EBCDIC.
1023         * lib/m4sugar/m4sugar.m4 (m4_cr_all): Swap * and $, so that we
1024         don't end up with $* in EBCDIC.
1025         * NEWS: Document the fix.
1026         * THANKS: Update.
1027         Reported by Steve Goetze.
1029 2010-03-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1031         Do not use @acronym in the manual.
1032         * doc/autoconf.texi: Remove all usage of @acronym.
1033         Suggested by Karl Berry.
1035         Do not use @sc in the manual.
1036         * doc/autoconf.texi: Remove all usage of @sc in the manual.
1037         Suggested by Karl Berry.
1039 2010-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1041         Fix wrong comment in testsuite.
1042         * tests/m4sugar.at (m4@&t@_warn): Remove copy&pasted comment.
1044         Formatting cleanups in macro comments.
1045         * lib/autoconf/c.m4, lib/autoconf/erlang.m4,
1046         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
1047         lib/autoconf/general.m4, lib/autoconf/lang.m4,
1048         lib/autoconf/programs.m4, lib/autoconf/specific.m4,
1049         lib/autoconf/status.m4, lib/autoconf/types.m4,
1050         lib/autotest/general.m4, lib/autotest/specific.m4,
1051         lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4,
1052         tests/autotest.at, tests/local.at, tests/m4sh.at,
1053         tests/semantics.at, tests/tools.at, tests/torture.at: Fix macro
1054         comment format.
1056 2010-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1058         manual: index strings containing colon in non-info outputs.
1059         * doc/autoconf.texi (Quadrigraphs, Shell Substitutions): Produce
1060         index entries for concepts containing a colon in output formats
1061         other than info.
1063         Update copyright years for files generated by mktests.sh.
1064         * tests/mktests.sh: Update copyright years for generated files.
1066 2010-03-04  Eric Blake  <eblake@redhat.com>
1068         Document AC_LANG_CONFTEST semantic change.
1069         * doc/autoconf.texi (Generating Sources) <AC_LANG_CONFTEST>:
1070         Enhance documentation, to show that semantic change in 2.63b was
1071         intentional.
1072         * THANKS: Update.
1073         Reported by Brian J. Murrell, analyzed by Ralf Wildenhues.
1075 2010-03-04  Peter Johansson  <trojkan@gmail.com>  (tiny change)
1077         Autoconf Macro Archive URL has changed.
1078         * doc/autoconf.texi (Introduction, Coding Style, Defining
1079         Directories): The Autoconf Macro Archive is officially `GNU'.
1080         Update URL.
1082 2010-03-02  Eric Blake  <eblake@redhat.com>
1084         Fix shell code in AS_TR_SH documentation.
1085         * doc/autoconf.texi (Common Shell Constructs) <AS_TR_SH>: Fix
1086         example to expand to valid shell code.
1087         Reported by Ralf Wildenhues.
1089         Improve documentation on AC_{COMPILE,LINK}_IFELSE.
1090         * doc/autoconf.texi (Running the Compiler): Mention that the
1091         object file is available after a successful compile.
1092         (Running the Linker): Likewise for the linker output.
1093         Suggested by Paolo Bonzini.
1095         Fix typo in docs.
1096         * doc/autoconf.texi (Conditional constructs) <m4_ifblank>: Fix
1097         typo.
1099 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1101         Fix AS_ERROR for FreeBSD sh.
1102         * lib/m4sugar/m4sh.m4 (_AS_ERROR_PREPARE): Rewrite as_fn_error
1103         to take additional first argument STATUS instead of transporting
1104         $? across shell function entry, which does not work with FreeBSD
1105         sh.  Shift all other arguments by one, adjust.
1106         (AS_ERROR): Pass EXIT-STATUS, defaulting to $?, to as_fn_error.
1107         Report by Václav Haisman.
1109         Fix `autom4te cache creation' testsuite failure on FreeBSD.
1110         * tests/tools.at (autom4te cache creation): Normalize exit
1111         status of failed redirection to 1, may be 2 with FreeBSD sh.
1112         * THANKS: Update.
1113         Report by Václav Haisman.
1115         Fix Autotest tracing of shell pipelines for FreeBSD sh.
1116         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Do not trace
1117         commands that contain [^|]|[^|], a likely shell pipeline.
1118         * tests/local.at (_AT_CHECK_ENV): Turn off tracing for egrep |
1119         grep pipeline.
1120         * doc/autoconf.texi (File Descriptors): Document limitation.
1121         * tests/autotest.at (Trace output): New test.
1123 2010-03-01  Eric Blake  <eblake@redhat.com>
1125         Update file flow diagram to mention Automake.
1126         * doc/autoconf.texi (Making configure Scripts): Avoid confusion
1127         with listing Makefile.in twice on one line.  Add a diagram showing
1128         how automake fits into the picture.
1129         Reported by santilín.
1131 2010-02-26  Eric Blake  <eblake@redhat.com>
1133         Optimize AC_REPLACE_FUNCS.
1134         * lib/autoconf/functions.m4 (_AC_REPLACE_FUNC): New helper macro.
1135         (AC_REPLACE_FUNCS): Use it to reduce forks when checking for
1136         replacements, by using literal rather than shell variable.
1138         Document how to safely override CFLAGS default.
1139         * doc/autoconf.texi (C Compiler) <AC_PROG_CC>: Document a way to
1140         change the default CFLAGS.
1141         (C++ Compiler) <AC_PROG_CXX>: Likewise, for CXXFLAGS.
1142         Reported by Monty Taylor; wording suggested by Paolo Bonzini.
1144         Document that Autoconf relies on IFS.
1145         * doc/autoconf.texi (Special Shell Variables) <IFS>: Add details
1146         about use of IFS within configure script.
1147         * THANKS: Update.
1148         Reported by Arkadiusz Miskiewicz.
1150         Recommend latest m4 release.
1151         * README: Bump recommendation to m4 1.4.14 (minimum remains
1152         1.4.6).
1153         * doc/autoconf.texi (Introduction): Likewise.
1154         * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
1156 2010-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1158         Fix testsuite failures due to setting of $U.
1159         * tests/local.at (_AT_CHECK_ENV): Ignore setting of $U.
1161 2010-02-10  Eric Blake  <ebb9@byu.net>
1163         Avoid $U if it is not initialized.
1164         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Ensure $U is
1165         set if automake did not define it.
1166         * THANKS: Update.
1167         Reported by Heiko Schlichting, via Julien Élie.
1169 2010-01-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1171         Fix substitution of carriage return on Darwin.
1172         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Set
1173         ac_cs_awk_cr to '\\r', so that sed portably expands this to '\r'
1174         rather than a literal carriage return, to fix substitution on
1175         Darwin.  Regression introduced in 2.63b.
1176         Report by Peter O'Gorman.
1178 2010-01-21  Dmitry V. Levin <ldv@altlinux.org>
1180         Fix test failure when a shell uses $TMPDIR for here-documents.
1181         * tests/tools.at (autotools and whitespace in file names): Create
1182         $TMPDIR before potential use like in other whitespace tests.
1184 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
1186         Add recommendation on (not) unsetting IFS.
1187         * doc/autoconf.texi (Special shell variables): Explain why it's
1188         better not to unset IFS.
1190 2010-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1192         config.status: consistent exit status with nonexistent config file input.
1193         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Ensure we
1194         exit with status 1 rather than with that of 'false', for
1195         reproducibility.
1196         (AC_OUTPUT): Ensure to exit 1 in case of config.status failure.
1197         * tests/torture.at (Missing templates): Also test code path
1198         for $srcdir != '.'.
1199         Report by Tim Rice.
1201 2010-01-13  Eric Blake  <ebb9@byu.net>
1203         Fix previous example.
1204         * doc/autoconf.texi (Here-Documents): Touch up the example to
1205         match output to sample command line.
1207         Document here-doc pitfall.
1208         * doc/autoconf.texi (Here-Documents): Mention problem with <<-
1209         operator.
1210         Reported by Jim Meyering.
1212 2010-01-12  Eric Blake  <ebb9@byu.net>
1214         Typo fix in earlier commit.
1215         * doc/autoconf.texi (Autoconf Language): Fix typo.
1217 2010-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1219         Allow AC_FUNC_MKTIME to work with C++.
1220         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME): ANSIfy KnR function
1221         definitions.  Use `const char*' for character literals; cast them
1222         to `char*' for putenv.
1224 2010-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1226         Export AUTOM4TE in tests/atlocal.in, for aclocal.
1227         * tests/atlocal.in: Set and export $AUTOM4TE, for aclocal.
1228         Report by Tim Rice.
1230 2010-01-08  Eric Blake  <ebb9@byu.net>
1232         Make autotest example act better with automake.
1233         * doc/autoconf.texi (Making testsuite Scripts): Rely on automake
1234         feature for recommended autotest snippet, following our own use.
1236         Clarify language on handling of opening parenthesis.
1237         * doc/autoconf.texi (Autoconf Language): Give an example of
1238         improper argument passing.
1239         * THANKS: Update.
1240         Reported by Juan Carlos Hurtado.
1242 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1244         Don't fail autom4te preselection test due to different Automake.
1245         * tests/tools.at (autom4te preselections): If the cache test
1246         fails, extract the Automake version from the toplevel
1247         Makefile.in file of the source tree; skip, rather than fail
1248         the test group if the automake program has a different version.
1249         * THANKS: Update.
1250         Report by Dieter Jurzitza, fix suggested by Eric Blake.
1252 2010-01-06  Peter Breitenlohner  <peb@mppmu.mpg.de>
1253             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1255         Fix AC_CONFIG_LINKS to generated files when srcdir is absolute.
1256         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Check $ac_source,
1257         not $srcdir, for being relative or absolute.
1258         * tests/torture.at (AC_CONFIG_LINKS): New test.
1259         (AC_CONFIG_LINKS and identical files): Extend test, avoid some
1260         forks.
1261         Report, patch and testcase example by Peter Breitenlohner.
1263 2010-01-05  Eric Blake  <ebb9@byu.net>
1265         Improve release automation.
1266         * maint.mk (gnulib_dir, gnulib-version, bootstrap-tools)
1267         (announcement): Copy from latest gnulib maint.mk.
1268         * cfg.mk (announce_gen, gpg_key_ID): Delete.
1269         (bootstrap-tools): Override the default.
1271         Update upstream files.
1272         * GNUmakefile: Update via 'make fetch'.
1273         * build-aux/announce-gen: Likewise.
1274         * build-aux/config.guess: Likewise.
1275         * build-aux/config.sub: Likewise.
1276         * build-aux/gendocs.sh: Likewise.
1277         * build-aux/gnupload: Likewise.
1278         * build-aux/move-if-change: Likewise.
1279         * build-aux/update-copyright: Likewise.
1280         * build-aux/vc-list-files: Likewise.
1281         * doc/standards.texi: Likewise.
1282         * cfg.mk (update-copyright-env): Enforce wrap column.
1284         Update copyright year.
1285         All files changed to add 2010, via 'make update-copyright'.
1287 2009-12-31  Bruno Haible  <bruno@clisp.org>
1289         Improve documentation on Solaris tr bugs.
1290         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Refine
1291         description of NUL handling by Solaris tr.
1293 2009-12-31  Eric Blake  <ebb9@byu.net>
1295         Another tr tweak.
1296         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Clarify
1297         previous commit.
1298         Reported by Ralf Wildenhues.
1300 2009-12-29  Eric Blake  <ebb9@byu.net>
1302         Improve documentation on tr portability.
1303         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Refine
1304         description of NUL handling.  Document set size issue.
1305         Reported by Bruno Haible.
1307         Fix comment in AC_CHECK_DECLS.
1308         * lib/autoconf/general.m4 (AC_CHECK_DECL): Document the includes
1309         argument to the shell function.
1311 2009-12-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1313         Add testsuite exposure for shtool usage.
1314         * tests/foreign.at (shtool): New test.
1315         Report by Dmitry Grebeniuk.
1317 2009-12-12  Eric Blake  <ebb9@byu.net>
1319         Improve wording about m4 quote characters.
1320         * doc/autoconf.texi (Autoconf Language): Autoconf quote characters
1321         come from m4sugar, not raw m4.
1322         (Active Characters): Mention that it is m4sugar which changes
1323         quotes from `' to [].
1324         * THANKS: Update.
1325         Suggested by Josef Vukovic.
1327 2009-12-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1329         Revert "Improve AC_CONFIG_AUX_DIRS a bit." to fix shtool usage.
1330         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Revert test for
1331         shtool as install script.  Regression introduced in 2.64.
1332         * NEWS, THANKS: Update.
1333         Report by Dmitry Grebeniuk.
1334         This reverts commit 93d9386de9c1320afed43f1337ac5ddb2d2dcbb4.
1336 2009-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1338         Fix NEWS description for AC_FUNC_MMAP entry.
1339         * NEWS: Update.
1341         Fix 2.65 AC_TYPE_INT*_T macro body text regression.
1342         * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY): Move helper enum
1343         definition to prologue section, to avoid syntax error.
1344         * NEWS, THANKS: Update.
1345         Report by Pierre Ynard.
1347 2009-12-09  Paolo Bonzini  <bonzini@gnu.org>
1349         Fix `recursion' test failure.
1350         * tests/m4sugar.at (recursion): Use empty diversion, not 0.
1352 2009-12-05  Stefano Lattarini  <stefano.lattarini@gmail.com>
1353             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1355         Document Solaris/Heirloom sh set -e issue with command substitutions.
1356         * doc/autoconf.texi (Limitations of Builtins): Fix typos `set -d'
1357         in previous example.  Document failure to honor && lists with set -e
1358         and a command substitution in the failing command.
1359         Report and initial patch by Stefano Lattarini against Automake.
1361 2009-12-04  Eric Blake  <ebb9@byu.net>
1363         Warn if using unnamed diversion.
1364         * lib/m4sugar/m4sugar.m4 (_m4_divert, m4_divert_push): Add
1365         optional parameter, which controls warning.
1366         (m4_divert_pop, m4_cleardivert, m4_divert_require)
1367         (_m4_require_call): Adjust callers.
1368         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Likewise.
1369         * tests/m4sh.at (AT_DATA_LINENO): Avoid triggering the warning.
1370         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, m4@&t@_append)
1371         (m4@&t@_text_wrap, recursion): Likewise.
1372         (m4@&t@_warn, m4@&t@_divert_stack): Adjust expected output.
1373         * tests/tools.at (autom4te and whitespace in file names)
1374         (autoconf: the empty token): Avoid triggering the warning.
1375         (autoconf: AC_PRESERVE_HELP_ORDER): New test.
1376         * tests/mktests.sh (ac_exclude_list): Retire prior test.
1377         * NEWS: Document the warning.
1378         * doc/autoconf.texi (Redefined M4 Macros) <m4_divert>,
1379         <m4_undivert>: Make even more explicit that using these directly
1380         is discouraged.
1381         (Diversion support): Further warn against improper diversion
1382         changes.
1383         <m4_divert_text>: Give an example of proper use.
1384         Reported by Mike Frysinger.
1386 2009-11-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1388         manual: AC_SEARCH_LIBS also prepends to LIBS.
1389         * doc/autoconf.texi (Libraries): Document that AC_SEARCH_LIBS
1390         prepends to LIBS, just like AC_CHECK_LIB.
1392 2009-11-27  Paolo Bonzini  <bonzini@gnu.org>
1394         Bump m4.m4 serial number.
1395         * m4/m4: Bump serial number to 10.
1397 2009-11-27  Harald van Dijk  <truedfx@gentoo.org>
1399         Fix m4 detection test on dash.
1400         * m4/m4 (AC_PROG_GNU_M4): Use AS_ECHO.
1402 2009-11-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1404         Fix AC_FUNC_MMAP regression with C++ compiler in 2.65.
1405         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Use const char*
1406         for the constant string.  Cast void* to char* for assignment.
1407         * NEWS, THANKS: Update.
1408         Report by Michal Čihař.
1410         Add pgfortran to list of Fortran 95+ compilers.
1411         * lib/autoconf/fortran.m4 (_AC_F95_FC): Add pgfortran before
1412         pgf95.
1413         Based on report by Jeff Squyres.
1415 2009-11-22  Bruno Haible  <bruno@clisp.org>
1417         Fix failure of test 35 when the user has a .autom4te.cfg file.
1418         * tests/tools.at (autom4te cache creation): Skip the test if the
1419         user has a .autom4te.cfg file.
1421 2009-11-21  Eric Blake  <ebb9@byu.net>
1423         Release Version 2.65.
1424         * NEWS: Mention the release.
1426         Prepare for release.
1427         * build-aux/announce-gen: Sync from upstream.
1428         * build-aux/config.guess: Likewise.
1429         * build-aux/config.sub: Likewise.
1430         * cfg.mk (gnu_rel_host, url_dir_list): Move...
1431         * maint.mk: ...here, copying ideas from gnulib.
1432         (major): Rename...
1433         (stable): ...to this, copying gnulib.
1434         * HACKING (release): Document changes in process.
1436         Avoid spurious newline in traced macros.
1437         * bin/autoreconf.in (tracing): Drop newline before parsing traced
1438         arguments; regression from 2009-11-14.
1440 2009-11-20  Eric Blake  <ebb9@byu.net>
1442         Allow absolute names in AT_TESTED.
1443         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Check for
1444         absolute names before path walk.
1445         * THANKS: Update.
1446         Suggested by Allan Clark.
1448 2009-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1450         Fix AC_CONFIG_SUBDIRS tracing in autoreconf.
1451         * bin/autoreconf.in (autoreconf_current_directory): Collapse
1452         newlines in the autoconf trace output, similar to how automake
1453         invokes autoconf, so that newlines do not matter in the argument
1454         to AC_CONFIG_SUBDIRS.
1455         * tests/torture.at (Deep Package): Expose this issue in the
1456         test.
1457         * THANKS: Update.
1458         Report by Nathan Schulte.
1460 2009-11-09  Eric Blake  <ebb9@byu.net>
1462         Fix AC_FUNC_MMAP for cygwin.
1463         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Make the test more
1464         portable: Actually check for <sys/param.h>, and only use MAP_FIXED
1465         on an address previously returned from mmap.
1466         * THANKS: Update.
1467         Reported by Corinna Vinschen.
1469 2009-11-04  Eric Blake  <ebb9@byu.net>
1471         Redocument AS_DIRNAME, even with its flaws.
1472         * doc/autoconf.texi (Common Shell Constructs) <AS_DIRNAME>:
1473         Restore documenatation, since dirname mentions it.
1474         Reported by Peter Johansson.
1476         Update upstream files.
1477         * build-aux/announce-gen: Synchronize from upstream.
1478         * build-aux/config.guess: Likewise.
1479         * build-aux/config.sub: Likewise.
1480         * build-aux/gendocs.sh: Likewise.
1481         * build-aux/git-version-gen: Likewise.
1482         * build-aux/texinfo.tex: Likewise.
1483         * build-aux/update-copyright: Likewise.
1484         * doc/standards.texi: Likewise.
1485         * lib/Autom4te/Channels.pm: Likewise.
1486         * lib/Autom4te/Configure_ac.pm: Likewise.
1487         * lib/Autom4te/FileUtils.pm: Likewise.
1488         * lib/Autom4te/Struct.pm: Likewise.
1489         * lib/Autom4te/XFile.pm: Likewise.
1491 2009-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1493         Coverage for autom4te cache creation issues.
1494         * tests/tools.at (autom4te cache creation): New test.
1496 2009-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1498         Fix testsuite failures with SHELL=zsh.
1499         * tests/statesave.m4 (AC_STATE_SAVE): Ignore argv and ARGC when
1500         comparing configure variables.
1502 2009-11-03  Eric Blake  <ebb9@byu.net>
1503         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1505         Update NEWS for recent fixes.
1506         * NEWS: Add some entries.
1508 2009-10-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1510         Micro-optimization of config.status substitution.
1511         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): No need to
1512         concatenate an empty second string, when we have exactly 148
1513         characters to substitute.
1514         * tests/torture.at (Substitute a 2000-byte string): Add test
1515         exposure for runs of backslashes near the 148 character limit.
1517         Fix testsuite failure on AIX 4.3.3.
1518         * lib/autoconf/general.m4 (_AC_RUN_LOG_LIMIT): Remove conftest.err
1519         also if it is empty.
1521         Fix testsuite failure on IRIX and AIX.
1522         * tests/torture.at (Substitute and define special characters):
1523         Double the backslash before the double-quote in
1524         AC_DEFINE_UNQUOTED, as documented for here-documents.
1526 2009-10-31  Eric Blake  <ebb9@byu.net>
1528         Fix cross-manual link to gcc.
1529         * doc/autoconf.texi (Portable C and C++): Provide uref rather than
1530         xref when building for html.
1531         Reported via Karl Berry.
1533         Update authors.
1534         * AUTHORS: Document recent copyright assignments.
1536 2009-10-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1538         Fix AC_OPENMP configure message for non-C compilers.
1539         * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Accept as additional
1540         fourth arg the compiler variable name, defined in _AC_CC($1).
1541         (_AC_CC): New language dispatch macro.
1542         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Adjust.
1543         * lib/autoconf/fortran.m4 (AC_LANG(Fortran 77), AC_LANG(Fortran)):
1544         Likewise.
1545         * lib/autoconf/c.m4 (AC_LANG(C), AC_LANG(C++))
1546         (AC_LANG(Objective C), AC_LANG(Objective C++)): Likewise.
1547         (AC_OPENMP): Use _AC_CC instead of $CC.
1549         Do not fail OpenMP tests on systems without aclocal.
1550         * tests/c.at (AC_OPENMP and C, AC_OPENMP and C++): Override
1551         `ACLOCAL=true' for autoreconf, the tests don't need aclocal.
1552         * tests/fortran.at (AC_OPENMP and Fortran 77)
1553         (AC_OPENMP and Fortran): Likewise.
1555 2009-10-31  Bruno Haible  <bruno@clisp.org>
1556             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1558         Improve cache variable documentation.
1559         * doc/autoconf.texi (AC_PROG_AWK, AC_PROG_GREP, AC_PROG_EGREP,
1560         AC_PROG_FGREP, AC_PROG_INSTALL, AC_PROG_MKDIR_P, AC_PROG_LEX,
1561         AC_PROG_YACC, AC_CHECK_PROG, AC_CHECK_PROGS, AC_PATH_PROG,
1562         AC_PATH_PROGS): Don't suggest to use the cache variable, only to
1563         override it, or preferably, a non-cache variable associated with
1564         the test.
1565         (AC_PROG_SED): Likewise. Fix name of cache variable.
1566         (AC_FUNC_GETMNTENT): Fix name cache variable.
1567         (AC_FUNC_LSTAT): Fix typo.
1569 2009-10-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1571         Fix AC_OPENMP for Fortran (F77 and FC).
1572         * lib/autoconf/fortran.m4 (AC_LANG_FUNC_LINK_TRY(Fortran): New.
1573         * tests/c.at (AC_C_RESTRICT and C++, AC_OPENMP and C)
1574         (AC_OPENMP and C++): New tests.
1575         * tests/fortran.at (AC_OPENMP and Fortran 77)
1576         (AC_OPENMP and Fortran): New tests.
1577         * THANKS: Update.
1578         Report by Bart Oldeman.
1580         Perl coverage convenience targets.
1581         * Makefile.am (PERL_COVERAGE_DB, PERL_COVERAGE_FLAGS)
1582         (PERL_COVER): New variables.
1583         (check-coverage, check-coverage-run, check-coverage-report)
1584         (clean-coverage): New phony targets.
1585         (clean-local): Depend on clean-coverage.
1587 2009-10-28  Eric Blake  <ebb9@byu.net>
1589         Fix corner cases in AS_LITERAL_IF and AS_TR_SH.
1590         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix bug with unbalanced
1591         parens.  Move guts...
1592         (_AS_LITERAL_IF): into new helper.
1593         (AS_TR_SH, AS_TR_CPP): Fix bugs with expansion of wrong macro.
1594         Move guts...
1595         (_AS_TR_SH, _AS_TR_SH_LITERAL, _AS_TR_SH_INDIR, _AS_TR_CPP)
1596         (_AS_TR_CPP_LITERAL, _AS_TR_CPP_INDIR): ...into new helpers.
1597         (AS_VAR_PUSHDEF): Hoist m4_require, by moving guts...
1598         (_AS_VAR_PUSHDEF): ...into new helper.
1599         * tests/m4sh.at (AS@&t@_LITERAL_IF): Enhance test.
1601         Minor optimizations to m4sh.
1602         * lib/m4sugar/m4sh.m4 (AS_VAR_IF, AS_IDENTIFIER_IF)
1603         (AS_LITERAL_IF): Parse fewer bytes during expansion, by visiting
1604         if-true and if-false arguments only once.
1606         Optimize m4_escape for common case.
1607         * lib/m4sugar/m4sugar.m4 (m4_escape): Don't use regex if string is
1608         already sane, by copying from AS_LITERAL_IF.  Move guts...
1609         (_m4_escape): ...into new helper.
1611         Fix m4_text_wrap handling of quoted whitespace.
1612         * lib/m4sugar/m4sugar.m4 (m4_escape): New macro.
1613         (m4_text_wrap): Use it to avoid issues with embedded [ and ].
1614         * tests/m4sugar.at (m4@&t@_text_wrap): Test it.
1615         * NEWS: Document this.
1616         * doc/autoconf.texi (Text processing Macros) <m4_escape>:
1617         Likewise.
1618         Reported by Mike Frysinger.
1620 2009-10-27  Eric Blake  <ebb9@byu.net>
1622         Mention another feature of AC_RUN_IFELSE.
1623         * doc/autoconf.texi (Runtime) <AC_RUN_IFELSE>: Mention that
1624         compiled test program still exists during if-true branch.
1625         * THANKS: Update.
1626         Reported by Stefano Lattarini, suggestion by Ralf Wildenhues.
1628 2009-10-26  Paolo Bonzini  <bonzini@gnu.org>
1630         Pass Autom4te path down to programs that autoreconf invokes.
1631         * bin/autoreconf.in (autom4te): New variable.  Export its value
1632         as $ENV{'AUTOM4TE'}.  Suggested by Peter Johansson.
1633         * THANKS: Update.
1635 2009-10-20  Eric Blake  <ebb9@byu.net>
1637         Fix AC_TYPE_UINT64_T on Tru64 with gcc 3.4.4.
1638         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT_BODY)
1639         (_AC_TYPE_INT_BODY): Avoid undefined behavior of attempting shift
1640         wider than type.
1641         * NEWS: Document this.
1642         Reported by Rainer Orth.
1644 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1646         Fix a couple of index entries in the manual.
1647         * doc/autoconf.texi (Polymorphic Variables): Fix index entries
1648         for AS_VAR_APPEND, AS_VAR_ARITH.
1650 2009-10-15  Eric Blake  <ebb9@byu.net>
1652         Fix typos in INSTALL.
1653         * doc/install.texi (Basic Installation, Installation Names): Fix
1654         typos in last patch.
1655         Repored by Ralf Wildenhues.
1657         Improve INSTALL wording.
1658         * doc/install.texi (Basic Installation): Clarify installcheck
1659         behavior.
1660         (Installation Names): Mention that --prefix only overrides
1661         directory locations not specified on the command line.  Prefer
1662         /alternate/directory over /path/to.  Remove a sentence targeted to
1663         the developer, not the user.
1664         * THANKS: Update.
1665         Suggested by Alfred M. Szmidt.
1667 2009-10-15  Peter Breitenlohner  <peb@mppmu.mpg.de>
1669         Fix typos in documentation.
1670         * doc/autoconf.texi (Cache Variable Index): Fix typo.
1671         (Libraries) <AC_SEARCH_LIBS>: Mention 'none required' result.
1673 2009-10-09  Bruno Haible  <bruno@clisp.org>
1674             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1676         Recommend `sh -n' debugging, and public result variables for macros.
1677         * doc/autoconf.texi (Debugging): Recommend to use "bash -n
1678         configure".  Recommend the use of result variables as an
1679         alternative to run-if-true/run-if-false parameters.
1681 2009-10-05  Bruno Haible  <bruno@clisp.org>
1683         * doc/autoconf.texi (Particular Functions): Swap sections about
1684         AC_FUNC_MBRTOWC and AC_FUNC_MEMCMP.
1686 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
1688         Unconditionally check for junk ./--version after mkdir search loop.
1689         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Always check for
1690         presence of ./--version.  Reported by Eric Blake.
1692 2009-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1694         Clarify documentation about Solaris sed quantifier restriction.
1695         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: '*' does
1696         not work after subexpressions, \{M,N\} only after one-character
1697         expressions.  From GCC PR 38923.
1699 2009-09-21  Eric Blake  <ebb9@byu.net>
1701         Fit configure output in 80 columns.
1702         * lib/autoconf/functions.m4
1703         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Shorten message.
1705 2009-09-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1707         Use consistent notation for cache variables.
1708         * doc/autoconf.texi (Generic Programs): Remove `$' before
1709         variable name.
1711         Documentation of specific and general cache variables.
1712         * doc/autoconf.texi (Default Includes, Alternative Programs)
1713         (Particular Programs, Generic Programs, Files, Libraries)
1714         (Function Portability, Particular Functions, Generic Functions)
1715         (Particular Headers, Generic Headers, Declarations)
1716         (Generic Declarations, Particular Structures, Particular Types)
1717         (Specific Compiler Characteristics)
1718         (Generic Compiler Characteristics, C Compiler, System Services):
1719         Document lots of cache variables.
1720         * NEWS: Update.
1721         Suggested by Bruno Haible.
1723         New cache variable index in the manual.
1724         * doc/autoconf.texi: Define new index `CA' for cache variables.
1725         (caindex): New macro.
1726         (Cache Variable Index): New appendix node.
1727         (Top, Indices): Adjust menus.
1728         (Cache Variable Names, Site Defaults): Adjust text.
1729         * doc/Makefile.am (CLEANFILES): Add files generated for CA index.
1731         New FAQ node: Debugging.
1732         * doc/autoconf.texi (Debugging): New node.
1733         (Top, FAQ): Adjust menus.
1734         Report by Bruno Haible.
1736         Document AM_MAKEFLAGS workaround to the macro override problem.
1737         * doc/autoconf.texi (Macros and Submakes): Automake makefiles
1738         provide AM_MAKEFLAGS to help with overriding macros in submake
1739         invocations.
1740         Prompted by bug report from Bruno Haible.
1742 2009-09-15  Peter Breitenlohner  <peb@mppmu.mpg.de>
1744         Implement and document Objective C++ support.
1745         * lib/autoconf/c.m4 (AC_LANG(Objective C++), AC_LANG_OBJCXX)
1746         (AC_LANG_PREPROC(Objective C++), AC_PROG_OBJCXXCPP)
1747         (AC_LANG_COMPILER(Objective C++), AC_PROG_OBJCXX)
1748         (_AC_PROG_OBJCXX_G): New macros.
1749         (_AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
1750         (_AC_ARG_VAR_LIBS): Adjusted.
1751         * doc/autoconf.texi (Objective C++ Compiler): New node.
1752         (Preset Output Variables): Document OBJCXXFLAGS.
1753         (Language Choice): Document `Objective C++' language.
1754         * NEWS: Updated.
1755         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C++
1756         related variables.
1758 2009-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1760         Work around DJGPP shell function return bug with command substitutions.
1761         DJGPP bash 2.04 has a bug in that `return $ac_retval' done in a
1762         shell function which also contains a command substitution causes
1763         the shell to barf.  For more details and a fix see:
1764         <http://www.delorie.com/djgpp/mail-archives/browse.cgi?p=djgpp-workers/2009/09/09/03:35:08>
1765         Possible workaround include putting the `return' in a subshell
1766         or calling another function to set the status.
1767         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY)
1768         (_AC_COMPILE_IFELSE_BODY, _AC_LINK_IFELSE_BODY)
1769         (_AC_RUN_IFELSE_BODY, _AC_COMPUTE_INT_BODY): Use AS_SET_STATUS
1770         instead of `return'.
1771         * doc/autoconf.texi (Common Shell Constructs, Shell Functions):
1772         Document the issue.
1773         * THANKS: Update.
1774         Report by Rugxulo and Reuben Thomas.
1776         DJGPP fix: Do not redirect standard input in configure scripts.
1777         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): If $DJGPP is
1778         nonempty, do not dup fd 0 to AS_ORIGINAL_STDIN_FD, do not close
1779         fd 0.
1781 2009-09-14  Eric Blake  <ebb9@byu.net>
1783         Quote result of m4_toupper and m4_tolower.
1784         * lib/m4sugar/m4sugar.m4 (m4_tolower, m4_toupper): Quote result.
1785         * lib/autotest/general.m4 (AT_KEYWORDS): Adjust caller.
1786         * tests/m4sugar.at (m4@&t@_toupper and m4@&t@_tolower): New test.
1787         * NEWS: Document this.
1788         * THANKS: Update.
1789         Reported by Sam Steingold.
1791 2009-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1793         DJGPP fix: remove both conftest and conftest.exe.
1794         The DJGPP compiler may create both `a.out' and `a.exe' without -o,
1795         and both `conftest' and `conftest.exe' with `-o conftest', but not
1796         with `-o conftest.exe'.
1797         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Also remove
1798         `conftest' without $ac_exeext suffix.
1800         DJGPP fix: do not try to source /dev/null as cache or site file.
1801         * lib/autoconf/general.m4 (AC_SITE_LOAD, AC_CACHE_LOAD): Do not
1802         load the cache or site file if it is `/dev/null', as DJGPP treats
1803         it as a regular file, but the shell then warns about it later.
1804         Fixes several test suite failures on DJGPP.
1806         testsuite: pass $configure_options to configure invocations.
1807         * tests/local.at (AT_CHECK_CONFIGURE): Add $configure_options
1808         to configure command line.
1809         * tests/autotest.at, tests/base.at, tests/c.at, tests/torture.at:
1810         Likewise for each configure invocation.
1811         * README-hacking: Document configure_options.
1813         testsuite: improve Erlang tests portability, overridability.
1814         * tests/autotest.at (Erlang Eunit unit tests): Use "no" as
1815         value-if-not-found for Erlang tools.
1816         * tests/erlang.at: Likewise.  Also, use AS_EXIT instead of plain
1817         exit.
1819 2009-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1821         * bin/autoupdate.in: Fix typos in comments.
1823         Improve autotest testsuite summary message.
1824         * lib/autotest/general.m4 (AT_INIT): Hint at the toplevel log
1825         only if not $at_debug_p.  Always hint at the per-test output.
1827         Four new autoupdate tests, expected failures.
1828         * tests/tools.at (autoupdating macros recursively)
1829         (autoupdating with m4@&t@_pushdef, autoupdating with AC_REQUIRE)
1830         (autoupdating with complex quoting): New tests.
1832         Fix description of AC_CHECK_LIB regarding other deplibs.
1833         * doc/autoconf.texi (Libraries): Library linking may not fail
1834         even without missing additional libs.
1836 2009-09-12  Eric Blake  <ebb9@byu.net>
1838         Track recent copyright assignments.
1839         * AUTHORS: Update.
1841         Improve documentation on quoting.
1842         * doc/autoconf.texi (Autoconf Language): Clarify quoting example.
1843         * THANKS: Update.
1844         Reported by santilín.
1846 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1848         New config.status option --config.
1849         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Implement
1850         --config.
1851         * doc/autoconf.texi (config.status Invocation): Document it.
1852         * NEWS: Update.
1853         * tests/torture.at (configure invocation): Test it.
1854         Suggested several times, by several people, in the past.
1856 2009-09-10  Eric Blake  <ebb9@byu.net>
1858         Document that AS_INIT is automatically used.
1859         * doc/autoconf.texi (Initialization Macros) <AS_INIT>: Add words
1860         to clarify that only bare-bones scripts need a direct AS_INIT.
1861         Suggested by Reuben Thomas.
1863         Clarify portability pitfall of test.
1864         * doc/autoconf.texi (Limitations of Builtins) <test>: Give more
1865         reasons why -a and -o are not portable.
1866         Reported by Reuben Thomas.
1868 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1870         Document sed limitation with escaped metacharacters.
1871         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Use `%'
1872         rather than `/' as delimiter in an example `s' command.
1873         Document inconsistent treatment of escaped metacharacters.
1874         * THANKS: Update.
1875         Report by Dave Korn, with additional input from Paolo Bonzini
1876         and Eric Blake.
1878         Document temporary directory `$tmp' for use in config.status.
1879         * doc/autoconf.texi (Configuration Actions): Document `$tmp'.
1880         * NEWS: Update.
1882 2009-09-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1884         Update License to GPLv3+ including new Autoconf Exception.
1885         * NEWS, README: Update licensing information.
1886         * COPYING.EXCEPTION: New file.
1887         * Makefile.am (EXTRA_DIST): Distribute it.
1888         * cfg.mk (autom4te-update): Remove copyright change warning.
1889         * lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
1890         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
1891         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
1892         lib/autoconf/erlang.m4, lib/autoconf/fortran.m4,
1893         lib/autoconf/functions.m4, lib/autoconf/general.m4,
1894         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
1895         lib/autoconf/libs.m4, lib/autoconf/oldnames.m4,
1896         lib/autoconf/programs.m4, lib/autoconf/specific.m4,
1897         lib/autoconf/status.m4, lib/autoconf/types.m4,
1898         lib/autotest/autotest.m4, lib/autotest/general.m4,
1899         lib/autotest/specific.m4, lib/m4sugar/foreach.m4,
1900         lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4: Update exception
1901         statement, bump to GPLv3.
1902         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
1903         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
1904         bin/ifnames.in: Bump to GPLv3+, adjust --version output
1905         to reflect the GPLv3+ and the Autoconf Exception.
1906         * lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
1907         lib/Autom4te/General.pm, lib/Autom4te/Request.pm,
1908         lib/autom4te.in, lib/autoscan/autoscan.pre,
1909         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
1910         lib/freeze.mk, tests/atlocal.in, tests/autoscan.at,
1911         tests/autotest.at, tests/base.at, tests/c.at,
1912         tests/compile.at, tests/erlang.at, tests/foreign.at,
1913         tests/fortran.at, tests/local.at, tests/m4sh.at,
1914         tests/m4sugar.at, tests/mktests.sh, tests/semantics.at,
1915         tests/statesave.m4, tests/suite.at, tests/tools.at,
1916         tests/torture.at, tests/wrapper.as: Bump to GPLv3+.
1918         Allow to work on systems without Fcntl::flock implementation.
1919         * configure.ac (PERL_FLOCK): New substitution variable with test
1920         whether Fcntl::flock is implemented by the system.
1921         * bin/Makefile.am (edit): Substitute @PERL_FLOCK@.
1922         * bin/autom4te.in: Call XFile::lock only if flock is
1923         implemented.
1925 2009-09-04  Reuben Thomas <rrt@sc3d.org>  (tiny change)
1927         Mention the Autoconf archive.
1928         * doc/autoconf.texi (Coding Style): Add a link.
1930 2009-08-30  Bruno Haible  <bruno@clisp.org>
1932         Document another Solaris tr pitfall.
1933         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Mention
1934         that Solaris /usr/bin/tr does not only have problems with
1935         replacing NUL bytes but discards all NUL bytes from the input.
1937 2009-09-04  Eric Blake  <ebb9@byu.net>
1939         Improve wording about what goes before AC_INIT.
1940         * doc/autoconf.texi (Initializing configure): Update wording.
1941         (Versioning) <AC_PREREQ>: Remove misleading text, to match
1942         autoscan's behavior.
1943         * THANKS: Update.
1944         Reported by NightStrike, with input from Ralf Wildenhues.
1946 2009-09-04  Thomas Jahns  <jahns@dkrz.de>  (tiny change)
1948         Fix illegal tab character in Fortran source.
1949         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Change TAB back to
1950         multiple spaces; regression introduced 2008-10-23.
1951         * NEWS: Mention this.
1952         * THANKS: Update.
1954 2009-08-22  Romain Lenglet  <romain.lenglet@laposte.net>
1956         Fix AT_CHECK_EUNIT for versions of Erlang/OTP without init:stop/1.
1957         * lib/autotest/specific.m4 (AT_CHECK_EUNIT): Support older
1958         versions of Erlang/OTP with an erlang:stop() function that doesn't
1959         take arguments.
1961 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1963         Drop unneeded line in Eunit test.
1964         * tests/autotest.at (Erlang Eunit unit tests): Do not copy
1965         install-sh.
1967         Fix build dependencies for Erlang macro files.
1968         * lib/freeze.mk (autotest_m4f_dependencies): Add
1969         $(src_libdir)/autotest/specific.m4.
1970         * tests/Makefile.am (AUTOCONF_FILES): Add erlang.m4.
1972 2009-09-19  Paolo Bonzini  <bonzini@gnu.org>
1974         Use a separate program to test whether the compiler works.
1975         * lib/autoconf/erlang.m4 (_AC_LANG_NULL_PROGRAM(Erlang)): New.
1976         * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Copy _AC_LANG_NULL_PROGRAM.
1977         (_AC_LANG_NULL_PROGRAM(), _AC_LANG_NULL_PROGRAM): New.
1978         (_AC_COMPILER_EXEEXT_DEFAULT): Print here "whether the xyz compiler
1979         works", before exiting.
1980         (_AC_COMPILER_EXEEXT_WORKS): Merge into _AC_COMPILER_EXEEXT_CROSS,
1981         remove the "whether the xyz compiler works" message, use
1982         conftest$ac_cv_exeext instead of $ac_file.
1983         (_AC_COMPILER_EXEEXT): Try _AC_COMPILER_EXEEXT_DEFAULT using
1984         the null program, and clean conftest.out only after
1985         _AC_COMPILER_EXEEXT_CROSS.
1986         (AC_NO_EXECUTABLES): Use _AC_LANG_NULL_PROGRAM.
1987         (_AC_COMPILER_OBJEXT): Use _AC_LANG_NULL_PROGRAM.
1989 2009-08-18  Bruno Haible  <bruno@clisp.org>
1991         Document Solaris tr range and NUL limitations.
1992         * doc/autoconf.texi (Limitations of Usual Tools): Mention that
1993         Solaris /usr/bin/tr does not support ranges, nor the '\0' octal
1994         escape.
1996 2009-08-14  Eric Blake  <ebb9@byu.net>
1998         Simplify version control metadata.
1999         * .cvsignore: Delete.
2000         * bin/.cvsignore: Likewise.
2001         * config/.cvsignore: Likewise.
2002         * doc/.cvsignore: Likewise.
2003         * lib/.cvsignore: Likewise.
2004         * lib/autoconf/.cvsignore: Likewise.
2005         * lib/Autom4te/.cvsignore: Likewise.
2006         * lib/autoscan/.cvsignore: Likewise.
2007         * lib/autotest/.cvsignore: Likewise.
2008         * lib/emacs/.cvsignore: Likewise.
2009         * lib/m4sugar/.cvsignore: Likewise.
2010         * man/.cvsignore: Likewise.
2011         * tests/.cvsignore: Likewise.
2012         * bin/.gitignore: Likewise.
2013         * build-aux/.gitignore: Likewise.
2014         * config/.gitignore: Likewise.
2015         * doc/.gitignore: Likewise.
2016         * lib/.gitignore: Likewise.
2017         * lib/autoconf/.gitignore: Likewise.
2018         * lib/Autom4te/.gitignore: Likewise.
2019         * lib/autoscan/.gitignore: Likewise.
2020         * lib/autotest/.gitignore: Likewise.
2021         * lib/emacs/.gitignore: Likewise.
2022         * lib/m4sugar/.gitignore: Likewise.
2023         * man/.gitignore: Likewise.
2024         * tests/.gitignore: Likewise.
2025         * .gitignore: Consolidate all rules into one file.
2027         Normalize remaining copyright lines.
2028         * BUGS: Reformat copyright line, using UPDATE_COPYRIGHT_FORCE.
2029         * NEWS: Likewise.
2030         * README-hacking: Likewise.
2031         * TODO: Likewise.
2032         * lib/Autom4te/ChannelDefs.pm: Likewise.
2033         * lib/autoconf/fortran.m4: Likewise.
2034         * lib/autoconf/general.m4: Likewise.
2035         * lib/autoconf/lang.m4: Likewise.
2036         * lib/autotest/general.m4: Likewise.
2037         * maint.mk: Likewise.
2038         * tests/compile.at: Likewise.
2040         Improve copyright updating.
2041         * build-aux/update-copyright: Resynchronize from upstream.
2042         * maint.mk (update-copyright): Simplify based on gnulib.
2043         (update-copyright-env): New variable.
2044         * cfg.mk (update-copyright-exclude-regexp): Delete.
2045         (update-copyright-env): New override.
2046         * .x-update-copyright: New file.
2047         * lib/Autom4te/Makefile.am: Add copyright.
2048         * lib/Autom4te/Channels.pm: Revert copyright update to upstream
2049         file.
2050         * lib/Autom4te/Configure_ac.pm: Likewise.
2051         * lib/Autom4te/FileUtils.pm: Likewise.
2052         * lib/Autom4te/Struct.pm: Likewise.
2053         * lib/Autom4te/XFile.pm: Likewise.
2055         Update copyright.
2056         * AUTHORS: Include 2009 in copyright.
2057         * lib/Autom4te/C4che.pm: Likewise.
2058         * lib/Autom4te/Channels.pm: Likewise.
2059         * lib/Autom4te/Configure_ac.pm: Likewise.
2060         * lib/Autom4te/FileUtils.pm: Likewise.
2061         * lib/Autom4te/General.pm: Likewise.
2062         * lib/Autom4te/Request.pm: Likewise.
2063         * lib/Autom4te/Struct.pm: Likewise.
2064         * lib/autoconf/Makefile.am: Likewise.
2065         * lib/autoconf/autoconf.m4: Likewise.
2066         * lib/autoconf/autoscan.m4: Likewise.
2067         * lib/autoconf/autoupdate.m4: Likewise.
2068         * lib/autoconf/functions.m4: Likewise.
2069         * lib/autoconf/libs.m4: Likewise.
2070         * lib/autoconf/oldnames.m4: Likewise.
2071         * lib/autoconf/types.m4: Likewise.
2072         * lib/autoscan/Makefile.am: Likewise.
2073         * lib/autoscan/autoscan.pre: Likewise.
2074         * lib/autotest/Makefile.am: Likewise.
2075         * lib/autotest/autotest.m4: Likewise.
2076         * lib/emacs/autoconf-mode.el: Likewise.
2077         * lib/emacs/autotest-mode.el: Likewise.
2078         * lib/freeze.mk: Likewise.
2079         * lib/m4sugar/foreach.m4: Likewise.
2080         * man/Makefile.am: Likewise.
2081         * tests/atlocal.in: Likewise.
2082         * tests/autoscan.at: Likewise.
2083         * tests/foreign.at: Likewise.
2084         * tests/fortran.at: Likewise.
2085         * tests/mktests.sh: Likewise.
2086         * tests/semantics.at: Likewise.
2087         * tests/suite.at: Likewise.
2088         * tests/wrapper.as: Likewise.
2090         Prepare to bulk update copyright years.
2091         * build-aux/update-copyright: New file.
2092         * cfg.mk (gnulib-update): Sync it from gnulib.
2093         (update-copyright-exclude-regexp): New variable.
2094         (web-manual): Move...
2095         * maint.mk (web-manual): ...here, to match gnulib.
2096         (update-copyright): New target, copied from gnulib's
2097         maint.mk (it would be nice to sync this file...).
2098         (build_aux): New macro.
2099         (VC_LIST, emit_upload_commands): Use it.
2100         * build-aux/texinfo.tex: Resynchronize from upstream.
2101         * lib/autoconf/general.m4 (_AC_COPYRIGHT_YEARS): Reformat to meet
2102         expected pattern.
2103         * lib/autotest/general.m4 (_AT_COPYRIGHT_YEARS): Likewise.
2105 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
2107         Fix testsuite log capturing for tests 183 and 186.
2108         * tests/autotest.at (AT_CHECK_AT_PREP): Prepend AT_dir to
2109         testsuite log file for AT_CAPTURE_FILE.
2111 2009-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2113         Ensure we do not regress with AC_CHECK_MEMBERS.
2114         * tests/semantics.at (AC_CHECK_MEMBERS): Expose the recent
2115         AC_CHECK_MEMBERS fix.
2116         (AC_CHECK_MEMBER): New test group.
2118 2009-08-10  Jeff Squyres  <jsquyres@cisco.com>  (tiny change)
2120         Fix typo in AC_REQUIRE description.
2121         * doc/autoconf.texi (Prerequisite macros): Fix typo.
2123 2009-08-10  Paolo Bonzini  <bonzini@gnu.org>
2125         Fix description of the macro generated by AC_CHECK_MEMBERS.
2126         * lib/autoconf/types.m4 (_AC_CHECK_MEMBERS): Fix regex
2127         replacement.  Reported by Bruno Haible.
2129 2009-08-07  Romain Lenglet  <romain.lenglet@laposte.net>
2131         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Make AC_RUN_IFELSE
2132         fail if the test module doesn't compile.
2134 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
2136         Use exit code to detect no occurrences with grep.
2137         * tests/autotest.at (Erlang Eunit unit tests): Fix grep invocation.
2139 2009-08-01  Romain Lenglet  <romain.lenglet@laposte.net>
2140             Paolo Bonzini  <bonzini@gnu.org>
2142         * lib/autotest/specific.m4 (AT_CHECK_EUNIT): New file.
2143         * lib/autotest/Makefile.am (dist_autotestlib_DATA): Add specific.m4.
2144         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add definitions of
2145         variables used by AT_CHECK_EUNIT macro: ERL, ERLC, ERLCFLAGS.
2146         * tests/autotest.at (Erlang Eunit unit tests): Add test for macro
2147         AT_CHECK_EUNIT.
2148         * doc/autoconf.texi (Writing Testsuites): Document macro
2149         AT_CHECK_EUNIT.
2150         * NEWS: Mention macro AT_CHECK_EUNIT.
2152 2009-07-30  Paolo Bonzini  <bonzini@gnu.org>
2153             Joel E. Denny  <jdenny@clemson.edu>
2155         Clarify comparison of echo, printf, and AS_ECHO*.
2156         * doc/autoconf.texi (Limitations of Builtins): In echo's entry,
2157         give a reason why printf is better than echo.  In printf's
2158         entry, cross-reference echo's entry.
2160 2009-07-30  Paolo Bonzini  <bonzini@gnu.org>
2162         Add back AH_CHECK_HEADERS.
2163         * lib/autoconf/general.m4 (AH_CHECK_HEADERS): New.
2164         * NEWS: Create new section.
2166 2009-07-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2168         testsuite: avoid bogus hostname match from inner test logs.
2169         * tests/autotest.at (Hard fail): Check more restrictively for
2170         passed tests, so that hostnames recorded in the log file do not
2171         wrongly match.
2172         Report by Ludovic Courtès.
2174 2009-07-26  Eric Blake  <ebb9@byu.net>
2176         Release Version 2.64.
2177         * NEWS: Mention the release.
2178         * README: This release is stable.
2179         * HACKING (release): Use dist-xz, not dist-lzma.
2181         Document some optional features in INSTALL.
2182         * doc/install.texi (Basic Installation): Mention that INSTALL is
2183         generic, and that not all packages implement all features.
2184         Mention 'make distcheck' for maintainers, and 'make installcheck'
2185         for users.  Mention the GNU Coding Standards.
2186         (Installation Names): Mention DESTDIR vs. 'make prefix= install'
2187         as ways to alter the configuration, with caveats of each.  Move
2188         --program-prefix discussion...
2189         (Optional Features): ...here.  Mention --enable-silent-rules and
2190         use of make V=0.
2192         Basic improvements to INSTALL.
2193         * doc/install.texi (Basic Installation): Use better markup.
2194         (Multiple Architectures): Introduce the term VPATH.
2195         (Installation Names): Mention that --prefix must be absolute.
2196         * doc/autoconf.texi (Preset Output Variables)
2197         (Installation Directory Variables): Consistently refer to GNU
2198         Coding Standards.
2200         Update some upstream files.
2201         * build-aux/config.guess: Resynchronize from upstream.
2202         * build-aux/config.sub: Likewise.
2203         * build-aux/texinfo.tex: Likewise.
2204         * build-aux/vc-list-files: Likewise.
2205         * doc/standards.texi: Likewise.
2207 2009-07-25  Eric Blake  <ebb9@byu.net>
2209         Recognize new m4sugar keywords.
2210         * lib/emacs/autoconf-mode.el (autoconf-current-defun): Recognize
2211         m4_define_default, m4_defun_init, m4_defun_once.
2212         (autoconf-font-lock-keywords):  Likewise.
2214         Require m4 1.4.6, and fix testsuite to support this version.
2215         * m4/m4.m4 (AC_PROG_GNU_M4): Reject m4 1.4.5, now that we use
2216         regexp it can't handle.
2217         * NEWS: Mention minimum version bump.
2218         * README: Likewise.
2219         * README-hacking: Likewise.
2220         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
2221         * tests/tools.at (autom4te --trace and whitespace): Update test so
2222         still work with older m4 line numbers.
2223         * tests/m4sugar.at (m4@&t@_require: nested): Likewise.
2224         Reported by Ralf Wildenhues.
2226 2009-07-25  Bruno Haible  <bruno@clisp.org>
2228         Clarify autom4te debugging tips.
2229         * doc/autoconf.texi (Debugging via autom4te): Fix example from
2230         previous commit, and add clarification.
2232 2009-07-25  Eric Blake  <ebb9@byu.net>
2234         Document some autom4te debugging tips.
2235         * doc/autoconf.texi (Debugging via autom4te): New node.
2236         Suggested by Bruno Haible.
2238         Fix font-lock.
2239         * configure.ac (ac_cv_unsupported_fs_chars): Make editing easier.
2241         Let autoheader see through m4 macros in AC_DEFINE.
2242         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Expand macro before
2243         tracing its name.
2244         * lib/autoconf/autoheader.m4 (AH_VERBATIM, AH_TEMPLATE): Likewise,
2245         for using the macro in a template file.
2246         * tests/tools.at (autoheader and macros): New test.
2247         * NEWS: Mention this.
2248         Reported by Bruno Haible.
2250         Improve NEWS wording.
2251         * NEWS: Use more accurate statement.
2252         Suggestedy by Ralf Wildenhues.
2254 2009-07-24  Eric Blake  <ebb9@byu.net>
2256         Fix AS_EXIT for FreeBSD sh.
2257         * lib/m4sugar/m4sh.m4 (AS_EXIT): Always supply an argument to the
2258         shell function, since $? is not reliable on function entry.
2259         (_AS_EXIT_PREPARE): Simplify to assume argument.
2260         Reported by Ralf Wildenhues.
2262 2009-07-23  Eric Blake  <ebb9@byu.net>
2264         Run more tests under Solaris.
2265         * tests/local.at (AT_CHECK_AUTOCONF): Don't skip entire test
2266         group when passing over syntax checks.
2268 2009-07-23  Romain Lenglet  <romain.lenglet@laposte.net>
2270         Clean up temporary files generated by Erlang macros.
2271         * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB)
2272         (AC_ERLANG_SUBST_ROOT_DIR, AC_ERLANG_SUBST_LIB_DIR)
2273         (AC_ERLANG_SUBST_ERTS_VER): Delete conftest.out; renamed
2274         erlang_cv_* cache variables into ac_cv_erlang_*.
2275         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Delete conftest.beam
2276         files generated by Erlang compiler.
2277         * tests/local.at (AT_CHECK_ENV): Ignore variables defined by
2278         Erlang macros.
2279         * tests/erlang.at (AT_SETUP_ERLANG): Delete; replace all uses by
2280         AT_CHECK_MACRO.
2281         * tests/Makefile.am (AUTOCONF_FILES): Revert previous addition of
2282         generated Erlang tests; they are all hand-tested.
2284         Add autotests for Erlang macros.
2285         * tests/erlang.at: Added tests for all macros in erlang.m4.
2286         * tests/Makefile.am (TESTSUITE_HAND_AT, AUTOCONF_FILES): Added
2287         erlang.at.
2288         * tests/suite.at: Likewise.
2289         * tests/compile.at (AC_LANG, AC_LANG_PUSH & AC_LANG_POP): Added
2290         test for extension of Erlang files.
2291         (Multiple languages): Use correct m4 quoting.
2292         * NEWS: Mention this.
2294 2009-07-22  Eric Blake  <ebb9@byu.net>
2296         Fix test of autom4te from stdin.
2297         * tests/tools.at (autom4te cache locking): Make stdin request
2298         explicit, so that --force is properly used.
2300 2009-07-16  Eric Blake  <ebb9@byu.net>
2302         Don't hide leading space in autom4te --trace output.
2303         * bin/autom4te.in (handle_traces): Don't flatten leading and
2304         trailing space, since tracing spacing bugs can be useful.
2305         * tests/tools.at (autom4te --trace and whitespace): New test.
2307 2009-07-13  Eric Blake  <ebb9@byu.net>
2309         Document that $srcdir can be used during configure.
2310         * doc/autoconf.texi (Preset Output Variables): Add a paragraph.
2311         * THANKS: Update.
2312         Reported by Monty Taylor.
2314 2009-07-13  Eric Blake  <ebb9@byu.net>
2316         Disable asynchronous job notification for parallel tests.
2317         * lib/autotest/general.m4 (AT_INIT) <Driver loop>: Turn off notify
2318         mode, since zsh leaves it on after 'emulate sh'.
2319         * doc/autoconf.texi (Limitations of Builtins) <set>: Document that
2320         job control options are not portable.
2322         Guarantee that exit status trumps output matching.
2323         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document this
2324         better.
2325         * tests/autotest.at (Skip, parallel skip): Enhance tests.
2327         Fix nits in recent patches.
2328         * configure.ac (ac_cv_dir_trailing_space): Avoid $status, for
2329         zsh.
2330         * doc/autoconf.texi (Writing Testsuites) <AT_FAIL_IF, AT_SKIP_IF>:
2331         Tweak wording.
2332         (Introduction): Recommend m4 1.4.13.
2333         * README: Likewise.
2334         * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.  Use long option --gnu
2335         rather than -g.
2337 2009-07-13  Paolo Bonzini  <bonzini@gnu.org>
2339         Introduce AT_SKIP_IF and AT_FAIL_IF
2340         * NEWS: Mention AT_SKIP_IF and AT_FAIL_IF.
2341         * doc/autoconf.texi (Autotest): Document them.
2342         * lib/autotest/general.m4 (_AT_LINE_ESCAPED, AT_SKIP_IF,
2343         AT_FAIL_IF, _AT_CHECK_EXIT): New.
2344         (AT_CHECK): Use _AT_LINE_ESCAPED.
2345         * tests/autotest.at: Add tests for AT_SKIP_IF and AT_FAIL_IF.
2346         Use AT_SKIP_IF.
2347         * tests/local.at: Use AT_SKIP_IF.
2349 2009-07-13  Paolo Bonzini  <bonzini@gnu.org>
2351         Use m4 -g when available.
2352         * m4/m4.m4: Unset POSIXLY_CORRECT during first test.  Test for -g.
2353         Warn user if he has POSIXLY_CORRECT set but -g is not supported.
2354         * bin/Makefile.am: Substitute @M4_GNU@ into generated files.
2355         * bin/autom4te.in: Pass @M4_GNU@ to m4.
2357 2009-07-13  Eric Blake  <ebb9@byu.net>
2359         Fix previous patch.
2360         * lib/autotest/general.m4 (at_fn_check_prepare_notrace): Use
2361         proper m4 quoting.
2362         (_AT_DECIDE_TRACEABLE): Likewise.
2364 2009-07-13  Paolo Bonzini  <bonzini@gnu.org>
2366         * lib/autotest/general.m4 (at_fn_check_prepare_notrace): Use
2367         $at_trace_echo.  Add new REASON argument.
2368         (at_fn_check_prepare_trace): Do not call at_fn_check_prepare_notrace.
2369         Use $at_check_filter_trace.
2370         (at_fn_check_prepare_dynamic): Use at_fn_check_prepare_notrace.
2371         (at_traceon): Initialize to ':'.
2372         (at_traceoff): Remove, use 'set +x' instead throughout.
2373         (at_check_filter_trace, at_trace_echo): New shell variables.
2374         Initialize them if tracing is requested.
2375         (_AT_DECIDE_TRACEABLE): Adjust call to at_fn_check_prepare_notrace.
2377 2009-07-12  Paolo Bonzini  <bonzini@gnu.org>
2379         Move atlocal feature tests to configure
2380         * configure.ac: Test for unsupported characters in files and
2381         directories here...
2382         * tests/atlocal.in: ... and not here.
2384 2009-07-09  Eric Blake  <ebb9@byu.net>
2386         Fix test typo.
2387         * tests/m4sh.at (AS@&t@_INIT_GENERATED): Close fd, rather than
2388         creating file named -.
2390         Fix testsuite under dash.
2391         * tests/m4sh.at (LINENO stack, AS@&t@_BASENAME, AS@&t@_DIRNAME)
2392         (AS@&t@_ECHO and AS@&t@_ECHO_N, AS@&t@_EXIT, AS@&t@_MKDIR_P)
2393         (AS@&t@_VERSION_COMPARE, as_me, Negated classes in globbing)
2394         (Functions Support, Functions and return Support)
2395         (Nested AS@&t@_REQUIRE_SHELL_FN, Nested AS@&t@_REQUIRE)
2396         (AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require, AS@&t@_HELP_STRING)
2397         (AS@&t@_IF and AS@&t@_CASE, AS@&t@_FOR, AS@&t@_LITERAL_IF)
2398         (AS@&t@_VAR basics, AS@&t@_VAR_APPEND, AS@&t@_VAR_ARITH)
2399         (AS@&t@_INIT cleanup, AS@&t@_INIT_GENERATED, AS@&t@_MESSAGE_FD)
2400         (_AS@&t@_CLEAN_DIR, ECHO_C): Allow testing different CONFIG_SHELL
2401         options during the testsuite run.
2402         Reported by Ralf Wildenhues.
2404 2009-07-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2406         Ignore messages on stderr when testing for the zsh issue.
2407         * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Ignore stderr.
2409 2009-07-07  Eric Blake  <ebb9@byu.net>
2411         Skip parallel tests when zsh 'set -m' fails.
2412         * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Skip test if set -m
2413         is not supported.
2414         Reported by Ralf Wildenhues.
2416         Make parallel testsuite more portable.
2417         * lib/autotest/general.m4 (AT_INIT) <AT_JOB_FIFO_FD>: Avoid <>;
2418         instead open write descriptor in each group and read descriptor in
2419         main driver.
2420         * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Relax condition.
2422 2009-07-03  Eric Blake  <ebb9@byu.net>
2424         Avoid syntax error in ash.
2425         * lib/autotest/general.m4 (AT_INIT) <driver loop>: Avoid syntax
2426         errors on shells that don't recognize <>.
2427         * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Also skip parallel
2428         tests for this reason.   Skip based on the shell to be tested,
2429         not the shell driving the testsuite.
2430         (parallel syntax error): Rearrange similar to previous patch.
2431         (parallel test execution): Defer skip until after serial tests.
2433 2009-07-02  Eric Blake  <ebb9@byu.net>
2435         Skip test on shells that can't catch syntax failure.
2436         * tests/autotest.at (Syntax error): Skip test if shell aborts on
2437         syntax error (AIX ksh88) or doesn't detect it (zsh).
2438         * doc/autoconf.texi (Limitations of Builtins) <.>: Mention these
2439         limitations.
2440         Reported by Ralf Wildenhues.
2442 2009-06-30  Jan Madzik  <jmadzik@gmail.com>  (tiny change)
2443             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2445         Avoid AIX 6.1 ksh88 ECHO_C command substitution bug.
2446         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Ensure more than
2447         one character is output with `\c'; reset echo output state
2448         if buggy ksh was detected, and set ECHO_T instead of ECHO_C.
2449         * doc/autoconf.texi (Limitations of Builtins): Document it.
2450         * tests/m4sh.at (ECHO_C): New test.
2451         * THANKS: Update.
2453 2009-06-27  William Pursell  <bill.pursell@gmail.com>  (tiny change)
2455         Fix grammaro in documenation.
2456         * doc/autoconf.texi (Guidelines): Fix grammaro.
2458 2009-06-17  Eric Blake  <ebb9@byu.net>
2460         Fix AC_CHECK_HEADER infloop for gcc.
2461         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
2462         (_AC_CHECK_HEADER_OLD): Give up on AU_DEFUN, and manually warn
2463         about obsoletion, to avoid infinite loop in gcc.
2464         Reported by Ralf Wildenhues.
2466 2009-06-15  Eric Blake  <ebb9@byu.net>
2468         Add m4_copy_force, m4_rename_force.
2469         * lib/m4sugar/m4sugar.m4 (m4_copy_force, m4_rename_force): New
2470         macros.
2471         * tests/m4sugar.at (m4@&t@_defn): Test them.
2472         * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
2473         them.
2474         * NEWS: Likewise.
2475         Suggested by Ralf Wildenhues.
2477         Reinstate _AC_CHECK_HEADER_OLD for gcc.
2478         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
2479         (_AC_CHECK_HEADER_OLD): Provide autoupdate versions, since gcc and
2480         others used these undocumented macros.
2481         Reported by Ralf Wildenhues.
2483 2009-06-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2485         Fix concurrent autom4te.cache directory creation race.
2486         * bin/autom4te.in: Do not error out if another `autom4te'
2487         instance created the cache directory before we could.
2489 2009-06-11  Steven G. Johnson  <stevenj@alum.mit.edu>
2490         and Eric Blake  <ebb9@byu.net>
2492         Create a file in test program when detecting cross-compilation.
2493         * lib/autoconf/lang.m4 (_AC_LANG_IO_PROGRAM): New macro, returns
2494         program that creates a file.
2495         (_AC_COMPILER_EXEEXT,_AC_COMPILER_EXEEXT_WORKS): Call new macro
2496         and document why it's needed to robustly detect cross-compiling.
2497         (AC_LANG_DEFINE): Copy implementation across similar languages.
2498         * lib/autoconf/c.m4 (_AC_LANG_IO_PROGRAM(C)): Implement new macro.
2499         * lib/autoconf/fortran.m4 (_AC_LANG_IO_PROGRAM(Fortran 77)):
2500         Likewise.
2501         * lib/autoconf/erlang.m4 (_AC_LANG_IO_PROGRAM(Erlang)): Likewise.
2503 2009-06-11  Eric Blake  <ebb9@byu.net>
2505         Simplify AC_LANG(Fortran).
2506         * lib/autoconf/fortran.m4 (AC_LANG(Fortran)): Borrow from Fortran
2507         77, which requires reordering portions of the file.
2508         (AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran)): Now defined
2509         automatically.
2511         Clarify m4_copy semantics.
2512         * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Update
2513         documentation.
2514         * tests/m4sugar.at (m4@&t@_defn): Enhance test.
2516 2009-06-06  Eric Blake  <ebb9@byu.net>
2518         Improve documentation on trap pitfalls.
2519         * doc/autoconf.texi (Limitations of Builtins) <trap>: Mention new
2520         Posix 2008 requirement on trap, and dash bug in implementing it.
2521         Mention various shell bugs with traps defined inside subshells.
2522         Mention older bash limitation with single-command exit trap.
2523         <set>: Mention another 'set -e' limitation.
2524         Reported by Jens Schmidt.
2526 2009-06-06  Jim Meyering  <meyering@redhat.com>
2528         Improve testsuite --help
2529         * lib/autotest/general.m4: Correct the example in ./testsuite --help.
2530         Improve wording.
2532 2009-06-06  Eric Blake  <ebb9@byu.net>
2534         Document fallback behavior of AC_PROG_LEX.
2535         * doc/autoconf.texi (Particular Programs) <AC_PROG_LEX>: Mention
2536         why fallback is :, and that a --version check must be used to
2537         determine whether flex was found.
2538         Reported by Patrick Welche.
2540 2009-05-28  Jim Meyering  <meyering@redhat.com>
2542         Fix syntax errors in autoconf.texi.
2543         * doc/autoconf.texi (Erlang Libraries): @-escape curly braces
2544         in example code.
2546 2009-05-28  Romain Lenglet  <romain.lenglet@laposte.net>
2548         New AC_ERLANG_SUBST_ERTS_VER macro.
2549         * lib/autoconf/erlang.m4: Add macro AC_ERLANG_SUBST_ERTS_VER.
2550         * doc/autoconf.texi (Erlang Libraries): Document
2551         AC_ERLANG_SUBST_ERTS_VER.
2552         * NEWS: Likewise.
2553         * AUTHORS: Update Romain Lenglet's email address.
2554         * THANKS: Update.
2555         Suggested by Ruslan Babayev.
2557 2009-05-26  Eric Blake  <ebb9@byu.net>
2559         Sanitize more problematic environment variables.
2560         * doc/autoconf.texi (Environment Variable Index): Add more
2561         entries, particularly for precious variables and known culprit
2562         variables.  Needed to avoid overfull vbox.
2563         (Special Shell Variables) <CLICOLOR_FORCE, GREP_OPTIONS>: Add
2564         variables known to cause misbehavior.
2565         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Unset variables
2566         known to cause problems.
2567         * THANKS: Update.
2568         Based on reports from Ilya Bobir and Joey Mingrone.
2570 2009-05-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2572         Document VPATH = $(variable) issue in VPATH chapter.
2573         * doc/autoconf.texi (Variables listed in VPATH): New node.
2574         (Top, VPATH and Make): Adjust menus.
2575         (Build Directories): Refer to it.
2576         Prompted by report from Bruno Haible.
2578 2009-05-19  Eric Blake  <ebb9@byu.net>
2580         Update uses of all-permissive license.
2581         * ChangeLog: Relicense under GPL.
2582         * ChangeLog.0: Likewise.
2583         * ChangeLog.1: Likewise.
2584         * ChangeLog.2: Likewise.
2585         * THANKS: Likewise.
2586         * m4/m4.m4: Use latest wording of FSF all-permissive license.
2587         * m4/make-case.m4: Likewise.
2588         * doc/install.texi: Likewise.
2589         * tests/statesave.m4: Relicense to match rest of testsuite; this
2590         file does not need all-permissive license since it is not designed
2591         for reuse by other packages.
2592         * BUGS: Relicense under all-permissive license.
2593         * HACKING: Likewise.
2594         * NEWS: Likewise.
2595         * README: Likewise.
2596         * README-alpha: Likewise.
2597         * README-hacking: Likewise.
2598         * TODO: Likewise.
2600         Update some upstream files.
2601         * build-aux/config.guess: Resynchronize from upstream.
2602         * build-aux/gnupload: Likewise.
2603         * build-aux/vc-list-files: Likewise.
2604         * build-aux/texinfo.tex: Likewise.
2605         * doc/gendocs_template: Likewise.
2607         Don't mention undocumented interface in NEWS.
2608         * NEWS: Correct earlier entry about AS_FOR.
2610 2009-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2612         New manual section `Parallel Make'.
2613         * doc/autoconf.texi (Parallel Make): New node, document NetBSD
2614         `make -jN' quirks.
2615         (Top, Portable Make): Adjust menus.
2617 2009-05-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2619         testsuite: skip `Multiple languages' test without C++ compiler.
2620         * tests/compile.at (Multiple languages): Skip test on systems
2621         without a C++ compiler.
2622         Report by Jim Meyering.
2624 2009-05-13  Eric Blake  <ebb9@byu.net>
2626         Document zsh bug with empty commands.
2627         * doc/autoconf.texi (Special Shell Variables) <?>: Add mention of
2628         more problems with $?.
2630 2009-05-11  Patrick Welche  <prlw1@cam.ac.uk>  (tiny change)
2632         Also try X11R7 when looking for X11 files, for NetBSD.
2633         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Also try directories
2634         with X11R7 in the name.
2636 2009-05-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2638         Limit stderr logging for C compiler version.
2639         * lib/autoconf/general.m4 (_AC_RUN_LOG_LIMIT, _AC_DO_LIMIT): New
2640         internal macros, equivalent to _AC_RUN_LOG and _AC_DO, but with
2641         an optional additional argument to limit the number of lines of
2642         stderr output logged, defaulting to 10.
2643         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Use
2644         _AC_DO_LIMIT for capturing compiler version output.  Also test
2645         -qversion, for the IBM xlc compiler.
2646         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
2647         * THANKS: Update.
2648         Report by Christian Rössel and John R. Cary against Libtool.
2650 2009-04-24  Eric Blake  <ebb9@byu.net>
2652         Fix quoting of m4 macros in AT_CHECK.
2653         * lib/autotest/general.m4 (AT_CHECK): Expand prior to adding
2654         escapes, to avoid shell syntax errors caused by late macro
2655         expansion.
2656         * NEWS: Document this change.
2657         * tests/autotest.at (Metacharacters in command from M4 expansion):
2658         New test.
2660         manual: Use consistent spelling of here-document.
2661         * doc/autoconf.texi (Defining Symbols, Programming in M4sh)
2662         (Common Shell Constructs, Macro Names, Writing Testsuites): Fix
2663         spelling.
2664         Reported by Ralf Wildenhues.
2666         Make AT_CHECK_UNQUOTED more like AC_DEFINE_UNQUOTED.
2667         * lib/autotest/general.m4 (AT_CHECK_NOESCAPE): Keep older,
2668         undocumented semantics, where unbalanced " cannot be used in the
2669         stdout/stderr argument.
2670         (AT_CHECK_UNQUOTED): Treat " in stdout/stderr as a literal, since
2671         the text is used in double-quoted context.
2672         * tests/autotest.at (unquoted output): New test.
2673         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention which
2674         shell expansions are handled.
2676         Rename AT_CHECK_NOESCAPE to AT_CHECK_UNQUOTED.
2677         * lib/autotest/general.m4 (AT_CHECK_NOESCAPE): Deprecate, in favor
2678         of new spelling...
2679         (AT_CHECK_UNQUOTED): ...for consistency with AC_DEFINE_UNQUOTED.
2680         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document the
2681         rename.
2682         * NEWS: Likewise.
2683         * tests/autotest.at (Binary output, Cleanup): Adjust tests.
2684         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
2685         Likewise.
2686         Reported by Ralf Wildenhues.
2688 2009-04-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2690         New test to ensure autom4te cache file locking works.
2691         * tests/tools.at (autom4te cache locking): New test.
2692         Report by Eric Blake.
2694 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
2696         manual: another grammar improvement.
2697         * doc/autoconf.texi (Fortran Compiler): Avoid dependency on
2698         pronunciation of `FCFLAGS_f90'.
2700 2009-04-23  Eric Blake  <ebb9@byu.net>
2702         Change FOO placeholder to use @var{text} instead.
2703         * doc/autoconf.texi (Configuration Actions): Rename AC_CONFIG_FOOS
2704         to AC_CONFIG_@var{ITEMS}.
2705         * doc/autoconf.texi (config.status Invocation): Likewise.
2706         (AC_FOO_IFELSE vs AC_TRY_FOO): Rename node...
2707         (AC_ACT_IFELSE vs AC_TRY_ACT): ...to this.
2709 2009-04-22  Eric Blake  <ebb9@byu.net>
2711         Add m4_argn.
2712         * lib/m4sugar/m4sugar.m4 (m4_argn): New macro.
2713         * NEWS: Document it.
2714         * doc/autoconf.texi (Looping constructs) <m4_argn>: Likewise.
2715         <m4_car, m4_cdr>: Improve documentation.
2716         * tests/m4sugar.at (m4 lists): New test.
2718 2009-04-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2720         Improve description of AC_PROG_CC_C89 and AC_PROG_CC_C99.
2721         * doc/autoconf.texi (C Compiler): Document that AC_PROG_CC_C89
2722         and AC_PROG_CC_C99 prefer extended over strict conformance modes.
2723         Report by Vincent Lefèvre.
2725 2009-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2727         Revert bogus change in last commit.
2728         * doc/autoconf.texi (Initialization Macros): Revert change.
2729         Spotted by Eric Blake.
2731         manual: fix trivial grammar errors.
2732         * doc/autoconf.texi (Fortran Compiler, Initialization Macros)
2733         (Limitations of Usual Tools, Pretty Help Strings)
2734         (config.status Invocation): Fix `a' vs. `an' errors.
2735         Report by Eric Blake.
2737 2009-04-21  Eric Blake  <ebb9@byu.net>
2739         Shuffle maintainer-specific rules.
2740         * Makefile.am (maintainer-check-tests): Delete.
2741         (autom4te-update): Move...
2742         * cfg.mk (autom4te-update): ...here.
2743         (fetch): Depend on autom4te-update.  Split...
2744         (gnulib-update): ...into new rule.  Import move-if-change from
2745         gnulib.
2746         * maint.mk (maintainer-distcheck): Absorb former maintainer-check
2747         rule.
2748         * build-aux/move-if-change: New file, undistributed.
2749         * .gitattributes: Handle new upstream file.
2750         * .gitignore: Ignore maintainer cruft.
2751         * HACKING: Update maintainer instructions.
2752         * build-aux/config.guess: Update from upstream.
2753         * build-aux/config.sub: Likewise.
2754         * build-aux/gendocs.sh: Likewise.
2755         * build-aux/texinfo.tex: Likewise.
2756         * doc/gendocs_template: Likewise.
2757         * doc/standards.texi: Likewise.
2759 2009-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2761         Sync autom4te perl modules from Automake.
2762         * lib/Autom4te/Channels.pm: Sync from Automake.
2763         * lib/Autom4te/FileUtils.pm: Likewise.
2764         * lib/Autom4te/XFile.pm: Likewise.
2766         Adjust channel definitions for new Automake `ordered' flag.
2767         * lib/Autom4te/ChannelDefs.pm (Autom4te::ChannelDefs): Set
2768         `ordered' flag to zero for channels `fatal', `automake', and
2769         `verb'.  This has currently no effect on actual semantics but
2770         avoids a consistency check needed for Automake's usage of the
2771         Channels.pm code.
2773         manual: clarify m4_if synopsis.
2774         * doc/autoconf.texi (Redefined M4 Macros): Rewrite synopsis of
2775         m4_if in the presence of more than three arguments.
2777         Improve and clarify `config.status' usage documentation.
2778         * doc/autoconf.texi (config.status Invocation): Fix markup in
2779         synopsis.  Use `tag' instead of `file' notation for the
2780         non-option arguments, to be consistent with the documentation
2781         of the AC_CONFIG_* macros.
2782         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise,
2783         use `tag' notation for non-option arguments.
2784         Report by John Calcote.
2786 2009-04-15  Eric Blake  <ebb9@byu.net>
2788         Test that autotest handles binary output.
2789         * tests/autotest.at (Binary output): New test.
2790         Suggested by Ralf Wildenhues.
2792         Add stdout-nolog and ignore-nolog to AT_CHECK.
2793         * lib/autotest/general.m4 (AT_DIFF_STDERR(stderr-nolog))
2794         (AT_DIFF_STDERR(ignore-nolog), AT_DIFF_STDOUT(stdout-nolog))
2795         (AT_DIFF_STDOUT(ignore-nolog)): New macros.
2796         * tests/autotest.at (Logging): New test.
2797         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document the
2798         new logging actions.
2799         * NEWS: Likewise.
2800         Reported by Ralf Wildenhues.
2802         Teach AT_CHECK about hard failures.
2803         * lib/autotest/general.m4 (AT_INIT) <at_fn_check_skip>
2804         <at_fn_check_status, at_fn_group_postprocess>: Handle hard
2805         failures.
2806         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document
2807         AT_CHECK_NOESCAPE and exit status 99.
2808         * NEWS: Likewise.
2809         * tests/autotest.at (Hard fail, Cleanup): New tests.
2811 2009-04-14  Eric Blake  <ebb9@byu.net>
2813         Fix yesterday's regression in AS_IF.
2814         * lib/m4sugar/m4sh.m4 (_AS_IF_ELSE): Don't corrupt $? in else
2815         branch; it is up to the user to avoid syntax errors.
2816         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Adjust test.
2818 2009-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2820         Add traces for AM_SILENT_RULES.
2821         * lib/autom4te.in (Automake-preselections): Trace
2822         AM_SILENT_RULES.
2824 2009-04-13  Eric Blake  <ebb9@byu.net>
2826         Improve documentation related to expanded-before-required.
2827         * doc/autoconf.texi (Expanded Before Required): Add a case study.
2828         (Running the Compiler) <AC_COMPILE_IFELSE>: Remind users that
2829         running a compile test will AC_REQUIRE the compiler check.
2830         (Macro Definitions) <AC_DEFUN>: Contrast AC_DEFUN and m4_define.
2831         (C Compiler) <AC_PROG_CC>: Mention the fact that only first
2832         invocation of this macro checks for $EXEEXT, and that many other
2833         macros use it via AC_REQUIRE.
2834         Reported by Andreas Schwab.
2836         Mention latest rules about make and set -e.
2837         * doc/autoconf.texi (Failure in Make Rules): Posix is now clear
2838         that make must use set -e.
2839         (Limitations of Builtins) <set>: Clarify more about set -e
2840         behavior.
2842         Improve documentation about if exit status.
2843         * doc/autoconf.texi (Limitations of Builtins) <if>: Mention that
2844         exit status bugs don't affect modern targets.
2845         Reported by Andreas Schwab.
2847         Add cross-reference to new macros.
2848         * doc/autoconf.texi (Text processing Macros) <m4_normalize>
2849         <m4_strip>: Reference the new m4_ifblank.
2850         Suggested by Mike Frysinger.
2852         Make AS_IF, AS_CASE, and AS_FOR more robust to blank arguments.
2853         * lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT, AS_FOR, _AS_IF)
2854         (_AS_IF_ELSE, AS_IF): Avoid syntax error on blank argument,
2855         including a macro with an empty expansion.
2856         * NEWS: Mention this.
2857         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE, AS@&t@_FOR): Update
2858         tests.
2859         Reported by Mike Frysinger.
2861         Add m4_blank and friends.
2862         * lib/m4sugar/m4sugar.m4 (m4_blank, m4_nblank, m4_default_nblank)
2863         (m4_default_nblank_quoted): New macros.
2864         * NEWS: Document them.
2865         * doc/autoconf.texi (Conditional constructs): Likewise.
2866         * tests/m4sugar.at (m4sugar shorthand conditionals): New test.
2867         Suggested by Mike Frysinger.
2869 2009-04-13  Eric Blake  <ebb9@byu.net>
2871         Finish upgrade to GFDL 1.3.
2872         * doc/autoconf.texi (copying): Use correct license; comment change
2873         was missed on 2008-11-04.
2875 2009-04-10  Eric Blake  <ebb9@byu.net>
2877         Test parallel handling of syntax error.
2878         * tests/autotest.at (parallel syntax error): New test.
2879         Suggested by Ralf Wildenhues.
2881 2009-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2883         Document awk and config.status line length limitations.
2884         * doc/autoconf.texi (Configuration Actions): The input to
2885         config.status should have reasonable line length.
2886         (Limitations of Usual Tools): Document IRIX, HP-UX awk input
2887         line length limit.
2888         Report by Bruno Haible.
2890         Skip `Multiple languages' test if CC is a C++ compiler.
2891         * tests/compile.at (Multiple languages): Before starting the
2892         test proper, build and run a configure script that tests the
2893         C compiler only, and skips the test if this is found to be a
2894         C++ compiler.
2895         Report by Eric Blake.
2897         Note that AC_DEFUN is needed for aclocal.
2898         * doc/autoconf.texi (Coding Style): Public third-party macros
2899         should be AC_DEFUN'ed.
2900         Report by John Calcote.
2902 2009-04-10  Eric Blake  <ebb9@byu.net>
2904         Add undocumented _AS_CLEAN_DIR.
2905         * lib/m4sugar/m4sh.m4 (_AS_CLEAN_DIR): New macro; fixes m4 quoting
2906         in previous patch.
2907         * lib/autotest/general.m4 (AT_INIT) <at_fn_group_prepare>: Use new
2908         macro.
2909         * tests/m4sh.at (_AS@&t@_CLEAN_DIR): New test.
2910         Reported by Ralf Wildenhues.
2912 2009-04-09  Eric Blake  <ebb9@byu.net>
2914         Avoid problems caused by deleting in-use directory.
2915         * lib/autotest/general.m4 (AT_INIT) <at_fn_group_prepare>: Only
2916         remove the contents of $at_group_dir, not the directory itself.
2918         Fix regression in empty test.
2919         * lib/autotest/general.m4 (AT_SETUP): Prep AT_ingroup for fallback
2920         use in empty test.  Fixes regression introduced 2009-04-06.
2921         (_AT_CHECK): Undo fallback when a test is not empty.
2922         (AT_CLEANUP): Expand AT_ingroup before deleting.
2924 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
2926         Make a less conservative cross-compilation guess for AC_FUNC_UTIME_NULL.
2927         * lib/autoconf/functions.m4 (AC_FUNC_UTIME_NULL): Assume
2928         not crosscompiling to an obsolete system.
2930 2009-04-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2932         Automake relies on the undocumented `_AC_COMPILER_EXEEXT' macro.
2933         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Document that
2934         Automake relies on this macro.
2936 2009-04-06  Eric Blake  <ebb9@byu.net>
2938         Reduce testsuite size.
2939         * tests/statesave.m4: New file.
2940         * tests/Makefile.am (EXTRA_DIST): Distribute it.
2941         * tests/local.at (AT_CONFIGURE_AC): Reuse file, rather than
2942         repeating inline definition of AC_STATE_SAVE.
2943         (AT_CHECK_ENV): Factor code...
2944         (_AT_CHECK_ENV): ...into shell function.
2945         * tests/m4sh.at (AT_DATA_LINENO): Avoid churn in testsuite.
2947         Handle shell comments in AT_CHECK.
2948         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Handle # in
2949         test correctly.  Latent bug in handling shell comment was first
2950         fixed 2008-11-20, but regressed two patches later.
2951         * tests/autotest.at (Shell comment in command): New test.
2952         * NEWS: Document the fix.
2954         Hard fail any test with syntax errors.
2955         * lib/autotest/general.m4 (AT_INIT) <at_fn_group_postprocess>:
2956         Guarantee test failure on syntax error, rather than inheriting
2957         status from previous test.
2958         * tests/autotest.at (Syntax error): New test.
2960 2009-03-31  Eric Blake  <ebb9@byu.net>
2962         Beta Release Version 2.63b.
2963         * NEWS: Mention the release.
2964         * README: Clarify that this is a beta release.
2965         * build-aux/texinfo.tex: Synchronize from upstream.
2966         * .x-sc_trailing_blank: Exempt more upstream files.
2968 2009-03-30  Eric Blake  <ebb9@byu.net>
2970         Fix testsuite failures under zsh.
2971         * tests/local.at (AT_CHECK_ENV): Exempt $argv and $ARGC, which are
2972         set by zsh -c 'emulate sh'.
2973         Reported by Ralf Wildenhues.
2975         For now, skip parallel tests under less-tested shells.
2976         * tests/autotest.at (AT_CHECK_AT): Add pre-test argument.
2977         (Tested programs, Startup error messages, AT_CHECK_AT_TITLE)
2978         (Fallacy, Skip, errexit, Long test source lines)
2979         (Debugging a successful test, Debugging script and environment)
2980         (Debugging a failed test, Using atlocal)
2981         (Choosing where testsuite is run): Adjust callers.
2982         (AT_SKIP_PARALLEL_TESTS): New macro, to skip parallel tests except
2983         under zsh, bash, or when TEST_PARALLEL_AUTOTEST is defined.  Makes
2984         it easier to avoid testsuite hangs for users with dash or other
2985         less-tested shell.
2986         (parallel test execution, parallel truth, parallel fallacy)
2987         (parallel skip, parallel errexit)
2988         (parallel autotest and signal handling): Use it.
2989         * BUGS: Mention this.
2991 2009-03-24  Andris Pavenis  <andris.pavenis@iki.fi>  (tiny change)
2993         Fix awk substitution of carriage returns on DJGPP.
2994         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix typo in
2995         generation of ac_cs_awk_cr.
2996         * THANKS: Update.
2998 2009-03-24  Aaron W. LaFramboise  <aaronenvelope277@aaronwl.com>  (tiny change)
3000         Work around cygwin bash igncr mode.
3001         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fall back to
3002         bash carriage returns if ac_cr lost \r from ``.
3003         * THANKS: Update.
3004         Suggested by Eric Blake.
3006 2009-03-24  Eric Blake  <ebb9@byu.net>
3008         Fix underquoted example in manual.
3009         * doc/autoconf.texi (Common Shell Constructs) <AS_TR_CPP>:
3010         Properly m4-quote #.
3011         * THANKS: Update spelling.
3012         Reported by Matěj Týč.
3014 2009-03-18  Eric Blake  <ebb9@byu.net>
3016         Manual: mention more expr pitfalls.
3017         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>:
3018         Mention HP-UX limitation, and $ ambiguity.
3019         * THANKS: Update.
3020         Reported by Jens Schmidt, in http://bugs.debian.org/466990.
3022 2009-03-17  Jim Meyering  <meyering@redhat.com>
3024         Manual: fix a typo.
3025         * lib/m4sugar/m4sh.m4: s/are/is/ => "there is no indirection"
3027 2009-03-17  Eric Blake  <ebb9@byu.net>
3029         Use test consistently in examples.
3030         * doc/autoconf.texi (Subdirectories, Caching Results)
3031         (Common Shell Constructs, Prerequisite Macros, Coding Style)
3032         (Changed Results, Particular Programs, Defining Symbols):
3033         Protect against arbitrary user strings.
3034         (Multiple Cases): Mention why $fstype does not need protection.
3035         Reported by Reuben Thomas.
3037         Improve confusing section names.
3038         * doc/autoconf.texi (Specifying Names): Rename node...
3039         (Specifying Target Triplets): ...to this.
3040         (Generic Programs): Adjust references.
3041         * doc/install.texi (System Type): Touch up formatting.
3042         * THANKS: Update.
3043         Reported by Tim Freeman, in http://bugs.debian.org/312873.
3045         Remove historical inaccuracy.
3046         * doc/autoconf.texi (Portable Shell): Don't perpetuate myth about
3047         #!/bin/sh needing a space.
3048         Reported by Reuben Thomas.
3050         Recommend AS_HELP_STRING more prominently.
3051         * doc/autoconf.texi (External Software): Reduce mention of
3052         hand-written help strings.
3053         Reported by Reuben Thomas.
3055 2009-03-16  Eric Blake  <ebb9@byu.net>
3057         Fix 'make pdf'.
3058         * doc/autoconf.texi (Balancing Parentheses): Fix usage of
3059         @itemize.
3060         Reported by Ralf Wildenhues, fix suggested by Karl Berry.
3062 2009-03-14  Eric Blake  <ebb9@byu.net>
3064         Resync upstream files.
3065         * GNUmakefile: Run 'make fetch'.
3066         * build-aux/announce-gen: Likewise.
3067         * build-aux/config.guess: Likewise.
3068         * build-aux/config.sub: Likewise.
3069         * build-aux/gnupload: Likewise.
3070         * build-aux/texinfo.tex: Likewise.
3071         * build-aux/vc-list-files: Likewise.
3072         * doc/gnu-oids.texi: Likewise.
3073         * doc/standards.texi: Likewise.
3075 2009-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3077         New test for SunStudio `restrict' handling.
3078         * tests/c.at (AC_C_RESTRICT and C++): New test.
3079         Prompted by bug report from Rolf Vandevaart.
3081 2009-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3083         Manual: testsuite depends on package.m4.
3084         * doc/autoconf.texi (Making testsuite Scripts): In the example
3085         makefile snippet, $(TESTSUITE) depends on $(srcdir)/package.m4.
3087 2009-03-02  Allan Caffee  <allan.caffee@gmail.com>  (tiny change)
3089         Fix a typo in comment for AS_LITERAL_IF.
3090         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Update a comment that fell
3091         out of date when this function was moved/renamed in 59ecd766.
3092         * THANKS: Update.
3094 2009-03-02  Eric Blake  <ebb9@byu.net>
3096         Improve wording for AS_ESCAPE.
3097         * doc/autoconf.texi (Common Shell Constructs) <AS_ESCAPE>: Touch
3098         up documentation.
3099         * lib/m4sugar/m4sh.m4 (_AS_ESCAPE): Fix comment typos.
3100         Reported by Ralf Wildenhues.
3102 2009-02-24  Eric Blake  <ebb9@byu.net>
3104         Use pkgdatadir consistently.
3105         * bin/Makefile.am (edit): Substitute pkgdatadir, not datadir.
3106         * lib/Makefile.am (edit): Likewise.
3107         * lib/autom4te.in (Autoconf-without-aclocal-m4, Autotest, M4sh)
3108         (M4sugar): Use @pkgdatadir@, not @datadir@.
3109         * bin/autoheader.in ($datadir): Likewise.
3110         * bin/autom4te.in ($datadir): Likewise.
3111         * bin/autoreconf.in ($datadir): Likewise.
3112         * bin/autoscan.in ($datadir): Likewise.
3113         * bin/autoupdate.in ($datadir): Likewise.
3114         * bin/ifnames.in ($datadir): Likewise.
3115         * doc/autoconf.texi (Installation Directory Variables): Update
3116         example to be consistent; focus on $(bindir) as an autoconf
3117         variable, and mention that $(pkgdatadir) comes from automake.
3118         Reported by Reuben Thomas.
3120 2009-02-19  Eric Blake  <ebb9@byu.net>
3122         Use m4_translit more efficiently in AS_ESCAPE.
3123         * lib/m4sugar/m4sh.m4 (_AS_ESCAPE): Alter API to take first byte
3124         of set separately from rest.
3125         (AS_ESCAPE, _AS_QUOTE_MODERN, AS_TR_SH, AS_VAR_GET): Adjust
3126         callers.
3127         * lib/autoconf/autoheader.m4 (AH_VERBATIM): Avoid duplicate
3128         characters in translit request.
3129         * doc/autoconf.texi (Common Shell Constructs) <AS_ESCAPE>:
3130         Document the macro.
3131         * NEWS: Likewise.
3133         Mention recently documented macros.
3134         * NEWS: Update list of new documentation.
3136 2009-02-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3138         Add index for config.site.
3139         * doc/autoconf.texi (Site Defaults): Add index for config.site.
3140         * THANKS: Update.
3141         Report by Stephen P. Schaefer.
3143 2009-02-12  Eric Blake  <ebb9@byu.net>
3145         Fix m4_set speed regression introduced 2008-12-18.
3146         * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): Alter API to avoid
3147         creating larger argument on each iteration.
3148         (m4_stack_foreach_sep, m4_stack_foreach_sep_lifo)
3149         (_m4_set_contents_2): Adjust all four-argument callers.
3151 2009-02-05  Eric Blake  <ebb9@byu.net>
3153         Mention new AC_DEFUN_ONCE clients.
3154         * NEWS: Mention recent semantic changes.
3155         Reported by Ralf Wildenhues.
3157 2009-02-03  Eric Blake  <ebb9@byu.net>
3159         Use AC_DEFUN_ONCE for some one-shot AC_PROG macros.
3160         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Switch to
3161         AC_DEFUN_ONCE, since this is a one-shot macro.
3162         (AC_PROG_INSTALL): Likewise.
3164 2009-02-03  Eric Blake  <ebb9@byu.net>
3166         Mention that packagers should not pre-set CFLAGS.
3167         * doc/autoconf.texi (Preset Output Variables) <CFLAGS>: Copy
3168         advice given by automake on handling variables reserved by GNU
3169         Coding Standards.
3170         Reported by Karl Berry.
3172         Document lib64 in config.site.
3173         * doc/autoconf.texi (Site Defaults): Fix typo in FHS sample file.
3174         Mention use of lib64.
3175         * THANKS: Update.
3176         Reported by Tom Browder, with help from Peter Breitenlohner.
3178 2009-01-28  Eric Blake  <ebb9@byu.net>
3180         Use AC_DEFUN_ONCE for uncontroversial one-shot macros.
3181         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Switch to
3182         AC_DEFUN_ONCE, since this is a one-shot macro.
3183         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
3184         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD)
3185         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Likewise.
3187 2009-01-28  Eric Blake  <ebb9@byu.net>
3189         Reduce blank lines in AC_DEFUN_ONCE macros.
3190         * lib/m4sugar/m4sugar.m4 (m4_defun_once): Avoid redundant blank
3191         line when a defun_once macro is required.
3192         (_m4_defun_once): New helper macro, for less memory use.
3193         * tests/m4sugar.at (m4@&t@_require: nested): Adjust test.
3195         Silence another false positive expand-before-require.
3196         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro_outer)
3197         (_m4_defun_epi_outer, _m4_require_call, m4_provide): Track name
3198         that caused a diversion change, not just diversion number.
3199         (m4_require): Factor...
3200         (_m4_require_check): ...into new macro, which also checks whether
3201         diversion that performed the expansion has been collected.
3202         * tests/m4sugar.at (m4@&t@_require: nested): Enhance test.
3203         Reported by Ralf Wildenhues.
3205 2009-01-28  Eric Blake  <ebb9@byu.net>
3207         Fix AC_C_RESTRICT for Sun Studio 12 C++.
3208         * lib/autoconf/c.m4 (AC_C_RESTRICT): Newer Sun Studio C provides
3209         __restrict__ rather than _Restrict, which still trips up Sun
3210         Studio 12 C++.
3211         * THANKS: Update.
3212         Reported by Rolf Vandevaart.
3214 2009-01-28  Eric Blake  <ebb9@byu.net>
3216         Fix years in copyright notices.
3217         * lib/m4sugar/m4sugar.m4 (m4_copyright_condense): New macro,
3218         undocumented for now.
3219         * lib/m4sugar/Makefile.am (version.m4): Add m4_PACKAGE_YEAR,
3220         m4_PACKAGE_URL.
3221         (RELEASE_YEAR): New macro, copied from bin/Makefile.am.
3222         * lib/autoconf/general.m4 (_AC_COPYRIGHT_YEARS): New macro.
3223         (AC_COPYRIGHT): Add undocumented third parameter.
3224         (_AC_INIT_COPYRIGHT): Avoid need to bump copyright years.
3225         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
3226         * lib/autotest/general.m4 (AT_INIT): Likewise.
3227         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Likewise.
3228         (AT_COPYRIGHT): Add undocumented third parameter.
3229         * tests/local.at (AT_COPYRIGHT): Don't add an extra copyright
3230         parameter; the generic copyright given by autotest is sufficient
3231         since we are the package that owns autotest.
3233 2009-01-27  Eric Blake  <ebb9@byu.net>
3235         Use URLs in --help output, part 3: testsuite.
3236         * doc/autoconf.texi (Writing Testsuites): Mention autotest
3237         namespace.
3238         (Writing Testsuites) <AT_INIT>: Mention mandatory macros.
3239         (Making testsuite Scripts): Document AT_PACKAGE_URL.
3240         * tests/Makefile.am (package.m4): Follow our own advice.
3241         * lib/autotest/general.m4 (AT_INIT): Give the user a hint about
3242         package.m4.  Enhance --help output.
3243         (_AT_COPYRIGHT_YEARS): New macro, to make copyright bump easier.
3245         Use URLs in --help output, part 2: configure.
3246         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump copyright
3247         date.
3248         (_AC_INIT_PACKAGE): Support optional URL parameter, mapped to
3249         AC_PACKAGE_URL.
3250         (_AC_INIT_DEFAULTS, _AC_INIT_PREPARE): Substitute it.
3251         (_AC_INIT_HELP): Use it in './configure --help' output.
3252         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise, for
3253         './config.status --help'.  Bump copyright date.
3254         * doc/autoconf.texi (Initializing configure) <AC_INIT>: Document
3255         new parameter.
3256         * NEWS: Likewise.
3257         * tests/tools.at (autoheader): Adjust test.
3258         * tests/torture.at (@%:@define header templates)
3259         (Torturing config.status): Likewise.
3261         Use URLs in --help output, part 1: autoconf executables.
3262         * bin/autoconf.as (usage): Make output consistent with recent
3263         change in gnulib version-etc module.
3264         * bin/autoheader.in ($help): Likewise.
3265         * bin/autom4te.in ($help): Likewise.
3266         * bin/autoreconf.in ($help): Likewise.
3267         * bin/autoscan.in ($help): Likewise.
3268         * bin/autoupdate.in ($help): Likewise.
3269         * bin/ifnames.in ($help): Likewise.
3271 2009-01-27  Peter Breitenlohner  <peb@mppmu.mpg.de>  (tiny change)
3273         Quote traced macros passed from autom4te to M4.
3274         * bin/autom4te (handle_m4): Apply shell_quote to macro names.
3275         * tests/tools.at (autom4te --trace and unusual macro names): New
3276         test.
3277         * THANKS: Update.
3279 2009-01-26  Eric Blake  <ebb9@byu.net>
3281         Improve AC_DEFUN_ONCE semantics.
3282         * lib/m4sugar/m4sugar.m4 (m4_defun_once): Rewrite to be no-op,
3283         rather than warning, on second use, and make sure first use never
3284         occurs out of order.
3285         * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
3286         Enhance test.
3287         * tests/base.at (AC_REQUIRE & AC_DEFUN_ONCE: [Require, expand],
3288         (AC_REQUIRE & AC_DEFUN_ONCE: [Expand, require]): Adjust tests.
3289         * NEWS: Document this.
3290         * doc/autoconf.texi (Macro Definitions) <AC_DEFUN>: Mention
3291         AC_DEFUN_ONCE.
3292         (Prerequisite Macros) <AC_REQUIRE>: Likewise.
3293         (Expanded Before Required): Likewise.
3294         (One-Shot Macros) <AC_DEFUN_ONCE>: Document new semantics.
3295         Reported by Bruno Haible, with suggestion by Paolo Bonzini.
3297 2009-01-24  Eric Blake  <ebb9@byu.net>
3299         Fix typos in recent patches.
3300         * lib/m4sugar/m4sugar.m4: Improve m4_defun comments.
3301         * doc/autoconf.texi (Expanded Before Required): Fix typos.
3302         Reported by Ralf Wildenhues.
3304         Revert change to AC_DIR_HEADER.
3305         * lib/autoconf/headers.m4 (AC_DIR_HEADER): Explicitly expanding
3306         AC_HEADER_DIRENT no longer triggers a warning, and helps the user
3307         who decides they don't need the obsolete AC_FUNC_CLOSEDIR_VOID.
3308         Reported by Paolo Bonzini.
3310 2009-01-22  Eric Blake  <ebb9@byu.net>
3312         Silence a false positive expand-before-require case.
3313         * lib/m4sugar/m4sugar.m4 (m4_provide): Track the diversion in
3314         which a macro was provided.
3315         (m4_require): Compare diversion numbers, rather than m4_require
3316         nesting, when determining direct requires.
3317         * tests/m4sugar.at (m4@&t@_require: nested): Test it.
3318         Reported by Ralf Wildenhues, affecting Libtool.
3320 2009-01-21  Eric Blake  <ebb9@byu.net>
3322         Fix out-of-order expansion with expand-before-require.
3323         * lib/m4sugar/m4sugar.m4 (m4_require): Redundantly expand a
3324         required macro when issuing expand-before-require warning.
3325         * doc/autoconf.texi (Prerequisite Macros): Adjust documentation.
3326         (Expanded Before Required): New node.
3327         * tests/m4sugar.at (m4@&t@_require: nested): Adjust test.
3328         * NEWS: Mention this fix.
3329         Suggested by Bruno Haible.
3331         Warn if macro is provided before indirectly required.
3332         * lib/m4sugar/m4sugar.m4 (m4_provide): Track the set of all macros
3333         provided since last outermost defun.
3334         (_m4_defun_pro_outer): Empty the set.
3335         (_m4_require_call): Distinguish between direct and indirect
3336         requires, and remove required macros from the set.
3337         (m4_require): Check the set, in order to warn.
3338         * tests/m4sugar.at (m4@&t@_require: nested): Remove xfail, and add
3339         test case for direct requires.
3341 2009-01-20  Eric Blake  <ebb9@byu.net>
3343         Clean up some bugs caught by preliminary dependency validation.
3344         * lib/autoconf/headers.m4 (AC_DIR_HEADER): Don't invoke
3345         AC_HEADER_DIRENT, since AC_FUNC_CLOSEDIR_VOID requires it.
3346         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
3347         (_AS_SHELL_SANITIZE): Fix quoting bugs.
3349 2009-01-19  Eric Blake  <ebb9@byu.net>
3351         Improve AC_REQUIRE documentation.
3352         * doc/autoconf.texi (Macro Definitions) <AC_DEFUN>: Add @defmac,
3353         and mention interaction with AC_REQUIRE.
3354         (Prerequisite Macros) <AC_REQUIRE>: Give more detail on user
3355         ordering constraint bug, and how to fix it.
3356         * tests/m4sugar.at (m4@&t@_require: nested): New test.
3358         Speed up m4_require.
3359         * lib/m4sugar/m4sugar.m4 (_m4_divert_dump): Change semantics to
3360         always be defined, as either empty or a number.
3361         (_m4_defun_pro_outer, _m4_defun_epi_outer): Treat _m4_divert_dump
3362         as a stack, rather than a one-shot macro.
3363         (_m4_require_call): Expect third argument to be pre-expanded.
3364         (m4_divert_require, m4_require): Adjust clients accordingly.
3365         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Likewise.
3367 2009-01-17  Eric Blake  <ebb9@byu.net>
3369         Avoid underfull hbox.
3370         * doc/autoconf.texi (Installation Directory Variables): Reword to
3371         fit on line.
3373 2009-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3375         Ignore `set -e'-related failure of NetBSD sh.
3376         * tests/m4sh.at (AS@&t@_EXIT): Skip test if (NetBSD) shell
3377         fails to finish EXIT trap after set -e.
3379 2009-01-06  Eric Blake  <ebb9@byu.net>
3381         Maintainer cleanups.
3382         * cfg.mk (web-manual): Use new feature of gendocs.
3383         (fetch): Fetch gendocs.
3384         * Makefile.am (EXTRA_DIST): Distribute new file.
3385         * doc/Makefile.am (EXTRA_DIST): Likewise.
3386         * .gitattributes: Ignore whitespace in upstream files.
3387         * HACKING (Other web updates): Update Free Software Directory
3388         instructions.
3389         (Upload): No longer mention xdelta.
3390         * maint.mk (xd-delta): Likewise.
3391         * build-aux/gendocs.sh: New upstream file.
3392         * doc/gendocs_template: Likewise.
3393         * build-aux/announce-gen: Resync from upstream.
3394         * build-aux/config.guess: Likewise.
3395         * build-aux/config.sub: Likewise.
3396         * build-aux/gnupload: Likewise.
3397         * build-aux/texinfo.tex: Likewise.
3399 2008-12-30  Eric Blake  <ebb9@byu.net>
3401         Make it easier to track diversion bugs.
3402         * lib/m4sugar/m4sugar.m4 (_m4_divert_raw, _m4_undivert): New
3403         internal macros, which are easier to trace than m4_builtin.
3404         (m4_cleardivert, m4_divert, m4_divert_push, m4_divert_pop)
3405         (m4_undivert): Use them.
3406         (_m4_require_call): Likewise.  Use fewer macros.
3407         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix typo.
3409 2008-12-26  Bruno Haible  <bruno@clisp.org>
3411         Improve multiarch detection.
3412         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Make detection of options
3413         indicating a universal build more reliable.
3415 2008-12-28  William Pursell  <bill.pursell@gmail.com>  (tiny change)
3417         Use AS_CASE in documented example.
3418         * doc/autoconf.texi (Using the System Type): Use AS_CASE in
3419         example instead of raw case.
3421 2008-12-23  Eric Blake  <ebb9@byu.net>
3423         Make m4_dumpdef more useful with M4 1.6.
3424         * lib/m4sugar/m4sugar.m4 (_m4_dumpdef): New macro.
3425         (m4_init): Install it for new enough m4.
3426         * tests/m4sugar.at (m4@&t@_dumpdef): Enhance test.
3427         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
3428         lack of sorting.
3430 2008-12-24  Bruno Haible  <bruno@clisp.org>
3432         Improve INSTALL for HP-UX.
3433         * doc/install.texi (Particular Systems): For HP-UX, also recommend
3434         -D_XOPEN_SOURCE=500. Needed for the declaration of mbstate_t on
3435         HP-UX 11.11.
3437 2008-12-22  Bruno Haible  <bruno@clisp.org>
3439         Improve INSTALL for Haiku.
3440         * doc/install.texi (Particular Systems): Add a recommendation
3441         which prefix to use on Haiku.
3443 2008-12-19  Eric Blake  <ebb9@byu.net>
3445         Fix typo in previous commit.
3446         * doc/autoconf.texi (Set manipulation Macros) <m4_set_map_sep>:
3447         Fix typo.
3449         Document some recently added macros.
3450         * lib/m4sugar/m4sugar.m4 (m4_map_args_w): Add optional sep
3451         parameter.
3452         * doc/autoconf.texi (Looping constructs) <m4_map_args_sep>
3453         <m4_map_args_w, m4_stack_foreach, m4_stack_foreach_sep>: Document
3454         new macros.
3455         (Set manipulation Macros) <m4_set_map_sep>: Likewise.
3456         * tests/m4sugar.at (m4@&t@_stack, M4 loops): Enhance tests.
3457         * NEWS: Document new macros.
3459 2008-12-18  Eric Blake  <ebb9@byu.net>
3461         Fix separator in m4_stack_foreach_sep.
3462         * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): Separate separator
3463         from prefix.
3464         * tests/m4sugar.at (m4@&t@_stack): Enhance test.
3466 2008-12-18  Eric Blake  <ebb9@byu.net>
3468         Mention limitation of M4 1.4.x on builtin tokens.
3469         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Document
3470         ramification of M4 1.4.x's inability to pass builtin tokens
3471         through text macros.
3472         (Evaluation Macros) <m4_curry>: Likewise.
3473         * tests/m4sugar.at (m4@&t@_defn): Enhance test.
3474         * NEWS: Mention subtle change in m4_dumpdef semantics.
3476         Document m4_version_prereq.
3477         * doc/autoconf.texi (Number processing Macros)
3478         <m4_version_prereq>: Add documentation.
3479         * NEWS: Mention it.
3480         Reported by Bruno Haible.
3482 2008-12-10  Jim Meyering  <meyering@redhat.com>
3484         AC_HEADER_ASSERT: don't say assertions are disabled when they're not
3485         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Do not make configure
3486         report "checking whether to enable assertions... no", when they are
3487         in fact enabled.  This is solely a bug in the output of configure.
3488         In spite of saying "no", NDEBUG was not defined in that case.
3489         Also, as noted by Eric Blake, leave assertions enabled upon
3490         --enable-assert=INVALID.
3492 2008-12-09  Eric Blake  <ebb9@byu.net>
3494         Fix m4_location inside m4_wrap with m4 1.4.5.
3495         * lib/m4sugar/m4sugar.m4 (m4_undefine): Redefine m4_location
3496         inside wrapped text if older m4 is detected.
3497         Reported by William Pursell.
3499 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
3500         and Eric Blake  <ebb9@byu.net>
3502         Fix AC_HEADER_ASSERT w.r.t. --enable-assert.
3503         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Honor --enable-assert,
3504         rather than treating it as a synonym for --disable-assert.
3505         * NEWS: Document the fix.
3507 2008-12-06  William Pursell  <bill.pursell@gmail.com>  (tiny change)
3509         Fix AC_HEADER_ASSERT to honor --enable-assert, rather than
3510         treat --enable-assert and --disable-assert equivalently.
3511         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Check value of $enableval.
3513 2008-12-05  William Pursell  <bill.pursell@gmail.com>  (tiny change)
3515         Fix some typos and grammatical errors in documentation.
3516         * doc/autoconf.texi: Clean up some bad use of English.
3518 2008-12-03  Eric Blake  <ebb9@byu.net>
3520         Improve AC_STATE_SAVE.
3521         * tests/local.at (AC_STATE_SAVE): Avoid ls -1, and use one less
3522         process by hoisting the uniqueness check into sed.
3523         * doc/autoconf.texi (Limitations of Usual Tools) <ls>: Mention
3524         MacOS bug.
3526 2008-12-02  Eric Blake  <ebb9@byu.net>
3528         Avoid MacOS readdir bug in testsuite.
3529         * tests/local.at (AC_STATE_SAVE): Avoid spurious failures due to
3530         duplicated ls entries.
3531         * THANKS: Update.
3532         Reported by Bruce Dugan and others.
3534 2008-11-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3536         * lib/autotest/general.m4 (AT_JOB_FIFO_FD): Hide zsh 4.3.4
3537         error messages about `set -m'.
3539 2008-11-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3541         Fix a couple of test failures with dash.
3542         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Normalize
3543         exit status of `cd'.
3544         * tests/m4sh.at (AS_MESSAGE_LOG_FD): Remove script before
3545         regeneration, to avoid timing effects.
3547 2008-11-25  Eric Blake  <ebb9@byu.net>
3549         Add m4_cleardivert.
3550         * lib/m4sugar/m4sugar.m4 (m4_cleardivert): New macro.
3551         * lib/autotest/general.m4 (AT_INIT): Use it.
3552         * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Likewise.
3553         * tests/m4sugar.at (m4@&t@_divert_stack): Test it.
3554         * doc/autoconf.texi (Diversion support) <m4_cleardivert>: Document
3555         it.
3556         * NEWS: Likewise.
3557         Suggested by Paolo Bonzini.
3559         Add safety check for m4_expand vs. diversions.
3560         * lib/m4sugar/m4sugar.m4 (m4_expand): Make more robust against
3561         diverted text.
3562         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Document new
3563         safety check.
3565 2008-11-24  Eric Blake  <ebb9@byu.net>
3567         Fix typo in AS_MESSAGE_LOG_FD patch.
3568         * lib/m4sugar/m4sh.m4 (AS_ERROR): Check correct condition.
3570 2008-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3572         More reliable signal handling in Autotest.
3573         * lib/autotest/general.m4 (Driver loop): Rewrite signal handler.
3574         Start parallel jobs in their own process group, enabling job
3575         control in the shell if possible, for better signal handling.
3576         Deal with INT, TERM, and HUP in the testsuite driver.  In the
3577         parallel driver, propagate TSTP to jobs either as TSTP or as
3578         STOP (to avoid fork bombs with ksh).
3579         Inside the job processes, add PIPE handler to write back the
3580         job token, so the master process does not hang.
3581         Disable the parallel driver if job control is not provided or if
3582         trap does not understand signal names.
3583         * tests/autotest.at (parallel autotest and signals): New test,
3584         exercises INT, TERM, and PIPE, serial and parallel, with and
3585         without `make' in the loop.
3586         Kudos to Richard Stevens for writing APUE.
3588 2008-11-22  Eric Blake  <ebb9@byu.net>
3590         Fix testsuite failure on Solaris.
3591         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Normalize
3592         failure status to 1.
3594 2008-11-21  Eric Blake  <ebb9@byu.net>
3596         Clean up AS_MESSAGE_LOG_FD usage.
3597         * lib/m4sugar/m4sh.m4 (AS_MESSAGE_FD, AS_MESSAGE_LOG_FD)
3598         (AS_ORIGINAL_STDIN_FD): Provide default M4sh values.
3599         (_AS_ECHO_LOG, AS_MESSAGE, _AS_ERROR_PREPARE, AS_ERROR): Simplify
3600         usage.
3601         (AS_INIT_GENERATED): Don't shuffle an unchanged AS_MESSAGE_FD.
3602         * tests/m4sh.at (AS@&t@_INIT_GENERATED): Update test.
3603         (AS@&t@_MESSAGE_FD): New test.
3604         * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
3605         Give more details about fd manipulation.
3606         (File Descriptor Macros): Describe M4sh defaults for the fds.
3608 2008-11-21  Eric Blake  <ebb9@byu.net>
3610         Use shell function for AS_ERROR.
3611         * lib/m4sugar/m4sh.m4 (_AS_ERROR_PREPARE): New macro, defining a
3612         new shell function.
3613         (AS_ERROR): Use it.
3614         (_AS_LINENO_PREPARE): Break circular dependency.
3615         (AS_PREPARE, _AS_PREPARE): Initialize for child scripts.
3617 2008-11-21  Eric Blake  <ebb9@byu.net>
3619         Fix typos in recent testsuite improvements.
3620         * lib/autotest/general.m4 (AT_INIT) <at_fn_check_prepare_dynamic>:
3621         Fix typo.
3622         * NEWS: Clarify the potential impact to users.
3623         * tests/autotest.at (AT_DATA_AUTOTEST): New macro, patterned after
3624         AT_DATA_M4SUGAR.
3625         (AT_CHECK_AT_PREP, AT_CHECK_AT_TITLE): Use it.
3626         (unusual file names): Test that the recent echo fix does not
3627         regress.  Fix quoting bug that made the test a no-op.
3628         Reported by Paolo Bonzini and Ralf Wildenhues.
3630 2008-11-21  Eric Blake  <ebb9@byu.net>
3632         Use modern m4sh constructs in autoconf.
3633         * bin/autoconf.as (exit_missing_arg, getopt): Use AS_ERROR, rather
3634         than AS_EXIT.
3636         Change the semantics of AS_EXIT without argument.
3637         * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE): When defaulting, use $?
3638         even if it is 0.
3639         (AS_ERROR): Guarantee non-zero status.
3640         * bin/autoconf.as (exit_missing_arg, getopt): Revert prior change;
3641         we want non-zero status.
3642         * tests/m4sh.at (AS@&t@_EXIT): Update test accordingly.
3643         * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Update
3644         the documentation.
3645         <AS_SET_STATUS>: Don't overly restrict implementation.
3646         (Printing Messages) <AC_MSG_ERROR>: Describe better default.
3647         Suggestions by Paolo Bonzini and Ralf Wildenhues.
3649 2008-11-21  Eric Blake  <ebb9@byu.net>
3651         Add @anchors within Builtins and Usual Tools lists.
3652         * doc/autoconf.texi (Limitations of Builtins)
3653         (Limitatations of Usual Tools): Add anchors for tools called out
3654         by name.  Adjust callers to narrow in on tool of interest.
3656         Move case statement style discussion to m4 quoting section.
3657         * doc/autoconf.texi (Limitations of Builtins): Move comparison of
3658         quoting styles...
3659         (Balancing Parentheses): ...to this new node.
3660         Suggested by Ralf Wildenhues.
3662 2008-11-20  Eric Blake  <ebb9@byu.net>
3664         Factor more common code out of AT_CHECK into shell function.
3665         * lib/autotest/general.m4 (_AT_CHECK): Avoid echo bug if AT_LINE
3666         starts with -.  Move preparations...
3667         (AT_INIT) <at_fn_check_prepare_trace>
3668         <at_fn_check_prepare_notrace, at_fn_check_prepare_dynamic>:
3669         ...into these new shell functions.
3670         <at_fn_check_newline>: Inline into only caller.
3671         (_AT_DECIDE_TRACEABLE): Use them to condense testsuite size.
3673 2008-11-20  Eric Blake  <ebb9@byu.net>
3675         Handle version numbers as decimal, even if they start with 0.
3676         * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Avoid
3677         interpreting leading zeros as octal.
3679 2008-11-20  Eric Blake  <ebb9@byu.net>
3681         Speed up AT_CHECK.
3682         * lib/autotest/general.m4 (AT_CHECK, AT_CHECK_UNQUOTED): Expand
3683         third and fourth arguments once.
3684         (_AT_CHECK): Don't re-expand expected output.  Rearrange code for
3685         fewer scans of arguments.
3686         (AT_CHECK): Update caller.
3687         (AT_INIT) <at_fn_filter_trace>: Drop parameter.
3688         * tests/m4sugar.at (m4@&t@_split): Protect test with
3689         quadrigraphs.
3691         Fix XFAIL related to AT_CHECK.
3692         * lib/autotest/general.m4 (AT_CHECK, AT_CHECK_UNQUOTED): Expand
3693         first argument once.
3694         (_AT_CHECK): Don't re-expand commands.
3695         * tests/autotest.at (Multiline command from M4 expansion): Remove
3696         XFAIL.
3697         * tests/tools.at (autoupdating AU_ALIAS): Quote unbalanced paren.
3698         * NEWS: Document the fallout.
3700 2008-11-20  Eric Blake  <ebb9@byu.net>
3702         Reduce forks in AC_DEFINE.
3703         * lib/autoconf/general.m4 (_AC_DEFINE_Q_PRINT): New macro.
3704         (_AC_DEFINE_Q): Use it to avoid forks for all AC_DEFINE and most
3705         AC_DEFINE_UNQUOTED.
3706         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Properly quote #.
3707         * tests/torture.at (Substitute and define special characters):
3708         (Define to a 2000-byte string): Enhance tests to cover
3709         AC_DEFINE_UNQUOTED.
3710         (@%:@define header templates): Enhance test to cover #.
3712 2008-11-20  Eric Blake  <ebb9@byu.net>
3714         Improve m4_expand robustness, part 2.
3715         * lib/m4sugar/m4sugar.m4 (m4_expand): Support unterminated
3716         comments, by wrapping old implementation...
3717         (_m4_expand): ...as this, and renaming old core...
3718         (_m4_expand_): ...to this.
3719         (m4_text_box): Use lighter-weight _m4_expand.
3720         * lib/m4sugar/m4sh.m4 (_AS_DETECT_EXPAND)
3721         (_AS_DETECT_BETTER_SHELL, AS_FUNCTION_DESCRIBE): Likewise.
3722         * lib/autotest/general.m4 (AT_KEYWORDS): Likewise.
3723         * tests/m4sugar.at (m4@&t@_expand): Enhance test.
3724         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Likewise.
3725         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Mention new
3726         functionality.
3728         Improve m4_expand robustness, part 1.
3729         * lib/m4sugar/m4sugar.m4 (_m4_expand): Tolerate unquoted
3730         unbalanced `)'.
3731         * tests/m4sugar.at (m4@&t@_expand): New test.
3733 2008-11-20  Eric Blake  <ebb9@byu.net>
3735         Add m4_chomp, m4_esyscmd_s.
3736         * lib/m4sugar/m4sugar.m4 (m4_esyscmd_e, m4_chomp, m4_chomp_all):
3737         New macros.
3738         * doc/autoconf.texi (Redefined M4 Macros) <m4_esyscmd_s>: Document
3739         them.
3740         (Text processing Macros) <m4_chomp>: Likewise.
3741         * NEWS: Likewise.
3742         * tests/m4sugar.at (m4@&t@_esyscmd_s): New test.
3744         Remove _m4_index.
3745         * lib/m4sugar/m4sugar.m4 (_m4_index): Delete; it is more efficient
3746         to make callers guarantee a match.
3747         (m4_init): Adjust caller.
3748         * lib/autoconf/status.m4 (_AC_CONFIG_COMPUTE_DEST): Likewise.
3749         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Likewise.
3751         Describe different hacks for balancing ')' in case statements.
3752         * doc/autoconf.texi (Limitations of Builtins) <case>: Add an
3753         exposition on various quoting styles.
3755 2008-11-20  Eric Blake  <ebb9@byu.net>
3757         Speed up _AS_QUOTE.
3758         * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE): Inline into...
3759         (_AS_QUOTE): ...here, delete unused second paramenter, and factor
3760         choice into...
3761         (_AS_QUOTE_MODERN, _AS_QUOTE_OLD): ...new helpers.
3763 2008-11-20  Alfred G. de Wijn  <dwijn@iluvatar.eu.org>  (tiny change)
3765         For consistency, make temporary variable match language name.
3766         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G, _AC_PROG_FC_V_OUTPUT):
3767         Match the save/test variables' names to the FFLAGS/FCFLAGS being
3768         saved.
3769         * THANKS: Update.
3771 2008-11-19  Eric Blake  <ebb9@byu.net>
3773         Improve testsuite generation.
3774         * tests/local.at (AT_DATA_M4SUGAR, AT_DATA_M4SH)
3775         (AT_DATA_AUTOCONF): Escape all quadrigraphs, not just @&t@.  Use
3776         fewer macros.
3778 2008-11-18  Eric Blake  <ebb9@byu.net>
3780         Use fn for shell functions, func for autoconf CHECK_FUNCS.
3781         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Abbreviate shell
3782         function names.
3783         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE)
3784         (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE, _AC_RUN_IFELSE)
3785         (AC_CHECK_DECL, AC_COMPUTE_INT): Likewise.
3786         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
3787         (_AC_CHECK_HEADER_COMPILE, _AC_CHECK_HEADER_PREPROC): Likewise.
3788         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, _AC_TYPE_INT)
3789         (_AC_TYPE_UNSIGNED_INT, AC_CHECK_MEMBER): Likewise.
3790         * lib/autotest/general.m4 (AT_INIT): Likewise.
3791         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK, _AS_EXIT_PREPARE)
3792         (AS_EXIT, AS_SET_STATUS, _AS_UNSET_PREPARE, _AS_MKDIR_P)
3793         (_AS_MKDIR_P_PREPARE, _AS_VAR_APPEND_PREPARE, AS_VAR_APPEND)
3794         (_AS_VAR_ARITH_PREPARE, AS_VAR_ARITH): Likewise.
3795         * doc/autoconf.texi (Shell Functions): Likewise.
3797 2008-11-18  Eric Blake  <ebb9@byu.net>
3799         Alter default value of AS_EXIT.
3800         * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE): Let as_func_exit
3801         parameter be optional.
3802         (AS_EXIT): Use it to make better default.
3803         (_AS_DETECT_BETTER_SHELL): Use new default.
3804         * bin/autoconf.as (exit_missing_arg, getopt): Likewise.
3805         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
3806         * tests/m4sh.at (AS@&t@_EXIT): Update test.
3807         * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Mention
3808         new default behavior.
3809         (Limitations of Builtins) <trap>: Adjust to use new default.
3810         * NEWS: Mention the semantic change.
3811         Suggested by Ralf Wildenhues.
3813         Update example to match actual Tru64 behavior.
3814         * doc/autoconf.texi (Limitations of Builtins) <trap>: Correct
3815         the example.
3816         Reported by Ralf Wildenhues.
3818         Add AS_SET_STATUS, make AS_EXIT more efficient.
3819         * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE, AS_SET_STATUS): New
3820         macros.
3821         (AS_EXIT): Rewrite to avoid forks.
3822         (_AS_SHELL_SANITIZE): Avoid AS_EXIT prior to shell functions.
3823         (AS_PREPARE, _AS_PREPARE): Add new preparation.
3824         * doc/autoconf.texi (Common Shell Constructs) <AS_SET_STATUS>:
3825         Document.
3826         * NEWS: Mention new macro.
3827         * tests/m4sh.at (AS@&t@_EXIT): New test.
3828         (BASENAME_TEST): Sort.
3830         Document Tru64 bug with 'set -e'.
3831         * doc/autoconf.texi (Limitations of Builtins) <trap>: Mention a
3832         bug in mixing 'set -e' with 'trap .. 0'.
3833         Reported by Ralf Wildenhues.
3835         Document a Solaris /bin/sh bug with 'set -e'.
3836         * doc/autoconf.texi (Shell Functions): Mention the bug.
3838 2008-11-17  Eric Blake  <ebb9@byu.net>
3840         Detect empty list in AS_FOR.
3841         * lib/m4sugar/m4sh.m4 (AS_FOR): Handle iteration over $@
3842         properly.
3843         * tests/m4sh.at (AS@&t@_FOR): Enhance test to catch it.
3844         Reported by Paolo Bonzini.
3846 2008-11-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3848         Use a different workaround for an automake quirk.
3849         * tests/Makefile.am (AUTOMAKE_OPTIONS): Remove.
3850         (distclean_generic): New helper variable, to fool automake.
3851         ($(distclean_generic)): Depend on clean-local, to prevent
3852         the race in the two rules with accessing and removing
3853         $(TESTSUITE).
3854         Report by Eric Blake.
3856         * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Simplify, avoid
3857         unbalanced parentheses from last change.
3858         Spotted by Eric Blake, fix suggested by Paolo Bonzini.
3860         Fix exit status of expr version of as_func_arith.
3861         * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Count an exit
3862         status of 1 of expr also as success, to avoid failure if the
3863         computation result is zero.  Fixes test failures with IRIX sh,
3864         where the expr variant of as_func_arith is used.
3866         Do not use read-only variable $status.
3867         * tests/compile.at (AC_RUN_IFELSE): Use $estatus instead of
3868         $status, for zsh.
3870 2008-11-15  Eric Blake  <ebb9@byu.net>
3872         Use the new AS_FOR function.
3873         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Use new
3874         abstraction for cleaner code.
3875         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
3877         Add AS_FOR, undocumented for now.
3878         * lib/m4sugar/m4sh.m4 (AS_FOR): New macro.
3879         * tests/m4sh.at (AS@&t@_FOR): New test.
3880         Suggested by Paolo Bonzini.
3882 2008-11-13  Eric Blake  <ebb9@byu.net>
3884         Optimize single-argument loop.
3885         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid forks when
3886         loop only has one argument.
3887         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
3889 2008-11-13  Eric Blake  <ebb9@byu.net>
3891         Fix AS_ESCAPE usage bugs.
3892         * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
3893         (_AS_VAR_ARITH_PREPARE): Expand macros prior to adding shell
3894         escapes.
3895         (AS_TR_SH, AS_VAR_GET): Use _AS_ESCAPE for speed.
3896         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_SET>: Document
3897         caveat due to conditional AS_ESCAPE.
3898         * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
3900 2008-11-12  Eric Blake  <ebb9@byu.net>
3902         Whitespace reduction in configure.
3903         * lib/autoconf/autoheader.m4 (AH_VERBATIM): Avoid empty lines.
3904         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, AC_CHECK_FILES):
3905         Likewise.
3906         (_AC_DEFINE_Q): Restore empty line, since some clients in the wild
3907         depend on it.
3909 2008-11-12  Eric Blake  <ebb9@byu.net>
3911         Make M4sh, not autoconf, guarantee sane $SHELL.
3912         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Move setting of
3913         SHELL...
3914         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): ...to here.
3915         * doc/autoconf.texi (Initialization Macros): Document the effect
3916         on SHELL.
3917         * tests/m4sh.at (AS@&t@_INIT_GENERATED): New test.
3918         Reported by Ralf Wildenhues.
3920 2008-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3922         Wrap keywords in `testsuite --list' output.
3923         * lib/autotest/general.m4 (AT_INIT): Rewrite --list awk script,
3924         avoid lint warnings from gawk, wrap keyword lists to stay below
3925         80 characters per line if possible.
3926         * tests/autotest.at (Keyword wrapping): New test.
3928         * tests/local.at (AT_COPYRIGHT): Bump copyright years.
3930         * doc/autoconf.texi (Conditional constructs, Macro Names): Fix
3931         typos.
3933 2008-11-10  Eric Blake  <ebb9@byu.net>
3935         Work around <=m4-1.4.9 bug in m4_format.
3936         * lib/m4sugar/m4sugar.m4 (_m4_index): New internal macro.
3937         (m4_init): Only use it in older m4.
3938         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Use it to avoid
3939         m4_format bug in older m4.
3940         * lib/autoconf/status.m4 (_AC_CONFIG_COMPUTE_DEST): Likewise.
3941         Reported by Bob Proulx.
3943 2008-11-10  Eric Blake  <ebb9@byu.net>
3945         Match upstream standards.texi.
3946         * doc/standards.texi: Resync from upstream.
3947         * doc/fdl-1.3.texi: Rename...
3948         * doc/fdl.texi: ...to this.
3949         * doc/Makefile.am (autoconf_TEXINFOS, standards_TEXINFOS): Update
3950         users.
3951         * doc/autoconf.texi (GNU Free Documentation License): Likewise.
3952         * cfg.mk (fetch): Likewise.
3954         Yet more FDL 1.3 fallout.
3955         * NEWS: Mention manual license change.
3957 2008-11-10  Eric Blake  <ebb9@byu.net>
3959         Avoid some regex uses.
3960         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Use m4_format rather
3961         than m4_bpatsubst to grab string prefix.
3962         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER)
3963         (_AC_CONFIG_REGISTER_DEST, AC_CONFIG_SUBDIRS): Likewise.
3964         (_AC_FILE_DEPENDENCY_TRACE_COLON): Use m4_translit instead of
3965         m4_bpatsubst to change bytes.
3966         (_AC_CONFIG_DEPENDENCY_DEFAULT): Use m4_index rather than
3967         m4_bmatch to find byte.
3968         (_AC_CONFIG_COMPUTE_DEST): New helper macro.
3970         Use more efficient macros in AC_CONFIG_SUBDIRS.
3971         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS, AC_CONFIG_SUBDIRS): Use
3972         m4_map_args_w.
3973         (_AC_OUTPUT_FILE): Use m4_map_args_sep and m4_map_args.
3974         (_AC_OUTPUT_FILE_ADJUST_DIR): New helper macro.
3976         Use more efficient macros in AC_CHECK_FILES and AC_CHECK_DECLS.
3977         * lib/autoconf/general.m4 (AC_CHECK_FILES): Use m4_map_args_w,
3978         and avoid typo.
3979         (AC_CHECK_DECLS, AC_CHECK_DECLS_ONCE): Use m4_map_args_sep.
3980         (_AC_CHECK_FILES, _AC_CHECK_DECLS, _AC_CHECK_DECL_ONCE): New
3981         helper macros.
3982         (AC_LIBSOURCES): Use m4_map_args.
3984         Use more efficient macros in AC_CHECK_TYPES.
3985         * lib/autoconf/types.m4 (AC_CHECK_TYPES, AC_CHECK_MEMBERS): Use
3986         m4_map_args_sep.
3987         (_AC_CHECK_TYPES, _AC_CHECK_MEMBERS): New helper macros.
3989         Use more efficient macros in AC_CHECK_HEADERS.
3990         * lib/autoconf/headers.m4 (AH_CHECK_HEADERS)
3991         (AH_CHECK_HEADERS_DIRENT): Rename...
3992         (_AH_CHECK_HEADER, _AH_CHECK_HEADER_DIRENT): ...and take only one
3993         argument, rather than a list.
3994         (AC_CHECK_HEADERS, AC_CHECK_HEADERS_ONCE):
3995         Adjust callers to use m4_map_args_w.
3996         (AC_HEADER_DIRENT): Adjust caller to use m4_map_args.
3997         (_AC_CHECK_HEADER_ONCE): New helper macro.
3999         Use more efficient macros in AC_CHECK_FUNCS.
4000         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): Rename...
4001         (_AH_CHECK_FUNC): ...and take only one argument, rather than a
4002         list.
4003         (AC_CHECK_FUNCS, AC_CHECK_FUNCS_ONCE): Adjust callers to use
4004         m4_map_args_w.
4005         (_AC_CHECK_FUNC_ONCE): New helper macro.
4006         (AC_REPLACE_FUNCS): Use m4_map_args_w.
4008         Use more efficient macro in AT_INIT.
4009         * lib/autotest/general.m4 (AT_INIT): Use m4_map_args.
4011 2008-11-10  Eric Blake  <ebb9@byu.net>
4013         More FDL 1.3 fallout.
4014         * cfg.mk (fetch): Add gnu-oids.texi, drop fdl.texi.
4015         * doc/Makefile.am (standards_TEXINFOS): Reflect upstream
4016         dependency changes.
4017         * doc/fdl.texi: Delete.
4018         * doc/gnu-oids.texi: New upstream file.
4019         * doc/standards.texi: Resync from upstream.
4020         * doc/make-stds.texi: Likewise.
4021         * build-aux/announce-gen: Likewise.
4022         * build-aux/texinfo.tex: Likewise.
4024 2008-11-10  Clinton Roy  <clinton.roy@gmail.com>  (tiny change)
4026         Pass autoreconf -I to aclocal -I
4027         * bin/autoreconf.in (parse_args): Pass --include to aclocal.
4028         * doc/autoconf.texi (autoreconf Invocation): Updates for above.
4029         * NEWS: Document it.
4030         * THANKS: Update.
4032 2008-11-10  Eric Blake  <ebb9@byu.net>
4034         Try 'print -r --' as a non-forking variant of 'printf %s\\n'.
4035         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Cater to Solaris ksh.
4036         * doc/autoconf.texi (Limitations of Builtins) <printf>: Document
4037         the print workaround.
4038         Idea by Paolo Bonzini.
4040 2008-11-10  Eric Blake  <ebb9@byu.net>
4042         Provide a section on all tools allowed in GNU Coding Standards.
4043         * doc/autoconf.texi (Limitations of Builtins) <read>: Sort.
4044         <wait>: Add section.
4045         (Limitations of Usual Tools) <awk>: Make table entry consistent.
4046         <chgrp, mkfifo, rmdir, sleep, sort, tar> Add sections.
4048 2008-11-09  Paolo Bonzini  <bonzini@gnu.org>
4050         Balance parentheses in _AC_CACHE_DUMP.
4051         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Balance parentheses
4052         without introducing \).
4054 2008-11-07  Eric Blake  <ebb9@byu.net>
4056         Further doc updates for AC_CHECK_HEADER change.
4057         * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
4058         new default, and make it more obvious that using [-] is generally
4059         broken.
4061 2008-11-07  Eric Blake  <ebb9@byu.net>
4063         * ChangeLog: Enforce UTF-8 encoding.
4065 2008-11-06  Eric Blake  <ebb9@byu.net>
4067         Skip preprocessor check in AC_CHECK_HEADERS_ONCE.
4068         * lib/autoconf/headers.m4 (_AC_HEADERS_EXPANSION): Provide fourth
4069         argument to speed up check.
4071 2008-11-06  Eric Blake  <ebb9@byu.net>
4073         Speed up AC_CHECK_TYPE.
4074         * lib/autoconf/types.m4 (AC_CHECK_TYPE): Factor out $@, and avoid
4075         regex when enough arguments are present.
4077 2008-11-06  Paolo Bonzini  <bonzini@gnu.org>
4079         Remove three forks per _AC_RUN_LOG_STDERR in the common case.
4080         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR): Avoid grep/rm/cat
4081         sequence when the program's stderr was empty, while providing a
4082         conftest.err file even in that case.
4083         (_AC_CACHE_DUMP): Fix mismatched parenthesis.
4085 2008-11-06  Paolo Bonzini  <bonzini@gnu.org>
4087         Change `present but cannot be compiled' behavior to use compiler result.
4088         * NEWS: Document it.
4089         * doc/autoconf.texi (Present But Cannot Be Compiled): Document it.
4090         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Implement it
4091         and adjust warning.
4092         * tests/semantics.at (AC_CHECK_HEADERS): Test new semantics.
4094 2008-11-05  Eric Blake  <ebb9@byu.net>
4096         Add m4_map_args_w.
4097         * lib/m4sugar/m4sugar.m4 (m4_map_args_w): New macro, undocumented
4098         for now.
4099         (_m4_split): Allow user control over separator.
4100         (m4_split): Adjust caller.
4101         (m4_foreach_w, m4_append_uniq_w, _m4_text_wrap): Rewrite to use
4102         m4_map_args_w.
4103         * tests/m4sugar.at (m4@&t@_append): Augment test keywords.
4104         (M4 loops): Test new interface.
4106         Use m4_set_map_sep in more places.
4107         * lib/m4sugar/m4sugar.m4 (m4_set_difference, m4_set_intersection)
4108         (m4_set_union): Use m4_set_map_sep rather than m4_set_foreach.
4109         * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
4110         Enhance documentation.
4111         <m4_set_foreach>: Mention faster alternative.
4112         (Looping constructs) <m4_foreach>: Likewise.
4114         Unify m4_set_foreach and m4_set_map.
4115         * lib/m4sugar/m4sugar.m4 (m4_set_map_sep): New macro, undocumented
4116         for now.
4117         (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
4118         (m4_set_map): Adjust callers.
4120         Use _m4_foreach in more places.
4121         * lib/m4sugar/foreach.m4 (m4_dquote_elt, m4_join, m4_joinall)
4122         (_m4_minmax, m4_set_add_all): Use _m4_foreach instead of
4123         m4_foreach.
4124         * lib/m4sugar/m4sugar.m4 (_m4_joinall): Use m4_map_args_sep
4125         instead of m4_foreach or m4_map_args.
4127         Unify _m4_foreach and _m4_map.
4128         * lib/m4sugar/m4sugar.m4 (_m4_map): Delete, merged with...
4129         (_m4_foreach): ...this.
4130         (m4_foreach, m4_map, m4_mapall, m4_map_sep, _m4_mapall_sep)
4131         (m4_map_args, m4_map_args_sep): Adjust callers.
4132         * lib/m4sugar/foreach.m4 (_m4_map): Rename...
4133         (_m4_foreach): ...to this, overwriting old definition.
4135 2008-11-04  Eric Blake  <ebb9@byu.net>
4137         Add m4_map_args_sep, undocumented for now.
4138         * lib/m4sugar/m4sugar.m4 (m4_map_args_sep): New macro.
4139         (_m4_map): Change API to cover more of m4_map*.
4140         * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new API.
4141         (m4_map_args): Delete.
4142         * tests/m4sugar.at (m4@&t@_map_args and m4@&t@_curry): Enhance
4143         test.
4145         Improve m4_for performance.
4146         * lib/m4sugar/m4sugar.m4 (_m4_for): Alter API to make it easier to
4147         avoid m4_define by some clients.
4148         (m4_for): Adjust caller.
4149         * lib/m4sugar/foreach.m4 (_m4_foreach, m4_case, m4_bmatch)
4150         (_m4_cond, _m4_bpatsubsts, _m4_shiftn, m4_do, m4_reverse)
4151         (_m4_map, m4_map_args, m4_map_args_pair, _m4_list_pad)
4152         (_m4_list_cmp): Likewise.
4154 2008-11-04  Eric Blake  <ebb9@byu.net>
4156         Adjust expected output.
4157         * tests/torture.at (Missing templates): Reflect added quoting.
4158         Detected by Bob Proulx's buildbot.
4160         Reject arguments with leading =.
4161         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Detect case of
4162         missing variable name, with fewer forks.  Quote invalid arguments
4163         in message, in case they include spaces.
4164         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS)
4165         (_AC_OUTPUT_MAIN_LOOP): Quote invalid arguments.
4166         * lib/autotest/general.m4 (AT_INIT): Likewise.
4167         * tests/base.at (configure arguments): Test this.
4168         Reported by Jeff Squyres.
4170 2008-11-04  Eric Blake  <ebb9@byu.net>
4172         Upgrade to FDL 1.3.
4173         * cfg.mk (fetch): Add fdl-1.3.texi.
4174         * .gitattributes: Likewise.
4175         * doc/autoconf.texi (GNU Free Documentation License): Point to new
4176         upstream version.
4177         * doc/Makefile.am (autoconf_TEXINFOS): Likewise.
4178         (standards_TEXINFOS): Mention current dependence on older license.
4179         * doc/fdl-1.3.texi: New upstream file.
4180         * GNUmakefile: Resync from upstream.
4181         * build-aux/announce-gen: Likewise.
4182         * build-aux/texinfo.tex: Likewise.
4184 2008-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4186         Point at AM_SUBST_NOTMAKE.
4187         * doc/autoconf.texi (Setting Output Variables): Add cross
4188         reference to new Automake macro AM_SUBST_NOTMAKE.
4190 2008-11-03  Paolo Bonzini  <bonzini@gnu.org>
4192         Eliminate a fork per invocation of AC_LANG_CONFTEST.
4193         * lib/autoconf/c.m4 (AC_LANG_CONFTEST(C)): Define instead of
4194         AC_LANG_SOURCE(C).
4195         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Add a comment at the
4196         top of confdefs.h, which also works around cpp deficiencies.
4197         * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Define AC_LANG_CONFTEST(xyz)
4198         (AC_LANG_CONFTEST): Dispatch based on _AC_LANG.
4199         (AC_LANG_CONFTEST()): New.
4201 2008-11-03  Paolo Bonzini  <bonzini@gnu.org>
4203         Reorganize definition of languages.
4204         * lib/autoconf/c.m4 (AC_LANG(C), AC_LANG(C++), AC_LANG(Objective C),
4205         _AC_LANG_ABBREV(C), _AC_LANG_ABBREV(C++), _AC_LANG_ABBREV(Objective C),
4206         _AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++), _AC_LANG_PREFIX(Objective C)):
4207         Replace definitions with usage of AC_LANG_DEFINE.
4208         (Sections 2b, 2c): Delete.
4209         (Sections 1b, 1c): Move after section 2a.
4210         * lib/autoconf/erlang.m4 (AC_LANG(Erlang), _AC_LANG_ABBREV(Erlang),
4211         _AC_LANG_PREFIX(Erlang), AC_LANG_SOURCE(Erlang)): Replace definitions
4212         with usage of AC_LANG_DEFINE.
4213         (AC_LANG_ERLANG): Define using AU_DEFUN.
4214         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_LANG(Fortran 77),
4215         _AC_LANG_ABBREV(Fortran), _AC_LANG_ABBREV(Fortran 77),
4216         _AC_LANG_PREFIX(Fortran), _AC_LANG_PREFIX(Fortran 77),
4217         _AC_LANG_SOURCE(Fortran), AC_LANG_SOURCE(Fortran 77)): Replace
4218         definitions with usage of AC_LANG_DEFINE.
4219         * lib/autoconf/lang.m4 (AC_LANG_DEFINE, AC_LANG_SOURCE()): New.
4221 2008-11-03  Paolo Bonzini  <bonzini@gnu.org>
4223         Use preprocessor in cpp tests.
4224         * tests/c.at (CPP tests): Use AC_CHECK_HEADERS(..., [-]).
4226 2008-10-31  Paolo Bonzini  <bonzini@gnu.org>
4228         Rename _AC_CHECK_HEADER_OLD and _AC_CHECK_HEADER_NEW.
4229         * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Adjust naming.
4230         (_AC_CHECK_HEADER_PREPROC_BODY): New name of _AC_CHECK_HEADER_OLD_BODY.
4231         (_AC_CHECK_HEADER_COMPILE_BODY): New name of _AC_CHECK_HEADER_NEW_BODY.
4232         (_AC_CHECK_HEADER_PREPROC): New name of _AC_CHECK_HEADER_OLD.
4233         (_AC_CHECK_HEADER_COMPILE): New name of _AC_CHECK_HEADER_NEW.
4234         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADER_NEW):
4235         Give better name.
4237 2008-10-31  Eric Blake  <ebb9@byu.net>
4239         Support multiple undiverts and dumpdefs at once.
4240         * lib/m4sugar/m4sugar.m4 (m4_dumpdefs, m4_undivert): Allow extra
4241         arguments.
4242         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>,
4243         <m4_undivert>: Document argument list change.
4244         * tests/m4sugar.at (m4@&t@_divert_stack, m4@&t@_dumpdef): Test
4245         them.
4247         Simplify diversion stack handling.
4248         * lib/m4sugar/m4sugar.m4 (m4_divert_stack): Use fewer macros, and
4249         avoid extra newlines.
4250         (m4_divert_stack_push): Compute location here, rather than caller.
4251         (m4_divert_push): Update caller.
4252         (m4_divert): Likewise, and also adjust current diversion name.
4253         (m4_divert_pop): Simplify rule that diversion stack must never go
4254         empty.
4255         (_m4_require_call): Bypass diversion stack when collecting
4256         required macro text.
4257         (m4_init): Set current diversion without requiring m4_init.
4258         * lib/m4sugar/m4sh.m4 (AS_INIT): Avoid too many pops.
4259         * lib/autotest/general.m4 (AT_INIT): Likewise.
4260         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Schedule wrapped
4261         text to run prior to m4sugar cleanup.
4262         * doc/autoconf.texi (Text processing Macros) <m4_newline>: Mention
4263         optional argument.
4264         (Conditional constructs) <m4_ifvaln, m4_n>: Mention use of dnl.
4265         * NEWS: Undo blurb about m4_divert.
4266         * tests/m4sugar.at (m4@&t@_divert_stack): New test.
4268         Simplify expansion stack handling.
4269         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack): Use fewer macros;
4270         always output 'top level'.
4271         (_m4_expansion_stack_entry): New macro, to format the string only
4272         when needed.
4273         (m4_expansion_stack_push): Only push a macro name.
4274         (m4_warn, _m4_defun_pro): Update callers.
4275         (m4_expansion_stack_pop, m4_expansion_stack_dump): Delete.
4276         (_m4_defun_epi, m4_fatal): Inline the calls.
4277         * tests/m4sugar.at (m4@&t@_expansion_stack): New test.
4279 2008-10-30  Eric Blake  <ebb9@byu.net>
4281         Better documentation of AC_CHECK_HEADER's fourth argument.
4282         * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
4283         how to suppress compiler or preprocessor header check.
4284         Reported by Jeff Squyres.
4286 2008-10-30  Eric Blake  <ebb9@byu.net>
4288         Fix LINENO testsuite failure.
4289         * tests/m4sh.at (AT_DATA_LINENO): Use AS_LINENO_PREPARE, not
4290         undocumented _AS_PREPARE, and move unset earlier in script.
4292         Update LINENO documentation.
4293         * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
4294         (Special Shell Variables) <LINENO>: Mention that LINENO support in
4295         child scripts may be broken.  Modernize example.
4297 2008-10-30  Paolo Bonzini  <bonzini@gnu.org>
4299         Do not check for $LINENO in generated scripts.
4300         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Do not call _AS_LINENO_PREPARE,
4301         and explain why.
4303 2008-10-30  Eric Blake  <ebb9@byu.net>
4305         Don't check for non-POSIX extensions in suggested tests.
4306         * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_WORKS): Remove suggestion;
4307         we still use += if available, but should not reject shells (like
4308         dash) that don't provide it.
4309         (_AS_DETECT_SUGGESTED): Document a policy for m4sh.
4310         Reported by Paolo Bonzini.
4312 2008-10-30  Paolo Bonzini  <bonzini@gnu.org>
4314         Pass CONFIG_SHELL down to generated scripts, and re-export SHELL.
4315         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): If proceeding
4316         with a given CONFIG_SHELL, move it to SHELL.
4317         (AS_INIT_GENERATED): Re-export SHELL.
4319 2008-10-30  Eric Blake  <ebb9@byu.net>
4321         Work around Solaris /bin/sh case bug.
4322         * lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT): Always provide
4323         a non-empty command list.
4324         (AS_CASE): Always guarantee that a case will match.
4325         * doc/autoconf.texi (Limitations of Builtins) <case>: Document the
4326         Solaris bug, and mention AS_CASE.
4328 2008-10-30  Paolo Bonzini  <bonzini@gnu.org>
4330         Require _AS_CR_PREPARE where appropriate.
4331         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Call _AS_CR_PREPARE.
4332         (AS_PREPARE): Require _AS_CR_PREPARE.
4334         Avoid walking the entire PATH when looking for a better shell.
4335         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Test shell characteristics
4336         as the PATH is walked.
4338         Add third argument to _AS_PATH_WALK
4339         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Do not call _AS_CR_PREPARE.
4340         (_AS_PATH_WALK): Add third optional argument.
4342         Trim down the length of the shell function test.
4343         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Condense.
4345 2008-10-29  Eric Blake  <ebb9@byu.net>
4347         Fix LINENO detection to work around bash and pdksh limitations.
4348         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Enhance the test, so
4349         that we can choose which of two tests to trust.
4350         (_AS_RUN): Set flag when alternate shell is running.
4351         (_AS_DETECT_EXPAND): New macro.
4352         (_AS_DETECT_BETTER_SHELL): Use it to massage LINENO tests.
4354 2008-10-29  Eric Blake  <ebb9@byu.net>
4356         Mention proper fix for zsh users.
4357         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Recommend zsh
4358         version known to work.
4359         Suggested by Paolo Bonzini.
4361         Document current beta-quality status.
4362         * configure.ac: Reflect fact that change to git-version-gen
4363         produces -, but not always a letter, on non-release builds.
4364         * BUGS: Mention known issues.
4365         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Ask for help in
4366         debugging platforms with deficient shells.
4368 2008-10-29  Eric Blake  <ebb9@byu.net>
4370         Alter signature of AS_INIT_GENERATED.
4371         * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): Add parameters, and
4372         manage here-doc and chmod in place.  This also allows future
4373         changes for optimizing the child via diversion/m4_wrap magic.
4374         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
4375         caller.
4376         * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
4377         Update the documentation.
4379 2008-10-29  Eric Blake  <ebb9@byu.net>
4381         Use _m4_stack_reverse in m4_set.
4382         * lib/m4sugar/m4sugar.m4 (_m4_set_contents_1)
4383         (_m4_set_contents_2): Rewrite to share _m4_stack_reverse
4384         implementation.
4385         (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
4386         (m4_set_map): Adjust callers to new API.
4388         Add m4_stack_foreach_sep.
4389         * lib/m4sugar/m4sugar.m4 (m4_stack_foreach_sep)
4390         (m4_stack_foreach_sep_lifo): New macros.
4391         (_m4_stack_reverse): Adjust prototype, to support it.
4392         (m4_copy): Use fewer macros.
4393         * tests/m4sugar.at (m4@&t@_stack_foreach): Rename...
4394         (m4@&t@_stack): ...and add m4_stack_foreach_sep tests.
4396 2008-10-29  Bruno Haible  <bruno@clisp.org>
4398         Mention Sun WorkShop 6.2 OpenMP bug.
4399         * doc/autoconf.texi (AC_OPENMP): Document portability pitfall.
4401 2008-10-29  Paolo Bonzini  <bonzini@gnu.org>
4403         Rewrite handling of diversion and expansion stack.
4404         * NEWS: Document stricter requirement on m4_init.
4405         * lib/m4sugar/m4sugar.m4 (m4_divert_stack): New, replacing
4406         _m4_divert_n_stack.
4407         (_m4_divert_stack_push): New.
4408         (m4_divert): Use _m4_divert_stack_push and replace m4_define with
4409         m4_popdef.
4410         (m4_divert_push): Use _m4_divert_stack_push.
4411         (m4_divert_pop): Use m4_divert_stack instead of _m4_divert_n_stack,
4412         pop _m4_divert_stack instead of m4_divert_stack.
4413         (m4_expansion_stack): New.  Update comment above it.
4414         (m4_expansion_stack_push, m4_expansion_stack_pop): Work on
4415         _m4_expansion_stack instead of m4_expansion_stack.
4416         (m4_expansion_stack_dump): Check presence of _m4_expansion_stack
4417         instead of m4_expansion_stack.  Use m4_expansion_stack's expansion
4418         instead of the definition, and compensate for the trailing newline
4419         in the expansion.
4420         (m4_warn, _m4_defun_pro, _m4_defun_epi): Check presence of
4421         _m4_expansion_stack instead of m4_expansion_stack.
4422         (m4_newline): Expand first argument after the newline.
4423         (m4_init): Use m4_divert_stack instead of _m4_divert_n_stack,
4424         * tests/m4sugar.at (m4_append, m4_text_wrap): Invoke m4_init.
4425         * tests/tools.at (whitespace in file names, the empty token): Likewise.
4427 2008-10-28  Eric Blake  <ebb9@byu.net>
4429         Reduce forks while searching for better shell.
4430         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED)
4431         (_AS_DETECT_SUGGESTED): No need to provide extra subshell; _AS_RUN
4432         already does the job.
4433         (_AS_DETECT_BETTER_SHELL): Simplify AS_EXIT when not run in a trap
4434         0 context.
4436         Undo needless efforts to protect $2 in $2_t.
4437         * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY)
4438         (_AC_TYPE_UNSIGNED_INT_BODY): Reduce extra quoting.
4440 2008-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4442         Fix parallel test execution output lossage.
4443         * lib/autotest/general.m4 (_AT_CHECK): Truncate files to hold
4444         standard output and standard error before the test, use append
4445         mode for writing.
4446         * THANKS: Update.
4447         Caught by Bob Proulx' build daemons, analysis and suggested fix
4448         by Stéphane Chazelas.
4450 2008-10-28  Eric Blake  <ebb9@byu.net>
4452         Use m4_map_args in more places.
4453         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_dumpdef, m4_popdef)
4454         (m4_undefine, m4_combine): Use m4_map_args, rather than
4455         m4_foreach.
4457 2008-10-28  Eric Blake  <ebb9@byu.net>
4459         Override m4 1.4.x dumpdef, as it breaks autom4te.
4460         * lib/m4sugar/m4sugar.m4 (m4_dumpdef): New implementation.
4461         (m4_copy): Formatting touchup.
4462         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
4463         semantic differences as well as m4_dumpdefs.
4464         * NEWS: Likewise.
4465         * tests/m4sugar.at (m4@&t@_dumpdef): New test.
4467 2008-10-28  Eric Blake  <ebb9@byu.net>
4469         Allow m4sugar to be used without autom4te, such as in bison.
4470         * lib/m4sugar/m4sugar.m4 (m4_text_wrap, m4_qlen): Document that
4471         alternate escape sequences can be used.
4472         (m4_text_box): Likewise.  Don't output quadrigraphs.
4473         (m4_qdelta): Delete unused macro.
4475 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
4477         Add m4_stack_foreach and m4_stack_foreach_lifo.
4478         * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): New from _m4_copy.
4479         (m4_stack_foreach, m4_stack_foreach_lifo): New.
4480         (m4_copy): Use m4_stack_foreach and m4_curry.
4481         (_m4_dumpdefs_down, _m4_dumpdefs_up): Remove.
4482         (m4_dumpdefs): Rewrite using m4_stack_foreach_lifo.
4483         * tests/m4sugar.at (m4_stack_foreach): New test.
4485 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
4487         use a shell function for AC_TYPE_INTx_T
4488         * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY, _AC_TYPE_UNSIGNED_INT_BODY):
4489         New.
4490         (_AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT): Define and use a shell function.
4492 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
4494         * lib/autoconf/general.m4 (AC_CHECK_DECL): Fix AS_ESCAPE usage.
4495         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL,
4496         _AC_CHECK_HEADER_NEW): Likewise.
4497         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
4499 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
4501         * lib/autoconf/types.m4 (_AC_CHECK_MEMBER_BODY): New.
4502         (AC_CHECK_MEMBER): Define and use a shell function.
4504 2008-10-27  Eric Blake  <ebb9@byu.net>
4506         Prefer m4_fatal over AC_FATAL.
4507         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF)
4508         (AC_CHECK_MEMBER): Use non-obsolete macro name.
4509         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF): Likewise.
4510         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE, AC_SUBST):
4511         Likewise.
4512         * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
4513         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCY_DEFAULT)
4514         (_AC_CONFIG_UNIQUE, _AC_CONFIG_REGISTER_DEST): Likewise.
4516 2008-10-27  Eric Blake  <ebb9@byu.net>
4518         Avoid raw carriage return in scripts.
4519         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Generate CR
4520         via tr, rather than with literal byte.
4521         * THANKS: Update.
4522         Reported by Steven R. Loomis; patch suggested by Thomas Dickey.
4524 2008-10-27  Eric Blake  <ebb9@byu.net>
4526         Use AS_VAR_ARITH.
4527         * lib/autotest/general.m4 (at_func_arith): Delete; replace all
4528         clients with AS_VAR_ARITH instead.
4529         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE): Use new
4530         macro.
4531         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Likewise.
4532         * tests/torture.at (Torturing config.status): Likewise.
4533         * tests/tools.at (autom4te --force): Likewise.
4535         Add AS_VAR_ARITH.
4536         * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE, _AS_VAR_ARITH_WORKS)
4537         (AS_VAR_ARITH): New macros.
4538         (_AS_PREPARE, AS_PREPARE): Emit preparation.
4539         * tests/m4sh.at (AS@&t@_VAR_ARITH): New test.
4540         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_ARITH>:
4541         Document new macro.
4542         (Limitations of Usual Tools) <expr>: Mention portability problem
4543         if first argument starts with -.
4544         (Shell Substitutions) <$((expression))>: Mention it.
4545         * NEWS: Likewise.
4547 2008-10-27  Eric Blake  <ebb9@byu.net>
4549         Use read, rather than `cat`, for safe one-line files.
4550         * lib/autotest/general.m4 (AT_CLEANUP): Avoid a fork, since it is
4551         known that the file has only one line and no \.
4552         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_RUN): Likewise.
4554 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
4556         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE,
4557         _AC_COMPUTE_INT_RUN): Add IF-SUCCESS argument.
4558         (_AC_COMPUTE_INT_BODY): New.
4559         (AC_COMPUTE_INT): Define and use a shell function.
4561 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
4563         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW_BODY): Extract
4564         test body here.  Move head comment of _AC_CHECK_TYPE_NEW here.
4565         (_AC_CHECK_TYPE_NEW): Define a shell function and call it.
4567 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
4569         * lib/autoconf/general.m4 (_AC_CHECK_DECL_BODY): New.
4570         (AC_CHECK_DECL): Use a shell function.
4572 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
4574         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_OLD,
4575         _AC_CHECK_HEADER_NEW): Use a shell function.
4577 2008-10-25  Eric Blake  <ebb9@byu.net>
4579         Track recent copyright assignments.
4580         * AUTHORS: Update.
4582 2008-10-25  Paolo Bonzini  <bonzini@gnu.org>
4583         and Eric Blake  <ebb9@byu.net>
4585         Use a shell function for _AC_CHECK_HEADER_MONGREL.
4586         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL_BODY): New
4587         macro.
4588         (_AC_CHECK_HEADER_MONGREL): Use a shell function.
4590 2008-10-25  Eric Blake  <ebb9@byu.net>
4592         Simplify _AS_PREPARE handling of functions.
4593         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Factor...
4594         (_AS_REQUIRE_SHELL_FN): ...into new helper macro.
4595         (_AS_PREPARE): Temporarily redefine AS_REQUIRE_SHELL_FN to make
4596         this task easier.
4597         (_AS_LINENO_PREPARE): Make more efficient.
4598         (_AS_MKDIR_P_PREPARE): Simplify use in _AS_PREPARE.
4599         (_AS_UNSET_PREPARE): Avoid blank newline.
4600         (AS_INIT): Emit as_func_unset alongside other functions.
4602 2008-10-25  Eric Blake  <ebb9@byu.net>
4604         Document AS_EXIT.
4605         * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Document
4606         this macro.
4607         (Limitations of Builtins): Mention AS_EXIT.
4608         * NEWS: Mention it.
4610         Use AS_EXIT in autoconf.as.
4611         * bin/autoconf.as: Consistently use AS_EXIT.
4613 2008-10-24  Eric Blake  <ebb9@byu.net>
4615         Fix m4 underquoting in AC_PROG_INSTALL.
4616         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Produce accurate
4617         character ranges.
4619         Speed up AC_CHECK_HEADER.
4620         * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Factor out $@.
4622 2008-10-24  Paolo Bonzini  <bonzini@gnu.org>
4623         and Eric Blake  <ebb9@byu.net>
4625         Use a shell function for AC_CHECK_FUNC.
4626         * lib/autoconf/functions.m4 (_AC_CHECK_FUNC_BODY): New macro.
4627         (AC_CHECK_FUNC): Use a shell function.
4628         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Reduce number of forks.
4630 2008-10-24  Eric Blake  <ebb9@byu.net>
4632         Work around fact that gnulib-tool doesn't use m4_copy.
4633         * lib/autoconf/general.m4 (AC_LIBOBJ, AC_LIBSOURCES): Defun, not
4634         define, so that an initial location is present, to account for
4635         fact that gnulib-tool pushes another AC_DEFUN'd macro on top.
4637         Make m4_defun_init more robust.
4638         * lib/m4sugar/m4sugar.m4 (m4_defun_init): Handle indirect macro
4639         names, and correct number of arguments.
4640         (m4_copy): Also set up location of the copy.
4641         (m4_defun): When copied, use current macro name, not original.
4642         * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
4643         Update test.
4645         Optimize clients of AS_REQUIRE.
4646         * lib/m4sugar/m4sugar.m4 (m4_defun): Add undocumented third
4647         argument.
4648         (m4_defun_init): New undocumented macro.
4649         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG, AS_MESSAGE, AS_BASENAME)
4650         (_AS_DIRNAME_EXPR, AS_DIRNAME, AS_ECHO, AS_ECHO_N, AS_TEST_X)
4651         (AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK, AS_VERSION_COMPARE)
4652         (AS_TR_SH, AS_TR_CPP, AS_VAR_APPEND, AS_VAR_PUSHDEF): Use it to
4653         simplify these macros once the one-shot initialization is
4654         complete.
4655         * tests/m4sugar.at (m4@&t@_require: one-shot initialization): New
4656         test.
4658         Improve m4_copy.
4659         * lib/m4sugar/m4sugar.m4 (m4_copy): Add second implementation for
4660         public use.
4661         (_m4_copy): New macro, which preserves pushdef stacks.
4662         (_m4_defun_pro_outer): Bypass it, for speed.
4663         (m4_init): Bypass new implementation, since it breaks on m4_defn.
4664         * bin/autoupdate.in (handle_autoconf_macros): Likewise.
4665         * lib/autoconf/general.m4 (AC_PREREQ): Undefine before redefining,
4666         now that m4_copy checks this.
4667         * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
4668         this, as well as m4_rename.
4669         * lib/autoconf/autoconf.m4 (m4_copy): Temporarily redefine when
4670         renaming builtins, since it breaks on m4_ifdef.
4671         * NEWS: Likewise.
4672         * tests/m4sugar.at (m4@&t@_defn): Enhance test.
4674 2008-10-24  Eric Blake  <ebb9@byu.net>
4676         AC_FUNC_GETGROUPS: Revert regression.
4677         * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Only set
4678         ac_cv_func_getgroups_works=no when it is not available.
4680 2008-10-23  Eric Blake  <ebb9@byu.net>
4682         Whitespace cleanup.
4683         * lib/autoconf/fortran.m4: Consistently use tabs.
4685 2008-10-23  Chikama Masaki  <masaki.chikama@gmail.com>  (tiny change)
4687         For gfortran on sh, ignore -little.
4688         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add -little to
4689         list of ignored arguments.
4690         * THANKS: Update.
4692 2008-10-23  Paolo Bonzini  <bonzinI@gnu.org>
4694         Eliminate empty lines after AC_*_IFELSE.
4695         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
4696         _AC_LINK_IFELSE, _AC_RUN_IFELSE): Add a dnl at end.
4698 2008-10-23  Paolo Bonzini  <bonzinI@gnu.org>
4700         Avoid a fork in _AC_RUN_LOG and _AC_RUN_LOG_STDERR
4701         * lib/autoconf/general.m4 (_AC_RUN_LOG, _AC_RUN_LOG_STDERR):
4702         Return a boolean status code based on $ac_status.
4704 2008-10-23  Paolo Bonzini  <bonzinI@gnu.org>
4706         Ensure actions can look at conftest* files.
4707         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY,
4708         _AC_COMPILE_IFELSE_BODY, _AC_LINK_IFELSE_BODY, _AC_RUN_IFELSE_BODY):
4709         Move rm commands, except IPA files and Apple debug symbols...
4710         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE,
4711         _AC_RUN_IFELSE): ...in here.
4712         * tests/compile.at: Add regression test.
4714 2008-10-23  Eric Blake  <ebb9@byu.net>
4716         Remove excess dnl from m4sh.
4717         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_PREPARE)
4718         (_AS_SHELL_FN_WORK, _AS_SHELL_SANITIZE, AS_IF, _AS_ECHO_LOG)
4719         (AS_MESSAGE, AS_ERROR, AS_BASENAME, _AS_BASENAME_PREPARE)
4720         (_AS_DIRNAME_EXPR, AS_DIRNAME, _AS_DIRNAME_PREPARE, AS_ECHO)
4721         (AS_ECHO_N, AS_TEST_X, AS_EXECUTABLE_P, _AS_ME_PREPARE)
4722         (_AS_LINENO_PREPARE, AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK)
4723         (AS_SET_CATFILE, AS_HELP_STRING, AS_TMPDIR, AS_VERSION_COMPARE)
4724         (_AS_TR_SH_PREPARE, AS_TR_SH, _AS_TR_CPP_PREPARE, AS_TR_CPP)
4725         (_AS_TR_PREPARE, AS_VAR_APPEND, AS_VAR_PUSHDEF)
4726         (AS_INIT_GENERATED): Use fewer dnl in m4sh macro bodies.
4728 2008-10-23  Paolo Bonzini  <bonzini@gnu.org>
4729         and Eric Blake  <ebb9@byu.net>
4731         Use a shell function for _AC_RUN_IFELSE.
4732         * lib/autoconf/general.m4 (_AC_RUN_IFELSE_BODY): New macro.
4733         (_AC_RUN_IFELSE): Use a shell function.
4734         (_AC_RUN_LOG): Avoid subshell for logging.
4736 2008-10-23  Eric Blake  <ebb9@byu.net>
4738         Formatting tweak: balance () with m4sh case statements.
4739         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
4740         (_AS_SHELL_SANITIZE, _AS_ECHO_N_PREPARE, _AS_ECHO_PREPARE)
4741         (AS_SET_CATFILE, _AS_TEST_PREPARE): Add strategic shell comments.
4742         (_AS_CASE, _AS_CASE_DEFAULT, AS_CASE): Rearrange newlines, to
4743         allow output of strategic shell comments.
4744         (AS_VERSION_COMPARE): Use AS_CASE.
4745         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
4747 2008-10-22  Jim Meyering  <meyering@redhat.com>
4749         AC_FUNC_GETGROUPS: always define $ac_cv_func_getgroups_works
4750         * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Always define
4751         the shell variable, $ac_cv_func_getgroups_works.  Otherwise, if
4752         it is set to "yes" in the environment and configure is run on
4753         a system like mingw that lacks the getgroups function, it would
4754         mistakenly define HAVE_GETGROUPS.  Reported by Simon Josefsson in
4755         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/15354>.
4757 2008-10-22  Paolo Bonzini  <bonzini@gnu.org>
4758         and Eric Blake  <ebb9@byu.net>
4760         Use a shell function for _AC_LINK_IFELSE.
4761         * lib/autoconf/general.m4 (_AC_LINK_IFELSE_BODY): New macro.
4762         (_AC_LINK_IFELSE): Use a shell function.
4764 2008-10-22  Eric Blake  <ebb9@byu.net>
4766         Fix autoconf logging commands.
4767         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED, _AC_EVAL)
4768         (_AC_EVAL_STDERR, AC_RUN_LOG): Respect as_lineno.
4769         (_AC_DO_ECHO): Likewise, and use fewer dnl.
4770         (_AC_RUN_LOG_STDERR): Avoid subshell for logging.
4772 2008-10-22  Eric Blake  <ebb9@byu.net>
4774         Fix testsuite failure.
4775         * tests/mktests.sh (ac_exclude_list): Don't generate test for
4776         AC_REQUIRE_SHELL_FN.
4778 2008-10-21  Eric Blake  <ebb9@byu.net>
4780         Improve wording related to automake and autotest.
4781         * doc/autoconf.texi (Making testsuite Scripts): Clarify wording in
4782         relation to automake.  Mention dependency on package.m4.
4783         Consolidate examples.  Define AUTOM4TE.
4784         * THANKS: Update.
4785         Reported by William Pursell.
4787 2008-10-21  Eric Blake  <ebb9@byu.net>
4789         Allow AS_VAR_SET_IF in shell lists.
4790         * lib/m4sugar/m4sh.m4 (AS_VAR_SET_IF): Allow continuation of
4791         line.
4792         * lib/autoconf/general.m4 (AC_CACHE_VAL): Supply newline no longer
4793         provided by AS_VAR_SET_IF.
4794         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Adjust
4795         clients.
4796         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
4797         * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
4799         Allow AS_VAR_IF in shell lists.
4800         * lib/m4sugar/m4sh.m4 (AS_VAR_IF): Allow continuation of line.
4801         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Adjust clients.
4802         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
4803         Likewise.
4804         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
4805         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD)
4806         (_AC_CHECK_HEADER_DIRENT): Likewise.
4807         * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
4808         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
4809         Likewise.
4810         * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
4812         Allow AS_CASE in shell lists.
4813         * lib/m4sugar/m4sh.m4 (AS_CASE): Always execute test, in case of
4814         side effects.  Allow continuation of script on same line as esac.
4815         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Adjust client.
4816         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
4817         * NEWS: Document the subtle change.
4819         Allow AS_IF in shell lists.
4820         * lib/m4sugar/m4sh.m4 (AS_IF): Always execute test, in case of
4821         side effects.  Allow continuation of script on same line as fi.
4822         (_AS_DETECT_BETTER_SHELL): Adjust clients.
4823         (AS_VAR_IF, AS_VAR_SET_IF): For now, supply newline no longer
4824         given by AS_IF.
4825         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Likewise.
4826         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Likewise.
4827         (AC_EGREP_CPP, _AC_RUN_IFELSE): Adjust client.
4828         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
4829         * doc/autoconf.texi (Common Shell Constructs) <AS_IF>: Fix typo.
4830         (Polymorphic Variables): Move mention of dnl to the only two
4831         AS_VAR functions that need it.
4833 2008-10-21  Paolo Bonzini  <bonzini@gnu.org>
4834         and Eric Blake  <ebb9@byu.net>
4836         Use a shell function for _AC_COMPILE_IFELSE.
4837         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE_BODY): New macro.
4838         (_AC_COMPILE_IFELSE): Use a shell function.
4840 2008-10-21  Eric Blake  <ebb9@byu.net>
4842         Use AS_VAR_APPEND.
4843         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS_ONCE): Use new macro.
4844         * lib/autoconf/general.m4 (_AC_INIT_PREPARE)
4845         (_AC_LIBOBJS_NORMALIZE): Likewise.
4846         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): Likewise.
4847         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS)
4848         (_AC_OUTPUT_CONFIG_STATUS, _AC_OUTPUT_MAIN_LOOP): Likewise.
4849         * lib/autotest/general.m4 (AT_INIT): Likewise.
4851         Add AS_VAR_APPEND.
4852         * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
4853         (_AS_VAR_APPEND_WORKS, AS_VAR_APPEND): New macros.
4854         (AS_PREPARE, _AS_PREPARE): Emit preparation.
4855         * tests/m4sh.at (AS@&t@_VAR_APPEND): New test.
4856         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_APPEND>:
4857         Document new macro.
4858         <AS_VAR_SET>: Mention ramification of `""` rules.
4859         * NEWS: Mention new macro.
4861 2008-10-21  Paolo Bonzini  <bonzini@gnu.org>
4862         and Eric Blake  <ebb9@byu.net>
4864         Use a shell function for _AC_PREPROC_IFELSE.
4865         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY): New macro.
4866         (_AC_PREPROC_IFELSE): Use a shell function.
4867         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Factor for faster execution.
4868         (AS_REQUIRE_SHELL_FN): Bypass AS_REQUIRE if function has already
4869         been provided.
4871 2008-10-21  Eric Blake  <ebb9@byu.net>
4873         Add banners to generated files.
4874         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Use m4_text_box for
4875         existing banner.
4876         (AS_INIT): Add new banners at strategic points.
4877         * lib/autoconf/general.m4 (AC_INIT): Alter banner location, and
4878         make consistent with other banners.
4879         * lib/autotest/general.m4 (AT_INIT): Make banners consistent.
4881 2008-10-20  Paolo Bonzini  <bonzini@gnu.org>
4883         Add AC_REQUIRE_SHELL_FN and the SHELL_FN diversion.
4884         * lib/autoconf/general.m4 (AC_REQUIRE_SHELL_FN): New.
4885         (m4_divert(SHELL_FN)): New.
4887 2008-10-20  Eric Blake  <ebb9@byu.net>
4889         Avoid unportable use of echo in testsuite.
4890         * tests/m4sh.at (AS@&t@_VAR basics): Use AS_ECHO, since string
4891         contains backslash.
4893 2008-10-18  Paolo Bonzini  <bonzini@gnu.org>
4895         Make sure that nested AS_REQUIRE do not lose the desired diversion.
4896         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Expand _m4_divert_desired before
4897         passing it to m4_divert_require, so that its content is not used
4898         anymore.
4899         * tests/m4sh.at (Nested AS_REQUIRE): New testcase.
4901 2008-10-18  Eric Blake  <ebb9@byu.net>
4903         Document bugs in { } handling.
4904         * doc/autoconf.texi (Limitations of Builtins): Mention bug on
4905         empty list.
4907         Fix some testsuite failures introduced two days ago.
4908         * tests/m4sh.at (Nested AS@&t@_REQUIRE_SHELL_FN)
4909         (AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require): Adjust to changed
4910         API.
4911         Reported by Ralf Wildenhues.
4913 2008-10-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4915         Show how to extract single substitutions from config.status.
4916         * doc/autoconf.texi (config.status Invocation): Show example
4917         using `--file=-'.
4919 2008-10-17  Eric Blake  <ebb9@byu.net>
4921         Add m4_curry.
4922         * lib/m4sugar/m4sugar.m4 (m4_curry, _m4_curry): New macros.
4923         * tests/m4sugar.at (m4@&t@_map_args): Rename...
4924         (m4@&t@_map_args and m4@&t@_curry): ...and add currying tests.
4925         * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
4926         currying as a way to add parameters.
4927         (Evaluation Macros) <m4_curry>: Document the new macro.
4928         * NEWS: Likewise.
4930         Improve suggested test filtering.
4931         * lib/m4sugar/m4sh.m4 (_AS_DETECT_SUGGESTED_PRUNE): New macro,
4932         extracted from...
4933         (_AS_DETECT_BETTER_SHELL): ...here, to use faster API.  No need to
4934         check for an empty required set.
4936         Add m4_set_map.
4937         * lib/m4sugar/m4sugar.m4 (m4_set_foreach): New macro.
4938         * tests/m4sugar.at (m4@&t@_set): Enhance test.
4939         * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
4940         Document it.
4941         * NEWS: Likewise.
4943         Document m4_map_args.
4944         * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair):
4945         Rename...
4946         (m4_map_args, m4_map_args_pair): ...to these names, and document.
4947         (m4_version_unletter): Use the interface.
4948         * lib/m4sugar/foreach.m4 (m4_map_args, m4_map_args_pair)
4949         (_m4_map_args_, _m4_map_args_pair_, _m4_map_args_pair_end):
4950         Perform same renames.
4951         * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Adjust callers.
4952         * tests/m4sugar.at (m4@&t@_map_args): New test.
4953         (recursion): Adjust caller.
4954         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Likewise.
4955         * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
4956         this interface.
4957         * NEWS: Mention the new macros.
4959 2008-10-17  Eric Blake  <ebb9@byu.net>
4961         Reduce vertical whitespace in configure.
4962         * lib/autoconf/general.m4 (AC_INIT): Silence newline output during
4963         m4 side effect initializations.
4964         * lib/m4sugar/m4sh.m4 (AS_PREPARE): Likewise.
4966 2008-10-17  Eric Blake  <ebb9@byu.net>
4968         Document AS_VAR interfaces.
4969         * doc/autoconf.texi (Programming in M4sh): M4sh is now prime-time.
4970         (Polymorphic Variables): New node.
4971         * NEWS: Update accordingly.
4973         Test AS_VAR interfaces.
4974         * tests/m4sh.at (AS@&t@_VAR): New test.
4975         * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Force expansion of
4976         _AS_TR_SH_PREPARE at top level, rather than argument collection.
4977         (AS_TR_SH): Support command substitution.
4979         Add AS_VAR_COPY.
4980         * lib/m4sugar/m4sh.m4 (AS_VAR_COPY): New macro.
4981         (AS_VAR_IF): Use it, instead of the broken AS_VAR_GET.
4982         * lib/autoconf/general.m4 (AC_CACHE_CHECK): Likewise.
4983         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
4984         * lib/autotest/general.m4 (_AT_FINISH): Likewise.
4986         Sort AS_VAR_* interfaces.
4987         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Reduce output to one line.
4988         (AS_VAR_TEST_SET, AS_VAR_SET, AS_VAR_SET_IF, AS_VAR_POPDEF): Sort,
4989         no code changes.
4991 2008-10-16  Eric Blake  <ebb9@byu.net>
4993         Allow comments before functions emitted by m4sh.
4994         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Add comment
4995         argument.  Supply closing comment, to ease readability.
4996         (_AS_MKDIR_P_PREPARE): Adjust caller.
4997         (_AS_UNSET_PREPARE): Add comment.
4999         Add AS_FUNCTION_DESCRIBE.
5000         * lib/m4sugar/m4sh.m4 (AS_FUNCTION_DESCRIBE): New macro.
5001         * lib/autotest/general.m4 (AT_INIT): Use it.
5003 2008-10-16  Eric Blake  <ebb9@byu.net>
5005         Speed up m4_qlen with caching.
5006         * lib/m4sugar/m4sugar.m4 (_m4_qlen): Renamed from old m4_qlen.
5007         (m4_qlen): Cache results for speed.
5009 2008-10-16  Paolo Bonzini  <bonzini@gnu.org>
5011         Add a testcase using more then one language.
5012         * tests/compile.at (Multiple languages): New test.
5014 2008-10-16  Paolo Bonzini  <bonzini@gnu.org>
5016         Fix Libtool's config.lt test.
5017         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Disable AS_REQUIRE while
5018         expanding it.
5020 2008-10-15  Eric Blake  <ebb9@byu.net>
5022         Break circular require chain in _AS_LINENO_PREPARE.
5023         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Ensure that logging is
5024         disabled when reporting LINENO failure, since logging requires
5025         LINENO.
5026         * doc/autoconf.texi (Initialization Macros): Recommend m4_pushdef,
5027         not m4_rename, since the latter is undocumented.
5028         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid
5029         m4_rename, as it does not yet handle pushdef stacks.
5030         Reported by Ralf Wildenhues.
5032 2008-10-15  Eric Blake  <ebb9@byu.net>
5034         Cleanups to previous patches.
5035         * doc/autoconf.texi (Portable Shell): Minor edits.
5036         (Limitations of Builtins): Touch up wording.
5037         * lib/m4sugar/m4sh.m4 (AS_LINENO_PUSH): Nuke trailing whitespace.
5038         (_AS_SHELL_SANITIZE): Wrap comments less than 80 columns.
5040 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
5042         Updates to shell portability documentation.
5043         * doc/autoconf.texi: Updates all references to "Portable Shell" and
5044         "Limitations of Builtins" to use three-argument commands.
5045         (Programming in M4sh): Document AS_ECHO, AS_ECHO_N, AS_UNSET.
5046         (Portable Shell): Move here discussion about "Where is the POSIX
5047         shell?"  Mention that M4sh provides a SVR2 shell and takes care
5048         of unsetting variables if necessary.  Talk about M4sh and not only
5049         Autoconf-generated scripts.
5050         (Special Shell Variables): Talk about M4sh and not only
5051         Autoconf-generated scripts.  Don't talk about things that Autoconf
5052         does not do.  Mention problems of $LINENO with shell functions.
5053         (Limitations of Builtins).  Mention AS_ECHO and AS_ECHO_N.  Move
5054         discussion of eval bugs before discussion on proper use of eval.
5055         Mention AS_IF.  Reword why not to use "shift N".  Mention "foo=;
5056         unset foo" trick.  Include M4sh code that unsets MAIL for Bash 2.01.
5057         * NEWS: Update list of documented M4sh macros.
5059 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
5061         Assume a (possibly buggy) `unset' is present after a
5062         `better shell' was found.
5063         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Use AS_UNSET.
5064         * lib/autoconf/programs.m4 (AC_PROG_SED): Use AS_UNSET.
5065         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Provide $as_unset as an
5066         alias for AS_UNSET, for backwards compatibility.
5067         (_AS_DETECT_BETTER_SHELL): Set BASH_ENV and ENV to /dev/null in case
5068         the shell does not support unset.
5069         (_AS_SHELL_SANITIZE): Work around Bash 2.01 bugs.  Unset BASH_ENV.
5070         (AS_INIT, _AS_PREPARE, AS_PREPARE): Call it.
5071         (AS_UNSET): Assume it is there but it might fail if the variable is
5072         not set.  Use it throughout instead of $as_unset.
5074 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
5076         Turn AS_SHELL_SANITIZE into a for-Libtool-only wrapper.
5077         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED): Remove
5078         m4_require of _AS_DETECT_BETTER_SHELL.
5079         (_AS_CLEANUP): Add it here.
5080         (_AS_DETECT_BETTER_SHELL): Just expand the test instead of appending it
5081         to _AS_CLEANUP.
5082         (_AS_SHELL_SANITIZE): New name of the old AS_SHELL_SANITIZE macro.
5083         (AS_SHELL_SANITIZE): New macro hacking around Libtool misuse.
5084         (AS_PREPARE): Use _AS_SHELL_SANITIZE.
5085         (AS_INIT): Add m4_provide of itself.
5087 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
5089         Use "test x$foo = xyes" to avoid upsetting Libtool's sh.test.
5090         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_SHELL_FN_WORK): Use
5091         "test x$foo = xyes".
5093 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
5095         Trim down the size of the better-shell test.
5096         * lib/m4sugar/m4sh.at (_AT_DETECT_BETTER_SHELL): Store the common
5097         snippets into shell variables.
5098         (_AS_RUN): Rewrite.
5100 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
5102         Support a stack of LINENO values for AS_MESSAGE.
5103         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): If defined, use $as_lineno as
5104         the line number emitted to the log file.
5105         (AS_LINENO_PUSH, AS_LINENO_POP): New.
5106         * tests/m4sh.at (LINENO Stack): New test.
5108 2008-10-14  Eric Blake  <ebb9@byu.net>
5110         Correct previous patch.
5111         * doc/autoconf.texi (Shell Functions): Bash obeys Posix, after
5112         all.
5114         Document shell function environment pitfall.
5115         * doc/autoconf.texi (Shell Functions): Document bugs in bash,
5116         Solaris /bin/sh.
5118 2008-10-14  Paolo Bonzini  <bonzini@gnu.org>
5120         Use m4_require to implement AS_REQUIRE.
5121         * lib/m4sugar/m4sugar.m4 (_m4_require_call): Accept a third argument.
5122         (m4_require): Pass it.
5123         (m4_divert_require): New.
5124         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Rewrite using m4_divert_require.
5125         Remove comment about differences with m4_require.
5126         * tests/m4sh.at (AS_REQUIRE_SHELL_FN and m4_require): Update to test
5127         the expected behavior.
5128         (Nested AS_REQUIRE_SHELL_FN): New test.
5130 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
5132         Test AS_LINENO_PREPARE.
5133         * tests/m4sh.at: Use documented AS_LINENO_PREPARE.
5135 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
5137         Test AS_ME_PREPARE.
5138         * tests/m4sh.at (as_me): New test.
5140 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
5142         Add and document AS_INIT_GENERATED.
5143         * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): New.
5144         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use it.
5145         * doc/autoconf.texi (Initialization macros): Document it.
5147 2008-10-13  Eric Blake  <ebb9@byu.net>
5149         Use consistent shell function style.
5150         * lib/m4sugar/m4sh.m4 (_AS_PREPARE, AS_REQUIRE_SHELL_FN)
5151         (_AS_SHELL_FN_WORK): Imitate GNU Coding Standards for C
5152         functions.
5154 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
5156         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Place names of
5157         contributors under m4 rather than shell comments.
5159 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
5161         * lib/m4sugar/m4sh.m4 (AS_ME_PREPARE, AS_LINENO_PREPARE): New.
5162         * doc/autoconf.texi (Initialization macros): Document them.
5163         (Portable Shell): Refer to AS_LINENO_PREPARE.
5164         * NEWS: Mention them.
5166         * bin/autoconf.as: Invoke AS_ME_PREPARE.
5167         * lib/autotest/general.m4: Likewise.
5169 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
5171         * doc/autoconf.texi (Programming in M4sh): Make its own chapter.
5173 2008-10-10  Eric Blake  <ebb9@byu.net>
5175         Fix _AS_MKDIR_P usage.
5176         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P): Correct documentation to
5177         match implementation.
5178         (_AS_PREPARE, _AS_MKDIR_P_PREPARE): Adjust callers.
5179         * doc/autoconf.texi (Programming in M4sh) <AS_MKDIR_P>: Tweak
5180         wording to better match behavior.
5182 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
5184         * doc/autoconf.texi: Be less wary of shell functions.
5185         * NEWS: Document the increased use of shell functions.
5187 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
5189         * m4sugar/m4sh.m4 (_AS_MKDIR_P): New, from AS_MKDIR_P.  Adjust
5190         meaning of as_mkdir_p to be `false' or a full `mkdir -p' command.
5191         (AS_MKDIR_P): Just dispatch to as_func_mkdir_p.
5192         (_AS_PREPARE): Define shell functions.
5193         (_AS_MKDIR_P_PREPARE): Set as_mkdir_p according to the above change.
5194         Define shell functions.
5196 2008-10-09  Eric Blake  <ebb9@byu.net>
5198         Only prepare $as_me if it will be used.
5199         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Avoid unconditional
5200         preparation.
5201         (_AS_ECHO_LOG): Depend on $LINENO preparation.
5202         (AS_MESSAGE): Depend on $as_me preparation.
5203         (AS_TMPDIR): Use AS_ERROR, rather than a hand-rolled copy.
5205 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
5207         * m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Delay setting as_me
5208         until the M4SH-INIT diversion using _AS_ME_PREPARE.
5209         (_AS_PREPARE): Invoke _AS_EXPR_PREPARE before _AS_BASENAME_PREPARE
5210         and _AS_DIRNAME_PREPARE, and _AS_BASENAME_PREPARE and _AS_ME_PREPARE
5211         before _AS_LINENO_PREPARE.
5212         (AS_PREPARE): Include all the AS_REQUIREs manually.
5213         (_AS_ME_PREPARE): New.
5214         (_AS_LINENO_PREPARE): Use m4_defun.
5216 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
5218         * m4sugar/m4sh.m4 (_AS_BASENAME_EXPR, _AS_DIRNAME_EXPR): Do not
5219         require _AS_EXPR_PREPARE.
5220         (_AS_BASENAME_PREPARE, _AS_DIRNAME_PREPARE): Do it here.
5221         (_AS_PREPARE): Add _AS_BASENAME_PREPARE.
5223 2008-10-08  Eric Blake  <ebb9@byu.net>
5225         Resync from gnulib.
5226         * cfg.mk (cvs_executable_files, cvs_files): Rewrite...
5227         (fetch): ...into new target.
5228         (executable-update): Delete, now that it is unused.
5229         * maint.mk (update, local_updates, cvs_files, gnulib_repo)
5230         (wget-update, cvs-update): Likewise.
5231         * HACKING (Update the foreign files): Document new procedure.
5232         * GNUmakefile: Resync from upstream, via new 'make fetch'.
5233         * build-aux/config.guess: Likewise.
5235 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
5237         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Remove.
5238         (AS_INIT): Do not call it.
5240 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
5242         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Expand
5243         _AS_UNSET_PREPARE in M4SH-SANITIZE.
5245 2008-10-08  Eric Blake  <ebb9@byu.net>
5247         Avoid repeating required shell tests in suggested set.
5248         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED):
5249         Use m4_set, rather than m4_expand_once/m4_append.
5250         (_AS_DETECT_SUGGESTED): Adjust to new storage layout, and filter
5251         required tests out of suggested tests.
5252         Reported by Paolo Bonzini.
5254 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
5256         Add m4sh keyword to all m4sh.at tests.
5257         * tests/m4sh.at: Add m4sh keyword to all tests.  Fix comment
5258         pastos.
5260 2008-10-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5262         Document AS_VERSION_COMPARE.
5263         * doc/autoconf.texi (Programming in M4sh): Document
5264         AS_VERSION_COMPARE.
5265         * NEWS: Update.
5267         Do not write to testsuite log fd before initialization.
5268         * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD, AT_JOB_FIFO_FD):
5269         Define fds only when initializing the log fd so early error
5270         messages do not try to write to it.
5271         * tests/autotest.at (Startup error messages): New test.
5272         * NEWS: Document this 2.63 regression.
5274 2008-10-07  Eric Blake  <ebb9@byu.net>
5276         Ensure _AS_CLEANUP is defined.
5277         * lib/m4sugar/m4sh.m4 (_AS_CLEANUP): Give initial definition.
5278         * tests/m4sh.at (AS@&t@_INIT cleanup): Expose the need for this.
5280         Improve m4sh maintainability.
5281         * lib/m4sugar/m4sh.m4: Sort macros for sanitizing the shell; no
5282         code change.
5284         Fix m4 quoting in previous patch.
5285         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Determine diversion
5286         name prior to invoking AS_REQUIRE.
5287         Reported by Ralf Wildenhues.
5289 2008-09-18  Paolo Bonzini  <bonzini@gnu.org>
5290         and Eric Blake  <ebb9@byu.net>
5292         Add a separate diversion for shell functions.
5293         * lib/m4sugar/m4sh.m4 (M4SH-INIT-FN): New diversion.
5294         (AS_REQUIRE): Accept diversion parameter.
5295         (AS_REQUIRE_SHELL_FN): Use it.
5297 2008-10-06  Eric Blake  <ebb9@byu.net>
5299         Add m4_default_quoted.
5300         * lib/m4sugar/m4sugar.m4 (m4_default_quoted): New macro.
5301         (m4_for, m4_expand_once, m4_text_wrap, m4_text_box): Use it.
5302         * doc/autoconf.texi (Conditional constructs): Document it.
5303         * NEWS: Likewise.
5305         Fix build with case-insensitive make, again.
5306         * Makefile.am (pkgdata_DATA): Protect by MAKE_CASE_SENSITIVE.
5307         Reported via Keith Marshall, originally by newthinker in
5308         <http://thread.gmane.org/gmane.comp.gnu.mingw.user/27725>.
5310 2008-10-06  Bruno Haible  <bruno@clisp.org>
5312         Warn about /usr/ucb on Solaris.
5313         * doc/install.texi (Particular Systems): Recommend putting
5314         /usr/ucb late in PATH, if at all.
5316 2008-10-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5318         Fix more testsuite hang corner cases.
5319         * lib/autotest/general.m4: Use the serial code path if no test
5320         is to be run.
5321         * tests/autotest.at (parallel test execution): Test -j and -jN
5322         with `-k notmatched'.
5324 2008-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5326         Fix hang with `testsuite -k notmatched'.
5327         * lib/autotest/general.m4: Do not reset $at_jobs if it is equal
5328         to one.  Fixes hang with `-k notmatched'.
5330 2008-10-02  Eric Blake  <ebb9@byu.net>
5332         Document more binary file portability traps.
5333         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Remind
5334         reader that NUL and sed don't always mix.
5335         <tr>: Mention Solaris /usr/ucb/tr bug with \0.
5337 2008-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5339         Implement parallel Autotest test execution: testsuite --jobs.
5340         * lib/autotest/general.m4 (AT_JOB_FIFO_FD): New macro.
5341         (AT_INIT): <at_jobs>: New variable.
5342         Accept -j, -jN, --jobs[=N], document them in --help output.
5343         Implement parallel driver loop using a FIFO, enabled with --jobs
5344         and if mkfifo works; otherwise, fall back to sequential loop.
5345         (AT_SETUP): Store, do not output summary progress line if
5346         parallel.
5347         * tests/autotest.at (parallel test execution, parallel truth)
5348         (parallel fallacy, parallel skip): New tests.
5349         * doc/autoconf.texi (testsuite Invocation): Document -j, --jobs,
5350         the mkfifo requirement, and that --errexit may cause concurrent
5351         jobs to finish.
5352         * NEWS: Update.
5354 2008-09-20  Eric Blake  <ebb9@byu.net>
5356         Fix sample isinf definition.
5357         * doc/autoconf.texi (Function Portability) <isinf>: Filter out NaN
5358         first.
5359         * THANKS: Update.
5360         Reported by David Cournapeau.
5362 2008-09-16  Eric Blake  <ebb9@byu.net>
5364         Fix Erlang regression, introduced 2006-11-17.
5365         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Avoid M4 comment
5366         caused by underquoting.
5367         * NEWS: Mention this fix.
5368         * THANKS: Update.
5369         Reported by BJ Terry.
5371 2008-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5373         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Improve a bit.
5375         Mention Solaris sh ':' redirection bug.
5376         * doc/autoconf.texi (File Descriptors): Redirecting ':'
5377         in a loop causes bogus optimization with Solaris sh.
5379 2008-09-10  Eric Blake  <ebb9@byu.net>
5381         Avoid testsuite bug when autom4te cache is disabled by user.
5382         * tests/tools.at (autoconf: forbidden tokens, basic): Enable
5383         cache, even if user normally disabled it.
5384         Reported by Bruno Haible.
5386         Avoid testsuite bug in presence of verbose config.site.
5387         * tests/base.at (Input/Output): Nullify config.site during test.
5388         Reported by Bob Friesenhahn.
5390 2008-09-09  Eric Blake  <ebb9@byu.net>
5392         Release Version 2.63.
5393         * NEWS: Mention the release.
5395         Formatting tweaks to the manual.
5396         * doc/autoconf.texi (Introduction, Systemology)
5397         (File System Conventions, Portable C and C++)
5398         (Floating Point Portability): Allow URLs to split as needed.
5399         (Indices): Add entries, to work around texinfo bug on indices that
5400         start too close to a page break.
5401         (Particular Functions): Mention ftello.
5402         (Introduction, Language Choice): Use @enddots at sentence end.
5404         Resync from gnulib.
5405         * cfg.mk (cvs_executable_files, cvs_files): Update list of files,
5406         although for now, they are still manually sync'd.
5407         * build-aux/gnupload: Update.
5408         * build-aux/config.sub: Likewise.
5409         * GNUmakefile: Likewise.
5411 2008-09-06  Eric Blake  <ebb9@byu.net>
5413         Mention that Automake already supports VPATH.
5414         * doc/autoconf.texi (Build Directories): Details in this section
5415         only apply to users avoiding automake.
5416         * THANKS: Update.
5417         Reported by Matej Tyc.
5419         Relax tone when warning about cross-compiler names.
5420         * lib/autoconf/programs.m4 (_AC_TOOL_WARN): Support cross-compiles
5421         with poorly named tools; the issue has been reported too many
5422         times in the last four years to pull support.
5423         * doc/autoconf.texi (Specifying Names, Generic Programs): Update
5424         documentation accordingly.
5425         * THANKS: Update.
5426         Reported by Josef Tran and others, wording suggested by Ralf
5427         Wildenhues.
5429 2008-09-01  Eric Blake  <ebb9@byu.net>
5431         Improve AC_C_BIGENDIAN.
5432         * doc/autoconf.texi (C Compiler) <AC_C_BIGENDIAN>: Mention that
5433         universal builds require a config header.
5434         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Enhance comments.  Check
5435         AH_HEADER at the last possible moment, so that users can use
5436         AC_CONFIG_HEADER after this macro.
5437         Reported by Stepan Kasal.
5439         Fix manual date information.
5440         * doc/autoconf.tex: UPDATED refers to the day the manual was
5441         built, not the release date of Autoconf.
5442         Based on a bison patch by Akim Demaille.
5444 2008-08-27  Eric Blake  <ebb9@byu.net>
5446         Fix off-by-one bug in _m4_shiftn.
5447         * lib/m4sugar/foreach.m4 (_m4_shiftn): Handle case when shifting
5448         all arguments.
5449         * tests/m4sugar.at (M4 loops): Test it.
5450         Reported by Akim Demaille.
5452 2008-08-26  Eric Blake  <ebb9@byu.net>
5454         Improve INSTALL formatting.
5455         * doc/install.texi [!autoconf]: Ensure first paragraphs are
5456         indented like all others in a plain text rendering.
5457         * Makefile.am ($(srcdir)/INSTALL): Ensure plaintext formatting.
5458         Reported by Bruno Haible.
5460 2008-08-26  Stepan Kasal  <skasal@redhat.com>
5462         Check for case sensitive make.
5463         * m4/make-check.m4 (AC_PROG_MAKE_CASE_SENSITIVE): New macro,...
5464         * configure.ac: ... called here.
5465         * Makefile.am ($(abs_srcdir)/INSTALL, INSTALL): Return to...
5466         ($(srcdir)/INSTALL): ...this, but enclose the rule in
5467         "if MAKE_CASE_SENSITIVE".
5469 2008-08-26  Eric Blake  <ebb9@byu.net>
5471         Update invocation documentation.
5472         * doc/autoconf.texi (autoscan Invocation): Mention --debug.
5473         (autoreconf Invocation): Mention -v.
5474         (autom4te Invocation): Tie --freeze to -F, not -f.
5475         (autoupdate Invocation): Mention --prepend-include.
5476         * doc/install.texi (configure Invocation): Mention --help=short,
5477         --help=recursive, -n/--no-create, --prefix.  Avoid TABs.
5478         * bin/autoscan.in ($help): Omit space before `...'.
5479         * bin/ifnames.in ($help): Likewise.
5480         * bin/autoconf.as (Usage): Likewise.
5481         * bin/autoreconf.in ($help): Likewise.
5482         * bin/autoheader.in ($help): Likewise.
5483         * bin/autom4te.in ($help): Likewise.
5484         * bin/autoupdate.in ($help): Likewise.
5485         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use
5486         `[OPTION]...', rather than `[OPTIONS]'.  Mention --silent.  Indent
5487         --file correctly.
5489         Don't let frozen __m4_version__ break downgrade to m4 1.4.x.
5490         * bin/autom4te.in: Adjust comments, now that we rely on 1.4.5+.
5491         (files_to_options): Avoid inheriting __m4_version__ from frozen
5492         file if current M4 does not support it.
5494 2008-08-25  Eric Blake  <ebb9@byu.net>
5496         Adjust to recent m4 1.6 change to support m4_debugmode(d).
5497         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Move
5498         freeze-time decision of using faster 1.6 implementation...
5499         (m4_init): ...to a runtime decision, and add use of new debugmode
5500         flag.
5502 2008-08-22  Peter O'Gorman  <pogma@thewrittenword.com>
5504         Limit AC_C_BIGENDIAN univeral checks to Mac OS X.
5505         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Limit the check to
5506         __APPLE_CC__ with possible -arch flags.
5507         * NEWS: Document it.
5509 2008-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5511         * NEWS: Fix typo.
5513 2008-08-22  Eric Blake  <ebb9@byu.net>
5515         * TODO: Add an item for additional m4sugar looping constructs.
5516         Suggested by Ralf Wildenhues.
5518         Add reminder to keep dual implementations in sync.
5519         * lib/m4sugar/m4sugar.m4: Add comments.
5520         * lib/m4sugar/foreach.m4: Likewise.
5521         Suggested by Ralf Wildenhues.
5523 2008-08-22  Peter Eisentraut  <peter_e@gmx.net>  (tiny change)
5525         Format warning and error messages to match GCS.
5526         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK)
5527         (_AC_INIT_PARSE_ARGS, _AC_CACHE_DUMP): Start warning and error
5528         messages with a lowercase letter, end them without punctuation.
5529         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Likewise.
5530         * lib/autoconf/libs.m4 (AC_PATH_X): Likewise.
5531         * lib/autoconf/status.m4 (AC_OUTPUT, _AC_OUTPUT_MAIN_LOOP):
5532         Likewise.
5533         * tests/fortran.at (GNU Fortran): Likewise.
5534         * tests/torture.at (Deep Package): Likewise.
5536 2008-08-21  Eric Blake  <ebb9@byu.net>
5538         Avoid extra side effects in m4sugar list expansion.
5539         * lib/m4sugar/m4sugar.m4 (m4_mapall_sep, m4_list_cmp): Wrap
5540         around...
5541         (_m4_mapall_sep, _m4_list_cmp_raw): ...new helpers, to avoid
5542         duplicate side effects.
5543         (m4_version_compare): Adjust caller.
5544         * lib/m4sugar/foreach.m4 (m4_list_cmp): Rename...
5545         (_m4_list_cmp_raw): ...to match m4sugar.
5546         * doc/autoconf.texi (Looping constructs): Document the behavior of
5547         side effects.
5548         * tests/m4sugar.at (M4 loops, m4@&t@_map, m4@&t@_version_compare):
5549         Ensure only one side effect.
5550         (recursion): Fix test typo.
5551         Reported by Ralf Wildenhues.
5553 2008-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5555         * TODO: Add item for compiler default flags.
5556         Suggested by Bruno Haible.
5558         * tests/m4sh.at (AS_IF and AS_CASE): Set the expansion limit
5559         back to 1000.
5561 2008-08-21  Eric Blake  <ebb9@byu.net>
5563         Formatting improvements.
5564         * doc/autoconf.texi: Use @file and @command, rather than @code,
5565         where appropriate.
5567         Document another make bug.
5568         * doc/autoconf.texi (The Make Macro SHELL): Mention bug in BSD
5569         make, GNU make <= 3.80.
5571         Tweak wording about SHELL in Makefile.
5572         * doc/autoconf.texi (The Make Macro SHELL): Stronger wording on
5573         the importance of proper SHELL settings.
5574         Reported by Bruno Haible, in
5575         http://lists.gnu.org/archive/html/bug-libtool/2008-04/msg00029.html.
5577 2008-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5579         Avoid timestamp races for updated input.
5580         * tests/m4sh.at (AS_IF and AS_CASE): Use `autom4te --force' for
5581         second script.
5582         * tests/tools.at (autotools and whitespace in file names): Add
5583         --force for repeated invocations.
5585 2008-08-20  Bruno Haible  <bruno@clisp.org>
5587         Add section to INSTALL about particular systems.
5588         * doc/install.texi (Particular systems): New node.
5589         * doc/autoconf.texi: Adjust menus.
5591 2008-08-19  Bruno Haible  <bruno@clisp.org>
5592         and Peter O'Gorman  <peter@pogma.com>
5594         Mention universal binaries in INSTALL.
5595         * doc/install.texi (Compiling For Multiple Architectures): Explain
5596         how to create universal binaries on MacOS X.
5598 2008-08-19  Jim Meyering  <jim@meyering.net>
5599             Eric Blake  <ebb9@byu.net>
5600             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5602         Avoid shell parse errors after interrupt due to empty ``.
5603         * doc/autoconf.texi (Shell Substitutions): Document the issue.
5604         * lib/m4sugar/m4sh.m4 (AS_VAR_IF): New function.
5605         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Use it in place of
5606         "test AS_VAR_GET([...]) = yes"
5607         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL): Likewise.
5608         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Likewise.
5609         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD): Likewise.
5610         (_AC_CHECK_HEADER_DIRENT): Likewise.
5611         * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
5612         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
5613         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use
5614         temporary variable to work around the issue.
5615         * tests/foreign.at (Libtool): Quote result of command
5616         substitution.
5618 2008-08-18  Eric Blake  <ebb9@byu.net>
5620         Test m4_transform without tickling shell bugs.
5621         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Relax test to
5622         something more manageable.
5623         * tests/m4sugar.at (recursion): Move stress test of
5624         m4_transform_pair here.
5625         Reported by Ralf Wildenhues.
5627         Let 'git diff' give better context for doc updates.
5628         * .gitattributes (*.texi*): Add new entry.
5629         * README-hacking: Mention how to use it.
5630         Inspired by a coreutils patch by Jim Meyering.
5632 2008-08-15  Eric Blake  <ebb9@byu.net>
5634         Fix m4_map regression from 2007-10-16.
5635         * lib/m4sugar/m4sugar.m4 (_m4_apply): New macro.
5636         (m4_map): Ignore empty sublists.  For a list consisting of only an
5637         empty sublist, this restores 2.61 behavior of being a no-op.
5638         (m4_map_sep): Likewise, and expand separator.
5639         (m4_mapall, m4_mapall_sep): New macros, to regain 2.62 behavior.
5640         (_m4_map): Rewrite, to be common base for all four variants.
5641         * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new prototype.
5642         * tests/m4sugar.at (m4@&t@_map): Add tests.
5643         * doc/autoconf.texi (Looping constructs) <m4_map>: Document new
5644         macros, and mention ramifications of expanded separator.
5645         * NEWS: Mention the change.
5647 2008-08-14  Eric Blake  <ebb9@byu.net>
5649         Implement m4_transform_pair, to speed up AS_IF.
5650         * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair): New
5651         macros, undocumented for now.
5652         * lib/m4sugar/foreach.m4 (m4_transform, m4_transform_pair): Also
5653         the m4 1.4.x counterparts.
5654         * lib/m4sugar/m4sh.m4 (AS_IF, AS_CASE): Use it.
5655         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Test it.
5657 2008-08-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5659         * lib/autoconf/programs.m4 (AC_PATH_TARGET_TOOL)
5660         (AC_CHECK_TARGET_TOOL, AC_CHECK_TARGET_TOOLS): Require, do not
5661         warn about previous AC_CANONICAL_TARGET.
5662         (AC_CHECK_TARGET_TOOL): Add missing `$' making the macro
5663         unusable in the non-cross-compiling case.
5664         * NEWS, THANKS: Update.
5665         Report by Dave Erickson.
5667 2008-08-12  Eric Blake  <ebb9@byu.net>
5669         Optimize m4_bmatch.
5670         * lib/m4sugar/foreach.m4 (m4_bmatch): Provide linear
5671         implementation for m4 1.4.x.
5672         * tests/m4sugar.at (m4@&t@_bmatch): New test.
5673         (recursion): Test the linear nature.
5674         * NEWS: Document the fix.
5676         Fix m4_cond corner case.
5677         * lib/m4sugar/foreach.m4 (_m4_cond): Ensure alternate
5678         implementation allows concatenation with subsequent text.
5679         * tests/m4sugar.at (m4@&t@_cond): Enhance test.
5681         Add test for m4_cond.
5682         * tests/m4sugar.at (m4@&t@_cond): New test.
5683         Reported by Ralf Wildenhues.
5685 2008-08-06  Eric Blake  <ebb9@byu.net>
5687         Fix autoheader 2.62 regression on AC_DEFINE([__EXTENSIONS__]).
5688         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Use a
5689         unique key for the AH_VERBATIM.
5690         * tests/c.at (AC_USE_SYSTEM_EXTENSIONS): New test.
5691         * NEWS: Mention the fix.
5692         Reported by Andreas Schwab, analyzed by Stepan Kasal.
5694         Add linear m4_cond for m4 1.4.x.
5695         * lib/m4sugar/m4sugar.m4 (m4_cond): Split into...
5696         (_m4_cond): ...this, for fewer macros per iteration.
5697         * lib/m4sugar/foreach.m4 (_m4_cond): New implementation.
5698         * tests/m4sugar.at (recursion): Test it.
5699         * NEWS: Document the linear guarantee.
5701         Speed up diversion handling.
5702         * lib/m4sugar/m4sugar.m4 (m4_divert, m4_divert_push)
5703         (m4_divert_pop, m4_divert_text): Avoid dnl for fewer macro
5704         expansions.
5706         AC_C_CHAR_UNSIGNED is not strictly necessary.
5707         * doc/autoconf.texi (C Compiler) <AC_C_CHAR_UNSIGNED>: Mention a
5708         portable alternative to this macro.
5709         * THANKS: Update.
5710         Reported by Hallvard B Furuseth.
5712         Update some files from upstream.
5713         * GNUmakefile: Update.
5714         * build-aux/announce-gen: Likewise.
5715         * build-aux/config.guess: Likewise.
5716         * build-aux/config.sub: Likewise.
5717         * build-aux/git-version-gen: Likewise.
5718         * build-aux/texinfo.tex: Likewise.
5719         * build-aux/vc-list-files: Likewise.
5720         * doc/make-stds.texi: Likewise.
5721         * doc/standards.texi: Likewise.
5723 2008-08-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5725         Fix AC_CONFIG_FILES([$var]) 2.62 regression.
5726         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Flatten
5727         whitespace in $ac_config_files and $ac_config_headers.
5728         * tests/torture.at (Parameterized AC_CONFIG_FILES): New test.
5729         Report by Andreas Schwab and Per Øyvind Karlsen.
5730         * THANKS: Update.
5732 2008-07-30  Eric Blake  <ebb9@byu.net>
5734         Fix bugs in previous version of m4_bpatsubsts.
5735         * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): Don't expand $1, and
5736         allow concatenation with subsequent text.
5737         * tests/m4sugar.at (m4@&t@_bpatsubsts): Enhance test.
5739 2008-07-29  Eric Blake  <ebb9@byu.net>
5741         Add linear m4_bpatsubsts for m4 1.4.x.
5742         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Match documentation
5743         about anchors, even for only one substitution.
5744         * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): New implementation.
5745         * doc/autoconf.texi (Conditional constructs) <m4_bpatsubsts>:
5746         Clarify behavior with regard to quoting.
5747         * tests/m4sugar.at (recursion): Test scaling of m4_bpatsubsts.
5748         (m4@&t@_bpatsubsts): New test.
5749         * NEWS: Document the linear guarantee.
5751         Tweak m4_do semantics.
5752         * lib/m4sugar/m4sugar.m4 (m4_do): Don't concat final argument with
5753         subsequent text.
5754         * lib/m4sugar/foreach.m4 (m4_do): Don't concat intermediate
5755         arguments, and avoid infinite loop.
5756         * doc/autoconf.texi (Evaluation Macros) <m4_do>: Document the
5757         behavior.
5758         * tests/m4sugar.at (m4@&t@_do): New test.
5760         Optimize m4_for.
5761         * lib/m4sugar/m4sugar.m4 (m4_for): Use fewer macros.
5762         (_m4_for): Take additional parameter, for fewer m4_indir calls.
5763         * lib/m4sugar/foreach.m4 (_m4_foreach, _m4_shiftn, m4_do)
5764         (m4_reverse, _m4_list_pad, _m4_list_cmp): Adjust all callers.
5765         * doc/autoconf.texi (Looping constructs) <m4_for>: Document subtle
5766         semantic change caused by the optimization.
5767         * tests/m4sugar.at (M4 loops): Test the new semantics.
5769         One more m4_list_cmp tweak.
5770         * lib/m4sugar/m4sugar.m4 (_m4_list_cmp_1): Don't defer shift.
5771         * lib/m4sugar/foreach.m4 (m4_list_cmp): Fix comment.
5772         * tests/m4sugar.at (recursion): Test both directions of list
5773         disparity.
5775         Add m4_reverse, and improve m4_list_cmp.
5776         * lib/m4sugar/m4sugar.m4 (m4_reverse): New macro.
5777         (m4_list_cmp): Rewrite to give linear behavior with M4 1.6 on an
5778         m4_reverse'd list.
5779         * lib/m4sugar/foreach.m4 (m4_reverse): Add the M4 1.4.x
5780         counterpart.
5781         * tests/m4sugar.at (recursion): Test it.
5782         * doc/autoconf.texi (Evaluation Macros) <m4_reverse>: Document
5783         it.
5784         (Text processing Macros) <m4_append>: Cross-reference to m4_set.
5785         * NEWS: Mention new macro.
5787 2008-07-28  Eric Blake  <ebb9@byu.net>
5789         Avoid _m4_shiftn for m4 1.6 speedup.
5790         * lib/m4sugar/m4sugar.m4 (m4_foreach, _m4_foreach, m4_map)
5791         (_m4_map, m4_map_sep): Rewrite recursion to use one less m4_if.
5792         * lib/m4sugar/foreach.m4 (_m4_map): Accomodate changed signature.
5794         Implement O(n) unique element set creation.
5795         * lib/m4sugar/m4sugar.m4 (m4_set_add, m4_set_add_all)
5796         (m4_set_contains, m4_set_contents, m4_set_delete)
5797         (m4_set_difference, m4_set_dump, m4_set_empty, m4_set_foreach)
5798         (m4_set_intersection, m4_set_list, m4_set_listc, m4_set_remove)
5799         (m4_set_size, m4_set_union): New macros.
5800         * lib/m4sugar/foreach.m4 (m4_set_add_all): Add O(n) fallback for
5801         m4 1.4.x.
5802         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, AC_SUBST): Use
5803         new m4_set API for the set most likely to be large.
5804         * doc/autoconf.texi (Set manipulation Macros): New node.
5805         * NEWS: Mention new macros.
5806         * tests/m4sugar.at (m4@&t@_set): New test.
5808 2008-07-25  Eric Blake  <ebb9@byu.net>
5810         Avoid infinite aclocal loop.
5811         * lib/m4sugar/m4sugar.m4 (m4_init): Bypass m4_include tracing, so
5812         that aclocal doesn't insist on finding m4sugar/foreach.m4.
5814         Provide O(n) replacement macros for M4 1.4.x.
5815         * lib/m4sugar/foreach.m4: New file.
5816         (m4_foreach, m4_case, _m4_shiftn, m4_do, m4_dquote_elt, _m4_map)
5817         (m4_join, m4_joinall, m4_list_cmp, _m4_minmax): Replace m4sugar
5818         macros based on $@ recursion [fast on M4 1.6, but quadratic on M4
5819         1.4.x] with versions based on m4_for/m4_foreach [slow on 1.6, but
5820         linear on 1.4.x].
5821         * lib/m4sugar/m4sugar.m4 (m4_init): Dynamically load new file if
5822         older M4 is assumed.
5823         (m4_map_sep): Optimize.
5824         (m4_max, m4_min): Refactor, by adding...
5825         (_m4_max, _m4_min, _m4_minmax): ...more efficient helpers.
5826         (m4_defn, m4_popdef, m4_undefine): Use foreach recursion.
5827         * lib/m4sugar/Makefile.am (dist_m4sugarlib_DATA): Distribute new
5828         file.
5829         * tests/m4sugar.at (M4 loops): Add a stress test that takes
5830         forever if m4_foreach and friends are quadratic.
5831         * NEWS: Mention this.
5833 2008-07-21  Eric Blake  <ebb9@byu.net>
5835         Ignore undefined macros, necessary with m4 1.6.
5836         * bin/autoupdate.in (_au___undefine): New macro,...
5837         (_au__undefine): ...wrapped by ifdef to silence m4 warnings.
5838         Reported by Ralf Wildenhues.
5840         Resync with gnulib.
5841         * GNUmakefile: Grab from upstream, to fix issue where 'make
5842         install' would allow installation of stale version string.
5844 2008-07-19  Eric Blake  <ebb9@byu.net>
5846         Support multiple arguments to m4_defn, m4_popdef, and m4_undefine.
5847         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Loop
5848         through all variables, per POSIX and newer m4.
5849         (_m4_text_wrap): Exploit the looping capabilities.
5850         * tests/m4sugar.at (m4@&t@_defn): Test this.
5851         * NEWS: Document it.
5852         * doc/autoconf.texi (Redefined M4 Macros) <m4_defn, m4_popdef>
5853         <m4_undefine>: Likewise.
5855         Reduce overhead of m4_builtin([defn]).
5856         * lib/m4sugar/m4sugar.m4 (_m4_defn, _m4_popdef, _m4_undefine): New
5857         internal macros, which are slightly more efficient than
5858         m4_builtin([defn]) and company.
5859         (m4_defn, m4_popdef, m4_undefine, m4_warn, m4_ifset)
5860         (_m4_dumpdefs_up, _m4_dumpdefs_down, _m4_wrap, m4_for)
5861         (_m4_divert_n_stack, m4_divert_pop, m4_expansion_stack_push)
5862         (m4_expansion_stack_dump, _m4_defun_pro, _m4_defun_epi)
5863         (_m4_defun_epi_outer, _m4_require_call, m4_combine, m4_append)
5864         (_m4_append_uniq, m4_append_uniq_w, _m4_text_wrap, m4_text_box)
5865         (m4_version_prereq): Use them.
5867         Use warnings from m4 when available.
5868         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Don't
5869         define slower wrapper if m4 will warn on our behalf; key off of
5870         __m4_version__, added alongside the new warnings in m4 1.6.
5871         * tests/m4sugar.at (m4@&t@_defn): New test.
5873 2008-07-18  Eric Blake  <ebb9@byu.net>
5875         Add m4_joinall.
5876         * lib/m4sugar/m4sugar.m4 (m4_joinall, _m4_joinall): New macros.
5877         * tests/m4sugar.at (m4@&t@_join): Test them.
5878         * doc/autoconf.texi (Text processing Macros) <m4_join>: Document
5879         m4_joinall.
5880         * NEWS: Likewise.
5882 2008-07-17  Stepan Kasal  <skasal@redhat.com>
5883         and Eric Blake  <ebb9@byu.net>
5885         Improve documentation of config.h.in template rules.
5886         * doc/autoconf.texi (Header Templates): Mention rules on comments
5887         and whitespace, and that the user cannot rely on #undef to survive
5888         through config.status.
5890 2008-07-16  Eric Blake  <ebb9@byu.net>
5892         Revert m4_prepend; it is less efficient, and unused by bison.
5893         * lib/m4sugar/m4sugar.m4 (m4_prepend, m4_prepend_uniq)
5894         (m4_prepend_uniq_w): Delete addition from 2008-07-11.
5895         (_m4_grow_uniq_1): Rename back...
5896         (_m4_append_uniq): ...to this.
5897         * NEWS: Revert NEWS blurb.
5898         * doc/autoconf.texi (Text processing Macros) <m4_prepend>: Delete.
5899         * tests/m4sugar.at (m4@&t@_prepend): Delete.
5901 2008-07-15  Eric Blake  <ebb9@byu.net>
5903         Avoid failure if version.m4 is omitted but m4_PACKAGE_* unused.
5904         * lib/m4sugar/m4sugar.m4 (m4_version_compare): Provide alternate
5905         definition for non-Autoconf clients of m4sugar.
5907 2008-07-14  Eric Blake  <ebb9@byu.net>
5909         Tighten bound of potential speed of m4_append.
5910         * doc/autoconf.texi (Text processing Macros) <m4_append>
5911         <m4_prepend>: If m4 is fixed, m4_append can be linear rather than
5912         O(n log n).
5913         * lib/m4sugar/m4sugar.m4 (m4_append, m4_append_uniq): Fix comments.
5914         Analysis by Bruno Haible.
5916 2008-07-11  Eric Blake  <ebb9@byu.net>
5918         Inherit improvements from bison's fork of m4sugar.
5919         * lib/m4sugar/m4sugar.m4 (m4_PACKAGE_VERSION): Ignore failure to
5920         find version.texi, since bison does not provide it.
5921         (m4_prepend): Add new macro, from bison.
5922         (m4_prepend_uniq, m4_prepend_uniq_w): Add new macros, for
5923         completeness.
5924         (_m4_append_uniq): Rename...
5925         (_m4_grow_uniq_1): ...to this to share implementation, and
5926         optimize initial assignment.
5927         (m4_append_uniq_w): Adjust caller.
5928         * NEWS: Document new macros.
5929         * doc/autoconf.texi (Text processing Macros) <m4_append>: Mention
5930         speed consideration.
5931         <m4_prepend>: Document the new prepend variants.
5932         * tests/m4sugar.at (m4@&t@_prepend): New test.
5934         Work around M4 1.6 warning on undefined macros.
5935         * lib/m4sugar/m4sugar.m4 (changeword, symbols): Don't rename if
5936         not already available as builtins.
5938 2008-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5940         * doc/autoconf.texi (@dvar): Remove trailing newline.
5941         (@ovar): Likewise.  Fix macro documentation.
5943 2008-07-02  Stepan Kasal  <skasal@redhat.com>
5945         Add quotes to the header of autoscan-generated source.
5946         * bin/autoscan.in: Add quotes to AC_PREREQ and AC_INIT.
5948 2008-06-28  Andreas Schwab  <schwab@suse.de>
5950         * doc/autoconf.texi (autoscan Invocation): Fix spacing.
5951         (autoconf Invocation): Likewise.
5952         (autoreconf Invocation): Likewise.
5953         (autoheader Invocation): Likewise.
5954         (autom4te Invocation): Likewise.
5956 2008-06-19  Eric Blake  <ebb9@byu.net>
5958         Add comment explaining recent patch.
5959         * lib/autotest/general.m4 (AT_INIT) <at_pass_list>: Explain choice
5960         of * vs. ? globbing.
5962 2008-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5964         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not warn when not
5965         linking a file to itself.
5966         Report by Bruno Haible.
5968 2008-06-19  Eric Blake  <ebb9@byu.net>
5970         Resync with gnulib.
5971         * GNUmakefile: Grab from upstream, to fix VPATH 'make dist' bug.
5972         Reported by Stepan Kasal.
5974 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5976         Reorganize autotest files, factorize for parallel execution.
5977         * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD): Move definition
5978         earlier in the file.
5979         (AT_INIT): Create line number cache in
5980         $at_suite_dir/at-source-lines.
5981         <at_helper_dir>: New directory at-groups below $at_suite_dir.
5982         Add comment explaining the new directory structure.
5983         (at_func_group_prepare, at_func_group_postprocess): New shell
5984         functions to factorize per-test group work.  Keep the actual
5985         test execution outside of a shell function in order to avoid
5986         zsh 4.x exit status bugs.
5987         <at_check_line_file, at_status_file, at_stdout, at_stder1>
5988         <at_stderr, at_test_source>: Turn these into per-group files
5989         below $at_helper_dir.  Also store test results there in files
5990         named pass, fail, xpass, xfail, skip.  Let the parent collect
5991         results from $at_helper_dir.  Adjust summary statistics
5992         computation and result output.
5994 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5996         Fix '#undef variable /* comment */' transform in config headers.
5997         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): For
5998         undefined preprocessor macros that are followed by a comment
5999         in the header template, do not create nested comments in the
6000         output.
6001         * tests/torture.at (@%:@define header templates): Extend test.
6002         * NEWS: Update.
6003         Report by Karsten Hopp <karsten@redhat.com>.
6005 2008-06-09  Eric Blake  <ebb9@byu.net>
6007         Mark AC_TYPE_SIGNAL as obsolete.
6008         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Switch to AU_DEFUN.
6009         * doc/autoconf.texi (Function Portability): Update documentation.
6010         (Particular Types): Move AC_TYPE_SIGNAL...
6011         (Obsolete Macros): ...here, and mention why.
6012         * NEWS: Mention the change.
6014         Allow lib64 as a default X library location.
6015         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Add lib64.
6016         * NEWS: Mention the change.
6017         * THANKS: Update.
6018         Reported by Brad Walker.
6020 2008-06-05  Eric Blake  <ebb9@byu.net>
6022         Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
6023         * lib/autotest/general.m4 (AT_KEYWORDS): Expand argument prior to
6024         converting it to lower case.
6025         * tests/autotest.at (Keywords and ranges): Test this.
6026         * NEWS: Document the fix.
6027         * THANKS: Update.
6028         Reported via Karsten Hopp, by Jochen Schmitt in
6029         https://bugzilla.redhat.com/show_bug.cgi?id=449973
6031 2008-06-03  Eric Blake  <ebb9@byu.net>
6033         Fix 'make dist' regression from 2008-05-08.
6034         * Makefile.am (INSTALL): Add rule, to accomodate 'make dist' after
6035         GNUmakefile's _autoconf rule removes INSTALL.
6037 2008-05-27  Eric Blake  <ebb9@byu.net>
6039         Document Solaris /bin/sh redirection pitfall.
6040         * doc/autoconf.texi (File Descriptors): Mention redirection bug.
6042 2008-05-14  Eric Blake  <ebb9@byu.net>
6044         Improve documentation of ! issues.
6045         * doc/autoconf.texi (Limitations of Builtins) <!>: Touch up.
6046         Reported by Noah Misch.
6048         Document some FreeBSD shell bugs.
6049         * doc/autoconf.texi (Limitations of Builtins) <!>: Mention ! issue
6050         in compound pipe commands.
6051         <export>: Mention difference of exporting an undefined variable.
6052         (Shell Functions): Mention loss of $? in entry to shell functions.
6053         Extracted from the git mailing list.
6055 2008-05-13  Stepan Kasal  <kasal@ucw.cz>
6057         Work around MSYS and Cygwin bugs when dealing with trailing space.
6058         * tests/atlocal.in (func_sanitize_dir_name): Let atlocal succeed,
6059         even when platform bugs are tickled.
6060         Reported by Keith Marshall and Eric Blake.
6062 2008-05-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6064         Let AC_MSG_FAILURE report pwd.
6065         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE):
6066         Output $ac_pwd along with fatal failure.
6067         * tests/torture.at (Deep Package): Extend test.
6068         Reported numerous times against GCC, and probably other packages.
6070 2008-05-12  Eric Blake  <ebb9@byu.net>
6072         Enforce --help and --version compliance.
6073         * configure.ac (AM_INIT_AUTOMAKE): Add std-options option.
6075 2008-05-08  Keith Marshall  <keithmarshall@users.sourceforge.net>  (tiny change)
6077         Avoid case-insensitive `make install' vs. `INSTALL' conflict.
6078         * Makefile.am ($(srcdir)/INSTALL): Replace all references...
6079         ($(abs_srcdir)/INSTALL): ...with this.
6081 2008-05-06  Eric Blake  <ebb9@byu.net>
6083         Fix typo.
6084         * doc/autoconf.texi (Shell Substitutions): Drop at_ prefix.
6086         Avoid overfull \hbox.
6087         * doc/autoconf.texi (Versioning): Reword to fit line size.
6089         Document $(( )) pitfalls.
6090         * doc/autoconf.texi (Shell Substitutions): Mention octal
6091         vs. decimal.  Mention autotest's at_func_arith.
6093         Improve behavior of './testsuite 01'.
6094         * lib/autotest/general.m4 (AT_INIT) <at_func_validate_ranges>:
6095         Alter usage to eval its arguments, in order to normalize away
6096         leading zero.  All callers updated.
6097         * tests/autotest.at (Keywords and ranges): Test range
6098         normalization with leading 0.
6100 2008-04-26  Eric Blake  <ebb9@byu.net>
6102         Mention Solaris /usr/ucb/tr pitfall.
6103         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Add section.
6104         Reported by Bruno Haible and Jim Meyering.
6106 2008-04-24  Eric Blake  <ebb9@byu.net>
6108         Mention m4sugar's internal quote strings.
6109         * doc/autoconf.texi (Quadrigraphs): Mention alternate quote used
6110         in m4sugar, and how to still output it literally.
6111         * tests/m4sugar.at (m4@&t@_split): And test it.
6112         Reported by Joel E. Denny.
6114 2008-04-23  Eric Blake  <ebb9@byu.net>
6116         Allow unbalanced () in m4_expand.
6117         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Use more complex
6118         quotes.
6119         (m4_noquote, _m4_split): Use consistent complex quote.
6120         * tests/autotest.at (Left paren, Right paren): Test this.
6121         (Parentheses): Ensure new quadrigraphs still work.
6122         (AT_CHECK_AT_TITLE_CHAR): All title char tests exercise m4_expand.
6123         * NEWS: Mention the fix.
6124         * doc/autoconf.texi (Quadrigraphs): Revert mention of macros that
6125         require quadrigraphs for ().
6126         (Evaluation Macros) <m4_expand>: Relax the restriction against
6127         unbalanced ().
6128         (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
6129         (Writing Testsuites) <AT_SETUP>: Likewise.
6130         Reported by Joel E. Denny, fix suggested by Noah Misch.
6132 2008-04-22  Eric Blake  <ebb9@byu.net>
6134         Support unbalanced () in AT_SETUP by adding two new quadrigraphs.
6135         * bin/autom4te.in (handle_output): Substitute @{:@ and @:}@.
6136         (handle_traces): Likewise.
6137         * lib/m4sugar/m4sugar.m4 (m4_qlen): Account for new quadrigraphs.
6138         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Add new tests.
6139         * doc/autoconf.texi (Quadrigraphs): Document them.
6140         (Evaluation Macros) <m4_expand>: Enhance documentation.
6141         (Text processing Macros) <m4_text_box>: Document cases where
6142         quadrigraphs can help for problemetic unbalanced parentheses.
6143         (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
6144         (Writing Testsuites) <AT_SETUP>: Likewise.
6145         (Limitations of Builtins) <case>: Consolidate text on unbalanced
6146         parentheses, and add an example of creative comments.
6147         * NEWS: Document the addition.
6148         Reported by Joel E. Denny.
6150 2008-04-16  Eric Blake  <ebb9@byu.net>
6152         Document pdksh exec behavior.
6153         * doc/autoconf.texi (Limitations of Builtins) <exec>: New
6154         subsection.
6155         Discovered by Jim Meyering.
6157 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6159         * tests/autotest.at (AT_CHECK_AT): Allow to pass additional
6160         arguments to the inner suite.
6161         (errexit, input from stdin): New tests.
6163 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6165         * NEWS: Post-release update.
6167 2008-04-10  Eric Blake  <ebb9@byu.net>
6169         AC_AUTOCONF_VERSION might contain arbitrary macro names.
6170         * doc/autoconf.texi (Versioning): Mention problem with expansion.
6171         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Adjust test.
6173 2008-04-09  Slava Sysoltsev <Viatcheslav.Sysoltsev@h-d-gmbh.de>  (tiny change)
6175         Flush buffered output before exit.
6176         * bin/autom4te.in (handle_output): Explicitly close file.
6177         * THANKS: Update.
6178         See http://lists.gnu.org/archive/html/autoconf/2008-04/msg00026.html.
6180 2008-04-08  Eric Blake  <ebb9@byu.net>
6182         Generate web docs for 2.62.
6183         * doc/autoconf.texi (Evaluation Macros): Fix typo.
6184         (Notices): Use recommended means to escape RCS keyword.
6185         * cfg.mk (gnulib_dir): New macro.
6186         (web-manual): New target.
6188 2008-04-05  Eric Blake  <ebb9@byu.net>
6190         Release Version 2.62.
6191         * NEWS: Mention the release.
6193 2008-04-04  Stepan Kasal  <kasal@ucw.cz>
6194         and Eric Blake  <ebb9@byu.net>
6196         Return back to GPLv2+, until the text of the exceptions is
6197         finalized, reverting the change from 2007-07-03 and the first
6198         part of the change from 2007-07-20.
6199         * COPYING: Revert to GPLv2.
6200         * COPYINGv3: New file, since some auxiliary build tools, used for
6201         building autoconf and not installed, are GPLv3.
6202         * Makefile.am (EXTRA_DIST): Distribute COPYINGv3.
6203         * NEWS: Remove mention of GPLv3.
6204         * README: Clarify situation regarding GPLv3.
6206 2008-04-05  Eric Blake  <ebb9@byu.net>
6208         Prepare for release.
6209         * maint.mk (announcement): Avoid deleted option.
6210         * cfg.mk (release_archive_dir): Use default.
6211         * build-aux/gnupload: New file, from automake/gnulib.
6212         * Makefile.am (EXTRA_DIST): Distribute it.
6213         * .x-sc_two_space_separator_in_usage: New file, to exempt gnupload
6214         from syntax check.
6216 2008-04-05  Jim Meyering  <meyering@redhat.com>
6217         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6219         Work around CR EOL markers on OS/2 (www.ecomstation.com Ecs v2 rc4)
6220         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When CR
6221         is the EOL marker, skip a step that would remove and translate
6222         carriage return bytes.
6223         * THANKS: Update.
6224         Reported by Elbert Pol.
6226 2008-04-05  Eric Blake  <ebb9@byu.net>
6228         Avoid some autoreconf -Wall warnings.
6229         * configure.ac: Use proper quoting, to be a good example.
6230         (PACKAGE_NAME): Remove setting covered by autoconf.
6231         (AM_INIT_AUTOMAKE): Bump automake requirement, for html rules.
6232         * doc/Makefile.am (TEXI2DVI): Remove settings covered by
6233         automake.
6234         (html, autoconf_1.html, standards_1.html): Likewise.
6235         (TEXI2HTML, TEXI2HTML_FLAGS): Remove unused macros.
6236         * Makefile.am (html): Likewise.
6237         * doc/autoconf.texi (Quoting and Parameters): Add missing section
6238         name.
6239         * tests/Makefile.am (AUTOMAKE_OPTIONS): Intentionally ignore
6240         warning about our override, until Automake is fixed.
6241         * README-hacking: Document minimum requirements for bootstrap.
6243 2008-04-03  Eric Blake  <ebb9@byu.net>
6245         Fix version number generation in man pages.
6246         * Makefile.am (EXTRA_DIST): Distribute .version.
6247         (.version): New rule.
6248         * man/Makefile.am (common_dep): Depend on .version, not
6249         configure.ac.
6250         (.x.1): Use package name for version string.
6251         * GNUmakefile [!_have-Makefile]: Sync from upstream, again.
6252         * build-aux/git-version-gen: Sync from upstream.
6254         More maintainer tweaks: pass 'make maintainer-distcheck'.
6255         * GNUmakefile (_is-dist-target): Sync from upstream.
6256         * build-aux/vc-list-files: Sync from upstream, yet again.
6257         * tests/atlocal.in (unsupported_fs_chars): Always remove tdir.
6258         * tests/Makefile.am (EXTRA_DIST): Don't distribute the built
6259         package.m4.
6260         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump year.
6262         Fix VPATH 'make syntax-check'.
6263         * maint.mk (VC_LIST, VC_LIST_EXCEPT, sc_changelog)
6264         (sc_prohibit_jm_in_m4, makefile-check): Support VPATH.
6265         (author_mark_check): Avoid error message.
6266         * build-aux/vc-list-files: Sync from upstream again.
6267         * build-aux/texinfo.tex: Likewise.
6269         Sync files from upstream, and pass 'make syntax-check'.
6270         * config/announce-gen: Move...
6271         * build-aux/announce-gen: ...here, and sync from gnulib.
6272         * Makefile.am (EXTRA_DIST): Adjust accordingly.
6273         * cfg.mk (announce_gen): Likewise.
6274         (prev_version_file): Delete, relying on default in maint.mk.
6275         (gpg_key_ID): New macro.
6276         (url_dir_list): Rewrite to match coreutils.
6277         * config/prev-version.txt: Move...
6278         * .prev-version: ...here, and adjust to 2.61.
6279         * build-aux/vc-list-files: Sync from coreutils.
6280         * maint.mk: Resynchronize with coreutils, where possible.
6281         (ME): Remove $(srcdir) from definition.
6282         (CVS): Delete.
6283         (GIT, VC, VC-tag): New macros.
6284         (CVS_LIST, CVS_LIST_EXCEPT): Rename...
6285         (VC_LIST, VC_LIST_EXCEPT): ...to this.
6286         (cvs-tag-check): Delete.
6287         (cvs-diff-check): Rename...
6288         (vc-diff-check): ...to this.
6289         (sc_file_system): Allow FHS acronym.
6290         * doc/autoconf.texi (Particular Functions): Recommend
6291         unconditional <config.h>.
6292         * build-aux/config.guess: Sync from upstream (manually).
6293         * build-aux/config.sub: Likewise.
6294         * build-aux/texinfo.tex: Likewise.
6295         * doc/make-stds.texi: Likewise.
6296         * doc/standards.texi: Likewise.
6297         * .gitattributes: Ignore whitespace problems in upstream files.
6299 2008-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6301         * doc/autoconf.texi (Limitations of Usual Tools): Mention awk %u
6302         bug on HP-UX/IA.
6303         Report by Peter O'Gorman.
6305 2008-04-02  Eric Blake  <ebb9@byu.net>
6307         Recommend the just-released M4 1.4.11.
6308         * NEWS: Update recommendation.
6309         * README: Likewise.
6310         * doc/autoconf.texi (Introduction): Likewise.
6311         * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
6313 2008-04-01  Eric Blake  <ebb9@byu.net>
6315         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Bump
6316         copyright year.
6318 2008-03-28  Peter O'Gorman  <peter@pogma.com>
6320         Find X11 on Mac OS X too.
6321         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT,_AC_PATH_X_XMKMF):
6322         Check for libX11 with extensions dylib la and dll too.
6323         * THANKS: Update.
6324         Reported by Martin Costabel.
6326 2008-03-28  Eric Blake  <ebb9@byu.net>
6328         Update TODO based on completed tasks.
6329         * TODO (AC_PROG_INSTALL takes multiple files): Done.
6330         (AC_GNU_SOURCE deprecation): Done, see AC_USE_SYSTEM_EXTENSIONS.
6331         (AC_COMPILE_IFELSE documentation): Done.
6332         (Tracing builtins): Done, now that we require M4 1.4.5.
6333         (AC_PROG_CC_POSIX suggestion, providing header files)
6334         (AC_TYPE_SIGNAL): Not needed; gnulib's approach is better.
6335         (cache consistency): Done with precious variables.
6337 2008-03-26  Eric Blake  <ebb9@byu.net>
6339         Document --trace=macro:format in --help output.
6340         * bin/autom4te.in (help): Mention optional trace format.
6341         * bin/autoconf.as (usage): Likewise.
6343         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Fix
6344         typos in last patch.
6345         Reported by Ralf Wildenhues.
6347 2008-03-26  Jim Meyering  <meyering@redhat.com>
6349         Fix texinfo syntax error.
6350         * doc/autoconf.texi (Limitations of Usual Tools): s/@kbd {/@kbd{/
6352 2008-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6354         Warn, not fail on whitespace-only precious variable differences.
6355         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Output
6356         precious variable differences less ambiguous with `ugly-quotes'.
6357         If their settings differ only in whitespace, do not fail, but
6358         reuse the old value.
6359         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Extend macro to allow
6360         an optional status and expected-warning argument.  Fix m4
6361         quotation for initial value.
6362         (AC_ARG_VAR): Also test for whitespace-only differences, and
6363         that the old value is retained in this case.
6364         * doc/autoconf.texi (Setting Output Variables): Document this.
6365         * NEWS: Update.
6366         Report and initial patch by Paolo Bonzini.
6368 2008-03-26  Eric Blake  <ebb9@byu.net>
6370         Document busybox sed bug.
6371         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Mention
6372         restrictions when using back-references.
6373         Reported by Vincent Lefevre:
6374         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13013>.
6376         Document Automake interaction with AC_CONFIG_MACRO_DIR.
6377         * doc/autoconf.texi (Input): Mention ACLOCAL_AMFLAGS for automake
6378         users.
6379         * THANKS: Update.
6380         Reported by Chris Pickett.
6382 2008-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6384         * tests/autotest.at (Using atlocal): Quote instances of `pwd`.
6386         * tests/local.at (AT_CHECK_M4): Factorize warning output
6387         normalization.
6388         Suggested by Eric Blake.
6390 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6392         Fix .exe-related test failure on MinGW.
6393         * tests/local.at (AT_CHECK_M4): Normalize `/bin/m4.exe' correctly
6394         for comparing warning output.
6396         Fix Fortran testsuite failures with gfortran 4.3.
6397         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): When scanning
6398         verbose compiler output, skip lines that set variables; gfortran
6399         4.3 sets LIBRARY_PATH, COMPILER_PATH, COLLECT_GCC_OPTIONS.
6400         * THANKS: Update.
6401         Report by Vincent Lefèvre.
6403 2008-03-21  Eric Blake  <ebb9@byu.net>
6405         * GNUmakefile: Resynchronize with gnulib.
6407         Document more uses of $cross_compiling.
6408         * doc/autoconf.texi (Runtime): Document that a temporary override
6409         is permissible.
6410         * THANKS: Update.
6411         Reported by Ineiev, example by Ralf Wildenhues.
6413         Don't swallow $1 in textual local variables.
6414         * lib/m4sugar/m4sugar.m4 (m4_combine): Don't use overquoting and
6415         expansion of text arguments, as that swallows $1.
6416         (m4_text_wrap): Likewise, by splitting out...
6417         (_m4_text_wrap): ...new helper macro.  Also, allow arbitrary
6418         expression for width.
6419         * tests/m4sugar.at (m4@&t@_text_wrap): Test this.
6420         (m4@&t@_combine): Likewise.
6422 2008-03-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6424         Avoid leftover files on Leopard.
6425         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove a.out.dSYM
6426         directory created on darwin.
6427         (AC_NO_EXECUTABLES): Likewise; also remove objects which may be
6428         left over from a broken link.
6429         * tests/c.at (AC_NO_EXECUTABLES (working linker))
6430         (AC_NO_EXECUTABLES (broken linker)): New tests.
6431         Report by Gary V. Vaughan.
6433         * lib/autom4te.in (Automake-preselections): Trace
6434         _AM_COND_IF, _AM_COND_ELSE, _AM_COND_ENDIF.
6436 2008-03-20  Eric Blake  <ebb9@byu.net>
6438         Kill more CVS references.
6439         * README-cvs: Delete.  See README-hacking instead.
6440         * README-hacking: Update wording, based on older file.
6441         * BUGS: Remove CVS mention.
6443 2008-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6445         * tests/tools.at (autotools and whitespace in file names): Skip
6446         if aclocal is not present.
6448 2008-03-20  Eric Blake  <ebb9@byu.net>
6450         Sync GNUmakefile with gnulib.
6451         * GNUmakefile (Makefile.cfg): Rename...
6452         (cfg.mk): ...to this, and make optional.
6453         (GNUmakefile.cfg): Delete, redundant with cfg.mk.
6454         (Makefile.maint): Rename...
6455         (maint.mk): ...to this.
6456         (all) [!_have-Makefile]: Rename...
6457         (abort-due-to-no-makefile): ...to this, and invoke via
6458         .DEFAULT_GOAL to pick up all targets.
6459         * Makefile.cfg: Rename...
6460         * cfg.mk: ...to this.
6461         * Makefile.maint: Rename...
6462         * maint.mk ...to this.
6463         (ME): Reflect name change.
6464         (makefile-check, m4-check, author_mark_check, msg): Use $(ME)
6465         rather than hard-coded name.
6466         * GNUmakefile.cfg: Delete; move rules into cfg.mk.
6467         * Makefile.am (EXTRA_DIST): Reflect file name changes.
6468         * .x-sc_prohibit_atoi_atof: Likewise.
6469         * lib/freeze.mk: Likewise.
6471 2008-03-19  Stepan Kasal  <kasal@ucw.cz>
6473         * doc/autoconf.texi (Introduction): Improve the paraphrase of
6474         Henry Spencer's quotation.
6476 2008-03-19  Eric Blake  <ebb9@byu.net>
6478         AC_CONFIG_HEADERS replaced AC_CONFIG_HEADER.
6479         * bin/autoscan.in (output): Avoid obsolete spelling.
6480         * tests/local.at (AC_STATE_SAVE): Update usage.
6481         * THANKS: Update.
6482         Reported by John Calcote.
6484         Emphasize that ease of configure triumphs over ease of autoconf.
6485         * doc/autoconf.texi (Introduction): Expand on primary
6486         vs. secondary goal of autoconf.
6487         * THANKS: Update.
6488         Inspired by Paul Smith.
6490 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6492         * lib/Autom4te/FileUtils.pm (handle_exec_errors): New argument
6493         $hint, show if the executing program does not exist.
6494         (xsystem_hint): New function, like xsystem but allows to pass
6495         a hint.
6496         * bin/autoreconf.in: Use xsystem_hint for spawning autopoint and
6497         libtoolize.
6498         Report by Bruce Korb.
6500 2008-03-14  Stepan Kasal  <kasal@ucw.cz>
6502         * lib/Autom4te/ChannelDefs.pm, tests/fortran.at,
6503         tests/mktests.sh, tests/wrapper.as: Fix typos.
6505 2008-03-12  Eric Blake  <ebb9@byu.net>
6507         Fix yesterday's regression in m4_wrap([$1]).
6508         * lib/m4sugar/m4sugar.m4 (_m4_wrap): Don't directly invoke wrapped
6509         text, since it may contain text that looks like parameters.
6510         * tests/m4sh.at (AS@&t@_INIT cleanup): Enhance test.
6512 2008-03-11  Eric Blake  <ebb9@byu.net>
6514         Improve error messages for common testsuite bugs.
6515         * lib/autotest/general.m4 (_AT_DEFINE_INIT, _AT_DEFINE_SETUP): New
6516         macros for defining order-enforced macros.
6517         (AT_INIT, AT_SETUP, AT_CLEANUP, AT_BANNER, AT_XFAIL_IF)
6518         (AT_CAPTURE_FILE, AT_DATA, AT_CHECK, AT_CHECK_NOESCAPE): Add error
6519         messages when order violations are detected.
6520         * tests/autotest.at (AT_CHECK_AT_SYNTAX): New helper macro.
6521         (AT_SETUP without AT_INIT, AT_BANNER without AT_INIT)
6522         (AT_CLEANUP without AT_INIT, Missing AT_CLEANUP)
6523         (AT_CHECK without AT_SETUP, AT_DATA without AT_SETUP)
6524         (AT_XFAIL_IF without AT_DATA, AT_KEYWORDS without AT_SETUP,
6525         (AT_CLEANUP without AT_SETUP, AT_BANNER inside AT_SETUP)
6526         (AT_SETUP inside AT_SETUP, Multiple AT_INIT)
6527         (Banner-only test suite): New tests.
6528         Reported by Christopher Hulbert.
6530         Tweak m4_wrap to force FIFO or LIFO semantics.
6531         * lib/m4sugar/m4sugar.m4 (m4_wrap): Override M4 implementation.
6532         (m4_wrap_lifo, _m4_wrap): New macros.
6533         * lib/m4sugar/m4sh.m4 (AS_INIT): Combine all cleanup into known
6534         order, prior to m4sugar's.
6535         (_AS_DETECT_BETTER_SHELL): Use cleanup parameter, rather than
6536         m4_wrap.
6537         * lib/autotest/general.m4 (AT_INIT): Combine all cleanup into
6538         known order, prior to m4sh's.
6539         * doc/autoconf.texi (Diagnostic Macros) <m4_fatal>: Document
6540         argument.
6541         (Redefined M4 Macros) <m4_wrap>: Rewrite documentation to match
6542         new behavior.
6543         * tests/m4sh.at (AS_INIT cleanup): New test.
6544         * NEWS: Document the change.
6546 2008-03-10  Eric Blake  <ebb9@byu.net>
6548         Encode nested autotest data.
6549         * tests/autotest.at (AT_CHECK_AT_PREP): Avoid raw AT_ in output.
6550         (unusual file names): Likewise.
6551         (m4_pattern_allow): Remove loophole, to make it easier to catch
6552         poorly written tests.
6554         Factor some autotest tests.
6555         * tests/autotest.at (AT_CHECK_AT_PREP): New macro, to factor out
6556         common initialization.
6557         (AT_CHECK_AT, Banners, Keywords and ranges, srcdir propagation)
6558         (whitespace in absolute testdir, unusual file names): Use it.
6560 2008-03-06  Eric Blake  <ebb9@byu.net>
6562         Minor documentation fix.
6563         * doc/autoconf.texi (Evaluation Macros): Fix typo.
6565 2008-03-04  Eric Blake  <ebb9@byu.net>
6567         Make AT_CHECK act like a simple command.
6568         * lib/autotest/general.m4 (_AT_CHECK): Wrap commands in {;}.
6569         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Test it.
6571 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6573         On MinGW, substitution of CR and 0xFF fails.
6574         * tests/torture.at (Substitute and define special characters):
6575         MinGW awk cannot handle 0xFF, and on MinGW, the test does the
6576         wrong thing for CR.
6578 2008-03-04  Eric Blake  <ebb9@byu.net>
6580         Pull in recent maintainer improvements from coreutils.
6581         * GNUmakefile (_is-dist-target): 'make distclean' should not
6582         trigger autoreconf.
6583         (_dummy): Change directories before removing autom4te.cache.
6584         (check dist distcheck install) [!_have-Makefile]: Provide nicer
6585         diagnostics.
6586         * configure.ac (AC_CONFIG_LINKS): Copy GNUmakefile into VPATH
6587         builds, after initial bootstrap.
6588         * Makefile.am (distclean-local): Work around current automake bug.
6589         * Makefile.maint (ME): Allow VPATH usage.
6591         Use git-merge-changelog when available.
6592         * .gitattributes: New file.
6593         * README-hacking: Document use of git-merge-changelog.
6595         Work around cygwin bug.
6596         * tests/atlocal.in (unsupported_fs_chars): Avoid cygwin bug where
6597         "touch 't\'" creates regular file 't'.
6599         Ignore tests that require read-only directories under root.
6600         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Skip
6601         no-write portion if user has root-like privileges.
6603 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6605         * lib/autotest/general.m4 (AT_INIT): Fix detection of '-C -'.
6607 2008-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6609         autoreconf -m now honors $MAKE.
6610         * bin/autoreconf.in ($run_make): Renamed from ...
6611         ($make): ... this.  Use now as command to run `make',
6612         overridden by $MAKE.  Document this in --help output.
6613         * doc/autoconf.texi (autoreconf Invocation): Document
6614         all environment variables honored by autoreconf.
6615         * NEWS: Update.
6616         Report by Paul Eggert.
6618 2008-03-03  Eric Blake  <ebb9@byu.net>
6620         Documentation improvements.
6621         * doc/autoconf.texi (Looping constructs): s/recurses/repeats/.
6622         (Evaluation Macros): Drop `1' suffix from metasyntax variable name
6623         that preceeds @dots.  Improve wording.
6624         (Text processing Macros): Drop `1' suffix from metasyntax variable
6625         name that preceeds @dots.
6626         (Number processing Macros): Drop `1' suffix from metasyntax
6627         variable name that preceeds @dots.  Improve wording.
6628         * lib/m4sugar/m4sugar.m4 (m4_cmp): Comment wording fix.
6629         Suggested by Ralf Wildenhues.
6631 2008-03-02  Jim Meyering  <meyering@redhat.com>
6633         Don't infloop upon "make dist".
6634         * GNUmakefile: Merge from coreutils.
6635         * Makefile.am (dist-hook): Inject .tarball-version into tarball,
6636         not .version.
6637         * configure.ac (AC_INIT): Use .tarball-version, not .version.
6638         * build-aux/git-version-gen: Update from gnulib.
6640 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6642         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
6643         Before using /dev/full, check that it is a writable character
6644         special device.
6645         Report by Benoit Sigoure and Eric Blake.
6647         Actually test that @configure_input@ is expanded correctly.
6648         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
6649         Actually check generated file contents for the name of the
6650         generated file, using AC_PROG_FGREP and $FGREP.
6652 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
6654         Be nice with file systems that don't handle unusual characters.
6655         * tests/atlocal.in (func_sanitize_file_name)
6656         (func_sanitize_dir_name): New shell functions.
6657         * tests/tools.at (autom4te and whitespace in file names)
6658         (autotools and whitespace in file names): Use them.
6659         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
6660         Cover more potentially problemtic file names.  Use the new
6661         functions.
6663         Properly handle funny file names for headers in config.status.
6664         The test suite did not cover this bug because the code was not
6665         quoting properly the arguments of `rm -f' (which "fails" silently)
6666         as well as the arguments of `diff' (whose output was redirected to
6667         /dev/null so we couldn't see its error message).
6668         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Properly quote the
6669         file names passed to `rm' and `diff'.
6670         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
6671         Add a regression test.
6673 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
6674         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6676         Properly expand @configure_input@ in config.status.
6677         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_MAIN_LOOP):
6678         Escape the backslashes and ampersands in $configure_input before
6679         using it in the sed replacement string to expand @configure_input@.
6680         Report by Eric Blake and Patrick Welche.
6682 2008-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6684         Ignore errors from ./run on w32.
6685         * tests/autotest.at (whitespace in absolute testdir):
6686         Ignore stderr for `./run' which fails to remove the
6687         busy test directory on w32.
6689 2008-02-22  Eric Blake  <ebb9@byu.net>
6691         Improve documentation for writing autotest suites.
6692         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention that
6693         checks must live inside a test group.
6694         Reported by Christopher Hulbert.
6696 2008-02-21  Eric Blake  <ebb9@byu.net>
6698         Sync git-version-gen from upstream.
6699         * build-aux/git-version-gen: Pull from gnulib.
6700         * configure.ac (AC_INIT): Adjust to new calling convention.
6702 2008-02-12  Eric Blake  <ebb9@byu.net>
6704         Avoid trailing space in config.h with AC_DEFINE([var], []).
6705         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Explicitly mark empty
6706         defines with a comment.
6708 2008-02-08  Eric Blake  <ebb9@byu.net>
6710         Fix texinfo typos in previous patch.
6711         * doc/autoconf.texi (Site Defaults): s/[{}]/@&/g.
6712         Reported by Ralf Wildenhues.
6714         Describe a config.site that can be used for FHS compliance.
6715         * doc/autoconf.texi (Site Defaults): Fix typo.  Add new example
6716         for FHS.
6717         * THANKS: Update.
6718         Reported by Jules Colding and Ralf Wildenhues.
6720 2008-02-02  Eric Blake  <ebb9@byu.net>
6722         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Fix typo.
6724 2008-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6726         * lib/autotest/general.m4 (AT_INIT): Fix --clean to work
6727         again, broken since introduction of `-C dir'.
6728         * tests/autotest.at (Choosing where testsuite is run): Test it.
6730 2008-01-30  Paul Eggert  <eggert@cs.ucla.edu>
6732         * doc/autoconf.texi: Update Back-Cover text to reflect new GNU wording.
6734 2008-01-29  Eric Blake  <ebb9@byu.net>
6736         Fix more autotest regressions.
6737         * lib/autotest/general.m4 (AT_LINE): Fix regression from
6738         2007-10-04 when file name is `dnl'.
6739         (AT_INIT) <PREPARE_TESTS>: Move command-line assignments...
6740         <TESTS_BEGIN>: ...to this new diversion, to fix regression from
6741         yesterday in libtool's testsuite.
6742         (_AT_ARG_OPTION): Detect write failure.
6743         * doc/autoconf.texi (Diversion support): Document PREPARE_TESTS to
6744         make libtool's use kosher.  Document m4_init.
6745         (Programming in M4sh): Document AS_INIT.
6746         (Writing Testsuites): Document limitation of AT_DATA file name.
6747         * tests/autotest.at (unusual file names): New test.
6748         (Banners, Keywords and ranges): Use correct shell.
6750         More corner cases in testsuite VAR=VALUE handling.
6751         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS): Fix quoting
6752         bug.
6753         <PARSE_ARGS_END>: Also detect leading digits in assignments.
6754         * tests/autotest.at (Using atlocal): Enhance test to catch last
6755         bug.
6757         * doc/autoconf.texi (Limitations of Builtins) <.>: Mention bash
6758         bug.
6760 2008-01-28  Eric Blake  <ebb9@byu.net>
6762         Fix regression in handling VAR=VALUE arguments to testsuite.
6763         * lib/autotest/general.m4 (AT_INIT) <PARSE_ARGS_END>: Detect
6764         leading = as invalid.  Defer use of command-line variable
6765         assignments...
6766         <PREPARE_TESTS>: ...here, after atconfig has been sourced.  Fix
6767         regression in sourcing files.
6768         * tests/autotest.at (Using atlocal): New test to catch this.
6769         (Debugging a successful test, Choosing where testsuite is run):
6770         Use correct shell.
6771         Reported by Ralf Wildenhues.
6773         Document grep peculiarity.
6774         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
6775         BSD behavior on binary input.
6777         Minor testsuite improvements.
6778         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Use fewer
6779         forks when sanitizing PATH.  Always output machine information,
6780         not just when atconfig was located.
6782         Add 'testsuite -C dir'.
6783         * lib/autotest/general.m4 (_AT_ARG_OPTION): Move missing argument
6784         detection...
6785         (AT_INIT) <PARSE_ARGS_END>: ...here, since -k always takes
6786         argument.
6787         <DEFAULTS>: Delay computation of variables based on $at_dir...
6788         <PREPARE_TESTS>: ...to here, since -C can change $at_dir.
6789         <TESTS>: Re-invoke via absolute name, since -C may be in effect.
6790         <PARSE_ARGS>: Parse new option.
6791         <HELP_TUNING>: Document it.
6792         * tests/autotest.at (Choosing where testsuite is run): New test
6793         for this feature.
6794         (Keywords and ranges): Add test for missing -k argument.
6795         * NEWS: Document this.
6796         * doc/autoconf.texi (testsuite Invocation): Likewise.
6798 2008-01-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6800         * build-aux/config.guess, build-aux/config.sub,
6801         build-aux/texinfo.tex: Sync from gnulib.
6802         * doc/fdl.texi, doc/make-stds.texi, doc/standards.texi:
6803         Likewise.
6805 2008-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6807         * doc/autoconf.texi (Particular Programs): Do not mention the
6808         Autoconf version in which the AC_PROG_INSTALL change was done.
6809         Suggested by Paul Eggert.
6811 2008-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6813         Fix --help=recursive with multiple AC_CONFIG_SUBDIRS.
6814         * lib/autoconf/general.m4 (_AC_INIT_HELP): If, for recursive help
6815         mode, we change to the source directory, also set $ac_pwd so we
6816         do not go back to the build tree for the next config subdir.
6817         * tests/torture.at (Deep Package): Extend test to contain two
6818         config subdirs on the top level.
6820         Fix parallel `maintainer-check'.
6821         * Makefile.am (maintainer-check-tests): Depend on `all'.
6822         Use `$(MAKE) $(AM_MAKEFLAGS)' instead of plain `make'.
6823         * tests/Makefile.am (maintainer-check-c++, maintainer-check-posix):
6824         Likewise.
6825         (maintainer-check): Serialize the testsuite runs.
6827         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE2): Accept `+'
6828         in feature string for --enable/--with.  Convert to underscore
6829         for variable name.
6831         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Require that
6832         `install -c file1 file2 dir' works.
6833         * doc/autoconf.texi (Particular Programs): Document this.
6834         * NEWS: Update.
6836 2008-01-21  Eric Blake  <ebb9@byu.net>
6838         Improve documentation about default include directives.
6839         * doc/autoconf.texi (Generic Headers, Generic Declarations)
6840         (Generic Structures, Generic Types)
6841         (Generic Compiler Characteristics): Add links to
6842         AC_INCLUDES_DEFAULT.
6843         Reported by Reuben Thomas.
6845 2008-01-15  Eric Blake  <ebb9@byu.net>
6847         * lib/m4sugar/m4sugar.m4 (m4_qlen): Use fewer macros.
6849 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6851         * tests/Makefile.am (noinst_SCRIPTS): Renamed from
6852         check_SCRIPTS.  Building the wrappers for `all' allows help2man
6853         to use them for the manpages.
6854         Report by Benoit Sigoure.
6856         * bin/autoreconf.in: Discard stderr for $autoconf/$aclocal --help.
6858 2007-12-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6860         Fix some write failure cases in Autotest.
6861         * lib/autotest/general.m4 (AT_INIT): Do not exit successfully
6862         upon write failures for --help, --version, --list.
6863         Guard against write failures for intermediate created scripts.
6864         <at_func_create_debugging_script>: Do not make the debugging
6865         script executable if it is not complete.
6867 2007-12-12  Eric Blake  <ebb9@byu.net>
6869         Fix thinko in earlier patch - m4_join isn't defined yet.
6870         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
6871         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
6872         (m4_require): Use m4_do, not m4_join.
6874         Fix some whitespace tests on cygwin.
6875         * tests/tools.at (autom4te and whitespace in file names): Restore
6876         font-lock.  Create $TMPDIR before it might be used.
6878         Fix spurious testsuite failure with M4 1.4.11.
6879         * tests/local.at (AT_CHECK_M4): Cater to new m4 error message.
6881         Optimize AC_REQUIRE.
6882         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
6883         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
6884         (m4_require): Avoid extra macro calls.
6886 2007-12-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6888         * tests/torture.at (srcdir): Fix quoting.
6890         Do not pass top_srcdir to configure scripts in testsuite.
6891         * tests/autotest.at (srcdir propagation): Copy install-sh to
6892         source tree.
6893         (my only test): Drop setting of `top_srcdir'.
6894         * tests/base.at (Input/Output): Likewise.
6895         * tests/local.at (AT_CONFIGURE_AC): Copy install-sh,
6896         config.guess, and config.sub to test source tree.
6897         Drop AC_CONFIG_AUX_DIR setting.
6898         (AT_CHECK_CONFIGURE): Drop setting of `top_srcdir'.
6899         * tests/torture.at (Substitute a 2000-byte string): Drop
6900         AC_CONFIG_AUX_DIR setting, copy install-sh to test source tree.
6901         (Substitute a newline, datarootdir workaround): Likewise.
6902         (Define a newline): Adjust for linenumber changes in configure.ac.
6903         * tests/foreign.at (Libtool): Adjust comment to reflect changes.
6905         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): Skip test
6906         if `pwd` contains whitespace.
6908         Quote $abs_top_srcdir in tests.
6909         * tests/local.at (AT_CHECK_PERL_SYNTAX): Likewise.
6910         * tests/tools.at (Syntax of the shell scripts): Likewise.
6912         * tests/m4sh.at (LINENO): Quote $0.
6914         Fix testsuite program wrapper for whitespace in `pwd`.
6915         The problem here is that the usual mantra is that command
6916         variables can contain arguments, thus we cannot just escape
6917         $AUTOCONF, $AUTOM4TE etc.  The compromise is to put the
6918         $top_builddir/tests directory early in $PATH, so that the
6919         wrappers are found by their plain name.
6920         * tests/wrapper.as: Put $testdir early in $PATH.
6921         (AUTOCONF, AUTOHEADER, AUTOM4TE): Set to plain command names.
6923         Proper config.status --file/--header and $srcdir escaping.
6924         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Quote special
6925         characters in $ac_file_inputs.
6926         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER): eval $ac_file_inputs
6927         accordingly.
6928         * tests/torture.at (datarootdir workaround): Adjust.
6929         (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): Extend test.
6931         Fix Autotest for whitespace in `pwd`.
6932         * lib/autotest/general.m4 (AT_INIT)
6933         <at_func_create_debugging_script, Driver Loop>:
6934         Quote $at_group_dir.
6935         * tests/autotest.at (whitespace in absolute testdir): New test.
6937         * lib/autom4te.in: Quote @datadir@.
6939         Proper file name escaping in Autoconf programs and Perl modules.
6940         This includes escaping of characters special to the shell
6941         as well as special to Perl, e.g., leading `<' or `>'.
6942         For example, when $file starts with `>', `open ">$file"'
6943         wrongly tries to append to a different file.
6944         * bin/autoconf.as: Fix quoting for autom4te options.
6945         * lib/Autom4te/General.pm (shell_quote): New function, taken
6946         from coreutils, written by Jim Meyering.
6947         (mktmpdir): Use it.
6948         * bin/autom4te.in (files_to_options, handle_m4): Use shell_quote
6949         and open_quote.
6950         * bin/autoreconf.in (parse_args): Likewise.
6951         * bin/autoscan.in (main): Likewise.
6952         * bin/autoupdate.in (main): Likewise.
6953         * bin/autoheader.in: Likewise, fixing old insufficient escaping.
6954         * bin/ifnames.in: Likewise, XFile usage fixes.
6955         * tests/tools.at (autom4te and whitespace in file names): Extend
6956         test.  Test twice, with special characters allowed on w32, and the
6957         rest.  Test leading and trailing whitespace, for `open_quote'.
6958         (autotools and whitespace in file names): New, analogous test.
6959         Reported by Paul Eggert and Benoit Sigoure, additional suggestions
6960         by Russ Allbery and Eric Blake.
6962         Sync from Automake.
6963         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
6964         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Likewise.
6965         * lib/Autom4te/FileUtils.pm (open_quote): New function.
6966         (update_file, contents): Use it.
6968         * Makefile.am (autom4te-update): Rewrite for git.
6970 2007-12-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6972         * doc/autoconf.texi (autom4te Invocation, Autom4te Cache): Fix typos.
6974         Fix copyright years.
6975         * Makefile.am, doc/install.texi, lib/autoconf/fortran.m4,
6976         lib/autoconf/lang.m4, lib/freeze.mk: Likewise.
6978 2007-12-04  Eric Blake  <ebb9@byu.net>
6980         Manually resync with gnulib, since 'make cvs-update' no longer works.
6981         * build-aux/config.guess: New upstream version.
6982         * build-aux/config.sub: Likewise.
6984         When using older automake, don't downgrade build-aux/texinfo.tex.
6985         * configure.ac (AM_INIT_AUTOMAKE): Add no-texinfo.tex option.
6986         * doc/Makefile.am (TEXINFO_TEX): Add.
6988 2007-11-27  Paul Eggert  <eggert@cs.ucla.edu>
6990         Fix AC_C_BIGENDIAN bug caused by new awk method of substitution.
6991         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Don't comment out the
6992         #undef as this runs afoul of our new way of creating config.h.
6993         Problem reported by Jim Meyering in
6994         <http://lists.gnu.org/archive/html/autoconf-patches/2007-11/msg00164.html>.
6996 2007-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6998         Fix autom4te for unusual characters in input file names.
6999         * bin/autom4te.in (files_to_options): Quote active characters
7000         for the shell.
7001         * tests/tools.at (autom4te and white space in file names):
7002         New test.
7004         * doc/autoconf.texi (Limitations of Usual Tools) <awk>:
7005         Document that Tru64 awk always splits $0.
7007 2007-11-24  Stepan Kasal  <kasal@ucw.cz>
7009         * lib/autotest/general.m4 (AT_INIT): Do not extract the
7010         `#AT_STOP_...' line at the end of each test.
7012 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7014         * lib/autotest/general.m4 (AT_INIT): For awk line number
7015         extraction script, ensure `$at_group' has a defined value
7016         even for the empty set, and properly quote its usage inside
7017         the awk script.
7019 2007-11-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7021         * doc/autoconf.texi (Shell Functions): New chapter.  Document
7022         IRIX sh $0 issue in functions, move content from ...
7023         (Portable Shell): ... here.
7024         (Shell Script Compiler): Note that shell functions are not
7025         totally unportable any more.
7027 2007-11-22  Stepan Kasal  <kasal@ucw.cz>
7028         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7030         * lib/autotest/general.m4 (AT_INIT): Exit awk script after
7031         extracting the line numbers of the last needed test.
7033 2007-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7035         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
7036         Fix quoting.
7038 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7040         Fix IRIX testsuite debugging failures: $0 in functions.
7041         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
7042         Do not use $0 inside a function, as IRIX sh will set that to the
7043         function name rather than the script invocation name.
7045 2007-11-19  Paolo Bonzini  <bonzini@gnu.org>
7046         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7048         * lib/autotest/general.m4 (at_func_test): Use cached line numbers
7049         to extract test scripts.
7050         (AT_INIT): Extract and cache test script line numbers.
7052 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7054         * lib/autotest/general.m4: Revert 2007-11-15 patch and
7055         subsequent fixups; the awk -> here-document conversion trashes
7056         performance too much with AIX sh.
7058 2007-11-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7060         * tests/local.at: Do not test m4, perl with AT_TESTED.
7062         Diagnose and guard against write errors dealing with config.status.
7063         The general idea is this: all write failures from `configure'
7064         writing `config.status' are indicated by $ac_write_error, which
7065         is only checked at the end.  This is safe because config.status
7066         code is not executed before the file is complete.  Other write
7067         failures, be they inside config.status, or in sub shell/awk
7068         scripts spawned from configure or config.status, typically need
7069         earlier checking, as their results are used right afterwards.
7070         * lib/autoconf/status.m4 (AC_OUTPUT): Initialize `ac_write_fail'
7071         before writing config.status, check afterwards.
7072         (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
7073         (_AC_OUTPUT_HEADERS_PREPARE,_AC_OUTPUT_CONFIG_STATUS):
7074         Set `ac_write_error' for write failures to config.status.  Barf
7075         upon write failures to temporary files.
7076         Adjust note about closing and reopening the here-document.
7077         (_AC_OUTPUT_HEADER, _AC_OUTPUT_LINK, _AC_OUTPUT_COMMAND)
7078         (_AC_OUTPUT_MAIN_LOOP): Likewise, adjust note about closing and
7079         reopening the here-document.
7080         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
7081         Ensure `ac_write_error' does not escape into config.status.
7082         Also, add a couple of code paths not yet exercised in the test
7083         suite: a config file with input from stdin, and a config header
7084         output to stdout.
7085         Suggestion for catching write errors by Bruno Haible.
7087 2007-11-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7089         Avoid error with Tru64 awk and testsuite lines with many words.
7090         * lib/autotest/general.m4 (AT_INIT): In the awk script that
7091         reads the testsuite, set the field separator to an unusual value,
7092         in order to not run over the limit of 199 fields.  Tru64 4.0D awk
7093         even splits the input if $i, i>0, was never accessed in the script.
7095         Revert 2007-10-17 change.
7096         * TODO: Multiline args in config files and headers mean something
7097         different and are not fixed, see
7098         <http://lists.gnu.org/archive/html/autoconf-patches/2007-05/msg00017.html>
7099         Report by Stepan Kasal.
7101         * doc/autoconf.texi (Generic Programs): Fix typo.
7103 2007-11-16  Stepan Kasal  <kasal@ucw.cz>
7105         AC_*_TOOL does not canonicalize the prefix
7106         * doc/autoconf.texi (Generic Programs): Do not say that
7107         the *_TOOL macros canonicalize, they simply use the `host_alias'.
7109 2007-11-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7111         Diagnose write errors in config.status instantiations.
7112         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE)
7113         (_AC_OUTPUT_HEADER, _AC_OUTPUT_MAIN_LOOP): Bail out
7114         on write errors.
7115         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
7116         Extend test to also check for some write error failures, using...
7117         <AT_CHECK_CONFIG_CREATION_NOWRITE>: ...this new macro.
7118         Report by Bruno Haible.
7120         Indentation fixups.
7121         * lib/autotest/general.m4 (AT_INIT) <at_func_log_failure>: Fix
7122         indentation.
7123         (_AT_CHECK): Use less indentation, to save space.
7125 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7127         Add witness macro for @top_build_prefix@ substitution.
7128         * lib/autoconf/status.m4 (_AC_HAVE_TOP_BUILD_PREFIX): New macro.
7129         (_AC_OUTPUT_FILE): Mention it here.
7131 2007-11-15  Paolo Bonzini  <bonzini@gnu.org>
7132         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7134         * lib/autotest/general.m4 (at_func_test): Remove.
7135         (AT_INIT): Pre-extract test groups into separate files.
7136         (AT_CLEANUP): Source pre-extracted file instead of calling at_func_test.
7137         Remove at-test-source files together with the $at_group_dir.
7138         * tests/autotest.at (Long test source lines): New test.
7140 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7142         Shell functions and variables may share a namespace.
7143         * doc/autoconf.texi (Portable Shell): Mention Solaris sh
7144         limitation.
7146 2007-11-14  Paul Eggert  <eggert@cs.ucla.edu>
7148         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Make comment match
7149         gnulib.
7151 2007-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7153         * lib/autoconf/status.m4: Fix a couple of comment typos.
7155         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Use $as_me, not $me.
7157 2007-11-13  Jim Meyering  <meyering@redhat.com>
7159         Clean up the rule to create "expr".
7160         * tests/Makefile.am (expr): Don't redirect directly to target.
7161         Redirect just once, not for each echo statement.
7162         Use $@, not literal "expr".
7164 2007-11-13  Paul Eggert  <eggert@cs.ucla.edu>
7166         Don't worry about preprocessor when testing long long.
7167         See: http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00075.html
7168         * doc/autoconf.texi (Preprocessor Arithmetic): New section.
7169         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT):
7170         These no longer check for preprocessor flaws.
7171         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET):
7172         Do not check for preprocessor flaws.
7174 2007-11-13  Jim Meyering  <meyering@redhat.com>
7176         Adapt dependencies, now that a version change doesn't modify configure.ac
7177         * GNUmakefile: Remove "make clean" kludge.
7178         * lib/m4sugar/Makefile.am (version.m4): Depend on Makefile, not
7179         configure.ac.
7180         Don't redirect directly to target.
7181         Use $@, not literal "version.m4".
7183 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7185         * doc/autoconf.texi (Making testsuite Scripts): Document
7186         ":;{" shorthand as in previous patch.
7188 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
7190         * doc/autoconf.texi (Limitations of Builtins): Document problem
7191         with { ... } a bit more clearly.  Suggest ":;{" as a shorthand
7192         for the workaround.
7193         * lib/m4sugar/Makefile.am (version.m4): Detect 'echo' failure.
7194         Use ":;{" shorthand.
7195         * tests/Makefile.am ($(srcdir)/package.m4): Likewise.
7197 2007-11-12  Jim Meyering  <meyering@redhat.com>
7199         Add more non-srcdir build support.
7200         * GNUmakefile (dummy): Split a long line.
7201         Add -v option to autoreconf invocation.
7203         Remove the autoreconf-provided INSTALL, so that we regenerate it.
7204         * GNUmakefile (dummy): Remove INSTALL.
7206         Remove racy commands to build scripts in bin/ and tests/.
7207         * man/Makefile.am (.x.1): Now that scripts in bin/ and tests/
7208         are guaranteed to be built, remove the rules that tried to build
7209         them.  Before, with a parallel build, these rules could lead to
7210         two processes writing tests/wrapper.in concurrently.
7212         Build in man/ only *after* building in bin/ and tests/.
7213         * Makefile.am (SUBDIRS): The man-page-creation process runs $(MAKE)
7214         in both bin/ and tests/.
7216         Accommodate non-srcdir build-from-checkout.
7217         * build-aux/git-version-gen: Require an additional parameter: $srcdir.
7218         Use git's --git-dir=$srcdir/.git option.
7219         Add quotes, in case tarball_version_file contains shell meta-characters.
7220         * GNUmakefile (_curr-ver): Pass $(srcdir) to git-version-gen.
7221         * configure.ac: Pass "." to git-version-gen.
7223         Avoid spurious test failures due to version skew.
7224         * GNUmakefile (dummy): Run $(MAKE) clean after autoreconf -i.
7226 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7228         Avoid warnings about conftest.dSYM directories on Mac OS X Leopard.
7229         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_RUN_IFELSE):
7230         Remove conftest.dSYM directory.
7231         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT)
7232         (_AC_LANG_PROGRAM_C_, _AC_FC_MAIN, __AC_FC_NAME_MANGLING):
7233         Remove `conftest.*' recursively.
7234         * lib/autoconf/lang.m4 (AC_LINK_IFELSE): Likewise.
7235         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
7236         Likewise.
7237         (_AC_COMPILER_OBJEXT_REJECT): Reject *.dSYM.
7238         * THANKS: Update.
7239         Report and analysis by Jeff Squyres and Peter O'Gorman.
7241 2007-11-12  Benoit Sigoure  <tsuna@lrde.epita.fr>
7243         Fix typos in variable names.
7244         * tests/semantics.at (test for AC_CHECK_LIB): s/at_m/ac_m/.
7246 2007-11-11  Benoit Sigoure  <tsuna@lrde.epita.fr>
7248         Document that $((expression)) is not portable.
7249         * doc/autoconf.texi (Shell Substitutions): Here.
7251 2007-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7253         Ignore configure --help* errors due to LINENO-impaired shells.
7254         * tests/torture.at (Configuring subdirectories, Deep Package):
7255         In the --help* tests in read-only trees, make `.' temporarily
7256         writable again for the `stderr' file, and ignore errors due to
7257         the attempt to write configure.lineno.
7258         Report by Patrick Welche.
7260 2007-11-10  Jim Meyering  <meyering@redhat.com>
7262         Generate package.m4 in build-dir, not srcdir.
7263         * tests/Makefile.am (package.m4): Adjust target.
7264         Don't redirect directly to $@.
7265         (CLEANFILES): Add package.m4.
7266         ($(TESTSUITE)): Depend on just-built package.m4, not the one
7267         in $(srcdir).
7268         When running $(AUTOTEST), search "." before searching $(srcdir).
7270         Avoid a race condition that would make parallel "distclean" fail.
7271         * tests/Makefile.am (distclean-generic): Replace the default,
7272         automake-provided rule with an identical one, but with an additional
7273         dependency on distclean-local.  Simply adding the dependency would
7274         cause automake not to emit the rule at all.
7275         * BUGS: Building with -jN works, now.
7277         Distribute git-version-gen.
7278         * Makefile.am (EXTRA_DIST): Add build-aux/git-version-gen,
7279         since GNUmakefile is distributed, and requires it for dist* rules.
7281         Remove two more generated files from version control.
7282         * INSTALL: Remove generated file.
7283         * lib/autoscan/autoscan.list: Remove generated file.
7285 2007-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7287         * GNUmakefile (PATH): Remove stray apostrophes; they become
7288         part of PATH, which isn't wanted here.
7290 2007-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7292         New config files output variable `top_build_prefix'.
7293         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Substitute
7294         `top_build_prefix'.
7295         * doc/autoconf.texi (Preset Output Variables): Document it.
7296         * NEWS: Update.
7297         Report by Bob Friesenhahn.
7299         Avoid expr for arithmetic evaluation if the shell accepts $((...)).
7300         * lib/autotest/general.m4 (AT_INIT) <at_func_arith>: New
7301         function, to parametrize arithmetic with expr vs. the shell.
7302         Use it where possible.
7303         Suggestion by Benoit Sigoure.
7305 2007-11-03  Benoit Sigoure  <tsuna@lrde.epita.fr>
7307         Adjust the documentation of autotest WRT atlocal.
7308         * doc/autoconf.texi (Making testsuite Scripts): It is not necessary,
7309         when using Automake, to write a rule to produce atlocal, since it's
7310         an AC_CONFIG_FILES.  Mention that atlocal.in needs to be
7311         distributed, not atconfig.in.
7313 2007-11-04  Eric Blake  <ebb9@byu.net>
7315         Update list information.
7316         * README: Mention new autoconf-commit list.
7317         * doc/autoconf.texi (Introduction): Mention autoconf-commit list.
7319 2007-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7321         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Fix comment typo.
7323         * lib/m4sugar/Makefile.am (version.m4): Another bash bug workaround.
7325         * build-aux/.gitignore: Ignore mkinstalldirs.
7327         * doc/autoconf.texi (autoreconf Invocation): Fix an underfull line.
7329 2007-11-03  Jim Meyering  <meyering@redhat.com>
7331         s/-/./ in snapshot version string: 2.61a-256-8b556 -> 2.61a.256-8b556
7332         * build-aux/git-version-gen: This syncs from coreutils.
7334         Adjust the build procedure so "make check" works reliably.
7335         * README-hacking: Include an extra step between "make" and
7336         "make check" to ensure that the latter passes.
7338         Use just-built tools, when possible.
7339         * GNUmakefile (PATH): Set and export here, ...
7340         (dummy): ... rather than here.
7342 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7343         and Andreas Schwab  <schwab@suse.de>
7345         * tests/Makefile.am ($(srcdir)/package.m4): Work around bash
7346         exit status bug.
7348 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7350         * configure.ac (AC_PREREQ): Require version 2.60, for
7351         AC_PROG_SED, AC_PROG_GREP.
7353 2007-11-02  Benoit Sigoure  <tsuna@lrde.epita.fr>
7354         and Jim Meyering  <meyering@redhat.com>
7355         and Andreas Schwab <schwab@suse.de>
7356         and Eric Blake  <ebb9@byu.net>
7358         Document a bug in GNU Bash with compound commands and redirections.
7359         * doc/autoconf.texi (Limitations of Builtins): Mention that GNU
7360         Bash doesn't properly set $? when `{ ... } >/bad' fails, and give
7361         workaround.
7363 2007-11-03  Eric Blake  <ebb9@byu.net>
7365         Support m4 1.4.5 in testsuite.
7366         * tests/torture.at (Define a newline): Exclude line numbers in
7367         error message.
7368         Reported by Ralf Wildenhues.
7370 2007-11-03  Jim Meyering  <meyering@redhat.com>
7372         Remove automake-provided files from version control.
7373         * build-aux/elisp-comp: Remove file.
7374         * build-aux/install-sh: Remove file.
7375         * build-aux/missing: Remove file.
7376         * build-aux/mdate-sh: Remove file.
7377         * build-aux/.gitignore: New file.
7378         Suggestion from Ralf Wildenhues.
7380 2007-11-03  Eric Blake  <ebb9@byu.net>
7382         Adjust version comparison to account for git snapshot numbers.
7383         * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Also treat - as a
7384         component separator.
7385         * doc/autoconf.texi (Number processing Macros)
7386         <m4_version_compare>: Document this change.
7387         * tests/m4sugar.at (m4@&t@_version_compare): Test it.
7389 2007-10-30  Bruno Haible  <bruno@clisp.org>
7391         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro,
7392         extracted from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
7393         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT): Use it.
7394         Fixes problem with Sun C 5.[0-8] in 32-bit mode, reported in
7395         <http://lists.gnu.org/archive/html/autoconf-patches/2007-10/msg00210.html>
7396         Suggested by Paul Eggert.
7398 2007-10-28  Jim Meyering  <meyering@redhat.com>
7400         * README-hacking: Autoconf, Automake, and Perl are required to build.
7401         List Gzip and Tar separately.  Suggested by Ralf Wildenhues.
7403 2007-10-28  Jim Meyering  <meyering@redhat.com>
7405         README-hacking: Recommend running autoreconf -vi.
7406         * GNUmakefile (dummy): Use autoreconf -i, with appropriate PATH,
7407         so that we use just-built tools when they're available.
7408         Suggestions from Ralf Wildenhues.
7410 2007-10-28  Jim Meyering  <meyering@redhat.com>
7412         Make inter-release --version output more useful.
7414         Now, each unofficial build has a version "number" like 2.61a-19-58dd,
7415         which indicates that it is built using the 19th change set
7416         (in _some_ repository) following the "v2.61a" tag, and that 58dd
7417         is a prefix of the commit SHA1.
7418         * build-aux/git-version-gen: New file.
7419         * configure.ac: Run it to set the version.
7420         (AM_INIT_AUTOMAKE): Don't check NEWS here.
7421         * Makefile.am (dist-hook): Arrange so that .version appears only
7422         in distribution tarballs, never in a checked-out repository.
7423         * .gitignore: Add .version here, too.  Just in case.
7424         * tests/Makefile.am ($(srcdir)/package.m4): Depend on Makefile,
7425         not configure.ac, now that the version number changes automatically.
7427         Ensure that $(VERSION) is up to date for dist-related targets.
7428         * GNUmakefile: Arrange to rerun autoconf, if the version reported by
7429         git-version-gen doesn't match $(VERSION), but only for dist targets.
7431 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7433         Fix `Deep Package' failure with a configure script early in PATH
7434         * tests/torture.at (Deep Package): Add `.' early in PATH.
7435         Report by Jim Meyering.
7437 2007-10-27  Jim Meyering  <meyering@redhat.com>
7439         Remove all generated files from version control.
7440         * aclocal.m4: Remove.
7441         * configure: Remove.
7442         * Makefile.in: Remove, along with all other Makefile.in in subdirs.
7443         * .gitignore: Add aclocal.m4, configure and Makefile.in.  Sort.
7444         * README-hacking: New file: how to build from just-checked-out sources.
7446 2007-10-23  Eric Blake  <ebb9@byu.net>
7448         Improve corner case of m4_expand.
7449         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Rewrite more
7450         efficiently.
7451         * tests/m4sh.at (AS@&t@_HELP_STRING): Test overquoted comma.
7452         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Update
7453         documentation.
7455 2007-10-23  Paul Eggert  <eggert@cs.ucla.edu>
7457         * doc/make-stds.texi: Update from gnulib.
7459 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
7460         and Eric Blake  <ebb9@byu.net>
7462         * lib/autoconf/c.m4 (AC_C_RESTRICT): Work around Sun C++ compatibility
7463         problem reported by Bruno Haible in
7464         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00027.html>.
7466 2007-10-22  Eric Blake  <ebb9@byu.net>
7468         * doc/autoconf.texi (Particular Types): Mention bug in HP-UX 11.00
7469         preprocessor.
7471 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
7473         Don't check for bug in HP-UX 11.00 cpp.
7474         * lib/autoconf/types.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
7475         Use -1ull rather than -1u, since that causes problems with gnulib; see
7476         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
7478 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7480         * tests/autotest.at (Backquote command substitution)
7481         (Multiline backquote command substitution)
7482         (Parenthetical command substitution)
7483         (Multiline parenthetical command substitution): Fix typos in
7484         test names.
7486 2007-10-21  Eric Blake  <ebb9@byu.net>
7488         * configure: Regenerate.
7490 2007-10-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7492         Fix config status generation with Tru64 ksh.
7493         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix
7494         escaping of backslash in here-documents.
7496         Fix `Deep Package' test failure on FreeBSD.
7497         * tests/torture.at (Deep Package): Do not add `.' to $PATH
7498         unnecessarily.  Do not try running `/bin/sh configure' with a
7499         configure script to be found in $PATH, if the shell does not do
7500         this resolution.  Fixes test failure on FreeBSD.
7502         Fix config header generation with AIX awk.
7503         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): In awk
7504         script, use helper array D_is_set, as `" 0"' does not evaluate
7505         to true for AIX awk.
7507 2007-10-21  Eric Blake  <ebb9@byu.net>
7509         * tests/autotest.at (Banners): Reinstate test, with typo
7510         corrected.
7512 2007-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7514         * lib/autotest/general.m4 (Defaults): Validate input ranges ...
7515         <at_func_validate_ranges>: ... using this new function.
7516         * tests/autotest.at (Keywords and ranges): Test invalid ranges.
7517         Test --list with ranges and keywords.
7518         (Banners): Remove one now-failing test.
7520 2007-10-20  Eric Blake  <ebb9@byu.net>
7522         Fix testsuite --list subset.
7523         * lib/autotest/general.m4 (AT_INIT) <at_list_p>: Swap newlines
7524         back to spaces, before listing subset of tests.
7525         Reported by Ralf Wildenhues.
7527 2007-10-19  Eric Blake  <ebb9@byu.net>
7529         s/parenthesis/parentheses/ where appropriate.
7530         * doc/autoconf.texi: Fix typos.
7531         * lib/m4sugar/m4sugar.m4: Likewise.
7532         Reported by Ralf Wildenhues.
7534         Document m4_expand limitation.
7535         * lib/m4sugar/m4sugar.m4 (m4_expand): Mention problem with
7536         unbalanced parse.
7537         * doc/autoconf.texi (Pretty Help Strings, Evaluation Macros)
7538         (Writing Testsuites): Mention limitations inherited from
7539         m4_expand.
7541         Improve AT_BANNER handling.
7542         * lib/autotest/general.m4 (BANNERS): New named diversion.
7543         (TESTS_END): Diversion no longer used.
7544         (AT_INIT) <at_func_banner, BANNERS>: Factor all banners into a
7545         shell function, which prints only as needed, using an associative
7546         array of banner text from a special diversion.
7547         <PARSE_ARGS_END>: No longer need awk to find banners.
7548         <TESTS>: Banners are no longer processed by main driver loop, so
7549         we no longer need case statement.
7550         (AT_BANNER): Rewrite to populate new diversion.
7551         (AT_SETUP): Each test invokes its own banner.  No output is needed
7552         to the TESTS diversion.
7553         * doc/autoconf.texi (Writing Testsuites): Document slight
7554         semantics change.
7555         * tests/autotest.at (AT_BANNERS): Enhance test.
7556         * NEWS: Document AT_BANNER.
7558         Document and test AT_BANNER.
7559         * doc/autoconf.texi (Writing Testsuites): Document AT_BANNER.
7560         * tests/autotest.at (AT_CHECK_EGREP): Share between tests.
7561         (AT_CHECK_BANNERS): New test.
7563         Doc touchups.
7564         * doc/autoconf.texi (Text processing Macros) <m4_strip>
7565         <m4_text_wrap>: Clarify and fix typos.
7567 2007-10-18  Eric Blake  <ebb9@byu.net>
7569         Ignore `make dist' changelogs in testsuite.log.
7570         * lib/autotest/general.m4 (AT_INIT) <ChangeLogs>: Prune
7571         directories matching AT_PACKAGE_TARNAME-*.
7573         Fix AT_TESTED, AT_KEYWORDS.
7574         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Warn if separator
7575         occurs in string, as duplicates may be added.
7576         (_m4_append_uniq): New helper macro.
7577         (m4_append_uniq_w): New macro.
7578         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Fix
7579         duplication bug by using new macro.
7580         (AT_INIT) <at_tested>: Restore newline separators.  Invoke tested
7581         programs with stdin redirected, so programs that don't
7582         understand --version won't try to behave interactively.
7583         * tests/autotest.at (Tested programs): Catch this bug.
7584         * tests/m4sugar.at (m4@&t@_append): Test new macro.
7585         * tests/local.at (AT_TESTED): Add m4, perl.
7586         * doc/autoconf.texi (Text processing Macros): Document
7587         m4_append_uniq_w, and update text on m4_append.
7588         * NEWS: Document the addition.
7590 2007-10-17  Eric Blake  <ebb9@byu.net>
7592         Function cleanup.
7593         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Convert
7594         from m4 macro...
7595         (AT_INIT) <at_func_create_debugging_script>: ...to shell
7596         function.
7597         (AT_INIT): Defer function declarations until after --help,
7598         --version.  Format functions consistently, trying to fit in 80
7599         columns.
7600         (TEST_FUNCTIONS): Based on recent changes, rename...
7601         (TEST_GROUPS): ...to this.
7603         Reject FreeBSD m4.
7604         * m4/m4.m4 (AC_PROG_GNU_M4): Also check for frozen file support.
7605         * configure: Regenerate.
7606         Reported by Bob Friesenhahn.
7608         Test recent additions.
7609         * tests/m4sugar.at (m4@&t@_map, m4@&t@_combine)
7610         (m4@&t_max and m4@&t_min): New tests.
7611         * doc/autoconf.texi (Evaluation Macros) <m4_apply>: Enhance
7612         description.
7614 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7616         * TODO: multiline args in config files and headers work now.
7618         Autotest: do not use shell functions for individual tests.
7619         * lib/autotest/general.m4 (AT_INIT) <at_func_test>: Merely
7620         extract the source test source, do not invoke it.
7621         (AT_SETUP, AT_CLEANUP): Source test code outside shell function.
7622         * tests/autotest.at (Fallacy): Actually let the inner suite fail,
7623         expect exit status of 1.
7624         * tests/autotest.at (Skip): New test, for bogus zsh exit status.
7626         * lib/autotest/general.m4 (at_func_test): Fix test extraction
7627         script.
7629 2007-10-17  Eric Blake  <ebb9@byu.net>
7631         Fix m4_combine for empty suffix list.
7632         * lib/m4sugar/m4sugar.m4 (m4_combine): Check for suffix list.
7633         * doc/autoconf.texi (Text processing Macros): Document this.
7635         Add m4_combine, based on Libtool's lt_combine.
7636         * lib/m4sugar/m4sugar.m4 (m4_combine): New macro.
7637         * doc/autoconf.texi (Text processing Macros): Document it.
7638         * NEWS: Likewise.
7640 2007-10-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7642         Fix `configure --help=recursive' in unconfigured/read-only trees.
7643         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Avoid errors when `.'
7644         is not writable, use 'cp -p' in this case, in the hope that it
7645         will not actually be needed.  Still try removing files, in case
7646         of other write errors.
7647         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): For ac_confdir,
7648         use $as_myself, not $0.
7649         (_AC_INIT_HELP): For --help=recursive, if the subdir does not
7650         exist, try again in the the source tree.  This change assumes
7651         that the subpackage configure script is capable of running
7652         --help=recursive in the source tree.
7653         * tests/torture.at (Configuring subdirectories, Deep Package):
7654         Adjust tests to expose both issues, also try invocation as
7655         `sh configure ...' and plain `configure ...' with PATH adjusted.
7656         * NEWS, THANKS: Update.
7657         Report by Hans Ulrich Niedermann.
7659 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
7661         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
7662         Problem reported by H.Merijn Brand in
7663         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
7664         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
7665         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
7666         Check that preprocessor handles 64-bit ints, too.
7668 2007-10-16  Eric Blake  <ebb9@byu.net>
7670         m4_map is a looping construct.
7671         * lib/m4sugar/m4sugar.m4 (m4_map, _m4_map, m4_map_sep): Move.
7673         Fix m4_map, and add some more utility macros.
7674         * lib/m4sugar/m4sugar.m4 (m4_apply, m4_count, m4_dquote_elt)
7675         (m4_echo, m4_make_list): New documented macros.
7676         (_m4_quote, _m4_shift2): New helper macros.
7677         (m4_map): Change semantics to allow calling macro without
7678         arguments.
7679         (m4_map_sep): Likewise.  Also change semantics to quote separator,
7680         to match m4_join and m4_append.
7681         (m4_version_unletter): Fix use of m4_map.
7682         * doc/autoconf.texi (Evaluation Macros): Document m4_apply,
7683         m4_count, m4_dquote_elt, m4_echo, m4_make_list.
7684         (Text processing Macros): Mention m4_dquote as a faster
7685         alternative to joining with commas.
7686         (Looping constructs): Document m4_map, m4_map_sep.
7687         * NEWS: Mention new macros.
7689         A few more m4sugar improvements, to benefit libtool.
7690         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts, _m4_shiftn): Reduce size
7691         of expansion by avoiding extra uses of $@.
7692         (m4_shiftn): Avoid extra dnl, and forbid shifting by 0.
7693         (_m4_cdr): New helper macro.
7694         (_m4_map, m4_map_sep): Use it to reduce size of expansion.
7695         (_m4_shift3): New helper macro.
7696         (_m4_foreach): Swap argument order, and use new macro to reduce
7697         size of expansion.
7698         * doc/autoconf.texi (Looping constructs) <m4_shiftn>: Mention that
7699         count must be positive.
7701         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Fix typo.
7702         Reported by Ralf Wildenhues.
7704 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7706         * doc/autoconf.texi (Portable Shell): Improve description of zsh
7707         4.x function subshell bug with exit and trap.
7709 2007-10-15  Eric Blake  <ebb9@byu.net>
7711         Enhance AS_HELP_STRING.
7712         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't expand arguments,
7713         and reduce number of expansions.
7714         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Rework to use m4_expand,
7715         and to take indent and wrap column numbers.
7716         * tests/m4sh.at (AS@&t@_HELP_STRING): Update the test.
7717         * doc/autoconf.texi (Pretty Help Strings): Document details about
7718         arguments.
7719         (Text processing Macros): Minor tweaks.
7720         * NEWS: Document this change.
7722         Fix 2007-10-03 regression with AT_SETUP([a, b]).
7723         * lib/m4sugar/m4sugar.m4 (m4_expand): New macro.
7724         (m4_text_box): Use it.
7725         * lib/autotest/general.m4 (AT_SETUP): Use it.
7726         * lib/m4sugar/m4sh.m4 (_AS_RUN): Use it.
7727         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Test this.
7728         * NEWS: Revert caveat about semantics change on comma.
7729         * doc/autoconf.texi (Evaluation Macros): Document m4_expand.
7731 2007-10-13  Eric Blake  <ebb9@byu.net>
7733         Change m4_join to match libtool's ltsugar semantics.
7734         * lib/m4sugar/m4sugar.m4 (m4_join): Just define this, not defun.
7735         Ignore empty arguments, using...
7736         (_m4_join): ...this new helper.
7737         * tests/m4sugar.at (m4@&t@_join): New test.
7738         * doc/autoconf.texi (Text processing Macros): Document new
7739         semantics of m4_join.
7741         Make AC_PREREQ faster and more robust.
7742         * lib/m4sugar/m4sugar.m4 (m4_ignore, m4_unquote): New macros.
7743         (m4_version_prereq): Inline constant expansions.
7744         (m4_list_cmp): Reduce number of expansions, by avoiding m4_case.
7745         Rewrite in terms of [] list, not () list.
7746         (_m4_list_cmp, _m4_version_unletter): New helper macros.
7747         (m4_version_unletter): Write wrapper around new implementation to
7748         preserve old semantics.
7749         (m4_version_compare): Pass correct type of list, and avoid
7750         overhead of flattening expressions too early.
7751         (m4_do): Move to be near other quoting macros.
7752         (m4_max, m4_min): Always result in decimal output.
7753         * doc/autoconf.texi (Looping constructs): Add m4_car, m4_cdr.
7754         Move m4_do...
7755         (Evaluation Macros): ...here.  Add m4_ignore, m4_unquote.
7756         (Text processing Macros): Move m4_version_compare...
7757         (Number processing Macros): ...to this new node; document m4_cmp,
7758         m4_list_cmp, m4_sign, m4_max, m4_min.
7759         * tests/m4sugar.at (m4@&t@_version_compare): Enhance test, to pick
7760         up on bugs fixed by this patch.
7761         * NEWS: Document new macros.
7763 2007-10-12  Eric Blake  <ebb9@byu.net>
7765         * doc/autoconf.texi (Text processing Macros): Fix bad merge.
7766         (Reporting Messages): Fix underfull hbox.
7768         Some more m4sugar documentation.
7769         * lib/m4sugar/m4sugar.m4: Clean up macro order.
7770         * doc/autoconf.texi (Programming in M4): Lighten the warning on
7771         using m4sugar; it is stabilizing and useful.
7772         (Redefined M4 Macros): Touch up wording on M4 builtins; sort.  Add
7773         m4_divert, m4_undivert, __file__, __line__, __oline__.
7774         (Diagnostics): New node, documenting m4_assert, m4_errprintn,
7775         m4_fatal, m4_location, m4_warn.
7776         (Diversion support): New node, documenting m4_divert_push,
7777         m4_divert_pop, m4_divert_text, m4_divert_once.
7778         (Text processing Macros): Sort.  Add m4_flatten, m4_join,
7779         m4_newline, m4_strip, m4_text_box, m4_text_wrap.
7780         (Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
7781         as obsolescent.
7782         (Printing Messages): Change cross-reference.
7784         Document interaction of recent m4_append change with Libtool HEAD.
7785         * lib/m4sugar/m4sugar.m4 (m4_append): Document semantics change.
7786         (m4_append_uniq): Add new parameters, based on lt_append_uniq.
7787         * tests/m4sugar.at (m4@&t@_append): New test.
7788         * NEWS: Document semantics change.
7789         * doc/autoconf.texi (Text processing Macros): Likewise.
7791         s/AC_VERSION/AC_AUTOCONF_VERSION/.
7792         * doc/autoconf.texi (Versioning): Change the name.
7793         * NEWS: Likewise.
7794         * lib/autoconf/general.m4 (AC_AUTOCONF_VERSION): Likewise.
7795         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Likewise.
7796         Suggested by Ralf Wildenhues.
7798         Namespace cleanup.
7799         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE)
7800         (_AC_OUTPUT_HEADERS_PREPARE): Convert here-doc delimiters into
7801         autoconf namespace.
7802         * doc/autoconf.texi (Programming in M4sugar, Forbidden Patterns)
7803         (Programming in M4sh, Macro Names): Beef up description of
7804         namespaces reserved for autoconf.
7805         * configure: Regenerate.
7807 2007-10-12  Eric Blake  <ebb9@byu.net>
7808         and Paolo Bonzini  <bonzini@gnu.org>
7810         Speed up execution of subset of testsuite.
7811         * lib/autotest/general.m4 (TEST_FUNCTIONS): New diversion.
7812         (AT_INIT) <at_func_test>: New shell function.
7813         (AT_INIT) <at_myself>: New variable, set to absolute $as_myself.
7814         (AT_INIT) <at_test_source> New variable, names file that holds
7815         current test function definition.
7816         (AT_SETUP): Start the shell function at_func_test_#, into the
7817         TEST_FUNCTIONS diversion.
7818         (AT_CLEANUP): End the shell function.  Simplify the TESTS
7819         diversion to invoke the function.
7821 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7823         * .gitignore: Ignore tags and TAGS files.
7825 2007-10-11  Eric Blake  <ebb9@byu.net>
7827         Config header generation followup.
7828         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Check for raw newlines,
7829         which won't work with the preprocessor nor with the awk
7830         implementation.
7831         * tests/torture.at (Define a newline): Test raw newline detection,
7832         removing the XFAIL.
7833         * doc/autoconf.texi (Defining Symbols): Document recent change to
7834         allow backslash-newline.
7835         * THANKS: Update.
7837 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7839         * lib/autotest/general.m4: Put function braces in separate line.
7841 2007-10-10  Eric Blake  <ebb9@byu.net>
7843         Avoid some overhead from m4_defn and m4_popdef.
7844         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Only
7845         pass on first argument, since we are documented that way.
7846         (m4_for, m4_append_uniq, m4_text_wrap): Optimize out defined-ness
7847         check where it is safe to do so.
7848         (m4_append): Likewise, and quote the separator.
7849         (m4_text_box): Likewise, and avoid regex, also be robust to
7850         expansion and quadrigraphs.
7852         Another AC_DEFINE speedup.
7853         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Move parameter
7854         elision...
7855         (_AC_DEFINE_Q): ...here, and only do it once.
7856         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid overquoting.
7857         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix m4_defn overquoting
7858         introduced 2007-10-05.
7860         Whitespace cleanup.
7861         * lib/autoconf/general.m4: Use consistent indentation.
7862         * configure: Regenerate.
7864         * NEWS: Announce recent round of speed optimizations.
7866 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7868         * NEWS: Announce shell function usage in Autotest.
7870 2007-10-10  Eric Blake  <ebb9@byu.net>
7871         and Paul Eggert  <eggert@cs.ucla.edu>
7873         Reduce number of forks at startup.
7874         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Speed up NLS
7875         sanitization.
7876         * configure: Regenerate.
7878 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7879         and Paul Eggert  <eggert@cs.ucla.edu>
7881         Use awk for config header generation.
7882         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix comments.
7883         (_AC_OUTPUT_HEADERS_PREPARE): New macro.  Rewrite of the config
7884         header machinery for use with awk and placement outside the main
7885         config.status instantiation loop.  Retain multi-line defines
7886         through backslash-newline combinations, do not split the script
7887         any more.
7888         (_AC_OUTPUT_HEADER): Simplify accordingly, use $AWK.
7889         (_AC_OUTPUT_MAIN_LOOP): Call _AC_OUTPUT_HEADERS_PREPARE if
7890         needed.
7891         (AC_OUTPUT_MAKE_DEFS): Remove backslash-newline combinations
7892         from define values.
7893         * NEWS: Update.
7894         * tests/torture.at (#define header templates): Extend test by
7895         several more cases: white space before and after `#', macros
7896         with parameters in config.hin and as defines, multi-line macro
7897         values.
7898         (Torturing config.status): Use a define value twice the length
7899         in order to exercise the awk literal string limit.
7900         (Substitute and define special characters): Also try special
7901         delimiter, to exercise the special-case code.
7902         Suggestion by Eric Lemings.
7904 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7906         * tests/local.at (AT_COPYRIGHT): Bump copyright years.
7908 2007-10-09  Eric Blake  <ebb9@byu.net>
7910         Improve header of bin/autoconf.
7911         * lib/m4sugar/m4sh.m4 (AS_INIT): Add a 'generated from' notice.
7912         * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Override new notice
7913         from M4sh.
7914         * bin/autoconf.as: Put copyright up front in generated file.
7916         * bin/autoconf.as (exit_missing_arg): Font-lock tweak.
7918 2007-10-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7920         * doc/install.texi (Basic Installation): Document `uninstall'.
7921         * INSTALL: Regenerate.
7922         Suggestion by Roberto Bagnara.
7924 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
7926         * doc/autoconf.texi (Limitations of Usual Tools): V7 awk had 'index'.
7928         Adjust doc. to match latest gnulib.
7929         * build-aux/texinfo.tex: Sync from gnulib.
7930         * doc/standards.texi: Likewise.
7931         * doc/autoconf.texi (Copying This Manual): Rename to "GNU Free
7932         Documentation License" and remove the subsection.  This simplifies
7933         the manual a bit and is more like what other GNU projects do
7934         nowadays.
7936 2007-10-08  Eric Blake  <ebb9@byu.net>
7938         Use recent changes.
7939         * configure: Regenerate.
7941         Fix regression in m4_text_wrap from 2007-10-05.
7942         * lib/m4sugar/m4sugar.m4 (m4_max, m4_min): New macros.
7943         (m4_sign): Sort.
7944         (m4_text_wrap): Fix off-by-one error in rewrite from m4_for to
7945         m4_format.
7946         * lib/autotest/general.m4 (AT_SETUP): Avoid negative width.
7947         * tests/autotest.at (Long test title, Longer test title): Test
7948         this fix, beyond what AS_HELP_STRING already tests.
7950         Avoid m4 warnings on bad m4_format usage.
7951         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Use %*s, in case width
7952         evaulates to 0.
7953         * lib/autotest/general.m4 (AT_SETUP): Likewise; also ensure that
7954         enough arguments are provided.
7956 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
7958         * doc/autoconf.texi (Shell portability): Document shell function
7959         portability.
7961 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
7963         * lib/autotest/general.m4 (AT_INIT): Add at_func_diff_devnull,
7964         at_func_check_skip, at_func_check_status, at_func_filter_trace,
7965         at_func_log_failure shell functions.  Use test -s to avoid
7966         useless diff invocations.
7967         (at_func_check_newline): Renamed from at_check_newline.
7968         (AT_SETUP): Define AT_captured_files to empty.
7969         (AT_DIFF_STDERR(*), AT_DIFF_STDOUT(*)): New, extracted from _AT_CHECK.
7970         (_AT_CHECK): Replace m4_case with m4_ifdef/m4_indir.  Use all
7971         the shell functions.
7973 2007-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7975         Don't assume "." is writeable, for commands like "autoconf --version".
7976         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use a
7977         different heuristic instead, one that doesn't rely on creating
7978         files.
7980         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle "///"
7981         correctly.
7983 2007-10-05  Jim Meyering  <meyering@redhat.com>
7985         Avoid makeinfo warnings.
7986         * doc/autoconf.texi (Redefined M4 Macros): Add a `,' after @xref.
7987         (Looping constructs): Add ` ' after @defmac'd name, m4_do.
7989 2007-10-05  Eric Blake  <ebb9@byu.net>
7991         Resolve Python issue 1676135 regarding configure directory args.
7992         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Strip trailing
7993         slashes from directory arguments.
7994         * tests/base.at (configure directories): New test.
7995         * doc/autoconf.texi (Installation Directory Variables): Document
7996         the change.
7997         * NEWS: Likewise.
7998         * THANKS: Update.
7999         Reported by Björn Lindqvist.
8001         Provide better short-circuiting operation.
8002         * lib/m4sugar/m4sugar.m4 (m4_cond, m4_newline): New macros.
8003         (m4_text_wrap): Use it.  Also avoid useless m4_for.
8004         * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE, AS_LITERAL_IF): Use
8005         new macro.
8006         (_AS_IDENTIFIER_IF): Likewise, and fix bug when $1 is [,].
8007         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Use new macros
8008         to avoid regexps.
8009         * doc/autoconf.texi (Redefined M4 Macros): Expand m4_if
8010         documentation.  Sort m4_mkstemp, m4_undefine.  Move m4_ifndef...
8011         (Conditional constructs): ...here, to new section.  Also document
8012         m4_cond, m4_ifval, m4_n, m4_ifvaln, m4_ifset, m4_case, m4_bmatch,
8013         m4_bpatsubsts, and m4_default.
8014         (Looping constructs): Document m4_shiftn, m4_shift2, m4_shift3,
8015         m4_do.
8017 2007-10-04  Eric Blake  <ebb9@byu.net>
8019         Fix recent testsuite failures.
8020         * lib/autotest/general.m4 (AT_INIT, AT_SETUP): Double-quote text
8021         that must not be re-expanded after AS_ESCAPE.
8022         * lib/m4sugar/m4sh.m4 (_AS_IDENTIFIER_IF): Don't expand $1 when
8023         checking if it is an identifier.
8025         Whitespace cleanup.
8026         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Avoid
8027         leading whitespace, as it caused space-tab in testsuite.
8028         (AT_INIT): Avoid trailing newlines in testsuite.
8030         One more round of m4_foreach_w speedups.
8031         * lib/m4sugar/m4sugar.m4 (m4_flatten): Only use regex if newline
8032         is present.
8033         (_m4_split): Avoid useless expansions inside definition.  Move
8034         argument defaulting...
8035         (m4_split): ...here.  Change alternate quote to something less
8036         likely to appear in $1.  Also, special case space as regexp...
8037         (m4_foreach_w): ...to avoid regexp on single-term list.
8038         (m4_default, m4_defn, m4_popdef, m4_undefine, _m4_foreach): Avoid
8039         useless expansions inside definition.
8040         * tests/m4sugar.at (m4@&t@_split): Add tests.
8042 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
8044         * general.m4 (AT_INIT): Add at_check_newline function.
8045         (_AT_DECIDE_TRACEABLE): Include at_traceon test, use shell function.
8046         (_AT_CHECK): Don't use at_trace_this.
8048 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
8050         Fix previous commit.
8051         * lib/autotest/general.m4 (AT_LINE): Fix regex.
8053 2007-10-04  Eric Blake  <ebb9@byu.net>
8055         Speed up building testsuites.
8056         * lib/autotest/general.m4 (AT_LINE): Only use regex when file
8057         changed since last time.  Use simpler regex.
8059 2007-10-03  Eric Blake  <ebb9@byu.net>
8061         Optimize checking for identifiers.
8062         * lib/m4sugar/m4sh.m4 (AS_IDENTIFIER_IF, _AS_IDENTIFIER_IF): New
8063         macros, more efficient than regex on m4_re_word.
8064         * lib/autoconf/general.m4 (AC_SUBST, AC_DEFINE_TRACE_LITERAL):
8065         Rewrite in terms of new macro.  As a side-effect, AC_DEFINE can
8066         now use @&t@.
8067         * configure: Regenerate.
8069         Remove some XFAILs, and make AT_SETUP output line up.
8070         * lib/autotest/general.m4 (AT_SETUP): Only expand description
8071         once; thereafter, use its expansion, properly quoted.
8072         * tests/autotest.at (AT_CHECK_AT_TITLE): Also check macro
8073         expansion with arguments, and check for aligned output.
8074         (AT_CHECK_AT_TITLE_CHAR): Remove XFAILs for tests that now pass.
8075         Add a test for macros with parameters.
8076         * NEWS: Document the semantics change.
8077         * tests/base.at: Fix test titles containing commas.
8078         * tests/compile.at: Likewise.
8079         * tests/tools.at: Likewise.
8080         * tests/torture.at: Likewise.
8082         Another round of regex avoidance.
8083         * lib/m4sugar/m4sugar.m4 (m4_cr_alnum, m4_cr_all)
8084         (_m4_define_cr_not, m4_cr_not_letters, m4_cr_not_LETTERS)
8085         (m4_cr_not_Letters, m4_cr_not_digits, m4_cr_not_alnum)
8086         (m4_cr_not_symbols1, m4_cr_not_symbols2): New macros, implementing
8087         character ranges useful in m4_translit.
8088         (m4_toupper, m4_tolower): Optimize the constant portion of
8089         definition.
8090         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Also reject @S|@ because it
8091         creates $, and reject [] thanks to AS_TR_SH rewrite.
8092         (AS_TR_SH, AS_TR_CPP): Use just translit, not bpatsubst.
8093         (AS_ESCAPE): Factor...
8094         (_AS_ESCAPE): ...into new macro, with second argument required.
8095         Avoid regex in common case.
8096         (_AS_QUOTE): Use new macro.
8098         Whitespace cleanup.
8099         * lib/autoconf/types.m4: Avoid space-tab.
8100         * lib/m4sugar/m4sh.m4: Use tab consistently.
8102 2007-10-03  Paul Eggert  <eggert@cs.ucla.edu>
8104         * lib/m4sugar/m4sugar.m4 (m4_shift2, m4_shift3): New macros.
8105         (m4_shiftn): Remove no-longer-needed optimization.  Perhaps we
8106         should remove m4_shiftn entirely?
8107         (m4_case, b4_bmatch, m4_map_sep, m4_bpatsubsts, m4_join):
8108         Prefer m4_shift2 and m4_shift3 to m4_shiftn.
8109         * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
8110         * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Likewise.
8111         * tests/autotest.at (AT_CHECK_AT_TEST): Likewise.
8113 2007-10-03  Eric Blake  <ebb9@byu.net>
8115         Comment touchups.
8116         * lib/m4sugar/m4sugar.m4: Grammar fixes in comments.
8118 2007-10-02  Eric Blake  <ebb9@byu.net>
8120         Optimize appending text.
8121         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Use index, not regular
8122         expressions.
8124         Optimize recursion.
8125         * lib/m4sugar/m4sugar.m4 (m4_shiftn): This macro is called in a
8126         lot of hot spots; optimize it for 2 and 3 shifts.
8128         Optimize AC_PREREQ and other m4sugar numerics.
8129         * lib/m4sugar/m4sugar.m4 (m4_sign): Write with m4_eval.
8130         (m4_cmp): Compare arbitrary expressions, without overflow.
8131         (m4_version_unletter): Also recognize capital letters.
8132         (m4_version_compare): Avoid regex when splitting version number
8133         string.
8135 2007-10-01  Eric Blake  <ebb9@byu.net>
8137         Once again, reject IRIX m4.
8138         * m4/m4.m4 (AC_PROG_GNU_M4): Use indir builtin to root out non-GNU
8139         implementations that ignore --trace.
8140         * configure: Regenerate.
8141         Reported by Ralf Wildenhues.
8143         Fix regression in AC_DEFINE([macro(with_arg)]).
8144         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't chop off close
8145         quotes with a careless m4_substr.
8147 2007-09-30  Eric Blake  <ebb9@byu.net>
8149         Allow nameless iteration.
8150         * lib/m4sugar/m4sugar.m4 (m4_for, _m4_for): Access variable
8151         indirectly.
8152         * tests/m4sugar.at (myvar): Test this.
8154 2007-09-29  Eric Blake  <ebb9@byu.net>
8156         Speed optimization: avoid m4 regex when other algorithms work.
8157         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Rewrite without regex.
8158         (_AS_QUOTE_IFELSE): Likewise.
8159         * lib/m4sugar/m4sugar.m4 (m4_strip): Reduce from 3 to 2 regex.
8160         (m4_bpatsubsts): Split...
8161         (_m4_bpatsubsts): ...so that recursion can avoid patsubst on empty
8162         regex.
8163         (_m4_divert()): Define, to avoid m4 warning on `m4_divert'.
8164         (m4_qlen): Optimize on short strings, to avoid regex.
8165         (m4_sign): Avoid regex, and fix bug with `01' and `-0'.
8166         * lib/autoconf/general.m4 (AC_CACHE_VAL): Rewrite without regex.
8167         (AC_DEFINE_TRACE): Likewise.
8169 2007-09-28  Eric Blake  <ebb9@byu.net>
8171         Oops - my earlier 'optimization' caused a regression.
8172         * tests/local.at (AT_CHECK_M4): Fix typo.
8174 2007-09-27  Eric Blake  <ebb9@byu.net>
8175         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8177         Catch even more common AC_CACHE_VAL mistakes.
8178         * lib/autoconf/general.m4 (AC_CACHE_VAL): Warn if cache variable
8179         lacks '_cv_', or if AC_SUBST appears in body.
8180         * tests/base.at (AC_CACHE_CHECK): Test this change.
8182 2007-09-27  Stepan Kasal  <kasal@ucw.cz>
8183         and Eric Blake  <ebb9@byu.net>
8185         Autotest no longer caters to Ultrix redirection limitation.
8186         * doc/autoconf.texi (Writing testsuite.at): Remove the
8187         limitation that the first parameter of AT_CHECK cannot
8188         contain redirection.
8189         (File Descriptors): Mention that Ultrix limitation is no longer a
8190         show-stopper in modern code.
8191         * tests/local.at (AT_CHECK_M4): Fix for cases when the fourth
8192         parameter is `stderr' or `experr'.  Optimize if it was `ignore'.
8193         * lib/autotest/general.m4 (AT_CHECK): Update comment.
8195 2007-09-27  Eric Blake  <ebb9@byu.net>
8197         Squelch changeword in m4sugar.
8198         * lib/m4sugar/m4sugar.m4 (changeword): Disable this experimental
8199         feature of m4 1.4.x.
8201         Configure whitespace touchups.
8202         * lib/autoconf/general.m4 (_AC_INIT_HELP): Fix alignment of
8203         installation directories, and avoid TAB, in configure --help
8204         output.
8205         * configure.ac: Avoid extra trailing newline.
8206         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Avoid space-tab.
8207         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid TAB in
8208         config.status --help output.
8209         * configure: Regenerate.
8211         Fix underquotation in AS_HELP_STRING.
8212         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Don't underquote lhs
8213         argument.
8214         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't underquote
8215         first-prefix argument.
8216         * tests/m4sh.at (AS@&t@_HELP_STRING): Test this fix.
8217         * NEWS: Document AS_HELP_STRING fix.
8219         Autotest formatting touchups.
8220         * lib/autotest/general.m4 (HELP_TUNING): Avoid TAB in terminal
8221         output.
8222         (PATH): Simplify computation of new PATH.
8224 2007-09-26  Eric Blake  <ebb9@byu.net>
8226         Fix testsuite breakage in last patch.
8227         * tests/autotest.at (AT_CHECK_AT_TITLE): Properly quote the
8228         font-lock fix.
8229         * tests/torture.at (@%:@define header templates): Rename, so that
8230         output lines up correctly.
8232         More font-lock happiness.
8233         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Clean up font
8234         confusion.
8236 2007-09-25  Eric Blake  <ebb9@byu.net>
8238         Typo fixes.
8239         * lib/autoconf/general.m4 (AC_SUBST): Fix typo in comment.
8240         * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Likewise.
8242         Improve documentation of M4 parameter expansion.
8243         * doc/autoconf.texi (Quoting and Parameters): New section.
8244         (Quotation and Nested Macros): Improve wording.
8246         Improve C99 detection.
8247         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and
8248         avoid deprecation warning with icc.
8249         * THANKS: Update.
8250         Reported by Ted Bullock.
8252 2007-09-24  Jim Meyering  <jim@meyering.net>
8254         Whenever possible, use the vertical bar as sed delimiter.
8255         * lib/autoconf/functions.m4 (GETLOADAVG_LIBS) [AC_FUNC_GETLOADAVG]:
8256         Use "|", not "!".
8257         * lib/autoconf/status.m4 (_AC_SRCDIRS) [ac_top_builddir_sub]:
8258         [ac_dir_suffix]: Use "|", not "," as sed delimiter.
8259         * tests/mktests.sh (as_me): Likewise.
8260         * lib/freeze.mk (check-forbidden-patterns): Likewise.
8261         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
8262         * configure: Regenerate.
8263         * doc/autoconf.texi (Shell Substitutions): Use "|", not "," in examples.
8264         * lib/autotest/general.m4 (AT_INIT): Use "|", not "&" as sed delimiter
8265         in the : -> $PATH_SEPARATOR transformation of $AUTOTEST_PATH.
8266         This is fine, as long as $PATH_SEPARATOR doesn't contain "|".
8268 2007-09-22  Jim Meyering  <jim@meyering.net>
8270         Add a comment.
8271         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Document the
8272         2004-05-31 change also with a comment in the code.
8274 2007-09-20  Eric Blake  <ebb9@byu.net>
8276         More contribution housekeeping.
8277         * THANKS: Sort.
8278         * AUTHORS: Sort, reflect recent assignment from Helge Deller.
8280         Ignore additional files, when copying cross-repository.
8281         * .gitignore: Ignore CVS directories, emacs edits.
8282         * .cvsignore: Ignore .git directory, emacs edits.
8284 2007-09-15  Eric Blake  <ebb9@byu.net>
8286         Provide AC_VERSION, not m4_AUTOCONF_VERSION.
8287         * doc/autoconf.texi (Text processing Macros): Remove mention of
8288         m4_AUTOCONF_VERSION, and leave m4_PACKAGE_VERSION undocumented
8289         once again.
8290         (Notices): Move AC_PREREQ...
8291         (Versioning): ...to this new section, alongside the new AC_VERSION
8292         alias for the undocumented m4_PACKAGE_VERSION.
8293         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): Revert change.
8294         * lib/autoconf/general.m4 (AC_VERSION): New macro.
8295         * NEWS: Update to match this rename.
8296         * tests/m4sugar.at (m4@&t@_version_compare): Remove tests of
8297         m4_PACKAGE_VERSION.
8298         * tests/tools.at (autoconf: AC_VERSION): New test.
8299         Suggested by Paolo Bonzini and Benoit Sigoure.
8301 2007-09-14  Eric Blake  <ebb9@byu.net>
8303         Prepare for conversion to git.
8304         * doc/.cvsignore: Avoid multiple listings on one line.
8305         * bin/.cvsignore: Likewise.
8306         * .gitignore, bin/.gitignore, config/.gitignore, doc/.gitignore,
8307         lib/.gitignore, lib/Autom4te/.gitignore, lib/autoconf/.gitignore,
8308         lib/autoscan/.gitignore, lib/autotest/.gitignore,
8309         lib/emacs/.gitignore, lib/m4sugar/.gitignore, man/.gitignore,
8310         tests/.gitignore: New files, identical to .cvsignore counterpart.
8312 2007-09-13  Eric Blake  <ebb9@byu.net>
8314         Editing eye-candy.
8315         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Restore
8316         font-lock balance.
8317         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Likewise.
8318         * lib/autoconf/general.m4 (_AC_DO_ECHO): Likewise.
8319         * configure: Regenerate.
8321         Clean up 'make dist' of previous patch.
8322         * tests/Makefile.am (EXTRA_DIST): Distribute mktests.stamp.
8323         (CLEANFILES): Don't clean the stamp, since we distribute the
8324         generated files pre-built.
8325         (MAINTAINERCLEANFILES): Clean it here instead.
8326         * tests/Makefile.in: Regenerate.
8328         Avoid parallel 'make check' issue.
8329         * tests/Makefile.am (mktests.stamp): New witness.
8330         (TESTSUITE_GENERATED_AT): Use it.
8331         (CLEANFILES): Clean the witness.
8332         * tests/.cvsignore (mktests.stamp): Ignore the witness.
8334         Document another awk pitfall.
8335         * doc/autoconf.texi (Limitations of Usual Tools) <awk>: Document
8336         limitation of field variables in END.
8337         Reported by Gary V. Vaughan.
8339         * AUTHORS: Add missing entries.
8341 2007-09-12  Eric Blake  <ebb9@byu.net>
8343         Publish m4_ifndef, m4_version_compare, m4_AUTOCONF_VERSION.
8344         * doc/autoconf.texi (Text processing Macros): Document
8345         m4_version_compare, m4_AUTOCONF_VERSION, m4_PACKAGE_VERSION.
8346         (Redefined M4 Macros): Document m4_ifndef.
8347         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): New macro; we
8348         can't obsolete m4_PACKAGE_VERSION at this time since Autoconf 1.10
8349         used it while it was undocumented.
8350         * NEWS: Document this change.
8351         * lib/m4sugar/Makefile.am (version.m4): Update copyright dates.
8352         * lib/m4sugar/Makefile.in: Regenerate.
8353         * tests/m4sugar.at (m4@&t@_version_compare): New test.
8354         Reported by Bruno Haible.
8356         * doc/autoconf.texi (Generic Compiler Characteristics): Add
8357         missing index entries.
8359 2007-09-11  Eric Blake  <ebb9@byu.net>
8361         Centralize all system extensions checks.
8362         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
8363         from AC_AIX, AC_GNU_SOURCE, AC_MINIX.  Add Interix support.
8364         (AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
8365         AC_USE_SYSTEM_EXTENSIONS.
8366         (AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
8367         (AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
8368         * doc/autoconf.texi (Posix Variants): Reword this section,
8369         emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
8370         rather than a series of system-specific checks.
8371         (Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
8372         AC_MINIX.
8373         * NEWS: Document this change.
8374         * THANKS: Update.
8375         Reported by Martin Koeppe.
8377 2007-09-08  Eric Blake  <ebb9@byu.net>
8379         Clean up obsolete macros references.
8380         * doc/autoconf.texi: Add anchors to support better
8381         cross-referencing.
8382         (Particular Structures): Move obsolete macros descriptions...
8383         (External Software): Likewise.
8384         (Package Options): Likewise.
8385         (Obsolete Macros): ...to here.  Add cross-references to
8386         documentation on replacements.
8387         * NEWS: Mention that these macros have been obsolete for a while
8388         now: AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_RDEV AC_WITH AC_ENABLE.
8390         Improve M4 path searching during configure.
8391         * lib/autoconf/programs.m4 (AC_PATH_PROGS_FEATURE_CHECK): New
8392         macro.
8393         (_AC_PATH_PROG_FEATURE_CHECK): Rename...
8394         (_AC_PATH_PROGS_FEATURE_CHECK): ...to this, add defaulted action
8395         parameter, and kill side effects.
8396         (_AC_PROG_GREP, AC_PROG_SED): Adjust callers.
8397         (_AC_FEATURE_CHECK_LENGTH): Kill extra whitespace.
8398         * m4/m4.m4 (AC_PROG_GNU_M4): Don't stop searching until working m4
8399         is found.
8400         (AC_PATH_PROGS_FEATURE_CHECK): Add backwards compatibility hack to
8401         allow bootstrapping with autoconf 2.61.
8402         * configure.ac (M4): AC_PROG_GNU_M4 now exits on failure.
8403         * configure: Regenerate.
8404         * doc/autoconf.texi (Generic Programs): Document new macro.
8405         * tests/mktests.sh (au_exclude_script): Exclude auto-testing new
8406         macro.
8407         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): New test.
8408         * NEWS: Document the change.
8409         * THANKS: Update.
8410         Reported by Hans Aberg.
8412         * doc/autoconf.texi (Generic Programs): Fix typo.
8414 2007-09-06  Eric Blake  <ebb9@byu.net>
8416         * doc/autoconf.texi (Generic Programs): Use $PATH_SEPARATOR, not
8417         :, and make it clear that optional @var{path} defaults to $PATH.
8418         (Erlang Compiler and Interpreter): Likewise.
8420         Texinfo cleanup.
8421         * doc/autoconf.texi: Avoid lines > 80 columns when possible.
8422         Reword some paragraphs to avoid overfull, underfull hbox
8423         warnings.  Add index entries to avoid overfull vbox warnings.
8425 2007-09-05  Eric Blake  <ebb9@byu.net>
8427         * NEWS: Adjust wording for AC_CONFIG_LINKS.
8428         Reported by Ralf Wildenhues.
8430 2007-09-03  Eric Blake  <ebb9@byu.net>
8432         * NEWS: Document fixes that have been applied since 2.61a.
8434         Housekeeping.
8435         * THANKS: Update, and convert to UTF-8 encoding.
8436         * AUTHORS: Likewise.
8438 2007-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8440         * lib/autoconf/general.m4 (AC_SITE_LOAD): Guard against file
8441         names beginning with `-' again.
8443 2007-08-22  Stepan Kasal  <kasal@ucw.cz>
8444             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8446         * doc/autoconf.texi (Defining Directories): Mention
8447         AM_CPPFLAGS, as the way to modify CPPFLAGS when using Automake.
8449 2007-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8451         * lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
8452         here, this macro is expanded by AC_INIT.  Fixes 2.60 regression.
8453         * tests/base.at (configure arguments): New test.
8454         * THANKS: Update.
8455         Report by Olaf Lenz.
8457         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Expand macro
8458         arguments in comment.
8459         Report by Vincent Torri <vtorri at univ minus evry dot fr>.
8461 2007-08-20  Benoit Sigoure  <tsuna@lrde.epita.fr>
8463         * doc/autoconf.texi (File System Conventions): Index the proper
8464         way of detecting absolute file names.
8466 2007-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8468         * build-aux/config.guess, build-aux/config.sub,
8469         build-aux/elisp-comp, build-aux/install-sh, build-aux/mdate-sh,
8470         build-aux/missing, build-aux/texinfo.tex, doc/fdl.texi,
8471         doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
8472         * doc/autoconf.texi (GNU Free Documentation License): Adjust for
8473         sectioning change in fdl.texi.
8475         * bin/autoconf.as: Update --version output to match current GCS.
8476         * bin/autoheader.in: Likewise.
8477         * bin/autom4te.in: Likewise.
8478         * bin/autoreconf.in: Likewise.
8479         * bin/autoscan.in: Likewise.
8480         * bin/autoupdate.in: Likewise.
8481         * bin/ifnames.in: Likewise.
8483 2007-08-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8485         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not try to link a
8486         file to itself if source and build trees coincide.
8487         * tests/torture.at (AC_CONFIG_LINKS and identical files): New
8488         test.
8489         Report by Sebastian Freundt <hroptatyr@gna.org>.
8491 2007-07-20  Paul Eggert  <eggert@cs.ucla.edu>
8493         Reword the copyright notices to match what's suggested in GPLv3.
8494         In ChangeLog files, use more-permissive notice rather than GPL, as
8495         per usual GNU standards these days.
8497 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
8499         * doc/autoconf.texi (autoreconf Invocation): Document ACLOCAL_AMFLAGS
8500         limitation reported by Leo Moisio in
8501         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432941>.
8503 2007-07-03  Paul Eggert  <eggert@cs.ucla.edu>
8505         * COPYING: Update to GPLv3.  All uses changed.
8507 2007-06-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8508         and Paul Eggert  <eggert@cs.ucla.edu>
8510         * doc/autoconf.texi (Limitations of Usual Tools): sed -e ''
8511         fails on AIX 5.3.
8513 2007-06-17  Noah Misch  <noah@cs.caltech.edu>
8515         * lib/autotest/general.m4 (AT_INIT): Handle absolute `srcdir'.
8516         * tests/autotest.at (srcdir propagation): Test absolute `srcdir' and
8517         `srcdir' as subdirectory of `builddir'.
8519 2007-06-13  Noah Misch  <noah@cs.caltech.edu>
8521         * lib/autotest/general.m4 (AT_INIT): Compute $srcdir correctly.
8522         * tests/autotest.at (srcdir propagation): New test.
8523         * THANKS: Update.
8524         Reported by Mike Frysinger.
8526 2007-06-13  Paul Eggert  <eggert@cs.ucla.edu>
8528         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Set FPATH too.
8529         Problem reported by Fred Kreek in
8530         <http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00009.html>.
8531         * doc/autoconf.texi (Special Shell Variables): Warn about FPATH.
8532         (Macro Names, Defining Directories): Don't mention PATH as a name
8533         for a fully qualified file name, as this usage violates the GNU
8534         coding standards and we shouldn't recommend it.
8536         * lib/autotest/general.m4 (AT_INIT): Don't set PATH to the empty
8537         string and then assume shell builtins like "test" will work.
8539 2007-06-12  Noah Misch  <noah@cs.caltech.edu>
8541         * lib/autoconf/general.m4 (AC_SUBST): Raise a fatal error if VARIABLE is
8542         not a valid shell variable name.
8543         * tests/mktests.sh (ac_exclude_list): Add AC_ARG_VAR.
8544         * tests/torture.at (AC_SUBST: variable name validation): New test.
8545         Reported by Andreas Schwab.
8547 2007-06-04  Noah Misch  <noah@cs.caltech.edu>
8549         * doc/autoconf.texi (AC_F77_MAIN): Give a specific usage example that
8550         works with both C and C++.
8552 2007-06-03  Noah Misch  <noah@cs.caltech.edu>,
8553             Bruno Haible  <bruno@clisp.org>
8555         * lib/autoconf/c.m4 (AC_OPENMP): Use a simple loop instead of compiler
8556         brand tests.
8558 2007-05-31  Paul Eggert  <eggert@cs.ucla.edu>
8560         * doc/autoconf.texi (Particular Types): Give example of use for
8561         AC_TYPE_INT8_T etc.
8563 2007-05-29  Stepan Kasal  <kasal@ucw.cz>
8565         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Fix a typo.
8567 2007-05-28  Paul Eggert  <eggert@cs.ucla.edu>
8569         * doc/autoconf.texi (Particular Types): AC_TYPE_INT8_T does not
8570         define HAVE_INT8_T, and likewise for similar macros.
8571         Problem reported by Patrick Welche in
8572         <http://lists.gnu.org/archive/html/autoconf/2007-05/msg00062.html>.
8574 2007-05-25  Noah Misch  <noah@cs.caltech.edu>
8576         * bin/Makefile.am ($(top_builddir)/bin/autom4te): New dependency.
8578 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
8580         * lib/autoconf/c.m4 (AC_OPENMP): Don't echo --enable-openmp
8581         choice, since that's what we do with --enable-largefile etc.
8582         Redo indenting and assignments to simplify things a bit, and make
8583         the parens work with Emacs.
8585         * doc/autoconf.texi (Generic Compiler Characteristics): Fix typo
8586         in my previous change: AC_C_OPENMP -> AC_OPENMP.  Reported by Bruno
8587         Haible.
8589 2007-05-21  Noah Misch  <noah@cs.caltech.edu>
8591         * lib/autoconf/c.m4 (AC_OPENMP): Simplify use of AC_ARG_ENABLE.
8592         * tests/local.at (AT_CHECK_ENV): Exempt OPENMP_CFLAGS.
8594 2007-05-21  Bruno Haible  <bruno@clisp.org>
8596         * NEWS: Rename AC_C_OPENMP to AC_OPENMP.
8597         * lib/autoconf/c.m4 (AC_OPENMP): Renamed from AC_C_OPENMP.
8598         * doc/autoconf.texi (Generic Compiler Characteristics): Move
8599         renamed AC_OPENMP documentation here, from "C compiler".
8600         Mention C++ and Fortran.
8602 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
8604         * doc/autoconf.texi (C Compiler): Tweak OpenMP documentation a bit.
8606 2007-05-21  Bruno Haible  <bruno@clisp.org>
8608         * NEWS: Mention AC_C_OPENMP.
8609         * lib/autoconf/c.m4 (AC_C_OPENMP): New macro.
8610         * doc/autoconf.texi (C Compiler): Document AC_C_OPENMP.
8611         Based in part on Steven G. Johnson's investigations for the AX_OPENMP
8612         macro in the Autoconf macro archive.
8614 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8616         * bin/autom4te.in: Fix typos.
8618 2007-05-16  Noah Misch  <noah@cs.caltech.edu>
8620         * bin/autoconf.as: Handle `-' just like other input files.
8621         * bin/autom4te.in (parse_args): Pass `-' through.
8622         (handle_output): Skip the forbidden token search if we read from stdin.
8623         (up_to_date): Always treat stdin as out of date.
8624         * tests/tools.at (autoconf: input from stdin): New test.
8625         (autoconf: forbidden tokens, basic): Check a second `autoconf' run.
8627 2007-05-16  Stepan Kasal  <kasal@ucw.cz>
8629         * tests/foreign.at tests/semantics.at, tests/tools.at: Remove
8630         parameters for AT_CLEANUP.
8631         * tests/local.at (AT_CHECK_AU_MACRO): Likewise.
8633 2007-05-14  Paul Eggert  <eggert@cs.ucla.edu>
8635         * NEWS: Document that AC_C_RESTRICT checks 'restrict' last.
8636         * doc/autoconf.texi (C Compiler): Likewise.
8638 2007-05-14  Noah Misch  <noah@cs.caltech.edu>
8640         * lib/autoconf/c.m4 (AC_C_RESTRICT): Check `restrict' last.
8642 2007-05-09  Stepan Kasal  <kasal@ucw.cz>
8644         * doc/autoconf.texi: Direntry for "autoconf Invocation"
8645         renamed to "autoconf-invocation"
8647         * doc/autoconf.texi (Caching Results): The CACHE-ID variable
8648         in the examples should not use the internal "ac_" prefix.
8650 2007-05-05  Noah Misch  <noah@cs.caltech.edu>
8652         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): Use `eval'.
8653         * doc/autoconf.texi ($@, case): Document Zsh limitations.
8655 2007-05-03  Stepan Kasal  <kasal@ucw.cz>
8657         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
8658         Reorganize the comments before and in the macro.
8660 2007-05-02  Stepan Kasal  <kasal@ucw.cz>
8662         * lib/autoconf/lang.m4, lib/autoconf/c.m4,
8663         lib/autoconf/fortran.m4, lib/autoconf/erlang.m4: Cleanup of
8664         section titles and other comments; no code change.
8666 2007-05-01  Kevin Ryde  <user42@zip.com.au>
8668         * doc/autoconf.texi (Particular Programs): Typo
8669         @acindex{AC_PROG_MKDIR_P} shouldn't have "AC" in that call.
8671 2007-04-30  Paul Eggert  <eggert@cs.ucla.edu>
8673         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Don't imply that
8674         'configure' will fail if the shell lacks proper support for shell
8675         functions.  Suggested by RMS.
8677 2007-04-29  Paul Eggert  <eggert@cs.ucla.edu>
8679         * doc/autoconf.texi (Limitations of Builtins): Correct the warning
8680         about Solaris /bin/printf '%010000x' 123.  Problem reported by
8681         Bruno Haible.
8683 2007-04-28  Paul Eggert  <eggert@cs.ucla.edu>
8685         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look
8686         for a.* when searching for executables, as this prevents users
8687         from having files like a.c.  Problem reported by Ralf Wildenhues in:
8688         http://lists.gnu.org/archive/html/autoconf-patches/2007-04/msg00029.html
8689         This fixes a problem introduced on 2000-12-19.
8691 2007-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8693         * doc/autoconf.texi (Limitations of Builtins): Warn about Solaris
8694         /bin/printf '%010000x' 123.  Problem reported by Arto C. Nirkko
8695         via Bruno Haible.
8697 2007-04-12  Paul Eggert  <eggert@cs.ucla.edu>
8699         * NEWS: Document recent changes to AC_CHECK_ALIGNOF, AC_CHECK_SIZEOF,
8700         AC_CHECK_TYPE, AC_CHECK_TYPES.
8701         * doc/autoconf.texi (Generic types): C types must be type-names
8702         (the C terminology), not type-ids (the C++ term).  C++ types
8703         must not be anonymous.
8704         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Remove special case
8705         for C++; this drops support for anonymous struct and union types,
8706         which were problematic anyway.
8707         * tests/semantics.at (AC_CHECK_HEADERS_NEW): Adjust test to work even
8708         for C++.
8710 2007-04-12  Jim Meyering  <jim@meyering.net>
8712         * doc/autoconf.texi (Libraries): Typo fix: insert missing "in".
8714 2007-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8716         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Fix AC_CONFIG_LINKS
8717         to prefer a link source from the build tree, if it exists.
8718         Report by Pallav Gupta <pallavgupta@gmail.com>.
8720 2007-04-11  Paul Eggert  <eggert@cs.ucla.edu>
8722         * doc/autoconf.texi (Generic Types): Document the restrictions
8723         on types imposed by AC_CHECK_TYPE, AC_CHECK_TYPES.
8724         (Generic Compiler Characteristics): AC_CHECK_SIZEOF now works
8725         with objects too.  Document the restrictions on its use.
8726         Document the restrictions on AC_CHECK_ALIGNOF's type argument.
8727         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW):
8728         For C, just try sizeof (TYPE) and sizeof ((TYPE)); if the former
8729         works but the latter doesn't, then it's a valid type.
8730         This lets people use function types and so forth.
8731         For C++ there doesn't seem to be a simple solution, so leave it alone.
8732         (AC_CHECK_SIZEOF): Allow argument to be a variable.
8733         (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Don't bother to invoke
8734         AC_CHECK_TYPE; that wasn't documented or necessary.
8736 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
8738         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Skip AS_TEST_X
8739         when cross-compiling.
8741 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
8743         * doc/autoconf.texi (External Software): Fix a typo in the
8744         previous change.
8746 2007-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8748         * doc/autoconf.texi (External Software, Package Options):
8749         Fix ambiguous wording.  Report by Reuben Thomas <rrt@sc3d.org>.
8751 2007-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8753         * doc/autoconf.texi (Particular Types): AC_C_LONG_DOUBLE is now
8754         obsolescent.  Suggested by Bruno Haible.
8755         * NEWS: Document this.
8757 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
8759         * doc/autoconf.texi (Here-Documents, Limitations of Builtins):
8760         (Limitations of Usual Tools): Don't say "older" if Solaris 10 by
8761         default still has the problem.  Problem reported by Bruce Korb.
8763 2007-03-28  Stepan Kasal  <kasal@ucw.cz>
8764         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8766         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix a
8767         comment in the generated config.status.
8769 2007-03-27  Stepan Kasal  <kasal@ucw.cz>
8771         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Update comment.
8773 2007-03-26  Paul Eggert  <eggert@cs.ucla.edu>
8775         * doc/autoconf.texi (Shellology): Rework treatment of the 'test'
8776         command and case statements to make it a bit clearer and describe
8777         more pitfalls.
8779 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
8781         * doc/autoconf.texi (C Compiler): Mention that AC_PROG_CC_C99 also
8782         checks for unsigned long long int.
8784 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8786         * doc/autoconf.texi (Limitations of Usual Tools): Warn about other
8787         nonstandard grep R.E. escape sequences.
8789 2007-03-17  Jim Meyering  <jim@meyering.net>
8791         * doc/autoconf.texi: Adjust grammar around use of "heuristics".
8792         (Limitations of Usual Tools): Also list \< and \>, and mention that
8793         HP-UX's grep, like the one from Solaris, does not support that syntax.
8795 2007-03-09  Stepan Kasal  <kasal@ucw.cz>
8797         * doc/autoconf.texi (Specifying Names): `--host' does not
8798         change the build type.
8800 2007-03-05  Paul Eggert  <eggert@cs.ucla.edu>
8802         * doc/autoconf.texi (C Compiler): Warn that AC_C_BIGENDIAN
8803         suggests AC_CONFIG_HEADERS.
8804         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Warn if not using
8805         AC_CONFIG_HEADERS.  Problem reported by
8806         Peter O'Gorman.
8808 2007-02-28  Paul Eggert  <eggert@cs.ucla.edu>
8810         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Fix typo "__LITLE_ENDIAN__".
8811         Problem reported by Paolo Bonzini in:
8812         http://lists.gnu.org/archive/html/autoconf-patches/2007-02/msg00024.html
8813         * tests/semantics.at (AC_C_BIGENDIAN): Don't reject hosts that have
8814         universal binaries.  Problem reported by Elias Pipping.
8816 2007-02-27  Paul Eggert  <eggert@cs.ucla.edu>
8818         * NEWS: AC_C_BIGENDIAN now supports universal binaries a la Mac OS X.
8819         * doc/autoconf.texi (C Compiler): Document this.  There is a new
8820         extra argument ACTION-IF-UNIVERSAL.
8821         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Implement this.
8822         Add support for Solaris-style _LITTLE_ENDIAN and _BIG_ENDIAN.
8823         Reindent for sanity's sake.
8825 2007-02-24  Eric Blake  <ebb9@byu.net>
8827         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
8828         copyright.
8829         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
8830         * lib/autotest/general.m4 (AT_INIT): Likewise.
8831         (_AT_DECIDE_TRACEABLE): Fix syntax highlighting.
8833 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8835         * lib/autotest/general.m4 (AT_INIT): With --clean, return exit
8836         status of rm so we know when it failed.
8837         If cleaning of test dir failed before running the test, warn.
8838         Output the line separator in verbose mode before the warning
8839         to make clear the warning belongs to the following test.
8841 2007-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8843         * doc/autoconf.texi (Parentheses): Mention problem with (( in
8844         shells.
8846 2007-02-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8847         and Paul Eggert  <eggert@cs.ucla.edu>
8849         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix quoting
8850         errors introduced in last change.
8852 2007-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8854         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer \r to
8855         an actual carriage return.  Use "ac_cr" to contain the actual
8856         carriage return.
8857         * doc/autoconf.texi (Limitations of Usual Tools): Document problem
8858         with traditional Awk and begin.
8859         * tests/torture.at (Limitations of Builtins): Document the problem
8860         with Bash 2.03 printf.
8861         (Substitute and define special characters):
8862         Remove trailing white space.  Work around a bug in Solaris 8 /bin/bash.
8864 2007-02-06  Ralf Menzel  <menzel@ls6.cs.uni-dortmund.de>  (tiny change)
8866         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Redirect
8867         input from /dev/null in awk test, so even Solaris /usr/bin/awk
8868         will not wait for input with a script containing only a BEGIN
8869         rule.
8871 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
8873         * doc/autoconf.texi (Introduction, Why GNU M4): Clarify M4 version
8874         requirements.
8875         * README: Likewise.
8877 2007-02-02  Eric Blake  <ebb9@byu.net>
8879         * NEWS: Update copyright.
8881         * m4/m4.m4 (AC_PROG_GNU_M4): Reject M4 1.4 through 1.4.4 as
8882         broken.
8883         * configure.ac: Update error message.
8884         * NEWS: Note that M4 1.4.5 or later is now a hard dependency.
8885         Reported by Gary Vaughan and Jim Meyering, and problem analyzed
8886         by Stepan Kasal:
8887         http://lists.gnu.org/archive/html/bug-autoconf/2006-11/msg00025.html
8889 2007-01-31  Eric Blake  <ebb9@byu.net>
8891         * THANKS (people): Update.
8893 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8895         * doc/autoconf.texi (Shellology): pdksh 5.2.14 is still the
8896         latest version.
8897         (Shell Substitutions): Note problems with @{var:=value} etc.
8898         Add a new section for problems with @{#var} etc.  Problem noted
8899         by Ralf Wildenhues.  See:
8900         http://lists.gnu.org/archive/html/libtool-patches/2005-01/msg00157.html
8902 2007-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8904         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Also
8905         AC_SUBST([MKDIR_P]), so that Automake < 1.10 will pick up its
8906         trace, if a package uses AC_PROG_MKDIR_P explicitly.  The actual
8907         substitution will still be done by the special code.
8908         Report by Jim Meyering.
8910         * doc/autoconf.texi (File System Conventions): Mention that
8911         $PATH_SEPARATOR is for the build system only.
8912         Report by Keith Marshall.
8914 2007-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8916         * doc/autoconf.texi (Setting Output Variables): Mention that
8917         all non-NUL characters are ok in substituted values.
8918         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Fix comment typo.
8919         (_AC_OUTPUT_FILES_PREPARE): Test and use backslash escaping of
8920         carriage return for $AWK, needed for BSD awk.
8921         * tests/torture.at (Substitute and define special characters):
8922         Test all 8 bit non-NUL characters.
8923         Report against Automake by Patrick Welche.
8925 2007-01-15  Stepan Kasal  <kasal@ucw.cz>
8927         * doc/autoconf.texi: Direntry for "autoconf Invocation" renamed.
8929 2007-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8931         * lib/autoconf/programs.m4 (AC_PROG_SED): When closing a pipe
8932         early on the reader side, drop stderr of the input to avoid
8933         `broken pipe' error output; this may happen even with shell
8934         builtin `echo' of some bash versions.  Reports by Ian Macdonald
8935         <iamacdo@telkomsa.net> and Sam Sexton <Sam.Sexton@reuters.com>.
8937 2007-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8939         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Use newlines to
8940         separate items of `ac_user_opts', to avoid long lines.
8941         (_AC_INIT_PARSE_ENABLE2, _AC_ENABLE_IF_ACTION): Adjust.
8943 2007-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8945         * doc/autoconf.texi: Fix some typos.
8947 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8949         Fix some wording problems noted by Paolo Bonzini in:
8950         http://lists.gnu.org/archive/html/autoconf-patches/2007-01/msg00077.html
8951         * doc/autoconf.texi (Signed Overflow Examples): Give more
8952         discussion about the allow_superuser_privileges example,
8953         and change it a bit to make things clearer.
8954         (Optimization and Wraparound): Clarify whether the compiler
8955         will generate an infinite loop for the example derived from
8956         Autoconf's mktime test.
8957         (Signed Overflow Advice): Say that -ftrapv is meant for debugging.
8958         Also, clarify unsigned multiplication overflow.
8960 2007-01-04  Eric Blake  <ebb9@byu.net>
8962         * bin/Makefile.am (RELEASE_YEAR): New macro.
8963         (edit): Use it to supply correct copyright year to scripts.
8964         * bin/autoconf.as (version): Use it.
8965         * bin/autoheader.in ($version): Likewise.
8966         * bin/autom4te.in ($version): Likewise.
8967         * bin/autoreconf.in ($version): Likewise.
8968         * bin/autoscan.in ($version): Likewise.
8969         * bin/autoupdate.in ($version): Likewise.
8970         * bin/ifnames.in ($version): Likewise.
8972 2007-01-02  Paul Eggert  <eggert@cs.ucla.edu>
8974         * doc/autoconf.texi (Integer Overflow): Revised based on today's
8975         feedback.  The most important changes document what happens when
8976         you convert an out-of-range value to a signed integer type, and
8977         say that (sum < a) != (b < 0) reliably detects overflow when sum =
8978         a + b.
8980         * doc/autoconf.texi (Integer Overflow): Greatly expand and
8981         rewrite, taking notions from the recent discussion on the gcc and
8982         autoconf mailing lists; please see
8983         http://lists.gnu.org/archive/html/autoconf-patches/2006-12/msg00091.html
8984         and follow the many links.
8985         (Integer Overflow Basics, Signed Overflow Examples):
8986         (Optimization and Wraparound, Signed Overflow Advice):
8987         (Signed Integer Division): New sections.
8989 2006-12-28  Steven G. Johnson  <stevenj@alum.mit.edu>
8991         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't include
8992         preprocessor macro arguments in traced name.
8993         * doc/autoconf.texi (Defining symbols): Document longstanding
8994         support for AC_DEFINE-ing macros with arguments, and document
8995         behavior when the same variable has multiple AC_DEFINEs.
8996         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Revert to the
8997         old implementation which AC_DEFINEs the FC_FUNC and FC_FUNC_
8998         macros directly, giving much shorter and simpler code.
9000 2006-12-28  Malcolm Purvis <malcolmp@xemacs.org>  (trivial change)
9002         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Insert a
9003         space before "$ac_configure_args" to prevent a 'config.status
9004         --recheck' failure if ac_configure_args doesn't contain a leading
9005         space.  This works around a problem with the XEmacs configure.ac,
9006         which uses the (undocumented) ac_configure_args variable
9007         inconsistently with Autoconf.
9009 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9011         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):
9012         Include <limits.h>, and use its INT_MAX to rewrite the
9013         j loop so that it does not overflow 'int'.  Problem reported by
9014         Ralf Wildenhues in
9015         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
9016         Play it safe by shifting left by 1 rather than multiplying by 2,
9017         as GCC is less likely to optimize this away when the value
9018         is signed (when it assumes overflow leads to undefined behavior).
9019         Also, don't assume time_t uses two's complement.
9021 2006-12-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9023         * tests/torture.at (Substitute a 2000-byte string): Avoid using
9024         a 10kB long (multi-line) string literal, OpenServer 5.0.7 ksh
9025         dumps core on it.  Report by Tim Rice.
9027 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
9029         * lib/autoconf/general.m4 (AC_ARG_ENABLE): Print help about
9030         --disable-option-checking to --help output even when
9031         AC_PRESERVE_HELP_ORDER is not used.
9032         (_AC_INIT_PARSE_ENABLE2): Print warnings using actual --enable or
9033         --with argument, rather than argument with [-.] replaced by
9034         underscores.
9035         * NEWS: Fix typo in previous change; the news was in the
9036         wrong section.
9038 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9040         * NEWS: Warnings are now generated by default for unknown
9041         --enable-* and --with-* options.
9042         * doc/autoconf.texi (Option Checking): Renamed from
9043         (Configure Option Checking).  Tighten up the wording a bit.
9044         (External Software, Package Options): Cross-reference to Option
9045         Checking, and use this to shorten our section.
9046         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Prefer test -n
9047         "$x" to test "x$foo" != x.
9048         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
9049         Don't warn if $enable_option_checking is "no".
9050         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Initialize
9051         ac_unrecognized_opts to the empty string.
9052         Don't echo the unrecognized opts, as this might mishandle
9053         backslashes or leading -.
9054         (AC_PRESERVE_HELP_ORDER): Put the --disable-option-checking
9055         usage next to the other --disable-FEATURE options in the
9056         help string.
9058 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
9060         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, _AC_INIT_PARSE_ARGS):
9061         (_AC_INIT_PARSE_ENABLE2, _AC_INIT_HELP, _AC_ENABLE_IF):
9062         Print warning for unrecognized --with and --enable options
9063         (AC_DISABLE_OPTION_CHECKING): New macro to disable warnings.
9064         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS):
9065         Disable option checking when subdirs are configured.
9066         (AC_OUTPUT): If warnings are enabled, print warning about
9067         unrecognized --with and --enable options at the end of
9068         the configure output (as well as at the beginning).
9069         * doc/autoconf.texi (Option Checking): New node.
9070         Document new option warning functionality.
9072 2006-12-16  Eric Blake  <ebb9@byu.net>
9074         * configure.ac (AC_INIT): Bump version, since 2.61a is released.
9075         * NEWS: Start news for current version.
9077 2006-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9079         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
9080         Define HAVE_GETMNTENT to 1, not to the empty string.
9081         Problem originally reported by Jochen Friedrich in
9082         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403243>.
9084         This change prompted by a problem report by Andrey Simonenko in
9085         <http://lists.gnu.org/archive/html/bug-autoconf/2006-12/msg00026.html>.
9086         * doc/autoconf.texi (Defining Symbols): AC_DEFINE works for
9087         object-like macros only, in the traditional portable character
9088         set.
9089         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL):
9090         Warn about attempts to define things that are not identifiers.
9091         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Rewrite to avoid
9092         awful hack that AC_DEFINEd macro names containing parentheses.
9094 2006-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9096         * doc/autoconf.texi: Undo some of the 2006-12-10 change.  It was
9097         too drastic, even if Texinfo in theory requires it for info mode.
9099         (config.status Invocation): Renamed back from Recreating a
9100         Configuration).
9101         (Obsolete config.status Use): Renamed back from Obsolete Recreation.
9102         (Autoconf 2.13): Renamed back from 20th-century Autoconf 2.
9104 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
9106         * NEWS: Version 2.61a.
9108 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
9109         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9111         * NEWS: Document changes with echo and printf, and the lack
9112         of limits on the total size of multi-line values of substituted
9113         variables, and the AC_FUNC_FSEEKO fix.
9115 2006-12-10  Paul Eggert  <eggert@cs.ucla.edu>
9117         * doc/autoconf.texi (Writing Autoconf Input): Renamed from
9118         Writing configure.ac.
9119         (Autoconf Input Layout): Renamed from configure.ac Layout.
9120         (Recreating a Configuration): Renamed from config.status Invocation.
9121         (Obsolete Recreation): Renamed from Obsolete config.status Use.
9122         (acconfig Header): Renamed from acconfig.h.
9123         (20th-century Autoconf 2): Renamed from Autoconf 2.13.
9124         (Writing Testsuites): Renamed from Writing testsuite.at.
9125         (Autom4te Cache): Renamed from autom4te.cache.
9127         * BUGS: Remove mention of VPATH problem, since it's now documented
9128         not to be a bug in the Autoconf build procedure itself, but rather
9129         a problem with the proprietary `make' programs.
9131         * doc/autoconf.texi (Build Directories): Add a cross reference
9132         to VPATH and Make.
9134         * build-aux/config.guess, build-aux/config.sub, build-aux/texinfo.tex:
9135         * doc/standards.texi: Sync from gnulib.
9137         * man/autoconf.1, man/autoheader.1, man/autom4te.1, man/autoreconf.1:
9138         * man/autoscan.1, man/autoupdate.1, man/config.guess.1:
9139         * man/config.sub.1, man/ifnames.1: Remove from CVS, since they're
9140         generated automatically.
9142 2006-12-06  Paul Eggert  <eggert@cs.ucla.edu>
9144         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Also try -xc99=all, for Sun
9145         C 5.8 on Solaris 10.  Using -xc99=all rather than -xc99 bypasses
9146         the buggy -xc99 option of Forte Developer 7 C on Solaris 9.
9148 2006-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9150         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the
9151         `CEOF$ac_eof' special marker, the awk script cannot contain a
9152         line matching `^CEOF', so this is not needed any more.
9153         * tests/torture.at (Substitute a newline): Expose the `%!_!# '
9154         special marker in the test.
9156 2006-12-06  Stepan Kasal  <kasal@ucw.cz>
9158         * tests/tools.at (autom4te preselections): Use `find -newer';
9159         remove one of the sleeps.
9161         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Make it
9162         more readable, using ...
9163         (_AC_INIT_PARSE_ENABLE2): ... this new helper macro.
9165         * doc/autoconf.texi (autoheader Invocation): Do not double-
9166         quote the parameter of `AH_BOTTOM' in the example.
9168 2006-12-05  Stepan Kasal  <kasal@ucw.cz>
9170         * doc/autoconf.texi (Configuration Headers): Remove the
9171         example with multiple input files.
9172         (autoheader Invocation): Encourage `AH_BOTTOM', discouraging
9173         multiple input files.
9175 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9177         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When
9178         creating the awk substitution script, handle one input line at a
9179         time, so that the maximum length of a substituted (multi-line)
9180         value is not limited by the size of the sed pattern space.
9181         The trade-off is a slightly repetitive sed script.
9182         * doc/autoconf.texi (Limitations of Usual Tools): Branch labels
9183         can only have up to 7 characters, due to Solaris 10 /bin/sed.
9184         * tests/torture.at (Substitute a 2000-byte string): Increase the
9185         test with several long lines, they should not be caught by sed
9186         limits any more.
9188         * tests/tools.at (autom4te preselections): New test, to flag
9189         entries missing from autom4te.cfg.
9190         Report by David Byron <dbyron@hheld.com>.
9192         * tests/torture.at (Substitute a 2000-byte string): Actually use
9193         AC_PROG_AWK, so the last change works as intended.
9194         (Substitute and define special characters): Likewise.
9195         (Substitute a newline): Likewise.
9197         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use `$AWK'
9198         instead of `awk' consistently.
9199         (_AC_OUTPUT_CONFIG_STATUS): Initialize $AWK.
9200         * tests/torture.at (Torturing config.status): Test both the
9201         result of AC_PROG_AWK and plain awk.
9202         (Substitute a 2000-byte string): Likewise.
9203         (Substitute and define special characters): Likewise.
9204         (Substitute a newline): Likewise.
9206 2006-12-04  Paul Eggert  <eggert@cs.ucla.edu>
9208         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko
9209         can be assigned to a function pointer.  Problem reported by
9210         Peter Palfrader in <http://bugs.debian.org/401377>.  Based on
9211         part of a patch by Ralf Wildenhues in that same bug report.
9213 2006-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9215         * tests/mktests.sh (ac_exclude_list): Exclude AC_FUNC_SETVBUF_REVERSED.
9216         * tests/semantics.at (AC_FUNC_SETVBUF_REVERSED): New test.
9218 2006-12-01  Eric Blake  <ebb9@byu.net>
9220         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in
9221         cross-compiling from cygwin to mingw.
9222         Reported by Bob Rossi.  This resurrects the 2000-11-30 patch to
9223         aclang.m4, which was mistakenly removed in the 2001-09-17 patch
9224         to lib/autoconf/c.m4.
9226 2006-12-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9228         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Use a longer test
9229         string for more reliable failure.  Wrap the entire test that
9230         causes the broken Solaris printf to dump core, in a subshell,
9231         so the segmentation fault message is reliably suppressed.
9232         Fix shell expansion errors by using /usr/ucb/echo always;
9233         avoid an error on systems without it by another subshell.
9234         Avoid m4 expansion of `$1'.  Set the zeroth argument of the
9235         subshell-$as_echo to `as_echo', for better error message.
9237 2006-11-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9239         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): If `BASH_ARGV' or
9240         `BASH_SOURCE' contain a newline, set them to empty, as they may
9241         not be unset.
9243 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
9245         Turn AC_FUNC_SETVBUF_REVERSED into a noop.  It's been obsolete for
9246         years and is too hard to maintain now.  The last straw was
9247         reported by Jerker Baeck in
9248         <http://lists.gnu.org/archive/html/autoconf/2006-11/msg00102.html>.
9249         * NEWS: AC_FUNC_SETVBUF_REVERSED is now obsolete.
9250         * doc/autoconf.texi (Particular Functions): Move
9251         AC_FUNC_SETVBUF_REVERSED from here...
9252         (Obsolete Macros): ... to here.  Say that it does nothing now.
9253         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
9254         Turn into (almost) a no-op.
9256         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL, AC_C_CONST):
9257         (AC_C_VOLATILE):
9258         Do not recommend via AN_FUNCTION, AN_IDENTIFIER, or AN_HEADER.
9259         These macros are obsolescent and new applications shouldn't need them.
9260         * lib/autoconf/functions.m4 (AC_FUNC_CLOSEDIR_VOID, AC_REPLACE_FNMATCH):
9261         (AC_FUNC_GETLOADAVG, AC_FUNC_GETPGRP, AC_FUNC_MEMCMP):
9262         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP, AC_FUNC_STAT, AC_FUNC_LSTAT):
9263         (AC_FUNC_STRFTIME, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
9264         (AC_FUNC_VPRINTF): Likewise.
9265         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT, AC_HEADER_STAT):
9266         (AC_HEADER_STDC, AC_HEADER_SYS_WAIT, AC_HEADER_TIME): Likewise.
9267         * lib/autoconf/types.m4 (AC_STRUCT_TM): Likewise.
9269         * doc/autoconf.texi (Setting Output Variables): Mention that
9270         @VAR1@VAR2 has unspecified behavior.  Problem reported by
9271         Ralf Wildenhues.
9272         * NEWS: Mention this.
9274         * Makefile.am: Put only a single '#' into the copyright notice,
9275         so that it's also present in the output file.  Standardize wording
9276         in makefile copyright notices to match GNU coding standards.
9277         * bin/Makefile.am: Likewise.
9278         * doc/Makefile.am: Likewise.
9279         * lib/Makefile.am: Likewise.
9280         * lib/freeze.mk: Likewise.
9281         * lib/autoconf/Makefile.am: Likewise.
9282         * lib/autoscan/Makefile.am: Likewise.
9283         * lib/autotest/Makefile.am: Likewise.
9284         * lib/m4sugar/Makefile.am: Likewise.
9285         * man/Makefile.am: Likewise.
9286         * tests/Makefile.am: Likewise.
9287         * lib/emacs/Makefile.am: Remove copyright notice; it's just a
9288         one-line file.
9290 2006-11-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9292         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix error
9293         in the sed script that mangles the awk script: delete up to the
9294         first exclamation mark only.
9295         * tests/torture.at (Substitute and define special characters):
9296         Test '!' too.
9298 2006-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9300         Rewrite config files generation: avoid quadratic growth in
9301         the number of substituted variables by using awk instead of sed
9302         for the bulk of the substitutions.
9303         * NEWS: Mention this.
9304         * doc/autoconf.texi (Setting Output Variables): `|#_!!_#|' is also
9305         forbidden in the output (and thus input) file.
9306         * lib/autoconf/status.m4 (_AC_AWK_LITERAL_LIMIT): New macro.
9307         (_AC_OUTPUT_FILES_PREPARE): Instead of several sed scripts,
9308         generate just one large awk script for substitutions,
9309         eliminating much of the earlier complexity, while adding some
9310         new complexity.  Only expand the substitution templates at
9311         configure time, for smaller configure script size.  If
9312         _AC_SUBST_FILES are used, test 'awk' for working getline support
9313         at config.status time.  If absent, interpolate through the
9314         shell.  The awk script was written with much help
9315         from Paolo Bonzini and Paul Eggert.
9316         (_AC_SED_CMD_NUM, _AC_SED_DELIM_NUM, _AC_SED_FRAG): Removed.
9317         (_AC_SED_FRAG_NUM): Likewise.
9318         (_AC_SUBST_CMDS): Renamed from...
9319         (_AC_SED_CMDS): ...this.
9320         (_AC_OUTPUT_FILE): Use _AC_SUBST_CMDS.
9321         * tests/torture.at (Substitute a 2000-byte string): Also
9322         substitute a line with 1000 words, and a variable with several
9323         long lines.
9324         (Substitute and define special characters): Test awk special
9325         characters, and put substitution input strings `@foo@' in the
9326         output, to test that no recursion happens; test several other
9327         combinations from Paolo Bonzini.
9329 2006-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9331         * lib/autotest/general.m4 (AT_INIT): Undo recent changes
9332         that replaced echo with AS_ECHO where this wasn't necessary.
9333         Problem reportd by Ralf Wildenhues.
9334         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Port to Solaris 7,
9335         where "/usr/bin/printf '%s\n' S" dumps core if S is long.
9336         This is Sun bug 4206210.  Problem reportd by Ralf Wildenhues.
9338 2006-11-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9340         * lib/freeze.mk (GREP): Removed, no need to initialize this.
9342 2006-11-21  Paul Eggert  <eggert@cs.ucla.edu>
9344         * doc/autoconf.texi (Limitations of Usual Tools): Don't claim
9345         that traditional Awk lacks 3-arg "split".  It has it.
9346         Mention that FS must be a single character, and a few other
9347         99-byte limits of traditional Awk.
9348         Mention that if (i in a) doesn't work with traditional Awk.
9350 2006-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9352         * tests/autotest.at (BSx641-newline in command):
9353         (BS-BS-newline in command, BSx640-newline in command):
9354         (Newline-CODE-BS-newline in command):
9355         (Single-quote-BS-newline in command):
9356         (Single-quote-newline-BS-newline in command):
9357         Use printf '%s\n' instead of echo, for portability to hosts
9358         where echo interprets backslashes.  This will break on hosts
9359         that lack printf, but for now let's assume all such hosts
9360         are dead (if not, we should get reports of test failures).
9362 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9364         'echo' has some portability problems, when given a first argument
9365         with a leading '-', or when given any argument containing '\'.
9366         Avoid using 'echo' in these cases.
9367         * bin/Makefile.am $(bin_SCRIPTS): Rewrite to avoid 'echo' entirely.
9368         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Likewise.
9369         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
9370         * lib/autotest/general.m4 (AT_INIT): Likewise.
9371         * bin/autoconf.as: Use AS_ECHO rather than plain echo, when the
9372         argument might be unportable.
9373         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Likewise.
9374         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Likewise.
9375         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT):
9376         (_AC_FC_LIBRARY_LDFLAGS): Likewise.
9377         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Likewise.
9378         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE, _AC_INIT_PREPARE):
9379         (_AC_ARG_VAR_VALIDATE, AC_ARG_PROGRAM, _AC_MSG_LOG_CONFTEST):
9380         (AC_RUN_LOG, _AC_RUN_IFELSE, _AC_LIBOBJS_NORMALIZE): Likewise.
9381         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
9382         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Likewise.
9383         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
9384         (AC_PROG_MAKE_SET): Likewise.
9385         * lib/autoconf/status.m4 (_AC_SRCDIRS, _AC_OUTPUT_HEADER):
9386         (_AC_OUTPUT_SUBDIRS, _AC_OUTPUT_CONFIG_STATUS): Likewise.
9387         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT, AT_INIT):
9388         (AT_CLEANUP, _AT_DECIDE_TRACEABLE, _AT_CHECK): Likewise.
9389         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE, _AS_ECHO_UNQUOTED):
9390         (_AS_BASENAME_SED, _AS_DIRNAME_SED, AS_MKDIR_P, AS_TMPDIR, AS_UNAME):
9391         (AS_TR_SH, AS_TR_CPP, AS_VAR_GET): Likewise.
9392         * bin/autoconf.as: Redo verbose flag implementation, as the old
9393         scheme wouldn't work with AS_ECHO.
9394         * lib/autotest/general.m4 (AT_INIT): Likewise.
9395         * lib/autoconf/general.m4 (AC_MSG_RESULT, AC_MSG_RESULT_UNQUOTED):
9396         Don't use ECHO_T, since ECHO_N is now reliable.
9397         * lib/autotest/general.m4 (AT_INIT): Likewise.
9398         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use sed "$script"
9399         rather than using a here-document to put the script into a file.
9400         (_AC_DO_ECHO): Hoist the eval out of the echo, so that we can
9401         use AS_ECHO.
9402         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Likewise.
9403         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Use
9404         AS_ECHO_N rather than ECHO_N and ECHO_C.  This doesn't fix any
9405         bug, but we might as well stop using ECHO_N and ECHO_C internally.
9406         * lib/autotest/general.m4 (AT_SETUP): Likewise.
9407         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N): Likewise.
9408         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
9409         (_AC_OUTPUT_MAIN_LOOP): Rework echo so that it has just one
9410         operand, as AS_ECHO requires.  Avoid double file name expansion.
9411         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke _AS_ECHO_PREPARE.
9412         Don't set as_nl, since _AS_ECHO_PREPARE does that now.
9413         (_AS_PREPARE): Comment that _AS_ECHO_N_PREPARE is just for user code.
9414         (AS_ECHO, AS_ECHO_N, _AS_ECHO_PREPARE): New macros.
9415         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
9416         Double-quote strings that would otherwise contain M4 comments.
9417         * tests/m4sh.at (AS_ECHO and AS_ECHO_N): New test.
9419         * configure.ac (AC_INIT): Bump to 2.61a.
9420         * NEWS: Likewise.
9422 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9424         Version 2.61.
9426         * configure.ac (AC_INIT): Bump to 2.61.
9427         * NEWS: Likewise.
9429         * tests/autotest.at (Macro with backslash in a test title):
9430         Comment out for now, as this tests neither fails nor passes
9431         reliably.  Problem reported by Ralf Wildenhues.
9433 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
9435         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos
9436         in previous change, which caused test failures.
9438 2006-11-16  Stepan Kasal  <kasal@ucw.cz>
9440         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Factor out
9441         code for --enable, --disable, --with, and --without to...
9442         (_AC_INIT_PARSE_ENABLE): ... a new macro.
9443         * doc/autoconf.texi (Package Options):
9444         * NEWS: Document that AC_ARG_ENABLE allows dots, too.
9446 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
9448         Import these changes from config via gnulib:
9450         2006-11-15  Ben Elliston  <bje@gnu.org>
9452         From Josselin Mouette <joss@debian.org>:
9453         * build-aux/config.guess (SX-8:SUPER-UX:*:*): New.
9455         2006-11-08  Ben Elliston  <bje@gnu.org>
9457         * build-aux/config.guess (authenticamd:Interix*:[3456]*): Another AMD64.
9459         2006-11-07  Steve Woodford  <scw@NetBSD.org>
9460                     Ben Elliston  <bje@gnu.org>
9462         * build-aux/config.guess (*:NetBSD:*:*): Handle sh5el arch.
9463         * build-aux/config.sub (sh5el): New basic_machine.
9466         Import this change from coreutils:
9468         2006-02-13  Jim Meyering  <jim@meyering.net>
9470         * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
9473         Import this change from gnustandards via gnulib:
9475         2006-11-15  Karl Berry  <karl@gnu.org>
9477         * standards.texi: core -> memory, throughout.
9478         (CPU Portability): show correct example of calling write
9479         on a char value; thanks to Paul Eggert for the code.
9480         Both of these suggestions from Eugene Y. Vasserman.
9483         Import these changes from texinfo via gnulib:
9485         2006-11-08  Karl Berry  <karl@gnu.org>
9487         * build-aux/texinfo.tex (\dopdfimage): look for png, jpg/jpeg/JPG, and
9488           as well as pdf images, since they are supported in pdftex with
9489           no further ado.
9491         2006-11-05  Karl Berry  <karl@gnu.org>
9493         * doc/texinfo.tex (Image Syntax): don't mention GIF any more.
9495 2006-11-13  Paul Eggert  <eggert@cs.ucla.edu>
9497         * NEWS: Document the AC_ARG_WITH change.
9499 2006-11-13  Bruno Haible  <bruno@clisp.org>
9501         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): For --with, --without
9502         options, transliterate also dots to underscores.
9503         (_AC_ENABLE_IF): Transliterate also dots to underscores.
9504         * doc/autoconf.texi (External Software): Document that AC_ARG_WITH's
9505         first argument may also contain dots.
9507 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9509         * tests/mktests.sh (ac_exclude_list): Exclude AC_PROG_CXX_C_O, for
9510         benefit of platforms like Solaris+GCC where it is common to have a
9511         non-working g++ installation.
9513 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9514         and Joel E. Denny  <jdenny@ces.clemson.edu>
9515         and Paul Eggert  <eggert@cs.ucla.edu>
9517         * tests/autotest.at (AT_CHECK_AT_TITLE): Fix shell quoting bugs
9518         and non-portable sed scripts, and use $CONFIG_SHELL when invoking
9519         ./micro-suite.
9521 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
9523         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Set
9524         ac_cv_type_long_long_int to 'yes' instead of 'cross-compiling'.
9525         Imported from a similar patch to gnulib by Bruno Haible.
9527 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
9529         * NEWS: New macros AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS.
9530         * doc/autoconf.texi (C Compiler): Document them.
9531         * lib/autoconf/c.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS):
9532         New macros, taken from gnulib.
9534 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
9536         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
9537         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
9538         Matthew Woehlke.
9540 2006-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9542         * tests/torture.at (Configuring subdirectories): Do not skip
9543         Automake 1.10 nor future Automake 11.1 (sic).
9545 2006-10-26  Joel E. Denny  <jdenny@ces.clemson.edu>
9546         and Stepan Kasal  <kasal@ucw.cz>
9548         Handle special characters in test case titles correctly.
9549         * lib/autotest/general.m4 (AT_INIT): M4-quote and AS_ESCAPE AT_help_all
9550         properly.
9551         (AT_SETUP): M4-quote and AS_ESCAPE the title properly everywhere.
9552         * tests/autotest.at (AT_CHECK_AT_TITLE): Add EXPANDED-TITLE-TO-TEST
9553         argument.  Extend to check titles printed by ./micro-suite and
9554         ./micro-suite -l and the title in micro-suite.log.
9555         (Backquote in a test title,
9556         Single-quote in a test title,
9557         Double-quote in a test title): Don't expect failure anymore.
9558         (Backslash in a test title): Put a non-whitespace character after the
9559         backslash so that Bourne shells might actually see it as an escape
9560         sequence.
9561         (Brackets in a test title,
9562         Pound in a test title,
9563         Comma in a test title,
9564         Quoted Macro in a test title,
9565         Macro in a test title,
9566         Macro with single-quote in a test title): New tests.
9567         (Macro with backquote in a test title,
9568         Macro with double-quote in a test title,
9569         Macro with backslash in a test title): New tests expected to fail.
9570         * tests/torture.at (#define header templates): M4-quote this title in
9571         AT_SETUP call so that no M4 code is commented inadvertently somewhere.
9572         The visible effect was a stray [] in the testsuite output.
9574 2006-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9576         * doc/autoconf.texi (Limitations of Builtins): Do not invoke
9577         `trap ... 0' inside a function, for AIX sh.
9579 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
9581         * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0,
9582         since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build
9583         5363) simply issues a warning when dividing by zero at compile
9584         time.  Problem reported by Elias Pipping.
9586 2006-10-26  Eric Blake  <ebb9@byu.net>
9588         * THANKS: Update.
9589         * doc/autoconf.texi (Evaluation Macros): Improve the example to
9590         show effect on macros that expand with commas.
9591         Reported by Joel E. Denny.
9593         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
9594         Also work with M4 1.4.8.
9596 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
9598         * doc/autoconf.texi (Slashes): Document Tru64 4.0 bug reported by
9599         Jim Meyering.
9601 2006-10-25  Stepan Kasal  <kasal@ucw.cz>
9603         * tests/tools.at (autom4te --force): New test, verifies that
9604         `--force' always rewrites the output file.
9606 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
9608         * doc/autoconf.texi (Limitations of Usual Tools): Document that rm
9609         needs operands on NetBSD 2.0.2.  Problem reported by Bruno Haible.
9611 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
9613         * tools/trace.at (autoconf --trace: user macros): Test `$%'.
9615 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
9617         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
9618         If FUNCTION-BODY is nonempty, use AC_LINK_IFELSE rather than
9619         AC_COMPILE_IFELSE, to work around problem with OSF/1 4.0F fseeko
9620         reported by Nelson H. F. Beebe for Coreutils 6.4.
9622         * tests/tools.at (autoconf --trace: user macros): Remove test
9623         for tracing multiline macros, since m4 1.4.7a uses a different
9624         way to number lines.  Problem reported by Ralf Wildenhues.
9626 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
9628         * bin/autom4te.in (handle_m4): Do not redirect stdin to
9629         /dev/null since the heuristics for interactive behaviour was
9630         fixed in CVS m4.
9632         * bin/autom4te.in: With --force, always refresh the output
9633         file.  Problem reported by Greg Schafer <gschafer@zip.com.au>.
9635         * bin/autoconf.as: Fix the verbose message at the end.
9637 2006-10-23  Paul Eggert  <eggert@cs.ucla.edu>
9639         * configure.ac (AC_INIT): Bump to 2.60c.
9640         * NEWS: Likewise.
9642 2006-10-22  Paul Eggert  <eggert@cs.ucla.edu>
9644         * NEWS: Version 2.60b.
9646         Import this change from Texinfo:
9647         2006-10-15  Karl Berry  <karl@gnu.org>
9648         * build-aux/texinfo.tex: automake 1.10
9650         * NEWS: Remove AC_CACHE_CHECK_INT.
9651         * doc/autoconf.texi (Caching Results): Likewise.
9652         * lib/autoconf/general.m4 (_AC_CACHE_CHECK_INT): Renamed from
9653         AC_CACHE_CHECK_INT, since it's no longer public.
9654         * lib/autoconf/types.m4: All uses of AC_CACHE_CHECK_INT changed.
9655         * tests/base.at (AC_COMPUTE_INT): Test this, not AC_CACHE_CHECK_INT.
9657 2006-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9659         * doc/autoconf.texi (Limitations of Usual Tools): Fix two typos.
9661 2006-10-19  Eric Blake  <ebb9@byu.net>
9663         * lib/m4sugar/m4sugar.m4 (m4_mkstemp): New macro.
9664         (m4_maketemp): Avoid warnings with M4 1.9a.
9665         * lib/emacs/autoconf-mode.el (autoconf-font-lock-keywords): Color
9666         m4_mkstemp.
9667         * doc/autoconf.texi (Redefined M4 Macros): Document m4_mkstemp.
9668         * NEWS: Likewise.
9670 2006-10-16  Eric Blake  <ebb9@byu.net>
9672         * doc/autoconf.texi (Setting Output Variables): Fix typo.
9674         * bin/autoconf.as (version): Reword to match GNU Coding
9675         Standards.
9676         * bin/autoheader.in (version): Likewise.
9677         * bin/autom4te.in (version): Likewise.
9678         * bin/autoreconf.in (version): Likewise.
9679         * bin/autoscan.in (version): Likewise.
9680         * bin/autoupdate.in (version): Likewise.
9681         * bin/ifnames.in (version): Likewise.
9683 2006-10-14  Stepan Kasal  <kasal@ucw.cz>
9685         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Expand $1 before
9686         looking for special shell characters.
9687         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Do not expand the
9688         macro defined by AS_VAR_PUSHDEF before passing it as a
9689         parameter.
9690         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
9691         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB):
9692         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
9693         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL):
9694         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_DIRENT):
9695         Likewise.
9696         * lib/autotest/general.m4 (AT_INIT): Quote parameters of
9697         AS_VAR_* properly.
9698         * tests/m4sh.at (AS_LITERAL_IF): New test.
9700 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
9702         (Imported from Automake.)
9703         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
9704         which incorrectly sets the mode of an existing destination
9705         directory.  In some cases the unpatched install-sh could do the
9706         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
9707         system.  We hope this is rare in practice, but it's clearly worth
9708         fixing.  Problem reported by Alex Unleashed in
9709         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
9710         Also, don't bother to check for -m bugs unless we're using -m;
9711         suggested by Stepan Kasal.
9713 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
9715         Import this change from Automake:
9717         2006-08-23  Alexandre Duret-Lutz  <adl@gnu.org>
9718         * lib/Autom4te/ChannelDefs.pm (usage): Mention that -Wportability
9719         is enabled by default with gnu and gnits strictness.
9720         Report from Bruno Haible.
9722         2006-03-10  Alexandre Duret-Lutz  <adl@gnu.org>
9723         * lib/Autom4te/ChannelDefs.pm: Make -Wportability the default in
9724         gnu and gnits modes.
9726         Import this change from Config:
9728         2006-09-20  Ben Elliston  <bje@gnu.org>
9729         * build-aux/config.sub (score, score-*): New.
9731         Import this change from Gnulib:
9733         2006-09-16  Karl Berry  <karl@gnu.org>
9734         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
9735         to avoid sectioning errors.
9737         Import these changes from Texinfo:
9739         2006-10-04  Karl Berry  <karl@gnu.org>
9740         * build-aux/texinfo.tex (\singlequotechar): rename to \codequoteright.
9741         (\quoteexpand): rename to \rquoteexpand.
9742         (\codequoteleft): new def, to look for @set codequotebacktick.
9743         (\lquoteexpand, \quoteexpand): new defs.
9744         (\lquoteChar, \rquoteChar, \dashChar, \underChar: new \chardef's.
9745         (\code): must use new \...Char values, since now ` is active.
9747         2006-08-26  Karl Berry  <karl@gnu.org>
9748         * build-aux/texinfo.tex (\textdegree): New command.
9750         2006-08-12  Karl Berry  <karl@gnu.org>
9751         * build-aux/texinfo.tex (error \box0): smaller font.
9753 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9755         * doc/autoconf.texi (Autoheader Macros): Fix syntax error.
9757 2006-10-13  Stepan Kasal  <kasal@ucw.cz>
9759         * doc/autoconf.texi (Autoheader Macros): Warn that the text
9760         added to the template can get mangled.
9762 2006-10-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9764         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): In the test,
9765         include the default headers, and redefine obstack_chunk_alloc
9766         and obstack_chunk_free.  Fixes false failure with glibc.
9768 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
9770         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Set as_executable_p,
9771         for backward compatibility with Libtool 1.5.22.  Problem reported
9772         by Ralf Wildenhues.
9774 2006-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9776         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL): Require
9777         AC_PROG_CC.
9778         Report by IOhannes m zmoelnig <zmoelnig@iem.at>.
9780 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9782         * NEWS: AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for
9783         the NonStop platform.
9784         * doc/autoconf.texi (Posix Variants): Likewise.
9785         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
9787         * lib/m4sugar/m4sh.m4 (AS_TEST_X): New macro.
9788         (AS_EXECUTABLE_P): Use as_test_x rather than as_executable_p.
9789         (_AS_TEST_PREPARE): Set as_test_x rather than as_executable_p.
9790         Use a better substitute, by inspecting the output of "ls"
9791         rather than just using ":".
9792         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Use AS_TEST_X
9793         rather than AS_EXECUTABLE_P, since we needn't worry about
9794         non-regular files here.
9796         * NEWS: Autoconf-generated shell scripts no longer export BIN_SH,
9797         due to configuration hassles with this.  See Tonya Underwood's report
9798         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00003.html>.
9799         * doc/autoconf.texi (Special Shell Variables): Likewise.
9801 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9802             Stepan Kasal  <kasal@ucw.cz>
9804         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Don't set BIN_SH.
9805         (_AS_DETECT_BETTER_SHELL): Don't look in /usr/bin/posix.
9807 2006-10-11  Stepan Kasal  <kasal@ucw.cz>
9809         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Move the
9810           initialization which is not inherited through the environment
9811         (_AS_BOURNE_COMPATIBLE): ... to this new macro.
9812         (_AS_RUN): Call _AS_BOURNE_COMPATIBLE, not AS_BOURNE_COMPATIBLE.
9814 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
9816         * doc/autoconf.texi (Limitations of Usual Tools): Describe
9817         problems with mkdir -p -m.
9819 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
9821         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Remove
9822         comment about ac_cpp_err; it was incorrect, and anyway
9823         ac_cpp_err is being removed below.
9824         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE): Don't
9825         set ac_cpp_err to 'yesyes' if preproc_warn_flag and werror_flag
9826         are both 'yes'.  In fact, don't bother setting ac_cpp_err at all;
9827         nobody uses it.
9828         (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't log our funky tests
9829         with werror_flag and conftest.err and so forth.  This is more
9830         compatible with how _AC_PROG_PREPROC_WORKS_IFELSE behaves,
9831         and anyway the user shouldn't normally want to see this gorp logged.
9832         Problem reported by Ralf Wildenhues.
9833         * lib/autoconf/lang.m4 (AC_LANG_WERROR): werror_flag's default is
9834         empty, not 'no', since the rest of the code uses 'test -z'.
9836 2006-10-04  Paul Eggert  <eggert@cs.ucla.edu>
9838         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
9839         Use a single call to AC_DO_TOKENS rather than multiple, for
9840         efficiency.
9841         (_AC_LINK_IFELSE): Test that resulting file is executable.
9842         Problem reported by mwoehlke in
9843         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00048.html>.
9845         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Use "test -x /" rather
9846         than creating a file to use with test -x; this is much faster.
9848 2006-10-02  Bruno Haible  <bruno@clisp.org>
9850         * lib/autom4te.in (Automake-preselections): Add
9851         AM_GNU_GETTEXT_INTL_SUBDIR, for automake 1.10.
9853 2006-09-27  Stepan Kasal  <kasal@ucw.cz>
9855         * doc/autoconf.texi (Writing testsuite.at): Fix a typo: for
9856         standard error, `experr' should be used, not `expout'.
9858 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9860         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Don't compile the
9861         fseeko testing program twice; just use the earlier result.
9862         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
9863         Set cache var to 'unknown' (not 'no') if leaving the macro unset
9864         still doesn't let the program compile.
9865         (AC_SYS_LARGEFILE): Test for _LARGE_FILES only if earlier tests
9866         failed.
9868         * lib/autoconf/functions.m4: Fix problems reported by Ralf Wildenhues.
9869         (AC_FUNC_ERROR_AT_LINE): Don't bother to check for error.h.  Just
9870         include it, without including anything else.
9871         (AC_FUNC_FSEEKO): Avoid gcc -Wall warnings about constant
9872         expressions.
9873         (AC_FUNC_STRNLEN): Require AC_USE_SYSTEM_EXTENSIONS.
9875 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9877         * lib/autoconf/functions.m4 (AC_FUNC_ERROR_AT_LINE): Check for
9878         `error.h', and include it, for a `error_at_line' prototype.
9879         Use a nonempty format string in the link test.
9880         * lib/autoconf/functions.m4 (AC_FUNC_WAIT3): Include <sys/wait.h>,
9881         for a declaration of wait3.
9883 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9885         * NEWS: AC_CHECK_DECL now also works with aggregate objects.
9886         * doc/autoconf.texi (Generic Declarations): Clarify that AC_CHECK_DECL
9887         can apply to constants too, and that it checks for macro defns.
9888         * lib/autoconf/general.m4 (AC_CHECK_DECL): Assume C89 or better,
9889         and simply cast the identifier to void.  This handles structure
9890         values.  Problem reported by Ralf Wildenhues.
9891         * tests/semantics.at (AC_CHECK_DECLS): Also check enums.
9893 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9895         * tests/semantics.at (AC_CHECK_DECLS): Also check macros,
9896         structure, and function symbols.
9898 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9900         * tests/semantics.at (AC_CHECK_MEMBERS): Also test with a struct
9901         member.
9903 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
9905         * NEWS: Recommend M4 1.4.7 instead of 1.4.6.
9906         * README: Likewise.
9907         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
9909 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
9910         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9912         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): Avoid `gcc -Wall'
9913         warnings (uninitialized value).
9914         (AC_FUNC_UTIME_NULL): Likewise, test for and include <utime.h> if
9915         present.
9916         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Likewise, add
9917         parentheses.
9918         (AC_STRUCT_TM): Likewise, avoid unused variables.
9920 2006-09-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9922         * lib/autoconf/c.m4 (_AC_ARG_VAR_LDFLAGS): Update comment.
9923         (_AC_ARG_VAR_LIBS): New macro: let LIBS be precious.
9924         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Call _AC_ARG_VAR_LIBS.
9925         * lib/autoconf/fortran.m4 (AC_PROG_F77, AC_PROG_FC): Likewise.
9926         Report by Olly Betts.
9928 2006-09-19  Eric Blake  <ebb9@byu.net>
9930         * m4/m4.m4: Change copyright.
9931         * configure: Regenerate.
9932         * Makefile.in: Likewise.
9933         * bin/Makefile.in: Likewise.
9934         * doc/Makefile.in: Likewise.
9935         * lib/Makefile.in: Likewise.
9936         * lib/Autom4te/Makefile.in: Likewise.
9937         * lib/autoconf/Makefile.in: Likewise.
9938         * lib/autoscan/Makefile.in: Likewise.
9939         * lib/autotest/Makefile.in: Likewise.
9940         * lib/emacs/Makefile.in: Likewise.
9941         * lib/m4sugar/Makefile.in: Likewise.
9942         * man/Makefile.in: Likewise.
9943         * tests/Makefile.in: Likewise.
9945         * m4/m4.m4 (AC_PROG_GNU_M4): Check for m4 --debugfile support.
9946         * bin/Makefile.am (edit): Substitute M4_DEBUGFILE.
9947         * bin/autom4te.in (handle_m4): Favor --debugfile over misnamed
9948         --error-output, to avoid warnings with M4 2.0.
9950 2006-09-19  Stepan Kasal  <kasal@ucw.cz>
9952         * lib/autoconf/libs.m4 (AH_CHECK_LIB): Fix quoting, to be
9953           consistent with _AH_CHECK_FUNCS and _AH_CHECK_HEADERS.
9954         * lib/autoconf/headers.m4 (AH_CHECK_HEADERS_DIRENT): Likewise.
9956 2006-09-15  Stepan Kasal  <kasal@ucw.cz>
9958         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Eliminate the
9959         expansion of AC_CHECK_FUNCS.
9961 2006-09-14  Stepan Kasal  <kasal@ucw.cz>
9963         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Remove a
9964         mistaken comment: the path has to be relative; do not use
9965         the path at runtime.
9967 2006-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9969         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote the
9970         argument to `--prefix' for sub-configure scripts.
9971         Pass `--silent' to sub-configure scripts.
9972         * tests/torture.at (Configuring subdirectories): Add tests
9973         for both changes.
9974         * doc/autoconf.texi (Setting Output Variables): Fix example to
9975         not show `--silent' being passed to a `configure' re-run.
9977 2006-09-12  Paul Eggert  <eggert@cs.ucla.edu>
9979         * doc/autoconf.texi (Input): Clarify role of AC_CONFIG_MACRO_DIR.
9980         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Do not check
9981         for the existence of the directory at configure-time.  That's
9982         too late, anyway.  Problem reported by Stefan Seefeld.
9984         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Avoid bug in UnixWare
9985         7.1.4 /usr/bin/posix/sh described by Tim Rice in
9986         <http://lists.gnu.org/archive/html/bug-autoconf/2006-09/msg00017.html>.
9988 2006-09-11  Stepan Kasal  <kasal@ucw.cz>
9990         * tests/local.at (AT_CHECK_M4): Fix this so that the testsuite
9991         works with GNU M4 1.4.3 again; make the normalized form
9992         match the current m4 message; fix the description.
9993         * test/tools.at (autom4te cache): Adapt to the change.
9995 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
9997         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):  Add year_2050_test
9998         to catch glibc bug 2821
9999         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
10001         Merge from gnulib as follows: Use AC_CHECK_HEADERS_ONCE instead of
10002         AC_CHECK_HEADERS, and likewise for AC_CHECK_FUNCS_ONCE and
10003         AC_CHECK_FUNCS.  Don't check for stdlib.h, since we now
10004         assume C89.
10006 2006-09-08  Stepan Kasal  <kasal@ucw.cz>
10008         * lib/autom4te.in (Autoconf-without-aclocal-m4): Move the
10009         preselections ...
10010         (Autoconf): ... here.
10011         (Autoscan-preselections): Delete.
10013 2006-09-07  Stepan Kasal  <kasal@ucw.cz>
10015         * lib/autom4te.in (Automake-preselections): Preselect
10016         AM_ENABLE_MULTILIB.
10018 2006-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10020         * doc/autoconf.texi (Preset Output Variables): srcdir and
10021         top_srcdir are not necessarily relative.  Problem reported
10022         by Dries Kimpe.
10024 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10026         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Prefer xlf90/xlf95 over
10027         f90/f95 because the latter drivers of AIX Fortran 9.1 do not
10028         accept files with extension `.f'.  For consistency, also prefer
10029         xlf over f77.
10030         * doc/autoconf.texi (Fortran Compiler): Remove mention of bug
10031         from last patch.
10033 2006-09-05  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
10035         * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB): Added substitution
10036         of ERLANG_LIB_VER_* variables.
10037         * doc/autoconf.texi (Erlang Libraries): Document ERLANG_LIB_VER_*
10038         variables.
10040 2006-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10041         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10043         * doc/autoconf.texi (Limitations of Builtins): Document 'unset'
10044         bugs of Bash 2.01 and 2.05a.
10045         (Fortran Compiler): Document that AC_PROG_CC should be called
10046         before AC_PROG_FC, due to a bug in Autoconf.
10048 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10050         * NEWS: New macro AC_CACHE_CHECK_INT.  It replaces the
10051         old AC_COMPUTE_INT, which now behaves like _AC_COMPUTE_INT
10052         except the first two arguments are reversed.
10053         * doc/autoconf.texi (Caching Results): New macro AC_CACHE_CHECK_INT.
10054         (Generic Compiler Characteristics): AC_COMPUTE_INT no longer
10055         caches nor outputs a diagnostic.  Suggested by Bruno Haible.
10056         * lib/autoconf/general.m4 (AC_CACHE_CHECK_INT): New macro,
10057         equivalent to the old AC_COMPUTE_INT.
10058         (AC_COMPUTE_INT): No longer caches or reports.  New signature.
10059         All uses changed to AC_CACHE_CHECK_INT.
10060         * tests/base.at (AC_CACHE_CHECK_INT): New test.
10061         * tests/mktests.sh (ac_exclude_list): Add AC_CACHE_CHECK_INT.
10063 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10065         * NEWS: AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_FUNC_GETLOADVG,
10066         and AC_REPLACE_FNMATCH are now obsolescent in Autoconf.  New
10067         programs should use their Gnulib counterparts.
10068         * doc/autoconf.texi (Particular Functions): Likewise.
10069         (Macro Names, testsuite Invocation): Replace uses of these
10070         obsolete macros with uses of non-obsolete macros.
10072 2006-08-29  Eric Blake  <ebb9@byu.net>
10074         * configure.ac (AC_INIT): Bump to 2.60b.
10075         * NEWS: Update.
10077 2006-08-28  Eric Blake  <ebb9@byu.net>
10079         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Fix logic that was
10080         mistakenly swapped on 2006-08-15.
10082 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10084         * NEWS: Version 2.60a.
10086 2006-08-25  Stepan Kasal  <kasal@ucw.cz>
10088         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Remove the IPA/IPO
10089         file created by the PGI compiler.
10091 2006-08-25  Noah Misch  <noah@cs.caltech.edu>
10093         * lib/Autom4te/General.pm (END): Use `File::Path::rmtree' to
10094         simplify the code.
10096 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10098         Fix Lex library problem reported to us by Julio Garvia.
10099         * doc/autoconf.texi (Particular Programs): YYTEXT_POINTER is
10100         for the default, which the user can override.
10101         * lib/autoconf/programs.m4 (AC_PROG_LEX): Let _AC_PROG_LEX_YYTEXT_DECL
10102         deal with LEXLIB.
10103         (_AC_PROG_LEX_YYTEXT_DECL): Handle caching correctly; the old code
10104         didn't work if some values were cached but not others.  Test for
10105         broken lex libraries like native ia64-hp-hpux11.22; see
10106         <http://sources.redhat.com/ml/binutils/2003-12/msg00337.html>, and
10107         work around the problem by preferring an empty LEXLIB to -lfl or
10108         -ll.  Let the user set LEXLIB='' to indicate no library needed.
10110         * NEWS: Recommend M4 1.4.6 instead of 1.4.5.
10111         * README: Likewise.
10112         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
10114 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10116         Rework to use more-modern build style.
10117         Many files are renamed; all uses of their names were changed.
10118         * .x-sc_trailing_blank: Renamed from .x-sc_trailing_space.
10119         * .x-sc_useless_cpp_parens: New file.
10120         * build-aux/config.guess: Renamed from config/config.guess.  Update.
10121         * build-aux/config.sub: Renamed from config/config.sub.  Update.
10122         * build-aux/elisp-comp: Renamed from config/elisp-comp.
10123         * build-aux/install-sh: Renamed from config/install-sh.  Update.
10124         * build-aux/mdate-sh: Renamed from config/mdate-sh.
10125         * build-aux/missing: Renamed from config/missing.
10126         * build-aux/texinfo.tex: Renamed from config/texinfo.tex.  Update.
10127         * build-aux/vc-list-files: Renamed from config/vc-list-files.
10128         * config/Makefile.am: Removed.
10129         * config/mkinstalldirs: Removed.
10130         * config/move-if-change: Removed.
10131         * m4/m4.m4: Renamed from config/m4.m4.  Add (C) to copyright notice.
10132         * Makefile.am (SUBDIRS): Remove config.
10133         (ACLOCAL_AMFLAGS): Include from m4, not config.
10134         (EXTRA_DIST): Add config/announce-gen, config/prev-version.txt.
10135         (WGET, WGETFLAGS): New macros, since Makefile.maint no longer does this.
10136         (autom4te-update): Rewrite with a loop.  Get from gnulib, not automake.
10137         Fail if there's an error.
10138         * Makefile.cfg (move_if_change): Remove.
10139         (wget_files): Remove.
10140         (cvs_executable_files): New macro.
10141         (cvs_files): Use it.  Remove mkinstalldirs.  Add fdl.texi.
10142         (executable-update): Use $(cvs_executable_files).
10143         (local-checks-to-skip): Remove.
10144         * Makefile.maint: Merge from coreutils, plus add our own changes
10145         (gzip_rsyncable): New macro.
10146         (GZIP_ENV): Use it.
10147         (CVS_LIST): Use build-aux/vc-list-files.
10148         (VERSION_REGEXP): New macro.
10149         (local-checks-available): Add patch-check, $(syntax-check-rules),
10150         check-AUTHORS.
10151         (syntax-check-rules): Compute dynamically.
10152         (sc_cast_of_x_alloc_return_value): Work even if no source files.
10153         (sc_cast_of_alloca_return_value): Likewise.
10154         (sc_prohibit_atoi_atof): Simplify regexp.
10155         (sc_no_if_have_config_h, sc_require_config_h):
10156         (sc_prohibit_assert_without_use,
10157         (sc_obsolete_symbols): Check for O_NDELAY.
10158         (sc_texi_notab): Remove.
10159         (sc-changelog): Don't make an exception for '----' lines.
10160         (.re-list): Remove, so we don't have a junk file behind.
10161         (sc_system_h_headers): Remove the need for .re-list.
10162         (sc_the_the):  New rule.
10163         (sc_tight_scope): Simplify.
10164         (sc_trailing_blank): Renamed from sc_trailing_space.
10165         (longopt_re): New macro.
10166         (sc_two_space_separator_in_usage): New rule.
10167         (sc_unmarked_diagnostics): Look at all files under CVS.
10168         (sc_useless_cpp_parens, patch-check, check-AUTHORS): New rules.
10169         (news-date-check, changelog-check): Version is OK.
10170         (po-check): Look for lib files even if not in CVS.
10171         (copyright-check): Use $() not ``.
10172         (maintainer-distcheck): Do not depend on changelog-check.
10173         (my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz).
10174         Also check for -Wpointer-arith.
10175         (WGET, WGETFLAGS, tgz-md5, tgz-sha1, bz2-md5, bz2-sha1):
10176         (xdelta-md5, xdelta-sha1, tgz-size, bz2-size, xd-size, rel-check):
10177         Remove.
10178         (announcement): Add --gpg-key-id arg.
10179         (cvs-sv): Remove.
10180         (move_if_change): Just use mv.
10181         (local_updates: Remove wget-update, po-update.
10182         (po_repo, do-po-update, po-update, wget_files, get-targets): Remove.
10183         (config.guess-url_prefix, config.sub-url_prefix): Remove.
10184         (ansi2knr.c-url_prefix, texinfo.tex-url_prefix):
10185         (standards.texi-url_prefix, make-stds.texi-url_prefix, target, url):
10186         ($(get-targets)): Remove.
10187         (cvs_files): Remove missing, mkinstalldirs, ansi2knr.c.
10188         (gnulib_repo): Renamed from automake_repo.  Get from gnulib now.
10189         (cvs-update): Get from gnulib.
10190         (emut_upload_commands): gnupload is in build-aux now.
10191         (alpha beta major): Add changelog-check.  Check version.
10192         * configure.ac (AC_CONFIG_AUX_DIR): Renamed from config to build-aux.
10193         (AC_CONFIG_FILES): Remove.
10194         * bin/autoconf.as: Add spaces to avoid distcheck warning.
10195         * config/announce-gen: Sync from coreutils.
10196         * doc/make-stds.texi: Sync from gnulib.
10197         * doc/standards.texi: Likewise.
10198         * man/Makefile.am: Adjust for config -> build-aux renaming.
10199         * tests/Makefile.am: Prefer $(FOO) to @FOO@.
10200         * tests/local.at: Adjust from config -> build-aux renaming.
10201         * tests/tools.at: Likewise.
10202         * tests/torture.at: Likewise.
10204         * NEWS: The C99 check now tests for vararg macros and 64-bit
10205         preprocessor ints.
10206         * doc/autoconf.texi (C Compiler): Document // comments, va_copy.
10207         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Test varargs macros and
10208         64-bit preprocessor ints.  Check for static initialization of
10209         long long.  Remove unnecessary casts.
10211 2006-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10213         * doc/autoconf.texi (Particular Programs): Mention that
10214         @INSTALL@ and @MKDIR_P@ may vary for different output files.
10215         Reported by Alexandre Duret-Lutz.
10217 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10219         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
10220         -lgcc?* and -lSystem, for Darwin/MacOS X.  Problem reported by
10221         Bill Northcott in
10222         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00083.html>.
10224 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
10226         * lib/autoconf/c.m4 (AC_C_CONST): Don't used shadowed vars, to
10227         pacify insanely picky compilers.  Problem reported by Eric Blake.
10229         * doc/autoconf.texi (Posix Variants): INTERACTIVE Unix is no
10230         longer supported by Sun.
10232 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10234         * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
10235         rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
10236         -Wundef -Werror".  Problem reported by David Fang in
10237         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
10238         * doc/autoconf.texi (Header Templates, Default Includes):
10239         (Particular Functions, Generic Functions, Header Portability):
10240         (Particular Headers, Generic Headers, Generic Declarations, Guidelines):
10241         (Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
10242         (Present But Cannot Be Compiled, Preprocessor Symbol Index):
10243         Prefer #ifdef to #if.
10244         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
10245         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
10246         (AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
10247         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
10248         Likewise.
10249         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
10250         (AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
10251         * lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
10252         (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
10253         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
10254         S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
10255         this.
10257 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
10259         * doc/autoconf.texi (Limitations of Usual Tools): Document sed
10260         problems with arg script text that doesn't end in newline, and
10261         with '-e a...'.  Problems reported by Ralf Wildenhues.
10263 2006-08-12  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
10265         * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
10266         check for libXt by a check for libX11.
10268 2006-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10270         * doc/autoconf.texi (config.status Invocation): Adjust according
10271         to last change.
10273 2006-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10275         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
10276         --help' should mention that `--version' outputs configuration
10277         settings.  Report by Bruno Haible.
10279 2006-08-06  Paul Eggert  <eggert@cs.ucla.edu>
10281         Fix test suite failures reported by Pierre in
10282         <http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
10283         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
10284         the compiler created a file "b.out" when it didn't create anything
10285         at all.
10286         * lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
10287         Discard stderr too, when invoking the test script.
10289 2006-08-05  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
10291         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
10292         in the restoring of the werror flag.
10294 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10296         * doc/autoconf.texi (Volatile Objects): Be even a little
10297         less skeptical about "volatile", after discussion with
10298         Bruno Haible on bug-gnulib.
10299         (Limitations of Usual Tools): Warn about sed stripping
10300         leading white space from text.  From Bruno Haible.
10302 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
10304         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
10305         compiler complains about it, even if things works after the
10306         complaint.  Problem reported by Peter O'Gorman.
10308         * doc/autoconf.texi (Preset Output Variables): Document CFLAGS,
10309         CPPFLAGS, and LDFLAGS better.  Problem reported by Bruno Haible.
10310         Similarly for CXXFLAGS, OBJCFLAGS, ERLCFLAGS.
10312 2006-07-17  Paul Eggert  <eggert@cs.ucla.edu>
10314         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space
10315         after -R regardless of host.  Patrick Welche reports that this
10316         fixes things on NetBSD 3.99.
10318         * NEWS: Recommend M4 1.4.5.
10319         * README: Likewise.
10320         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
10321         * tests/tools.at (autom4te cache): Update wording of diagnostic
10322         to match M4 1.4.5.
10324 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
10326         * doc/autoconf.texi (C Compiler): Add a ref to Volatile Objects
10327         under AC_C_VOLATILE.
10328         (Volatile Objects): Be a little less skeptical about what
10329         "volatile" means.  Derived from thoughts by Ben Pfaff in
10330         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00092.html>.
10332 2006-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10334         * doc/autoconf.texi: Fix some typos.
10336 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
10338         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
10339         more globally, since the 2006-06-30 patch didn't suffice.  Problem
10340         reported by Keith Marshall.  Also, don't bother with builddir2,
10341         since it shouldn't be needed any more.
10343 2006-07-07  Paolo Bonzini  <bonzini@gnu.org>
10345         * doc/autoconf.texi (Generic compiler characteristics):
10346         Document AC_COMPUTE_INT.  Fix wrong statements on Default
10347         Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.
10349         * lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
10350         (_AC_COMPUTE_INT): Add obsoletion warnings.
10351         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
10352         AC_COMPUTE_INT.
10354         * NEWS: Document change.
10356 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
10358         * doc/autoconf.texi (Volatile Objects): New section.
10360         * NEWS: Document previous change.
10362 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
10364         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
10365         Require that long long int be at least 64 bits wide.  C99 requires
10366         this and enough programs depend on it so we should check for it.
10367         Bruno Haible reports in
10368         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00286.html>
10369         that long long int is 32 bits wide with some nonstandard compilers.
10370         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
10372 2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
10374         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
10375         to a nonexistent file, so that we don't have to worry about
10376         a local site configuration that doesn't use /usr/local.
10377         Problem reported by Keith Marshall in
10378         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00133.html>.
10380 2006-06-28  Paul Eggert  <eggert@cs.ucla.edu>
10382         * doc/autoconf.texi: Be more consistent about using @acronym with
10383         "HP" and "HP-UX".  Remove mention of OSF; the old version wasn't
10384         quite right (it talked about "OSF/Tru64", even though the
10385         operating systems were called OSF/1, Digital UNIX, and Tru64 UNIX,
10386         and it even mentioned "OSF 4"!) and at this point there's little
10387         reason to talk about OSF any more, since it died in 1994.
10388         (Specific Compiler Characteristics): Simplify example of
10389         negative-size array.
10390         (File Descriptors): Reorder to make the text flow better.
10391         Remove joke about "appreciate the various levels"; I didn't get it.
10392         Add remark about HP-UX sh -x bug with stderr noted by Bob Proulx in
10393         <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00225.html>.
10394         (File Descriptors, Limitations of Usual Tools):
10395         Tone down the advice against renaming or removing open files.
10396         (Limitations of Usual Tools): Add a new section, on 'rm'.
10398 2006-06-26  Stepan Kasal  <kasal@ucw.cz>
10400         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
10401         -lXt in LIBS, idea from Karsten Hopp; this was due since
10402         this change:
10404         2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10405         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
10406         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
10407         (which belong to Xt, not X itself).  See Debian bug 327655.
10409 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10411         * configure.ac (AC_INIT): Bump to 2.60a.
10412         * NEWS: Update.
10414 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10416         Version 2.60.
10418         * configure.ac, NEWS: Update.
10420 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10422         * config/texinfo.tex: Sync from upstream.
10424         * bin/autom4te.in (handle_traces): Transform the `@S|@'
10425         quadrigraph correctly in traces.
10427         * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
10428         Fix typos.
10430         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
10431         datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
10432         not defined.
10433         * doc/autoconf.texi (Changed Directory Variables): New node,
10434         to document the whole `datarootdir' business a bit better.
10435         * NEWS: Update.
10436         * tests/torture.at (datarootdir workaround): Extend test.
10437         Prompted by report by Alexandre Julliard.
10439 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
10441         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
10442         when using default mode of IBM C 6 for AIX.  Problem and two-line
10443         fix reported by Larry Jones.
10445 2006-06-22  Alexandre Julliard <julliard@winehq.org>
10447         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
10448         about literal '${datarootdir}' if a definition is found in the
10449         output file.
10451 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
10453         * NEWS: Use "M4" rather than "m4" when appropriate.
10454         Problem reported by Eric Blake.
10455         * doc/autoconf.texi: Likewise.
10456         Use @acronym around BSD, GCC, and GNU when appropriate.
10457         (Why GNU M4): Renamed from "Why GNU m4".
10458         (Redefined M4 Macros): Mention that Posix
10459         m4wrap takes only 1 argument, but GNU M4 1.4.x takes more.
10460         (Buffer Overruns): Mention size_t and ptrdiff_t as alternatives
10461         to int.
10463 2006-06-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10465         * bin/autom4te.in (handle_output): Do not forbid the empty
10466         pattern.
10467         * tests/tools.at (autoconf: the empty token): New test.
10469 2006-06-20  Stepan Kasal  <kasal@ucw.cz>
10471         * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
10472         calls, so that we do not care whether they are LIFO or FIFO;
10473         in the m4_wrap, do not check which diversion is the topmost
10474         one, just check that the stack is balanced at the end.
10475         * lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
10476         base diversion forever--pop the previous diversion before
10477         opening the new one; consequently, remove the m4_wrap call.
10478         * lib/autotest/general.m4 (AT_INIT): Likewise.
10479         * tests/m4sugar.at: Do not use
10480         m4_wrap([m4_diversion_pop([..])]), for educational purposes.
10482 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
10483         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10485         * NEWS: Document that m4wrap/m4_wrap might not be LIFO.
10486         * doc/autoconf.texi (Redefined M4 Macros): Likewise.
10487         Rework example of m4wrap token-pasting trouble so that it doesn't
10488         care whether it's LIFO or FIFO.
10489         Fix some "contrary to"s that are awkward in English.
10491 2006-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10493         * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
10494         to `yes' instead of `int$1_t' if the type is found, for more
10495         consistent configure output (where $1 is the number of bits).
10496         (_AC_TYPE_UINT): Likewise for `uint$1_t'.
10497         Suggested by Bruno Haible.
10499         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
10500         needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
10501         with system headers.  Report by Bruno Haible.
10503 2006-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10505         * config/config.guess, config/config.sub: Sync from upstream.
10507         * bin/Makefile.am (autoconf.in): Use `--melt' for autom4te,
10508         in order to avoid picking up an older installed frozen m4sh.m4f.
10509         Besides an outdated shell startup, this could have been created
10510         by an earlier M4 version with incompatible frozen file format.
10512 2006-06-16  Paul Eggert  <eggert@cs.ucla.edu>
10514         * README: Recommend m4 1.4.4 instead of 1.4.3..
10515         * doc/autoconf.texi: Likewise.
10516         (Special Chars in Names): Say that $(.FOO) is portable, as
10517         suggested by Stepan Kasal.
10518         (Installation Directory Variables, Build Directories):
10519         (Automatic Remaking, Subdirectories, Fortran Compiler):
10520         (Making testsuite Scripts, Defining Directories):
10521         Quote variable usages better.
10522         (Making testsuite Scripts): Add clean-local rule to makefile
10523         snippet, by Eric Blake.
10524         (Installation Directory Variables): Fix table item font.
10525         Reword slightly to clarify.  Generalize advice about
10526         not using special characters to include all file-related
10527         vars, not just VPATH.
10528         (Special Chars in Variables): Warn about special characters in
10529         $(srcdir) too.
10530         (Assignments): Clarify default-value example as suggested by
10531         Ralf Wildenhues in
10532         <http://lists.gnu.org/archive/html/autoconf-patches/2006-06/msg00072.html>.
10533         (Special Shell Variables): Note leading ./ or ../, as suggested
10534         by Eric Blake.
10535         (Limitations of Builtins): Under cd, warn about CDPATH.
10536         (The Make Macro MAKEFLAGS): Untabify.  Problem reported by
10537         Ralf Wildenhues.
10539 2006-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10541         * doc/autoconf.texi (Configuration Actions): Remove duplicate
10542         `@var', for texi2html.
10543         (Systemology): Some more word wrapping, for DVI output.
10544         (autom4te Invocation): The short option for `--melt' is `-M',
10545         not `-m'.
10547 2006-06-15  Paul Eggert  <eggert@cs.ucla.edu>
10549         * doc/autoconf.texi: More formatting and English tweaks,
10550         many suggested by Ralf Wildenhues.
10551         Reword to avoid "@code{...}'s" and the like, since it's ugly
10552         with Emacs info mode.  discontents -> woes.
10553         Put a few "will"s back.  time stamp -> timestamp.
10554         side-effect -> side effect.
10556 2006-06-14  Paul Eggert  <eggert@cs.ucla.edu>
10558         * doc/autoconf.texi (Initializing configure, Shell Substitutions):
10559         Warn about $@ not persisting.  Problem reported by Julien Danjou in
10560         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372179>.
10561         (Special Chars in Names): Renamed from Leading _ in Macro Names.
10562         Mention other special chars, too.
10564 2006-06-14  Eric Blake  <ebb9@byu.net>
10566         * doc/autoconf.texi (The Make Macro MAKEFLAGS): New node.
10568 2006-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10570         * doc/autoconf.texi: Some systematic minor improvements, as
10571         follows.  Use "makefile" when talking about makefiles
10572         generally (which might be named "makefile" or "Makefile" or even
10573         "foo.mk"), "Makefile" when talking about a specific makefile
10574         called "Makefile".  This unclutters the text from weird quotes
10575         (e.g., "`Makefile's" in info mode).  Similarly, use "@var{foo}
10576         values" rather than "@var{foo}s" and similar constructs containing
10577         "}s".  Use "Make rules" rather than "Makefile rules".  Minor
10578         English-language improvements.  Change the prefix "sub-" to "sub"
10579         and "re-" to "re".
10580         Put blank lines around examples more consistently.
10581         Avoid "rather" and "very" as intensifiers.
10582         Avoid "will" as an auxiliary.
10583         (Limitations of Make): Split this node into....
10584         (Portable Make, $< in Ordinary Make Rules, Failure in Make Rules):
10585         (Leading _ in Macro Names, Backslash-Newline-Newline):
10586         (Backslash-Newline Comments, Long Lines in Makefiles):
10587         (Macros and Submakes, The Make Macro SHELL, Comments in Make Rules):
10588         (obj/ and Make, make -k Status, VPATH and Make):
10589         (VPATH and Double-colon, $< in Explicit Rules):
10590         (Automatic Rule Rewriting, OSF/Tru64 Directory Magic):
10591         (Make Target Lookup, Single Suffix Rules, Timestamps and Make):
10592         New nodes, resulting from splitup of Limitations of Make.
10593         All cross-references changed.  Raise the top node from
10594         a section to a chapter, and all subnodes accordingly.
10595         Redo the introductory wording to match the new organization.
10596         (Installation Directory Variables): Use an example that is
10597         closer to what Autoconf actually does.  Mention that VPATH's
10598         value should not contain metacharacters or white space.
10599         (Fortran Compiler): Fix a VPATH bug in an example.
10600         (Leading _ in Macro Names): Mention that this problem is no longer
10601         of practical concern.
10602         (VPATH and Make): Reword the advice to make it clearer
10603         that Autoconf and Automake support VPATH in non-GNU make, but
10604         many packages have bugs in this area.
10605         ($< in Explicit Rules): Refer to Build Directories rather
10606         than using a (non-VPATH-safe) example.
10607         (Automatic Rule Rewriting): Mention the sort of disaster that
10608         can ensue with Solaris-style rule rewriting with VPATH.
10610 2006-06-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10612         * doc/install.texi (Compilers and Options): Weaken the
10613         suggestion to use GNU make for VPATH builds.
10615         * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
10616         AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
10618         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
10619         in regular expression.
10621 2006-06-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10623         * doc/autoconf.texi (Installation Directory Variables):
10624         Drop extra @samp from `@table @samp' item.
10625         (Limitations of Usual Tools): Comment fix.
10626         Do not nest @samp just to point to other table items.
10627         (Writing testsuite.at) <AT_CHECK>: The second argument to
10628         `@dvar' is already @samp'ed.
10629         (Making testsuite Scripts) <AC_CONFIG_TESTDIR>: Likewise,
10630         do not use @var in the second argument.
10632 2006-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10634         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
10635         $as_shell.exe too.  Problem reported by Andreas Buening in
10636         <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
10638 2006-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10640         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
10641         `unused variable' compiler warning, for `-Wall -Werror'.
10642         Reported by Jaap Haitsma in
10643         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00012.html>.
10645 2006-06-06  Paul Eggert  <eggert@cs.ucla.edu>
10647         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
10648         case the compiler dumps core.  Problem reported for
10649         OpenServer 5.0.7 by Tim Rice in
10650         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
10651         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
10652         Likewise.
10654 2006-06-06  Tim Rice <tim@multitalents.net>.
10656         * lib/freeze.mk: Quiet check-forbidden-patterns so the string
10657         "ERROR" only shows up in "make check" output if there is an
10658         error.
10660 2006-06-06  Eric Blake  <ebb9@byu.net>
10662         * tests/tools.at (automatically allowed tokens): Fix typo.
10664 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
10666         * NEWS: Don't blame non-GNU VPATH compatibility issues on Automake.
10668         * doc/autoconf.texi (Integer Overflow): Mention that INT_MIN % -1
10669         typically overflows on x86 CPUs, even though the C standard
10670         requires otherwise.
10672 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10674         * configure.ac (AC_INIT): Bump to 2.59e.
10675         * NEWS: Update.
10677 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10679         Version 2.59d.
10681         * config/texinfo.tex: Sync from upstream.
10683         * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
10684         seen, invoke libtoolize with `--ltdl' argument.
10685         * lib/autom4te.in (Autoreconf-preselections): Adjust.
10686         * NEWS: Update.
10687         Suggested by Eric Blake.
10689 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
10691         * NEWS: Whoops!  AC_FUNC_STRNLEN isn't obsolescent.  Problem
10692         reported by Ralf Wildenhues.
10693         * doc/autoconf.texi (AC_FUNC_STRNLEN): Likewise.
10695 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10697         * THANKS: Update.
10699 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
10701         * doc/autoconf.texi: Modernize some of the references to Solaris.
10703 2006-06-05  Stepan Kasal  <kasal@ucw.cz>
10705         * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
10706         message issued by AC_REQUIRE.
10707         * tests/m4sugar.at: Check m4_require's error message.
10708         * tests/base.at: Check AC_REQUIRE's error message.
10709         * tests/local.at (AT_CHECK_M4): New macro, almost identical
10710         to...
10711         (AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
10712         AT_CHECK_M4.
10713         (AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
10714         `expout' as the last parameter.
10715         * tests/tools.at: Adapt to the above change.
10717 2006-06-04  Stepan Kasal  <kasal@ucw.cz>
10719         * doc/autoconf.texi (Limitations of Usual Tools): Correct
10720         information about race-free implementations of mkdir.
10722 2006-06-04  Eric Blake  <ebb9@byu.net>
10724         * bin/autoreconf.in (help): Document M4 environment variable.
10725         * bin/autoconf.as (Usage): Likewise.
10726         * bin/autom4te.in (help): Likewise.
10727         * doc/autoconf.texi (autom4te Invocation): Likewise.
10729 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
10731         * NEWS: GNU make now recommended for VPATH builds.
10732         Mention that some macros are now documented to be obsolescent.
10733         * doc/autoconf.texi:
10734         Prefer "current" to "modern" to describe
10735         currently-used (albeit perhaps old-fashioned) hosts.
10736         Mention which ancient features no longer need to be worried about.
10737         setgid -> set-group-ID
10738         setuid -> set-user-ID (these are the Posix terms)
10739         Fix some misuses of "only".
10740         (AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
10741         (AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
10742         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
10743         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
10744         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
10745         (AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
10746         (AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
10747         (AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
10748         (AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
10749         Mention that these macros are obsolescent.
10750         (Installation Directory Variables): shall -> should
10751         (File Descriptors): Mention that 0, 1, 2 might get reopened.
10752         Mention that it's now safe to use 3 and 4.
10753         (Limitations of Usual Tools): cp -r is now specified by Posix.
10754         Omit longwinded and obsolescent discussion of cp -f.
10755         Modernize discussion of expr, ls.
10756         (Limitations of Make): Modernize discussion of VPATH builds.
10757         Mention $? as a workaround in some cases.
10758         * doc/install.texi (Basic Installation):
10759         Mention "./configure; make; make install" first.  Be more
10760         specific about why this file is generic.  Remove unnecessary
10761         parens.  Remove misleading "only".  Remove obsolete advice
10762         about csh.  Don't say "configure" takes awhile; say it
10763         might take a while.  Suggest CFLAGS=-g rather than CFLAGS=-O2,
10764         and CC=c99 rather than CC=c89, as these are blessed by current
10765         Posix.  Recommend GNU make if doing a VPATH build.
10767 2006-06-03  Paul Eggert  <eggert@cs.ucla.edu>
10769         * doc/autoconf.texi: Use a consistent style "$ @kbd{...}" for
10770         examples involving shell prompts.
10772 2006-06-02  Stepan Kasal  <kasal@ucw.cz>
10773         and Paul Eggert  <eggert@cs.ucla.edu>
10775         * doc/autoconf.texi (Here-Documents): Add details about the
10776         pre-ksh93g bug.  Reword slightly to make it clearer.  Consistently
10777         use "here-documents" instead of "here documents".
10779 2006-06-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10781         * config/texinfo.tex, doc/standards.texi: Sync from upstream.
10783 2006-06-01  Paul Eggert  <eggert@cs.ucla.edu>
10785         * doc/autoconf.texi (File System Conventions): Warn about ":"
10786         anywhere in directory names.
10788 2006-05-31  Paul Eggert  <eggert@cs.ucla.edu>
10790         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be even more conservative
10791         about quoting the case statement, just in case.
10792         * doc/autoconf.texi (Here-Documents): Mention that the ksh bug
10793         was fixed in ksh93g; reported by Ralf Wildenhues.
10795 2006-05-31  Stepan Kasal  <kasal@ucw.cz>
10797         * doc/autoconf.texi (System Services): Do not document
10798         overriding EXEEXT via ac_cv_exeext=ext.
10799         (Particular Programs) <AC_PROG_MKDIR_P>:
10800         Document that ${MKDIR_P} understands --.
10801         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Improve the
10802         comment.
10804 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10806         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Guard against test
10807         argument with leading hyphen.  Problem reported by Paul Eggert.
10809 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
10811         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be more conservative
10812         about quoting ac_try: quote all of it, if any of it seems suspicious.
10813         This means we don't have to worry about ${ or sed any more.
10814         Also, double-quote the case statement, to work around misuses via
10815         underquoting as reported by Ralf Wildenhues in
10816         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00169.html>.
10817         (_AC_EVAL_STDERR): Revert, since evidently some packages rely on this
10818         undocumented and dangerous macro.
10819         Problem reported by Ralf Wildenhues in
10820         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00168.html>.
10822 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10824         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Check whether
10825         `dirname -- /' returns `/', for SunOS dirname scripts that escaped.
10826         Report by Sam Sirlin <sam@kalessin.jpl.nasa.gov>.
10828 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
10830         * lib/autoconf/general.m4: Revert AC_TRY_EVAL and AC_TRY_COMMAND,
10831         since evidently some packages rely on the old, broken behavior.
10832         Problem reported by Ralf Wildenhues in
10833         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00160.html>.
10834         (AC_TRY_EVAL, AC_TRY_COMMAND, _AC_EVAL): Go back to the
10835         pre-2006-05-26 definitions, but leave in the comments that
10836         these macros are dangerous and should not be used.
10837         (_AC_DO_ECHO): Renamed from _AC_EVAL_ECHO.  All callers changed.
10838         (_AC_DO): Renamed from _AC_EVAL.  All callers changed.
10839         (_AC_DO_STDERR): Renamed from _AC_EVAL_STDERR.  All callers changed.
10840         (_AC_DO_VAR): Renamed from AC_TRY_EVAL.
10841         (_AC_DO_TOKENS): Renamed from AC_TRY_COMMAND.
10843 2006-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10845         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
10846         the use of 'tr', since this is our only use of 'tr'.
10848 2006-05-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10849         and Paul Eggert  <eggert@cs.ucla.edu>
10851         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
10852         Don't assume 'grep' works on long lines, since AIX grep doesn't.
10854 2005-05-28  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10856         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on
10857         the output file in the `${datarootdir}' test.
10859 2005-05-28  Stepan Kasal  <kasal@ucw.cz>
10860         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10862         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If we have not seen
10863         mention of `datarootdir' in the input file(s), but literal
10864         `${datarootdir}' in the output file, and we haven't warned yet,
10865         then warn as well: the user may have (erroneously) used
10866         `AC_SUBST([mydatadir], [$datadir/my])' instead of the correct
10867         `AC_SUBST([mydatadir], ['${datadir}/my'])'.
10868         * tests/torture.at (datarootdir workaround): Extend this test.
10869         * NEWS: Update.
10871 2006-05-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10872         and Paul Eggert  <eggert@cs.ucla.edu>
10874         * doc/autoconf.texi (autoheader Invocation): The first argument to
10875         `AC_DEFINE_UNQUOTED' need not be a literal.  Mention the
10876         alternatives and clear up the language a bit.
10878 2006-05-27  Paul Eggert  <eggert@cs.ucla.edu>
10880         * NEWS: Reword notice for AC_TRY_COMMAND, AC_TRY_EVAL,
10881         ac_config_guess, ac_config_sub, ac_configure.
10882         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
10883         Fix typo that prevented an unnecessary space from being removed.
10884         Problems reported by Ralf Wildenhues in:
10885         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00143.html
10887 2006-05-26  Paul Eggert  <eggert@cs.ucla.edu>
10889         * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
10890         Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
10891         Don't use the term "thread-safe" to talk about mkdir race
10892         conditions, since the problem is more a process than a thread
10893         issue.  Problem reported by Stepan Kasal in:
10894         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
10895         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
10896         the test for 'install' more closely.  Look at MKDIR_P first.
10897         Look in the PATH, and at /opt/sfw/bin.
10898         Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
10899         Don't bother to try mkdir -p, since we already check mkdir --version;
10900         just look at the version number.  (There's no easy way to check
10901         for race-free implementations.)
10902         * tests/tools.at (autoconf: subdirectories): Adjust to above
10903         changes, since MKDIR_P now might end in "/mkdir -p".
10905         * doc/autoconf.texi (autoheader Invocation): Mention that the
10906         first arg of AC_DEFINE_UNQUOTED must be a literal.
10907         Problem reported by Ben Pfaff in
10908         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00090.html>.
10910         * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
10911         * doc/autoconf.texi (Special Chars in Variables): New section.
10912         (Preset Output Variables): Warn about special chars in CPPFLAGS.
10913         (Installation Directory Variables): Quote $(datadir) better.
10914         (Limitations of Builtins): Describe some of eval's trickiness.
10916         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
10917         * lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
10918         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
10919         in front of every arg, not just trailing args.  Quote apostrophes.
10920         (_AC_EVAL_ECHO): New macro.
10921         (_AC_EVAL, AC_EVAL_STDERR): Use it.  Quote arg of eval.
10922         (AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
10923         removed.
10924         (_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
10925         exposed by quoting of eval argument.  Put the command on line line
10926         so it logs better.
10927         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
10928         (_AC_PATH_X, AC_PATH_X): Quote more safely.
10929         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
10930         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
10931         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
10932         Handle special chars in prefix, ac_srcdir, ac_aux_dir.
10933         Use eval more safely.
10934         (_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
10935         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
10936         to be replaced.
10937         * tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
10938         lines, exposed by quoting of eval argument.
10940 2006-05-26  Stepan Kasal  <kasal@ucw.cz>
10941         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10943         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
10944         initialization of `ac_cv_exeext', do not override it if it was
10945         already set, unless it was set to `no', for compatibility with
10946         Autoconf-2.13, and comment this.
10947         Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
10948         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
10949         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
10950         * doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
10951         Document that this test may be overridden by setting
10952         `ac_cv_exeext'.
10954 2006-05-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10956         Revert these two patches:
10958         2006-04-06  Eric Blake  <ebb9@byu.net>
10959         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
10960         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
10961         2006-04-01.
10963         2006-04-01  Stepan Kasal  <kasal@ucw.cz>
10964         Clean up _AC_COMPILER_EXEEXT* macros.
10965         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
10966           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
10967           ac_file to the name of the default output file and call
10968           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
10969           initial `rm' of the candidate files...
10970         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
10971           the same list in subsequent `rm' calls, and for the temporary
10972           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
10973           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
10974         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
10975         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
10976           no longer needed) by libtool.  Make it a cache check.
10977         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
10978           copied here by mistake.
10979         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
10980           _AC_COMPILER_EXEEXT.
10981         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
10982           _AC_COMPILER_OBJEXT directly.
10983         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
10985 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10987         * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
10988         Fix description of how the buggy `sed' works.
10990 2006-05-25  Noah Misch  <noah@cs.caltech.edu>
10992         Sync from Automake:
10994         * lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
10995         ENOLCK.  Only mention `make -j' when applicable.  Only raise
10996         fatal errors when `make -j' is involved.  Improve error message.
10998 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11000         * doc/autoconf.texi (Here-Documents): We now know more about
11001         the variable expansion in here documents bug.
11002         Thanks to Tim Rice and Stepan Kasal.
11004         * doc/autoconf.texi (Making testsuite Scripts): Add an example
11005         how to use TESTSUITEFLAGS.  Suggested by Eric Blake.
11007 2006-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11009         * tests/autotest.at (Multiline command from M4 expansion):
11010         No failure to be expected if the shell quotes newlines in
11011         commands in the `set -x' output.  Report by Tim Rice.
11012         * THANKS: Update.
11014 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11016         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
11017         expansion in the here-documents used by config.status, as that
11018         runs afoul of the Korn shell version M-12/28/93d bug described in
11019         the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
11020         fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
11021         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
11023 2006-05-23  Jim Meyering  <jim@meyering.net>
11025         * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
11026         Fix typo introduced with 2006-04-02 change.  It reversed the sense
11027         of the test.
11029 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11031         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
11032         ac_dB slightly, to save bytes in the script.
11033         Max out at 50 lines, rather than 96; this is more likely
11034         (though not guaranteed) to avoid obscure 'sed' failures.
11036 2006-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11038         * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
11039         `tr -d -' as bad option argument.  Work around this by deleting
11040         an unrelated character.
11041         Report by Tim Rice <tim@multitalents.net>.
11043 2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>,
11044             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
11045             Stepan Kasal  <kasal@ucw.cz>
11047         * doc/autoconf.texi (Particular Programs): Do not promise that
11048         we always prefer the GNU version of the program, and that we
11049         search according to PATH; both rules can have exceptions.
11050         Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
11051         AC_PROG_SED.  Move descriptions of limitations
11052         to the Limitations of Usual Tools section.
11053         (Limitations of Usual Tools) <sed>: Mention script length
11054         limitations with Solaris /usr/ucb/sed.
11055         <grep>: Fix wording for empty alternative.  Mention that -c and
11056         -l should not be combined, and that -E and -F should not be
11057         combined.
11059 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11060         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11062         * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
11063         limits in Solaris 8 /usr/ucb/sed by testing a long script.
11065 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
11067         * doc/autoconf.texi (Defining Symbols): Literal parameter of
11068         AC_DEFINE is now passed to m4_pattern_allow.
11069         * NEWS: Mention that; likewise for AC_SUBST.
11070         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
11071         the parameter to m4_pattern_allow.
11072         * tests/tools.at: Add a check for that.
11074 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
11076         * lib/autoconf/status.m4: Fix typos.
11078 2006-05-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11080         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
11081         only the files that this macro generates.
11083 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11085         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
11086         the HP-UX sed limitation of 99 commands, labels do not count.
11087         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
11088         in the comment.
11089         (_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
11091 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11093         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
11094         Import the following fix from coreutils:
11096         2006-01-13  Jim Meyering  <jim@meyering.net>
11098         Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
11099         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
11100         not double-quote uses of that variable, to accommodate the rare
11101         case in which getmntent is available in none of the libraries
11102         checked.  This happens at least on FreeBSD 5.0.
11104 2006-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11106         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
11107         ac_config_guess, ac_config_sub, and ac_configure, since evidently
11108         some other programs unwisely rely on these undocumented vars.
11109         But put in warning comments about them.
11110         Problem reported by Ralf Wildenhues in
11111         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
11112         * NEWS: Document that these variables are intended to go away.
11114 2006-05-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11116         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
11117         and set the language to C++ (analogous to the equivalent Fortran
11118         tests).
11120         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
11121         * doc/autoconf.texi (C++ Compiler): Document it.
11122         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
11123         * NEWS: Update.
11125 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11127         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
11128         that caused config.status to generate 100-command sed scripts; the
11129         portable limit is 99.
11131 2006-05-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11133         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
11134         variable `ac_d' instead of `d' to avoid infringing namespace.
11135         Report by Ralf Menzel.
11137 2006-05-18  Paul Eggert  <eggert@cs.ucla.edu>
11139         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
11140         $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
11141         * tests/tools.at (autoconf: subdirectories): New test, taken from
11142         the corresponding problem report by Ralf Wildenhues in:
11143         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
11145         * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
11146         Quote some uses of shell variables if they might suffer unexpected
11147         globbing.  This doesn't fix all instances of quoting problems that
11148         I found, just the easy ones that look safe.
11149         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
11150         (AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
11151         (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
11152         (AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
11153         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
11154         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
11155         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
11156         Likewise.
11157         * lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
11158         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
11160 2006-05-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11162         * bin/autoreconf.in ($help): Reword according to the manual.
11163         Suggested by Olly Betts.
11165 2006-05-17  Olly Betts  <olly@survex.com>  (tiny change)
11166         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11168         * bin/autoreconf.in: Pass the directory argument to
11169         `require_configure_ac'.  Fix comment.
11170         * tests/torture.at (Configuring subdirectories): Expose this.
11171         Reported by Olly Betts.
11173 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11175         * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
11176         lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
11177         Automake as follows:
11179         * lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
11180         `$configure_in' instead of `configure.in', to preserve
11181         directory component.
11183 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11185         * config/config.guess, config/config.sub, config/texinfo.tex,
11186         doc/make-stds.texi, doc/standards.texi: Sync from upstream.
11188 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
11190         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
11191         test for C99 conformance; (bool) 0.5 is an integer constant
11192         expression, but (bool) -0.5 is not.  Problem reported by Fedor
11193         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
11195 2006-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11197         * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
11198         sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
11199         Warn about obsolete install-sh files.  Remove stray sentence
11200         fragment and fix cross reference.
11201         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
11202         install -d; this undoes the 2006-05-10 change.
11203         (MKDIR_P): Mark with AN_MAKEVAR.
11204         (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
11205         that we don't require $INSTALL to be thread-safe.  Move comments
11206         out of generated code.  Require AC_CONFIG_AUX_DIR_DEFAULT instead
11207         of AC_PROG_INSTALL.  Output a message saying that we're checking
11208         mkdir -p.  Set MKDIR_P rather than mkdir_p.  Do special magic for
11209         MKDIR_P instead of AC_SUBST.
11210         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
11211         Special magic for MKDIR_P, too.
11212         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
11213         a dnl.
11214         * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
11216 2006-05-11  Paul Eggert  <eggert@cs.ucla.edu>
11218         Sync from Automake, as follows:
11220         2006-05-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11221         * config/install-sh: Initialize IFS, so field splitting isn't
11222         turned off later.
11223         * config/mkinstalldirs: Likewise.
11224         * config/missing: Remove superfluous quotes.  Replace all uses of
11225         `[' by `test', for consistency, and for..
11226         * config/missing (sed_minuso, sed_output): New variables.
11227         (autom4te, help2man, makeinfo): Use them.  Unifies detection of
11228         `-o FILE', `--output FILE', `--output=FILE', stricter regex.
11229         Fixes `missing' to detect `--output' for help2man.  Fixes
11230         PR automake/483.  Report by Dennis J. Linse.
11231         (autom4te): Document in `missing --help'.
11233 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
11235         * NEWS: New macro AC_PROG_MKDIR_P.  AS_MKDIR_P is now more robust.
11236         * config/install-sh: Don't use 'path' to talk about file names,
11237         as per GNU coding standards.  Close a race condition reported by Ralf
11238         Wildenhues and Stepan Kasal.  There is still a race condition
11239         on hosts that predate Posix 1003.1-1992, but we can't help this.
11240         Don't mishandle weird characters like space on pre-Posix hosts.
11241         Invoke mkdir at most once per dir arg on pre-Posix hosts.
11242         * doc/autoconf.texi (Programming in M4sh): Cross-reference to
11243         AC_PROG_MKDIR_P from AS_MKDIR_P.
11244         (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
11245         from mkdir.  Mention that Autoconf 2.60 install-sh is safe but
11246         earlier editions are not (including Automake 1.8.3).
11247         Do not suggest mkinstalldirs for thread-safety.
11248         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
11249         that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
11250         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
11251         presence of special characters and race conditions.
11252         * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
11253         in Autoconf's name space.
11255 2006-05-10  Bruno Haible  <bruno@clisp.org>
11256         and Paul Eggert  <eggert@cs.ucla.edu>
11258         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
11259         from Automake with minor changes.
11260         * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
11262 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
11264         * config/install-sh: Update to Automake CVS version, as follows:
11265         2006-04-25  Stepan Kasal  <kasal@ucw.cz>
11266         * lib/install-sh: Simplify the expr implementation of dirname.
11267         2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11268         * lib/install-sh: Handle --, and diagnose unknown options.
11270 2006-05-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11272         * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
11273         `./autom4te' to create `./testsuite', since the `all' target
11274         will ensure its presence, but `installcheck' should not create
11275         the uninstalled wrappers.
11277         * tests/torture.at (Unusual Automake input files): Skip if we
11278         detect automake < 1.8.
11280 2006-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11282         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
11283         is set to `no', then that overrides and sets ac_cv_prog_cc_c89
11284         and ac_cv_prog_cc_c99 to `no', for backward compatibility.
11285         * NEWS: Update.
11287 2006-05-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11289         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
11290         munge (multiple) white space and other oddities.
11291         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
11292         single quotes in variable assignment.
11293         (AC_ARG_VAR, configure invocation): Adjust tests to expose this
11294         and similar failures by adding multiple spaces, tabs, and other
11295         special characters.
11296         Report and different test suggested by Francesco Romani
11297         <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
11299         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
11300         single quotes, we only need to search for single quotes; this
11301         both simplifies the search pattern, and makes us less
11302         susceptible to `echo' variations for arguments not containing
11303         single quotes.
11304         (_AC_ARG_VAR_VALIDATE): Likewise.
11306 2006-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11308         * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
11309         `$*' and IFS concatenation issue with traditional shells and
11310         bash-2.04.  Report by Seanster@Seanster.com.
11312 2006-05-03  Bruno Haible  <bruno@clisp.org>
11314         * doc/autoconf.texi (Limitations of Usual Tools): Identify more
11315         precisely which Mac OS X versions have the od problem.
11317 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
11319         * doc/autoconf.texi: Use @option systematically.
11321 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
11322         and Bruno Haible  <bruno@clisp.org>
11324         * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
11325         about 'od'.
11326         (Integer Overflow): Mention the special case of integer division
11327         overflow.
11329 2006-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11331         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
11332         traditional shells like the Solaris one that do not use the
11333         first IFS character for assembling `$*'.
11334         Prompted by a related report from autoconf_bug@nro.ca.
11336 2006-05-01  Paul Eggert  <eggert@cs.ucla.edu>
11337         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11339         * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
11340         Mention more problems with the -e option.
11342 2006-04-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11344         * NEWS: Typo.
11345         * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
11347         * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
11348         in URLs to improve DVI formatted output (requires texinfo 4.6).
11349         (System Services, Systemology, Shellology): Likewise.
11350         (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
11351         output.
11353         * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
11354         continuous text.
11355         (Runtime): Fix macro argument names to match description:
11356         `action-if-found' -> `action-if-true' and similarly.
11357         (Obsolete Macros): Likewise.
11358         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
11359         (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
11360         (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
11362 2006-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11364         * doc/autoconf.texi (Limitations of Make): Clean up markup.
11366         * ChangeLog: Typo.
11367         * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
11368         DVI output.
11370 2006-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11372         * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
11373         /bin/sh set unsorted output.
11374         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
11375         * tests/local.at: Likewise.
11377 2006-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11379         * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
11380         (Integer Overflow, Null Pointers, Buffer Overruns):
11381         (Floating Point Portability, Exiting Portably): New sections.
11382         (Writing Test Programs): Fix some langauge.  Recommend exiting
11383         with status 1, not merely nonzero.  Clarify exit declaration.
11384         (Run Time): Move C exit status stuff to new Exiting Portably section.
11385         (Systemology): Mention Posix and levenez.  Update v7 reference.
11386         (Portable Shell): Mention the Posix shell.
11388 2006-04-25  Stepan Kasal  <kasal@ucw.cz>
11390         * bin/autoconf.as (me): Replace by as_me.
11392 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11394         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
11395         since as_me isn't set yet.
11397 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
11399         Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
11400         a few minor bugs in this area.
11402         * doc/autoconf.texi (Programming in M4sh): Comment out the
11403         documentation of AS_BASENAME, for now.
11404         (Shell Substitutions): Do not use AS_DIRNAME in an example.
11405         (Limitations of Builtins) <basename>: Do not refer to
11406         AS_BASENAME.
11407         * bin/autoconf.as (me): Don't use AS_BASENAME.
11408         (dir): Remove the unused variable.
11409         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
11410         AS_DETECT_REQUIRED.  All uses changed.
11411         (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
11412         All uses changed.
11413         (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
11414         (AS_BASENAME): Use "basename --" to protect against leading "-".
11415         (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR.  All uses changed.
11416         (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED.  All uses changed.
11417         (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
11418         (_AS_DIRNAME_PREPARE): Likewise.
11419         (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR.  All uses changed.
11420         (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED.  All uses changed.
11421         (AS_DIRNAME): Use "dirname --".
11423 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
11425         * doc/autoconf.texi (Runtime): Renamed from "Run Time".  All uses
11426         of "run time" and "run-time" changed to "runtime", for consistency.
11427         * lib/autoconf/fortran.m4: Likewise (in comment).
11428         * lib/autoconf/functions.m4: Likewise.
11429         * lib/autoconf/general.m4: Likewise.
11430         * lib/autoconf/headers.m4: Likewise.
11432         * doc/autoconf.texi (Run Time): Document the exit status situation
11433         with more accuracy and detail.
11435 2006-04-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11437         * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
11438         Archive is not officially `GNU' any more.  Update URL.
11439         (Defining Directories): Likewise
11440         * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
11442 2006-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11444         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
11445         newline from the `trap' code to finish `config.log'; the NetBSD
11446         /bin/sh resets the exit status after an empty command, as
11447         documented in doc/autoconf.texi.
11448         Reported by Dalibor Topic <robilad@kaffe.org>.
11450 2006-04-19  Paul Eggert  <eggert@cs.ucla.edu>
11452         * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
11453         Suggested by Bruno Haible.
11455 2006-04-18  Paul Eggert  <eggert@cs.ucla.edu>
11457         * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
11458         some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
11459         Instead, just list the shells that we know work.
11460         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg.  All uses
11461         changed.  Be more cautious about the _cv_ variable.
11462         * tests/tools.at (Syntax of the shell scripts): Check the
11463         _cv_ variable once, at first, to avoid an internal autoconf error
11464         when sh -n does not work.
11466 2006-04-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11468         * lib/Autom4te/FileUtils.pm: Sync from Automake.
11470 2006-04-16  Paul Eggert  <eggert@cs.ucla.edu>
11472         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
11473         use ">&-" since we're only 99.999% sure that this is portable,
11474         and since the MinGW bug is fixed in a different way.
11475         * lib/autotest/general.m4 (AT_INIT): Likewise.
11477 2006-04-16  Stepan Kasal  <kasal@ucw.cz>
11479         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
11480         before opening config.log, to avoid hitting a bug on MinGW.
11482 2006-04-14  Paul Eggert  <eggert@cs.ucla.edu>
11484         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
11485         AS_MESSAGE_LOG_FD before reopening it onto the log file.
11486         This works around a MinGW bug reported by Eric Paire.
11487         Make sure that all writes to the log file append to it,
11488         rather than possibly losing data.
11489         * lib/autotest/general.m4 (AT_INIT): Likewise.
11491 2006-04-14  Stepan Kasal  <kasal@ucw.cz>
11493         * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
11494         description.
11496 2006-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11498         * NEWS: Update.
11500         * configure.ac (AC_INIT): Bump to 2.59d.
11502 2006-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11504         Version 2.59c.
11506         * Makefile.maint (news-date-check): Do not require a leading `*'
11507         before the release date in NEWS.
11509 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
11510         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11512         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
11513         the instantiated file do not contain the string 'datarootdir'
11514         but contain @datadir@, @docdir@, @infodir@, @localedir@, or
11515         @mandir@, replace the reference '${datarootdir}' by the value.
11516         * tests/torture.at (datarootdir workaround): New test.
11517         * NEWS: Advertise this temporary fixup.
11518         Based on a patch by Bruno Haible, reported and analyzed by
11519         Paul Eggert and Noah Misch.
11521 2006-04-12  Eric Blake  <ebb9@byu.net>
11523         * tests/autotest.at (Debugging a failed test): Fix comment.
11525 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
11527         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
11528         all the changes since 2006-04-07.
11530 2006-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11532         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
11533         succeeded, but `ln -s file dir' failed, take care to remove the
11534         leftover target before the next test, to prevent its spurious
11535         failure; also make sure `ln file dir' works before selecting it.
11536         Thanks to Keith Marshall for pointing this out.
11537         * THANKS: Update.
11539         * lib/autotest/general.m4 (AT_INIT): Store quoted variable
11540         assignments in `at_debug_args', so that we put them correctly
11541         in the `run' script.
11542         * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
11543         Reported by Eric Blake.
11545 2006-04-11  Eric Blake  <ebb9@byu.net>
11547         * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
11548         top-level tests after micro-suite has been run.   Used in...
11549         (Debugging a successful test, Debugging script and environment),
11550         (Debugging a failed test): ...these new tests.  The first of these
11551         is fixed by...
11552         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
11553         macro, split out from...
11554         (AT_INIT): ...here, so that using -d also generates a run script.
11555         Document that -d inhibits top-level logging.
11556         * doc/autoconf.texi (testsuite Invocation): Document that -d only
11557         inhibits top-level logging; debug scripts are created.
11559         * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
11560         check.
11561         * tests/autotest.at (Empty test, Empty check): New test to check it.
11563         * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
11564         from gcc.
11566 2006-04-10  Stepan Kasal  <kasal@ucw.cz>
11568         * tests/mktests.sh: Use "trap '' 0", not "trap 0".  Do not touch
11569         the files if a problem appears.  Make the empty *.at files
11570         read-only, too.  Proposed by Ralf Wildenhues.
11572 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11574         * config/Makefile.am: Add comment to force updated Makefile.in.
11576         * lib/freeze.mk: Fix typo in comment.  Unlike the last, white
11577         space only patch to this file, this patch causes the Makefile.in
11578         files that include freeze.mk to be updated, and thus have a
11579         newer time stamp again, which in turn makes a pristine CVS
11580         checkout have correct time stamps.
11582         * Makefile.maint (cvs-sv): New macro, to be used..
11583         (config.guess-url_prefix, config.sub-url_prefix)
11584         (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
11585         point to CVS text checkout of Gnulib files.
11586         (copyright-check): Bump current year.
11587         (announcement): Do not hard-wire `./announce-gen'.
11588         (cvs-update): Propagate failures of `cvs' and `move-if-change'
11589         correctly.
11590         * Makefile.cfg (executable-update): Use `chmod a+x' instead of
11591         `chmod +x'.
11592         (wget_files): Update config.guess, config.sub, texinfo.tex by
11593         `wget-update', now that their URLs work again.
11595 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
11597         * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
11598         Problem noted by Paul D. Smith.
11600 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11602         * doc/autoconf.texi: Remove unused words from word list.
11603         * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
11604         .x-sc_trailing_space: New files.
11606         * doc/standards.texi: Sync from gnulib.
11608         * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
11609         `LIBOBJDIR' as experimental.
11611         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
11612         with a target directory; it's internally implemented as `cp'
11613         anyway, but since Autoconf advertises the possibility to use
11614         a target directory when LN_S is `ln -s', we need to find out.
11615         Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
11616         analyzed by Keith Marshall <keith.marshall@total.com>.
11618         * THANKS: Update.
11620 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
11622         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
11623         confdefs.h as-is.  In general, if it has backslash-newline or the
11624         like, then it doesn't work either to sort or to remove empty
11625         lines.
11627 2006-04-09  Stepan Kasal  <kasal@ucw.cz>
11629         * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
11631 2006-04-09  Alexandre Duret-Lutz  <adl@gnu.org>
11633         * lib/autom4te.in (Automake-preselections): Preselect
11634         _AM_SUBST_NOTMAKE.
11636 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
11638         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
11639         apostrophe within a single-quoted string, as this is the usual
11640         tradition and is easier to read than '"'"'.  Don't rely on the
11641         shell treating "$/" like '$/'.  Use a more-consistent indenting
11642         style for the trap.
11644 2006-04-09  Eric Blake  <ebb9@byu.net>
11646         * tests/autotest.at (Backquote command substitution),
11647         (Multiline backquote command substitution): Remove mistaken
11648         AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
11649         applied...
11650         (Parenthetical command substitution, Multiline parenthetical
11651         command substitution): here.
11653 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
11655         Import macros from gnulib (often changing their name).
11657         * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
11658         New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
11659         AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
11660         AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
11661         AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
11662         AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
11663         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
11664         AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
11665         AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
11666         AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
11667         The manual mentions Gnulib more prominently.
11668         * doc/autoconf.texi (Gnulib): New node.
11669         (Pointers): Add Gnulib URL.
11670         (Particular Functions): Alphabetize.  Add AC_FUNC_STRTOLD.
11671         (Generic Functions): Add AC_CHECK_FUNCS_ONCE.  Refer to new
11672         Gnulib section.
11673         (Particular Headers): Add AC_HEADER_ASSERT.  For stdbool.h,
11674         suggest a #define rather than a typedef for _Bool, and mention
11675         Gnulib rather than trying to substitute stdbool code.
11676         (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
11677         (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
11678         (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
11679         AC_STRUCT_DIRENT_D_TYPE.
11680         (Particular Types): Mention stdint.h and inttypes.h as standard
11681         headers too.
11682         Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
11683         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
11684         AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
11685         AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
11686         AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
11687         (C Compiler): Move AC_C_LONG_DOUBLE to ...
11688         (Obsolete Macros): here.  Under AC_LONG_DOUBLE, mention
11689         AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
11690         (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
11691         (Coding Style).  Don't mention m4_expand_once.
11692         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
11693         AC_TYPE_LONG_DOUBLE_WIDER.  Now obsolete.
11694         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
11695         (AC_CHECK_FUNCS): Use it.
11696         (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
11697         (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
11698         * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
11699         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
11700         (AC_HEADER_ASSERT): New macro.
11701         (AC_HEADER_STDBOOL): Don't assume "#error" works.
11702         Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
11703         Catch a bug in an HP-UX C compiler.
11704         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
11705         * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
11706         (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
11707         (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
11708         (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
11709         (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
11710         New macros.
11712         * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
11713         use /^foo|bar$/, it does not mean /^(foo|bar)$/.
11715 2006-04-08  Stepan Kasal  <kasal@ucw.cz>
11717         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
11718         of the warning introduced by the 2001-08-28 change.
11720 2006-04-08  Stepan Kasal  <kasal@ucw.cz>,
11721             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11723         * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
11724         variables shall be overriden by the cache.
11725         * tests/torture.at (AC_ARG_VAR): Test also with a first value
11726         that contains braces.
11728 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
11730         Revert the patch from 2006-04-01 and only improve
11731         _AS_DETECT_BETTER_SHELL:
11733         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
11734         skip nonexistent directories.
11735         (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
11736         only shell candidates which exist.
11737         (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
11738         * lib/autotest/general.m4 (AT_INIT): No need to give three
11739         parameters to _AS_PATH_WALK.
11741 2006-04-07  Stepan Kasal  <kasal@ucw.cz>,
11742             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11744         * bin/autoupdate.in (handle_autoconf_patches): Change the way we
11745         distinguish m4sugar macros.
11746         * tests/tools.at (autoupdating with aclocal and m4_include):
11747         New test.  Bug reported by Gary V. Vaughan <gary@gnu.org>,
11748         test case by Noah Misch <noah@cs.caltech.edu>.
11750 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
11752         Revert my change from 2006-03-17, in other words:
11753         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
11754           and DUALCASE=1.
11755         (AS_SHELL_SANITIZE): Remove DUALCASE=1.
11756         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
11757           it is set.
11759 2006-04-07  Eric Blake  <ebb9@byu.net>
11761         * doc/autoconf.texi (Programming in M4sh): Document that
11762         AS_MKDIR_P exits the script on failure.
11763         * lib/autotest/general.m4: Remove redundant AS_ERROR.
11765 2006-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11767         * config/elisp-comp, config/install-sh, config/mdate-sh,
11768         config/missing, config/mkinstalldirs: Sync from Automake.
11770         * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
11771         from Automake.
11773         * doc/make-stds.texi: Sync from gnulib.
11775 2006-04-06  Eric Blake  <ebb9@byu.net>
11777         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
11778         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
11779         2006-04-01.
11781 2006-04-06  Stepan Kasal  <kasal@ucw.cz>,
11782             Eric Blake  <ebb9@byu.net>,
11783             Paul Eggert  <eggert@cs.ucla.edu>,
11784             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11786         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
11787         whether `set' quotes correctly: redirect stderr of the tested
11788         `set', and use a subshell, for Ultrix; use `sed' instead of
11789         `grep' for zsh `set' which may write binary output; match only
11790         at the beginning of a line, to avoid false positives.
11791         In order to avoid false positives by unrelated variables with
11792         multiline content, put the dump algorithm in a subshell and
11793         unset all variables containing newlines (except some which are
11794         special to the shell).  Warn about cache variables that are
11795         unset.
11797 2006-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11799         * config/config.guess, config/config.sub, config/texinfo.tex:
11800         Sync from upstream.
11802         * tests/mktests.sh: Reword comments.
11804         * tests/mktests.sh: Only skip internal macros starting with
11805         `_AC_' or `__AC_'.  Noted by Stepan Kasal.
11806         Update exclusion lists for the test suite to this end:
11807         (AC_ARG_VAR): Do test this now.
11808         (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
11809         (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
11810         (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
11811         (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
11813         * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
11814         shell issue with double-quoted command substitutions of native
11815         commands.
11816         Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
11817         Marshall.
11819         * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
11820         no file matches the glob, discard the warning, set `nullglob'.
11821         (syntax-check): Likewise.
11822         (sc_cast_of_x_alloc_return_value): Likewise.
11823         (sc_cast_of_alloca_return_value, sc_error_exit_success)
11824         (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
11825         (m4-check): Likewise.
11826         (sc_system_h_headers): Do not print rule on execution.
11827         (sc_tight_scope): Do not fail for non-existing `src' directory.
11828         (sc_changelog): Skip the Copyright footer.
11829         * lib/autoconf/lang.m4: Remove trailing space.
11831         * lib/autoconf/status.m4: More replacements to
11832         <tab><space> where this makes sense.
11834 2006-04-06  Stepan Kasal  <kasal@ucw.cz>
11836         * tests/Makefile.am (maintainer-check-posix):
11837           s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
11839         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
11840           ac_config_<foo>s again, sometimes normalized, sometimes not.
11841         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
11842         (AC_CONFIG_COMMANDS): Do not do so here.
11843         (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
11844           and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
11845           2005-07-25 rewrite.  Noticed by Noah Misch.
11847         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
11848           _AC_PRESERVE_HELP_ORDER, ...
11849         (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
11851         * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
11852           inside m4_expand_once; it is redundant.
11854         * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
11855           for --help from Cygnus `configure.'
11857 2006-04-06  Paul Eggert  <eggert@cs.ucla.edu>
11859         * doc/autoconf.texi (C Compiler): Warn about #error.  Follows up
11860         on a patch proposed by Ralf Wildenhues.
11862 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
11864         * lib/autoconf/status.m4: Replace <space>''<tab> with
11865         <tab><space> where this makes sense.
11867 2006-04-05  Howard Chu  <hyc@highlandsun.com>  (trivial change)
11868             Noah Misch  <noah@cs.caltech.edu>
11870         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
11871         (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
11872         * doc/autoconf.texi (Help Formatting): New node.
11873         * NEWS: Announce AC_PRESERVE_HELP_ORDER.
11875 2006-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11877         * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
11878         lib/autoconf/specific.m4, lib/autoconf/status.m4,
11879         lib/autoconf/types.m4, lib/autotest/general.m4,
11880         tests/mktests.sh, tests/torture.at: White space cleanup:
11881         remove some SPACE before TAB, or add quoting ('' or @&t@).
11883         * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
11885         * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
11887 2006-04-05  Eric Blake  <ebb9@byu.net>
11889         * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
11890         empty test suite works.
11891         * tests/autotest.at (Empty test suite): Remove xfail.
11893 2006-04-05  Noah Misch  <noah@cs.caltech.edu>
11895         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
11896         TAGS to ac_config_<foo>s.
11897         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
11898         (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
11899         normalizing it, consistent it with previous releases.
11900         * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
11902 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
11904         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
11905         Use simplified args that Eric Blake originally suggested.
11907 2006-04-04  Paul Eggert  <eggert@cs.ucla.edu>
11909         * tests/mktests.sh: Don't use 'cat'; just read the files directly.
11910         Prefer 'sort -u' to 'sort | uniq'.  Filter data before sorting it.
11911         Use 'comm' rather than N instances of grep; this also fixes a bug
11912         whereby substrings were incorrectly matched, causing us to not
11913         generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
11914         (exclude_list): Exclude empty macros.
11915         (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
11917         Use awk rather than grep -E or egrep, to avoid
11918         portability problems with regular expressions containing newlines.
11919         (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
11920         Switch from grep to awk syntax.
11921         (ac_exclude_script): Renamed from ac_exclude_egrep.
11922         (au_exclude_script): Renamed from au_exclude_egrep.
11924 2006-04-04  Noah Misch  <noah@cs.caltech.edu>
11926         * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
11927         a subdirectory subject to Cygnus `configure'.
11928         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
11930         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
11931         report request when we have no AC_PACKAGE_BUGREPORT.
11933 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11935         * THANKS: Update.
11937         * tests/mktests.sh: Update copyright year in the header of the
11938         generated files.
11940         * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
11941         (AC_C_RESTRICT): Likewise.  Furthermore, add a function with a
11942         typedef'ed restricted pointer, to catch a compiler bug on
11943         HP-UX 11.x, and fix warnings so it passes with -Werror.
11944         (_AC_PROG_CC_C99): Likewise.
11945         Reported by Albert Chin <china@thewrittenword.com>.
11946         * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
11948 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
11950         * bin/autoscan.in (subdirs): New global.
11951         (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
11952         (output): Emit AC_CONFIG_SUBDIRS as needed.
11953         * tests/autoscan.at (autoscan): Remove XFAIL.
11955 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
11957         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
11959 2006-04-03  Eric Blake  <ebb9@byu.net>
11961         * THANKS: Add myself.
11963 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11965         * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
11966         to log, point to testsuite output tree.
11968 2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
11970         * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
11971         * doc/autoconf.texi (Function Portability): Mention that C++
11972         has trouble with 'exit'.
11973         (Guidelines): Test programs shouldn't use 'exit'.
11974         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
11975         Remove; all uses removed.
11976         (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
11977         Return from 'main' instead of calling 'exit'.
11978         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
11979         (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
11980         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
11981         (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
11982         (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
11983         (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
11984         (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
11985         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
11986         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
11987         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
11988         * tests/compile.at: Likewise.
11990 2006-04-02  Pavel Roskin  <proski@gnu.org>
11992         * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
11994 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
11996         Clean up _AC_COMPILER_EXEEXT* macros.
11998         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
11999           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
12000           ac_file to the name of the default output file and call
12001           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
12002           initial `rm' of the candidate files...
12003         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
12004           the same list in subsequent `rm' calls, and for the temporary
12005           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
12006           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
12007         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
12008         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
12009           no longer needed) by libtool.  Make it a cache check.
12010         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
12011           copied here by mistake.
12012         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
12013           _AC_COMPILER_EXEEXT.
12014         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
12015           _AC_COMPILER_OBJEXT directly.
12016         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
12018 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
12020         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
12021         (AS_DIRNAME): Use it.
12022         (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
12024         * tests/*.at: Remove the generated ones.
12026 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
12028         * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
12030 2006-04-01  Eric Blake  <ebb9@byu.net>
12032         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
12033         directories, unless optional third argument supplied.
12034         (AS_UNAME): Don't optimize PATH walk.
12036         * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
12038 2006-04-01  Eric Blake  <ebb9@byu.net>
12039         and Stepan Kasal  <kasal@ucw.cz>
12041         * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
12042         and fix some typos.
12044 2006-04-01  Noah Misch  <noah@cs.caltech.edu>
12046         * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
12047         Autoconf version number despite a zero- or one-argument AC_INIT.
12049         * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
12050         subordinate tools.
12051         * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
12052         * doc/autoconf.texi (autoreconf Invocation): Document it.
12054         * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
12055         Append LocalWords so ispell-buffer passes cleanly.  Spelling fixes.
12057 2006-04-01  Eric Blake  <ebb9@byu.net>
12059         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
12060         * lib/autotest/general.m4: Be tolerant of existing directory when
12061           rm failed to remove it.
12063 2006-04-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12065         * bin/autoupdate.in: Redefine m4_location so that warnings print
12066         the correct lines of the input file by subtracting..
12067         (_au__first_line): ..this new definition.
12069         * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
12070         AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
12071         Remove stray newline in output.
12072         (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
12073         AC_DEFUN this for autoconf, including the obsoletion diagnose.
12074         Fixes autoupdating of code where the replacement output contains
12075         m4sugar macros.
12076         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
12077         * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
12078          (au_exclude_list): Add AC_LANG_SAVE.
12079         * tests/tools.at: Several new tests for all of this.
12080         * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
12081         hairy details.
12082         The AC_LANG_SAVE issue was reported against Libtool by
12083         Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
12084         Kristian Kvilekval <kris@cs.ucsb.edu>.
12086 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
12088         * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
12089           switch all of them on and of when necessary.  Fixes the bug when
12090           m4sugar macros (e.g., m4_define) were expanded after the first
12091           automatic update (e.g., after AC_PREREQ or AC_INIT).
12093 2006-03-31  Paul Eggert  <eggert@cs.ucla.edu>
12095         * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
12096         of AS_BASENAME and AS_DIRNAME.  Reported by Stepan Kasal.
12098         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
12099         correctly.  Problem reported by Eric Blake.
12100         (_AS_EXPR_PREPARE): Detect Tru64 expr bug.  Problem reported by
12101         Ralf Wildenhues.
12103 2006-03-30  Paul Eggert  <eggert@cs.ucla.edu>
12105         * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
12106         Tighten up the basename/dirname wording.
12108 2006-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12110         * Makefile.maint (sc_texi_notab): New check: do not use TABs
12111         in texinfo files outside of verbatim environments.
12112         (syntax-check-rules): Update.
12113         * doc/autoconf.texi (Configuration Headers): Conform to it.
12115 2006-03-30  Chris Pickett <cpicke@cs.mcgill.ca>  (tiny change)
12117         * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
12118           aclocal cannot be given on the command line.
12120 2006-03-29  Paul Eggert  <eggert@cs.ucla.edu>
12122         * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
12123         Give an example for AS_DIRNAME instead of referring to Posix..
12124         (File System Conventions): Put discussion of // versus / here, and
12125         modernize it a bit.
12126         (Limitations of Usual Tools): Add basename.  Remove verbiage
12127         after dirname, since it got moved to the above sections.
12128         All this was inspired by a patch proposed earlier by Eric Blake.
12130 2006-03-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12132         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
12133         `$0' to protect against spaces.
12134         * lib/autotest/general.m4 (AT_INIT): Likewise.
12135         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
12136         `$0', $as_me.
12138 2006-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12140         * bin/autoscan.in: The value of find_configure_ac should be
12141         checked for existence, so we don't barf over a nonexisting
12142         configure.ac.  Reported by Laurence Darby <ldarby@tuffmail.com>.
12144 2006-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12146         * bin/autoupdate.in: Fix some typos.
12148 2006-03-21  Stepan Kasal  <kasal@ucw.cz>
12150         * doc/autoconf.texi (Installation Directory Variables): Fix typo.
12152         * lib/autoscan/autoscan.list: Refreshed.
12154 2006-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12156         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
12157         and Erlang related variables.
12159         * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
12160         (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
12161         (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
12162         (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
12163         (AC_LANG_BOOL_COMPILE_TRY(Objective C))
12164         (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
12165         (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
12166         (_AC_PROG_OBJC_G): New macros.
12167         (_AC_ARG_VAR_CPPFLAGS): Adjusted.
12168         * doc/autoconf.texi (Objective C Compiler): New node.
12169         (Preset Output Variables): Document OBJCFLAGS.
12170         (Language Choice): Document `Objective C' language.
12171         (Fortran Compiler): Fix typo.
12172         * NEWS: Updated.
12173         Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
12175 2006-03-20  Stepan Kasal  <kasal@ucw.cz>
12177         * doc/autoconf.texi (Default Includes): Fix typo
12178           s/AC_HEADERS_STDC/AC_HEADER_STDC/
12179         (Limitations of Usual Tools): s/unwriteable/unwritable/
12180         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
12181           Fix typos in the comments.
12183 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
12185         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
12186           Factor out the warning to...
12187         (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
12188         * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
12189         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
12191         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
12192           case `ac_delim' when writing the sed script.
12194         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
12195           moved DUALCASE=1 ...
12196         (AS_SHELL_SANITIZE): ... here.
12197         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
12198           that it is set.
12200         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
12201           AC_SUBST.
12202         (_AC_PATH_PROG): Store the result to VARIABLE.
12203         (AC_PATH_PROG): No need to set VARIABLE again.
12205         * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
12206           the first one is usual AT_CHECK_MACRO test, the second one checks
12207           that the same works when cross-compiling.
12208         * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
12209         (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
12211 2006-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12213         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
12214         the directory `/usr/bin/posix' in the shell search, to prefer
12215         the Posix shell not only in subsequent spawns as with `$BIN_SH'
12216         on Tru64.
12218         * doc/autoconf.texi (contents): To fix texi2html output, hide
12219         `@setcontentsaftertitlepage' for HTML.
12220         (Writing Autoconf Macros): Likewise, insert space after `@c'.
12221         (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
12222         `@,{c}'.
12224 2006-03-16  Stepan Kasal  <kasal@ucw.cz>
12226         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
12227           sanitizing...
12228         (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
12229         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
12230           why IFS is restored so late; thank you, Ralf, for reminding us.
12232 2006-03-15  Stepan Kasal  <kasal@ucw.cz>
12234         * doc/autoconf.texi (Pretty Help Strings): No need to use cached
12235           variables in the examples.
12237 2006-03-14  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
12239         * doc/autoconf.texi (several sections): Cleaned up documentation for
12240         macros in erlang.m4.
12242 2006-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12244         * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
12245         failure condition for `$(cmd)' style command substitutions.
12246         (Parenthetical command substitution, Multiline parenthetical
12247         command substitution): Use it.
12249         * doc/autoconf.texi (Special Shell Variables): Missing word.
12250         Reported by Keith Marshall <keith.marshall@total.com>.
12252         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
12253         IFS even in case of empty `$PATH'.
12255 2006-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12257         * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
12258         `expr' away if there is nothing to do.
12259         < --keywords >: Simplify and robustify argument handling.
12260         Revert erroneous comment from 2005-08-23.  Extend to allow
12261         keyword negation with `!'.
12262         Update help message.  Remove broken code to prevent running
12263         tests multiple times.
12264         * doc/autoconf.texi (testsuite Invocation) < --keywords >:
12265         Update and fix the documentation accordingly.
12266         * tests/autotest.at (Keywords): Renamed to..
12267         (Keywords and ranges): .. this.  Extended to make sure negated
12268         keywords, keywords taken from AT_SETUP arguments, and numeric
12269         test ranges work, and that matching is case-insensitive.
12271 2006-03-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12273         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
12274         allow to pass unnamed structs even in C++.
12275         (AC_CHECK_SIZEOF):  Likewise.
12276         Also fix quoting error in `AC_MSG_FAILURE' arguments.
12277         * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
12278         struct): New tests for unnamed structs, each both native and
12279         cross-compiling.
12281         * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
12282         a structure inside a cast, for C++ conformance.
12283         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
12284         Also fix quoting error in `AC_MSG_FAILURE' arguments.
12286         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
12287         nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
12288         trying to execute the command `no'.
12290         * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
12291         m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
12292         expanded outside.
12294         * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
12295         example.  Do not emphasize `$%', it is hardly new and special.
12296         Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
12298         * doc/autoconf.texi (Limitations of Usual Tools): Document
12299         OpenBSD and traditional `grep' failure to handle multiple
12300         patterns separated by newlines.
12302 2006-03-10  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
12304         * doc/autoconf.texi (several sections): Add documentation for macros
12305         in erlang.m4.
12307 2006-03-10  Eric Blake  <ebb9@byu.net>
12309         * doc/autoconf.texi (Obsolete Macros): Fix wording of
12310         AC_TRY_LINK_FUNC.
12312 2006-03-10  Paul Eggert  <eggert@cs.ucla.edu>
12314         * doc/autoconf.texi: Use @acronym more consistently for acronyms
12315         like BSD, GPL, LGPL.  Fix minor English typos.
12316         (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
12317         Mention that these macros are becoming obsolete.
12318         (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
12319         Use more modern terminology for which standard is what.
12320         (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
12321         and to ansi2knr.
12322         (AC_PROG_CXX): Likewise.
12323         (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
12324         Remove obsolete discussion about how to port to K&R.
12325         (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
12326         the obsolescent AC_HEADER_STDC.
12327         (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
12328         can't rely on it.
12330 2006-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12332         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
12333         Remove stdin redirection from /dev/null to allow pipe to work.
12335 2006-03-08  Paul Eggert  <eggert@cs.ucla.edu>
12337         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
12338         Require that /lib/cpp include stdio.h correctly.  Solaris 10's
12339         doesn't.  Problem reported by D'Arcy A MacIsaac and diagnosed by
12340         Ralf Wildenhues.
12342 2006-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12344         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
12345         HP-UX sed is 99 commands, not 100.
12346         (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
12347         _AC_SUBST_FILES fragment.  Separate `{' and `r' commands by
12348         newline for portability.
12349         * tests/torture.at (Torturing config.status): Also test 100
12350         AC_SUBST_FILE invocations.  Fix test to actually verify the
12351         AC_CONFIG_FILES output.
12352         * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
12353         command, label, and read-file `r' limits.  Unify HP-UX spelling.
12355         * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
12356         non-suffix rule.
12357         ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
12358         non-GNU make.
12359         (autoconfdir, $(AUTOCONF_FILES)): Likewise.
12360         * tests/mktests.sh: Small shell portability fixes.
12362 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12364         * doc/autoconf.texi (Caching Results): Fix the examples to use a
12365         recommended quoting style and discard unwanted output.
12367 2006-03-05  Paul Eggert  <eggert@cs.ucla.edu>
12369         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
12370         (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
12371         cases, and to work around Tru64 expr bug.
12373 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12375         * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
12376         expr bug that turns the result of a regex match into a number if
12377         possible.
12379 2006-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12381         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
12382         HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
12383         in section `Specific Compiler Characteristics'.
12385 2006-03-04  Eric Blake  <ebb9@byu.net>
12387         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
12388         variable warning.
12390 2006-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12392         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
12393         order of variable initialization, so even the Solaris 2.6 shell
12394         can create a config header correctly.  Fixes lots of test suite
12395         failures.
12397 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12399         * doc/autoconf.texi (Text processing Macros): New node to
12400         document the m4sugar macros m4_re_escape, m4_tolower,
12401         m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
12403 2006-02-22  Paul Eggert  <eggert@cs.ucla.edu>
12405         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
12406         XrmInitialize (0) -> XrmInitialize ().
12407         Reported by Toshio Kuratomi.
12409 2006-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12411         * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
12412         test, as in `if tests; then cmd1; elif ...; else ...; fi'.
12413         * doc/autoconf.texi (Programming in M4sh): Adjusted.
12414         * tests/m4sh.at (AS_IF and AS_CASE): Test this.  Also make sure
12415         both macros are defun'ed so that required macros are evaluated
12416         outside.
12418         * doc/autoconf.texi (Prerequisite Macros): State more precisely
12419         where a required macro will be expanded.
12420         (Coding Style): Another reason not to use `m4_define'.
12422 2006-02-21  Eric Blake  <ebb9@byu.net>
12424         * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
12426 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12428         * doc/autoconf.texi (Looping constructs): New node, to
12429         document m4_for, m4_foreach, m4_foreach_w, and mention
12430         obsolete AC_FOREACH.
12431         (Obsolete Macros): Document AC_FOREACH.
12432         * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
12433         (m4_for): Fix to never loop (almost) endlessly, work correctly
12434         with arithmetic expressions in arguments, a step of zero or
12435         non-integer multiple of the interval, and avoid integer
12436         overflow.
12437         * tests/m4sugar.at: New test for m4_for, m4_foreach, and
12438         m4_foreach_w.
12440 2006-02-20  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
12442         Add basic support for Erlang, both for configuring Erlang/OTP
12443         tools, and Erlang as a conf test language.
12444         * lib/autoconf/erlang.m4: New file.
12445         * lib/autoconf/autoconf.m4: Add erlang.m4.
12446         * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
12447         * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
12448         * NEWS: Add short description of new macros.
12449         * THANKS: Add Romain Lenglet.
12451 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12453         * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
12454         native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
12456 2006-02-15  Eric Blake  <ebb9@byu.net>
12458         * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
12459         warning.
12461 2006-02-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12463         * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
12464         (_AS_CASE): Private helper macro.
12465         * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
12466         * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
12467         Fix syntax of AS_IF description
12468         (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
12469         for the AC_REQUIRE mess.
12470         * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
12471         AS_SHELL_SANITIZE.
12473 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
12475         * doc/autoconf.texi: Minor style cleanup.
12476         Be consistent about spaces after commas.
12477         Insert [] where empty args look a bit funny.
12478         Fix some "i.e." and "e.g." usages.
12479         Try to avoid "X/Y" usages.
12480         Don't be pedantic about "ISO C99"; just say C99.
12481         Prefer GNU style for spaces in front of parens.
12482         (Function Portability): Comment about C89 versus C99
12483         signed integer division.
12484         (Particular Headers): Use current gnulib style for dirent
12485         includes.
12487 2006-02-14  Stepan Kasal  <kasal@ucw.cz>
12488         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12490         * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
12491         macros without parameters.
12492         * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
12493         * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
12494         * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
12495         `$#' bug.
12496         (autoupdate): Updated to match AU_ALIAS fix.
12498 2006-02-13 Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12499         and Paul Eggert  <eggert@cs.ucla.edu>
12501         * doc/autoconf.texi (Programming in M4sh): Document
12502         AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
12504 2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12506         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
12507         (AS_BOURNE_COMPATIBLE): ..this.
12508         (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
12510 2006-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12512         * doc/install.texi (Defining Variables): Tighten up the
12513         CONFIG_SHELL wording.
12515 2006-02-12 Paul Eggert  <eggert@cs.ucla.edu>
12516         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12518         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
12519         of (set -o) rather than testing whether (set -o posix) succeeds,
12520         to work around a bug in the AIX 5.3 shell.  Problem originally
12521         reportd by Howard Chu for libtool.
12523 2006-02-10  J.T. Conklin  <jtc@acorntoolworks.com>
12525         * doc/autoconf.texi (Running the Compiler, Running the Linker):
12526         Changes the macro arguments in summaries to match the
12527         descriptions.
12529 2006-02-04  Stepan Kasal  <kasal@ucw.cz>
12531         * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
12532         hint as ``a workaround for a bug.''
12534 2006-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12536         * bin/autoreconf.in: New option `--no-recursive'.
12537         Improve wording for subpackages a bit.
12538         * doc/autoconf.texi (autoreconf Invocation): Updated.
12539         * NEWS: Updated.
12541         * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
12542         in environment of `configure', not the command line.
12543         Reported by Howard Chu <hyc@highlandsun.com>.
12545 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
12547         * doc/autoconf.texi (Limitations of Builtins): Document the
12548         problem with "trap -".
12550 2006-01-23  Steven G. Johnson  <stevenj@fftw.org>
12552         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
12553         (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
12554         messages to differentiate Fortran and Fortran 77 tests.
12555         (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
12556         AC_LANG_ASSERT, to allow use in mixed-language projects.
12558 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12560         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
12561         FOO" to "defined (FOO)".
12562         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
12563         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
12564         * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
12565         * tests/tools.at (ifnames): Likewise.
12567 2006-01-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12569         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
12570         * lib/Autom4te/General.pm (mktmpdir): Likewise.
12571         (END): Improve error message a bit.
12572         Reported by Bruce Korb <bkorb@gnu.org>.
12574 2006-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12576         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
12577         `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
12579 2006-01-11  Stepan Kasal  <kasal@ucw.cz>
12581         * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
12582         requires sys/stream.h.  Reported by Oliver Kiddle.
12584 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12585             Stepan Kasal  <kasal@ucw.cz>
12587         * lib/autotest/general.m4 (AT_INIT): When ensuring writability
12588         before the removals of test dirs, use `find' to avoid modification
12589         of symlinked directories.
12591 2006-01-11  Steven G. Johnson  <stevenj@alum.mit.edu>
12593         * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
12594         Don't ignore the macro arguments.
12596 2006-01-11  David Thompson  <dthompsn@vizsolutions.com>
12598         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
12599         declaration that works for MSVC.
12601 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12603         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
12604         Add `*.map' and `.inf' for Green Hills compiler.
12605         Reported by Stefan Seefeld <stefan@codesourcery.com>.
12607         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
12608         correctly: pad with spaces after FIRST_PREFIX if necessary,
12609         and compute string lenghts with `m4_qlen' instead of `m4_len'.
12610         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
12611         * tests/m4sh.at (AS_HELP_STRING): Test extended.
12612         * NEWS: Updated.
12613         Reported by numerous people, numerous times.
12615 2006-01-05  Paul Eggert  <eggert@cs.ucla.edu>
12617         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
12618         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
12619         * lib/autoconf/general.m4, lib/autoconf/status.m4:
12620         * lib/autotest/general.m4, tests/local.at:
12621         Update copyright year to 2006.
12623         * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
12624         sed substitutions.
12625         * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
12626         for file names, again.  Reported by Noah Misch.
12627         (Coding Style): Explain that s|a|b| is preferred for file names.
12628         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
12629         (AC_OUTPUT_MAKE_DEFS): Likewise.
12630         * lib/autotest/general.m4 (AT_INIT): Likewise.
12631         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
12632         * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
12634         Fix Posix-conformance bugs re use of { command in sed scripts,
12635         and improve the sed-related documentation a bit.
12636         * doc/autoconf.texi (Installation Directory Variables): Use
12637         our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
12638         rather than "sed" when talking about Sed in general.
12639         (Particular Programs): Likewise.
12640         (Coding Style): y is like s with respect to / and ,.
12641         (Limitations of Usual Tools): Document the weird restrictions
12642         that Posix has about { }.  Use better quoting.
12643         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
12644         Rewrite to conform to Posix rules about { } in sed scripts.
12645         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
12646         * tests/foreign.at (Libtool): Likewise.
12647         * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
12648         Use our own style advice re 's,a,b,' versus 's|a|b|'.
12650 2006-01-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12652         * lib/autoconf/status.m4: Fix typo.
12654         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
12655         singly- or doubly-quoted arguments to `-cmdline', `-ignore',
12656         `-def', for the benefit of Portland `pgf90 -Mipa'.
12657         Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
12659 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
12661         * doc/autoconf.texi: Update copyright (and other) dates to 2006.
12662         * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
12663         shell from zsh to bash.
12665 2005-12-31  Stepan Kasal  <kasal@ucw.cz>
12667         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
12668           ":" caused problems on OS/2-EMX.  Suggested by Andrew Belov.
12670 2005-12-29  Paul Eggert  <eggert@cs.ucla.edu>
12672         * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
12673         parentheses in $(...).  Problem reported by Eric Blake.
12675 2005-12-12  Paul Eggert  <eggert@cs.ucla.edu>
12677         * doc/autoconf.texi (Limitations of Usual Tools):
12678         Mention which characters can be escaped with \ in portable regular
12679         expressions used in grep, sed, expr.  Mention the leading ^ problem
12680         with expr.  Clean up some confusing wording.  Mention which
12681         grep options are portable.
12683 2005-12-09  Stepan Kasal  <kasal@ucw.cz>
12685         * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
12687 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
12689         * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
12690         patch, noted by Ralf Wildenhues.
12692 2005-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12694         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
12695         posix' unconditionally, for pdksh in `native sh' emulation.
12697 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
12699         * doc/autoconf.texi (Shellology): Document eval $? problem
12700         with ash.
12701         (Limitations of Builtins): Likewise.
12703 2005-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12705         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
12706         CONFIG_SHELL in the environment of the configure rerun.
12707         * doc/autoconf.texi (Here-Documents, config.status Invocation):
12708         Suggest passing CONFIG_SHELL absolute, and in the environment
12709         rather than as option.
12711 2005-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12713         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
12714         Fix quoting of output line (triggered for many AC_SUBST_FILEs).
12715         Fix macro quoting.  Fix output for n * 98 substituted variables.
12717 2005-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12719         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
12720         `tmp' to avoid file removal race.
12722 2005-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12724         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
12725         ac_clean_files and LIBOBJS.
12727 2005-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12729         * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
12730         Factor functionality to..
12731         (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
12732         `AC_SUBST($1)' in the public version.
12733         (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
12734         (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
12735         ac_pt_* variables.
12737 2005-11-01  Stepan Kasal  <kasal@ucw.cz>
12739         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
12740         filesystems.
12742 2005-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12744         * NEWS: Move AH_HEADER mention to right place.
12746 2005-10-27  Stepan Kasal  <kasal@ucw.cz>
12748         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
12749         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
12751 2005-10-25  Stepan Kasal  <kasal@ucw.cz>
12753         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
12754         conftst2.$ac_objext.
12755         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
12757 2005-10-24  Stepan Kasal  <kasal@ucw.cz>
12759         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
12760         conftest.o, to see whether the compiler really obeys; rm the object
12761         file before and after the test and register it with ac_clean_files.
12762         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
12764 2005-10-21  Stepan Kasal  <kasal@ucw.cz>
12766         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
12767         the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
12768         code so that the most common case requires less forks.
12770 2005-10-20  Stepan Kasal  <kasal@ucw.cz>
12772         * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
12773         not portable; thanks to Paul Eggert and Alexandre.
12775         * NEWS: Fix an old typo.
12777 2005-10-20  Jim Meyering  <jim@meyering.net>
12779         * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
12780         the latter'', in two places.
12782 2005-10-19  Paul Eggert  <eggert@cs.ucla.edu>
12784         * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
12785         AC_LANG_PROGRAM, fixing a typo.  Don't give details about
12786         the inner workings of AC_LANG_FUNC_LINK_TRY.
12787         * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
12788         AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
12789         by the function rather than ignoring it.
12790         (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
12791         comparing its address.  Intel's interprocedural optimization was
12792         outsmarting the old heuristic.  Problem reported by
12793         Mikulas Patocka.
12795 2005-10-19  Stepan Kasal  <kasal@ucw.cz>
12797         * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
12799 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12801         * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
12802         (m4_map, m4_map_sep): Use it.  Handle the empty list correctly.
12804 2005-10-04  Stepan Kasal  <kasal@ucw.cz>
12806         * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
12807         before removing it (chmod -R u+rwx); there are three instances of this.
12809 2005-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12810             Stepan Kasal  <kasal@ucw.cz>
12812         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
12813         * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
12814         make its content writable before removing it.  Remove an errorneous
12815         comment from the end, where the logs of the failed tests are copied
12816         to the main log file.
12818 2005-09-27  Stepan Kasal  <kasal@ucw.cz>
12820         * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
12821           in case the computer is too quick.  Double quote the configure.ac
12822           snippets.
12824         * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
12825           problems if the testsuite were running too fast.
12827 2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
12829         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
12830         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
12831         (which belong to Xt, not X itself).  See Debian bug 327655.
12832         * NEWS: Mention this.
12834 2005-09-07  Stepan Kasal  <kasal@ucw.cz>
12836         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
12838 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
12840         * config/move-if-change: Don't output "$2 is unchanged";
12841         suggested by Ben Elliston.  Handle weird characters correctly.
12843 2005-09-06  Stepan Kasal  <kasal@ucw.cz>
12845         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
12846           calls, so that the final expansion of this macro is shorter.
12847           Create the conftest.$ac_ext outside the `for' loop, to speed the run.
12848           Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
12849           the cleanup there.  Use AS_VAR_* macros, to be more general.
12850         * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
12852         * lib/autoconf/general.m4: Use AS_IF where appropriate.
12854         * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
12856 2005-09-01  Stepan Kasal  <kasal@ucw.cz>
12858         * doc/autoconf.texi (Configuration Headers): Add an index entry
12859           for AH_HEADER.
12861 2005-08-26  Pavel Roskin  <proski@gnu.org>
12863         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
12864         XMKMF to locate xmkmf.  Make XMKMF precious.  Export CC when
12865         running xmkmf.
12867 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
12869         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
12870         The previous patch didn't work, so try a better one.
12872 2005-08-26  Stepan Kasal  <kasal@ucw.cz>
12874         * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
12875         in the example.  Reported by Bruno Haible.
12876         <AS_TR_SH>: Likewise.  Also modify the example to be more convincing:
12877         "if $undefined_var;" succeeds with my shell.
12879         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
12880         AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
12881         but change the m4_divert_text to m4_divert_once.
12883 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12885         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
12886         Work around bug in Solaris /usr/xpg4/bin/awk.
12887         The bug is present in at least Solaris 8 through 10.
12889 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
12891         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
12892         some evil values and relying on the fact that $* concatenates the
12893         parameters by the first character from IFS.
12895 2005-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
12896             Stepan Kasal  <kasal@ucw.cz>
12898         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
12899         first header appears, define AH_HEADER.
12900         * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
12901         Update limitations about when to call AC_CONFIG_HEADERS.
12902         (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
12903         parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
12904         that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
12905         ``Configuration Actions''; fix their index entries.
12907         * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
12908         options correctly.  Process N-M as M-N if M is smaller than N.
12909         Process ranges correctly so that N-N will run only N.
12910         Sort and uniquify the tests that will be run.  If there is more
12911         than one test, reinsert the banners for the tests.
12912         * tests/autotest.at (Keywords): Unmark XFAIL.
12914 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
12916         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
12917           before passing the macro name to AH_TEMPLATE.
12919         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
12920           now opens log after option processing; in particular, --version
12921           and --help do not touch config.log.
12923         * Makefile.maint: Revert the change from 2005-08-12.
12925 2005-08-22  Stepan Kasal  <kasal@ucw.cz>
12927         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
12928           common code to...
12929         (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
12931 2005-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12933         * doc/autoconf.texi (Using Autotest, testsuite Scripts)
12934         (Autotest Logs, Writing testsuite.at, testsuite Invocation):
12935         Language cleanup.
12937         * doc/autoconf.texi (Defining Symbols, Changed Results):
12938         Prepend to LIBS, not append, in examples.
12940 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
12942         When building in place, set srcdir="."; suggested by Tim Van Holder.
12944         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
12945           build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
12946         (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
12947         * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
12948           does not mean "no --srcdir option".
12950 2005-08-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12952         * tests/autoscan.at (autoscan): New file.
12953         * tests/suite.at: Use it.
12954         * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
12955         Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
12957         * tests/autotest.at (Keywords): Test keywords combinations.
12959 2005-08-12  Stepan Kasal  <kasal@ucw.cz>
12961         * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
12962           add "2>&1"; gzip 1.2.4 prints help on stderr.
12964 2005-07-27  Stepan Kasal  <kasal@ucw.cz>
12966         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
12967         was pushdef'ed twice while popped only once.  Push it only once.
12968         (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
12970 2005-07-26  Stepan Kasal  <kasal@ucw.cz>
12972         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
12973         prefixed by mere "===", not "configure: === ".
12975 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12977         * Makefile.maint: Update from Bison.
12979         * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
12980         "<tab>" in comment, so that the point is understandable.
12982 2005-07-25  Stepan Kasal  <kasal@ucw.cz>
12984         Rewrite substantial part of lib/autoconf/status.m4.
12985         The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
12986         and CONFIG_COMMANDS are not processed in four separate loops.
12987         Instead, there is one main loop.  This alows that the common code
12988         is expanded only once, thus config.status (and configure) is smaller.
12990         The registration mechnism in AC_CONFIG_FILES and cousins also changed;
12991         the AC_LIST_FILES and cousins macros are no longer used.
12993         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
12994         _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
12995         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
12996         _AC_OUTPUT_COMMAND): ..., respectively.  These macros no longer
12997         contain the initialization, nor the for loop, nor the associated
12998         commands; all these go to ...
12999         (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
13000         _AC_OUTPUT_CONFIG_STATUS.
13001         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
13002         Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
13003         (_AC_OUTPUT_FILE): The creation of the sed script ...
13004         (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
13005         (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
13006         _AC_OUTPUT_MAIN_LOOP.
13007         (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
13008         _AC_CONFIG_COMMANDS): Use ...
13009         (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
13010         (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
13011         (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
13012         _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
13013         (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
13014         (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
13015         ... new macros.
13016         (_AC_CONFIG_UNIQUE): Update.
13017         (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
13018         Replaced by this ...
13019         (_AC_LIST_TAGS): ... new common macro.
13020         (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
13021         AC_LIST_COMMAND_COMMANDS): Replaced by this ...
13022         (_AC_LIST_TAG_COMMANDS): ... new common macro.
13023         (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
13024         this didn't belong to the `config commands' section.
13025         (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
13026         (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
13027         AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
13028         to the `config commands' section either.
13029         (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
13030         (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
13032         ... and many changes to the comments nearby.
13034         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
13035         set ac_subdirs_all='_AC_LIST_SUBDIRS'.
13036         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
13037         AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
13038         (#define header templates): The comment at the top of the generated
13039         header now includes the name(s) of the source file(s).
13041         Several unrelated small changes:
13043         * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
13044         parameter to AC_DIAGNOSE.
13045         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
13046         (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
13047         with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
13048         (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
13049         with AU::AC_OUTPUT.
13050         (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
13051         in AC_OUTPUT doesn't double-quote it either.
13052         * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
13053         parameters.
13055 2005-07-10  Stepan Kasal  <kasal@ucw.cz>
13057         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
13058         versions of Portland Group compiler produce single- and double-quoted
13059         -cmdline argument.  Reported by Steven G. Johnson <stevenj@fftw.org>
13060         and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
13062 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
13064         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
13065         This is a corrected version of yesterday's patch.
13067 2005-07-07  Stepan Kasal  <kasal@ucw.cz>
13069         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
13070         path, too; insert a "===" to emphasize the line.
13072         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
13073           ac_cv_build_alias to ac_build_alias.
13074         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
13076         On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
13077         change eliminates it.  Problem reported by Alexandre Duret-Lutz.
13078         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
13079         (AC_ARG_VAR): ... here.
13080         (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
13081           target_alias.
13083         Keep a list of all precious variables and process them with one simple
13084         for loop, instead of expanding all commands, or, OTOH, complicated
13085         processing of output of "set".
13086         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
13087         variable names in new macro...
13088         (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
13089         (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
13090           a loop to assign all ac_env_* and ac_cv_env_* variables.
13091         (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
13092           to INIT_PREPARE.
13093         (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
13094           its value to shell variable ac_precious_vars and call
13095           _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
13096         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
13097           _AC_ARG_VAR_VALIDATE.
13099         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
13100           and the AC_SUBSTs ...
13101         (AC_INIT): ... here.
13103         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
13104           the ac_subst_files section in config.log.
13106         * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
13108 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13110         * NEWS: New macro AC_C_TYPEOF.
13111         * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
13112         * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
13113         * tests/c.at (C keywords): Test AC_C_TYPEOF.
13115         Fix problems reported by Nicolas Joly.
13116         * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
13117         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
13118         They are generated by the Tru64 v5.1B shell.
13120 2005-07-05  Stepan Kasal  <kasal@ucw.cz>
13122         Fix my changes from 2005-07-01; reported by Noah Misch.
13123         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
13124         description, the macro now accepts only a single tag.
13125         (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
13127         Fix cases when the varsions of Autoconf and Autotest don't match.
13128         Reported by Noah Misch.
13129         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
13130         at_top_builddir, for compatibility with older autotest.
13131         * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
13132         is not set, use at_top_builddir, for compatibility with older
13133         versions of autoconf.
13135 2005-07-04  Paul Eggert  <eggert@cs.ucla.edu>
13137         * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
13138         Problem reported by Patrick Welche.
13140 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
13142         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
13143         sed substitution command, so that we allow | in program prefixes
13144         and program suffixes.  (& is a problem anyway; we're not fixing
13145         that here.)
13146         * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
13147         configure_input, top_builddir, srcdir, etc.
13148         * lib/autotest/general.m4 (AT_INIT): Likewise, for
13149         PATH_SEPARATOR in AUTOTEST_PATH.
13151 2005-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
13153         * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
13154         for loop over config.site files using `set', to allow
13155         directory names containing IFS characters.
13157 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
13159         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
13160         directories with weird names.  Apparently some people like living
13161         on the edge.  However, improve the test that "pwd" actually does
13162         report a name for the working directory.
13163         * NEWS: Remove the claim that we test for funny chars in dir names.
13165 2005-07-01  Stepan Kasal  <kasal@ucw.cz>
13167         * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
13168         replaced ...
13169         * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
13170         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
13171         Now accept a single tag, not whitespace separated list.
13172         (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
13174 2005-06-30  Stepan Kasal  <kasal@ucw.cz>
13176         * doc/autoconf.texi (Configuration Headers): Change the explanation
13177         about #include <config.h>.
13178         (Generic Functions): Mention the Gnulib project.
13179         (Limitations of Usual Tools) <sed>: Another minor rephrasing.
13181         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
13182         document to output the default config_* lists to config.status.
13183         Don't recognize option --file, if the functionality is not there.
13184         Likewise for --header; moreover, recognize --he and --h as shortcuts
13185         for --help in that case.
13187         * lib/autoconf/status.m4: Fix the order of the "sections", so that it
13188         matches the order of execution.  No code changed.
13190 2005-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13192         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
13193         single-quoted -cmdline argument in Portland Group compiler.
13194         Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
13196 2005-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
13198         * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
13200 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
13202         * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
13203         descriptors to child processes; reported by Norman Gray.
13205 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
13207         * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
13209         * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
13210         instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
13211         (AC_SUBST): Call it.
13212         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
13213         the directory specific variables; but don't call it for configure_input.
13215 2005-06-28  Derek Price  <derek@ximbiot.com>
13217         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
13218         addition.
13220 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13222         * NEWS: Don't worry about spaces in bindir etc.  Only srcdir and working
13223         directory have inherent problems with special characters like spaces,
13224         due to limitations in Make syntax.  Problem reported by Alexandre
13225         Duret-Lutz.
13226         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
13227         Also, fix Tru64 porting problem with shell patterns,
13228         reported by Ralf Wildenhues.
13230 2005-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13232         * doc/autoconf.texi (Subdirectories): Fix markup typos.
13234 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13236         * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
13238         Fix some more shell quoting problems.  Prompted by a bug report
13239         from Justace Clutter.
13240         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
13241         variable into diagnostic.  Make the diagnostic an error, not a warning,
13242         because we really don't support spaces and suchlike in dir names.
13243         (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
13244         Don't worry about backslashes in srcdir; it can't happen now.
13245         (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
13246         Simplify ac_optarg handling.
13247         (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
13249 2005-06-22  Stepan Kasal  <kasal@ucw.cz>
13251         Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
13252         * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
13253         * tests/atlocal.in: Propagate $EGREP and $SED.
13254         * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
13255         (AT_CONFIG_CMP): Use sed instead of grep plumbing.
13257         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
13258         that '\|' is not allowed in BREs; recommend using newline separated
13259         list of patterns instead of multiple -e options.
13261         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
13263         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
13265 2005-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13267         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
13269 2005-06-21  Stepan Kasal  <kasal@ucw.cz>
13271         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
13272         b, t, r, w commands require single space, while : cannot have any.
13273         (Special Shell Variables): Fix sed code this in the example.
13274         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
13275         * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
13277         * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
13278         expand to the empty list.  Don't use two pairs of m4_changequote,
13279         it's not necessary.
13281 2005-06-20  Derek Price  <derek@ximbiot.com>
13283         * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
13285 2005-06-17  Paul Eggert  <eggert@cs.ucla.edu>
13287         * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
13288         * doc/autoconf.texi:
13289         Don't mention Solaris versions so much, if a
13290         problem is common to all extant versions of Solaris.  Say "SunOS
13291         4" instead of "SunOS" for SunOS 4.
13292         (awk): Mention more of the limitations of traditional Awk.
13293         (cat): Don't talk about cat -v.
13295 2005-06-16  Paul Eggert  <eggert@cs.ucla.edu>
13297         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
13298         (AS_VERSION_COMPARE): New macro.  The API is taken from CVS,
13299         but the implementation is entirely different and is designed
13300         to be compatible with glibc strverscmp.
13301         * tests/m4sh.at (AS_VERSION_COMPARE): New test.
13303         * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
13304         on Mac OS X 10.4 reported by Peter O'Gorman in:
13305         http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
13306         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
13307         Use shell builtins rather than 'expr', to work around expr bug.
13309 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
13311         * doc/autoconf.texi: "filesystem" -> "file system".
13312         "behaviour" -> "behavior".
13313         Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
13314         * lib/autoconf/general.m4: Omit blank after ":" sed command,
13315         as per POSIX.
13316         * lib/m4sugar/m4sh.m4: Likewise.
13317         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
13318         with Solaris sed.  Fix by Ralf Menzel and Stepan Kasal.
13320         * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
13321         (.x.1): Ignore the time stamp in the .TH line when deciding whether
13322         to update the man page.  That way, we don't have to check in new
13323         man pages every month.
13325         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
13326         quotes and backslashes.  Patch from Derek Price.
13328 2005-06-10  Derek Price  <derek@ximbiot.com>
13330         * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
13331         AS_TR_SH.
13333 2005-06-08  Paul Eggert  <eggert@cs.ucla.edu>
13335         * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
13336         -u, since it outputs chatter if the input files are the same.
13337         Problem reported by Ralf Menzel.
13339 2005-06-08  Derek Price  <derek@ximbiot.com>
13341         * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
13342         renaming them since they are about to be redefined anyhow.
13344 2005-06-08  Derek Price  <derek@ximbiot.com>
13346         * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
13347         redefined M4 macros to this node.  Document m4_include & m4_sinclude.
13348         Move m4_undefine to alphabetical order.
13350 2005-06-07  Paul Eggert  <eggert@cs.ucla.edu>
13352         * README: Recommend GNU M4 1.4.3 or later.
13353         * doc/autoconf.texi (Introduction): Likewise.
13354         Reword to avoid some formatting glitches.
13355         Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
13356         Clarify explanation of HP compiler bug.
13357         Redo example output tp match current CVS snapshot.
13358         Use @example.org in email addresses when the examples
13359         might get inadvertently cut-and-pasted into user code.
13360         Remove example of autom4te usage that doesn't seem to work now.
13361         Use modern AC_INIT (except when the example is meant to be
13362         shown with Autoconf 2.13).
13363         Update ksh info for Solaris 9 and later.
13364         KB -> kB.
13365         Modernize description of Automake versions a bit.
13366         Don't claim a future version of Autoconf is near.
13367         * doc/install.texi: Reword to avoid some formatting glitches.
13369 2005-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13371         * doc/autoconf.texi: Add [] to examples, so that the manual
13372         follows its own advice about quoting better.
13373         Reword to avoid some formatting glitches.
13374         * doc/installt.exi: Reword to avoid some formatting glitches.
13376         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
13377         Tru64 ksh pattern matching bug.  Reported against Libtool by
13378         Albert Chin <libtool@mlists.thewrittenword.com> and
13379         Nicolas Joly <njoly@pasteur.fr>.
13381 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
13383         m4_cdr of one-member list was [[]] (one-member list containing an
13384         empty string) instead of [] (an empty list.  Callers were skewed to
13385         match this misbehaviour.  As a consequence of this:
13386          - m4_foreach([x], [], [foo]) expanded to `foo', while
13387          - the expansion of m4_foreach([x], [[]], [foo]) was empty.
13388         This bug has been fixed:
13390         * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
13391           expand to an empty string; print error msg if called without
13392           an argument list.
13393         (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
13394           misbehaviour; handle [] and [[]] correctly.
13396 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
13398         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
13399         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
13400           scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
13402 2005-06-06  Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>  (trivial change)
13404         * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
13405           swallow records with more than 99 fields.
13406         * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
13407           parse the long line.
13409 2005-06-04  Stepan Kasal  <kasal@ucw.cz>
13411         * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
13412           swallow literals longer than 399.  Reported by Ralf Wildenhues.
13413         * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
13414           to workaround this limitation.
13416 2005-06-03  Steven G. Johnson  <stevenj@alum.mit.edu>
13418         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
13419         to gfortran, and make these the first two compiler names
13420         checked (following the general autoconf preference for gcc).
13422 2005-06-03  Stepan Kasal  <kasal@ucw.cz>
13424         * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
13425         (DISTCLEANFILES): Remove $(check_SCRIPTS).
13426         (testsuite): Make sure autotest.m4f is up-to-date before using it.
13428 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13430         * lib/autotest/general.m4 (AT_INIT): Don't create a regular
13431         expression of unbounded size when processing the --list
13432         option.  This runs afoul of a limit of 399 bytes per regular
13433         expression on AIX.  Problem reported by Ralf Wildenhues.
13435 2005-06-01  Paul Eggert  <eggert@cs.ucla.edu>
13437         * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
13438         * doc/autoconf.texi (Particular Headers): Reword example
13439         for multiline stdbool replacement.
13440         (Setting Output Variables): Reword text a bit.  Don't
13441         give all the details about |#_!!_#|.
13442         Reword description of line replacement.
13444 2005-05-31  Dan Manthey  <dan_manthey@partech.com>
13446         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
13447         now contain newlines, and substituted files must be referenced on
13448         a line alone; the sed scripts to substitute them are now very
13449         different.
13450         (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
13451         commands can be put in a sed script portably.
13452         * doc/autoconf.texi (Setting Output Variables): Document above
13453         changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
13454         use of multiline substitution.
13455         * tests/torture.at: No longer expect substitution of newline to fail.
13457 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13459         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
13460         From Ralf Menzel (trivial change).
13462 2005-05-25  Paul Eggert  <eggert@cs.ucla.edu>
13464         * tests/local.at: Don't attempt to check for negated character
13465         classes in shell scripts.  The test was too brittle.
13467 2005-05-25  Stepan Kasal  <kasal@ucw.cz>
13469         * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
13470         * doc/autoconf.texi (Limitations of Builtins): Document this
13471           limitation.
13473 2005-05-24  Stepan Kasal  <kasal@ucw.cz>
13475         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
13476           common code; used in many places in the tree.
13477         (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
13478         (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
13480         * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
13482         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
13483           messages when ac_unique_file is not found.
13484         (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
13485         (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
13486           commands, for consistency with AC_MSG_ERROR and such.
13488         * bin/autoconf.as: Make more use of "shift 2" in option processing.
13490         * bin/Makefile.am: Merge the two rules for creating scripts.
13492 2005-05-23  Stepan Kasal  <kasal@ucw.cz>
13494         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
13495         obsolete; it was never documented.
13496         (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
13498 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
13500         * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
13501         * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
13502         (ac_top_builddir): ... this ...
13503         (ac_top_build_prefix): ... to this; the old name is also kept, for
13504           backward compatibility.
13505         (ac_top_builddir_sub): New variable, without the trailing slash,
13506           always nonempty.
13507         (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
13508         * doc/autoconf.texi (Configuration Actions): Rename
13509           ac_top_builddir to ac_top_build_prefix.
13510         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
13511           at_top_builddir to at_top_build_prefix.
13512         * lib/autotest/general.m4 (AT_INIT): Likewise.
13514 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
13516         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
13517           of confdefs.h .
13519 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
13521         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
13522           argument to m4_foreach.  I guess it was necessary in the past,
13523           but I think it's a no-op now.
13525 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
13527         * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
13528           ``cat <<_ACEOF'' commands to one.
13529         (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
13530         * lib/autoconf/status.m4: On various places, use expr instead of
13531           ``echo|sed.''
13532         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
13533         (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
13534         * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
13535           a range.
13536         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
13537           the wrong patterns between ``case'' and ``esac.''  The previous
13538           code had false positives.
13540 2005-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
13542         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
13543         as on 2005-05-02.
13544         * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
13545         Mention LIBOBJDIR.
13547 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13549         * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
13550         ChangeLog.2, GNUmakefile, Makefile.am, Makefile.cfg,
13551         Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
13552         bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
13553         bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
13554         bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
13555         config/config.guess, config/config.sub, config/elisp-comp,
13556         config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
13557         doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
13558         lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
13559         lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
13560         lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
13561         lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
13562         lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
13563         lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
13564         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
13565         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
13566         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
13567         lib/autoconf/general.m4, lib/autoconf/headers.m4,
13568         lib/autoconf/lang.m4, lib/autoconf/libs.m4,
13569         lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
13570         lib/autoconf/specific.m4, lib/autoconf/status.m4,
13571         lib/autoconf/types.m4, lib/autoscan/Makefile.am,
13572         lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
13573         lib/autotest/Makefile.am, lib/autotest/autotest.m4,
13574         lib/autotest/general.m4, lib/emacs/Makefile.am,
13575         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
13576         lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
13577         lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
13578         tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
13579         tests/compile.at, tests/foreign.at, tests/fortran.at,
13580         tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
13581         tests/semantics.at, tests/suite.at, tests/tools.at,
13582         tests/torture.at, tests/wrapper.as:
13583         Update FSF postal mail address.
13585 2005-05-13  Stepan Kasal  <kasal@ucw.cz>
13587         * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
13588           check.
13589         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
13590           enough arguments, similarly as in m4_bpatsubsts.
13592 2005-05-12  Stepan Kasal  <kasal@ucw.cz>
13594         * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
13595           of absolute paths.
13597 2005-05-11  Stepan Kasal  <kasal@ucw.cz>
13599         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
13600           for absolute directory names in one loop.
13601         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
13602           abbreviations of --version and --debug.
13604 2005-05-10  Paul Eggert  <eggert@cs.ucla.edu>
13606         * doc/autoconf.texi (Autoconf Language): Be more precise about
13607         quoting rules.  Problems noted by Stepan Kasal.
13608         Also, throughout this document, be more careful about white space.
13609         "blank", "white space", and "space" all have different meanings
13610         and we should be careful to say what we mean.
13612 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13614         Fix C++ related problems reported by Werner Lemberg.
13615         * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
13616         * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
13617         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
13618         avoid problems with C++ and throw.
13619         * tests/compile.at: .cpp, not .cc.
13621         * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
13623 2005-05-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13625         * doc/autoconf.texi (Generic Functions): Typos.
13627 2005-05-02  Gary V. Vaughan  <gary@gnu.org>
13629         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
13630         object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
13631         set by latest automake.
13633 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13635         * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
13636         outputs 0 on GNU/Linux these days.
13638 2005-04-29  Paul Eggert  <eggert@cs.ucla.edu>
13640         * doc/autoconf.texi (Autoconf Language): Add more description
13641         about quoting heuristics.
13642         (Limitations of Builtins): Describe "set -" problems.
13644 2005-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13646         * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
13647         not newline.
13649         * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
13650         by AC_DEFINE; it was a mistake.
13651         From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
13653 2005-04-25  Stepan Kasal  <kasal@ucw.cz>
13655         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
13657 2005-04-22  Stepan Kasal  <kasal@ucw.cz>
13659         * doc/autoconf.texi (External Software): Quadrigraphs are not
13660           processed correctly in AS_HELP_STRING; avoid this in the examples.
13661         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
13662         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
13663           comment and reduce m4_default([foo], []) to [foo].
13664         (m4_strip): Update the explanation.
13666 2005-04-19  Paul Eggert  <eggert@cs.ucla.edu>
13668         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
13669         Remove core.conftest.* too; it's generated by Tru64 5.1.
13670         Problem reported by Jennis Pruett.
13671         * lib/autoconf/functions.m4
13672         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
13673         Don't bother to remove core files; AC_RUN_IFELSE should do that
13674         for you.
13676 2005-04-19  Stepan Kasal  <kasal@ucw.cz>
13678         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
13680 2005-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
13682         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
13683         Report from Horst Wente.
13685 2005-04-15  Stepan Kasal  <kasal@ucw.cz>
13687         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
13688           the comment.
13690 2005-04-14  Gregorio Guidi  <greg_g@gentoo.org>
13692         * doc/autoconf.texi (External Software, Package Options): Add
13693           examples showing how to implement --with-* and --enable-* options.
13695 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
13697         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
13698         as well as configure.in.  Problem reported by Gregorio Guidi.
13700 2005-04-10  Paul Eggert  <eggert@cs.ucla.edu>
13702         * doc/autoconf.texi (Particular Functions): Use gnulib's current
13703         pattern for alloca snippet.
13705 2005-04-04  Stepan Kasal  <kasal@ucw.cz>
13707         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
13709 2005-04-01  Stepan Kasal  <kasal@ucw.cz>
13711         * doc/autoconf.texi (Generic Programs): Fix a typo.
13713 2005-04-01  Paul Eggert  <eggert@cs.ucla.edu>
13715         * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
13716         fails if %s isn't supported.  Problem reported by Ralf Wildenhues.
13718 2005-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13720         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
13721         Merge `-z option' as well for the benefit of Solaris link flags.  Pass
13722         whole-archive (-zallextract, -zdefaultextract) options in the hope of
13723         unique libraries, for the Sun Fortran 95 8.0 compiler.  Bug reported
13724         against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
13726 2005-03-22  Paul Eggert  <eggert@cs.ucla.edu>
13728         * NEWS: The configure command now warns you if you attempt to use
13729         a directory whose name contains a special character like space,
13730         newline, or "\".
13731         * doc/autoconf.texi (Installation Directory Variables): Allow
13732         "," in file names.  Do not use \@; it's not a portable regexp.
13733         * bin/Makefile.am (edit): Likewise.
13734         * lib/Makefile.am (edit): Likewise.
13735         * tests/Makefile.am (edit): Likewise.
13736         * tests/semantics.at: Likewise.
13737         * tests/torture.at: Likewise.
13738         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
13739         * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
13740         * doc/autoconf.texi (File System Conventions): Warn about
13741         unportable file names.
13742         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
13743         (AC_INIT): Use it.
13744         (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
13745         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
13746         ac_pwd, and quote srcdir.
13747         * lib/autotest/general.m4 (AT_INIT): Quote file name args.
13749         * doc/autoconf.texi: Fix some systematic formatting problems.
13750         ".)"  needs a following @: if not at the end of a sentence, and
13751         similarly for "!)".  "etc." should be preceded by a comma.
13752         "n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
13754 2005-03-22  Bruno Haible  <bruno@clisp.org>
13756         * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
13757         argument is often called 'build-aux'.
13759 2005-03-07  Stepan Kasal  <kasal@ucw.cz>
13761         * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
13762           macro AC_TRY_LINK is obsolete.
13763         (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
13764           `AC_CONFIG_FILES'.
13766 2005-02-24  Stepan Kasal  <kasal@ucw.cz>
13768         * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
13769           `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
13770           from a Common Lisp's `cl'.
13771         (AC_PROG_CXX): Behave according to the documentation: don't
13772           search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
13773           make the variable CCC precious; use `cl.exe', not `cl'.
13775 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
13776             Alexandre Duret-Lutz  <adl@gnu.org>
13778         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
13779         /dev/null, as "configure" shouldn't read stdin, and this insulates
13780         us from problems (e.g., when testing for "cl").  Also, do this
13781         redirection before invoking "hostname" or "uname", and keep the
13782         original input stream available via...
13783         (AS_ORIGINAL_STDIN_FD): ... this new macro.
13784         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
13785         bother with "</dev/null" since it's now done at the top of
13786         'configure'.
13787         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
13788         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
13789         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
13790         * doc/autoconf.texi (File Descriptor Macros): New section.
13791         (Printing Messages): Mention it.
13792         * tests/base.at (Input/Output): New test.
13794 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
13796         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
13797         newline if neither \c nor -n work, as that would output two
13798         newlines.  Prefer -n to \c.  Reported by Stepan Kasal.
13800 2005-02-12  Stepan Kasal  <kasal@ucw.cz>
13802         * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
13803         This causes that any required macros inside will get before the if.
13804         * doc/autoconf.texi (autom4te.cache): A typo.
13806 2005-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13808         Undo previous change, except keep the change to
13809         lib/autoconf/programs.m4 that replaced grep with shell
13810         pattern-matching.  This is because net-snmp configure reads stdin.
13811         Reported by Noah Misch.
13813 2005-02-11  Paul Eggert  <eggert@cs.ucla.edu>
13815         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
13816         from /dev/null, as "configure" shouldn't read stdin, and this
13817         insulates us from problems (e.g., when testing for "cl").
13818         Suggested by Alexandre Duret-Lutz.  Also, do this redirection
13819         before invoking "hostname" or "uname".
13820         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
13821         _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
13822         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
13823         "</dev/null" since it's now done at the top of 'configure'.
13824         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
13825         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
13826         Also, replace grep with shell pattern-matching, to save a process.
13828 2005-02-10  Paul Eggert  <eggert@cs.ucla.edu>
13830         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
13831         _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
13832         avoid thinking that Allegro Common Lisp's "cl" command is a C++
13833         compiler.
13835 2005-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13837         * doc/autoconf.texi (Limitations of Usual Tools): Document that
13838         grep -q isn't portable.  Improve grep -s explanation.
13839         Problem reported by Dan Manthey.
13841 2005-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13843         * doc/autoconf.texi (Special Shell Variables): Clarify
13844         PATH_SEPARATOR wording; fix typo in IFS.  Reported by Gary V. Vaughan.
13846 2005-02-07  Paul Eggert  <eggert@cs.ucla.edu>
13848         * doc/autoconf.texi: Use @acronym for DJGPP.
13849         Fix some @code's that should have been @env's, and vice versa.
13850         Sort environment variable names.
13851         Mention that shells no longer inherit IFS.
13852         Don't recommend PATH_SEPARATOR=';' so strongly.
13853         Mention that $RANDOM might expand to the empty string.
13854         "symlink" and "soft link" -> "symbolic link".
13855         Improve mktemp description (reported by Bruno Haible).
13857 2005-02-05  Paul Eggert  <eggert@cs.ucla.edu>
13859         * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
13860         * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
13861         Likewise.
13862         * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
13863         Likewise.
13865 2005-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13867         * NEWS: Mention AT_COPYRIGHT.
13869         * tests/local.at (AT_CMP): Use diff directly on input files rather
13870         than copying them.
13872         * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
13873         /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
13875 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
13876         and Paul Eggert  <eggert@cs.ucla.edu>
13878         * tests/autotest.at (Empty test suite): New test.
13879         * tests/torture.at (Substitute and define special characters)
13880         (Substitute a 2000-byte string, Define to a 2000-byte string)
13881         (Substitute a newline, Define a newline): New tests.
13883 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
13885         * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
13886         * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
13887         (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
13888         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
13889         (Standard regular expressions): New test.
13890         (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
13891         excess test name quoting.
13892         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
13893         CPPFLAGS to `configure' instead of setting it in `configure'.
13895         * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
13896         any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
13897         on some platforms.
13899         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
13900         s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
13902         * tests/local.at (AT_CMP): New macro.
13903         (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
13904         (AC_SAVE_STATE): Move environment grep...
13905         (AT_CHECK_ENV): to here.  Filter out `'$''.  Use AT_CMP.
13906         (AT_CONFIG_CMP): New macro.
13907         (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
13908         * tests/c.at (Extensions): Do not exit early.
13909         * tests/atlocal.in: Inherit $GREP.
13911         * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
13912         (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
13914         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
13915         (AC_COPYRIGHT): Factor header comment portion out and move into...
13916         * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
13917         * lib/autotest/general.at (AT_COPYRIGHT): New macro.
13918         (AT_INIT): Add Autotest copyright notice.  Display copyright notices in
13919         --version output.
13920         * tests/local.at: Add Autoconf test suite copyright notice.
13921         * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
13923 2005-02-04  Bruno Haible  <bruno@clisp.org>
13924         and Paul Eggert  <eggert@cs.ucla.edu>
13926         * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
13928 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
13930         * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
13931         this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
13933         Try not to generated lines of unlimited length, as POSIX places a
13934         2047-byte limit on line length of portable text files.
13935         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
13936         Use newline as a separator, not space.
13937         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
13938         (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
13939         space.
13941 2005-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13943         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
13944         as_func_*.  Add test to check whether positional parameters
13945         are restored after function return.
13947 2005-02-02  Paul Eggert  <eggert@cs.ucla.edu>
13949         * doc/autoconf.texi (Special Shell Variables): Mention _,
13950         BIN_SH, DUALCASE.  Say that variables other than "status" are safe
13951         if they contain a lower-case letter.  The DUALCASE problem was
13952         reported by Ralf Wildenhues.
13954         * bin/autoconf.as: Don't exit with status 0 after write failure
13955         with --help or --version.
13956         * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
13957         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
13959 2005-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13961         * doc/autoconf.texi (Limitations of Usual Tools):
13962         Unicos 9 sed limitations.
13963         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
13964         to get the option-enhanced interface on older Crays.  Try ftn for
13965         Fortran 95 (newer Crays).
13967 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
13969         * man/Makefile.am (.x.1): Go back to the simple solution, but take
13970         care to echo the commands, so the user knows what's going on.
13971         Modified from a suggestion by Stepan Kasal.
13973         * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
13974         with a cross reference.  Derived from a suggestion by Bruce Korb.
13976 2005-01-31  Paul Eggert  <eggert@cs.ucla.edu>
13978         * doc/autoconf.texi (config.status Invocation): Warn about
13979         discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
13980         * doc/install.texi (Defining Variables): Likewise.
13981         Based on a proposed patch by Ralf Wildenhues.
13983         * man/Makefile.am (.x.1): Make sure the required generated files
13984         are up to date.  Problem and original solution proposed by Stepan Kasal.
13985         $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
13986         implicit-man-prerequisites): New rules, used by the above.
13988         * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
13989         * config/config.guess, config/config.sub, config/install-sh: Likewise.
13990         * config/missing, config/texinfo.tex: Likewise.
13992 2005-01-29  Stepan Kasal  <kasal@ucw.cz>
13994         Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
13995         Update the long comment explaining it.
13997         m4_require no longer writes an ``is required by'' line to the
13998         execution stack.  It contains only one bit of non-redundant
13999         information: that the macro was required, not called.  And even
14000         this bit is useless in most situations: have you ever met a macro
14001         which both calls and requires the same macro?
14003         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
14004         (_m4_defun_pro_outer): ... only via this macro, for the outermost
14005           macro.
14006         (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
14007         (m4_expansion_stack_pop): Remove the misplaced comment.
14008         (m4_require): Don't put the ``is required by'' line to the
14009           execution stack; slightly improve the out-of-a-defun error message.
14010         (_m4_divert_grow): New macro, counter for the temporary diversions.
14011         (_m4_require_call): Use it.
14012         * tests/m4sugar.at (m4_require): Expect output without the
14013           ``is required by'' messages.
14015 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14017         * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
14018         rather than x for expr.
14020         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
14021         this is safe.
14022         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
14023         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
14024         * lib/autotest/general.m4 (AT_INIT): Likewise.
14025         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
14026         * tests/mktests.sh: Likewise.
14028 2005-01-27  Akim Demaille  <akim@epita.fr>
14030         Have autoheader honor --force.
14032         * doc/make-stds.texi, doc/standards.texi: Update from masters.
14033         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
14034         * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
14035         from masters, so that FileUtils.pm's update_file provide --force
14036         support.
14037         * bin/autoheader.in: Pass $force to update_file so that
14038         config.h.in is always recreated when --force.
14040 2005-01-24  Stepan Kasal  <kasal@ucw.cz>
14042         * doc/autoconf.texi (Introduction): Update Peter Simons' address.
14044 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14046         * doc/autoconf.texi (Limitations of Builtins): Clarify that
14047         "if test ! -d foo; ..." is portable.  Suggested by Stepan Kasal.
14049 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14051         * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
14052         Warn about newline stripping in `` and $().  Update Solaris
14053         version to 9.
14054         (Limitations of Builtins): Use expr "X...", not expr "x...", as
14055         X insulates us from future changes to Posix.
14056         (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
14057         stripping.
14059 2005-01-19  Stepan Kasal  <kasal@ucw.cz>
14061         * doc/autoconf.texi (Defining Symbols): Delete the false comment that
14062           you cannot use AC_DEFINE to define macros containing `[' or `]'.
14064 2005-01-13  Paul Eggert  <eggert@cs.ucla.edu>
14066         * doc/autoconf.texi (Limitations of Usual Tools): Document bug
14067         in Solaris 8 join.  Problem reported by Tomohiro Suzuki on
14068         bug-tar mailing list.
14070 2005-01-05  Stepan Kasal  <kasal@ucw.cz>
14072         * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
14074 2005-01-05  Paul Eggert  <eggert@cs.ucla.edu>
14076         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
14077         ulongval to be static, to avoid unwanted GCC warning.  Problem
14078         reported by Michael Jennings via Daniel Reed; see
14079         <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
14081 2005-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
14083         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
14084         docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
14085         datadir, infodir, and mandir.  Adjust argument parsing code.
14086         (_AC_INIT_HELP): Update help text.
14087         * doc/autoconf.texi (Installation Directory Variables): Document
14088         new variables.
14090 2005-01-04  Noah Misch  <noah@cs.caltech.edu>
14092         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
14093         not seem to work, assume it does set $(MAKE).
14094         * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
14096 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
14098         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
14100 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
14102         A cleanup of the diversion support in m4sugar.
14104         * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
14105         (_m4_divert_n_stack): New macro; the expansion is
14106           <newline>m4_divert_stack, if m4_divert_stack is defined, and void
14107           otherwise.
14108         (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
14109         (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
14110           stored in _m4_divert_diversion or _m4_divert_dump.
14111         (m4_divert_pop): When the parameter is given, compare the symbolic
14112           name with the last diversion pushed on the stack.  Previously, the
14113           current diversion was compared with the numeric value of the
14114           diversion given as the parameter.
14115         (m4_require): If the macro hasn't been expanded yet, call ...
14116         (_m4_require_call): this new macro.
14118 2005-01-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14120         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
14121         Workarounds for documented `case' limitations.
14123 2005-01-03  Paul Eggert  <eggert@cs.ucla.edu>
14125         * doc/autoconf.texi (Limitations of Usual Tools): Warn about
14126         sed 'command1;command2'.  Problem reported by Ralf Wildenhues.
14128 2005-01-02  Paul Eggert  <eggert@cs.ucla.edu>
14130         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
14131         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
14132         bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
14134         Patch from Roger Leigh (with some minor changes) as follows:
14135         * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
14136         Resurrect AC_PROG_CC_STDC.
14137         * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
14138         AC_PROG_CC_C89, AC_PROG_CC_C99.
14139         (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
14140         * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
14141         AC_PROG_CC_C99): New macros.
14142         (AC_PROG_CC_STDC): Use them.
14143         (_AC_PROG_CC_STDC): Remove.
14144         (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
14145         * THANKS: Add Roger Leigh.
14147 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
14149         * bin/autoreconf.in (autoreconf_current_directory):  AM_INIT_AUTOMAKE
14150         signals that the package uses Automake; a `Makefile.am' is typical but
14151         not essential.  Reported by Magnus Therning.
14152         * tests/torture.at (autoreconf.): New banner.
14153         (autoreconf and non-AC configure): Rename to `Non-Autoconf
14154         AC_CONFIG_SUBDIRS'.
14155         (autoreconf an empty directory): Rename to `Empty directory'.
14156         (Unusual Automake input files): New test.
14158 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
14160         * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
14161         (AT_SETUP): Clear AT_capture_files.
14162         (_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
14163         (AT_KEYWORDS): Fix comment typo.
14164         * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
14165         * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
14166         * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
14168 2004-12-29  Albert Chin-A-Young  <china@thewrittenword.com>
14170         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
14171         If the variable to set is already set, set ac_cv_path_$1
14172         to the preset value so caller can assume ac_cv_path_$1
14173         is available.  (trivial change)
14175 2004-12-27  Noah Misch  <noah@cs.caltech.edu>
14177         * BUGS (Minor Problems): Warn about makefile limitations.
14178         * Makefile.am: Find and update `INSTALL' in $(srcdir).
14179         * man/Makefile.am: Find and update manual pages in $(srcdir).
14181 2004-12-24  Eric Blake  <ebb9@byu.net>
14183         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
14184         shells in subshell, to avoid noise from ash.  (trivial change)
14186 2004-12-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14188         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
14189         problems with SunOS ksh and backslash escaping, Bourne shells and
14190         closing brackets (both within character classes).  Bug reported
14191         against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
14192         <read>: New entry.  Mention non-availability of -r.
14194 2004-12-21  Akim Demaille  <akim@epita.fr>
14196         * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
14197         avoid cluttering displayed messages.  Rather, prepend srcdir where
14198         AT_LINE is used for log files.
14200 2004-12-21  Stepan Kasal  <kasal@ucw.cz>
14202         * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
14203         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
14204           no longer part of the macro, quote the occurrence of ``$tmp''.
14205         * doc/autoconf.texi (Forbidden Patterns): Typo.
14207 2004-12-21  Akim Demaille  <akim@epita.fr>
14209         * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
14210         separated from the test title by forcing a white space.
14212 2004-12-21  Akim Demaille  <akim@epita.fr>
14214         Enable Emacs navigation within testsuite.log files.
14216         * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
14217         use the compilation mode.
14218         (AT_LINE): Point to the srcdir.
14220 2004-12-19  Noah Misch  <noah@cs.caltech.edu>
14222         * tests/Makefile.am (installcheck-local): Use $(bindir).
14223         (check-local, installcheck-local): Pass TESTSUITEFLAGS.
14224         * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
14225         Makefile.am scheme Autoconf now uses.
14227 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
14229         * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
14230         * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
14232 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
14234         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
14235         (_AT_CHECK): Use it.
14236         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
14237         (AS_ESCAPE): Fix comment.
14238         * tests/autotest.at: Adjust section banner comments.
14239         (AT_CHECK_AT): Accept STATUS and STDERR.
14240         (AT_CHECK_AT_TEST): Likewise.
14241         (Invalid brace-enclosed parameter expansion)
14242         (Multiline command from M4 expansion)
14243         (Double-M4-quoted command): New tests.
14245 2004-12-17  Paul Eggert  <eggert@cs.ucla.edu>
14247         * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
14249 2004-12-17  Akim Demaille  <akim@epita.fr>
14251         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
14252         m4_pattern_allow.
14253         Suggested by Alexandre Duret-Lutz.
14254         * doc/autoconf.texi (Setting Output Variables): Catch up.
14256 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
14258         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
14260 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
14262         * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
14263           remove the comment which said we cannot.
14265 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
14267         Add a specialized check for resolv.h.  Thanks to Gerrit P. Haase,
14268         Reini Urban and Paul Eggert for reporting the dependencies.
14270         * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
14271         * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
14272         (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
14274 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
14276         * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
14277           so that eg. ``autoscan --help'' doesn't truncate it.
14279 2004-12-15  Nicolas Joly  <njoly@pasteur.fr>
14281         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
14282         generated conftest files.
14284 2004-12-13  Noah Misch  <noah@cs.caltech.edu>
14286         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
14287         tracing on commands with possibly-escaped newlines.
14288         * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
14289         discontinued behavior and its implications.
14290         * tests/autotest.at (BS-newline in command, ^BS-newline in command)
14291         (BSx641-newline in command, BS-BS-newline in command)
14292         (BSx640-newline in command, Newline-CODE-BS-newline in command)
14293         (Single-quote-BS-newline in command)
14294         (Single-quote-newline-BS-newline in command): New tests.
14296 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
14298         * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
14299           on platforms where it works.
14300         (_AS_TEST_PREPARE): Test for ``test -x''.
14301         (_AS_BROKEN_TEST_PREPARE): Nuke.
14303 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
14305         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
14306         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
14307           give only 4-letter prefix to AS_TMPDIR, comment fixed.
14308         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
14309           create the temporary directory.
14310         (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
14312 2004-12-12  Kelley Cook  <kcook@gcc.gnu.org>
14314         * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
14315         (trivial change)
14317 2004-12-12  Alexandre Duret-Lutz  <adl@gnu.org>
14319         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
14321 2004-12-11  Noah Misch  <noah@cs.caltech.edu>
14323         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
14324         to avoid using a negated character class.  Reported by Nicolas Joly.
14325         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
14327 2004-12-10  Paul Eggert  <eggert@cs.ucla.edu>
14329         * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
14330         autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
14331         Don't depend on .x file explicitly, since "make" does that for us.
14332         Suggested by Stepan Kasal.
14334         * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
14335         Add *.tmp.
14336         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
14337         ifnames): Factor common code.  And they said it couldn't be done!
14339 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
14341         * bin/.cvsignore: Add autoconf.in.
14342         * tests/.cvsignore: Add wrapper.in.
14343         * lib/autotest/general.m4: Escape '$' in case pattern.
14345 2004-12-09  Noah Misch  <noah@cs.caltech.edu>
14347         * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
14349         * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
14351         * tests/autotest.at: New file.
14352         * tests/suite.at: Include it.
14353         * tests/Makefile.am: Distribute it.
14355         * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
14356           shell tracing on a command that could contain multiple lines.
14357         * doc/autoconf.text: Document that fact and its implications.
14358         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
14359         * tests/autotest.at (Multiline backquote command substitution,
14360           Multiline parameter expansion, Literal multiline command,
14361           Multiline parenthetical command substitution): Remove XFAIL.
14363 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
14365         * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
14366         and suggest AC_SEARCH_LIBS.  Suggested by Noah Misch and Stepan Kasal.
14368 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
14370         * configure.ac (test suite): Cease to generate wrapper scripts.
14371         * configure: Regenerate.
14372         * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
14373         (m4f_dependencies): Adjust accordingly.
14374         * tests/Makefile.am (Wrappers): Generate wrapper scripts.
14375         (wrapper.in): Generate it in the build directory.
14376         (MAINTAINERCLEANFILES): Delete wrapper.in.
14377         (CLEANFILES): Add wrapper.in.
14378         * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
14379         the output.  Replace each $as_me with a @wrap_program@.
14380         * tests/wrapper.in: Delete it; we always build it.
14382         * bin/Makefile.am (autoconf.in): Generate it in the build directory.
14383         (EXTRA_DIST): Remove autoconf.in.
14384         (CLEANFILES): Add autoconf.in.
14385         (autoconf): Find autoconf.in in the build directory.
14386         * bin/autoconf.in: Delete it; we always build it.
14388 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
14390         * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'.  Join
14391         PATH members so as to not prepend an empty element.  Move a comment.
14392         * Makefile.am (SUBDIRS): Build in `tests' last.
14393         * tests/Makefile.am (installcheck-local): Add check-local dependencies.
14395 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
14397         * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
14398         the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
14399         <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
14400         Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
14402 2004-12-07  Stepan Kasal  <kasal@ucw.cz>
14404         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
14405         patch: extra "-l"s.
14407 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
14409         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
14410         looking elsewhere for getmntent.  Problem reported by Mark D. Baushke.
14411         * doc/autoconf.texi (Particular Functions): Mention new behavior.
14413 2004-12-03  Stepan Kasal  <kasal@ucw.cz>
14415         * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
14416           out the common code to ...
14417         (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
14418           value of the #define--default to 1, iff the macro was called
14419           with exactly one parameter.
14421 2004-12-02  Paul Eggert  <eggert@cs.ucla.edu>
14423         * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
14424         "char c = '\200';" rather than "char c = 0x80;" as the
14425         latter doesn't conform to the strict C standard due to
14426         overflow on signed char hosts.
14428         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
14429         to -qlanglvl=ansi.  We don't want to disable extensions.
14431 2004-11-29  Paul Eggert  <eggert@cs.ucla.edu>
14433         * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
14434         (Using Autotest, testsuite Scripts, Writing testsuite.at):
14435         Reword slightly to avoid some English-language problems noted
14436         by Ralf Wildenhues in:
14437         http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
14439 2004-11-29  Stepan Kasal  <kasal@ucw.cz>
14441         * NEWS: Add ^L above each release.
14443 2004-11-28  Paul Eggert  <eggert@cs.ucla.edu>
14445         Fix documentation problems reported by Russ Boylan in
14446         <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
14447         along with some nearby cruft.
14448         * doc/autoconf.texi (Libtool): Libtool can be used without
14449         Automake (not without Autoconf).
14450         (Introduction): Mention lists.gnu.org.
14451         * BUGS: Don't mention bugs.gnu.org.
14452         Remove mention of ancient libtool compatibility problem.
14453         * NEWS: Mention that bugs.gnu.org is kaput.
14454         * README: Likewise.  Mention where mailing list archives can be found.
14456 2004-11-28  Stepan Kasal  <kasal@ucw.cz>
14458         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
14460 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
14462         * doc/autoconf.texi (Pretty Help Strings): Go back to
14463         single-quoting assignments to cache variables.
14465 2004-11-23  Stepan Kasal  <kasal@ucw.cz>
14467         * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
14468         with the examples; fix the bug in MY_ARG_WITH example reported
14469         by Alexandre Duret-Lutz.
14470         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
14471         expansion of $1 in the comment emitted to configure.
14473 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
14475         * doc/autoconf.texi (Pretty Help Strings): Fix typo
14476         in my editing of the previous patch.  Problem reported
14477         by Alexandre Duret-Lutz.
14479 2004-11-22  Stepan Kasal  <kasal@ucw.cz>
14481         * doc/autoconf.texi (Autoconf Language): Explain that
14482         ``descriptions'' may not be double quotes.
14483         (Quotation Rule Of Thumb): Likewise.
14484         (Pretty Help Strings): Likewise; remove the wrong comment;
14485         simplify the examples and improve their quoting.
14487 2004-11-13  Stepan Kasal  <kasal@ucw.cz>
14489         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
14490         the $1_found variable, don't test whether the file is executable;
14491         Both things are checked ...
14492         (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
14493         the former ``test -f''.
14494         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
14496 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
14498         * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
14499         use cp -R instead.
14501 2004-11-10  Derek R. Price  <derek@ximbiot.com>
14503         * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
14504         limitations.  Reorder paragraphs for clarity.
14506 2004-10-11  Paul Eggert  <eggert@cs.ucla.edu>
14508         * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
14509         to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
14510         variants", "Unix", and some related minor wording fixups.
14512         (Shellology, Special Shell Variables): Document that the Zsh
14513         problem with NULLCMD was fixed in zsh 3.1.6-dev-18.  Thanks
14514         to Alexandre Duret-Lutz for this info.
14516 2004-10-10  Alexandre Duret-Lutz  <adl@gnu.org>
14518         * doc/autoconf.texi (One-Shot Macros): New node.
14520 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
14522         * doc/autoconf.texi (Function Portability): Fix misdescription
14523         of putenv.  Problem reported by Michael Wardle.
14525 2004-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14527         * doc/autoconf.texi (auindex): New macro.
14528         (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
14529         Problem reported by Stepan Kasal.
14531 2004-09-05  Paul Eggert  <eggert@cs.ucla.edu>
14533         Fix problems reported by Andreas Buening in:
14534         http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
14535         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
14536         in test makefile.
14537         * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
14538         readable; it's not true in OS/2-emx.
14540 2004-09-04  Paul Eggert  <eggert@cs.ucla.edu>
14542         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
14543         "/usr/include", clear ac_x_includes instead of leaving it as "no"
14544         (trivial change).  Problem and patch reported by Andrew Church in:
14545         http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
14547 2004-09-03  Paul Eggert  <eggert@cs.ucla.edu>
14549         * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
14550         three args in examples.  Problem reported by Frederik Fouvry in:
14551         http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
14552         Also, fix some minor spacing and punctuation bugs.
14554 2004-09-02  Akim Demaille  <akim@epita.fr>
14556         * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
14557         "case" to restore ordering.
14558         Reported by Stepan Kasal.
14560 2004-08-26  Akim Demaille  <akim@epita.fr>
14562         * doc/autoconf.texi: Minor typos and stylos.
14564 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
14566         * configure.ac (AC_INIT): Bump to 2.59c.
14568 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
14570         Version 2.59b.
14572         * README: Add advice about m4 1.4.2.
14574         * Makefile.cfg (wget_files): Remove config.guess, config.sub,
14575         texinfo.tex for now (done by hand now).
14576         * Makefile.maint (wget_files, cvs_files):
14577         Remove ansi2knr.c; nobody uses it.
14578         (ansi2knr.c-url_prefix): Remove.
14579         (cvs-update): Fix test for failure.  I don't know why it ever
14580         worked...
14582         * doc/autoconf.texi: Update URLs, some of which went stale.
14583         Use @uref rather than @href.
14585         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
14586         handle "--" as per POSIX.  Suggested by Paul Pogonyshev.
14588         * config/config.guess, config/config.sub, config/elisp-comp,
14589         config/install-sh, config/mkinstalldirs, config/texinfo.tex,
14590         doc/fdl.texi, doc/standards.texi: Sync with master copy.
14592         * NEWS, TODO, configure.ac, bin/autoscan.in,
14593         bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
14594         doc/install.texi, lib/Autom4te/Configure_ac.pm,
14595         lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
14596         lib/autoconf/programs.m4, lib/autoconf/status.m4,
14597         lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
14598         lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
14599         tests/tools.at, tests/torture.at:
14600         Use "file name" rather than "filename" or "path",
14601         to be consistent with the terminology of the GNU coding standards.
14603 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
14605         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
14606         AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
14607         HP-UX 11.23 cc/aCC or Tru64 4.0 cc.  Problem reported by Noah Misch in
14608         <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
14610         More fixes to support spaces in the name of the build directory.
14611         This isn't a complete fix but it's an improvement.
14613         * bin/autoconf.as (autom4te_options): New var.
14614         Use it instead of appending to AUTOM4TE, so that we can allow
14615         spaces in the build directory's absolute name.
14616         * bin/autoheader.in ($autoconf): Allow spaces in file names.
14617         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
14618         AT_CHECK_NOESCAPE): Likewise.
14619         * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
14620         main program): Likewise.
14622 2004-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14624         * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
14625         From Ralf Corsepius in:
14626         http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
14628 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14630         * doc/autoconf.texi (Function Portability): Document isinf and
14631         and isnan.  From a suggestion by Kevin Ryde.
14633         * lib/Autom4te/General.pm (END): Return correct exit status even
14634         if unlink succeeds and sets $?.  Needed with Solaris 8's perl 5.00503.
14636 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
14638         * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
14639         for compatibility with Automake 1.4.  Reported by J C Fitzgerald in
14640         <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
14642 2004-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
14644         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
14645         (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
14646         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
14647         * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
14648         * lib/autom4te.in (Automake-preselections): Preselect
14649         AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
14651 2004-08-02  Alexandre Duret-Lutz  <adl@gnu.org>
14653         * lib/autom4te.in (Automake-preselections): Preselect
14654         AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
14655         trace them.
14657 2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
14659         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
14660         Tru64.
14661         * doc/autoconf.texi (Shellology): Mention BIN_SH.
14662         Document problem with "`""`" in pdksh POSIX mode.
14664 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
14666         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
14667         with pdksh, too.  Problem reported by Patrick Welche via
14668         Gary V. Vaughan.
14669         * doc/autoconf.texi (Shellology): Note that set -o posix is
14670         useful for pkdsh, too.
14672 2004-06-24  Paul Eggert  <eggert@cs.ucla.edu>
14674         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
14675         _AS_UNSET_PREPARE, so that we can use $as_unset directly.
14676         Don't fail if ENV or BASH_ENV is readonly.
14677         (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
14678         etc. are read only.  Problem reported by Ludovic Courtes.
14680 2004-06-23  Noah Misch  <noah@cs.caltech.edu>
14682         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
14683         zsh, disable GLOB_SUBST to avoid backslash handling problems.
14684         (trivial change)
14686 2004-06-04  Paul Eggert  <eggert@cs.ucla.edu>
14688         * doc/autoconf.texi (File System Conventions): Warn about
14689         names like "aux".  Problem reported by Eric Blake.
14691         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
14692         by zero instead of array size, so that we can use any arithmetic
14693         constant expression (instead of requiring an integer constant
14694         expression).  This allows us to test expressions like DBL_MAX <
14695         LDBL_MAX, which didn't conform to the C standard using the old
14696         method.
14697         (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
14698         now that we can do floating-point tests at compile time.
14700 2004-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14702         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
14703         and LDBL_EPSILON, as the resulting expression isn't an
14704         integer constant expression and violates the C standard.
14705         Problem reported by Nelson H. F. Beebe.  Also, check
14706         for "L" suffix, and check that long double doesn't have
14707         worse range or precision than double, that mixed-mode
14708         arithmetic doesn't generate a diagnostic, that double
14709         constants fit in long double.
14711 2004-06-03  Kevin Ryde  <user42@zip.com.au>
14713         * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
14714         malloc(0) and realloc(NULL,size).
14716         * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
14717         Bob Proulx.
14719 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
14721         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
14722         in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].  Problem reported
14723         by Jim Meyering.
14725 2004-05-26  Paul Eggert  <eggert@cs.ucla.edu>
14727         * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
14728         can be rewritten using if-then-else.  Suggested by Bruno Haible.
14730 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
14732         * doc/autoconf.texi (testsuite Scripts): Fix typo.
14733         Problem reported by Stepan Kasal.
14735 2004-05-24  Paul Eggert  <eggert@cs.ucla.edu>
14737         * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
14738         change).  Patch reported by Ralf Wildenhues in
14739         <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
14741         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
14742         function F exists if the compiler and linker let you compile an
14743         expression like (F != 0).  Recent versions of GCC optimize away
14744         the reference to F in that case, since every function address must
14745         be nonzero, so the link succeeds even if F does not exist.
14746         Problem reported by Manu in
14747         <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
14749         * doc/autoconf.texi (Systemology): Standardize on the spelling of
14750         "Unix".  Many uses changed.
14751         (Limitations of Builtins): Explain better why the ! command isn't
14752         portable.
14754 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
14756         * lib/autom4te.in (Automake-preselections): Preselect
14757         LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
14759 2004-05-19  Kevin Ryde  <user42@zip.com.au>
14761         * doc/autoconf.texi (Function Portability): Add strerror_r, cross
14762         referencing AC_FUNC_STRERROR_R.
14764         * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
14765         note pessimistic assumption when cross compiling.
14767 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14769         * doc/autoconf.texi (Limitations of Make): Note that BSD make
14770         (until 2004) invoked subcommands with sh -e, contra POSIX.
14771         Reported by Kevin Ryde.
14773 2004-05-10  Eric Sunshine  <sunshine@sunshineco.com>
14775         * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
14776         _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
14777         "        $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
14778         `test -f "        /usr/bin/grep"', which _always_ failed.
14779         (AC_PROG_SED): Ditto bogus PATH fix.
14780         * autoconf.texi (AC_PROG_GREP): Properly document that this macro
14781         requires that grep correctly supports _multiple_ `-e' options, rather
14782         than stating only that grep should accept `-e'.
14784 2004-05-03  Paul Eggert  <eggert@cs.ucla.edu>
14786         Port to C99, which requires that 'exit' be declared.
14788         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
14789         to ensure that stdlib.h is included.
14790         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
14791         AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
14792         _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
14793         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
14794         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
14795         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
14796         when using 'exit' in a test; C99 requires that 'exit' be declared.
14798 2004-05-02  Paul Eggert  <eggert@cs.ucla.edu>
14800         * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
14801         now prefers 'grep' implementations that accept -e.
14802         (Limitations of Usual Tools): Describe problems of traditional
14803         egrep and fgrep with long input lines, and of traditional grep
14804         with -e.
14805         * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
14806         (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
14807         All callers changed.  Append /usr/xpg4/bin to the PATH, for
14808         Solaris.
14809         (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
14810         the user with complaints about multiple -e options.
14811         * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
14812         Define it with AC_PROG_GREP.
14813         * configure.ac (AC_PROG_GREP): Add.
14814         * lib/freeze.mk (GREP): New macro.
14816 2004-05-02  Eric Sunshine  <sunshine@sunshineco.com>
14818         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
14819         a possible candidate only after all others fail, rather than
14820         consulting it first.  This improves backward compatibility by
14821         better reflecting the way shell selection occurred in previous
14822         versions of Autoconf, and should help to avoid triggering latent
14823         problems in other packages, such as the one in Automake where zsh
14824         is not handled robustly:
14825         http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
14826         Although it is not Autoconf's responsibility to work around
14827         problems in Automake, it nevertheless makes sense to avoid
14828         introducing unnecessary incompatibilites.
14830 2004-04-22  Albert Chin-A-Young  <china@thewrittenword.com>,
14831             Gary V. Vaughan  <gary@gnu.org>
14833         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
14834         how deeply nested we are when a suitable tool is found, set the
14835         ac_path_TOOL_found flag.
14836         (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
14837         nested we are in this macro.  Break out of all 3 nested loops if
14838         ac_path_TOOL_found is set.
14840 2004-04-21  Gary V. Vaughan  <gary@gnu.org>
14842         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
14843         of the _AS_PATH_WALK loop too if GNU flavor is found.
14845 2004-04-21  Alexandre Duret-Lutz  <adl@gnu.org>
14847         * doc/autoconf.texi (Limitations of Make): Update documentation
14848         for `$<'.  New entry `Long lines', based on a report from Simon
14849         Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
14850         paragraph about DJGPP, based on a mail from Richard Dawe.
14852 2004-04-20  Paul Eggert  <eggert@twinsun.com>
14854         * tests/c.at (C keywords): Don't assume that GCC supports
14855         "restrict" and "inline", as sufficiently-old GCC versions do not
14856         (also, GCC configured to be in pedantic C89 mode does not).
14857         Problem reported by Sumit Pandya in:
14858         http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
14860         * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
14861         consider -g to work if it generates warnings when plain compiles
14862         don't.  Problem reported by Braden McDaniel in:
14863         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
14865         * doc/autoconf.texi (Slashes): New section, to document a problem
14866         reported by Jim Meyering in:
14867         http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
14869         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
14870         linker output files before linking, to work around IRIX 6 linker bug.
14871         Problem reported by Rainer Orth in:
14872         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
14874 2004-04-20  Gary V. Vaughan  <gary@gnu.org>
14876         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
14877         best tool so far counter rely on the tool path variable name to
14878         avoid checks for one tool being affected by the results of running
14879         the length check on a previous tool.
14881         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
14882         match expression argument, as different greps have different
14883         regular expression flavours.
14884         (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
14885         literals.
14886         (AC_PROG_EGREP): Pass 'EGREP$'.
14887         (AC_PROG_GREP): Pass 'GREP$'.
14889 2004-04-20  Albert Chin-A-Young  <china@thewrittenword.com>
14891         * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
14892         is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
14894 2004-03-29  Paul Eggert  <eggert@twinsun.com>
14896         * doc/autoconf.texi (Particular Headers, Particular Types, Generic
14897         Types, Specific Compiler Characteristics, System Services,
14898         Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
14899         etc. consistently instead of 'long', 'short', 'unsigned' etc.
14900         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
14901         * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
14902         Likewise.
14903         * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
14904         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
14905         AC_TYPE_OFF_T): Likewise.
14906         * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
14907         Likewise.
14909         * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
14910         pacify libtool 1.5.2.  Fix quoting problems in sed command.
14912 2004-03-28  Paul Eggert  <eggert@twinsun.com>
14914         * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
14915         now defines HAVE_DECL_TZNAME if it is declared, when
14916         HAVE_STRUCT_TM_TM_ZONE is not defined.
14917         * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
14918         Do not assume atoi.  Rely on HAVE_DECL_TZNAME when testing
14919         for HAVE_TZNAME.
14921 2004-03-28  Steven G. Johnson  <stevenj@fftw.org>
14923         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
14924         superfluous backslashing of quotes (") in sed expressions;
14925         thanks to Paul Eggert.
14927 2004-03-26  Steven G. Johnson  <stevenj@alum.mit.edu>
14929         * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
14930         Fortran compiler is ifort, also added pghpf; thanks to Nelson
14931         H. F. Beebe for the bug report.
14933 2004-03-26  Steven G. Johnson  <stevenj@fftw.org>
14935         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
14936         quoted -cmdline argument in Portland Group compiler (bug
14937         reported by Jeffrey J. Barteet).
14939 2004-03-25  Kevin Ryde  <user42@zip.com.au>
14941         * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
14942         (Run Time): ... here, where it's now mentioned.
14944 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
14946         * doc/autoconf.texi (autom4te Invocation): Language Autoconf
14947         inherits from language Autoconf-without-aclocal-m4.
14948         (Customizing autom4te): Adjust example; the cache must now be
14949         disabled for language Autoconf-without-aclocal-m4.
14951 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
14952             Nathanael Nerode  <neroden@twcny.rr.com>
14954         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
14955         AC_CHECK_TOOLS): Warn if a cross-tool is found without
14956         a prefix.
14957         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
14958         AC_CHECK_TARGET_TOOLS): New macros.
14959         * doc/autoconf.texi (Generic Programs): Document
14960         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
14961         AC_CHECK_TARGET_TOOLS, and warn for future changes
14962         in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
14963         AC_CHECK_TOOLS.
14964         (Specifying Names): Document the reason for these future
14965         behavioral changes.
14966         * tests/mktests.sh: Do not generate tests for the
14967         new macros.
14968         * NEWS: Document these changes.
14970         * doc/autoconf.texi: Avoid macros with unbraced arguments,
14971         they make TeX hang up.
14973 2004-03-15  Paul Eggert  <eggert@bogus.example.com>
14975         * NEWS: New macro AC_CHECK_ALIGNOF.
14976         * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
14977         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
14978         int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
14979         vowel.
14980         (AC_CHECK_ALIGNOF): New macro.
14981         * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
14982         * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
14983         those for sizeof.
14985 2004-03-03  Paul Eggert  <eggert@twinsun.com>
14987         * bin/Makefile.am (edit): Don't use $< in a context where
14988         POSIX doesn't require support for it.  Use $@.in instead.
14989         Problem reported by Anthony N. Frasso in
14990         <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
14991         * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
14993 2004-02-23  Gary V. Vaughan  <gary@gnu.org>
14995         * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
14996         from the next generation of Libtool.
14997         * lib/autom4te.in (Autoreconf-preselections): Ditto.
14999 2004-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
15001         * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
15002         is not always thread-safe.  Report from Nathanael Nerode.
15004 2004-02-18  Paul Eggert  <eggert@twinsun.com>
15006         Fix a dependencies problem, stemming from a Autoconf 2.59 build
15007         problem on QNX reported by Stephen Rasku in
15008         <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
15010         * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
15011         $(m4sh_m4f_dependencies); this removes a FIXME.
15012         * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
15013         (MAINTAINERCLEANFILES): Split into pieces,
15014         one per related section.  Add $(srcdir)/wrapper.in.
15016 2004-02-09  Paul Eggert  <eggert@twinsun.com>
15018         * doc/autoconf.texi (Setting Output Variables): Emphasize that
15019         AC_SUBST provides no portable way to escape literal newlines.
15021         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
15022         flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
15023         Darwin uses -lcrt2.o and there's little point to cataloging all
15024         the system variants.  Partial fix reported by Andreas Waechter in:
15025         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
15026         for bug reported by Nelson H. F. Beebe in:
15027         http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
15029 2004-02-04  Paolo Bonzini  <bonzini@gnu.org>
15031         * doc/autoconf.texi (AU_DEFUN): Fix English,
15032         suggested by Paul Eggert.
15033         * lib/autoconf/autoupdate.m4: Correct reference to
15034         acobsolete.m4, suggested by Alexandre Duret-Lutz.
15036 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
15038         * bin/autoupdate.in: Define __file__ so that warnings
15039         refer to the correct file.
15040         * doc/autoconf.texi (AU_DEFUN): Describe more correctly
15041         the behavior of the third argument.
15042         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
15043         correctly the behavior of the third argument.  Document
15044         what the three macros that AU_DEFUN defines do.  Fix
15045         warning message when the third argument includes $0
15046         (reported by Alexandre Duret-Lutz).
15048 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
15049             Eric Sunshine  <sunshine@sunshineco.com>
15050             Paul Eggert  <eggert@twinsun.com>
15052         * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
15053         (AS_INIT): Output shell initialization there. Removed optional
15054         parameter. Expand _AS_SHELL_FN_SPY.
15055         (AS_INIT_WITH_SHELL_FN): Removed.
15056         (_AS_SHELL_FN_SPY): New macro.
15057         (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
15058         macros.
15059         (AS_SHELL_SANITIZE): Remove loop to find better shell
15060         and documentation for the parameter.
15061         (_AS_DETECT_BETTER_SHELL): Move it here.
15062         (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
15063         (_AS_RUN): Move it here, support testing with eval.
15064         (AS_REQUIRE_SHELL_FN): Require shell functions when
15065         it is used.
15066         (_AS_LINENO_WORKS): Put around braces, we do not
15067         trigger the bash bug anymore.
15068         * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
15069         use AS_INIT_WITH_SHELL_FN.
15070         * bin/autoconf.in, tests/wrapper.in: Regenerated.
15072 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
15074         * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
15075         * doc/autoconf.texi: Don't say that the third parameter
15076         is broken.
15077         * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
15078         (AU_DEFUN): Honor the third parameter, create autoupdate
15079         macros with AU_DEFINE.
15080         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
15081         AC_DIR_HEADER): Use AU_DEFUN's third parameter.
15082         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
15083         * lib/autoconf/programs.m4 (AC_RSH): Likewise.
15084         * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
15085         AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
15086         AC_XENIX_DIR): Likewise.
15087         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
15088         AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
15089         * lib/autoconf/status.m4: Remove FIXME.
15090         * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
15091         that the macro is not present anymore in the updated
15092         configure.ac.
15093         * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
15094         of autoupdate.
15096 2004-01-28  Paul Eggert  <eggert@twinsun.com>
15098         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
15099         copyright years.
15100         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
15101         2003 (except 1997) to the list of copyright years.  This undoes
15102         the 2003-05-22 change, which removed the older years from the list.
15103         * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
15105 2004-01-27  Gary V. Vaughan  <gary@gnu.org>
15106             Albert Chin-A-Young  <china@thewrittenword.com>
15108         * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
15109         grep or ggrep program in PATH that accepts as long lines as
15110         possible.
15111         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
15112         AC_PROG_GREP.
15113         (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
15114         egrep and fgrep respectively if $GREP -E/-F don't work.
15115         (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
15116         _AC_PROG_GREP, and AC_PROG_SED.
15117         (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
15118         longest input length accepted by a command.
15119         (AC_PROG_SED): Use it.
15120         * doc/autoconf.texi (Particular Programs): Document the changes.
15121         * NEWS: Updated.
15123 2004-01-27  Paul Eggert  <eggert@twinsun.com>
15125         * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
15126         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
15127         bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
15128         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
15130         * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
15131         bin/autoconf.in, config/Makefile.in, config/config.guess,
15132         config/config.sub, config/install-sh, config/mdate-sh,
15133         config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
15134         lib/Makefile.in, lib/Autom4te/Makefile.in,
15135         lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
15136         lib/autotest/Makefile.in, lib/emacs/Makefile.in,
15137         lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
15138         man/autoheader.1, man/autom4te.1, man/autoreconf.1,
15139         man/autoscan.1, man/autoupdate.1, man/config.guess.1,
15140         man/config.sub.1, man/ifnames.1, tests/Makefile.in,
15141         tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
15142         tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
15143         tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
15144         tests/actypes.at: Regenerate and/or sync with original
15145         sources.
15147 2004-01-26  Paul Eggert  <eggert@twinsun.com>
15149         * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
15150         HAVE_INTTYPES_H is defined.  This is needed on Tru64 5.1b with
15151         Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
15152         not <inttypes.h>.  Problem reported by Tim Mooney in
15153         <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
15154         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
15155         Likewise.
15157         * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
15158         otherwise "make check" fails because it forbids cmp (I guess
15159         because cmp treats files as binary on DOS-like systems).
15161         * tests/mktests.sh: Update copyright date to 2004, since some tests
15162         have changed in 2004.
15164 2004-01-23  Gary V. Vaughan  <gary@gnu.org>
15166         * lib/autoconf/programs.m4 (AC_PROG_SED):  New macro to test for a
15167         non-truncating sed or gsed program in PATH.
15168         * tests/acprograms.at: Add it.
15169         * doc/autoconf.texi (Particular Programs): Document it.
15170         * NEWS: Updated.
15172 2004-01-15  Paul Eggert  <eggert@twinsun.com>
15174         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
15175         -std1 disables some useful extensions on Tru64.  Problem reported
15176         by N. Lichtmaier in
15177         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
15179 2004-01-14  Paul Eggert  <eggert@twinsun.com>
15181         * doc/autoconf.texi (Programming in M4sh): Document that
15182         AS_MKDIR_P succeeds if the destination is a symbolic link
15183         to an existing directory.
15184         (Limitations of Usual Tools): Note that mkdir -p might not
15185         succeed on symlinks to directories.
15187 2004-01-13  Paul Hilfinger  <hilfinger@CS.Berkeley.EDU>
15189         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
15190         * bin/autoheader.in: Grammar fix in message.
15191         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
15192         Test for dir before calling mkdir -p.  (trivial changes)
15194 2004-01-13  Eric Blake  <ebb9@byu.net>
15196         * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
15197         AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
15199 2004-01-10  Jim Meyering  <jim@meyering.net>
15201         * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
15203 2004-01-09  Paul Eggert  <eggert@twinsun.com>
15205         * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
15206         with `autoconf -Wall,error'.  Bug reported by Eric Blake in:
15207         http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
15208         (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
15209         AC_COMPILE_IFELSE, since we now assume our caller invokes
15210         AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
15211         (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
15212         of AC_RUN_IFELSE; this avoids the warning mentioned above.
15213         (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
15215 2004-01-07  Paul Eggert  <eggert@twinsun.com>
15217         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
15218         `"'...'"`, as it's confusing (and I suspect it may not work on
15219         some platforms).  The code was incorrect anyway, as it assumed
15220         that \$ evaluated to itself in that context.  Reported by
15221         Alexandre Duret-Lutz.
15223 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
15225         * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
15226         and _LT_AC_TAGCONFIG.
15228 2004-01-06  Paul Eggert  <eggert@twinsun.com>
15230         * doc/autoconf.texi (One Macro Call): Fix an incorrect
15231         example, and add more examples.  Reported by Eric Sunshine.
15233 2004-01-05  Paul Eggert  <eggert@twinsun.com>
15235         * doc/autoconf.texi (Limitations of Usual Tools):
15236         Remove warning against "rm -fr" introduced yesterday; it
15237         was a false alarm.
15239         * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
15240         autoscan, autoupdate, ifnames): Don't use chmod -w.
15241         * lib/Makefile.am (autom4te.cfg): Likewise.
15242         * doc/autoconf.texi (Limitations of Usual Tools): Warn against
15243         "chmod -w".
15245 2004-01-04  Paul Eggert  <eggert@twinsun.com>
15246             Paolo Bonzini  <bonzini@gnu.org>
15248         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
15249         by doing lineno substitution only on lines containing "$LINENO".
15251 2004-01-04  Paul Eggert  <eggert@twinsun.com>
15253         * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
15254         Use "rm -f" to remove conftest.sed, not plain "rm".
15255         Bug reported by David Relson in
15256         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
15258         * Makefile.am (autom4te-update):
15259         Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
15260         * Makefile.maint (my-distcheck, do-po-update): Likewise.
15261         * doc/autoconf.texi (Guidelines): Likewise.
15262         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
15263         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
15264         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
15265         * lib/autotest/general.m4 (AT_INIT): Likewise.
15266         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
15267         * tests/Makefile.am (clean-local): Likewise.
15268         * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
15269         srcdir): Likewise.
15270         * doc/autoconf.texi (Limitations of Usual Tools):
15271         Warn against "rm -fr".
15273 2004-01-03  Paul Eggert  <eggert@twinsun.com>
15275         * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
15276         -c -o might not work.  From a suggestion by Kevin Ryde.
15277         (C Compiler, Generating Sources, Limitations
15278         of Usual Tools, Limitations of Make, Making testsuite Scripts):
15279         Don't put '-o' after non-options, as POSIX doesn't allow this.
15280         Mention that cc's name might be gcc or c89 or whatever.
15282 2004-01-04  Kevin Ryde  <user42@zip.com.au>
15284         * doc/autoconf.texi: Add various further index entries.
15286 2003-12-29  Paul Eggert  <eggert@twinsun.com>
15288         * bin/autoreconf.in (autoreconf_current_directory):
15289         Fix typo: mkdir without umask arg.
15291 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
15293         * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
15294         Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
15295         `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
15296         explanation clearer.
15298 2003-12-24  Andreas Schwab  <schwab@suse.de>
15300         * doc/autoconf.texi (Default Includes): Fix misspelling of
15301         AC_INCLUDES_DEFAULT.
15303 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
15305         * configure.ac: Test if sh -n works.
15306         * configure: Regenerate.
15307         * tests/atlocal.in: Store the result here.
15308         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
15309         tools.at, looking in atlocal's ac_cv_sh_n_works instead
15310         of explicitly testing.
15311         (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
15312         (AT_CHECK_AUTOCONF): Test for the configure script syntax.
15313         * tests/tools.at (Syntax of the shell scripts): Simplify
15314         using AT_CHECK_SHELL_SYNTAX.
15315         (Syntax of the Perl scripts): Remove definition of
15316         AT_CHECK_PERL_SYNTAX.
15318 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
15320         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
15321         stderr to /dev/null.
15322         * bin/autoconf.in: Regenerate.
15323         * bin/wrapper.in: Regenerate.
15325 2003-11-26  Paolo Bonzini  <bonzini@gnu.org>
15327         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
15328         Extracted from AS_SHELL_SANITIZE.
15329         (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
15330         macros.
15331         (AS_SHELL_SANITIZE): Move reinvocation code from
15332         _AS_LINENO_WORKS, use it to find out if shell
15333         functions work.
15334         (_AS_LINENO_WORKS): Don't find another shell if $LINENO
15335         does not work.
15336         (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
15337         (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
15338         was called.
15339         * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
15340         * bin/autoconf.in: Regenerate.
15341         * tests/wrapper.in: Regenerate.
15342         * tests/tools.at: Test the syntax of tests/autoconf
15343         and tests/testsuite.
15345 2003-11-24  Akim Demaille  <akim@epita.fr>
15347         * config/announce-gen (&print_locations, &print_signatures)
15348         (&sizes): New.
15349         Use them.
15350         No longer rely on Gnus to inline the list of signatures: compute
15351         them on the fly.
15353 2003-11-24  Akim Demaille  <akim@epita.fr>
15355         * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
15356         override some files.
15357         (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
15358         From Debian Autoconf 2.58.
15360 2003-11-24  Akim Demaille  <akim@epita.fr>
15362         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
15363         uses.
15364         From Debian Autoconf 2.58.
15366 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
15368         * TODO: Remove already done things.  Update the part about finding
15369         tools for the target.
15371 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
15373         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
15374         Make wording more consistent.
15375         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
15376         Explain the transition better.
15377         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
15378         the transition better.
15380 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
15382         * doc/autoconf.texi (Obsoleting Macros): Don't document the third
15383         parameter of AU_DEFUN.
15384         * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
15385         (AU_DEFUN): Remove the third parameter, it was not used.
15386         Use AC_DEFUN directly, not AU_DEFINE.
15387         * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
15388         the expanded body, consistently with other macros such as AC_USG.
15390 2003-11-17  Paul Eggert  <eggert@twinsun.com>
15392         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
15393         into the initial confdefs.h, to work around a bug in NextStep 3.3
15394         patch 3 reported by Eric Sunshine.
15396 2003-11-15  Kevin Ryde  <user42@zip.com.au>
15398         * doc/autoconf.texi (Using System Type): Revise, showing $host rather
15399         than $target since the latter is not usual, add guidelines on when to
15400         use or not use the system type.
15402 2003-11-12  Derek Price  <derek@ximbiot.com>
15404         * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
15405         typo misrepaired by an auto-spellcheck.
15407 2003-11-12  Akim Demaille  <akim@epita.fr>
15409         * bin/autoreconf.in (&parse_args): Don't call automake with
15410         --force-missing unless it actually supports it.
15411         From Debian #219336.
15413 2003-11-12  Akim Demaille  <akim@epita.fr>
15415         * configure.ac: Bump to 2.59a.
15416         Require 2.59.
15418 2003-11-06  Akim Demaille  <akim@epita.fr>
15420         Version 2.59.
15422 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
15424         * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
15425         so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
15426         and ac_abs_top_srcdir are absolute paths.
15427         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
15429 2003-11-05  Akim Demaille  <akim@epita.fr>
15431         * configure.ac: Bump to 2.58a.
15433 2003-11-05  Kevin Ryde  <user42@zip.com.au>
15435         * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
15436         it provokes a warning from makeinfo about looking like a cross
15437         reference in info output.
15439         * doc/autoconf.texi (Function Portability): Add notes on signal
15440         handler return type, as per AC_TYPE_SIGNAL.
15442 2003-11-04  Akim Demaille  <akim@epita.fr>
15444         Version 2.58.
15445         * doc/standards.texi: Update from master.
15447         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
15449 2003-11-04  Akim Demaille  <akim@epita.fr>
15451         AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
15452         computing the absolute path to d1 in the source hierarchy: it may
15453         not exist at all.  So don't cd into it.
15454         From Alexandre Duret-Lutz.
15455         http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
15457         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
15458         From Paul Eggert, but named after Perl's IO::Spec->catfile.
15459         * doc/autoconf.texi (Programming in M4sh): Document.
15460         * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
15462 2003-11-03  Pavel Roskin  <proski@gnu.org>
15464         * doc/autoconf.texi (Generic Structure Checks): Describe
15465         action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
15467 2003-10-31  Akim Demaille  <akim@epita.fr>
15469         * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
15470         (GNU Fortran): New.
15471         * doc/autoconf.texi (Language Choice): Document.
15472         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
15473         the current language is Fortran.
15475 2003-10-31  Akim Demaille  <akim@epita.fr>
15477         * bin/autom4te.in (&freeze): Use a less likely warning separator
15478         than `\n\n', so that `\n\n\n' is valid in warnings.
15479         Reported by Steve Huston.
15481 2003-10-28  Akim Demaille  <akim@epita.fr>
15483         * Makefile.cfg (local_updates, executable-update): Tweak to be
15484         robust to parallel makes.
15485         Suggested by Alexandre Duret-Lutz.
15487 2003-10-27  Akim Demaille  <akim@epita.fr>
15489         * Makefile.cfg (executable-update): New.
15490         (local_updates): Call it.
15492 2003-10-27  Akim Demaille  <akim@epita.fr>
15494         * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
15495         Don't remove core.* as it may remove valid user files.
15496         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
15497         (AC_FUNC_UTIME_NULL): Likewise.
15499 2003-10-23  Akim Demaille  <akim@epita.fr>
15501         Version 2.57g.
15502         * config/config.guess, config/config.sub: Upgrade from masters.
15504 2003-10-23  Akim Demaille  <akim@epita.fr>
15506         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
15507         AC_COMPILE_IFELSE that use break skip the clean up.  So do it by
15508         hand...
15510 2003-10-23  Akim Demaille  <akim@epita.fr>
15512         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
15513         Don't forget to remove conftest.err.
15515 2003-10-23  Akim Demaille  <akim@epita.fr>
15517         * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
15518         same object file in $LIBOBJS.
15519         Reported by Alexandre Duret-Lutz & Derek Robert Price.
15520         * doc/autoconf.texi (Generic Functions): Adjust.
15522 2003-10-20  Paul Eggert  <eggert@twinsun.com>
15524         * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
15525         Use 'eval', so that the resulting configure scripts work even if
15526         the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
15528 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
15530         * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
15531         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
15532         (_AC_LINK_IFELSE): Check the werror flag.
15533         * doc/autoconf.texi (Generic Compiler Characteristics): Document
15534         AC_LANG_WERROR.
15535         * NEWS: Mention it.
15537 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
15539         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
15540         _AC_COMPILER_EXEEXT to attempt a link.  If linking fails,
15541         override AC_LINK_IFELSE.
15543 2003-10-15  Paul Eggert  <eggert@twinsun.com>
15545         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
15546         pdksh 5.2.14.  Bug reported by Ralf Corsepius.
15547         * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
15548         Mention /usr/dt/bin/dtksh on Solaris.
15549         (Shell Substitutions): Warn about $((...)).
15550         (Parentheses): New section.
15552 2003-10-15  Kevin Ryde  <user42@zip.com.au>
15554         * doc/autoconf.texi (Function Portability): Add @prindex for exit.
15555         Add putenv and unsetenv.  Add sysconf _SC_PAGE_SIZE.
15557 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
15559         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
15560         cross test.
15562 2003-10-11  Steven G. Johnson  <stevenj@alum.mit.edu>
15564         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
15565         name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
15567 2003-10-10  Andreas Schwab  <schwab@suse.de>
15569         * bin/autoheader.in: Avoid empty first line in --version and
15570         --help output.
15571         * bin/ifnames.in: Likewise.
15573 2003-10-09  Paul Eggert  <eggert@twinsun.com>
15575         * lib/Autom4te/XFile.pm: Don't assume -j is solo.
15576         Issue a more-informative diagnostic.
15577         Problems reported by Eric Sunshine.
15579 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
15581         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
15582         -mGLOB_options_string stuff for Intel ifc, which can cause
15583         _AC_FC_LIBRARY_LDFLAGS to fail.  Use (faster) case for
15584         pattern-matching instead of grep.
15586 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
15588         * doc/autoconf.texi: Document new FC Fortran macros.
15590 2003-10-08  Gary V. Vaughan  <gary@gnu.org>
15592         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
15593         that future autopoint/aclocal/automake/autoreconf will be able
15594         to trace to find where to install local m4 macros.
15595         * doc/autoconf.texi (Input): Document it.
15596         * NEWS: Updated.
15598 2003-10-06  Gary V. Vaughan  <gary@gnu.org>
15600         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
15601         -lcrtbegin.o to list of ignored flags and fix underquoting of
15602         -lcrt[01].o.
15604 2003-10-04  Steven G. Johnson  <stevenj@ab-initio.mit.edu>
15606         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
15607         cache variable instead of $G77 to decide whether to include -O2,
15608         since $G77 is specific to Fortran 77.
15610 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
15612         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
15613         free" flag.  Re-order flags tested into rough order of popularity.
15615 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
15617         * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
15618         arguments so that it can be used with syntax identical to
15619         AC_PROG_F77, and so that we can more easily decide to
15620         remove/deprecate the DIALECT optional argument in the future if it
15621         proves troublesome.
15622         (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
15623         non-freeform-supporting compilers.  Document freeform flags.
15625 2003-10-03  Akim Demaille  <akim@epita.fr>
15627         * configure.ac: Look for emacs, not macs.
15628         Reported by Eric Sunshine.
15630 2003-10-03  Akim Demaille  <akim@epita.fr>
15632         * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
15633         * bin/autoreconf.in (autoreconf_current_directory): Create the
15634         AUX_DIR if needed, for sake of automake --add-missing etc.
15635         Suggested by Alexandre Duret-Lutz.
15637 2003-10-03  Akim Demaille  <akim@epita.fr>
15639         * configure.ac: Quotation and formatting changes.
15640         (EMACS): Don't set it if it is not recent enough to support
15641         autoconf-mode.el.
15642         From Eric Sunshine.
15644 2003-10-02  Akim Demaille  <akim@epita.fr>
15646         * bin/ifnames.in (&scan_file): Skip C++ comments.
15647         From Jeremy Yallop.
15649 2003-10-01  Pavel Roskin  <proski@gnu.org>
15651         * doc/autoconf.texi (Particular Structure Checks):
15652         Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
15654 2003-10-01  Akim Demaille  <akim@epita.fr>
15656         Version 2.57f.
15658 2003-09-30  Paul Eggert  <eggert@twinsun.com>
15660         * lib/Autom4te/XFile.pm: Use Errno.
15661         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
15662         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
15664 2003-09-30  Akim Demaille  <akim@epita.fr>
15666         * config/announce-gen (&print_news_deltas): Extracted from...
15667         (&print_changelog_deltas): here.
15668         (&news_file): Rename as...
15669         (@news_file): this.
15671 2003-09-30  Nicolas Joly  <njoly@pasteur.fr>
15673         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
15674         have been created when invoking the compiler.
15675         * tests/fortran.at (GNU Fortran 77): Quote $G77.
15677 2003-09-29  Akim Demaille  <akim@epita.fr>
15679         Version 2.57e.
15681         * config/mkinstalldirs: Upgrade.
15683 2003-09-28  Paul Eggert  <eggert@twinsun.com>
15685         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
15686         Problem reported by Lars J. Aas in
15687         <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
15688         (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
15689         "test -d ./-p && rmdir ./-p".  Suggested by Andreas Schwab in:
15690         http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
15692 2003-09-26  Akim Demaille  <akim@epita.fr>
15694         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
15695         directory for AC_CONFIG_COMMANDS' first argument exists.
15696         This makes valid the invocation of _AC_SRCPATH that follows.
15697         Reported by Eric Sunshine.
15698         * doc/autoconf.texi (Configuration Commands): Adjust.
15700 2003-09-26  Akim Demaille  <akim@epita.fr>
15702         * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
15703         Reported by Ralf Corsepius.
15705 2003-09-26  Akim Demaille  <akim@epita.fr>
15707         * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
15708         arguments.
15709         Actually, use AU_ALIAS.
15710         From Bruno Haible.
15712 2003-09-26  Paul Eggert  <eggert@twinsun.com>
15714         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
15715         rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
15716         Problem reported by Eric Sunshine in:
15717         http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
15719 2003-09-26  Akim Demaille  <akim@epita.fr>
15721         The test suite are sometimes assigning timings incorrectly.
15722         Reported by Henk Krus.
15723         Diagnosed by Nicolas Joly.
15725         * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
15726         AT_help_all.
15727         Instead of making AT_help a sequence of assignments to grow
15728         $at_help_all, just make AT_help_all be the growing contents of
15729         $at_help_all, and make a single assignment in...
15730         (AT_INIT): here.
15731         (at_times_skip): Flip the meaning and rename as...
15732         (at_times_p): this.
15733         (AT_INIT): When summarizing the test that ran, remove
15734         $at_times_file after use, and check it is present before trying to
15735         use it.
15737 2003-09-25  Akim Demaille  <akim@epita.fr>
15739         Version 2.57d.
15741         * bin/Makefile.am (edit): Handle '@configure_input@'.
15742         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
15743         (ifnames): chmod -w.
15744         * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
15745         executables, not bin/ executables!  Otherwise all the magic needed
15746         to find non installed files is turned off.  This caused a failure
15747         of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
15748         as found in its environment (sent by tests/autoreconf): pointing
15749         to bin/autom4te that could not find its files.
15750         * tests/mktests.sh: Force the replacement of generated files, for
15751         the sake of "mv" program that are interactive when overwriting a
15752         -w file.
15753         * config/install-sh: Upgrade from CVS Automake.
15755 2003-09-23  Paul Eggert  <eggert@twinsun.com>
15757         * doc/autoconf.texi (Limitations of Builtins): Document test -h
15758         versus test -L issues.
15760 2003-09-23  Daniel Jacobowitz  <drow@mvista.com> and
15761             Paul Eggert  <eggert@twinsun.com>
15763         Trivial change to support GCC's configuration procedure.
15764         * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
15765         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
15766         about inconsistency if the preprocessor is set to give errors for
15767         any warning.
15768         * doc/autoconf.texi (C Compiler Characteristics): Document this.
15770 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
15772         * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
15773         and XFile.pm from Automake.
15774         * lib/Autom4te/XFile.pm: Update from Automake.
15776 2003-09-12  Akim Demaille  <akim@epita.fr>
15778         Version 2.57c.
15780 2003-09-12  Akim Demaille  <akim@epita.fr>
15782         * config/config.guess, config/config.sub, config/missing,
15783         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
15784         from masters.
15786 2003-09-12  Akim Demaille  <akim@epita.fr>
15788         * doc/autoconf.texi (Header Portability): Promote linux/types.h,
15789         not asm/types.h.
15791 2003-09-11  Akim Demaille  <akim@epita.fr>
15793         * doc/autoconf.texi (Header Portability): linux/random.h.
15794         From Peter Hendrickson.
15796 2003-09-10  Akim Demaille  <akim@epita.fr>
15798         * tests/mktests.sh (au_exclude_egrep): Make it harder to be
15799         willing to edit the output files.
15801 2003-09-10  Akim Demaille  <akim@epita.fr>
15803         * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
15804         and AC_FC_FREEFORM.
15805         * tests/mktests.sh: Skip AC_FC_SRCEXT.
15806         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
15808 2003-09-09  Akim Demaille  <akim@epita.fr>
15810         * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
15811         Reported by Gary Vaughan.
15812         * bin/autom4te.in (handle_m4): Likewise.
15814 2003-09-09  Akim Demaille  <akim@epita.fr>
15816         * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
15817         trailing files.
15819 2003-09-07  Paul Eggert  <eggert@twinsun.com>
15821         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
15822         Improve the accuracy of the wording about obsolescence.
15823         From a suggestion by Ian Lance Taylor in
15824         <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
15826 2003-09-05  Paul Eggert  <eggert@twinsun.com>
15828         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
15829         for the benefit of g77 3.2.  Fix suggested by Steven G. Johnson.
15831 2003-09-04  Akim Demaille  <akim@epita.fr>
15833         * tests/mktests.sh (ac_exclude_list): Fix the filtering of
15834         AC_FUNC_WAIT3.
15836 2003-09-04  Akim Demaille  <akim@epita.fr>
15838         * bin/autom4te.in: Use &fatal where more appropriate than &error.
15839         (freeze): When exiting, use $exit_code.
15840         * lib/autoconf/fortran.m4: Comment changes.
15842 2003-09-04  Akim Demaille  <akim@epita.fr>
15844         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
15846 2003-09-02  Steven G. Johnson  <stevenj@alum.mit.edu>
15848         Add support for newer Fortran dialects.  The F77 interface is
15849         unchanged, and continues to support Fortran 77.  New FC macros
15850         correspond to all the old F77 macros, with output variables FC,
15851         FCFLAGS, and FCLIBS.  AC_PROG_FC defaults to picking the newest
15852         available dialect, but older dialects can be specified.  There are
15853         new macros AC_FC_SRCEXT to set the source extension, and
15854         AC_FC_FREEFORM to accept free-form source files.
15856         * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
15857         New macros.
15858         (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
15859         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
15860         _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
15861         _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
15862         AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
15863         AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
15864         _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
15865         _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
15866         AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
15867         _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
15868         AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
15869         _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
15870         AC_FC_SRCEXT, AC_FC_FREEFORM):
15871         New macros.
15872         (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
15873         AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
15874         AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
15875         Rewrite in terms of the above.
15876         (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
15877         * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
15878         * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
15879         AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
15881 2003-09-02  Paul Eggert  <eggert@twinsun.com>
15883         * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
15884         Document problems with timestamp resolution that 'make', 'cp -p', and
15885         'touch -r' have.
15887 2003-08-27  Akim Demaille  <akim@epita.fr>
15889         * tests/m4sugar.at (cross_warning): Make sure to enable the
15890         output, so that we can track spurious m4sugar output.
15891         * tests/local.at: Require 2.57.
15892         (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
15893         are defaulted by AT_CHECK anyway.
15894         Use AT_CHECK_AUTOM4TE.
15895         * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
15896         missing dnl.
15898 2003-08-27  Akim Demaille  <akim@epita.fr>
15900         * bin/autoheader.in: Issue the "Using auxiliary..." message only
15901         when -Wobsolete is set.
15902         Set it on by default.
15903         Suggested by Klee Dienes.
15905 2003-08-27  Akim Demaille  <akim@epita.fr>
15907         * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
15908         documentation.
15909         From Guido Draheim.
15911 2003-08-26  Akim Demaille  <akim@epita.fr>
15913         * doc/autoconf.texi (Output): Make clear that one can run code
15914         after AC_OUTPUT.
15916 2003-08-25  Akim Demaille  <akim@epita.fr>
15918         * config/announce-gen, GNUmakefile, Makefile.maint: Update from
15919         CVS Bison.
15921 2003-08-25  Alexandre Duret-Lutz  <adl@gnu.org>
15923         * bin/autoreconf.in (parse_args): Do not pass --no-force to
15924         Automake versions prior to 1.8.
15926 2003-08-25  Akim Demaille  <akim@epita.fr>
15928         * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
15929         From Ville Karaila.
15931 2003-08-24  Akim Demaille  <akim@epita.fr>
15933         * configure.ac: Bump to 2.57c.
15935 2003-08-22  Akim Demaille  <akim@epita.fr>
15937         Version 2.57b.
15939         * Makefile.cfg (local-checks-to-skip): New.
15940         * Makefile.maint (local-check): Rename as...
15941         (local-checks-available): this.
15942         (local-check): New.
15944         * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
15945         * configure.ac: Require Automake 1.7.6.
15947 2003-08-22  Akim Demaille  <akim@epita.fr>
15949         Output stack traces in warnings.
15951         * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
15952         Replace the former...
15953         (m4_warn): Pass the call stack to _m4_warn.
15954         * bin/autom4te.in: Adjust to output the call stack.
15955         * tests/m4sugar.at (m4@&t@_warn): Adjust.
15957 2003-08-22  Akim Demaille  <akim@epita.fr>
15959         * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
15960         * bin/autom4te.in: Adjust.
15962 2003-08-21  Akim Demaille  <akim@epita.fr>
15964         * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
15965         (&verbose): Remove.
15966         (&getopt): Adjust the note and verb channels, depending upon
15967         --verbose.
15968         * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
15969         * bin/autoupdate.in: Adjust.
15970         Use &verb, not &verbose.
15972 2003-08-21  Akim Demaille  <akim@epita.fr>
15974         * bin/autoheader.in (&parse_args): Use &parse_warnings and
15975         &parse_WARNINGS.
15976         ($help): Use Autom4te::ChannelDefs::usage.
15977         * bin/autoscan.in: Use Autom4te::ChannelDefs.
15978         * lib/Autom4te/General.pm: Don't export error: you don't own it.
15980 2003-08-21  Akim Demaille  <akim@epita.fr>
15982         First stab at preserving warnings between calls to autom4te,
15983         including when the cache is used.
15985         There are still several issues: (i) there are too many runs of m4
15986         (one for include, one for warnings, and some more), (ii) warnings
15987         spreading on several lines are not handled gracefully, (iii) the
15988         code meant to have the call stack display for errors does not work
15989         (its handling should move from m4 to autom4te).
15991         * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
15992         Use them.
15993         (@preselect): Add m4_warn.
15994         ($exit_status): Remove, use $exit_code.
15995         ($help): Use Autom4te::ChannelDefs::usage.
15996         (&handle_m4): No longer define the m4_warnings.
15997         At each run, extract and report the warnings.
15998         Always cache the result, including if the exit status is on
15999         failure, since if nothing changes, we should result in the same
16000         failure, hence we can use the cache.
16001         * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
16002         (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
16003         Remove.
16004         (m4_warn): Redefine as a do-nothing: it is its invocation that
16005         matters, as warnings are now reported via traces.
16006         * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
16007         the contents of m4_warn: make it _call_ m4_warn, so that tracing
16008         the latter reveals calls to the former.
16010         Adjust the tests.
16012         * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
16014 2003-08-21  Akim Demaille  <akim@epita.fr>
16016         * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
16017         Use them.
16019 2003-08-21  Akim Demaille  <akim@epita.fr>
16021         * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
16022         forward order.
16023         * lib/Autom4te/ChannelDefs.pm: Doc typos.
16024         (&parse_warnings): Accept a list of warning requests.
16025         (&usage): Return a string, not a side effect.
16026         (cross): New warning category.
16028 2003-08-21  Akim Demaille  <akim@epita.fr>
16030         * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
16031         (&require_configure_ac): Accept an optional directory argument.
16032         ($configure_ac): Remove.
16033         * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
16034         (&catfile): Remove.
16035         * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
16036         * bin/autoscan.in: Adjust.
16038 2003-08-20  Akim Demaille  <akim@epita.fr>
16040         * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
16041         Reported by Alexandre Duret-Lutz.
16043 2003-08-20  Akim Demaille  <akim@epita.fr>
16045         * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
16046         * bin/autom4te: Adjust.
16047         In particular, be Autoconf tools are really silent when properly
16048         working, bind the verbosity of the 'note' channel to $verbose.
16049         * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
16050         (&xsystem, &contents): Remove, since they are exported by...
16051         * lib/Autom4te/FileUtils.pm: this.
16052         More perldoc.
16053         * lib/Autom4te/General.pm (&up_to_date_p): Move to...
16054         * lib/Autom4te/FileUtils.pm: here.
16056 2003-08-20  Akim Demaille  <akim@epita.fr>
16058         * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
16059         * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
16060         from CVS Automake.
16062 2003-08-20  Akim Demaille  <akim@epita.fr>
16064         * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
16065         (autom4te-update): New.
16066         * Makefile.cfg (update): Bind autom4te-update.
16068 2003-08-19  Derek Price  <derek@ximbiot.com>
16070         * lib/autotest/general.m4: Comment various HELP_* diversions.
16071         (PARSE_ARGS_BEGIN): New section for option parsing related
16072         initialization.
16073         (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
16074         package specific options and associated help.
16076 2003-08-19  Akim Demaille  <akim@epita.fr>
16078         * config/announce-gen, Makefile.cfg: New.
16079         * Makefile.am: Adjust.
16080         * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
16082 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
16084         * lib/autom4te.in (Automake-preselections): Preselect
16085         AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
16086         and m4_sinclude.
16088 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
16090         * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
16091         (Autoconf-without-aclocal-m4): ... this new language.
16092         * doc/autoconf.texi (autom4te Invocation): Mention
16093         Autoconf-without-aclocal-m4.
16095 2003-08-18  Derek Price  <derek@ximbiot.com>
16097         * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
16098         RUN-IF-PASS optional arguments.
16100 2003-08-18  Derek Price  <derek@ximbiot.com>
16102         * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
16104 2003-08-16  Derek Price  <derek@ximbiot.com>
16106         * doc/autoconf.texi (Writing testsuite.at): Document defaults for
16107         STDOUT & STDERR arguments.
16109 2003-08-14  Derek Price  <derek@ximbiot.com>
16111         * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
16112         DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
16113         shorter column three.  Add DESCRIPTION to log file content.
16115 2003-08-13  Derek Price  <derek@ximbiot.com>
16117         * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
16118         output.
16120 2003-08-12  Derek Price  <derek@ximbiot.com>
16122         * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
16123         (AT_CHECK_NOESCAPE): Move core functionality to...
16124         (_AT_CHECK): ...this new macro.
16126 2003-08-07  Derek Price  <derek@ximbiot.com>
16128         * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
16129         (AT_CHECK_NOESCAPE): ...to this new macro.
16131 2003-07-31  Paul Eggert  <eggert@twinsun.com>
16133         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
16134         in Bash 2.01.  Problem reported by Brian Gough in
16135         <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
16137 2003-07-25  John W. Eaton  <jwe@bevo.che.wisc.edu>
16139         * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
16140         -lcrt1.o, for OS X.  (trivial change)
16142 2003-07-07  Paul Eggert  <eggert@twinsun.com>
16144         * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
16145         inside '#ifndef __cplusplus'.  Problem reported by
16146         Bob Friesenhahn.
16148 2003-07-06  Bill Clarke  <llib@computer.org>
16150         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
16151         'long', not 'int', for benefit of Sun's recent C++ compilers
16152         (trivial change).  See:
16153         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
16154         (This really should be 'intptr_t', not 'long', but that would
16155         take more work.)
16157 2003-06-25  Akim Demaille  <akim@epita.fr>
16159         * lib/Makefile.am (autom4te.cfg): Make it read only.
16160         Depend on Makefile since it contains substitutions.
16161         From Paolo Bonzini.
16162         * lib/autom4te.in (args): Add local.at? for Autotest args.
16163         This change was made on autom4te.cfg which is generated.
16164         Reported by Raja R. Harinath.
16166 2003-06-25  Akim Demaille  <akim@epita.fr>
16168         * doc/autoconf.texi (Header Portability): sys/mount.h.
16169         From Gareth McCaughan.
16171 2003-06-23  Akim Demaille  <akim@epita.fr>
16173         * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
16174         not all of them.  This fixes 1. the fact that when testing
16175         Autoconf there are many many config.log, 2. the incorrect use of
16176         top_srcdir to find config.log.
16177         Don't mix the detailed output of failed test with the summary of
16178         failures.  Rather, append detailed log afterwards.
16180 2003-06-23  Akim Demaille  <akim@epita.fr>
16182         * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
16183         always run: output config.log on $at_group_log.
16185 2003-06-23  Akim Demaille  <akim@epita.fr>
16187         * tests/torture.at (#define header templates): Don't use quotes in
16188         C++ comments as it puzzles Emacs' sh font-lock-mode.
16190 2003-06-23  Akim Demaille  <akim@epita.fr>
16192         * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
16193         * lib/autom4te.cfg (args): Add local.at? for Autotest args.
16194         * tests/atspecific.m4: Rename as...
16195         * tests/local.at: This.
16196         * tests/suite.at: Move the globals into...
16197         * tests/local.at: here.
16198         * tests/Makefile.am: Adjust.
16199         * doc/autoconf.texi (testsuite Scripts): Adjust.
16201 2003-06-21  Kevin Ryde  <user42@zip.com.au>
16203         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
16204         error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
16205         ensuring we add -std1 for full-ANSI.
16207         * doc/autoconf.texi (hdrindex): New macro.
16208         Add index entries for portability of various standard header files.
16210 2003-06-20  Akim Demaille  <akim@epita.fr>
16212         * configure.ac: Bump to 2.57b.
16214 2003-06-20  Akim Demaille  <akim@epita.fr>
16216         Version 2.57a.
16218 2003-06-20  Akim Demaille  <akim@epita.fr>
16220         * bin/autom4te.in: Don't rely on $HOME being defined.
16221         Reported by Marc Espie as PR/233.
16223 2003-06-20  Akim Demaille  <akim@epita.fr>
16225         * lib/autotest/general.m4: Use at_times_file only if used.
16226         From Nicolas Joly.
16228 2003-06-20  Akim Demaille  <akim@epita.fr>
16230         * config/config.guess, config/config.sub, config/elisp-comp,
16231         * config/install-sh, config/mkinstalldirs, doc/standards.texi:
16232         Update from masters.
16234 2003-06-11  Paolo Bonzini  <bonzini@gnu.org>
16236         * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
16237         * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
16238         (TEST_SCRIPT): New diversion.
16239         (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
16240         (AT_CLEANUP): ...to here.  Undivert TEST_SCRIPT.
16241         (AT_INIT): Support for expected failures.
16243 2003-06-02  Akim Demaille  <akim@epita.fr>
16245         * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
16246         changes.
16247         * lib/Autom4te/General.pm (&backname): Remove, no longer used by
16248         Autoconf nor Automake.
16249         (&contents): New, from Automake.
16250         PODify.
16252 2003-05-28  Paul Eggert  <eggert@twinsun.com>
16254         * NEWS, doc/autoconf.texi (Particular Functions),
16255         lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
16256         is the inverse of localtime.
16258 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
16260         * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
16261         (handle_exec_errors): New function.  Work around $! being
16262         altered by WEXITSTATUS.
16263         (xqx, xsystem): Use handle_exec_errors.
16265 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
16267         * lib/Autom4te/General.pm (END): Rewrite exit code processing.
16268         Do not call `_exit()', simply modify `$?'.
16269         (xsystem): Reset $! before running system, and check it afterward.
16270         * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
16271         63 for version mismatches.
16273 2003-05-23  Akim Demaille  <akim@epita.fr>
16275         * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
16276         Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
16277         the middle of a line).
16278         * lib/m4sugar/m4sugar.m4: Likewise.
16279         Remove useless spaces in comments.
16281 2003-05-23  Akim Demaille  <akim@epita.fr>
16283         * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
16284         exit 63, so that we (or Automake's "missing") can tell the
16285         difference with a plain failure.
16286         * doc/autoconf.texi (Notices): Adjust.
16288 2003-05-23  Akim Demaille  <akim@epita.fr>
16290         * Makefile.am, bin/Makefile.am, config/Makefile.am,
16291         * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
16292         White spaces cleanup.
16294 2003-05-22  Jim Meyering  <jim@meyering.net>
16295             Paul Eggert  <eggert@twinsun.com>
16297         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
16298         Remove `#include <stdlib.h>' from the list; we should never
16299         make confdefs.h include <stdlib.h> or <cstdlib>, because the
16300         resulting namespace pollution would cause other tests to fail.
16301         Configure scripts run with some older versions of g++ and HP's
16302         aCC would fail due to such an #include.  Problems reported by
16303         Matthew Mueller in <http://bugs.debian.org/120704> and by
16304         Keith Bostic in
16305         <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
16306         In the test, use the test declaration before including <stdlib.h>,
16307         as that's closer to how it'll be used.
16309 2003-05-23  Akim Demaille  <akim@epita.fr>
16311         * doc/autoconf.texi (Header Portability): ucred.h.
16312         From Ian Redfern.
16314 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
16316         Overhaul Autotest's logging: generate separate log files
16317         in testsuite.dir/NNN/testsuite.log, and append them to
16318         testsuite.log instead of re-running the test verbosely.
16320         * lib/autotest/general.m4 (AT_INIT): Use a single redirected
16321         file descriptor, write 0 to at_status_file instead of setting
16322         at_status=0, initialize some new variables (at_status_file,
16323         at_group_log, at_suite_log, at_tee_pipe).  Remove the cruft
16324         to rerun the tests, instead append the at_group_log to the
16325         at_suite_log when a test fails.
16326         (AT_SETUP): pipe the test case's output into at_tee_pipe,
16327         with the AS_MESSAGE_LOG_FD redirected to stdout.
16328         (AT_CLEANUP): save the output status in $at_status_file
16329         and restore it, redirect the AS_MESSAGE_LOG_FD back to
16330         its original place.
16331         (AT_CHECK): since tests are run with a redirected stdout,
16332         and used to be re-run in verbose mode, turn some $at_verbose
16333         into echo, and don't redirect the output of testing stdout
16334         and stderr.
16336         * lib/autotest/autoconf.texi (testsuite Scripts): Update
16337         the name of the debugging directory and information about
16338         its contents.
16340 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
16342         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
16343         parameter.
16345 2003-05-22  Akim Demaille  <akim@epita.fr>
16347         * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
16348         * lib/autoconf/fortran.m4 lib/autoconf/general.m4
16349         * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
16350         * lib/autoconf/status.m4: Fix and adjust copyright notices.
16352 2003-05-22  Akim Demaille  <akim@epita.fr>
16354         * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
16355         * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
16356         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
16357         * lib/autoconf/general.m4, lib/autoconf/headers.m4,
16358         * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
16359         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
16360         * lib/autoconf/status.m4, lib/autoconf/types.m4,
16361         * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
16362         * tests/atspecific.m4, tests/base.at, tests/compile.at,
16363         * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
16364         * tests/tools.at, tests/torture.at:
16365         Whitespace clean up.
16366         Suggested by Jim Meyering.
16368 2003-05-22  Akim Demaille  <akim@epita.fr>
16370         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
16371         ' \t' as '\t ' so that Emacs' whitespace.el keep it.
16372         Reported by Jim Meyering.
16374 2003-05-22  Akim Demaille  <akim@epita.fr>
16376         * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
16377         Add AC_HELP_STRING  to the obsolete macros section.
16378         Typos.
16379         Use '@.' for sentences that ended in a capital letter.
16380         From Art Haas.
16382 2003-05-22  Akim Demaille  <akim@epita.fr>
16384         * config/config.guess, config/config.sub, config/elisp-comp,
16385         * config/install-sh, config/mdate-sh, config/mkinstalldirs,
16386         * config/texinfo.tex, doc/standards.texi: Update from masters.
16388 2003-05-21  Paolo Bonzini  <bonzini@gnu.org>
16390         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
16391         it to eval.
16393 2003-05-21  Akim Demaille  <akim@epita.fr>
16395         * bin/autoupdate.in ($m4): Fix quotation.
16396         Reported by Martin Mokrejs.
16398 2003-05-19  Paul Eggert  <eggert@twinsun.com>
16400         * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
16401         Remove non-ASCII characters.
16403 2003-05-18  Paolo Bonzini  <bonzini@gnu.org>
16405         * tests/semantics.at (AC_SEARCH_LIBS): New test.
16406         * tests/semantics.at (AC_CHECK_HEADERS_OLD,
16407         AC_CHECK_HEADERS_NEW): New tests.
16409 2003-05-17  Akim Demaille  <akim@epita.fr>
16411         * lib/autoconf/functions.m4: Use the default includes so that
16412         memcmp be declared before being tested.
16413         Reported by Sander Niemeijer.
16414         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
16415         * doc/autoconf.texi (Default Includes): Document
16416         AC_INCLUDES_DEFAULT.
16418 2003-05-17  Akim Demaille  <akim@epita.fr>
16420         * lib/autoconf/specific.m4: Include signal.h and unistd.h.
16421         * doc/autoconf.texi (Obsolete Macros): Adjust.
16422         Reported by Werner LEMBERG and Debian Bug 190886.
16424 2003-05-16  Akim Demaille  <akim@epita.fr>
16426         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
16427         user name space clashes.
16428         Reported by Bruno Haible.
16430 2003-05-16  Akim Demaille  <akim@epita.fr>
16432         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
16433         * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
16434         them uniform, and more robust to Perl special characters.
16435         Reported by Martin Mokrejs.
16437 2003-05-14  Akim Demaille  <akim@epita.fr>
16439         * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
16441 2003-05-14  Akim Demaille  <akim@epita.fr>
16443         * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
16444         linux/irda.h.
16446 2003-05-12  Akim Demaille  <akim@epita.fr>
16448         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
16449         message.
16450         From Matthias Andree.
16452 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
16454         * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
16455         and truncate.
16457 2003-05-06  Akim Demaille  <akim@epita.fr>
16459         Don't try to be smart with aclocal 1.8+ because (i) aclocal no
16460         longer updates aclocal.m4 if useless, (ii) if a file m4_included
16461         by aclocal.m4 is changed it might require the importing of another
16462         m4 extension file, i.e., aclocal must be run.
16464         * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
16465         (&parse_args): Use --force with aclocal if required and supported.
16466         (&autoreconf_current_directory): Use &run_aclocal.
16468 2003-05-06  Akim Demaille  <akim@epita.fr>
16470         Lock autom4te's cache.
16472         * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
16473         * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
16474         argument instead of a file name, so that the request file remains
16475         open during the whole autom4te run.
16476         ($icache_file): New.
16477         (&freeze): Lock the $icache_file.
16479 2003-04-29  Derek Price  <derek@ximbiot.com>
16481         * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
16482         seperator with m4_append_uniq().  It doesn't work.
16483         (AT_CLEANUP): Add `;' to end of at_help_all.
16484         (AT_INIT): Allow --keywords to be specified more than once.  When
16485         grepping $at_help_all for keywords, use the field and keyword
16486         seperators to ensure a complete keyword match.  Alter at_prev handling
16487         to support the new --keywords behavior.
16489 2003-04-27  Karl Berry  <karl@freefriends.org>
16491         * doc/autoconf.texi: Make the dir entries in the autoconf manual
16492         align better with others.  I also made some of the individual
16493         entries on one line, for brevity and to make it easier for me to
16494         sort my dir-example file in the Texinfo distribution :).
16496 2003-04-12  Jim Meyering  <jim@meyering.net>
16498         * NEWS: Mention the new macro.
16499         * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
16500         * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
16501         * tests/c.at: Test AC_C_RESTRICT.
16502         * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
16504 2003-04-08  Akim Demaille  <akim@epita.fr>
16506         * bin/ifnames.in: Skip C++ comments.
16507         From Jeremy Yallop.
16509 2003-04-08  Akim Demaille  <akim@epita.fr>
16511         * GNUmakefile (SHELL): Don't assume sh is in /bin/.
16512         From Ilya Zakharevich.
16514 2003-04-08  Akim Demaille  <akim@epita.fr>
16516         * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
16517         net/if.h, stdlib.h.
16519 2003-04-01  Derek Price  <derek@ximbiot.com>
16521         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
16522         from Akim's checkin of 2003-03-29.
16524 2003-04-01  Derek Price  <derek@ximbiot.com>
16526         * tests/torture.at (Configuring subdirectories): Add missing
16527         close-quote for Akim's change from 2003-03-28.
16529 2003-04-01  Akim Demaille  <akim@epita.fr>
16531         * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
16532         (AC, AT, MS): these.
16533         (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
16534         New.
16535         Use them.
16536         * doc/Makefile.am (CLEANFILES): Adjust.
16537         (TEXI2DVI): Make it --batch.
16539 2003-03-31  Derek Price  <derek@ximbiot.com>
16541         * lib/autotest/general.m4: Revert the checkin from 2003-03-27
16542         which removed the main loop.
16543         Thanks to Akim Demaille.
16545 2003-03-29  Akim Demaille  <akim@epita.fr>
16547         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
16548         that starts a GUI.
16549         From Ilya Zakharevich.
16551 2003-03-29  Akim Demaille  <akim@epita.fr>
16553         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
16554         documentation to read is Autoconf's.
16555         Suggested by Paul Eggert.
16557 2003-03-28  Akim Demaille  <akim@epita.fr>
16559         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
16560         reading the section "Present But Cannot Be Compiled" when the
16561         header causes problems.
16563 2003-03-28  Akim Demaille  <akim@epita.fr>
16565         * tests/torture.at (Configuring subdirectories): Require aclocal
16566         1.4, otherwise the test fails, as it does support configure.ac.
16567         This fixes the "test 40 failed" bug reports.
16569 2003-03-28  Akim Demaille  <akim@epita.fr>
16571         * doc/autoconf.texi (C Compiler): `#line' portability.
16572         From Paul Eggert and Nelson H. F. Beebe.
16574 2003-03-27  Derek Price  <derek@ximbiot.com>
16576         * lib/autotest/general.m4: Eliminate main loop and reorganize test
16577         layout in order to allow scripting around test groups.
16579 2003-03-27  Derek Price  <derek@ximbiot.com>
16581         * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
16582         HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
16583         use new diversions in preparation for accepting new arguments and
16584         allowing scripting around tests.
16585         (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
16587 2003-03-26  Derek Price  <derek@ximbiot.com>
16589         * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
16590         obsolete AC_HELP_STRING.
16591         (AC_HELP_STRING): AU_DEFUN to...
16592         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
16593         * tests/m4sh.at (AS_HELP_STRING): New test.
16595         * tests/acgeneral.at: Regenerated.
16597 2003-03-26  Derek Price  <derek@ximbiot.com>
16599         * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
16600         sense.  Verbosify the diversion definitions comment.
16602 2003-03-26  Derek Price  <derek@ximbiot.com>
16604         * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
16605         AS_PREPARE.
16607 2003-03-21  Eric Siegerman  <eric_97@pobox.com>
16609         * doc/autoconf.texi (Present But Cannot Be Compiled):
16610         Grammar fixes and minor rewording. (trivial change)
16612 2003-03-06  Paul Eggert  <eggert@twinsun.com>
16614         Work around a problem noted by Nelson H. F. Beebe with coreutils
16615         4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
16616         2002/05/09) rejects '#line 32768 "configure"' because the line
16617         number overflows.
16618         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
16619         #line directives.
16620         * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
16621         * doc/autoconf.texi (Generating Sources): Document this.
16623 2003-03-01  Richard Dawe  <rich@phekda.freeserve.co.uk>
16625         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
16626         file name for the m4 program, when it has an "exe" file extension.
16627         DJGPP's error messages include the error code in brackets -
16628         remove the error code during normalization.
16630 2003-02-28  Akim Demaille  <akim@epita.fr>
16632         * doc/autoconf.texi (Present But Cannot Be Compiled): New.
16634 2003-02-28  Alexandre Duret-Lutz  <adl@gnu.org>
16636         * doc/autoconf.texi (Limitations of Make): Remove the section
16637         about `$<' in inference rules, it was a bogus interpretation of
16638         an old Automake change.  Discuss NetBSD, FreeBSD, OpenBSD, and
16639         Tru64 make in the "target lookup" section.
16640         (Automake): Automake 1.5+ no longer requires special tools to be
16641         present on the developer's host.
16643 2003-02-26  Richard Dawe  <rich@phekda.freeserve.co.uk>
16645         * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
16646         to a shell that can handle redirection or quoting correctly.
16647         Override SHELL with the shell detected by configure.
16648         Use of $^O suggested by Tim van Holder.
16649         * bin/autom4te.in (BEGIN): Likewise.
16650         * bin/autoreconf.in (BEGIN): Likewise.
16651         * bin/autoscan.in (BEGIN): Likewise.
16652         * bin/autoupdate.in (BEGIN): Likewise.
16653         * bin/ifnames.in (BEGIN): Likewise.
16655         * bin/ifnames.in: Add final newline to help and version messages.
16657         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
16658         to cope with DOS-style absolute paths, when constructing
16659         ${ac_make}.
16661         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
16662         When constructing paths with IFS=:, quote the path. If we're
16663         constructing a DOS-style absolute path, we don't want to split it
16664         on the colon.
16666         * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
16667         in description.
16669 2003-02-25  Pavel Roskin  <proski@gnu.org>
16671         * bin/autoheader.in: Add missing newline when printing
16672         suggestion how change AC_DEFINE call.
16674 2003-02-24  Paul Eggert  <eggert@twinsun.com>
16676         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
16677         2002-09-01 patch by replacing "test -n" with "test -z".
16678         This fixes a bug found by Jeff Painter and reported by Tom Epperly in
16679         <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
16681         * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
16682         to fix a mismatch between example and discussion.
16684 2003-02-24  Kevin Ryde  <user42@zip.com.au>
16686         * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
16687         format starting with "-".
16689 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
16691         * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
16692         is not portable inside Makefile.
16694 2003-02-20  Akim Demaille  <akim@epita.fr>
16696         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
16697         compiler says yeah, but preproc says nope, compiler is right.
16698         Conversely, prompt the reader to send a bug report to the
16699         maintainers of the package, not of Autoconf.
16701 2003-02-20  Klee Dienes  <kdienes@apple.com>
16703         * bin/autoreconf.in (autoreconf_current_directory): Properly
16704         handle an empty aclocal.m4.
16706 2003-02-20  Akim Demaille  <akim@epita.fr>
16708         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
16709         $ac_prefix_program.
16710         From Larry Jones.
16712 2002-12-23  Paul Eggert  <eggert@twinsun.com>
16714         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
16715         innocuous variant befor including <limits.h> or <assert.h>.  This
16716         works around a bug reported by Albert Chin: HP-UX 11i
16717         (and earlier versions) have a <limits.h> that declares
16718         gettimeofday and many other functions.
16720 2002-12-03  Paul Eggert  <eggert@twinsun.com>
16722         Version 2.57.
16724         * NEWS, configure.ac: Update version.
16726         * doc/fdl.texi: Upgrade to FDL version 1.2.
16728         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
16729         nontrivially in main's body, so that f's external declaration is
16730         not optimized away in AIX.  This should fix the bug reported by
16731         Martin Frydl in
16732         <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
16734         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
16735         _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
16736         defined, to support freestanding compilers.  This should fix the
16737         bug reported by Momchil Velkov in
16738         <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
16740         * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
16741         arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
16742         obsolete AC_CHECK_TYPE.  The missing empty arg was reported
16743         by Simon Josefsson in
16744         <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
16746         * Makefile.maint (www-gnu): New macro.
16747         (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
16748         the location has moved.
16750 2002-12-02  Martin Frydl  <martin@systinet.com>
16752         * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
16753         \(.*\) match is too long and there is something more to be checked.
16754         <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
16756 2002-11-15  Akim Demaille  <akim@epita.fr>
16758         Version 2.56.
16760         * config/install-sh: chmod +x.
16761         From Paul Eggert.
16762         * config/move-if-change: Indenting changes.
16763         * Makefile.am (AUTOMAKE_OPTIONS): Move to...
16764         * configure.ac (AM_INIT_AUTOMAKE): here.
16765         Require 1.7.1.
16767 2002-11-14  Akim Demaille  <akim@epita.fr>
16769         Version 2.55.
16771         * config/config.guess, config/config.sub, config/install-sh:
16772         Update from masters.
16774 2002-11-14  Akim Demaille  <akim@epita.fr>
16776         * Makefile.maint: Sync with Bison, i.e.:
16777         (po-check): Scan .l and .y files instead of the
16778         .c and the .h files that they generate.  This fixes the bug
16779         reported by Tim Van Holder in:
16780         <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
16781         Look for N_ as well as for _.  Try to avoid matching #define for
16782         N_ and _.
16783         From Paul Eggert.
16785 2002-11-14  Akim Demaille  <akim@epita.fr>
16787         * doc/autoconf.texi (C Compiler): Compiling several files at once.
16788         From Paul Eggert and Albert Chin-A-Young.
16790 2002-11-14  Akim Demaille  <akim@epita.fr>
16792         * doc/autoconf.texi (C Compiler): Solitary backslashes.
16793         From Paul Eggert and Albert Chin-A-Young.
16795 2002-11-14  Kevin Ryde  <user42@zip.com.au>
16797         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
16798         than assigning in main, to avoid HP cc +O3 optimizing it away.
16800 2002-11-12  Peter Eisentraut  <peter_e@gmx.net>
16802         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
16803         option.  Process --recheck after parsing all options.  Pass -q
16804         option to configure on --recheck.
16805         (AC_OUTPUT): Pass -q from configure to config.status.
16806         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
16807         arguments to record.
16808         * doc/autoconf.texi (config.status Invocation): Document
16809         config.status -q option.
16811 2002-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
16813         * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
16814         Makefile.in if Makefile.am exists.
16815         (output): Strip `.am' from Makefiles.  Don't
16816         output AC_CONFIG_FILES if no Makefiles were found.
16818 2002-11-07  Akim Demaille  <akim@epita.fr>
16820         * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
16821         (local_updates): New.
16822         * Makefile.maint: Update, from CVS Bison.
16823         (local_updates): New.
16825 2002-11-06  Akim Demaille  <akim@epita.fr>
16827         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
16828         declaration in extern "C" too.
16829         Reported by Roberto Bagnara.
16831 2002-11-06  Akim Demaille  <akim@epita.fr>
16833         * tests/torture.at (Configuring subdirectories): Don't use grep
16834         -w.
16835         * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
16836         Reported by Ezra Peisach.
16838 2002-11-05  Akim Demaille  <akim@epita.fr>
16840         * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
16841         Remove.
16842         We _have_ to stop using the old compatibility scheme that tried to
16843         avoid useless backslashes because Libtool 1.4.3 contains a
16844         AC_DEFINE([error_t], [int],
16845         [Define to a type to use for \`error_t' if it is not
16846         otherwise available.])
16847         We _have_ to quote the single quote and backslashes with \.  The
16848         old compatibility scheme saw that ` was backslashed, and therefore
16849         did not quote the single quote.  Hence before this patch, Autoconf
16850         was not compatible with Libtool.
16852 2002-11-04  Paul Eggert  <eggert@twinsun.com>
16854         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
16855         too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
16856         LC_NAME, LC_PAPER, LC_TELEPHONE.
16857         * doc/autoconf.texi (Special Shell Variables): Mention those vars.
16859 2002-11-04  Akim Demaille  <akim@epita.fr>
16861         Version 2.54c.
16863         * Makefile.maint (update, cvs-update, po-update, do-po-update):
16864         New.
16865         * config/texinfo.tex: Update.
16867 2002-11-03  Akim Demaille  <akim@epita.fr>
16869         * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
16870         from...
16871         (&autoreconf): here.
16872         ($help, $make, &parse_args, &autoreconf_current_directory):
16873         Support -m/--make.
16874         * doc/autoconf.texi (autoreconf Invocation): Adjust.
16876 2002-10-31  Bruno Haible  <bruno@clisp.org>
16878         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
16879         Change name of cache variable to ac_cv_func_malloc_0_nonnull.
16880         (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
16881         (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
16882         to ac_cv_func_realloc_0_nonnull.
16883         (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
16885 2002-10-31  Akim Demaille  <akim@epita.fr>
16887         The test suite was no longer checking for trailing envvars and files.
16889         * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
16890         (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
16892 2002-10-31  Akim Demaille  <akim@epita.fr>
16894         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
16895         `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
16896         Make variable, not a shell variable.
16897         Suggested by Bruno Haible.
16899 2002-10-31  Akim Demaille  <akim@epita.fr>
16901         * bin/autom4te.in (load_configuration): Reject #args out of any
16902         language.
16904 2002-10-31  Akim Demaille  <akim@epita.fr>
16906         * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
16907         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
16908         (_AC_RUN_IFELSE): Use it.
16909         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
16910         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
16911         * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
16912         inline it.
16914 2002-10-30  Akim Demaille  <akim@epita.fr>
16916         * bin/autom4te.in (&parse_args, $help): Support --no-cache.
16917         * doc/autoconf.texi (autom4te Invocation): Adjust.
16918         Suggested by Tim van Holder.
16920 2002-10-29  Paul Eggert  <eggert@twinsun.com>
16922         * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
16923         AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
16924         Problem reported by Bruno Haible.
16926 2002-10-29  Akim Demaille  <akim@epita.fr>
16928         * doc/autoconf.texi (Header Templates): Put also in words what the
16929         pictures says to assist free style readers.
16930         (Customizing autom4te): s/--cache=/--cache /.
16932 2002-10-29  Akim Demaille  <akim@epita.fr>
16934         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
16935         sys/wait.h.
16936         sparc_address_test returns void.
16937         Use it with an argument, as prototyped.
16938         From Bruno Haible.
16940 2002-10-29  Akim Demaille  <akim@epita.fr>
16942         * doc/autoconf.texi (Subdirectories): Cygnus dirs have
16943         configure.in, not configure.ac.
16944         Reported by Bruno Haible.
16946 2002-10-29  Akim Demaille  <akim@epita.fr>
16948         * tests/torture.at (Deep Package): New test.
16949         (Configuring subdirectories): Don't use a testSubDir as Autotest
16950         now does it itself.
16952 2002-10-29  Akim Demaille  <akim@epita.fr>
16954         * bin/autoreconf.in (&parse_args, $help): Support --warnings.
16955         * doc/autoconf.texi (Invoking autom4te): Rename as...
16956         (autom4te Invocation): this, for consistency with the other nodes.
16958 2002-10-29  Akim Demaille  <akim@epita.fr>
16960         * lib/autom4te.in (Autoconf): s/automate/autom4te/.
16961         Reported by Ralf Corsepius.
16963 2002-10-29  Akim Demaille  <akim@epita.fr>
16965         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
16966         characters is a back as an `obsolete' warning now.
16967         Reported by Ralf Corsepius.
16969 2002-10-28  Akim Demaille  <akim@epita.fr>
16971         * configure.ac: Bump to 2.54c.
16973 2002-10-28  Akim Demaille  <akim@epita.fr>
16975         Version 2.54b.
16977         * tests/foreign.at (Libtool): Adjust to broken libtoolize.
16979 2002-10-28  Akim Demaille  <akim@epita.fr>
16981         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
16982         m4 executable names, and different GNU M4 version.
16983         Reported by Ezra Peisach and Paul Jarc.
16985 2002-10-27  Akim Demaille  <akim@epita.fr>
16987         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
16988         AC_RUN_IFELSE.
16990 2002-10-27  Akim Demaille  <akim@epita.fr>
16992         * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
16993         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
16994         Die when a simple Fortran program cannot be compiled.
16995         * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
16996         Issue a warning if no function is given.
16998 2002-10-27  Akim Demaille  <akim@epita.fr>
17000         * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
17001         Move the documentation of AC_TRY_RUN to...
17002         (Obsolete Macros): here.
17003         Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
17004         (autoconf Invocation): Remove the duplicates with `invoking
17005         autom4te'.
17006         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
17007         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
17009 2002-10-27  Akim Demaille  <akim@epita.fr>
17011         * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
17012         and AC_LANG_FUNC_LINK_TRY.
17013         (Examining Libraries): Rename as...
17014         (Running the Linker): this.
17015         Document AC_LINK_IFELSE.
17016         Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
17017         (Obsolete Macros): here.
17018         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
17019         AC_TRY_LINK_FUNC nor AC_TRY_LINK.
17020         * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
17021         * lib/autoconf/headers.m4 (AC_USG): Likewise.
17023 2002-10-27  Akim Demaille  <akim@epita.fr>
17025         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
17027         More `check config.log' messages.
17029         * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
17030         * doc/autoconf.texi (Printing Messages): Document it.
17031         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
17032         appropriate.
17033         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
17034         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
17035         (_AC_COMPILER_OBJEXT): Likewise.
17036         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
17037         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
17038         Likewise.
17039         * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
17040         Likewise.
17042         Deprecate macros with unusual interfaces.
17044         * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
17045         (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
17047         Document the new ones, and proper style.
17049         * doc/autoconf.texi (Generating Sources): New.
17050         Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
17051         (Examining Declarations): Rename as...
17052         (Running the Preprocessor): this.
17053         Document AC_PREPROC_IFELSE.
17054         (Examining Syntax): Rename as...
17055         (Running the Compiler): this.
17056         (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
17057         (Obsolete Macros): Move the definition of AC_TRY_CPP and
17058         AC_TRY_COMPILE here.
17060 2002-10-27  Akim Demaille  <akim@epita.fr>
17062         Move sections around.
17064         * doc/autoconf.texi (Customizing autom4te): Remove a lost
17065         sentence.
17066         Reported by Burno Haible.
17067         (Language Choice): Now the first section of...
17068         (Writing Tests): this section.
17069         Make the introduction less C-centric.
17070         (Guidelines, Test Functions): Move to...
17071         (Writing Test Programs): this new section.
17072         (Test Programs): Merge into...
17073         (Run Time): this.
17075 2002-10-27  Akim Demaille  <akim@epita.fr>
17077         * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
17078         autom4te.in that resulted in the need for two `make' runs.
17080 2002-10-27  Akim Demaille  <akim@epita.fr>
17082         * configure.ac: Bump to 2.54b.
17084 2002-10-25  Akim Demaille  <akim@epita.fr>
17086         Version 2.54a.
17088         * Makefile.maint: Update from the Coreutils.
17089         (AMTAR): Remove, obsolete.
17090         (automake_repo): Update to redhat.com.
17091         (cvs_file): New.
17092         Adjust to the fact that ansi2knr is now hosted by Automake.
17093         * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
17094         * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
17095         Update from masters.
17096         * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
17097         autoscan.pre is not to be installed, and autoscan.list is not to
17098         be shipped.
17099         (CLEANFILES): Add autoscan.list.
17100         (autoscan.list): Disable the cache.
17101         * bin/Makefile.am: Include freeze.mk.
17103 2002-10-25  Akim Demaille  <akim@epita.fr>
17105         * bin/autom4te.in (&load_configuration): Take the file as
17106         argument.
17107         (&parse_args): Handle -C, --cache.
17108         ($help): Adjust.
17109         (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
17110         * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
17111         * doc/autoconf.texi (Invoking autom4te): Document --cache.
17112         Now a subsection of...
17113         (Using autom4te): This new section.
17114         (Customizing autom4te): New.
17115         (autom4te.cache): Adjust.
17117 2002-10-25  Akim Demaille  <akim@epita.fr>
17119         * doc/autoconf.texi (Generic Headers): More information on how to
17120         use AC_CHECK_HEADERS.
17122 2002-10-25  Akim Demaille  <akim@epita.fr>
17124         * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
17125         Space changes.
17127 2002-10-25  Akim Demaille  <akim@epita.fr>
17129         * bin/autoscan.in (output): Output AC_PREREQ.
17130         (%needed_macros): Add AC_PREREQ so that configure.ac without one
17131         be reported.
17133 2002-10-23  Akim Demaille  <akim@epita.fr>
17135         * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
17136         document _Bool.
17138 2002-10-23  Akim Demaille  <akim@epita.fr>
17140         * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
17141         Reported by Peter Eisentraut.
17143 2002-10-23  Akim Demaille  <akim@epita.fr>
17145         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
17146         type _Bool.
17147         Fix a typo.
17148         * doc/autoconf.texi (Particular Headers): Adjust according to Paul
17149         Eggert's recommandations.
17151 2002-10-22  Akim Demaille  <akim@epita.fr>
17153         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
17154         Bison, by Paul Eggert.
17155         * doc/autoconf.texi (Particular Headers): Document it.
17157 2002-10-22  Aaron M. Ucko  <amu@alum.mit.edu>
17159         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
17160         `$ac_configure_args'.
17162 2002-10-22  Akim Demaille  <akim@epita.fr>
17164         * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
17165         (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
17166         From Art Haas.
17168 2002-10-22  Akim Demaille  <akim@epita.fr>
17170         Restore the 2002-10-11  Akim Demaille  <akim@epita.fr> patch:
17172         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
17173         (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
17174         (_AC_CHECK_HEADER_NEW): Rename as...
17175         (AC_CHECK_HEADER): this.
17177 2002-10-22  Akim Demaille  <akim@epita.fr>
17179         * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
17180         words about HP-UX cmp: it was actually a user-written cmp.
17182 2002-10-22  Akim Demaille  <akim@epita.fr>
17184         * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
17185         are a few warnings.
17186         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
17187         Quote for Perl '' strings, not "".
17188         * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
17189         strings.
17191 2002-10-22  Akim Demaille  <akim@epita.fr>
17193         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
17194         characters is a syntax warning now.
17195         (_AS_QUOTE): Accept $2 as list of characters to quote.
17196         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
17197         Quote for Perl, not sh.
17198         * bin/autoheader.in: When $debug, report the file which is
17199         `do'ne.
17200         * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
17201         `@', to tickle Perl's lists.
17202         Reported by Carlos Velasco.
17204 2002-10-18  Akim Demaille  <akim@epita.fr>
17206         * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
17207         missing included files _are_ errors.
17208         Thanks to Alexandre Duret-Lutz.
17209         * tests/tools.at (autom4te cache): Adjust.
17210         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
17211         (AT_CHECK_M4SUGAR): Use it.
17212         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
17213         Adjust.
17214         * tests/tools.at (autom4te): Now it does exit 1.
17216 2002-10-17  Akim Demaille  <akim@epita.fr>
17218         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
17219         Fixes the `AC_ARG_VAR' test failures.
17220         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
17221         * lib/freeze.mk (check-forbidden-patterns): New.
17222         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
17223         * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
17224         * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
17225         /dev/null.
17226         Reported months ago by H. Merijn Brand.
17228 2002-10-17  Akim Demaille  <akim@epita.fr>
17230         * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
17232 2002-10-16  Paul Eggert  <eggert@twinsun.com>
17234         * Makefile.maint (wget_files): Remove ansi2knr.c.
17235         (ansi2knr.c-url_prefix): Remove.
17237 2002-10-16  Akim Demaille  <akim@epita.fr>
17239         Because of caching, some files that no longer exist and are no
17240         longer required can still cause errors.
17241         Reported by Alexandre Duret-Lutz.
17243         * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
17244         to frozen files in @ARGV, as @ARGV must remain being a list of
17245         files.  Rather, at M4 call sites, use this...
17246         (&files_to_options): New function.
17247         (&freeze): Use &error.
17248         (&up_to_date): If a file that was included according to the cache
17249         is no longer there, then the output is out dated.
17250         (&main): Don't even check whether a file is up to date is anyway
17251         --force is given.
17252         * tests/tools.at (autom4te cache): New.
17254 2002-10-16  Akim Demaille  <akim@epita.fr>
17256         * bin/autoconf.as: Kill dead options.
17257         * bin/autoupdate.in (&parse_args): Kill old options.
17258         * bin/autoreconf.in (&parse_args): Remove dead options.
17259         Factor some code.
17260         (&autoreconf): Report the directories we enter *and leave*, so
17261         that error messages can be easily located, and use GNU Make
17262         format, so that Emacs' compile mode understands us.
17263         * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
17264         if some file was changed instead of `print'.
17265         * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
17266         (&parse_args): Remove the dead options.
17267         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
17268         autoheader's quiet mode.
17269         (AT_CHECK_AUTOUPDATE): Likewise.
17270         * tests/tools.at (autoupdate): Adjust.
17271         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
17273 2002-10-11  Akim Demaille  <akim@epita.fr>
17275         No longer use CPP to check for the existing of headers: use CC to
17276         check for compilability.
17278         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
17279         (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
17280         (_AC_CHECK_HEADER_NEW): Rename as...
17281         (AC_CHECK_HEADER): this.
17283         * lib/autotest/general.m4 (AT_INIT): Include the failed test
17284         numbers in the Subject suggestion.
17286 2002-10-11  Akim Demaille  <akim@epita.fr>
17288         * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
17289         Suggest using AC_CHECK_DECLS instead.
17291 2002-10-11  Akim Demaille  <akim@epita.fr>
17293         * tests/torture.at (AC_ARG_VAR): Have configure report the value
17294         of `precious'.
17296 2002-10-11  Akim Demaille  <akim@epita.fr>
17298         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
17299         file name to enable parallel executions.
17300         From Sam Varshavchik.
17302 2002-10-08  Akim Demaille  <akim@epita.fr>
17304         * bin/autoreconf.in (&autoreconf): Run autopoint before the first
17305         aclocal invocation, as Gettext macros might not be visible to
17306         aclocal.
17307         Instead of blindly running autopoint, scan configure.ac (not the
17308         traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
17309         Reported by Paul D. Smith.
17311 2002-10-08  Paul Eggert  <eggert@twinsun.com>
17313         Work around problems found when POSIXLY_CORRECT=1 is set.
17314         None of this seems to have anything to do with POSIX, really,
17315         but it's how Perl getopt works.
17316         * bin/autom4te.in (parse_args): Configure GetOpt with
17317         "permute", too.
17318         * doc/autoconf.texi (Invoking autom4te):
17319         --warning -> --warnings.
17320         * lib/autom4te.in: --warning -> --warnings.
17322 2002-09-28  Akim Demaille  <akim@epita.fr>
17324         * doc/autoconf.texi (autom4te.cache): New section.
17326 2002-09-28  Akim Demaille  <akim@epita.fr>
17328         * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
17329         (Automake-preselections): Update.
17330         * bin/autoreconf.in, bin/autoheader.in: Comment changes.
17332 2002-09-28  Akim Demaille  <akim@epita.fr>
17334         * lib/autoscan/autoscan.pre: Move all the remaining rules to...
17335         * lib/autoconf/c.m4, lib/autoconf/functions.m4,
17336         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
17337         * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
17339 2002-09-28  Akim Demaille  <akim@epita.fr>
17341         * tests/torture.at (Configuring subdirectories): Be robust to
17342         users who use config.site to require for a cache: in this case,
17343         the two last configure runs, using two different sets of
17344         arguments, trigger a legitimate error.
17346 2002-09-28  Akim Demaille  <akim@epita.fr>
17348         * tests/m4sh.at (Functions Support, Functions and return Support):
17349         New.
17351 2002-09-28  Akim Demaille  <akim@epita.fr>
17353         * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
17354         autoheader are Perl programs.
17355         (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
17356         (autom4te): Specify that the sources are in the $srcdir.
17357         * doc/autoconf.texi (Installation Directory Variables): Adjust.
17359 2002-09-28  Akim Demaille  <akim@epita.fr>
17361         * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
17362         (tm_zone): Move their rules to...
17363         * lib/autoconf/types.m4: here, using AN_ macros.
17364         * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
17365         (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
17366         (make, mawk, nawk, ranlib, yacc): Similarly, move to...
17367         * lib/autoconf/programs.m4: here.
17368         * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
17369         (ETAGS_FOR_AUTOCONF): New.
17370         Use it.
17372 2002-09-28  Akim Demaille  <akim@epita.fr>
17374         * lib/autoconf/autoscan.m4: New file.
17375         * lib/autoconf/autoconf.m4: Include it.
17376         * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
17377         that were listed in the original autoscan.list.
17378         * lib/autoconf/headers.m4: Similarly with headers.
17379         * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
17380         (.m4.m4f): Don't pass --prepend-include, since that's done by
17381         tests/autom4te itself.
17382         * lib/autoscan/Makefile.am: Include freeze.mk.
17383         (autoscan.list): New target --this file is no longer a source.
17384         (autoscan.pre): New file.
17386 2002-09-28  Akim Demaille  <akim@epita.fr>
17388         * bin/autoscan.in (@kinds): Make them singular.
17389         Adjust all uses.
17390         (&init_tables): When --debug, report the list of rules to ease
17391         tracking changes in autoscan.list.
17392         * lib/autoscan/autoscan.list (function): Strip comments, sort.
17394 2002-09-28  Akim Demaille  <akim@epita.fr>
17396         * lib/autoscan/functions, lib/autoscan/headers,
17397         * lib/autoscan/identifiers, lib/autoscan/makevars,
17398         * lib/autoscan/programs: Merge into...
17399         * lib/autoscan/autoscan.list: this.
17400         * bin/autoscan.in (&init_tables): Adjust.
17402 2002-09-28  Akim Demaille  <akim@epita.fr>
17404         * lib/autoscan/functions, lib/autoscan/headers,
17405         * lib/autoscan/identifiers, lib/autoscan/makevars,
17406         * lib/autoscan/programs: Make the `kind' explicit, i.e., each
17407         `functions' line is now prefixed with `function:'.
17408         * bin/autoscan.in (&init_tables): Adjust.
17410 2002-09-28  Akim Demaille  <akim@epita.fr>
17412         From now on, autoscan files must always map a macro name to a
17413         word: there is no `default' macro for autoscan.
17415         * bin/autoscan.in (&init_tables): Reject entries with no macro at
17416         all.
17417         * lib/autoscan/functions, lib/autoscan/headers: Make the macro
17418         explicit.
17420 2002-09-28  Akim Demaille  <akim@epita.fr>
17422         * bin/autoscan.in (%c_keywords): Remove.
17423         (&used): Keep only track of the words we might be interested in.
17424         (&output_kind): It is no longer needed to look for non active
17425         checks.
17427 2002-09-27  Akim Demaille  <akim@epita.fr>
17429         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
17430         jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
17431         * lib/autoscan/functions: Adjust.
17432         * doc/autoconf.texi (Particular Functions): Adjust.
17434 2002-09-27  Akim Demaille  <akim@epita.fr>
17436         * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
17437         from /tmp.
17438         Thanks to Bill Moseley and Paul Eggert.
17439         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
17440         the tmpdir must be created.
17441         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
17442         dir be in the build tree, instead of $TMPDIR.
17444 2002-09-27  Akim Demaille  <akim@epita.fr>
17446         * bin/autoscan.in: Improve the comments.
17447         (&parse_args): Drop obsolete undocumented options.
17448         (&output_kind): Output warnings.
17449         * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
17450         (getwd): Trigger a warning.
17452 2002-09-26  Akim Demaille  <akim@epita.fr>
17454         * bin/autoreconf.in: Clarify that -s is meaningless without -i.
17455         Reported by Ralf Corsepius.
17456         * doc/autoconf.texi (autoreconf Invocation): Likewise.
17458 2002-09-26  Akim Demaille  <akim@epita.fr>
17460         Single suffix rules and seperated dependencies are not portable.
17462         * doc/autoconf.texi (Installation Directory Variables): Update.
17463         (Limitations of Make): Some about `Single Suffix Rules and
17464         Separated Dependencies'.
17465         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
17466         (ifnames, autoscan, autom4te): Un-factor into several rules.
17468 2002-09-25  Paul Eggert  <eggert@twinsun.com>
17470         * BUGS (Interoperability bugs): New section.  Mention libtool
17471         1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
17473 2002-09-24  Paul Eggert  <eggert@twinsun.com>
17475         Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
17476         make handles suffix-rules differently from GNU make.
17478         * bin/Makefile.am (SUFFIXES, .in): Remove.
17479         (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
17480         Move the body of the old .in rule here.
17482 2002-09-16  Akim Demaille  <akim@epita.fr>
17484         i960 compilers create `b.out' files by default.
17485         Reported by Ralf Corsepius.
17487         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
17488         (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
17490 2002-09-13  Paul Eggert  <eggert@twinsun.com>
17492         * doc/autoconf.texi (Particular Headers): Remove obsolete
17493         reference to `struct timezone' in the description of
17494         AC_HEADER_TIME.
17496 2002-09-13  Akim Demaille  <akim@epita.fr>
17498         Version 2.54.
17500         * config/config.sub, config/config.guess: Update.
17501         * Makefile.maint: Update from bits of the Coreutils 4.5.1.
17502         * Makefile.am: Adjust.
17504 2002-09-13  Akim Demaille  <akim@epita.fr>
17506         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
17507         reading config.log when the compiler is rejected.
17508         Suggested by Guido Draheim.
17510 2002-09-13  Akim Demaille  <akim@epita.fr>
17512         * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
17513         (chdir_init) might hang when stat'ing mounted directories.
17514         Reported by Vance Shipley.
17516 2002-09-12  Akim Demaille  <akim@epita.fr>
17518         * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
17519         the lists.
17521 2002-09-12  Akim Demaille  <akim@epita.fr>
17523         * doc/autoconf.texi (Defining Symbols): Present two different
17524         prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
17525         difference between 1 argument calls, and 2-3 argument calls.
17527 2002-09-12  Peter Eisentraut  <peter_e@gmx.net>
17529         * doc/autoconf.texi: Review grammar and punctuation.
17531 2002-09-11  Paul Eggert  <eggert@twinsun.com>
17533         * doc/autoconf.texi: Fix minor formatting, spelling, and
17534         grammatical typos.
17535         (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
17536         AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
17537         is obsolescent.
17539 2002-09-11  Akim Demaille  <akim@epita.fr>
17541         * doc/autoconf.texi (Questions): Rename as...
17542         (FAQ): this.
17543         (Defining Directories): New.
17545 2002-09-09  Akim Demaille  <akim@epita.fr>
17547         * doc/autoconf.texi (Making testsuite Scripts): Update.
17548         Suggested by Nishio Futoshi.
17550 2002-09-09  Koji Arai  <JCA02266@nifty.ne.jp>
17552         * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
17553         plain `@' is wanted.
17555 2002-09-09  Akim Demaille  <akim@epita.fr>
17557         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
17558         `duplicates', since the algorithm was too naive and could keep
17559         `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
17560         keep `--prefix foo --prefix bar' as `--prefix foo bar'.
17561         Reported by Ralf Corsepius.
17562         * tests/torture.at (Configuring subdirectories): Exercise these
17563         cases.
17565 2002-09-09  Akim Demaille  <akim@epita.fr>
17567         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
17568         looking for a replacement file.
17569         * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
17570         directory is relative.
17571         * doc/autoconf.texi (Generic Functions): Clarify the replacement
17572         directory definition.
17573         Reported by Andreas Schwab and Jim Meyering.
17575 2002-09-06  Akim Demaille  <akim@epita.fr>
17577         * doc/autoconf.texi (Setting Output Variables): Clarify what
17578         precious variables are.
17579         Suggested by Pontus Skoeld.
17581 2002-09-05  Akim Demaille  <akim@epita.fr>
17583         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
17584         (ifnames, autoscan, autom4te): Since we don't only depend on
17585         configure.ac variables (such as VERSION etc.), but also on prefix
17586         and so forth, depend on Makefile, not configure.ac.
17587         Reported by Alexandre Duret-Lutz.
17588         * doc/autoconf.texi (Installation Directory Variables): Adjust.
17590 2002-09-05  Kevin Ryde  <user42@zip.com.au>
17592         * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
17593         doesn't seem to be confined to ia64, just say "some versions".
17595 2002-09-04  Akim Demaille  <akim@epita.fr>
17597         * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
17598         Automake 1.6c.
17599         * Makefile.am (maintainer-clean-local): Remove.
17600         (MAINTAINERCLEANFILES): Remove COPYING.
17602 2002-09-03  Paul Eggert  <eggert@twinsun.com>
17604         * doc/autoconf.texi (Configuration Commands): Remove obsolete
17605         example for AC_CONFIG_COMMANDS_PRE.  Problem reported by Marcus
17606         Brinkmann.
17608 2002-09-03  Akim Demaille  <akim@epita.fr>
17610         * configure.ac: Bump to 2.53d.
17611         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
17612         as of today, on Automake's team suggestion.
17614 2002-09-03  Akim Demaille  <akim@epita.fr>
17616         Version 2.53c.
17618 2002-09-02  Akim Demaille  <akim@epita.fr>
17620         * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
17621         SITE_MACRO_DIR.
17622         * configure.ac: Disable SITE_MACRO_DIR.
17624 2002-09-02  Jim Meyering  <meyering@lucent.com>
17626         * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
17627         i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
17628         Also, tweak grammar: s/make sure to/be sure to/.
17630 2002-09-02  Paul Eggert  <eggert@twinsun.com>
17632         * doc/autoconf.texi (Limitations of Builtins): Explain why logical
17633         directory names are generally preferable to physical names.
17635 2002-09-02  Akim Demaille  <akim@epita.fr>
17637         * lib/Autom4te/General.pm (&update_file): s/die/error/.
17638         Reported by Raja R. Harinath.
17639         * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
17640         * bin/autoupdate.in: Use error instead of die.
17642 2002-09-01  Paul Eggert  <eggert@twinsun.com>
17644         * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
17645         ordinary shell concatenation rather than echo+tr+sed command that
17646         runs afoul of a long-line-related sed bug in Solaris 8.
17648         * bin/autoheader.in (parse_args): --warning -> --warnings.
17650         * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
17651         stdout, as traditional "ls" does.
17652         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
17653         _AC_COMPILER_EXEEXT_O): Likewise.
17654         * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
17656         * bin/autoconf.as: Add --prepend-include option.  This patch was
17657         applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
17658         but bin/autoconf.in is generated automatically from bin/autoconf.as.
17660         * bin/autoconf.in, configure: Regenerate.
17662         * doc/autoconf.texi (Special Shell Variables): Mention
17663         ENV, MAIL, MAILPATH, PS1, PS2, PS4.  Index PWD.
17665         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
17666         MAILPATH and set PS1, PS2, PS4 to default values, to work
17667         around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
17668         For LC_ALL etc, first try to set to "C" as POSIX requires and as
17669         the Autoconf documentation specifies; fall back to "unset" only if
17670         this fails.  Use a shell for-loop for this rather than an m4 loop,
17671         to shorten the output script.
17673 2002-08-30  Paul Eggert  <eggert@twinsun.com>
17675         * doc/autoconf.texi (Special Shell Variables): Mention POSIX
17676         1003.1-2001's requirements for CDPATH.  Give a simpler workaround
17677         for the CDPATH problem.  Document PWD.
17678         (Limitations of Builtins): Document the problem that "cd $foo" and
17679         "ls $foo" may refer to different directories in shells conforming
17680         to POSIX 1003.1-2001.  Use PS1 rather than CDPATH for "unset"
17681         example, since the old example is now out of date.
17683         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
17684         FOO" and "ls FOO" talk about different directories; this catches
17685         problems when POSIX 1003.1-2001 "cd" fails due to symlink
17686         spaghetti.
17688         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
17689         of rolling our own unset.
17690         (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
17691         in practice we needn't worry about CDPATH if unset doesn't work.
17693         * Makefile.in, aclocal.m4, bin/Makefile.in,
17694         config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
17695         lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
17696         lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
17697         lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
17698         tests/Makefile.in: Regenerate with Automake 1.6.3.
17700         * config/config.guess, config/config.sub, config/mkinstalldirs:
17701         Update.
17703         * configure: Regenerate with self.
17705 2002-08-30  Kevin Ryde  <user42@zip.com.au>
17707         * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
17708         default output.
17710 2002-08-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17712         * bin/autom4te.in (Request::load): Correctly test for "do" read
17713         failure.
17715 2002-08-29  Akim Demaille  <akim@epita.fr>
17717         * lib/Autom4te/General.pm (&xqx): New.
17718         (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
17719         hand, which is not portable.
17720         (&error): New.
17721         * bin/autom4te.in: Use them.
17722         Use &error instead of die.
17723         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
17724         Adjust.
17726 2002-08-17  Paul Eggert  <eggert@twinsun.com>
17728         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
17729         default list of compilers to try, since it was long ago superseded
17730         by the ksh fc builtin.  Suggested by Steven G. Johnson.
17732 2002-07-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
17734         * doc/autoconf.texi (Invoking autom4te): End the option table,
17735         fixing a bug introduced by the previous patch.
17736         (Limitations of Make): Add a 'target lookup' subentry in the
17737         'VPATH' entry.  Rewrite all `make' occurences as `@command{make}'.
17739 2002-07-29  Mark D. Roth  <roth@feep.net>
17741         * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
17742         options and use $AUTOM4TE_PATH.
17743         * doc/autoconf.texi: Remove documentation of autom4te
17744         --include-envvar and --site-macro-subdir options and document
17745         use of $AUTOM4TE_PATH.
17746         * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
17747         arguments from each language section.
17749 2002-07-29  Paul Eggert  <eggert@twinsun.com>
17751         * doc/install.texi: Include copyright symbol in copyright notice.
17753         * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
17754         Replace with:
17755         (AM_MAKEINFOFLAGS): New macro.
17756         * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
17757         * Makefile.am (INSTALL): Use the new macros.
17758         Use -o rather than --output, since "missing" does not grok --output.
17760 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
17762         * doc/autoconf.texi (Limitations of Make): Escaped newlines in
17763         comments do not always work. Never trust the exit status of
17764         `make -k'.
17766 2002-07-24  Kevin Ryde  <user42@zip.com.au>
17768         * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
17769         Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
17771 2002-07-23  Paul Eggert  <eggert@twinsun.com>
17773         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
17774         Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
17775         apparently treats PATH="nonexistent" as if it contained ".".
17776         Bug reported by Stefan `Sec' Zehl.
17778 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
17780         * doc/autoconf.texi (Limitations of Make): Mention the special
17781         handling of the obj/ directory by BSD make.
17783 2002-07-20  Kevin Ryde  <user42@zip.com.au>
17785         * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
17786         backslashes.
17788 2002-07-19  Akim Demaille  <akim@epita.fr>
17790         * doc/autoconf.texi (Function Portability): `exit'.
17791         (Programming in M4sh): Ethymology of M4sh.
17793 2002-07-19  Akim Demaille  <akim@epita.fr>
17795         * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
17797 2002-07-18  Akim Demaille  <akim@epita.fr>
17799         Version 2.53b.
17801 2002-07-18  Akim Demaille  <akim@epita.fr>
17803         * config/config.guess, config/config.sub: Update.
17805 2002-07-18  Akim Demaille  <akim@epita.fr>
17807         Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
17808         Automake's parts.
17810         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
17811         * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
17812         * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
17814 2002-07-18  Akim Demaille  <akim@epita.fr>,
17815             Alexandre Duret-Lutz  <duret_g@epita.fr>
17817         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
17818         _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
17820 2002-07-17  Russ Allbery  <rra@stanford.edu>
17822         * doc/autoconf.texi (Initializing configure): Clarify the
17823         description of the tarname default.
17825 2002-07-17  Andreas Buening  <andreas.buening@nexgo.de>
17827         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
17828         ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
17829         latter was not run.
17831 2002-07-17  Akim Demaille  <akim@epita.fr>
17833         * lib/Autom4te/General.pm (find_file): Browse the directories in
17834         the order they are given.
17836 2002-07-17  Akim Demaille  <akim@epita.fr>
17838         * tests/wrapsh.as, tests/wrappl.as: Merge into...
17839         * tests/wrapper.as: this.
17840         * tests/Makefile.am, configure.ac: Adjust.
17842 2002-07-17  Mark D. Roth  <roth@feep.net>
17844         * configure.ac: Add --enable-site-macro-dir option.
17845         * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
17846         * bin/autom4te.in: Add --prepend-include, --include-envvar, and
17847         --site-macro-subdir options.
17848         * bin/autoconf.in: Add --prepend-include option.
17849         * bin/autoheader.in: Add --prepend-include option.
17850         * bin/autoreconf.in: Add --prepend-include option.
17851         * bin/autoscan.in: Add --prepend-include option.
17852         * bin/autoupdate.in: Add --prepend-include option.
17853         * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
17854         macro directory, remove note that include path directories are
17855         used in reverse order, and document --prepend-include option.
17856         * lib/autom4te.in: Use --prepend-include instead of --include.
17857         * tests/wrapsh.in: Use --prepend-include instead of --include.
17859 2002-07-17  Akim Demaille  <akim@epita.fr>
17861         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
17862         tarnames.
17863         * doc/autoconf.texi (Initializing configure): Adjust.
17865 2002-07-17  Akim Demaille  <akim@epita.fr>
17867         * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
17868         (_AC_FUNC_MALLOC): New.
17869         (AC_FUNC_MALLOC): Use the latter.
17870         Define HAVE_MALLOC to 0 if broken.
17871         * doc/autoconf.texi (Particular Functions): Adjust.
17873 2002-07-16  Akim Demaille  <akim@epita.fr>
17875         * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
17876         * doc/autoconf.texi (C Compiler): Adjust.
17878 2002-07-09  Akim Demaille  <akim@epita.fr>
17880         * doc/autoconf.texi: Properly set the ``header'' part.
17882 2002-07-09  Akim Demaille  <akim@epita.fr>
17884         * doc/autoconf.texi (Systemology): Some about Darwin.
17886 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
17888         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
17889         Don't use AC_REQUIRE in AU_DEFUN.
17891 2002-07-09  Art Haas  <ahaas@neosoft.com>
17893         * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
17895 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
17897         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
17898         bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
17899         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
17900         so that Emacs setups GNU style for perl-mode and cperl-mode.
17902 2002-06-27  Paul Eggert  <eggert@twinsun.com>
17904         * config/install-sh: Quote $src.  Prefer || to test's -o option,
17905         as per "Limitations of Builtins".
17906         * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
17907         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
17909         * tests/mktests.sh: Use grep instead of fgrep, as per
17910         "Limitations of Builtins".
17912 2002-06-15  Paul Eggert  <eggert@twinsun.com>
17914         * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
17915         autom4te_perllibdir): Set to top build dir or src dir as appropriate,
17916         so that we consistently test the just-built programs.
17917         * tests/wrappl.as: Likewise.
17919 2002-06-12  Paul Eggert  <eggert@twinsun.com>
17921         * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
17922         name, so that symlinks to 'autoconf' work properly.  Bug reported
17923         by Bruno Haible.
17924         * bin/autoheader.in (AUTOM4TE): Likewise.
17925         * bin/autoreconf.in (autoconf, autoheader): Likewise.
17926         * bin/autoscan.in (autom4te): Likewise.
17927         * bin/autoupdate.in (autom4te): Likewise.
17929         * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
17930         btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
17931         on Solaris 2.5.1.
17933 2002-06-11  Andreas Schwab  <schwab@suse.de>
17935         * doc/autoconf.texi: Add more dir entries.
17937 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
17939         * bin/autom4te.in ($cache): Don't define using `$me', the name
17940         of the cache should not depend on the name under which autom4te
17941         was installed.
17943 2002-06-07  Akim Demaille  <akim@epita.fr>
17945         * tests/tools.at (autoconf: forbidden tokens, basic)
17946         (autoconf: forbidden tokens, exceptions): Adjust to the change of
17947         words in autom4te.in.
17949 2002-06-07  Peter Eisentraut  <peter_e@gmx.net>
17951         * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
17952         _AC_LANG_PROGRAM_C_F77_HOOKS.
17954 2002-06-07  Akim Demaille  <akim@epita.fr>
17956         * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
17957         rename as...
17958         (AC_REPLACE_FNMATCH): this.
17959         * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
17960         AC_FUNC_FNMATCH_GNU.
17962 2002-06-07  Akim Demaille  <akim@epita.fr>
17964         * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
17965         Rosetta Stone for Unix.
17967 2002-06-07  Akim Demaille  <akim@epita.fr>
17969         * bin/autom4te.in (warn_forbidden): When rejecting a token,
17970         suggest m4_pattern_allow.
17971         Suggested by Adam J. Richter.
17973 2002-06-07  Akim Demaille  <akim@epita.fr>
17975         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
17976         ac_config_libobj_dir.
17977         (AC_CONFIG_LIBOBJ_DIR): New.
17978         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
17979         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
17980         Use ac_config_libobj_dir to find the replacement files.
17981         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
17982         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
17983         (AC_REPLACE_FNMATCH_GNU): these.
17984         (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
17985         * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
17986         * tests/mktests.sh (ac_exclude_list): Don't check
17987         AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
17989 2002-06-06  Paul Eggert  <eggert@twinsun.com>
17991         * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
17992         if ln doesn't work.
17993         * NEWS: Likewise.
17994         * doc/autoconf.texi (Configuration Links): Likewise.
17995         (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
17997 2002-06-05  Paul Eggert  <eggert@twinsun.com>
17999         * config/config.guess, config/config.sub, config/texinfo.tex:
18000         Update from masters.
18002 2002-05-29  Paul Eggert  <eggert@twinsun.com>
18004         * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
18005         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
18006         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
18007         Likewise.
18008         * lib/autoconf/Makefile.am (check-local): Likewise.
18009         * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
18010         * lib/autoconf/types.m4 (commentary only): Likewise.
18011         * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
18012         * lib/autotest/Makefile.am (check-local): Likewise.
18013         * lib/m4sugar/Makefile.am (check-local): Likewise.
18014         * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
18015         * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
18017         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
18018         * doc/autoconf.texi (Particular Programs): Document them.
18019         (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
18020         * NEWS: Likewise.
18022 2002-05-27  Paul Eggert  <eggert@twinsun.com>
18024         * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
18025         * NEWS, doc/autoconf.texi (Particular Types): Document it.
18026         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
18027         instead of AC_MBSTATE_T, which never existed.
18029 2002-05-23  Akim Demaille  <akim@epita.fr>
18031         * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
18032         version of Autoconf that is discussed.
18034 2002-05-22  Paul Eggert  <eggert@twinsun.com>
18036         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
18037         from the default list of compilers to try.  Suggested by
18038         Kate Hedstrom.
18039         * NEWS: Document the above.
18040         * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
18042 2002-05-17  Paul Eggert  <eggert@twinsun.com>
18044         * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
18045         the member is itself an aggregate.  Bug reported by Sergey Poznyakoff.
18046         This improves on an earlier suggestion by H. Peter Anvin.
18048 2002-05-16  Paul Eggert  <eggert@twinsun.com>
18050         AC_FUNC_FNMATCH now tests only for POSIX compatibility.
18051         AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
18052         Both macros now accept an optional source-dir arg.
18053         New macro AC_GNU_SOURCE to define _GNU_SOURCE.
18055         * NEWS: Document this.
18056         * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
18058         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
18059         (AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
18060         not for GNU extensions; this undoes part of the 2000-11-03 change,
18061         reverting to 2.13-compatible behavior.
18062         Add new optional argument DIR.
18063         (AC_FUNC_FNMATCH_GNU): New macro.
18065         * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
18067 2002-05-08  Paul Eggert  <eggert@twinsun.com>
18069         * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
18070         Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
18071         and it causes a 'test' syntax error if it fails.
18072         Bug reported by Stephen Gildea.
18074         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
18075         If prototypes are supported, use them to check this at compile-time,
18076         instead of trying to check it at run-time.  If we must do a run-time
18077         check, assume that setvbuf is standard when cross-compiling, as
18078         nonstandard setvbuf occurs only on ancient and unlikely hosts.
18079         Bug reported by Paul D. Smith.
18081         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
18082         argument specifying location of getloadavg.c.  This removes a
18083         FIXME.  This idea was taken from Jim Meyering's implementation in
18084         textutils.
18085         * doc/autoconf.texi (Particular Functions): Document this.
18086         Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
18087         that's what the code does; this fixes a bug reported by
18088         Paul D. Smith.
18090 2002-05-03  Akim Demaille  <akim@epita.fr>
18092         * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
18093         autopoint instead of gettextize.
18094         ($uses_alocal): Rename as...
18095         ($uses_aclocal): this.
18096         * doc/autoconf.texi (autoreconf Invocation): Adjust.
18097         Suggested by Bruno Haible.
18099 2002-05-03  Akim Demaille  <akim@epita.fr>
18101         * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
18103 2002-04-29  Paul Eggert  <eggert@twinsun.com>
18105         * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
18106         files to be 1 second older; just set them to be the same time.
18107         Also, sleep 1 second after the first aclocal, to work around
18108         problems with sub-second time stamps on the input files.
18110 2002-04-29  Thien-Thi Nguyen  <ttn@gnu.org>
18112         * doc/autoconf.texi: Mention "set -e -x" lossage
18113         under node "Limitations of Builtins".
18115 2002-04-29  Akim Demaille  <akim@epita.fr>
18117         * doc/install.texi: Better wording for setting variables when
18118         running configure.
18119         From Christian Cornelssen.
18121 2002-04-29  Akim Demaille  <akim@epita.fr>
18123         * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
18124         of lack of $LINENO support, then the test will compare the $LINENO
18125         in testsuite vs. the lineno in the test file.  This is wrong, of
18126         course.
18127         Be sure to protect it.
18128         Reported by Patrick Welche.
18130 2002-04-25  Akim Demaille  <akim@epita.fr>
18132         * doc/autoconf.texi (Obsolete Macros): Typo.
18133         Reported by Vladimir Volovich.
18135 2002-04-25  Akim Demaille  <akim@epita.fr>
18137         * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
18138         than some of the input files, hence, on the second run of aclocal,
18139         if some of its input are younger, make them older.
18140         Suggested by Paul Eggert.
18142 2002-04-25  Akim Demaille  <akim@epita.fr>
18144         * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
18145         Thanks to Paul Eggert.
18147 2002-04-25  Akim Demaille  <akim@epita.fr>
18149         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
18150         and ac_subst_vars be sh variables containing the list of
18151         AC_SUBST_FILES'ed and AC_SUBST'ed identifiers.  Output them in the
18152         DEFAULT diversion.
18153         (_AC_INIT_PREPARE): Use them to log them.
18154         (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
18155         (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
18156         _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
18157         _AC_SUBST_FILES and _AC_SUBST_VARS.
18158         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
18160 2002-04-24  Akim Demaille  <akim@epita.fr>
18162         * bin/autoreconf.in (autoreconf): Run automake after autoconf and
18163         autoheader, so that automake does not complain about a missing
18164         config.h.in that was to be created.
18166 2002-04-23  Akim Demaille  <akim@epita.fr>
18168         * bin/autoheader.in (parse_args): --warning takes an argument.
18169         Fixes PR/220.
18171 2002-04-22  Peter Eisentraut  <peter_e@gmx.net>
18173         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
18174         and bb.out when cleaning up.
18176 2002-04-22  Akim Demaille  <akim@epita.fr>
18178         Version 2.53a.
18180 2002-04-22  Akim Demaille  <akim@epita.fr>
18182         * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
18184 2002-04-22  Akim Demaille  <akim@epita.fr>
18186         * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
18187         comma.
18188         Reported by Gregory Giannoni.
18190 2002-04-22  Akim Demaille  <akim@epita.fr>
18192         * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
18193         Fixes false failures on Darwin.
18195 2002-04-21  Paul Eggert  <eggert@twinsun.com>
18197         * TODO, bin/autoupdate.in, doc/autoconf.texi,
18198         lib/autoconf/general.m4, lib/autoconf/libs.m4,
18199         lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
18200         tests/tools.at: Minor spelling and grammar fixes.
18202 2002-04-20  Paul Eggert  <eggert@twinsun.com>
18204         * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
18205         ZSH_VERSION fixes.  Bug reported by Raja R Harinath.
18206         * lib/autotest/general.m4 (AT_INIT): Likewise.
18207         * tests/atgeneral.m4 (AT_INIT): Likewise.
18209 2002-04-19  Paul Eggert  <eggert@twinsun.com>
18211         * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
18212         doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
18213         lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
18214         lib/autoconf/functions.m4, lib/autoconf/general.m4,
18215         lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
18216         lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
18217         tests/atspecific.m4, tests/semantics.at, tests/torture.at:
18218         Minor spelling and grammar fixes.
18220         * doc/autoconf.texi: Follow the outline suggested in the GNU
18221         Sample Texts sections of the Texinfo 4.2 manual.  Most
18222         importantly, this makes sure that the copyright notices appear in
18223         all output formats.  You probably need Texinfo 4.2 to generate
18224         the manual now.
18226         Fix some bugs when using "$@" when there might be zero positional
18227         arguments in cases where this matters.
18229         * bin/autoconf.as: Rewrite so that the problem does not come up.
18230         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
18231         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
18232         * lib/autotest/general.m4 (AT_INIT): Likewise.
18234         * bin/autoheader.in: Use 'case' statement to work around problem.
18235         * bin/auto4mte.in: Likewise.
18236         * bin/autoreconf.in: Likewise.
18237         * bin/autoscan.in: Likewise.
18238         * bin/autoupdate.in: Likewise.
18239         * bin/ifnames.in: Likewise.
18241         * doc/autoconf.texi (Shell Substitutions): Document the problem.
18243         * lib/autotest/general.m4 (AT_INIT):
18244         Use Zsh alias to work around problem.
18245         * tests/atgeneral.m4 (AT_INIT): Likewise.
18247         * tests/c.at: We can't have zero arguments, so remove workaround
18248         that is not portable to Zsh.
18250 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
18252         * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
18253         from aclocal.m4 too.
18255 2002-04-12  Akim Demaille  <akim@epita.fr>
18257         * tests/wrappl.as: New, M4sh precursor of wrappl.in.
18259 2002-04-10  Akim Demaille  <akim@epita.fr>
18261         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
18262         workaround for ${1+"$@"}.
18263         * doc/autoconf.texi (Shell Substitutions): Explain it.
18264         From Oliver Kiddle and Peter Stephenson.
18266         Have M4sh perform minimal shell sanitizing.
18268         * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
18269         part into...
18270         (_AS_PREPARE): this new macro.
18271         (AS_PREPARE): New.
18272         (AS_INIT): Invoke AS_SHELL_SANITIZE.
18273         * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
18275         Adjust Autoconf and Autotest.
18277         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
18278         AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
18279         * lib/autotest/general.m4 (AT_INIT): Likewise.
18280         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
18281         Invoke _AS_PREPARE (not AS_PREPARE) in addition to
18282         AS_SHELL_SANITIZE.
18284         Use this M4sh to generate Autoconf's shell scripts.
18286         * tests/wrapsh.as: New, precursor of wrapsh.in.
18287         * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
18288         on Autotest and M4sh.
18289         ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
18290         (wrapsh.in): New target.
18291         * bin/autoconf.as: New, precursor of autoconf.in.
18292         (autoconf.in): New target.
18294 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
18296         * doc/autoconf.texi (Limitations of Make): Mention the issue
18297         with indented comments in rules.
18299 2002-04-09  Andreas Schwab  <schwab@suse.de>
18301         * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
18302         ac_top_builddir when setting ac_abs_top_builddir.
18304 2002-04-06  Kevin Ryde  <user42@zip.com.au>
18306         * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
18307         (Portable Shell): Cross reference to Systemology.
18309 2002-04-05  Akim Demaille  <akim@epita.fr>
18311         * bin/autoreconf.in (autoreconf): Be sure to accumulate the
18312         directories when descending in a SUBDIRS.
18313         Reported by Ezra Peisach.
18315 2002-04-04  Andreas Schwab  <schwab@suse.de>
18317         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
18318         contains no literal separators.
18320 2002-04-03  Akim Demaille  <akim@epita.fr>
18322         * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
18323         (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
18324         Use dnl, not the KILL diversion.
18325         Extracted from...
18326         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
18327         (AC_CONFIG_LINKS): here.
18328         Adjust.
18329         Don't use the KILL diversion, as it kills spurious output, which
18330         results in failures being hidden.
18331         Use m4_defn where appropriate.
18332         (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
18333         after the second argument.
18334         Use m4_defn.
18335         * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
18336         syntax, as it is provided by M4sugar.
18337         * tests/torture.at (Multiple AC_CONFIG_FILES): New.
18339 2002-04-03  Andreas Schwab  <schwab@suse.de>
18341         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
18342         expanded if $# <= 2.
18344         * bin/autoreconf.in (autoreconf): Run automake after rerunning
18345         aclocal.
18347 2002-04-03  Akim Demaille  <akim@epita.fr>
18349         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
18350         (_AC_COMPILER_EXEEXT_REJECT): New.
18351         Also recognize *.bb and *.bbg as compilation byproducts.
18352         (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
18353         (_AC_COMPILER_OBJEXT): Use them.
18354         Fixes Debian #138666.
18356 2002-04-02  Peter Eisentraut  <peter_e@gmx.net>
18358         Integrate AC_PROG_CC_STDC into AC_PROG_CC.
18360         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
18361         AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
18362         (AC_PROG_CC): Call _AC_PROG_CC_STDC.
18363         (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
18364         (AC_C_CONST): Same.
18365         (AC_C_INLINE): Same.
18366         (AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
18367         * doc/autoconf.texi, NEWS: Document.
18368         * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
18369         AC_C_CROSS.
18371 2002-04-02  Akim Demaille  <akim@epita.fr>
18373         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
18374         _AS_MKDIR_P_PREPARE.
18376 2002-03-28  Kevin Ryde  <user42@zip.com.au>
18378         * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
18379         to avoid versions of HP C which don't allow that.
18381 2002-03-27  Paul Eggert  <eggert@twinsun.com>
18383         * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
18384         (AS_SHELL_SANITIZE): Invoke it.
18385         (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
18387 2002-03-26  Akim Demaille  <akim@epita.fr>
18389         * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
18391 2002-03-26  Akim Demaille  <akim@epita.fr>
18393         * doc/autoconf.texi (Introduction): The GNATS base moved.
18395 2002-03-25  Paul Eggert  <eggert@twinsun.com>
18397         * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
18398         as POSIX requires, as it doesn't work with Zsh.
18399         * doc/autoconf.texi (Assignments): Document the problem.
18401 2002-03-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
18403         * doc/autoconf.texi (Limitations of Make): Mention more issue
18404         about VPATH, overriding of macros in sub-makes, and handling of
18405         SHELL.
18407 2002-03-21  Paul Eggert  <eggert@twinsun.com>
18409         * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
18410         problem with here-document buffer boundaries.
18412         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
18413         when reinvoking the shell, to work around problems with installers
18414         who put strange things like "cd" commands in their environments.
18416 2002-03-19  Akim Demaille  <akim@epita.fr>
18418         * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
18419         From Aaron Ucko.
18421 2002-03-19  Akim Demaille  <akim@epita.fr>
18423         * bin/autoscan.in (scan_file): Specify the location in `&used'
18424         invocations.
18425         From Nicolas Joly.
18427 2002-03-19  Akim Demaille  <akim@epita.fr>
18429         * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
18430         From Nishio Futoshi.
18432 2002-03-19  Akim Demaille  <akim@epita.fr>
18434         * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
18436 2002-03-18  Paul Eggert  <eggert@twinsun.com>
18438         * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
18439         (Limitations of Usual Tools): Add mkdir section.
18441         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
18442         (AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
18443         back on AS_DIRNAME to compute prefixes otherwise; this is
18444         roughly what mkinstalldirs does.  That way, we need not have
18445         our own filename disassembler.  The old disassembler did not
18446         work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
18448         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
18449         Create at_test_all by a series of assignments,
18450         not by a single assignment of a long string.  The latter causes ksh
18451         version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
18452         presumably because of a buffer overrun.
18454 2002-03-14  Paul Eggert  <eggert@twinsun.com>
18456         * lib/autotest/general.m4 (at_times_skip):
18457         Renamed from at_times.  Now a boolean.
18458         ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
18459         says 'times: not found'.
18461 2002-03-14  Akim Demaille  <akim@epita.fr>
18463         * bin/autoreconf.in (&study_gettextize): New.
18464         (&autoreconf): Handle newest gettextize.
18465         Rerun aclocal if needed.
18466         Suggested by Andreas Schwab.
18468 2002-03-13  Akim Demaille  <akim@epita.fr>
18470         * doc/autoconf.texi (Special Shell Variables): More about IFS.
18472 2002-03-13  Akim Demaille  <akim@epita.fr>
18474         * doc/autoconf.texi (Header Portability): New.
18475         Add information about stdint.h and inttypes.h from Paul Eggert.
18477 2002-03-13  Akim Demaille  <akim@epita.fr>
18479         * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
18480         -p'.
18481         From Bob Proulx.
18483 2002-03-12  Akim Demaille  <akim@epita.fr>
18485         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
18486         m4_require.
18488 2002-03-11  Andreas Schwab  <schwab@suse.de>
18490         * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
18491         does not do it if --with-lispdir is given.
18493 2002-03-08  Akim Demaille  <akim@epita.fr>
18495         Version 2.53.
18497 2002-03-08  Akim Demaille  <akim@epita.fr>
18499         * doc/autoconf.texi (Subdirectories): Clarify that the
18500         subdirectory should exist.
18502 2002-03-08  Akim Demaille  <akim@epita.fr>
18504         * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
18506 2002-03-08  Akim Demaille  <akim@epita.fr>
18508         * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
18509         aliases the actual variables, and modifications of the former
18510         affect the latter.
18512 2002-03-08  Akim Demaille  <akim@epita.fr>
18514         * bin/autom4te.in (&handle_m4): Protect us from corrupted file
18515         because of C-c: have m4 output in tmp files, then mv them.
18517 2002-03-08  Akim Demaille  <akim@epita.fr>
18519         * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
18520         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
18521         * bin/ifnames.in: Copyright update.
18523 2002-03-08  Akim Demaille  <akim@epita.fr>
18525         * doc/autoconf.texi (Invoking autom4te): New.
18527 2002-03-05  Akim Demaille  <akim@epita.fr>
18529         * doc/autoconf.texi (Specifying Names): Clarification suggested by
18530         Kevin Ryde.
18532 2002-03-05  Akim Demaille  <akim@epita.fr>
18534         Version 2.52i.
18536 2002-03-04  Akim Demaille  <akim@epita.fr>
18538         * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
18539         * lib/autoconf/general.m4 (AC_INIT): More informative error
18540         message for LIBOBJ.
18542 2002-03-04  Akim Demaille  <akim@epita.fr>
18544         * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
18545         parallel builds.
18547 2002-03-04  Akim Demaille  <akim@epita.fr>
18549         * doc/autoconf.texi (Transforming Names): Equality between target
18550         and host is irrelevant.
18551         (Specifying Names, Canonicalizing): Remove all references to the
18552         backward compatibility hooks.  Rather, collect them all into...
18553         (Hosts and Cross-Compilation): this new section.
18554         * doc/install.texi (System Type): Ditto.
18555         * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
18556         that `--host' implies cross-compilation.
18558 2002-03-04  Akim Demaille  <akim@epita.fr>
18560         * doc/autoconf.texi (Evaluation Macros): New.
18561         * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
18562         useless.
18563         (_m4_foreach): Define the variant with immediate evaluation so
18564         that it contains exactly the items, not an expression which
18565         evaluation is the current item.
18566         (m4_re_string, m4_re_word): Don't over quote them.
18568 2002-03-04  Akim Demaille  <akim@epita.fr>
18570         Instead of having stacking `shift's evaluated at the end, let
18571         `foreach' loops immediately evaluate them.
18573         * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
18574         $*.  This is the n-th time I change my mind, but hopefully this is
18575         the last...
18576         (m4_lquote): New.
18577         (m4_text_wrap): Use m4_foreach, which is finally correct _and_
18578         efficient.
18579         (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
18580         it was only a hack for m4_text_wrap.
18581         (m4_car2): Remove, replaced by...
18582         (m4_cdr): New.
18583         (_m4_foreach): Adjust.
18584         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
18585         m4_bpatsubst for clarification.
18587 2002-03-04  Akim Demaille  <akim@epita.fr>
18589         * doc/autoconf.texi (Changequote is Evil): New.
18591 2002-03-03  Kevin Ryde  <user42@zip.com.au>
18593         * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
18594         on old systems like SunOS.
18596 2002-03-01  Peter Eisentraut  <peter_e@gmx.net>
18598         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
18599         lib/autoconf/functions.m4, lib/autoconf/general.m4,
18600         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
18601         lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
18602         of messages.
18604 2002-02-28  Akim Demaille  <akim@epita.fr>
18606         * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
18607         message to be sent.
18609 2002-02-28  Kevin Ryde  <user42@zip.com.au>
18611         * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
18613 2002-02-25  Akim Demaille  <akim@epita.fr>
18615         * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
18616         From Akinori Musha.
18618 2002-02-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
18620         * lib/Autom4te/XFile.pm (getline, getlines): New functions,
18621         translate \r\n to \n.
18623 2002-02-07  Akim Demaille  <akim@epita.fr>
18625         Version 2.52h.
18627 2002-02-07  Akim Demaille  <akim@epita.fr>
18629         Fix Autoconf PR/209.
18630         Also reported by Frank Denis.
18632         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
18634 2002-02-07  Akim Demaille  <akim@epita.fr>
18636         Fix Autoconf PR/207:
18637         AC_PREFIX_PROGRAM fails with dashed program names
18639         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
18640         variable when looking for the prefix program.
18641         Now it also works for shell variables.
18643 2002-02-07  Akim Demaille  <akim@epita.fr>
18645         * doc/autoconf.texi (Limitations of Builtins): More about
18646         case/esac.
18648 2002-02-06  Akim Demaille  <akim@epita.fr>
18650         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
18651         case/esac, some shells don't support it.
18652         Reported by Zack Weinberg.
18653         * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
18655 2002-02-06  Akim Demaille  <akim@epita.fr>
18657         * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
18658         sure not to introduce newlines in at_groups.
18659         * lib/autotest/Makefile.am (autotest.m4f): Typo.
18661 2002-02-06  Akim Demaille  <akim@epita.fr>
18663         * tests/torture.at (Configuring subdirectories): Skip if aclocal
18664         is not available.
18666 2002-02-05  Paul Eggert  <eggert@twinsun.com>
18668         * doc/autoconf.texi (Specific Compiler Characteristics):
18669         Describe HP-UX cc bug workaround more accurately.
18670         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
18671         not unsigned long.
18672         * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
18673         cross-compilers, too.  This undoes some of the most recent change
18674         to this file.
18676 2002-02-05  Akim Demaille  <akim@epita.fr>
18678         * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
18679         to make sure they are up to date when `check' is run.
18681 2002-02-05  Akim Demaille  <akim@epita.fr>
18683         * doc/autoconf.texi (Making testsuite Scripts): Document
18684         package.m4.
18686 2002-02-05  Akim Demaille  <akim@epita.fr>
18688         * lib/freeze.mk: New.
18690 2002-02-05  Akim Demaille  <akim@epita.fr>
18692         Implement `autom4te --freeze'.
18694         * bin/autom4te.in (&freeze): New.
18695         * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
18696         * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
18698 2002-02-05  Akim Demaille  <akim@epita.fr>
18700         * bin/autom4te.in (&parse_args): Implement `frozen files are
18701         optional are the sum of the previous files on the command line'.
18702         Also, pass `--reload-state=' on them, so...
18703         (handle_m4): don't.
18704         * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
18705         (M4sh): Rely on M4sugar.
18706         (Autotest, M4sh, M4sugar): Use frozen files.
18708 2002-01-31  Akim Demaille  <akim@epita.fr>
18710         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
18711         * doc/autoconf.texi (Initializing configure): Adjust.
18713 2002-01-30  Akim Demaille  <akim@epita.fr>
18715         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
18716         alphanumeric to `-' instead of `_'.
18718 2002-01-30  Akim Demaille  <akim@epita.fr>
18720         * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
18721         for plain code, the other for cross-compilation code.  The latter
18722         is now run with GCC only.
18723         * doc/autoconf.texi (Compilers and Preprocessors): New.
18725 2002-01-30  Akim Demaille  <akim@epita.fr>
18727         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
18728         values.
18729         * doc/autoconf.texi (Initializing configure): Explain how to
18730         change AC_INIT default values.
18732 2002-01-29  Akim Demaille  <akim@epita.fr>
18734         * tests/torture.at (Configuring subdirectories): Use configure.in,
18735         so that aclocal 1.4 works.
18736         Reported by Alexandre Duret-Lutz and Larry Schmitt.
18738 2002-01-28  Akim Demaille  <akim@epita.fr>
18740         * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
18741         needs an argument.
18743 2002-01-28  Akim Demaille  <akim@epita.fr>
18745         * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
18746         AUTOTEST_PATH *after* it was set.
18747         Don't put `.' in the PATH: the user should be precise and `./' if
18748         needed.  In addition, given that the test suite does some `cd', if
18749         `.' is in the path, the `tested programs' sections will report
18750         programs found in the test suite's directory, while during the
18751         tests (performed in their own directory), these programs are no
18752         longer visible.  In other words, the results is confusing and
18753         useless.
18754         * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
18756 2002-01-24  Akim Demaille  <akim@epita.fr>
18758         Version 2.52g.
18760 2002-01-24  Akim Demaille  <akim@epita.fr>
18762         * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
18763         * doc/autoconf.texi: Finally add Akim as an author.
18765 2002-01-24  Akim Demaille  <akim@epita.fr>
18767         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
18768         (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
18769         Bourne. Use /bin/sh.
18770         From Andreas Buening.
18772 2002-01-24  Akim Demaille  <akim@epita.fr>
18774         * config/config.guess, config/config.sub, config/texinfo.tex:
18775         Update from masters.
18777 2002-01-24  Akim Demaille  <akim@epita.fr>
18779         * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
18780         * config/auxdir.m4, config/cond.m4, config/depend.m4,
18781         * config/init.m4, config/install-sh.m4, config/lispdir.m4,
18782         * config/missing.m4, config/sanity.m4, config/select.m4,
18783         * config/strip.m4: Remove, to ease sync'ing with any version of
18784         Automake.
18786 2002-01-24  Akim Demaille  <akim@epita.fr>
18788         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
18789         (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
18790         Reported by Geir Ove Myhr.
18792 2002-01-21  Akim Demaille  <akim@epita.fr>
18794         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
18796 2002-01-21  Akim Demaille  <akim@epita.fr>
18798         * lib/Autom4te/General.pm (getopt): Use a more GNUish error
18799         message on invalid options.
18800         * bin/autom4te.in (parse_args): Don't use
18801         Autoconf::General::getopt with non valid options.
18803 2002-01-17  Jim Meyering  <meyering@lucent.com>
18805         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
18806         $ac_cv_exeext so we don't use an old, invalid, cached value.
18808 2002-01-11  Akim Demaille  <akim@epita.fr>
18810         * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
18811         Meyering.
18812         * doc/autoconf.texi (Function Portability): Document the strnlen
18813         limitation.
18814         (Particular Functions): Document AC_FUNC_STRNLEN.
18815         * lib/autoscan/functions: Adjust.
18817 2002-01-06  Akim Demaille  <akim@epita.fr>
18819         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
18820         package.m4, since is really depends upon configure.ac, not
18821         configure.
18822         * doc/autoconf.texi (testsuite Scripts): Adjust.
18823         * tests/Makefile.am (package.m4): New.
18824         EXTRA_DIST it since its a source.
18826 2002-01-06  Akim Demaille  <akim@epita.fr>
18828         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
18829         of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
18830         and PACKAGE_BUGREPORT from here...
18831         (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
18832         arguments.
18833         (_AC_INIT_PREPARE): AC_DEFINE these symbols.
18834         * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
18835         (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
18836         * tests/tools.at (autoheader): Adjust.
18837         * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
18839 2002-01-06  Akim Demaille  <akim@epita.fr>
18841         * bin/autoscan.in (scan_file): Use `&used'.
18843 2002-01-03  Akim Demaille  <akim@epita.fr>
18845         * doc/autoconf.texi (Output): Improved wording regarding use of
18846         AC_OUTPUT.
18847         From Olly Betts.
18849 2001-12-18  Kevin Ryde  <user42@zip.com.au>
18851         * doc/autoconf.texi (Function Portability): Add notes on sscanf
18852         sometimes needing writable input.
18854 2001-12-17  Jim Meyering  <meyering@lucent.com>
18856         * doc/autoconf.texi (New Macros): Tweak wording.
18858 2001-12-14  Akim Demaille  <akim@epita.fr>
18860         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
18861         trailing files, don't apply `-rf' to files which might not be
18862         created by configure (core, core.*, and *.core), but just `rm -f'.
18863         Suggested by Jonathan Kamens.
18865 2001-12-14  Aaron M. Ucko  <amu@alum.mit.edu>
18867         * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
18869 2001-12-14  Akim Demaille  <akim@epita.fr>
18871         * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
18873 2001-12-13  Peter Eisentraut  <peter_e@gmx.net>
18875         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
18876         abs_builddir, top_buildpath to abs_top_builddir, srcpath to
18877         abs_srcdir, top_srcpath to abs_top_srcdir.
18878         (_AC_OUTPUT_FILES): Adjust.
18879         * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
18880         * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
18881         * tests/wrappl.in, tests/wrapsh.in: Adjust.
18883 2001-12-12  Steven G. Johnson  <stevenj@alum.mit.edu>
18885         * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
18886         C/Fortran linking on HP/UX, by extracting the Fortran library
18887         search path from the LPATH line in the $F77 -v output.
18889 2001-12-12  Kevin Ryde  <user42@zip.com.au>
18891         * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
18892         forbidden file descriptors table.
18894 2001-11-26  Akim Demaille  <akim@epita.fr>
18896         * bin/autoscan.in (%c_keywords): Build it at top level.
18897         Map to 1 in order to simplify its uses.
18899 2001-11-26  Akim Demaille  <akim@epita.fr>
18901         * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
18902         Remove $filepath, useless.
18903         (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
18904         variables, they are really part of the tokens.
18905         Split the input line on spaces and then look for tokens.
18906         Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
18907         because of `lex$U.$(OBJEXT)'.
18908         (&scan_files): Use "@list" instead of join.
18909         * doc/Makefile.am (CLEANFILES): Add *.fns.
18911 2001-11-26  Akim Demaille  <akim@epita.fr>
18913         * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
18914         Remove, replaced by...
18915         * tests/wrappl.in: Be common for all the Perl executables.
18916         In particular autoscan and autoheader want -I.
18917         * configure.ac: Adjust.
18918         * lib/autoscan/headers: errno.h is portable.
18920 2001-11-26  Akim Demaille  <akim@epita.fr>
18922         * bin/autoscan.in (used): New.
18923         Use it.
18925 2001-11-26  Akim Demaille  <akim@epita.fr>
18927         * bin/autoscan.in (&scan_c_file): Better parsing of CPP
18928         directives.
18929         (&scan_sh_file): Remove a duplicate pattern.
18930         (&check_configure_ac): Use long options.
18931         * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
18933 2001-11-26  Akim Demaille  <akim@epita.fr>
18935         * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
18936         Before, having a line containing the opening of a multi line
18937         comment made the whole line be ignored.
18939 2001-11-26  Akim Demaille  <akim@epita.fr>
18941         * doc/autoconf.texi (Using an Autotest Test Suite): New.
18942         (testsuite Scripts): Be one of its subsection.
18943         (Autotest Logs): New.
18945 2001-11-26  Akim Demaille  <akim@epita.fr>
18947         Test groups are now run two directories deeper.
18949         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
18950         top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
18951         at_top_builddir.
18952         * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
18953         top_srcdir, builddir and top_builddir.
18954         Use `at_*dir' relatively to the directory containing the
18955         suite, use `*dir' when relatively to the current group dir.
18957 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
18959         * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
18960         lib/autoconf/functions.m4, lib/autoconf/headers.m4,
18961         tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
18962         spelling errors.
18964 2001-11-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
18966         * doc/autoconf.texi (Using System Type): Add an example of `case
18967         $host' usage so people quit using `case $target' everywhere.
18969 2001-11-22  Akim Demaille  <akim@epita.fr>
18971         * doc/autoconf.texi (Installation Directory Variables): Englishoes
18972         spotted by Jim Meyering.
18974 2001-11-16  Paul Eggert  <eggert@twinsun.com>
18976         This patch implements a `long double' suggestion by Oliver Kiddle.
18978         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
18979         static, to catch errors if the value isn't known at compile-time
18980         and the compiler supports dynamic arrays.  Change its name from
18981         `_array_' to `test_array' to avoid potential name clashes.
18982         (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
18983         test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
18984         better than double.  Catch a bug in GCC 2.95.2 x86.
18985         * doc/autoconf.texi (C Compiler): Document the above.
18986         * NEWS: Likewise.
18988 2001-11-13  Akim Demaille  <akim@epita.fr>
18990         * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
18991         hand.
18992         * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
18994 2001-11-13  Akim Demaille  <akim@epita.fr>
18996         * lib/autotest/general.m4 (AT_INIT): After having run the test
18997         group, go back to the initial directory, not to at_suite_dir.
18999 2001-11-13  Akim Demaille  <akim@epita.fr>
19001         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
19002         (AT_DATA_AUTOCONF):  Also protect @&t@ from autom4te.
19003         (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
19004         option.
19005         (AT_CHECK_CONFIGURE): Use absolute paths.
19006         (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
19007         The problem is still the old one: there is no means in M4 (that I
19008         know about) to create a defining macro, because there is no means
19009         to create `$1' etc., therefore, the defining macro ``swallows''
19010         all the arguments meant to the defined macro.
19012 2001-11-13  Akim Demaille  <akim@epita.fr>
19014         * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
19015         (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
19016         configure.ac.
19017         * tests/aclocal.m4: Remove, as it is no longer used.
19019 2001-11-13  Akim Demaille  <akim@epita.fr>
19021         * lib/autotest/general.m4: Change `tests?' into `groups?' in
19022         variable names when referring to a single test group, or to
19023         `suite' when referring to the whole test suite.
19024         `at_last_test' is removed: m4 compute at_format itself.
19025         (at_stdout, at_stder1, at_stderr): New variables.
19026         (AT_CHECK): Use them.
19028 2001-11-13  Akim Demaille  <akim@epita.fr>
19030         * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
19031         in PATH.
19032         Create `testsuite.dir/003/run' instead of `testsuite.003'.
19033         Do it as soon as a test fails, don't wait till the end of the test
19034         suite.
19035         Don't remove $as_me.[0-9]*, since these files no longer exist.
19037 2001-11-13  Akim Demaille  <akim@epita.fr>
19039         * tests/tools.at: Use absolute paths, since we are no longer run
19040         in place.
19042 2001-11-13  Akim Demaille  <akim@epita.fr>
19044         Now that tests are running in their own private dir, there is no
19045         need to list the files to remove at the end of tests groups.
19047         * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
19048         (AT_data_files, at_data_files): Remove.
19049         (AT_CLEANUP, AT_DATA): Simplify.
19050         (AT_INIT): Adjust.
19051         Remove the group dir if !debug && !failed.
19052         * tests/atspecific.m4: Adjust.
19054 2001-11-13  Akim Demaille  <akim@epita.fr>
19056         Start a new layout for Autotest: `testsuite' creates
19057         `testsuite.dir' in which the at-check-line etc. files are to be
19058         found, and `testsuite.dir/003' where the test group 3 is run.
19060         * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
19061         at_check_line_file, at_format, at_test_normalized, at_group_dir
19062         are new variables.
19063         Create the directories.
19064         Use absolute paths for at- files.
19065         (AT_CHECK): Adjust.
19067 2001-11-11  Michael Matz  <matz@kde.org>
19069         * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
19070         (m4_car2): New.
19071         (m4_car): Properly quote arguments.
19073 2001-11-13  Akim Demaille  <akim@epita.fr>
19075         * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
19076         with stricter rules on LIBOBJS.
19078 2001-11-12  Paul Eggert  <eggert@twinsun.com>
19080         * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
19081         * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
19082         __PROTOTYPES too.
19084 2001-11-12  Akim Demaille  <akim@epita.fr>
19086         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
19088 2001-11-12  Akim Demaille  <akim@epita.fr>
19090         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
19091         * lib/autoconf/functions.m4, lib/autoconf/general.m4,
19092         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
19093         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
19094         * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
19095         specify to what the macro should be defined (typically to 1).
19097 2001-11-12  Akim Demaille  <akim@epita.fr>
19099         * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
19100         From Jim Meyering.
19102 2001-11-12  Akim Demaille  <akim@epita.fr>
19104         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
19105         AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
19106         definition used by Automake where LEX is +/- "${missing} lex" and
19107         `missing' itself contains variables.
19109 2001-11-12  Akim Demaille  <akim@epita.fr>
19111         * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
19112         Now that M4sh pushes BODY, the comments were output at the end of
19113         the test suites.
19115 2001-11-08  Akim Demaille  <akim@epita.fr>
19117         * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
19118         that we can trace macros from aclocal.m4.
19119         Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
19120         obsoleted, and redirect to the former anyway.
19121         Reported by Ralf Corsepius.
19123 2001-11-08  Akim Demaille  <akim@epita.fr>
19125         * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
19126         processed only if present.
19127         * tests/torture.at (Configuring subdirectories): Use autoreconf
19128         instead of successive calls to autoconf.
19129         Add a nonexistent subdirectory to exercise the patch above.
19130         Reported by Ralf Corsepius.
19132 2001-11-08  Kevin Ryde  <user42@zip.com.au>
19134         * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
19135         doesn't accept .S files.
19137 2001-11-07  Akim Demaille  <akim@epita.fr>
19139         * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
19140         * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
19141         (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
19142         * bin/autom4te.in (warn_forbidden): New.
19143         (handle_output): Use it.
19144         Read m4_pattern_forbid with messages.
19146 2001-11-05  Akim Demaille  <akim@epita.fr>
19148         * bin/autom4te.in (--normalize): Remove.
19149         * lib/autom4te.in: Adjust.
19151 2001-11-05  Akim Demaille  <akim@epita.fr>
19153         * tests/Makefile.am (testsuite): Rename this target as...
19154         ($(TESTSUITE)): this.
19155         From Nicolas Joly.
19157 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
19159         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
19160         the --prefix option, also remove it's argument.
19162 2001-11-05  Akim Demaille  <akim@epita.fr>
19164         * doc/autoconf.texi (testsuite Invocation): Update.
19165         (Writing testsuite.at): Update.
19167 2001-11-03  Akim Demaille  <akim@epita.fr>
19169         * doc/autoconf.texi: s/@code/@command/ where appropriate.
19171 2001-11-03  Akim Demaille  <akim@epita.fr>
19173         * lib/Autom4te/General.pm: (&catfile, &canonfile)
19174         (&file_name_is_absolute): New, wrappers around routines from
19175         File::Spec.
19176         Use and export them.
19177         (&find_configure_ac): Optionally take a directory where to look at.
19178         * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
19179         the arguments.
19180         Default @ARGV to `.', not find_configure_ac.
19181         (&autoreconf): Argument is a directory.
19182         Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
19183         * doc/autoconf.texi (autoreconf Invocation): Update.
19185 2001-11-03  Akim Demaille  <akim@epita.fr>
19187         * lib/Autom4te/General.pm (@export_vars, @export_subs)
19188         (@export_forward_subs): New.
19189         Add basename, dirname, and fileparse.
19190         (@EXPORT): Adjust.
19191         * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
19192         Don't look for aclocal flags if we already know aclocal is not
19193         used.
19194         Move aclocal.m4t only if it exists.
19195         Reported by Ezra Peisach.
19197 2001-11-03  Akim Demaille  <akim@epita.fr>
19199         * bin/autoreconf.in (&parse_args): Work only on the configure.ac
19200         passed on command line, defaulting to ./configure.ac if present.
19201         (&maybe_autoreconf, File::Find): Remove, unused.
19202         (&autoreconf): If autoconf is not used, don't try to trace.
19204 2001-11-02  Akim Demaille  <akim@epita.fr>
19206         * configure.ac: Bump to 2.52g.
19208 2001-11-02  Akim Demaille  <akim@epita.fr>
19210         Version 2.52f.
19212 2001-11-02  Akim Demaille  <akim@epita.fr>
19214         * config/config.guess, config/config.sub, doc/standards.texi:
19215         * config/lispdir.m4: Update from masters.
19216         * configure.ac: Bump to 2.52f.
19218 2001-11-02  Akim Demaille  <akim@epita.fr>
19220         * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
19221         Don't run aclocal when aclocal.m4 is not from aclocal.
19222         From Ezra Peisach.
19223         Don't run libtoolize and gettextize if --install is not given.
19225 2001-11-01  Paul Eggert  <eggert@twinsun.com>
19227         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
19228         be invoked before _AS_LINENO_PREPARE.
19229         (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
19230         than character ranges.
19232         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
19233         invoking AS_BASENAME.  Set the locale variables to 'C' if
19234         possible, as POSIX requires this to get the traditional
19235         behavior.
19236         * doc/autoconf.texi (Special Shell Variables): Describe the above.
19238 2001-10-31  Paul Eggert  <eggert@twinsun.com>
19240         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
19241         with {}, as that triggers a bug in Bash 2.05.
19243         (_AS_LINENO_PREPARE): Use Sed rather than
19244         Awk.  Fix the sed prepass to work even if there are multiple
19245         instances of $LINENO on the same line.  Do not substitute for
19246         other variables like $LINENOT.  Do not check file dates; such a
19247         check is unreliable on sufficiently fast machines, and removing
19248         the check makes the code simpler and more reliable.  Check for
19249         output and chmod failures.
19251         * doc/autoconf.texi (Special Shell Variables): Document
19252         the above.
19254 2001-10-31  Akim Demaille  <akim@epita.fr>
19256         * tests/Makefile.am (atconfig): Remove this target, Automake
19257         handles it now.
19259 2001-10-31  Akim Demaille  <akim@epita.fr>
19261         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
19262         AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
19263         provided, while it is optional.
19264         * configure.ac: Adjust.
19266 2001-10-26  Paul Eggert  <eggert@twinsun.com>
19268         * NEWS, README, configure.ac, lib/Autom4te/General.pm,
19269           lib/Autom4te/Struct.pm:
19270         Require Perl 5.005_03 instead of just 5.005, as some tests fail
19271         with 5.005_02.
19273         * doc/autoconf.texi (Special Shell Variables): Document some
19274         more LINENO gotchas, particularly with respect to the Awk+Sed hack.
19276         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
19277         (_AS_LINENO_PREPARE): Use it instead of shell eval, since
19278         eval $LINENO is not portable in practice.
19280 2001-10-24  Akim Demaille  <akim@epita.fr>
19282         * lib/Autom4te/General.pm (backname): New.
19284 2001-10-24  Akim Demaille  <akim@epita.fr>
19286         * m4/: Remove, merged into...
19287         * config/: here.
19289 2001-10-23  Tim Van Holder  <tim.van.holder@pandora.be>
19291         * doc/autoconf.texi (Shellology): Mention the problems with bash
19292         2.05's use of ANSI quoting in its `set' builtin.
19294 2001-10-22  Paul Eggert  <eggert@twinsun.com>
19296         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
19297         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
19298         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
19299         POSIX decided to standardize on the int flavor of strerror_r.
19300         Always do char* test, as there's no reason not to.
19301         Assign to a char* var, to catch strerror_r that returns int*.
19303         * doc/autoconf.texi (Particular Functions):
19304         Document the above changes.  Also, document the fact that
19305         AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
19307         * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
19309 2001-10-20  Akim Demaille  <akim@epita.fr>
19311         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
19312         the executable was missing from the log.
19314 2001-10-20  Akim Demaille  <akim@epita.fr>
19316         * lib/Autom4te/General.pm (&update_file): If destination is
19317         unchanged, remove the source.
19318         (&up_to_date_p): Don't be verbose, be debug.
19319         * bin/autoreconf.in: No longer support --m4dir.
19320         (&autoreconf): Display the full path of the configure.ac we are
19321         studying.
19322         Trace it only once.
19323         Be sure to honor --force with gettextize.
19324         Always run aclocal.
19325         * doc/autoconf.texi: Adjust.
19327 2001-10-20  Akim Demaille  <akim@epita.fr>
19329         * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
19330         Remove, dead.
19331         * bin/autoreconf.in (&autoreconf): Do not run gettextize when
19332         `intl' is already present, as it refuses unless --force.
19333         (&parse_args): Use -I, --include instead of the old Autoconf
19334         options.
19335         ($localdir, $autoconf_dir): Remove.
19336         (@include): New.
19337         (&maybe_autoreconf): New, to preserve $_ for File::Find.
19339 2001-10-19  Jens Petersen  <petersen@redhat.com>
19341         * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
19342         * doc/autoconf.texi (Particular Programs): Likewise.
19344 2001-10-19  Akim Demaille  <akim@epita.fr>
19346         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
19347         file in @configure_input@.
19348         Don't mention `automatically' in addition to `generated'.
19349         * tests/torture.at (#define header templates): Adjust.
19351 2001-10-19  Akim Demaille  <akim@epita.fr>
19353         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
19354         comment, explain how to install automatic mode selection.
19355         From Russ Allbery.
19357 2001-10-19  Ezra Peisach  <epeisach@zif.mit.edu>
19359         * bin/autoreconf.in (autoreconf): Display the path to the
19360         configure.ac being studied.
19362 2001-10-18  Paul Eggert  <eggert@twinsun.com>
19364         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
19365         long, to work around a bug in the HP C compiler version HP92453-01
19366         B.11.11.23709.GP.
19368         * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
19369         (AS_BASENAME_EXPR): New macro.
19370         (AS_BASENAME_SED): Do not assume GNU sed semantics.
19371         (AS_BASENAME): Use 'basename' if that works; then try 'expr';
19372         and fall back on 'sed' only if the other two fail.  This makes
19373         AS_BASENAME act more like AS_DIRNAME.
19374         (as_me): Shell-quote the argument of AS_BASENAME, in case $0
19375         contains white space.
19376         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
19377         Use AS_DIRNAME, since I think it's now DOS-friendly.
19378         * tests/m4sh.at (DIRNAME_TEST): New arg $3.
19379         Allow "dirname //FOO" to return either / or //, as POSIX allows
19380         either behavior.
19382 2001-10-10  Akim Demaille  <akim@epita.fr>
19384         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
19385         `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
19386         From Eric Sharkey.
19388 2001-10-10  Akim Demaille  <akim@epita.fr>
19390         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
19391         m4_define, since...
19392         (_AS_ECHO_N): AS_REQUIREs it.
19394 2001-10-10  Akim Demaille  <akim@epita.fr>
19396         * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
19397         (AC_INCLUDES_DEFAULT): Move to...
19398         * lib/autoconf/headers.m4: here.
19399         * lib/autoconf/types.m4: Comment changes.
19400         * doc/autoconf.texi: Specify where the default includes are used
19401         in the macro prototypes.
19403 2001-10-09  Akim Demaille  <akim@epita.fr>
19405         * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
19406         transition code.
19408 2001-10-08  Akim Demaille  <akim@epita.fr>
19410         * bin/autoreconf.in (&autoreconf): Remove debugging code.
19411         (&parse_args): Pass verbosity/debugging options to subtools when
19412         --debug, not when --verbose.
19413         * lib/autom4te.in (Autoreconf-preselections): New.
19414         (Autoconf): Use it.
19416 2001-10-08  Akim Demaille  <akim@epita.fr>
19418         * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
19420 2001-10-08  Akim Demaille  <akim@epita.fr>
19422         * doc/autoconf.texi (autoreconf Invocation): Adjust.
19423         * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
19425 2001-10-08  Akim Demaille  <akim@epita.fr>
19427         * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
19428         (Syntax of the shell scripts): Don't.
19429         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
19430         bother with $force since...
19431         * lib/Autom4te/General.pm: does.
19433 2001-10-08  Akim Demaille  <akim@epita.fr>
19435         * bin/autoreconf.in: Rewrite in Perl.
19436         * configure.ac: Adjust.
19437         * lib/Autom4te/General.pm (&up_to_date_p): New.
19438         * bin/autom4te.in (&up_to_date_p): Use it.
19439         Rename as...
19440         (&up_to_date): this.
19442 2001-10-08  Akim Demaille  <akim@epita.fr>
19444         * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
19445         (m4_list_cmp): Use $0 to reinvoke yourself.
19446         (m4_patsubsts): New.
19447         (m4_strip, m4_version_unletter): Use it.
19448         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
19450 2001-10-08  Akim Demaille  <akim@epita.fr>
19452         * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
19453         * lib/autoconf/libs.m4, lib/autoconf/status.m4,
19454         * lib/autoconf/types.m4, lib/autotest/general.m4,
19455         * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
19456         * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
19457         m4_bregexp, m4_bpatsubst, and m4_bmatch.
19458         * doc/autoconf.texi (Redefined M4 Macros): Adjust.
19460 2001-10-08  Akim Demaille  <akim@epita.fr>
19462         * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
19464 2001-10-08  Akim Demaille  <akim@epita.fr>
19466         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
19467         * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
19468         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
19469         * tests/tools.at, tests/m4sh.at: Use it.
19470         * tests/m4sh.at: Don't rely on Autoconf macros.
19471         (DIRNAME_TEST): Also exercise the expr variant.
19472         * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
19473         preferred M4sugar extension is now `.4s'.
19474         * tests/README: Remove.
19476 2001-10-08  Akim Demaille  <akim@epita.fr>
19478         * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
19479         (m4_provide_if): this.
19480         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
19481         * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
19482         (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
19483         M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
19485 2001-10-08  Akim Demaille  <akim@epita.fr>
19487         Use `add-log-current-defun-function' for ChangeLog creation.
19488         Suggested by Tom Tromey.
19490         * lib/emacs/autotest-mode.el (autotest-mode-map): New.
19491         (autotest-mode): Adjust.
19492         * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
19493         'comment-region onto `C-c ;'.
19494         Comments are `#', not `dnl'.
19495         (autoconf-current-defun): New.
19496         (autoconf-font-lock-keywords): Recognize `m4_defun'.
19498 2001-10-08  Akim Demaille  <akim@epita.fr>
19500         * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
19501         * lib/m4sugar/m4sh.m4: here.
19502         (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
19503         * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
19504         (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
19505         include handle the m4_pattern_*, no longer push the
19506         BODY diversion nor set the /bin/sh line, AS_INIT does it.
19507         * lib/autotest/general.m4 (AT_INIT): Likewise.
19508         * tests/base.at: Adjust the tests to use AS_INIT.
19509         * tests/tools.at (AT_DATA_FORBIDDEN): New.
19510         (autoconf: forbidden tokens): Adjust to work on M4sh instead of
19511         Autoconf.
19513 2001-10-07  Paul Eggert  <eggert@twinsun.com>
19515         * doc/autoconf.texi (config.status Invocation):
19516         CONFIG_SHELL defaults to a shell that supports LINENO if available.
19518         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
19519         shell does not support LINENO, and if CONFIG_SHELL is unset or
19520         empty, and if we can find a shell that does support LINENO,
19521         then set CONFIG_SHELL to that shell and then re-execute
19522         ourselves with CONFIG_SHELL.
19524 2001-10-05  Paul Eggert  <eggert@twinsun.com>
19526         * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
19527         doesn't exist.  Remove *.tmp, as a .tmp file is created during the
19528         build of $(TESTSUITE).
19530 2001-10-05  Akim Demaille  <akim@epita.fr>
19532         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
19533         iff we are a bareword.
19534         Reported by Raja R Harinath.
19536 2001-10-05  Akim Demaille  <akim@epita.fr>
19538         * tests/m4sh.at (LINENO): New.
19539         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
19540         PATH_SEPARATOR before using it.
19541         Fix the absolute path case/esac pattern.
19542         Provide $0 as fallback for as_myself.
19543         Reported by Raja R Harinath.
19545 2001-10-05  Akim Demaille  <akim@epita.fr>
19547         * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
19548         * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
19550 2001-10-05  Akim Demaille  <akim@epita.fr>
19552         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
19553         (AS_SHELL_SANITIZE): here.  Use it.
19554         (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
19555         From Paul Eggert.
19557 2001-10-04  Akim Demaille  <akim@epita.fr>
19559         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
19560         combination of Awk and sed to replace $LINENO.
19562 2001-10-02  Paul Eggert  <eggert@twinsun.com>
19564         * doc/autoconf.texi (Limitations of Builtins): You can't use
19565         "source"; it's not portable.  Remove confusing and
19566         somewhat-incorrect example involving "." and "/".
19568         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
19569         compatibility with POSIX shells.
19571 2001-10-02  Akim Demaille  <akim@epita.fr>
19573         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
19574         instead of exec'ing to preserve $0 and $@.
19576 2001-10-01  Akim Demaille  <akim@epita.fr>
19578         * tests/testsuite (AT_INIT) <at_pass_list>: New.
19579         Don't run twice the same test.
19581 2001-10-01  Akim Demaille  <akim@epita.fr>
19583         * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
19584         No longer output the list of tests.
19585         <--list>: New option.
19586         <--full-help>: Remove.
19587         Complete the short/long options duality.
19588         Various small adjustments.
19590 2001-10-01  Akim Demaille  <akim@epita.fr>
19592         * doc/autoconf.texi: Use @kbd for user input.
19593         Always use `$' as shell prompt.
19595 2001-09-30  Paul Eggert  <eggert@twinsun.com>
19597         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
19598         Don't use nested parenthesization.  This patch was originally
19599         suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
19600         but somehow it didn't get incorporated then.
19601         * doc/autoconf.texi (Limitations of Usual Tools):
19602         Clarify remark about sed and nested parenthesization.
19604         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
19605         Report an error if the size cannot be determined even though
19606         the type exists.
19607         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
19608         Check for `expr' arithmetic overflow, and for compilation failure,
19609         and invoke a new argument $4 if either is discovered.
19610         This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
19611         (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
19613 2001-09-28  Akim Demaille  <akim@epita.fr>
19615         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
19616         * m4/lispdir.m4: New.
19617         * aclocal.m4, configure.ac: Adjust.
19619 2001-09-28  Akim Demaille  <akim@epita.fr>
19621         * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
19622         (AT_TESTED): this.
19623         (AT_INIT): More the wrapped section to where it will be expanded.
19624         Output `AT_tested' only when existing.
19625         Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
19627 2001-09-27  Akim Demaille  <akim@epita.fr>
19629         Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
19630         generates too many bug reports.
19632         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
19633         status when executing the ACTION-IF-FALSE.
19634         * tests/base.at (AC_TRY_*): Rename as...
19635         (AC_TRY_COMMAND): this.
19636         (AC_RUN_IFELSE): New.
19637         * tests/compile.at (Extensions, C keywords)
19638         (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
19639         (Broken/missing compilers, AC_PROG_CPP with warnings)
19640         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
19641         * tests/c.at (Extensions, C keywords)
19642         (Broken/missing compilers, AC_PROG_CPP with warnings)
19643         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
19644         (AC_PROG_CPP requires AC_PROG_CC): here and...
19645         * tests/fortran.at (GNU Fortran 77): there.
19646         * doc/autoconf.texi (autoconf Invocation): Fix the example:
19647         AC_TRY_RUN is about compilation, not shell commands.
19648         (Test Programs): AC_TRY_RUN works as used to be advertised.
19650 2001-09-27  Akim Demaille  <akim@epita.fr>
19652         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
19653         Raja R Harinath:
19654         Be sure to detect when $LINENO always returns the same value.
19655         Look for the original script, basename($0) is certainly not
19656         enough.
19657         Pass the CLI arguments to `$as_me.lineno'.
19659 2001-09-25  Akim Demaille  <akim@epita.fr>
19661         * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
19662         Be sure the close and reopen the LOG fd before and after using tee
19663         to extend the log.
19664         <at_tests_pattern>: Adjust to the new format of at_help_all.
19666 2001-09-23  Akim Demaille  <akim@epita.fr>
19668         * bin/autom4te.in (parse_args): There can be several invocations
19669         of --language now.
19671 2001-09-23  Akim Demaille  <akim@epita.fr>
19673         * doc/autoconf.texi (Top): Wrap in @ifnottex.
19675 2001-09-23  Akim Demaille  <akim@epita.fr>
19677         * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
19678         ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
19679         (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
19680         builddir, buildpath, top_builddir, and top_buildpath.
19681         (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
19682         the current directory.
19683         * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
19684         variables *before* changing the current directory.
19685         Skip nonexistent dirs.
19686         * doc/autoconf.texi (Preset Output Variables): Document these
19687         variables.
19689         * lib/autotest/general.m4: Do not reset AT_victims.
19690         Don't compute at_srcdir nor at_top_srcdir.
19692         * tests/tools.at: Hence use top_srcdir.
19694         * tests/Makefile.am, tests/autoconf, tests/autoheader,
19695         * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
19696         Remove.
19697         * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
19698         * tests/wrapsh.in, tests/autoupdate.in: New.
19699         * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
19700         * configure.ac: Build the position independent wrappers.
19702         * man/Makefile.am: Now that test wrappers are position
19703         independent, use them and drop dark envvar magic.
19705 2001-09-23  Akim Demaille  <akim@epita.fr>
19707         * doc/autoconf.texi (Common Shell Constructs): Rename as...
19708         (Programming in M4sh): this.
19709         Promote to @section.
19711 2001-09-23  Akim Demaille  <akim@epita.fr>
19713         * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
19714         Pass $at_debug_args to the rerun test suite.
19715         * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
19716         * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
19717         From Paul Eggert.
19719 2001-09-23  Akim Demaille  <akim@epita.fr>
19721         * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
19723 2001-09-23  Akim Demaille  <akim@epita.fr>
19725         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
19726         over-escaping.
19728 2001-09-23  Akim Demaille  <akim@epita.fr>
19730         * lib/Autom4te/General.pm (&debug): New.
19731         * bin/autom4te.in ($language): Move to...
19732         (parse_args): here.
19733         Handle --language in languages.
19734         * lib/autom4te.in (Automake-selections, Autoheader-selections)
19735         (Autoscan-selections): New.
19736         (Autoconf): Adjust.
19738 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
19740         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
19741         * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
19742         to match current versions from CVS Automake.
19744 2001-09-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
19746         * doc/autoconf.texi (Special Shell Variables): Add pdksh output
19747         for $LINENO.
19749 2001-09-22  Akim Demaille  <akim@epita.fr>
19751         * lib/autoconf/autotest.m4: Create `package.m4'.
19752         * tests/Makefile.am (package.m4): Remove.
19754 2001-09-22  Akim Demaille  <akim@epita.fr>
19756         Rely on `$LINENO' when possible instead of `__oline__'.
19758         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
19759         `$LINENO' support replacement when not supported.
19760         (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
19761         them explicitly to be sure they are not output before this section
19762         (via m4_require).  Cosmetic only.
19763         * lib/autoconf/c.m4, lib/autoconf/general.m4,
19764         * lib/autoconf/programs.m4: Replace all the occurrences of
19765         `__oline__' with `$LINENO'.
19766         * doc/autoconf.texi (Special Shell Variables): Document LINENO.
19768 2001-09-21  Tim Van Holder  <tim.van.holder@pandora.be>
19770         * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
19771         character (u: -> ue) in a code comment.
19772         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
19773         it works.
19775 2001-09-21  Akim Demaille  <akim@epita.fr>
19777         * Makefile.maint (AUTOM4TE): Neutralize autom4te.
19778         Suggested by Jim Meyering.
19780 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
19782         * lib/autoconf/programs.m4: Use extensions listed in
19783         $ac_executable_extensions when looking for programs.
19785 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
19787         * lib/autoconf/general.m4: Fix a small Englisho.
19788         * lib/autoconf/status.m4: Fix a small typo.  Handle DOS paths when
19789         setting up ac_dir_suffix and ac_top_builddir.
19790         * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
19792 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
19794         * doc/autoconf.texi (File System Conventions): Clarify the use of
19795         PATH_SEPARATOR.
19796         (Special Shell Variables[PATH_SEPARATOR]): Ditto.
19797         (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
19798         be used instead of ':'.
19799         * lib/autotest/general.m4: Replace occurrences of ':' in
19800         AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
19802 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
19804         * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
19805         arguments.  Fixed a typo.
19807 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
19809         * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
19810         $PATH.  Also set AUTOM4TE_CFG, so we can process autom4te properly.
19812 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
19814         * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
19815         * bin/autoupdate.in: Ditto.
19816         * bin/autoheader.in: Reworded a few comments.
19817         * bin/autoconf.in: Reworded help text for a few options.
19818         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
19819         * bin/autoscan.in, bin/autoupdate.in: Ditto.
19821 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
19823         * lib/Autom4te/XFile.pm (open): Simplified the error message (we
19824         already have $file).  Set output files to binary mode (helps avoid
19825         CR issues on DOSish systems).
19827 2001-09-19  Akim Demaille  <akim@epita.fr>
19829         * lib/autotest/general.m4: Englishoes.
19830         From Tim Van Holder and Alexey Mahotkin.
19832 2001-09-18  Paul Eggert  <eggert@twinsun.com>
19834         * doc/autoconf.texi (Common Shell Constructs): New node,
19835         documenting AS_DIRNAME.
19836         (Limitations of Usual Tools): Refer to it when discussing dirname.
19837         Also, update discussion of POSIX standard to reflect latest draft.
19839         * lib/autoconf/c.m4:
19840         (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
19842         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
19843         Do not pass a first argument with leading '-'
19844         to expr, by parenthesizing initial integers that might be negative.
19846         * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
19847         now merely checks whether it is an error to pass an argument
19848         to getpgrp.
19850         * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
19851         (AC_FUNC_GETPGRP): Don't bother with a runtime test.  Just check
19852         whether it is a (compile-time) error to pass an argument to
19853         getpgrp.  This simpler test supports the revised documentation,
19854         and is all that AC_FUNC_GETPGRP's users really need.
19856 2001-09-18  Akim Demaille  <akim@epita.fr>
19858         * doc/autoconf.texi (Limitations of Make) <$<>: New.
19860 2001-09-18  Akim Demaille  <akim@epita.fr>
19862         * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
19863         `{}'.
19864         * lib/autotest/general.m4 (AT_INIT): Adjust.
19866 2001-09-18  Paul Wagland  <paul@wagland.net>
19868         * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
19869         correctly.
19870         Add test for AS_BASENAME.
19871         * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
19872         added test. It now correctly handles /1/2/3/, returning '3' not ''.
19873         Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
19874         * tests/base.at: Fixed the expected responses. The old ones were
19875         one line out...
19876         * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
19877         the documentation claims it should (and how it behaved in 2.13).
19879 2001-09-18  Akim Demaille  <akim@epita.fr>
19881         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
19882         the AC_CONFIG_COMMANDS invocation.
19883         This also solves the name clash problems.
19884         Don't set the package's ID.
19885         * lib/m4sugar/Makefile.am (version.m4): Revamp.
19886         No longer to be shipped.
19887         (version.in): Remove.
19888         * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
19889         * lib/autoconf/status.m4: Adjust.
19890         Use `m4_PACKAGE_STRING'.
19891         * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
19892         the only optional argument is the name of the test suite.
19893         Expect `package.m4' to define the package signature.
19894         * lib/autom4te.in (Autotest): Add `package.m4?'.
19895         * tests/Makefile.am (package.m4): New.
19896         * tests/suite.at: ifnames is a victim.
19898 2001-09-18  Akim Demaille  <akim@epita.fr>
19900         * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
19901         AC_LIBSOURCE, AC_CONFIG_FILES.
19902         * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
19903         program version string doesn't match the package's.
19904         * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
19905         after `(cached)'.
19907 2001-09-17  Paul Eggert  <eggert@twinsun.com>
19909         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
19910         Allow expression to return any value that can fit into unsigned long
19911         (not int, as before).  Check for output errors.
19913 2001-09-17  Bruno Haible  <haible@ilog.fr>
19915         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
19916         Always include <stdio.h> and <stdlib.h>. Evaluate
19917         the expression in an extra function before these includes. Call
19918         fprintf "%d" only after ensuring the argument is of type 'int'.
19919         Reported by Wayne Chapeskie <waynec@spinnaker.com>.
19921 2001-09-17  Paul Eggert  <eggert@twinsun.com>
19923         Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
19924         or CFLAGS=-O5.  In that case, the linker has a relaxed view of
19925         fatal errors, and AC_CHECK_LIB causes it to include libraries even
19926         when they don't exist.
19928         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
19929         not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
19930         need it.
19932         * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
19933         version with the version used by fileutils 4.1, except use
19934         AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
19935         we don't need it.
19937         * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
19939 2001-09-13  Akim Demaille  <akim@epita.fr>
19941         * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
19942         _first_.
19943         Reported by Gerrit P. Haase.
19945 2001-09-13  Akim Demaille  <akim@epita.fr>
19947         * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
19948         m4_defn'ing is valid.
19950 2001-09-13  Akim Demaille  <akim@epita.fr>
19952         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
19953         * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
19954         Use it.
19956 2001-09-13  Akim Demaille  <akim@epita.fr>
19958         * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
19959         m4_match.
19960         (m4_re_escape): New.
19961         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
19962         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
19963         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
19964         Likewise.
19965         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
19966         (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
19967         * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
19968         AT_tests_all for consistency.
19969         Set at_victims.
19970         (AT_VICTIMS): Similar to AT_KEYWORDS.
19971         (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
19973 2001-09-13  Akim Demaille  <akim@epita.fr>
19975         * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
19977 2001-09-13  Akim Demaille  <akim@epita.fr>
19979         * lib/autotest/general.m4 (AT_INIT): Create and remove
19980         `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
19981         test suites can cohabit.
19983 2001-09-13  Akim Demaille  <akim@epita.fr>
19985         * tests/mktests.sh: Don't output banners for empty test files.
19987 2001-09-13  Akim Demaille  <akim@epita.fr>
19989         Test suites can be run independently of configure.
19991         * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
19992         * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
19993         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
19994         ECHO_N etc.
19995         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
19996         and at_c.
19997         * lib/autotest/general.m4: Use ECHO_*.
19999 2001-09-13  Akim Demaille  <akim@epita.fr>
20001         * bin/ifnames.in: Rewrite in Perl.
20002         * configure.ac: Don't look for AWK.
20003         * tests/tools.at (AWK portability): Remove.
20004         (Syntax of the shell scripts): Don't check ifnames.
20005         (AT_CHECK_PERL_SYNTAX): New.
20006         (Syntax of the Perl scripts): Check ifnames.
20007         * tests/ifnames: New.
20009 2001-09-13  Akim Demaille  <akim@epita.fr>
20011         * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
20012         test group titles.
20013         * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
20014         Remove all the other keywords.
20016 2001-09-10  Akim Demaille  <akim@epita.fr>
20018         * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
20019         SETUP: no longer used.
20020         Support -k, --keywords.
20021         <at_help>: Be `no', `short', or `long'.
20022         <at_help_all>: New variable.
20023         (AT_KEYWORDS): New.
20024         (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
20025         (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
20026         (_AT_CLEANUP_FILE_IF): Simplify the regexp.
20027         (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
20028         No longer fill the HELP diversion.
20029         (AT_CLEANUP): Use them.
20030         * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
20031         (m4_list_append): Remove.
20033         Spread a few keywords in the Autoconf test suite.
20035 2001-09-10  Akim Demaille  <akim@epita.fr>
20037         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
20038         PATH_SEPARATOR, let M4sh compute it.
20039         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
20040         * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
20041         Move to...
20042         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
20043         Simplify when the path is not a literal.
20044         (AS_UNAME): Use it to report PATH.
20045         * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
20046         (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
20047         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
20048         * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
20049         normalize the path, and to look for victims.
20050         * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
20051         (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
20053 2001-09-07  Akim Demaille  <akim@epita.fr>
20055         * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
20056         doesn't neutralize SIGINT, making autoconf etc. non interruptible.
20057         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
20058         related variables into `at_package_*'.
20059         * lib/autotest/general.m4 (AT_VICTIMS): New.
20060         (AT_INIT): Adjust for stand-alone/embedded test suites.
20061         (AS_MESSAGE_LOG_FD): Define and use it.
20062         * tests/suite.at (AT_VICTIMS): Use it.
20063         * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
20064         at_version.
20066 2001-09-07  Akim Demaille  <akim@epita.fr>
20068         Move toward possibly stand-alone test suites.
20070         * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
20071         in addition, it introduces useless differences in logs.
20072         (AT_INIT): Let atconfig and atlocal be both optional.
20073         Adjust PATH computation.
20074         * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
20076 2001-09-07  Akim Demaille  <akim@epita.fr>
20078         * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
20079         m4sugar/version.m4.
20081 2001-09-05  Akim Demaille  <akim@epita.fr>
20083         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
20084         to avoid GCC warnings.
20085         From Uwe Seimet.
20087 2001-09-05  Akim Demaille  <akim@epita.fr>
20089         * bin/autom4te.in: --language is -l, not -s.
20091 2001-09-05  Akim Demaille  <akim@epita.fr>
20093         Be ready to handle filenames as stupid as `dnl.at', for if even
20094         the maintainer is dumb enough to do that...
20096         * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
20097         excellence in M4 quotation: consider `__file__' is active.
20099         And BTW, when invoking m4, pass the --include in the right order:
20100         the wrong one.
20102         * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
20103         4m.
20105 2001-09-05  Akim Demaille  <akim@epita.fr>
20107         * lib/Autom4te/XFile.pm: New lib file.
20108         * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
20109         * bin/autoheader.in: Use it.
20111 2001-09-05  Akim Demaille  <akim@epita.fr>
20113         * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
20114         defined.
20116 2001-09-05  Akim Demaille  <akim@epita.fr>
20118         * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
20119         * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
20121         * bin/autoscan.in: Use `getopt' and `find_files' etc.
20122         Add -I, --include support.
20123         * doc/autoconf.texi (autoscan Invocation): Adjust.
20125 2001-09-05  Akim Demaille  <akim@epita.fr>
20127         CVS GNU M4 doesn't like `undefine(undefined)'.
20129         * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
20130         New, extracted from main.
20131         Use IO::File wherever possible.
20132         (input.m4): Be constant, use -I instead of hard coding $tmp.
20133         Therefore be a quoted heredoc.
20134         Don't invoke `_au_disable', since ac was not loaded, but just
20135         `unm4.m4'.
20137 2001-08-31  Akim Demaille  <akim@epita.fr>
20139         Version 2.52d.
20141 2001-08-31  Akim Demaille  <akim@epita.fr>
20143         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
20144         previous patch.
20145         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
20147 2001-08-31  Akim Demaille  <akim@epita.fr>
20149         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
20150         serious problems handling heredocs in heredocs.
20151         Reported by Nicolas Joly.
20153 2001-08-31  Akim Demaille  <akim@epita.fr>
20155         * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
20156         (Making testsuite Scripts): Update.
20158 2001-08-31  Akim Demaille  <akim@epita.fr>
20160         * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
20162 2001-08-31  Akim Demaille  <akim@epita.fr>
20164         * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
20165         (testsuite Scripts): There is no such thing as `atconfig.in'.
20166         And actually one diagram is missing: test suite runtime.
20168 2001-08-31  Akim Demaille  <akim@epita.fr>
20170         * lib/Autom4te/General.pm (&find_file): Browse the includes in the
20171         inverse order.
20173 2001-08-31  Akim Demaille  <akim@epita.fr>
20175         * bin/autoupdate.in (@include): `installcheck' revealed the path
20176         to m4sugar was lacking!
20178 2001-08-31  Akim Demaille  <akim@epita.fr>
20180         * man/Makefile.am (.x.1): We really have to pass
20181         autom4te_perllibdir.
20183 2001-08-31  Akim Demaille  <akim@epita.fr>
20185         * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
20186         debug scripts, in particular passing explicitly listed tests to
20187         run is stupid.
20189 2001-08-31  Akim Demaille  <akim@epita.fr>
20191         * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
20192         * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
20193         Use directly autom4te, not autoconf.
20194         * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
20196 2001-08-31  Akim Demaille  <akim@epita.fr>
20198         * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
20199         * bin/autoheader.in (%symbol): Strip arguments of macros.
20201 2001-08-31  Akim Demaille  <akim@epita.fr>
20203         * doc/autoconf.texi: Catch up -I, --include changes.
20205 2001-08-31  Akim Demaille  <akim@epita.fr>
20207         * bin/autom4te.in (&parse_args): Die on unknown languages.
20208         * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
20209         need for autoconf.
20210         Promote --include over --macrodir and other obsolete options.
20212 2001-08-31  Akim Demaille  <akim@epita.fr>
20214         * lib/Autom4te/General.pm ($version, $help, &getopt): New.
20215         * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
20216         * bin/autom4te.in ($autoconf): Pass --force.
20217         `print $out' doesn't print `$_' but `$out'.
20218         * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
20219         (autoheader): Pass --force since the test suite goes too fast for
20220         the time stamps.
20221         Adjust to the new autoheader messages.
20223 2001-08-31  Akim Demaille  <akim@epita.fr>
20225         * bin/autoheader.in: Handle the acconfig.h etc. junk files.
20226         Check the completeness of the #template.
20227         * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
20228         * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
20229         invocation.
20231 2001-08-31  Akim Demaille  <akim@epita.fr>
20233         * lib/Autom4te/General.pm (&find_file, &update_file): New.
20234         * bin/autoupdate.in, bin/autoheader.in: Adjust.
20235         Drop AC_MACRODIR dead for real.
20236         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
20237         `autoheader: `config.hin' is created'.
20238         * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
20240 2001-08-31  Akim Demaille  <akim@epita.fr>
20242         * bin/autoheader.in: Rewrite in Perl.
20243         * tests/autoheader: Adjust.
20245 2001-08-31  Akim Demaille  <akim@epita.fr>
20247         * bin/autoconf.in (--include, -I): New option.
20248         Map --localdir, --autoconf-dir onto it.
20249         Forward autom4te's options instead of interpreting them.
20250         * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
20251         There is no such envvar since the inception of autom4te.cfg.
20252         * bin/autom4te.in (&parse_args): Uniquify `@include'.
20253         * bin/autoupdate.in: Adjust, and perform more control.
20254         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
20255         * tests/autoconf: Dittowise.
20257 2001-08-31  Akim Demaille  <akim@epita.fr>
20259         * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
20260         * bin/autom4te.in (&find_file): Support `FILE?' standing for
20261         optionally `FILE'.
20262         Use -e, not -f, since /dev/null for instance is OK.
20263         (&parse_args): Adjust.
20264         * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
20266 2001-08-31  Akim Demaille  <akim@epita.fr>
20268         * configure.ac: Also find tested executables in bin.
20269         * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
20270         * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
20271         installed peer executables, only PATH is allowed to resolve it.
20272         Pass `autoconf_dir' via options, not via invisible envvars.
20273         * lib/Autom4te/General.pm (&find_peer): Remove.
20274         * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
20275         `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
20276         * man/Makefile.am: Let help2man rely on PATH instead of trying to
20277         find the executables for it.
20278         * tests/Makefile.am: Major cleanup.  Too lazy to document...
20279         * tests/atlocal.in: Remove all the obscure envvar manipulations.
20280         We only need PERL.
20281         * tests/atspecific.m4, tests/tools.at: Passing --localdir is
20282         indeed related to running the test suite, while passing
20283         --autoconf-dir and others is related to running non installed
20284         Autoconf executables.  So don't do that, leave it to...
20285         * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
20286         * tests/autoscan: New.
20287         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
20288         refer to library files: rely on --language.
20290 2001-08-29  Akim Demaille  <akim@epita.fr>
20292         * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
20293         s/--set/--language/.
20295 2001-08-29  Akim Demaille  <akim@epita.fr>
20297         * doc/autoconf.texi: Strip the @nodes.
20298         Suggested by Paul Eggert.
20299         (Initializing configure): Typo.
20301 2001-08-29  Akim Demaille  <akim@epita.fr>
20303         * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
20304         Suggested by Paul Eggert.
20306 2001-08-29  Akim Demaille  <akim@epita.fr>
20308         * Makefile.maint (do-po-update): Wget refuses to overwrite files:
20309         download in a tmp dir.
20311 2001-08-29  Akim Demaille  <akim@epita.fr>
20313         * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
20314         case insensitive OSes out there :(
20315         From Tim Van Holder.
20317 2001-08-29  Akim Demaille  <akim@epita.fr>
20319         * lib/autom4te.in: New.
20320         * lib/Makefile.am (edit, autom4te.cfg): New.
20321         * bin/autom4te.in (BEGIN): Simplify.
20322         Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
20323         (&load_configuration): New.  Use it.
20324         (&parse_args): Support --mode, --set, and --melt.
20325         * bin/autoconf.in: Simplify and adjust.
20326         * tests/Makefile.am (AUTOMAKE): Use --set.
20327         * tests/atlocal.in: Adjust.
20328         * BUGS: distcheck and check are weak.
20330 2001-08-29  Akim Demaille  <akim@epita.fr>
20332         * lib/autotest/general.m4: Use
20333                 foo=`(command) 2>/dev/null`
20334         not
20335                 foo=`command` 2>/dev/null
20336         (at-devnull): Rename as...
20337         (AT-devnull): this.
20338         (--clean): Remove AT-* files too.
20339         * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
20340         Reported by Nicolas Joly.
20342 2001-08-28  Akim Demaille  <akim@epita.fr>
20344         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
20345         quotes inside single quotes.
20346         Reported by Nicolas Joly.
20348 2001-08-28  Kevin Ryde  <user42@zip.com.au>
20350         * doc/autoconf.texi (Function Portability): Mention C right shifts.
20352 2001-08-27  Tim Van Holder  <tim.van.holder@pandora.be>
20354         * lib/autotest/general.m4: Reword some messages.
20355         (AT_INIT): Check for the `times' builtin before using it.
20356         Support test ranges as arguments to the testsuite.
20357         Have -e imply -d as the help text suggested.
20359 2001-08-27  Akim Demaille  <akim@epita.fr>
20361         * Makefile.maint: Formatting changes.
20362         (do-po-update, po-update, cvs-update, update): New targets.
20363         (AMTAR): Remove.
20365 2001-08-27  Akim Demaille  <akim@epita.fr>
20367         * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
20368         <at_cmd_line>: New.
20369         Pass it to debug-*.sh scripts.
20370         <AUTOTEST_PATH>: May contain absolute dir names.
20372 2001-08-27  Akim Demaille  <akim@epita.fr>
20374         * lib/autotest/general.m4 (AT_INIT): Log the command line.
20375         Support `VAR=VAL' as arguments.
20376         Compute PATH _after_ the options processing, so that AUTOTEST_PATH
20377         may be set via the command line.
20379 2001-08-27  Akim Demaille  <akim@epita.fr>
20381         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
20382         * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
20383         first the build dirs, then the src dirs.
20384         * configure.ac (AC_CONFIG_TESTDIR): Adjust.
20386 2001-08-27  Akim Demaille  <akim@epita.fr>
20388         * lib/autotest/general.m4 (AT_INIT): Output the definition of
20389         at_data_files earlier.
20390         (--clean, -c): New option.
20391         * tests/Makefile.am: Use this option.
20393 2001-08-27  Akim Demaille  <akim@epita.fr>
20395         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
20396         `ac_top_builddir' to mimic Automake's vocabulary, which much more
20397         readable.
20398         Adjust callers.
20399         * doc/autoconf.texi (Configuration Actions): Document the vars
20400         available in commands.
20401         Emphasize the risks of collisions in init-cmds.
20403 2001-08-27  Akim Demaille  <akim@epita.fr>
20405         * doc/autoconf.texi (Input) <AC_INIT>: Move to..
20406         (Initializing configure): this new node.
20408 2001-08-27  Akim Demaille  <akim@epita.fr>
20410         * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
20412 2001-08-27  Akim Demaille  <akim@epita.fr>
20414         * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
20415         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
20416         New file.
20417         * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
20419 2001-08-27  Akim Demaille  <akim@epita.fr>
20421         * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
20422         to...
20423         * lib/autoconf/autoheader.m4: this new file.
20424         * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
20425         (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
20426         Move to...
20427         * lib/autoconf/autoupdate.m4: this new file.
20429 2001-08-27  Akim Demaille  <akim@epita.fr>
20431         * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
20432         (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
20433         Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
20434         -> ac_dir).
20435         (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
20436         * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
20438 2001-08-27  Akim Demaille  <akim@epita.fr>
20440         * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
20441         (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
20442         (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
20443         (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
20444         (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
20445         (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
20446         (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
20447         (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
20448         (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
20449         (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
20450         (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
20451         (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
20452         (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
20453         (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
20454         (_AC_OUTPUT_SUBDIRS): Move to...
20455         * lib/autoconf/status.m4: this new file.
20456         * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
20457         * tests/Makefile.am, tests/suite.at: Adjust.
20459 2001-08-27  Akim Demaille  <akim@epita.fr>
20461         Automake 1.5.
20463         * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
20464         (AMTAR): Help automake define it.
20465         (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
20466         needed, 1.5 can have a macro and a target with the same name.
20467         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
20468         * m4/strip.m4: New.
20469         * m4/init.m4, m4/sanity.m4: Update.
20470         * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
20471         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
20472         * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
20473         * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
20475 2001-08-27  Akim Demaille  <akim@epita.fr>
20477         Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
20479         * lib/autoconf/version.in: Remove.
20480         * lib/m4sugar/version.in: New.
20481         * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
20482         Adjust callers.
20483         * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
20484         the name of the directory they're in, instead of the filename,
20485         since version.m4 is now in m4sugar, but m4_acversion must not be
20486         classified as an Autoconf macro.
20487         ($input_m4): Don't qualify the path to m4sugar.
20488         Rather, pass autoconf_dir to m4.
20489         * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
20490         * tests/suite.at: Require 2.52c.
20492 2001-08-27  Akim Demaille  <akim@epita.fr>
20494         testsuite.log should include config.log.
20496         * lib/autotest/autotest.m4: New.
20497         * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
20498         * tests/suite.at : Adjust.
20499         (AT_INIT): Log config.log.
20500         * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
20501         * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
20502         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
20503         (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
20504         of config.log on traps.
20505         (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
20506         Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
20507         for config.status'.
20508         Open the log as soon as possible.
20509         Use the same log introduction as configure's.
20511 2001-08-22  Paul Eggert  <eggert@twinsun.com>
20513         * doc/autoconf.texi (Indices): New node.
20514         Move indices out of the top level menu and into this submenu.
20516 2001-08-22  Akim Demaille  <akim@epita.fr>
20518         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
20519         AC_TRY_COMMAND.
20520         (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
20522 2001-08-22  Akim Demaille  <akim@epita.fr>
20524         * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
20525         (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
20526         (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
20527         * lib/autoconf/programs.m4: here.
20528         * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
20529         (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
20530         (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
20531         * lib/autoconf/programs.m4: here.
20532         (_AC_DECL_YYTEXT): Rename as...
20533         (_AC_PROG_LEX_YYTEXT_DECL): this.
20534         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
20535         * tests/Makefile.am, tests/suite.am: Adjust.
20537 2001-08-22  Akim Demaille  <akim@epita.fr>
20539         * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
20540         Move to...
20541         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
20542         here.
20543         * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
20544         * lib/autoconf/functions.m4: here.
20545         * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
20546         (AH_CHECK_LIB): Move to...
20547         * lib/autoconf/libs: this new file.
20548         * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
20549         (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
20550         * lib/autoconf/libs.m4: here.
20551         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
20553 2001-08-22  Akim Demaille  <akim@epita.fr>
20555         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
20556         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
20557         (AC_SITE_LOAD): Better logging of config.site.
20559 2001-08-20  Akim Demaille  <akim@epita.fr>
20561         * configure.ac (AT_CONFIG): Fix the path.
20562         * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
20563         can be used.
20565 2001-08-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
20567         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
20568         program with AC_LANG_PROGRAM before feeding it to
20569         AC_COMPILE_IFELSE.  Cleanup grep usage.
20571 2001-08-20  Akim Demaille  <akim@epita.fr>
20573         * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
20574         * NEWS, README, README-alpha, TODO, tests/README: This package is
20575         `Autoconf', not `autoconf' (the executable).
20577 2001-08-20  Akim Demaille  <akim@epita.fr>
20579         Info readers seem to need `Index' in the index node title :(
20581         * doc/autoconf.texi: Reverse the 2001-08-15 change which
20582         simplified index node names.
20584 2001-08-20  Akim Demaille  <akim@epita.fr>
20586         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
20587         arguments are not literals.
20588         * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
20589         Specify the output variables, and macros defined.
20591 2001-08-20  Akim Demaille  <akim@epita.fr>
20593         * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
20594         (Examining Syntax) <AC_TRY_COMPILE>
20595         (Examining Libraries) <AC_TRY_LINK>
20596         (Test Programs) <AC_TRY_RUN>: These macros double quote some of
20597         their arguments.
20598         Reported by Werner Lemberg.
20600 2001-08-20  Akim Demaille  <akim@epita.fr>
20602         * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
20603         top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
20604         Load atlocal late enough to dump it in the log.
20605         * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
20607 2001-08-20  Akim Demaille  <akim@epita.fr>
20609         * tests/torture.at (Configuring subdirectories): New test.
20610         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
20611         looking for.
20612         * m4/atconfig.m4: Be sure the let $[0] be expandable.
20613         (top_srcdir): Fix its computation.
20615 2001-08-20  Akim Demaille  <akim@epita.fr>
20617         * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
20618         * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
20619         test suite lives.
20620         Create `atconfig' automagically.
20621         Configure atlocal.in if present.
20622         * tests/atconfig.in: Remove.
20623         * tests/atlocal.in: New.
20624         * tests/Makefile.am: Adjust.
20626 2001-08-20  Akim Demaille  <akim@epita.fr>
20628         Huh!?!?!  There are still some user EOF tags used, which prevents
20629         their use in AC_CONFIG_COMMANDS for instance...
20631         * lib/autoconf/general.m4, lib/autoconf/specific.m4,
20632         * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
20633         `_CSEOF', or `_ATEOF', as appropriate.
20634         * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
20635         * lib/autotest/Makefile.am (check-local): Enforce this constraint.
20637 2001-08-20  Akim Demaille  <akim@epita.fr>
20639         * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
20640         * tests/semantics.at, tests/tools.at, tests/torture.at:
20641         s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
20643 2001-08-20  Akim Demaille  <akim@epita.fr>
20645         Autotest invokes M4sh's initialization.
20647         * lib/autotest/general.m4: Adjust the diversion names.
20648         (AT_INIT): Run AS_INIT.
20649         Use the BINSH diversion to invoke /bin/sh.
20650         * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
20651         * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
20653 2001-08-20  Akim Demaille  <akim@epita.fr>
20655         Let M4sh have its own diversions.
20657         * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
20658         (_m4_divert(NOTICE)): Rename as...
20659         * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
20660         (_m4_divert(HEADER-COMMENT)): these.
20661         (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
20662         (_m4_divert(NOTICE)): New, for Libtool.
20663         * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
20664         long ago with `_m4_divert(GROW)'.
20665         (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
20667 2001-08-20  Akim Demaille  <akim@epita.fr>
20669         * tests/base.at, tests/compile.at, tests/foreign.at,
20670         * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
20671         * tests/semantics.at, tests/suite.at, tests/tools.at,
20672         * tests/torture.at: Ask Autotest mode, not Autoconf mode.
20674 2001-08-20  Akim Demaille  <akim@epita.fr>
20676         * bin/autom4te.in (handle_output): Handle @__@.
20678 2001-08-20  Akim Demaille  <akim@epita.fr>
20680         * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
20681         * lib/autotest/general.m4: Adjust the license.
20683 2001-08-17  Paul Eggert  <eggert@twinsun.com>
20685         * doc/autoconf.texi (Function Portability): Mention snprintf,
20686         following up on a suggestion by Kevin Ryde.
20688 2001-08-17  Akim Demaille  <akim@epita.fr>
20690         * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
20691         `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
20693 2001-08-17  Akim Demaille  <akim@epita.fr>
20695         * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
20696         `$0.log' as for projects where testsuite is in src, we'd have
20697         testsuite.log created in src.
20699 2001-08-17  Akim Demaille  <akim@epita.fr>
20701         * bin/autom4te.in (&parse_args): Recognize --normalize.
20703 2001-08-17  Akim Demaille  <akim@epita.fr>
20705         Start implementing the AC_CHECK_HEADER transition scheme.
20707         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
20708         (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
20709         (AC_CHECK_HEADER): Use them.
20711 2001-08-17  Akim Demaille  <akim@epita.fr>
20713         * doc/autoconf.texi: Work around Texinfo buglets.
20714         (Transformation Rules): One example is enough, users are expected
20715         to have their brains on. And BTW, use DESTDIR.
20716         (dvar): New macro.  Use it.
20718 2001-08-17  Akim Demaille  <akim@epita.fr>
20720         * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
20721         * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
20722         looking for ChangeLogs.
20724 2001-08-17  Akim Demaille  <akim@epita.fr>
20726         * bin/autom4te.in: --normalize is a new option.
20727         * bin/autoconf.in: Use it.
20729 2001-08-17  Akim Demaille  <akim@epita.fr>
20731         * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
20732         * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
20734 2001-08-16  Paul Eggert  <eggert@twinsun.com>
20736         * doc/autoconf.texi, doc/install.texi: Put copyright notice at
20737         start, not at end.
20739 2001-08-15  Akim Demaille  <akim@epita.fr>
20741         * doc/Makefile.am (fu): New index, can't use fn because of defmac.
20742         Use it.
20744 2001-08-15  Akim Demaille  <akim@epita.fr>
20746         * doc/autoconf.texi (pr): New index.
20747         (prindex, findex): Use, merge, and output them.
20748         (Environment Variable Index, Output Variable Index)
20749         (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
20750         (Autotest Macro Index): Rename as...
20751         (Environment Variables, Output Variables,Preprocessor Symbols)
20752         (Autoconf Macros, M4 Macros, Autotest Macros): these.
20753         * doc/install.texi: Use @command.
20754         (Environment Variables): Rename as...
20755         (Defining Variables): this.
20757 2001-08-15  Akim Demaille  <akim@epita.fr>
20759         * doc/autoconf.texi (Function Portability): sprintf's return
20760         value.
20761         From Kevin Ryde.
20763 2001-08-15  Akim Demaille  <akim@epita.fr>
20765         * Makefile.maint (CVS): New.
20766         (local-check): Run changelog-check. last.
20767         (alpha): Don't depend upon local-check, since...
20768         (cvs-dist): depends upon it.
20770 2001-08-15  Tim Van Holder  <tim.van.holder@pandora.be>
20772         * tests/Makefile.am: Use a clean-local rule to remove
20773         autom4te.cache (it's a directory, not a file.
20774         * Makefile.am: Ditto (but maintainer-clean-local).
20776 2001-08-15  Akim Demaille  <akim@epita.fr>
20778         * bin/autom4te.in (@m4_warning): New.
20779         (&handle_m4): Use it.
20780         * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
20781         warnings are issued at each run.
20782         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
20783         is in the src tree.
20785 2001-08-15  Akim Demaille  <akim@epita.fr>
20787         * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
20788         don't waste time running `autoupdate --version' works.
20789         * tests/tools.at (autoupdating AC_PREREQ): Likewise.
20791 2001-08-13  Akim Demaille  <akim@epita.fr>
20793         * doc/autoconf.texi (ma): Rename this index as...
20794         (ac): this.
20796 2001-08-13  Akim Demaille  <akim@epita.fr>
20798         * Makefile.am: Remove dead code and dead comments.
20799         (pdf, html): New targets.
20800         * doc/autoconf.texi (Using Autotest): New chapter.
20801         * doc/Makefile.am (pdf): New targets.
20802         (CLEANFILES): Adjust.
20804 2001-08-13  Akim Demaille  <akim@epita.fr>
20806         * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
20807         duration of the test suite.
20809 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
20811         * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
20812         endianness for comparison instead of relying on AT_CHECK_ENV.
20814 2001-08-11  Paul Eggert  <eggert@twinsun.com>
20816         * doc/autoconf.texi, doc/install.texi: Add a copyright notice
20817         to the INSTALL file.
20819 2001-08-11  Paul Eggert  <eggert@twinsun.com>
20821         * NEWS: The autoconf manual now is distributed under the terms
20822         of the GNU Free Documentation License.
20824         * doc/autoconf.texi: Switch from old style copyright notice to FDL.
20825         Add an appendix "Copying This Manual" for the FDL.
20827         * doc/fdl.texi: New file, from
20828         <http://www.gnu.org/licenses/fdl.texi>.
20830         * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
20832 2001-08-10  Paul Eggert  <eggert@twinsun.com>
20834         * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
20835         ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
20836         README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
20837         m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
20838         m4/sanity.m4, tests/README, tests/aclocal.m4,
20839         tests/atspecific.m4, tests/base.at, tests/compile.at,
20840         tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
20841         tests/semantics.at, tests/suite.at, tests/tools.at,
20842         tests/torture.at: Add copyright notice.
20844         * tests/mktests.sh: Update year in copyright notice.
20846 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
20848         * tests/semantics.at (AC_C_BIGENDIAN): New test.
20850 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
20852         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
20853         ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
20854         * doc/autoconf.texi (C Compiler Characteristics): Update
20855         documentation for AC_C_BIGENDIAN.
20857 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
20859         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
20860         magic values from an object file when cross-compiling.
20861         Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
20863 2001-08-10  Akim Demaille  <akim@epita.fr>
20865         * bin/autom4te.in (&handle_output): Don't use `grep' with side
20866         effects.
20867         Suggested by Russ Allbery.
20869 2001-08-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
20871         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
20872         current $prefix to the sub-configures.
20874 2001-08-09  Tim Van Holder  <tim.van.holder@pandora.be>
20876         * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
20877         extension (needed on BeOS).  Reported by Guido van Rossum.
20879 2001-08-09  Akim Demaille  <akim@epita.fr>
20881         * bin/autom4te.in ($icache): Load it only if older than autom4te.
20883 2001-08-07  Akim Demaille  <akim@epita.fr>
20885         * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
20886         removed.
20887         (at-setup-line): Huh?  Be a variable `at_setup_line', not a file.
20888         No need to remove the files before and after the each test, before
20889         each test and at the end of the suite is enough.
20890         Display only the children `times', not the shell's.
20891         If the test failed or was skipped, at-times is not available.
20893 2001-08-07  Akim Demaille  <akim@epita.fr>
20895         Always produce testsuite.log, including when there are no
20896         failures.  This helps getting information on skipped tests, and
20897         duration of the tests.  Err, implement the latter btw.
20899         * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
20900         Dump information on the first run of each test.
20901         (AT_CLEANUP): Create `at-times' containing the duration of the
20902         test group.
20904 2001-08-07  Akim Demaille  <akim@epita.fr>
20906         The use of `dumpstat' revealed that `len' was used although it
20907         should not.  m4_text_wrap was using it, but in the Autoconf world
20908         where it is legal.  Hence (i) test M4sh in its own world, not
20909         Autoconf's, and (ii), ahem, fix the bug :)
20911         * lib/autotest/general.m4: Be sure the set good quotes, as tracing
20912         does not like `' instead of [].
20913         (AT_INIT): Forbid `^_?AT_'.
20914         And don't output such tokens.
20915         * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
20916         `script.as', and `autom4te.cache'.
20917         Remove `empty' and `macro' which are no longer used.
20918         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
20919         * tests/m4sugar.at: Use it.
20920         * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
20922 2001-08-07  Akim Demaille  <akim@epita.fr>
20924         * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
20926 2001-08-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
20928         * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
20930 2001-08-04  Akim Demaille  <akim@epita.fr>
20932         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
20933         (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
20934         AC_TRY_LINK.
20935         * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
20936         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
20937         (AC_F77_MAIN): Likewise.
20939 2001-08-04  Akim Demaille  <akim@epita.fr>
20941         Don't rely on M4sugar outputting the patterns in files, since we
20942         might process the output _without_ running m4, hence without these
20943         files.
20945         * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
20946         * bin/autom4te.in (@Request::includes): Remove, unused.
20947         (@Request::source): Rename as...
20948         (@Request::input): this.
20949         (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
20950         (&handle_output): Fetch the patterns from the traces.
20951         `$forbidden' and `$allowed' are constant: use m//o.
20952         (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
20953         (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
20955 2001-08-04  Akim Demaille  <akim@epita.fr>
20957         `autoconf && autoheader' is sped up.  Now, speed up `autoheader &&
20958         autoconf', i.e., in addition to caching traces, cache the output.
20960         * bin/autom4te.in (Request::cache): Rename as...
20961         (Request::id): this.
20962         ($cache, $icache, $tcache, $ocache): New.
20963         (&handle_m4): Save M4 output in the cache instead of $tmp.
20964         (&handle_output): Adjust.
20965         (&up_to_date_p): Check that the output cache is up to date too.
20966         (top level): Run `&handle_m4' iff force or the cache is invalid.
20967         Run `&handle_output' if the output cache is more recent.
20969 2001-08-04  Akim Demaille  <akim@epita.fr>
20971         * bin/autom4te.in ($force): New.
20972         (&parse_args, &print_usage): -f, --force is a new option.
20973         (&handle_output): CPP directives might have spaces after `#'.
20974         (&parse_args): The first file only can be frozen.
20976 2001-08-04  Akim Demaille  <akim@epita.fr>
20978         Don't let autom4te compute the `include' traces several times:
20979         first check that the trace cache file is up to date, and then
20980         compare its timestamp with that of the output.
20982         * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
20983         the preamble.  Don't require 5.005 as Autom4te::General does it,
20984         and better yet (use `use', not `require'!).
20985         * lib/Autom4te/Struct.pm: Rename the last occurrences of
20986         Class::Struct as Autom4te::Struct.
20987         * lib/Autom4te/General.pm (File::stat): Use it.
20988         (&mtime): New, export it.
20989         * bin/autom4te.in: Use it.
20990         Declare `$req' is invalid if it is outdated.
20991         Don't declare it valid before saving it if something went wrong.
20993 2001-08-04  Akim Demaille  <akim@epita.fr>
20995         Autom4te shall not encode Autoconf data, and preselecting traces
20996         must be proposed to the users.
20998         * bin/autom4te.in (@required_trace): Remove.
20999         (@preselect): New.
21000         (&parse_args, &print_usage): -p, --preselect is a new option.
21001         (&up_to_date_p): Adjust.
21002         * bin/autoconf.in: Preselect some Autoconf macros.
21004 2001-08-04  Akim Demaille  <akim@epita.fr>
21006         * tests/tools.at (autoconf --trace: user macros): Check traces on
21007         macros invoked without arguments, and macros invoked with multiple
21008         lines arguments.
21010 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
21012         * bin/autom4te.in (handle_traces): Fix rewriting of traces without
21013         arguments.
21015 2001-08-03  Akim Demaille  <akim@epita.fr>
21017         * bin/autoconf.in ($@): Work around the usual sh bug.
21018         From Nicolas Joly.
21020 2001-08-03  Akim Demaille  <akim@epita.fr>
21022         Clean up the handling of the M4 builtins tracing exception.
21024         * bin/autom4te.in (Request::request): Don't complete M4 builtins
21025         trace requests.
21026         (@m4_builtins): Rename as...
21027         (@m4_builtin): this.
21028         (%m4_builtin_alternate_name): New.
21029         (&parse_args): Complete the trace requests with alternate names.
21030         (&handle_traces): Hence no longer do it here.
21031         (&trace_requests): Remove, unused.
21033 2001-08-03  Akim Demaille  <akim@epita.fr>
21035         * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
21036         m4_if, and m4_wrap.
21038 2001-08-03  Akim Demaille  <akim@epita.fr>
21040         * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
21041         (m4_divert_pop): Dump the whole diversion stack when a diversion
21042         mismatch happens.
21043         * bin/autom4te.in (&handle_output): Remember of the first
21044         occurrence of a possibly undefined macro, not the last.
21045         Complain about the possibly undefined macros in the same order as
21046         the appear in the output.
21047         * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
21048         * tests/tools.at (autoconf: forbidden tokens, basic)
21049         (autoconf: forbidden tokens, exceptions): No longer sort
21050         autoconf's stderr, as it is now deterministic.
21051         Check that `dnl' is caught.
21053 2001-08-01  Akim Demaille  <akim@epita.fr>
21055         * configure.ac: Bump to 2.52c.
21057 2001-08-01  Akim Demaille  <akim@epita.fr>
21059         Version 2.52b.
21061         * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
21063 2001-08-01  Akim Demaille  <akim@epita.fr>
21065         Version 2.52a.
21067 2001-08-01  Akim Demaille  <akim@epita.fr>
21069         * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
21070         `die'.
21071         (&END): New.
21072         * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
21073         `END', as `Autom4te::General::END' will be triggered.
21074         * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
21075         * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
21076         system to run `mv', `rm', and `cmp'.
21078 2001-08-01  Akim Demaille  <akim@epita.fr>
21080         * lib/Autom4te/General.pm (&unique): New.
21081         * bin/autoscan.in (&output): Use it to issue trace requests once.
21083 2001-08-01  Akim Demaille  <akim@epita.fr>
21085         * lib/Autom4te/General.pm: New.
21086         * bin/autom4te.in (Autom4te::General): Use it.
21087         ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
21088         (&find_configure_ac, &find_slave): Remove.
21089         * bin/autoscan.in: Likewise.
21090         * bin/autoupdate.in: Likewise.
21092 2001-08-01  Akim Demaille  <akim@epita.fr>
21094         * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
21095         * autoheader.in, autoreconf.in, autoupdate.in: Move to...
21096         * bin: here, new directory.
21097         * lib/Autoconf: Rename as...
21098         * lib/Autom4te: this, to please case insensitive junkie OSes.
21100 2001-08-01  Akim Demaille  <akim@epita.fr>
21102         * autom4te.in ($m4): Handle the --nesting-limit.
21103         * autoconf.in (M4): Remove.
21105 2001-08-01  Akim Demaille  <akim@epita.fr>
21107         * autoconf.in ($AWK): Remove, no longer used.
21108         * test/tools.at: Use AT_CHECK_AUTOCONF.
21109         (AWK portability): Remove, for autoconf no longer uses AWK.
21110         (Syntax of the Perl scripts): New.
21111         * configure.ac: autoconf no longer needs an AWK with a good
21112         regexp engine.
21113         Use a static test on AC_PACKAGE_VERSION.
21114         * autom4te.in (&up_to_date_p): Output depends on the arguments.
21115         * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
21116         * tests/atconfig.in (PERL): New.
21118 2001-08-01  Akim Demaille  <akim@epita.fr>
21120         * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
21121         (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
21122         (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
21123         (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
21124         (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
21125         (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
21126         (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
21127         (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
21128         (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
21129         (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
21130         (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
21131         (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
21132         (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
21133         * lib/autoconf/c.m4: here, new file.
21135         * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
21136         (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
21137         (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
21138         (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
21139         (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
21140         (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
21141         (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
21142         (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
21143         (AC_F77_FUNC): Move to...
21144         * lib/autoconf/fortran.m4: here, new file.
21146 2001-08-01  Akim Demaille  <akim@epita.fr>
21148         * acfunctions.m4: Rename as...
21149         * lib/autoconf/functions.m4: this.
21150         * acgeneral.m4: Rename as...
21151         * lib/autoconf/general.m4: this.
21152         * acheaders.m4: Rename as...
21153         * lib/autoconf/headers.m4: this.
21154         * aclang.m4: Rename as...
21155         * lib/autoconf/lang.m4: this.
21156         * acoldnames.m4: Rename as...
21157         * lib/autoconf/oldnames.m4: this.
21158         * acspecific.m4: Rename as...
21159         * lib/autoconf/specific.m4: this.
21160         * actypes.m4: Rename as...
21161         * lib/autoconf/types.m4: this.
21162         * autoconf.m4: Rename as...
21163         * lib/autoconf/autoconf.m4: this.
21165         * m4sugar.m4: Rename as...
21166         * lib/m4sugar/m4sugar.m4: this.
21167         * m4sh.m4: Rename as...
21168         * lib/m4sugar/m4sh.m4: this.
21170         * tests/atgeneral.m4: Rename as...
21171         * lib/autotest/general.m4: this.
21173         * acfunctions: Rename as...
21174         * lib/autoscan/functions: this.
21175         * acheaders: Rename as...
21176         * lib/autoscan/headers: this.
21177         * acidentifiers: Rename as...
21178         * lib/autoscan/identifiers: this.
21179         * aclibraries: Rename as...
21180         * lib/autoscan/libraries: this.
21181         * acmakevars: Rename as...
21182         * lib/autoscan/makevars: this.
21183         * acprograms: Rename as...
21184         * lib/autoscan/programs: this.
21186 2001-08-01  Akim Demaille  <akim@epita.fr>
21188         * doc/autoconf.texi: Moving/deleting open files is not portable.
21189         Portability issues for `.' (source), and more information about sed.
21191 2001-07-25  Steven G. Johnson  <stevenj@alum.mit.edu>
21193         * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
21194         which has a special meaning and is not a reference to libibmil.a.
21195         Reported by Matteo Frigo.
21197 2001-07-25  Pavel Roskin  <proski@gnu.org>
21199         * autom4te.in (mktmpdir): Strip trailing newline from mktemp
21200         output.
21202 2001-07-25  Akim Demaille  <akim@epita.fr>
21204         * autoconf.in: Try to define the variables before using them.
21205         * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
21206         instead of `$perllibdir'.
21207         * tests/atconfig.in ($autom4te_perllibdir): Export it.
21209 2001-07-25  Akim Demaille  <akim@epita.fr>
21211         * autoconf.in (ac_LF_and_DOT): Remove, unused.
21213 2001-07-24  Akim Demaille  <akim@epita.fr>
21215         Let autoconf use autom4te for traces.
21217         * autoconf.in ($task, task trace): Remove, merely pass --trace to
21218         autom4te.
21219         * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
21220         (Because I found no way for autom4te to accept `-').
21221         * autom4te.in (&Request::request): Beware of M4 builtins.
21222         (END): Don't try to remove the content of an empty dir.
21223         (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
21224         (&handle_output): Set a default value to `$forbidden'.
21225         * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
21226         ($autoconf): Pass --debug and --verbose.
21227         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
21228         cache.
21230 2001-07-24  Akim Demaille  <akim@epita.fr>
21232         Let autoconf use autom4te to create configure.
21234         * autoconf.in ($automate): New var.
21235         (task script): Use autom4te.
21236         * autom4te.in (File::Spec): Use it.
21237         (&find_file): New.
21238         (&parse_args): --warning is -W, not -w.
21239         Find the top level files.
21240         (&handle_m4): Pass the warnings flags.
21241         Don't report verbosely m4's failures, unless requested.
21242         (&handle_output): Don't complain for forbidden tokens in comments.
21243         Be sure to report all the forbidden tokens within a single line.
21244         (&trace_format_to_m4): Preserve `$_'.
21245         (&handle_traces): Sort the output macros.
21246         (&up_to_date_p): Find the files before trying to get its time stamp.
21248 2001-07-24  Akim Demaille  <akim@epita.fr>
21250         * Makefile.am: Ship, build and install Autom4te.
21251         (SUBDIRS): Add lib.
21252         * lib/Autoconf/Struct.pm: New, from Automake 1.5.
21253         * configure.in: Require Perl.
21254         * man/autom4te.in: New.
21256 2001-07-19  Paul Eggert  <eggert@twinsun.com>
21258         * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
21259         example, rather than (exit 1); exit (which isn't portable).
21261 2001-07-18  Akim Demaille  <akim@epita.fr>
21263         Version 2.52.
21265 2001-07-18  Akim Demaille  <akim@epita.fr>
21267         The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
21268         was run, while they are needed also when it is expanded.
21269         Reported by Nicolas Joly.
21271         * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
21272         (AC_LANG_PROGRAM(C)): Use it instead of depending upon
21273         AC_F77_DUMMY_MAIN being expanded.
21275 2001-07-18  Akim Demaille  <akim@epita.fr>
21277         * configure.in: Bump to 2.51a.
21279 2001-07-17  Akim Demaille  <akim@epita.fr>
21281         Version 2.51.
21283 2001-07-17  Akim Demaille  <akim@epita.fr>
21285         * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
21286         Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
21288 2001-07-17  Akim Demaille  <akim@epita.fr>
21290         The runtime test for AC_FUNC_GETPGRP fails when prototypes are
21291         used.  Well, then use the prototypes when you can, and runtime as
21292         a last resort.
21293         Reported by Artur Frysiak
21295         * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
21296         (AC_FUNC_GETPGRP): Use it.
21297         First try to compile with 0-ary or 1-ary calls.
21299 2001-07-17  Akim Demaille  <akim@epita.fr>
21301         * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
21302         replacement type.
21303         From Paul Eggert.
21305 2001-07-17  Akim Demaille  <akim@epita.fr>
21307         * Makefile.maint: Sync. with cppi 1.10.
21309 2001-07-17  Akim Demaille  <akim@epita.fr>
21311         * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
21312         AC_F77_DUMMY_MAIN has been run.
21313         From Pavel Roskin and Steven G. Johnson.
21315 2001-07-17  Akim Demaille  <akim@epita.fr>
21317         * configure.in: Rename as...
21318         * configure.ac: this.
21320 2001-07-17  Akim Demaille  <akim@epita.fr>
21322         * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
21323         rules.
21324         From Marc Espie.
21325         * Makefile.maint (release-archive-dir): Rename as...
21326         (release_archive_dir): this, so that it can be specialized in
21327         Makefile.
21329 2001-07-14  Akim Demaille  <akim@epita.fr>
21331         * configure.in: Bump to 2.50d.
21333 2001-07-14  Akim Demaille  <akim@epita.fr>
21335         Version 2.50c.
21336         * Makefile.maint (alpha): Typo.
21338 2001-07-14  Akim Demaille  <akim@epita.fr>
21340         * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
21342 2001-07-14  Akim Demaille  <akim@epita.fr>
21344         * config/config.guess, config/config.sub, config/texinfo.tex
21345         * doc/standards.texi, doc/make-stds.texi: Update.
21347 2001-07-14  Akim Demaille  <akim@epita.fr>
21349         * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
21351 2001-07-14  Akim Demaille  <akim@epita.fr>
21353         * Makefile.maint (maintainer-check): Rename as...
21354         (maintainer-distcheck): this.
21355         (changelog-check, static-check): New.
21356         Use them.
21358 2001-07-14  Kevin Ryde  <user42@zip.com.au>
21360         * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
21361         for CXX is g++, not gcc.
21363 2001-07-14  Akim Demaille  <akim@epita.fr>
21365         * doc/autoconf.texi (Files): New subsection.
21367 2001-07-14  Akim Demaille  <akim@epita.fr>
21369         * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
21370         of...
21371         (Generic Compiler Characteristics): this.
21372         (C++ Compiler): New subsection.
21374 2001-07-14  Akim Demaille  <akim@epita.fr>
21376         * autoscan.in: Use IO::File.
21377         Adjust all the routines to use it.
21378         ($log): New file (autoscan.log).
21379         (output): Dump detailed logs into $log, and a shortened version to
21380         stderr.
21381         (&scan_makefile): Refine the regexp catching tokens in the code.
21382         * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
21383         and the `configure.ac' checking feature.
21385 2001-07-12  Akim Demaille  <akim@epita.fr>
21387         For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
21388         Reported by Michael Elizabeth Chastain.
21390         * autoconf.in: Refuse such AWK.
21391         * configure.in: Likewise.
21392         * Makefile.am (acversion.m4): Do not use move-if-change this file
21393         has dependencies.
21394         * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
21396 2001-07-10  Jens Petersen  <petersen@redhat.com>
21398         * autoscan.in (&scan_makefile): Improve programs regexp to parse
21399         things like "g++", "file.c" and "some-conf" as tokens.
21400         (&scan_file): Match C++ files extensions.
21401         If the filename extension is C++ then ask for c++.
21403 2001-07-05  Steven G. Johnson  <stevenj@alum.mit.edu>
21405         * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
21406         AC_TRY_LINK_FUNC, to check whether defining a dummy
21407         main-like routine is needed for linking with F77 libs.
21409 2001-07-05  Pavel Roskin  <proski@gnu.org>
21411         * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
21412         after using break.
21413         (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
21414         linking.
21416 2001-07-05  Akim Demaille  <akim@epita.fr>
21418         * Makefile.am (move_if_change): New.  Use it instead of `mv'.
21419         (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
21420         Makes' lives.
21421         Reported by Nicolas Joly.
21423 2001-07-04  Akim Demaille  <akim@epita.fr>
21425         * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
21426         up.
21427         * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
21428         warnings from compilers.
21429         * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
21430         for all the compilers, not only GNU.  Hence move from here...
21431         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
21433 2001-07-04  Akim Demaille  <akim@epita.fr>
21435         * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
21436         (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
21437         AC_COMPILE_IFELSE.
21439 2001-07-04  Akim Demaille  <akim@epita.fr>
21441         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
21442         the ``strings.h'' change claimed below.
21444 2001-07-04  Akim Demaille  <akim@epita.fr>
21446         * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
21448 2001-07-04  Akim Demaille  <akim@epita.fr>
21450         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
21451         strings.h if usable with string.h.
21452         Suggested by Paul Eggert.
21454 2001-07-04  Akim Demaille  <akim@epita.fr>
21456         * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
21457         From Jens Petersen.
21459 2001-07-03  Akim Demaille  <akim@epita.fr>
21461         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
21462         etc. in the log.
21464 2001-07-03  Akim Demaille  <akim@epita.fr>
21466         * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
21467         compiler, not the preprocessor.
21468         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
21469         dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
21470         the right thing.
21471         * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
21472         earlier if there are.
21474 2001-07-03  Akim Demaille  <akim@epita.fr>
21476         * autoscan.in ($initfile): Remove.
21477         (&find_file): Rename as...
21478         (&scan_file): this.
21479         Immediately scan the current file, instead of gathering them, and
21480         later having them handled by &scan_files.
21481         (&scan_files): Merely invoke Find::File.
21482         Adjust.
21484 2001-07-02  Akim Demaille  <akim@epita.fr>
21486         * autoscan.in: Formatting changes, matching the invocation order.
21487         (File::Find): Use it instead of Perl 4's `find.pl'.
21488         (&wanted): Rename as...
21489         (&find_file): this.
21491 2001-07-01  Pavel Roskin  <proski@gnu.org>
21493         * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
21494         break in the argument to AC_TRY_LINK_FUNC.
21495         (AC_F77_MAIN): Remove conftest* after using break in the
21496         argument to AC_TRY_LINK.
21498 2001-07-01  Steven G. Johnson  <stevenj@alum.mit.edu>
21500         Add alternate 'main' routine detection for linking C/C++ with Fortran,
21501         fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
21503         * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
21504         dummy alternate main is required even if the user provides her own
21505         'main'.
21506         (AC_F77_MAIN): New macro to detect whether it is possible to
21507         provide an alternate 'main' function name, using the 'main' from
21508         the Fortran libraries.
21509         (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
21510         cross-language link tests can be performed successfully.
21511         (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN.  Also put $FLIBS
21512         after $LIBS, for consistency; this should be the general rule since
21513         the user may want to link to Fortran libraries that require $FLIBS.
21514         * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
21516 2001-06-29  Pavel Roskin  <proski@gnu.org>
21518         * atgeneral.m4 (AT_CHECK): Add a newline to the end of
21519         at-stdout and at-stderr instead of removing the newline
21520         from the echo output, which is not guaranteed to work.
21522 2001-06-28  Jens Petersen  <petersen@redhat.com>
21524         * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
21525         confdefs.h when non-zero.
21527 2001-06-28  Akim Demaille  <akim@epita.fr>
21529         * configure.in: Bump to 2.50c.
21531 2001-06-26  Akim Demaille  <akim@epita.fr>
21533         Version 2.50b.
21535 2001-06-26  Akim Demaille  <akim@epita.fr>
21537         Version 2.50a.
21539 2001-06-25  Pavel Roskin  <proski@gnu.org>
21541         * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
21542         argument, AUTOCONF-FLAGS.
21543         * tests/mktests.sh (update_exclude_list): Add
21544         AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
21545         * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
21546         AC_FUNC_WAIT3 with "-W no-obsolete".
21548 2001-06-25  Akim Demaille  <akim@epita.fr>
21550         * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
21552 2001-06-25  Akim Demaille  <akim@epita.fr>
21554         * autoscan.in (%macro): Now maps from word to list of macros.
21555         (&init_tables): Die when a word which is already handled by
21556         explicit macros is mapped to the default macro.
21557         (&print_unique): Remove, inlined in...
21558         (&output_kind): here.
21559         (File::Basename): Use it.
21560         (&output): Sort the CONFIG_FILES.
21561         * acheaders: Normalize.
21562         * acfunctions: Likewise.
21564 2001-06-25  Akim Demaille  <akim@epita.fr>
21566         * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
21567         characteristics in the logs.
21568         Suggested by Mo DeJong.
21570 2001-06-24  Akim Demaille  <akim@epita.fr>
21572         * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
21573         (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
21574         * doc/autoconf.texi (Autoconf 2.13): New section.
21576 2001-06-24  Akim Demaille  <akim@epita.fr>
21578         * autoconf.in (Task traces): Separate the error messages from the
21579         traces to improve robustness.
21581 2001-06-23  Akim Demaille  <akim@epita.fr>
21583         * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
21584         three as failures are unlikely, and speed matters.
21586 2001-06-23  Akim Demaille  <akim@epita.fr>
21588         * doc/autoconf.texi (Redefined M4 Macros): New.
21590 2001-06-23  Akim Demaille  <akim@epita.fr>
21592         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
21593         inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
21594         5.3.
21596 2001-06-23  Paolo Bonzini  <bonzini@gnu.org>
21598         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
21599         config.status targets to after the evaluation of the INIT-CMDS.
21600         Double quote config.status targets (used to be single quoted).
21602 2001-06-23  Akim Demaille  <akim@epita.fr>
21604         * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
21605         Check the content of the created file.
21606         Check the ./config.status command line invocation.
21608 2001-06-23  Akim Demaille  <akim@epita.fr>
21610         * tests/foreign.at (Libtool): Reject prehistoric versions.
21612 2001-06-23  Akim Demaille  <akim@epita.fr>
21614         * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
21615         preexisting files matching a.*.
21617 2001-06-23  Akim Demaille  <akim@epita.fr>
21619         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
21620         stderr.
21621         * doc/autoconf.texi (AC_ARG_VAR): Update.
21623 2001-06-21  Akim Demaille  <akim@epita.fr>
21625         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
21626         precious variables have changed.
21627         * tests/torture.at (AC_ARG_VAR): Adjust.
21629 2001-06-21  Akim Demaille  <akim@epita.fr>
21631         ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
21632         but some sed choke on multiple `;', and other tools (e.g.,
21633         Automake), include the separator themselves.
21635         * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
21637 2001-06-19  Tim Van Holder  <tim.van.holder@pandora.be>
21639         * doc/autoconf.texi (Functions Portability): Rename as...
21640         (Function Portability): this.
21641         (Function Portability): Document potential problems with unlink().
21643 2001-06-19  Paul Eggert  <eggert@twinsun.com>
21645         * NEWS, doc/autoconf.texi: Document quadrigraphs.
21647 2001-06-18  Akim Demaille  <akim@epita.fr>
21649         * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
21651 2001-06-18  Ruediger Kuhlmann  <info@ruediger-kuhlmann.de>
21653         * acfunctions.m4: (AC_FUNC_VFORK) rename as...
21654         (_AC_FUNC_VFORK): this.
21655         Remove AC_DEFINEs and don't guess cross-compilation values.
21656         (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
21657         (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
21658         define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
21659         vfork doesn't work.
21660         Guess values if cross-compiling, but warn.
21661         * acfunctions: Add AC_FUNC_FORK.
21662         * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
21663         and vfork appropriately.
21665 2001-06-18  Akim Demaille  <akim@epita.fr>
21667         * doc/autoconf.texi (Functions Portability): New section.
21669 2001-06-18  Akim Demaille  <akim@epita.fr>
21671         * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
21672         in $M4.
21673         Suggested by Andreas Schwab.
21675 2001-06-18  Akim Demaille  <akim@epita.fr>
21677         * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
21678         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
21679         (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
21680         (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
21681         Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
21682         and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
21683         (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
21684         the converse).
21686 2001-06-18  Akim Demaille  <akim@epita.fr>
21688         * doc/autoconf.texi (ms): New index.
21689         (Macro Index): Rename as...
21690         (Autoconf Macro Index): this.
21691         (M4 Macro Index): New appendix.
21692         (Programming in M4): New chapter.
21693         Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
21694         (Quoting): Rename as...
21695         (M$ Quotation): this.
21696         Be part of `Programming in M4).
21698 2001-06-18  Nicolas Joly  <njoly@pasteur.fr>
21700         * tests/torture.at (AC_ARG_VAR): Set variables and export them
21701         in separate statements for compatibility with Tru64 v5.1.
21703 2001-06-17  Akim Demaille  <akim@epita.fr>
21705         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
21706         current values of the precious variables, not the previously
21707         cached values.
21708         Pass precious variables which are set to config.status.
21709         * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
21710         * tests/torture.at (AC_ARG_VAR): New.
21712 2001-06-15  Paul Eggert  <eggert@twinsun.com>
21714         * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
21715         AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
21716         and explain why and how to replace them.
21717         * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
21718         * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
21720 2001-06-15  Akim Demaille  <akim@epita.fr>
21722         `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
21723         Reported by Bruno Haible.
21725         * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
21726          (_AC_ARG_VAR_PRECIOUS): to here.
21728 2001-06-15  Pavel Roskin  <proski@gnu.org>
21730         * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
21731         an unused pointer use cast to this type and `if' statement to
21732         avoid warnings from the compiler.
21733         (AC_HEADER_TIME): Likewise.
21734         * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
21735         in `if' statement to avoid warnings from the compiler. Declare
21736         ac_aggr static to avoid the need to initialize it.
21738 2001-06-14  Akim Demaille  <akim@epita.fr>
21740         * doc/autoconf.texi (Portable Shell): Move to follow `Writing
21741         Macros'.
21743 2001-06-13  Akim Demaille  <akim@epita.fr>
21745         * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
21746         Suggested by Alexander Mai.
21748 2001-06-13  Akim Demaille  <akim@epita.fr>
21750         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
21751         sys/types.h and sys/stat.h, and check for them.
21753 2001-06-13  Akim Demaille  <akim@epita.fr>
21755         * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
21756         INCLUDES.
21758 2001-06-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
21760         * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
21761         succeeds and only try adding libdnet upon a failure.
21763 2001-06-12  Akim Demaille  <akim@epita.fr>
21765         * autoscan.in (&output_kind): Output the comment only if it exists.
21766         (%kind_comment): Add entry for `programs'.
21767         (&output_programs): Use &output_kind.
21768         (&output_functions, &output_identifiers, &output_headers)
21769         (&output_programs): Inline, and remove.
21771 2001-06-12  Akim Demaille  <akim@epita.fr>
21773         * autoscan.in (%kind_comment): New.
21774         (output_kind): New.
21775         (output_functions, output_identifiers, output_headers): Use it.
21777 2001-06-12  Akim Demaille  <akim@epita.fr>
21779         * autoscan.in (&print_unique): Take `$kind' and `$word' as
21780         arguments, to factor indirections into `%macro' and `%used'.
21781         (%generic_macro): Fix a typo.
21783 2001-06-12  Akim Demaille  <akim@epita.fr>
21785         * aclibraries: New.
21786         * autoscan.in (@kinds): Add `libraries'.
21787         Use `@kinds' instead of hard coded lists.
21788         (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
21789         Remove, replaced by...
21790         (%used): this.
21792 2001-06-12  Akim Demaille  <akim@epita.fr>
21794         * autoscan.in (%functions_macros %headers_macros)
21795         (%identifiers_macros %programs_macros %makevars_macros): Remove,
21796         replaced by...
21797         (%macro): New.
21799 2001-06-11  Raja R Harinath  <harinath@cs.umn.edu>
21801         * aclang.m4 (AC_NO_EXECUTABLES): Override
21802         _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
21804 2001-06-11  Akim Demaille  <akim@epita.fr>
21806         * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
21807         trailing new line.
21808         Reported by Andreas Schwab.
21810 2001-06-11  Akim Demaille  <akim@epita.fr>
21812         * Makefile.am, Makefile.maint: Typos.
21814 2001-06-09  Akim Demaille  <akim@epita.fr>
21816         * doc/autoconf.texi (Here-Documents): New section, gathering
21817         documentation about here-documents.
21818         Use `href', not `uref', and other changes.
21820 2001-06-09  Akim Demaille  <akim@epita.fr>
21822         * doc/autoconf.texi (Portable Shell Programming): Promoted as a
21823         chapter.
21825 2001-06-09  Akim Demaille  <akim@epita.fr>
21827         * doc/autoconf.texi (Limitations of Builtins): Complete the
21828         description of the here-docs penalties with Alexandre Oliva's
21829         explanations.
21831 2001-06-01  Paul Eggert  <eggert@twinsun.com>
21833         * doc/autoconf.texi: Talk about here documents and speedups.
21834         Do not use "echo" on arbitrary strings.
21835         Spell "here-documents" consistently with the standard.
21837 2001-06-09  Akim Demaille  <akim@epita.fr>
21839         * doc/autoconf.texi (Concept Index): Introduce it.
21840         Regenerate the menus.
21842 2001-06-09  Akim Demaille  <akim@epita.fr>
21844         * Makefile.maint, GNUmakefile: New, from Jim Meyering.
21845         * config/prev-version.txt: New.
21846         * config/move-if-change: New, for GNU libc.
21848 2001-06-06  Pavel Roskin  <proski@gnu.org>
21850         * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
21852 2001-06-06  Akim Demaille  <akim@epita.fr>
21854         * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
21855         properly when $1 is not a literal.
21856         Fixes PR Autoconf/187, reported by Bram Moolenaar.
21858 2001-06-06  Akim Demaille  <akim@epita.fr>
21860         Invoking AC_COPYRIGHT before AC_INIT fails.
21862         * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
21863         * acgeneral.m4 (_m4_divert(VERSION_FSF))
21864         (_m4_divert(VERSION_USER)): New.
21865         (AC_COPYRIGHT): $2 is the diversion to use.
21866         (_AC_INIT_COPYRIGHT): Use the FSF diversion.
21867         (AC_INIT): Remove dead comments as now it's commutative.
21869 2001-06-06  Akim Demaille  <akim@epita.fr>
21871         * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
21872         PR autoconf/187.
21874 2001-06-05  Akim Demaille  <akim@epita.fr>
21876         * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
21877         can be empty.
21878         `*dir' variables cannot be NONE.
21879         Reported by Mark Kettenis.
21881 2001-06-05  Paul Eggert  <eggert@twinsun.com>
21883         * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
21885 2001-06-04  Akim Demaille  <akim@epita.fr>
21887         * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
21888         (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
21889         (AC_TR_SH): Move as...
21890         * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
21891         (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
21892         (AS_TR_SH): these.
21893         (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
21894         (_AS_TR_SH_PREPARE): New.
21895         (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
21896         * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
21898 2001-06-02  Akim Demaille  <akim@epita.fr>
21900         * Makefile.am (.m4.m4f): Pass the options first.
21901         Fixes PR autoconf/182.
21903 2001-06-02  Nathan Sidwell  <nathan@codesourcery.com>
21905         GNU getopt, when POSIXLY_CORRECT does not permute options and
21906         arguments.  So pass the options first.
21907         Fixes PR autoconf/184.
21909         * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
21910         (run_m4): Remove files.
21911         (run_m4f): Remove.
21912         Update remainder of script to use them.
21913         (for warning in): Do not use a literal comma as it will not be
21914         split by IFS.
21916 2001-06-02  Christian Marquardt  <marq@gfz-potsdam.de>
21918         * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
21919         Fortran compilers to check.
21920         (_AC_PROG_F77_V): Add '-###' as a possible option to print
21921         information on library and object files.
21922         (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
21923         to check.
21925 2001-06-02  Akim Demaille  <akim@epita.fr>
21927         * autom4te.in (Request::@request): Declare with `vars', not `my',
21928         as it prevents updates via `do FILENAME'.
21930 2001-06-02  Akim Demaille  <akim@epita.fr>
21932         * configure.in (standards_texi): Remove, dead code.
21934 2001-06-02  Akim Demaille  <akim@epita.fr>
21936         * autom4te.in: New.
21938 2001-06-02  Pavel Roskin  <proski@gnu.org>
21940         * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
21941         for signals other than 0 - exit with code 1.
21942         * m4sh.m4 (AS_TMPDIR): Likewise.
21943         * autoconf.in: Likewise. Also don't rely on exit == exit $?.
21944         * autoheader.in: Likewise.
21945         * autoreconf.in: Likewise.
21946         * tests/torture.at (Signal handling): New test for the above.
21948 2001-06-01  Akim Demaille  <akim@epita.fr>
21950         * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
21951         message.
21953 2001-05-31  Akim Demaille  <akim@epita.fr>
21955         * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
21956         Add copyright and comments.
21957         * acheaders: Add stdint.h.
21958         Suggested by Paul Eggert.
21960 2001-05-31  Akim Demaille  <akim@epita.fr>
21962         * atgeneral.m4 (AT_INIT): Use $SHELL.
21963         * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
21965 2001-05-31  Akim Demaille  <akim@epita.fr>
21967         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
21968         stdint.h.
21969         From Paul Eggert and Lars Hecking.
21971 2001-05-31  Akim Demaille  <akim@epita.fr>
21973         * tests/base.at: Adjust line numbers in error messages.
21975 2001-05-31  Akim Demaille  <akim@epita.fr>
21977         * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
21978         to emit the bangshe line.
21979         Reported by David Carter.
21981 2001-05-30  Steven G. Johnson  <stevenj@alum.mit.edu>
21983         * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
21984         Fortran (95) compilers to check.
21986 2001-05-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
21988         * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
21989         Macro Archive URL.
21991 2001-05-23  Pavel Roskin  <proski@gnu.org>
21993         * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
21994         _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
21995         (AC_PROG_CXXCPP): Likewise.
21997 2001-05-22  Akim Demaille  <akim@epita.fr>
21999         * config: New directory.
22000         * configure.in: AC_CONFIG_AUX_DIR it.
22001         * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
22003 2001-05-22  Akim Demaille  <akim@epita.fr>
22005         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
22006         * autoupdate.in: Specify the Emacs mode.
22007         * acversion.m4.in: Rename as...
22008         * acversion.m4: this.
22009         * tests/Makefile.am (CLEANFILES): More garbage.
22011 2001-05-22  Akim Demaille  <akim@epita.fr>
22013         * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
22014         Rename as...
22015         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
22016         these.
22018 2001-05-21  Akim Demaille  <akim@epita.fr>
22020         * configure.in: Bump to 2.50a.
22023         -----
22025         Local Variables:
22026         coding: utf-8
22027         End:
22029         Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
22030         2009, 2010 Free Software Foundation, Inc.
22032         This program is free software: you can redistribute it and/or
22033         modify it under the terms of the GNU General Public License as
22034         published by the Free Software Foundation, either version 3 of the
22035         License, or (at your option) any later version.
22037         This program is distributed in the hope that it will be useful,
22038         but WITHOUT ANY WARRANTY; without even the implied warranty of
22039         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
22040         General Public License for more details.
22042         You should have received a copy of the GNU General Public License
22043         along with this program.  If not, see
22044         <http://www.gnu.org/licenses/>.