Fix underquoted example in manual.
[autoconf.git] / ChangeLog
blobf6b82e5dd1db4b9b7f3c5cdd72c0b8108e272ea4
1 2009-03-24  Eric Blake  <ebb9@byu.net>
3         Fix underquoted example in manual.
4         * doc/autoconf.texi (Common Shell Constructs) <AS_TR_CPP>:
5         Properly m4-quote #.
6         * THANKS: Update spelling.
7         Reported by Matěj Týč.
9 2009-03-18  Eric Blake  <ebb9@byu.net>
11         Manual: mention more expr pitfalls.
12         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>:
13         Mention HP-UX limitation, and $ ambiguity.
14         * THANKS: Update.
15         Reported by Jens Schmidt, in http://bugs.debian.org/466990.
17 2009-03-17  Jim Meyering  <meyering@redhat.com>
19         Manual: fix a typo.
20         * lib/m4sugar/m4sh.m4: s/are/is/ => "there is no indirection"
22 2009-03-17  Eric Blake  <ebb9@byu.net>
24         Use test consistently in examples.
25         * doc/autoconf.texi (Subdirectories, Caching Results)
26         (Common Shell Constructs, Prerequisite Macros, Coding Style)
27         (Changed Results, Particular Programs, Defining Symbols):
28         Protect against arbitrary user strings.
29         (Multiple Cases): Mention why $fstype does not need protection.
30         Reported by Reuben Thomas.
32         Improve confusing section names.
33         * doc/autoconf.texi (Specifying Names): Rename node...
34         (Specifying Target Triplets): ...to this.
35         (Generic Programs): Adjust references.
36         * doc/install.texi (System Type): Touch up formatting.
37         * THANKS: Update.
38         Reported by Tim Freeman, in http://bugs.debian.org/312873.
40         Remove historical inaccuracy.
41         * doc/autoconf.texi (Portable Shell): Don't perpetuate myth about
42         #!/bin/sh needing a space.
43         Reported by Reuben Thomas.
45         Recommend AS_HELP_STRING more prominently.
46         * doc/autoconf.texi (External Software): Reduce mention of
47         hand-written help strings.
48         Reported by Reuben Thomas.
50 2009-03-16  Eric Blake  <ebb9@byu.net>
52         Fix 'make pdf'.
53         * doc/autoconf.texi (Balancing Parentheses): Fix usage of
54         @itemize.
55         Reported by Ralf Wildenhues, fix suggested by Karl Berry.
57 2009-03-14  Eric Blake  <ebb9@byu.net>
59         Resync upstream files.
60         * GNUmakefile: Run 'make fetch'.
61         * build-aux/announce-gen: Likewise.
62         * build-aux/config.guess: Likewise.
63         * build-aux/config.sub: Likewise.
64         * build-aux/gnupload: Likewise.
65         * build-aux/texinfo.tex: Likewise.
66         * build-aux/vc-list-files: Likewise.
67         * doc/gnu-oids.texi: Likewise.
68         * doc/standards.texi: Likewise.
70 2009-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72         New test for SunStudio `restrict' handling.
73         * tests/c.at (AC_C_RESTRICT and C++): New test.
74         Prompted by bug report from Rolf Vandevaart.
76 2009-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78         Manual: testsuite depends on package.m4.
79         * doc/autoconf.texi (Making testsuite Scripts): In the example
80         makefile snippet, $(TESTSUITE) depends on $(srcdir)/package.m4.
82 2009-03-02  Allan Caffee  <allan.caffee@gmail.com>  (tiny change)
84         Fix a typo in comment for AS_LITERAL_IF.
85         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Update a comment that fell
86         out of date when this function was moved/renamed in 59ecd766.
87         * THANKS: Update.
89 2009-03-02  Eric Blake  <ebb9@byu.net>
91         Improve wording for AS_ESCAPE.
92         * doc/autoconf.texi (Common Shell Constructs) <AS_ESCAPE>: Touch
93         up documentation.
94         * lib/m4sugar/m4sh.m4 (_AS_ESCAPE): Fix comment typos.
95         Reported by Ralf Wildenhues.
97 2009-02-24  Eric Blake  <ebb9@byu.net>
99         Use pkgdatadir consistently.
100         * bin/Makefile.am (edit): Substitute pkgdatadir, not datadir.
101         * lib/Makefile.am (edit): Likewise.
102         * lib/autom4te.in (Autoconf-without-aclocal-m4, Autotest, M4sh)
103         (M4sugar): Use @pkgdatadir@, not @datadir@.
104         * bin/autoheader.in ($datadir): Likewise.
105         * bin/autom4te.in ($datadir): Likewise.
106         * bin/autoreconf.in ($datadir): Likewise.
107         * bin/autoscan.in ($datadir): Likewise.
108         * bin/autoupdate.in ($datadir): Likewise.
109         * bin/ifnames.in ($datadir): Likewise.
110         * doc/autoconf.texi (Installation Directory Variables): Update
111         example to be consistent; focus on $(bindir) as an autoconf
112         variable, and mention that $(pkgdatadir) comes from automake.
113         Reported by Reuben Thomas.
115 2009-02-19  Eric Blake  <ebb9@byu.net>
117         Use m4_translit more efficiently in AS_ESCAPE.
118         * lib/m4sugar/m4sh.m4 (_AS_ESCAPE): Alter API to take first byte
119         of set separately from rest.
120         (AS_ESCAPE, _AS_QUOTE_MODERN, AS_TR_SH, AS_VAR_GET): Adjust
121         callers.
122         * lib/autoconf/autoheader.m4 (AH_VERBATIM): Avoid duplicate
123         characters in translit request.
124         * doc/autoconf.texi (Common Shell Constructs) <AS_ESCAPE>:
125         Document the macro.
126         * NEWS: Likewise.
128         Mention recently documented macros.
129         * NEWS: Update list of new documentation.
131 2009-02-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
133         Add index for config.site.
134         * doc/autoconf.texi (Site Defaults): Add index for config.site.
135         * THANKS: Update.
136         Report by Stephen P. Schaefer.
138 2009-02-12  Eric Blake  <ebb9@byu.net>
140         Fix m4_set speed regression introduced 2008-12-18.
141         * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): Alter API to avoid
142         creating larger argument on each iteration.
143         (m4_stack_foreach_sep, m4_stack_foreach_sep_lifo)
144         (_m4_set_contents_2): Adjust all four-argument callers.
146 2009-02-05  Eric Blake  <ebb9@byu.net>
148         Mention new AC_DEFUN_ONCE clients.
149         * NEWS: Mention recent semantic changes.
150         Reported by Ralf Wildenhues.
152 2009-02-03  Eric Blake  <ebb9@byu.net>
154         Use AC_DEFUN_ONCE for some one-shot AC_PROG macros.
155         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Switch to
156         AC_DEFUN_ONCE, since this is a one-shot macro.
157         (AC_PROG_INSTALL): Likewise.
159 2009-02-03  Eric Blake  <ebb9@byu.net>
161         Mention that packagers should not pre-set CFLAGS.
162         * doc/autoconf.texi (Preset Output Variables) <CFLAGS>: Copy
163         advice given by automake on handling variables reserved by GNU
164         Coding Standards.
165         Reported by Karl Berry.
167         Document lib64 in config.site.
168         * doc/autoconf.texi (Site Defaults): Fix typo in FHS sample file.
169         Mention use of lib64.
170         * THANKS: Update.
171         Reported by Tom Browder, with help from Peter Breitenlohner.
173 2009-01-28  Eric Blake  <ebb9@byu.net>
175         Use AC_DEFUN_ONCE for uncontroversial one-shot macros.
176         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Switch to
177         AC_DEFUN_ONCE, since this is a one-shot macro.
178         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
179         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD)
180         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Likewise.
182 2009-01-28  Eric Blake  <ebb9@byu.net>
184         Reduce blank lines in AC_DEFUN_ONCE macros.
185         * lib/m4sugar/m4sugar.m4 (m4_defun_once): Avoid redundant blank
186         line when a defun_once macro is required.
187         (_m4_defun_once): New helper macro, for less memory use.
188         * tests/m4sugar.at (m4@&t@_require: nested): Adjust test.
190         Silence another false positive expand-before-require.
191         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro_outer)
192         (_m4_defun_epi_outer, _m4_require_call, m4_provide): Track name
193         that caused a diversion change, not just diversion number.
194         (m4_require): Factor...
195         (_m4_require_check): ...into new macro, which also checks whether
196         diversion that performed the expansion has been collected.
197         * tests/m4sugar.at (m4@&t@_require: nested): Enhance test.
198         Reported by Ralf Wildenhues.
200 2009-01-28  Eric Blake  <ebb9@byu.net>
202         Fix AC_C_RESTRICT for Sun Studio 12 C++.
203         * lib/autoconf/c.m4 (AC_C_RESTRICT): Newer Sun Studio C provides
204         __restrict__ rather than _Restrict, which still trips up Sun
205         Studio 12 C++.
206         * THANKS: Update.
207         Reported by Rolf Vandevaart.
209 2009-01-28  Eric Blake  <ebb9@byu.net>
211         Fix years in copyright notices.
212         * lib/m4sugar/m4sugar.m4 (m4_copyright_condense): New macro,
213         undocumented for now.
214         * lib/m4sugar/Makefile.am (version.m4): Add m4_PACKAGE_YEAR,
215         m4_PACKAGE_URL.
216         (RELEASE_YEAR): New macro, copied from bin/Makefile.am.
217         * lib/autoconf/general.m4 (_AC_COPYRIGHT_YEARS): New macro.
218         (AC_COPYRIGHT): Add undocumented third parameter.
219         (_AC_INIT_COPYRIGHT): Avoid need to bump copyright years.
220         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
221         * lib/autotest/general.m4 (AT_INIT): Likewise.
222         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Likewise.
223         (AT_COPYRIGHT): Add undocumented third parameter.
224         * tests/local.at (AT_COPYRIGHT): Don't add an extra copyright
225         parameter; the generic copyright given by autotest is sufficient
226         since we are the package that owns autotest.
228 2009-01-27  Eric Blake  <ebb9@byu.net>
230         Use URLs in --help output, part 3: testsuite.
231         * doc/autoconf.texi (Writing Testsuites): Mention autotest
232         namespace.
233         (Writing Testsuites) <AT_INIT>: Mention mandatory macros.
234         (Making testsuite Scripts): Document AT_PACKAGE_URL.
235         * tests/Makefile.am (package.m4): Follow our own advice.
236         * lib/autotest/general.m4 (AT_INIT): Give the user a hint about
237         package.m4.  Enhance --help output.
238         (_AT_COPYRIGHT_YEARS): New macro, to make copyright bump easier.
240         Use URLs in --help output, part 2: configure.
241         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump copyright
242         date.
243         (_AC_INIT_PACKAGE): Support optional URL parameter, mapped to
244         AC_PACKAGE_URL.
245         (_AC_INIT_DEFAULTS, _AC_INIT_PREPARE): Substitute it.
246         (_AC_INIT_HELP): Use it in './configure --help' output.
247         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise, for
248         './config.status --help'.  Bump copyright date.
249         * doc/autoconf.texi (Initializing configure) <AC_INIT>: Document
250         new parameter.
251         * NEWS: Likewise.
252         * tests/tools.at (autoheader): Adjust test.
253         * tests/torture.at (@%:@define header templates)
254         (Torturing config.status): Likewise.
256         Use URLs in --help output, part 1: autoconf executables.
257         * bin/autoconf.as (usage): Make output consistent with recent
258         change in gnulib version-etc module.
259         * bin/autoheader.in ($help): Likewise.
260         * bin/autom4te.in ($help): Likewise.
261         * bin/autoreconf.in ($help): Likewise.
262         * bin/autoscan.in ($help): Likewise.
263         * bin/autoupdate.in ($help): Likewise.
264         * bin/ifnames.in ($help): Likewise.
266 2009-01-27  Peter Breitenlohner  <peb@mppmu.mpg.de>  (tiny change)
268         Quote traced macros passed from autom4te to M4.
269         * bin/autom4te (handle_m4): Apply shell_quote to macro names.
270         * tests/tools.at (autom4te --trace and unusual macro names): New
271         test.
272         * THANKS: Update.
274 2009-01-26  Eric Blake  <ebb9@byu.net>
276         Improve AC_DEFUN_ONCE semantics.
277         * lib/m4sugar/m4sugar.m4 (m4_defun_once): Rewrite to be no-op,
278         rather than warning, on second use, and make sure first use never
279         occurs out of order.
280         * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
281         Enhance test.
282         * tests/base.at (AC_REQUIRE & AC_DEFUN_ONCE: [Require, expand],
283         (AC_REQUIRE & AC_DEFUN_ONCE: [Expand, require]): Adjust tests.
284         * NEWS: Document this.
285         * doc/autoconf.texi (Macro Definitions) <AC_DEFUN>: Mention
286         AC_DEFUN_ONCE.
287         (Prerequisite Macros) <AC_REQUIRE>: Likewise.
288         (Expanded Before Required): Likewise.
289         (One-Shot Macros) <AC_DEFUN_ONCE>: Document new semantics.
290         Reported by Bruno Haible, with suggestion by Paolo Bonzini.
292 2009-01-24  Eric Blake  <ebb9@byu.net>
294         Fix typos in recent patches.
295         * lib/m4sugar/m4sugar.m4: Improve m4_defun comments.
296         * doc/autoconf.texi (Expanded Before Required): Fix typos.
297         Reported by Ralf Wildenhues.
299         Revert change to AC_DIR_HEADER.
300         * lib/autoconf/headers.m4 (AC_DIR_HEADER): Explicitly expanding
301         AC_HEADER_DIRENT no longer triggers a warning, and helps the user
302         who decides they don't need the obsolete AC_FUNC_CLOSEDIR_VOID.
303         Reported by Paolo Bonzini.
305 2009-01-22  Eric Blake  <ebb9@byu.net>
307         Silence a false positive expand-before-require case.
308         * lib/m4sugar/m4sugar.m4 (m4_provide): Track the diversion in
309         which a macro was provided.
310         (m4_require): Compare diversion numbers, rather than m4_require
311         nesting, when determining direct requires.
312         * tests/m4sugar.at (m4@&t@_require: nested): Test it.
313         Reported by Ralf Wildenhues, affecting Libtool.
315 2009-01-21  Eric Blake  <ebb9@byu.net>
317         Fix out-of-order expansion with expand-before-require.
318         * lib/m4sugar/m4sugar.m4 (m4_require): Redundantly expand a
319         required macro when issuing expand-before-require warning.
320         * doc/autoconf.texi (Prerequisite Macros): Adjust documentation.
321         (Expanded Before Required): New node.
322         * tests/m4sugar.at (m4@&t@_require: nested): Adjust test.
323         * NEWS: Mention this fix.
324         Suggested by Bruno Haible.
326         Warn if macro is provided before indirectly required.
327         * lib/m4sugar/m4sugar.m4 (m4_provide): Track the set of all macros
328         provided since last outermost defun.
329         (_m4_defun_pro_outer): Empty the set.
330         (_m4_require_call): Distinguish between direct and indirect
331         requires, and remove required macros from the set.
332         (m4_require): Check the set, in order to warn.
333         * tests/m4sugar.at (m4@&t@_require: nested): Remove xfail, and add
334         test case for direct requires.
336 2009-01-20  Eric Blake  <ebb9@byu.net>
338         Clean up some bugs caught by preliminary dependency validation.
339         * lib/autoconf/headers.m4 (AC_DIR_HEADER): Don't invoke
340         AC_HEADER_DIRENT, since AC_FUNC_CLOSEDIR_VOID requires it.
341         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
342         (_AS_SHELL_SANITIZE): Fix quoting bugs.
344 2009-01-19  Eric Blake  <ebb9@byu.net>
346         Improve AC_REQUIRE documentation.
347         * doc/autoconf.texi (Macro Definitions) <AC_DEFUN>: Add @defmac,
348         and mention interaction with AC_REQUIRE.
349         (Prerequisite Macros) <AC_REQUIRE>: Give more detail on user
350         ordering constraint bug, and how to fix it.
351         * tests/m4sugar.at (m4@&t@_require: nested): New test.
353         Speed up m4_require.
354         * lib/m4sugar/m4sugar.m4 (_m4_divert_dump): Change semantics to
355         always be defined, as either empty or a number.
356         (_m4_defun_pro_outer, _m4_defun_epi_outer): Treat _m4_divert_dump
357         as a stack, rather than a one-shot macro.
358         (_m4_require_call): Expect third argument to be pre-expanded.
359         (m4_divert_require, m4_require): Adjust clients accordingly.
360         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Likewise.
362 2009-01-17  Eric Blake  <ebb9@byu.net>
364         Avoid underfull hbox.
365         * doc/autoconf.texi (Installation Directory Variables): Reword to
366         fit on line.
368 2009-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
370         Ignore `set -e'-related failure of NetBSD sh.
371         * tests/m4sh.at (AS@&t@_EXIT): Skip test if (NetBSD) shell
372         fails to finish EXIT trap after set -e.
374 2009-01-06  Eric Blake  <ebb9@byu.net>
376         Maintainer cleanups.
377         * cfg.mk (web-manual): Use new feature of gendocs.
378         (fetch): Fetch gendocs.
379         * Makefile.am (EXTRA_DIST): Distribute new file.
380         * doc/Makefile.am (EXTRA_DIST): Likewise.
381         * .gitattributes: Ignore whitespace in upstream files.
382         * HACKING (Other web updates): Update Free Software Directory
383         instructions.
384         (Upload): No longer mention xdelta.
385         * maint.mk (xd-delta): Likewise.
386         * build-aux/gendocs.sh: New upstream file.
387         * doc/gendocs_template: Likewise.
388         * build-aux/announce-gen: Resync from upstream.
389         * build-aux/config.guess: Likewise.
390         * build-aux/config.sub: Likewise.
391         * build-aux/gnupload: Likewise.
392         * build-aux/texinfo.tex: Likewise.
394 2008-12-30  Eric Blake  <ebb9@byu.net>
396         Make it easier to track diversion bugs.
397         * lib/m4sugar/m4sugar.m4 (_m4_divert_raw, _m4_undivert): New
398         internal macros, which are easier to trace than m4_builtin.
399         (m4_cleardivert, m4_divert, m4_divert_push, m4_divert_pop)
400         (m4_undivert): Use them.
401         (_m4_require_call): Likewise.  Use fewer macros.
402         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix typo.
404 2008-12-26  Bruno Haible  <bruno@clisp.org>
406         Improve multiarch detection.
407         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Make detection of options
408         indicating a universal build more reliable.
410 2008-12-28  William Pursell  <bill.pursell@gmail.com>  (tiny change)
412         Use AS_CASE in documented example.
413         * doc/autoconf.texi (Using the System Type): Use AS_CASE in
414         example instead of raw case.
416 2008-12-23  Eric Blake  <ebb9@byu.net>
418         Make m4_dumpdef more useful with M4 1.6.
419         * lib/m4sugar/m4sugar.m4 (_m4_dumpdef): New macro.
420         (m4_init): Install it for new enough m4.
421         * tests/m4sugar.at (m4@&t@_dumpdef): Enhance test.
422         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
423         lack of sorting.
425 2008-12-24  Bruno Haible  <bruno@clisp.org>
427         Improve INSTALL for HP-UX.
428         * doc/install.texi (Particular Systems): For HP-UX, also recommend
429         -D_XOPEN_SOURCE=500. Needed for the declaration of mbstate_t on
430         HP-UX 11.11.
432 2008-12-22  Bruno Haible  <bruno@clisp.org>
434         Improve INSTALL for Haiku.
435         * doc/install.texi (Particular Systems): Add a recommendation
436         which prefix to use on Haiku.
438 2008-12-19  Eric Blake  <ebb9@byu.net>
440         Fix typo in previous commit.
441         * doc/autoconf.texi (Set manipulation Macros) <m4_set_map_sep>:
442         Fix typo.
444         Document some recently added macros.
445         * lib/m4sugar/m4sugar.m4 (m4_map_args_w): Add optional sep
446         parameter.
447         * doc/autoconf.texi (Looping constructs) <m4_map_args_sep>
448         <m4_map_args_w, m4_stack_foreach, m4_stack_foreach_sep>: Document
449         new macros.
450         (Set manipulation Macros) <m4_set_map_sep>: Likewise.
451         * tests/m4sugar.at (m4@&t@_stack, M4 loops): Enhance tests.
452         * NEWS: Document new macros.
454 2008-12-18  Eric Blake  <ebb9@byu.net>
456         Fix separator in m4_stack_foreach_sep.
457         * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): Separate separator
458         from prefix.
459         * tests/m4sugar.at (m4@&t@_stack): Enhance test.
461 2008-12-18  Eric Blake  <ebb9@byu.net>
463         Mention limitation of M4 1.4.x on builtin tokens.
464         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Document
465         ramification of M4 1.4.x's inability to pass builtin tokens
466         through text macros.
467         (Evaluation Macros) <m4_curry>: Likewise.
468         * tests/m4sugar.at (m4@&t@_defn): Enhance test.
469         * NEWS: Mention subtle change in m4_dumpdef semantics.
471         Document m4_version_prereq.
472         * doc/autoconf.texi (Number processing Macros)
473         <m4_version_prereq>: Add documentation.
474         * NEWS: Mention it.
475         Reported by Bruno Haible.
477 2008-12-10  Jim Meyering  <meyering@redhat.com>
479         AC_HEADER_ASSERT: don't say assertions are disabled when they're not
480         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Do not make configure
481         report "checking whether to enable assertions... no", when they are
482         in fact enabled.  This is solely a bug in the output of configure.
483         In spite of saying "no", NDEBUG was not defined in that case.
484         Also, as noted by Eric Blake, leave assertions enabled upon
485         --enable-assert=INVALID.
487 2008-12-09  Eric Blake  <ebb9@byu.net>
489         Fix m4_location inside m4_wrap with m4 1.4.5.
490         * lib/m4sugar/m4sugar.m4 (m4_undefine): Redefine m4_location
491         inside wrapped text if older m4 is detected.
492         Reported by William Pursell.
494 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
495         and Eric Blake  <ebb9@byu.net>
497         Fix AC_HEADER_ASSERT w.r.t. --enable-assert.
498         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Honor --enable-assert,
499         rather than treating it as a synonym for --disable-assert.
500         * NEWS: Document the fix.
502 2008-12-06  William Pursell  <bill.pursell@gmail.com>  (tiny change)
504         Fix AC_HEADER_ASSERT to honor --enable-assert, rather than
505         treat --enable-assert and --disable-assert equivalently.
506         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Check value of $enableval.
508 2008-12-05  William Pursell  <bill.pursell@gmail.com>  (tiny change)
510         Fix some typos and grammatical errors in documentation.
511         * doc/autoconf.texi: Clean up some bad use of English.
513 2008-12-03  Eric Blake  <ebb9@byu.net>
515         Improve AC_STATE_SAVE.
516         * tests/local.at (AC_STATE_SAVE): Avoid ls -1, and use one less
517         process by hoisting the uniqueness check into sed.
518         * doc/autoconf.texi (Limitations of Usual Tools) <ls>: Mention
519         MacOS bug.
521 2008-12-02  Eric Blake  <ebb9@byu.net>
523         Avoid MacOS readdir bug in testsuite.
524         * tests/local.at (AC_STATE_SAVE): Avoid spurious failures due to
525         duplicated ls entries.
526         * THANKS: Update.
527         Reported by Bruce Dugan and others.
529 2008-11-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
531         * lib/autotest/general.m4 (AT_JOB_FIFO_FD): Hide zsh 4.3.4
532         error messages about `set -m'.
534 2008-11-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
536         Fix a couple of test failures with dash.
537         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Normalize
538         exit status of `cd'.
539         * tests/m4sh.at (AS_MESSAGE_LOG_FD): Remove script before
540         regeneration, to avoid timing effects.
542 2008-11-25  Eric Blake  <ebb9@byu.net>
544         Add m4_cleardivert.
545         * lib/m4sugar/m4sugar.m4 (m4_cleardivert): New macro.
546         * lib/autotest/general.m4 (AT_INIT): Use it.
547         * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Likewise.
548         * tests/m4sugar.at (m4@&t@_divert_stack): Test it.
549         * doc/autoconf.texi (Diversion support) <m4_cleardivert>: Document
550         it.
551         * NEWS: Likewise.
552         Suggested by Paolo Bonzini.
554         Add safety check for m4_expand vs. diversions.
555         * lib/m4sugar/m4sugar.m4 (m4_expand): Make more robust against
556         diverted text.
557         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Document new
558         safety check.
560 2008-11-24  Eric Blake  <ebb9@byu.net>
562         Fix typo in AS_MESSAGE_LOG_FD patch.
563         * lib/m4sugar/m4sh.m4 (AS_ERROR): Check correct condition.
565 2008-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
567         More reliable signal handling in Autotest.
568         * lib/autotest/general.m4 (Driver loop): Rewrite signal handler.
569         Start parallel jobs in their own process group, enabling job
570         control in the shell if possible, for better signal handling.
571         Deal with INT, TERM, and HUP in the testsuite driver.  In the
572         parallel driver, propagate TSTP to jobs either as TSTP or as
573         STOP (to avoid fork bombs with ksh).
574         Inside the job processes, add PIPE handler to write back the
575         job token, so the master process does not hang.
576         Disable the parallel driver if job control is not provided or if
577         trap does not understand signal names.
578         * tests/autotest.at (parallel autotest and signals): New test,
579         exercises INT, TERM, and PIPE, serial and parallel, with and
580         without `make' in the loop.
581         Kudos to Richard Stevens for writing APUE.
583 2008-11-22  Eric Blake  <ebb9@byu.net>
585         Fix testsuite failure on Solaris.
586         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Normalize
587         failure status to 1.
589 2008-11-21  Eric Blake  <ebb9@byu.net>
591         Clean up AS_MESSAGE_LOG_FD usage.
592         * lib/m4sugar/m4sh.m4 (AS_MESSAGE_FD, AS_MESSAGE_LOG_FD)
593         (AS_ORIGINAL_STDIN_FD): Provide default M4sh values.
594         (_AS_ECHO_LOG, AS_MESSAGE, _AS_ERROR_PREPARE, AS_ERROR): Simplify
595         usage.
596         (AS_INIT_GENERATED): Don't shuffle an unchanged AS_MESSAGE_FD.
597         * tests/m4sh.at (AS@&t@_INIT_GENERATED): Update test.
598         (AS@&t@_MESSAGE_FD): New test.
599         * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
600         Give more details about fd manipulation.
601         (File Descriptor Macros): Describe M4sh defaults for the fds.
603 2008-11-21  Eric Blake  <ebb9@byu.net>
605         Use shell function for AS_ERROR.
606         * lib/m4sugar/m4sh.m4 (_AS_ERROR_PREPARE): New macro, defining a
607         new shell function.
608         (AS_ERROR): Use it.
609         (_AS_LINENO_PREPARE): Break circular dependency.
610         (AS_PREPARE, _AS_PREPARE): Initialize for child scripts.
612 2008-11-21  Eric Blake  <ebb9@byu.net>
614         Fix typos in recent testsuite improvements.
615         * lib/autotest/general.m4 (AT_INIT) <at_fn_check_prepare_dynamic>:
616         Fix typo.
617         * NEWS: Clarify the potential impact to users.
618         * tests/autotest.at (AT_DATA_AUTOTEST): New macro, patterned after
619         AT_DATA_M4SUGAR.
620         (AT_CHECK_AT_PREP, AT_CHECK_AT_TITLE): Use it.
621         (unusual file names): Test that the recent echo fix does not
622         regress.  Fix quoting bug that made the test a no-op.
623         Reported by Paolo Bonzini and Ralf Wildenhues.
625 2008-11-21  Eric Blake  <ebb9@byu.net>
627         Use modern m4sh constructs in autoconf.
628         * bin/autoconf.as (exit_missing_arg, getopt): Use AS_ERROR, rather
629         than AS_EXIT.
631         Change the semantics of AS_EXIT without argument.
632         * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE): When defaulting, use $?
633         even if it is 0.
634         (AS_ERROR): Guarantee non-zero status.
635         * bin/autoconf.as (exit_missing_arg, getopt): Revert prior change;
636         we want non-zero status.
637         * tests/m4sh.at (AS@&t@_EXIT): Update test accordingly.
638         * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Update
639         the documentation.
640         <AS_SET_STATUS>: Don't overly restrict implementation.
641         (Printing Messages) <AC_MSG_ERROR>: Describe better default.
642         Suggestions by Paolo Bonzini and Ralf Wildenhues.
644 2008-11-21  Eric Blake  <ebb9@byu.net>
646         Add @anchors within Builtins and Usual Tools lists.
647         * doc/autoconf.texi (Limitations of Builtins)
648         (Limitatations of Usual Tools): Add anchors for tools called out
649         by name.  Adjust callers to narrow in on tool of interest.
651         Move case statement style discussion to m4 quoting section.
652         * doc/autoconf.texi (Limitations of Builtins): Move comparison of
653         quoting styles...
654         (Balancing Parentheses): ...to this new node.
655         Suggested by Ralf Wildenhues.
657 2008-11-20  Eric Blake  <ebb9@byu.net>
659         Factor more common code out of AT_CHECK into shell function.
660         * lib/autotest/general.m4 (_AT_CHECK): Avoid echo bug if AT_LINE
661         starts with -.  Move preparations...
662         (AT_INIT) <at_fn_check_prepare_trace>
663         <at_fn_check_prepare_notrace, at_fn_check_prepare_dynamic>:
664         ...into these new shell functions.
665         <at_fn_check_newline>: Inline into only caller.
666         (_AT_DECIDE_TRACEABLE): Use them to condense testsuite size.
668 2008-11-20  Eric Blake  <ebb9@byu.net>
670         Handle version numbers as decimal, even if they start with 0.
671         * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Avoid
672         interpreting leading zeros as octal.
674 2008-11-20  Eric Blake  <ebb9@byu.net>
676         Speed up AT_CHECK.
677         * lib/autotest/general.m4 (AT_CHECK, AT_CHECK_UNQUOTED): Expand
678         third and fourth arguments once.
679         (_AT_CHECK): Don't re-expand expected output.  Rearrange code for
680         fewer scans of arguments.
681         (AT_CHECK): Update caller.
682         (AT_INIT) <at_fn_filter_trace>: Drop parameter.
683         * tests/m4sugar.at (m4@&t@_split): Protect test with
684         quadrigraphs.
686         Fix XFAIL related to AT_CHECK.
687         * lib/autotest/general.m4 (AT_CHECK, AT_CHECK_UNQUOTED): Expand
688         first argument once.
689         (_AT_CHECK): Don't re-expand commands.
690         * tests/autotest.at (Multiline command from M4 expansion): Remove
691         XFAIL.
692         * tests/tools.at (autoupdating AU_ALIAS): Quote unbalanced paren.
693         * NEWS: Document the fallout.
695 2008-11-20  Eric Blake  <ebb9@byu.net>
697         Reduce forks in AC_DEFINE.
698         * lib/autoconf/general.m4 (_AC_DEFINE_Q_PRINT): New macro.
699         (_AC_DEFINE_Q): Use it to avoid forks for all AC_DEFINE and most
700         AC_DEFINE_UNQUOTED.
701         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Properly quote #.
702         * tests/torture.at (Substitute and define special characters):
703         (Define to a 2000-byte string): Enhance tests to cover
704         AC_DEFINE_UNQUOTED.
705         (@%:@define header templates): Enhance test to cover #.
707 2008-11-20  Eric Blake  <ebb9@byu.net>
709         Improve m4_expand robustness, part 2.
710         * lib/m4sugar/m4sugar.m4 (m4_expand): Support unterminated
711         comments, by wrapping old implementation...
712         (_m4_expand): ...as this, and renaming old core...
713         (_m4_expand_): ...to this.
714         (m4_text_box): Use lighter-weight _m4_expand.
715         * lib/m4sugar/m4sh.m4 (_AS_DETECT_EXPAND)
716         (_AS_DETECT_BETTER_SHELL, AS_FUNCTION_DESCRIBE): Likewise.
717         * lib/autotest/general.m4 (AT_KEYWORDS): Likewise.
718         * tests/m4sugar.at (m4@&t@_expand): Enhance test.
719         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Likewise.
720         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Mention new
721         functionality.
723         Improve m4_expand robustness, part 1.
724         * lib/m4sugar/m4sugar.m4 (_m4_expand): Tolerate unquoted
725         unbalanced `)'.
726         * tests/m4sugar.at (m4@&t@_expand): New test.
728 2008-11-20  Eric Blake  <ebb9@byu.net>
730         Add m4_chomp, m4_esyscmd_s.
731         * lib/m4sugar/m4sugar.m4 (m4_esyscmd_e, m4_chomp, m4_chomp_all):
732         New macros.
733         * doc/autoconf.texi (Redefined M4 Macros) <m4_esyscmd_s>: Document
734         them.
735         (Text processing Macros) <m4_chomp>: Likewise.
736         * NEWS: Likewise.
737         * tests/m4sugar.at (m4@&t@_esyscmd_s): New test.
739         Remove _m4_index.
740         * lib/m4sugar/m4sugar.m4 (_m4_index): Delete; it is more efficient
741         to make callers guarantee a match.
742         (m4_init): Adjust caller.
743         * lib/autoconf/status.m4 (_AC_CONFIG_COMPUTE_DEST): Likewise.
744         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Likewise.
746         Describe different hacks for balancing ')' in case statements.
747         * doc/autoconf.texi (Limitations of Builtins) <case>: Add an
748         exposition on various quoting styles.
750 2008-11-20  Eric Blake  <ebb9@byu.net>
752         Speed up _AS_QUOTE.
753         * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE): Inline into...
754         (_AS_QUOTE): ...here, delete unused second paramenter, and factor
755         choice into...
756         (_AS_QUOTE_MODERN, _AS_QUOTE_OLD): ...new helpers.
758 2008-11-20  Alfred G. de Wijn  <dwijn@iluvatar.eu.org>  (tiny change)
760         For consistency, make temporary variable match language name.
761         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G, _AC_PROG_FC_V_OUTPUT):
762         Match the save/test variables' names to the FFLAGS/FCFLAGS being
763         saved.
764         * THANKS: Update.
766 2008-11-19  Eric Blake  <ebb9@byu.net>
768         Improve testsuite generation.
769         * tests/local.at (AT_DATA_M4SUGAR, AT_DATA_M4SH)
770         (AT_DATA_AUTOCONF): Escape all quadrigraphs, not just @&t@.  Use
771         fewer macros.
773 2008-11-18  Eric Blake  <ebb9@byu.net>
775         Use fn for shell functions, func for autoconf CHECK_FUNCS.
776         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Abbreviate shell
777         function names.
778         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE)
779         (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE, _AC_RUN_IFELSE)
780         (AC_CHECK_DECL, AC_COMPUTE_INT): Likewise.
781         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
782         (_AC_CHECK_HEADER_COMPILE, _AC_CHECK_HEADER_PREPROC): Likewise.
783         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, _AC_TYPE_INT)
784         (_AC_TYPE_UNSIGNED_INT, AC_CHECK_MEMBER): Likewise.
785         * lib/autotest/general.m4 (AT_INIT): Likewise.
786         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK, _AS_EXIT_PREPARE)
787         (AS_EXIT, AS_SET_STATUS, _AS_UNSET_PREPARE, _AS_MKDIR_P)
788         (_AS_MKDIR_P_PREPARE, _AS_VAR_APPEND_PREPARE, AS_VAR_APPEND)
789         (_AS_VAR_ARITH_PREPARE, AS_VAR_ARITH): Likewise.
790         * doc/autoconf.texi (Shell Functions): Likewise.
792 2008-11-18  Eric Blake  <ebb9@byu.net>
794         Alter default value of AS_EXIT.
795         * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE): Let as_func_exit
796         parameter be optional.
797         (AS_EXIT): Use it to make better default.
798         (_AS_DETECT_BETTER_SHELL): Use new default.
799         * bin/autoconf.as (exit_missing_arg, getopt): Likewise.
800         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
801         * tests/m4sh.at (AS@&t@_EXIT): Update test.
802         * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Mention
803         new default behavior.
804         (Limitations of Builtins) <trap>: Adjust to use new default.
805         * NEWS: Mention the semantic change.
806         Suggested by Ralf Wildenhues.
808         Update example to match actual Tru64 behavior.
809         * doc/autoconf.texi (Limitations of Builtins) <trap>: Correct
810         the example.
811         Reported by Ralf Wildenhues.
813         Add AS_SET_STATUS, make AS_EXIT more efficient.
814         * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE, AS_SET_STATUS): New
815         macros.
816         (AS_EXIT): Rewrite to avoid forks.
817         (_AS_SHELL_SANITIZE): Avoid AS_EXIT prior to shell functions.
818         (AS_PREPARE, _AS_PREPARE): Add new preparation.
819         * doc/autoconf.texi (Common Shell Constructs) <AS_SET_STATUS>:
820         Document.
821         * NEWS: Mention new macro.
822         * tests/m4sh.at (AS@&t@_EXIT): New test.
823         (BASENAME_TEST): Sort.
825         Document Tru64 bug with 'set -e'.
826         * doc/autoconf.texi (Limitations of Builtins) <trap>: Mention a
827         bug in mixing 'set -e' with 'trap .. 0'.
828         Reported by Ralf Wildenhues.
830         Document a Solaris /bin/sh bug with 'set -e'.
831         * doc/autoconf.texi (Shell Functions): Mention the bug.
833 2008-11-17  Eric Blake  <ebb9@byu.net>
835         Detect empty list in AS_FOR.
836         * lib/m4sugar/m4sh.m4 (AS_FOR): Handle iteration over $@
837         properly.
838         * tests/m4sh.at (AS@&t@_FOR): Enhance test to catch it.
839         Reported by Paolo Bonzini.
841 2008-11-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
843         Use a different workaround for an automake quirk.
844         * tests/Makefile.am (AUTOMAKE_OPTIONS): Remove.
845         (distclean_generic): New helper variable, to fool automake.
846         ($(distclean_generic)): Depend on clean-local, to prevent
847         the race in the two rules with accessing and removing
848         $(TESTSUITE).
849         Report by Eric Blake.
851         * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Simplify, avoid
852         unbalanced parentheses from last change.
853         Spotted by Eric Blake, fix suggested by Paolo Bonzini.
855         Fix exit status of expr version of as_func_arith.
856         * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Count an exit
857         status of 1 of expr also as success, to avoid failure if the
858         computation result is zero.  Fixes test failures with IRIX sh,
859         where the expr variant of as_func_arith is used.
861         Do not use read-only variable $status.
862         * tests/compile.at (AC_RUN_IFELSE): Use $estatus instead of
863         $status, for zsh.
865 2008-11-15  Eric Blake  <ebb9@byu.net>
867         Use the new AS_FOR function.
868         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Use new
869         abstraction for cleaner code.
870         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
872         Add AS_FOR, undocumented for now.
873         * lib/m4sugar/m4sh.m4 (AS_FOR): New macro.
874         * tests/m4sh.at (AS@&t@_FOR): New test.
875         Suggested by Paolo Bonzini.
877 2008-11-13  Eric Blake  <ebb9@byu.net>
879         Optimize single-argument loop.
880         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid forks when
881         loop only has one argument.
882         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
884 2008-11-13  Eric Blake  <ebb9@byu.net>
886         Fix AS_ESCAPE usage bugs.
887         * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
888         (_AS_VAR_ARITH_PREPARE): Expand macros prior to adding shell
889         escapes.
890         (AS_TR_SH, AS_VAR_GET): Use _AS_ESCAPE for speed.
891         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_SET>: Document
892         caveat due to conditional AS_ESCAPE.
893         * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
895 2008-11-12  Eric Blake  <ebb9@byu.net>
897         Whitespace reduction in configure.
898         * lib/autoconf/autoheader.m4 (AH_VERBATIM): Avoid empty lines.
899         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, AC_CHECK_FILES):
900         Likewise.
901         (_AC_DEFINE_Q): Restore empty line, since some clients in the wild
902         depend on it.
904 2008-11-12  Eric Blake  <ebb9@byu.net>
906         Make M4sh, not autoconf, guarantee sane $SHELL.
907         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Move setting of
908         SHELL...
909         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): ...to here.
910         * doc/autoconf.texi (Initialization Macros): Document the effect
911         on SHELL.
912         * tests/m4sh.at (AS@&t@_INIT_GENERATED): New test.
913         Reported by Ralf Wildenhues.
915 2008-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
917         Wrap keywords in `testsuite --list' output.
918         * lib/autotest/general.m4 (AT_INIT): Rewrite --list awk script,
919         avoid lint warnings from gawk, wrap keyword lists to stay below
920         80 characters per line if possible.
921         * tests/autotest.at (Keyword wrapping): New test.
923         * tests/local.at (AT_COPYRIGHT): Bump copyright years.
925         * doc/autoconf.texi (Conditional constructs, Macro Names): Fix
926         typos.
928 2008-11-10  Eric Blake  <ebb9@byu.net>
930         Work around <=m4-1.4.9 bug in m4_format.
931         * lib/m4sugar/m4sugar.m4 (_m4_index): New internal macro.
932         (m4_init): Only use it in older m4.
933         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Use it to avoid
934         m4_format bug in older m4.
935         * lib/autoconf/status.m4 (_AC_CONFIG_COMPUTE_DEST): Likewise.
936         Reported by Bob Proulx.
938 2008-11-10  Eric Blake  <ebb9@byu.net>
940         Match upstream standards.texi.
941         * doc/standards.texi: Resync from upstream.
942         * doc/fdl-1.3.texi: Rename...
943         * doc/fdl.texi: ...to this.
944         * doc/Makefile.am (autoconf_TEXINFOS, standards_TEXINFOS): Update
945         users.
946         * doc/autoconf.texi (GNU Free Documentation License): Likewise.
947         * cfg.mk (fetch): Likewise.
949         Yet more FDL 1.3 fallout.
950         * NEWS: Mention manual license change.
952 2008-11-10  Eric Blake  <ebb9@byu.net>
954         Avoid some regex uses.
955         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Use m4_format rather
956         than m4_bpatsubst to grab string prefix.
957         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER)
958         (_AC_CONFIG_REGISTER_DEST, AC_CONFIG_SUBDIRS): Likewise.
959         (_AC_FILE_DEPENDENCY_TRACE_COLON): Use m4_translit instead of
960         m4_bpatsubst to change bytes.
961         (_AC_CONFIG_DEPENDENCY_DEFAULT): Use m4_index rather than
962         m4_bmatch to find byte.
963         (_AC_CONFIG_COMPUTE_DEST): New helper macro.
965         Use more efficient macros in AC_CONFIG_SUBDIRS.
966         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS, AC_CONFIG_SUBDIRS): Use
967         m4_map_args_w.
968         (_AC_OUTPUT_FILE): Use m4_map_args_sep and m4_map_args.
969         (_AC_OUTPUT_FILE_ADJUST_DIR): New helper macro.
971         Use more efficient macros in AC_CHECK_FILES and AC_CHECK_DECLS.
972         * lib/autoconf/general.m4 (AC_CHECK_FILES): Use m4_map_args_w,
973         and avoid typo.
974         (AC_CHECK_DECLS, AC_CHECK_DECLS_ONCE): Use m4_map_args_sep.
975         (_AC_CHECK_FILES, _AC_CHECK_DECLS, _AC_CHECK_DECL_ONCE): New
976         helper macros.
977         (AC_LIBSOURCES): Use m4_map_args.
979         Use more efficient macros in AC_CHECK_TYPES.
980         * lib/autoconf/types.m4 (AC_CHECK_TYPES, AC_CHECK_MEMBERS): Use
981         m4_map_args_sep.
982         (_AC_CHECK_TYPES, _AC_CHECK_MEMBERS): New helper macros.
984         Use more efficient macros in AC_CHECK_HEADERS.
985         * lib/autoconf/headers.m4 (AH_CHECK_HEADERS)
986         (AH_CHECK_HEADERS_DIRENT): Rename...
987         (_AH_CHECK_HEADER, _AH_CHECK_HEADER_DIRENT): ...and take only one
988         argument, rather than a list.
989         (AC_CHECK_HEADERS, AC_CHECK_HEADERS_ONCE):
990         Adjust callers to use m4_map_args_w.
991         (AC_HEADER_DIRENT): Adjust caller to use m4_map_args.
992         (_AC_CHECK_HEADER_ONCE): New helper macro.
994         Use more efficient macros in AC_CHECK_FUNCS.
995         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): Rename...
996         (_AH_CHECK_FUNC): ...and take only one argument, rather than a
997         list.
998         (AC_CHECK_FUNCS, AC_CHECK_FUNCS_ONCE): Adjust callers to use
999         m4_map_args_w.
1000         (_AC_CHECK_FUNC_ONCE): New helper macro.
1001         (AC_REPLACE_FUNCS): Use m4_map_args_w.
1003         Use more efficient macro in AT_INIT.
1004         * lib/autotest/general.m4 (AT_INIT): Use m4_map_args.
1006 2008-11-10  Eric Blake  <ebb9@byu.net>
1008         More FDL 1.3 fallout.
1009         * cfg.mk (fetch): Add gnu-oids.texi, drop fdl.texi.
1010         * doc/Makefile.am (standards_TEXINFOS): Reflect upstream
1011         dependency changes.
1012         * doc/fdl.texi: Delete.
1013         * doc/gnu-oids.texi: New upstream file.
1014         * doc/standards.texi: Resync from upstream.
1015         * doc/make-stds.texi: Likewise.
1016         * build-aux/announce-gen: Likewise.
1017         * build-aux/texinfo.tex: Likewise.
1019 2008-11-10  Clinton Roy  <clinton.roy@gmail.com>  (tiny change)
1021         Pass autoreconf -I to aclocal -I
1022         * bin/autoreconf.in (parse_args): Pass --include to aclocal.
1023         * doc/autoconf.texi (autoreconf Invocation): Updates for above.
1024         * NEWS: Document it.
1025         * THANKS: Update.
1027 2008-11-10  Eric Blake  <ebb9@byu.net>
1029         Try 'print -r --' as a non-forking variant of 'printf %s\\n'.
1030         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Cater to Solaris ksh.
1031         * doc/autoconf.texi (Limitations of Builtins) <printf>: Document
1032         the print workaround.
1033         Idea by Paolo Bonzini.
1035 2008-11-10  Eric Blake  <ebb9@byu.net>
1037         Provide a section on all tools allowed in GNU Coding Standards.
1038         * doc/autoconf.texi (Limitations of Builtins) <read>: Sort.
1039         <wait>: Add section.
1040         (Limitations of Usual Tools) <awk>: Make table entry consistent.
1041         <chgrp, mkfifo, rmdir, sleep, sort, tar> Add sections.
1043 2008-11-09  Paolo Bonzini  <bonzini@gnu.org>
1045         Balance parentheses in _AC_CACHE_DUMP.
1046         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Balance parentheses
1047         without introducing \).
1049 2008-11-07  Eric Blake  <ebb9@byu.net>
1051         Further doc updates for AC_CHECK_HEADER change.
1052         * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
1053         new default, and make it more obvious that using [-] is generally
1054         broken.
1056 2008-11-07  Eric Blake  <ebb9@byu.net>
1058         * ChangeLog: Enforce UTF-8 encoding.
1060 2008-11-06  Eric Blake  <ebb9@byu.net>
1062         Skip preprocessor check in AC_CHECK_HEADERS_ONCE.
1063         * lib/autoconf/headers.m4 (_AC_HEADERS_EXPANSION): Provide fourth
1064         argument to speed up check.
1066 2008-11-06  Eric Blake  <ebb9@byu.net>
1068         Speed up AC_CHECK_TYPE.
1069         * lib/autoconf/types.m4 (AC_CHECK_TYPE): Factor out $@, and avoid
1070         regex when enough arguments are present.
1072 2008-11-06  Paolo Bonzini  <bonzini@gnu.org>
1074         Remove three forks per _AC_RUN_LOG_STDERR in the common case.
1075         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR): Avoid grep/rm/cat
1076         sequence when the program's stderr was empty, while providing a
1077         conftest.err file even in that case.
1078         (_AC_CACHE_DUMP): Fix mismatched parenthesis.
1080 2008-11-06  Paolo Bonzini  <bonzini@gnu.org>
1082         Change `present but cannot be compiled' behavior to use compiler result.
1083         * NEWS: Document it.
1084         * doc/autoconf.texi (Present But Cannot Be Compiled): Document it.
1085         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Implement it
1086         and adjust warning.
1087         * tests/semantics.at (AC_CHECK_HEADERS): Test new semantics.
1089 2008-11-05  Eric Blake  <ebb9@byu.net>
1091         Add m4_map_args_w.
1092         * lib/m4sugar/m4sugar.m4 (m4_map_args_w): New macro, undocumented
1093         for now.
1094         (_m4_split): Allow user control over separator.
1095         (m4_split): Adjust caller.
1096         (m4_foreach_w, m4_append_uniq_w, _m4_text_wrap): Rewrite to use
1097         m4_map_args_w.
1098         * tests/m4sugar.at (m4@&t@_append): Augment test keywords.
1099         (M4 loops): Test new interface.
1101         Use m4_set_map_sep in more places.
1102         * lib/m4sugar/m4sugar.m4 (m4_set_difference, m4_set_intersection)
1103         (m4_set_union): Use m4_set_map_sep rather than m4_set_foreach.
1104         * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
1105         Enhance documentation.
1106         <m4_set_foreach>: Mention faster alternative.
1107         (Looping constructs) <m4_foreach>: Likewise.
1109         Unify m4_set_foreach and m4_set_map.
1110         * lib/m4sugar/m4sugar.m4 (m4_set_map_sep): New macro, undocumented
1111         for now.
1112         (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
1113         (m4_set_map): Adjust callers.
1115         Use _m4_foreach in more places.
1116         * lib/m4sugar/foreach.m4 (m4_dquote_elt, m4_join, m4_joinall)
1117         (_m4_minmax, m4_set_add_all): Use _m4_foreach instead of
1118         m4_foreach.
1119         * lib/m4sugar/m4sugar.m4 (_m4_joinall): Use m4_map_args_sep
1120         instead of m4_foreach or m4_map_args.
1122         Unify _m4_foreach and _m4_map.
1123         * lib/m4sugar/m4sugar.m4 (_m4_map): Delete, merged with...
1124         (_m4_foreach): ...this.
1125         (m4_foreach, m4_map, m4_mapall, m4_map_sep, _m4_mapall_sep)
1126         (m4_map_args, m4_map_args_sep): Adjust callers.
1127         * lib/m4sugar/foreach.m4 (_m4_map): Rename...
1128         (_m4_foreach): ...to this, overwriting old definition.
1130 2008-11-04  Eric Blake  <ebb9@byu.net>
1132         Add m4_map_args_sep, undocumented for now.
1133         * lib/m4sugar/m4sugar.m4 (m4_map_args_sep): New macro.
1134         (_m4_map): Change API to cover more of m4_map*.
1135         * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new API.
1136         (m4_map_args): Delete.
1137         * tests/m4sugar.at (m4@&t@_map_args and m4@&t@_curry): Enhance
1138         test.
1140         Improve m4_for performance.
1141         * lib/m4sugar/m4sugar.m4 (_m4_for): Alter API to make it easier to
1142         avoid m4_define by some clients.
1143         (m4_for): Adjust caller.
1144         * lib/m4sugar/foreach.m4 (_m4_foreach, m4_case, m4_bmatch)
1145         (_m4_cond, _m4_bpatsubsts, _m4_shiftn, m4_do, m4_reverse)
1146         (_m4_map, m4_map_args, m4_map_args_pair, _m4_list_pad)
1147         (_m4_list_cmp): Likewise.
1149 2008-11-04  Eric Blake  <ebb9@byu.net>
1151         Adjust expected output.
1152         * tests/torture.at (Missing templates): Reflect added quoting.
1153         Detected by Bob Proulx's buildbot.
1155         Reject arguments with leading =.
1156         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Detect case of
1157         missing variable name, with fewer forks.  Quote invalid arguments
1158         in message, in case they include spaces.
1159         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS)
1160         (_AC_OUTPUT_MAIN_LOOP): Quote invalid arguments.
1161         * lib/autotest/general.m4 (AT_INIT): Likewise.
1162         * tests/base.at (configure arguments): Test this.
1163         Reported by Jeff Squyres.
1165 2008-11-04  Eric Blake  <ebb9@byu.net>
1167         Upgrade to FDL 1.3.
1168         * cfg.mk (fetch): Add fdl-1.3.texi.
1169         * .gitattributes: Likewise.
1170         * doc/autoconf.texi (GNU Free Documentation License): Point to new
1171         upstream version.
1172         * doc/Makefile.am (autoconf_TEXINFOS): Likewise.
1173         (standards_TEXINFOS): Mention current dependence on older license.
1174         * doc/fdl-1.3.texi: New upstream file.
1175         * GNUmakefile: Resync from upstream.
1176         * build-aux/announce-gen: Likewise.
1177         * build-aux/texinfo.tex: Likewise.
1179 2008-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1181         Point at AM_SUBST_NOTMAKE.
1182         * doc/autoconf.texi (Setting Output Variables): Add cross
1183         reference to new Automake macro AM_SUBST_NOTMAKE.
1185 2008-11-03  Paolo Bonzini  <bonzini@gnu.org>
1187         Eliminate a fork per invocation of AC_LANG_CONFTEST.
1188         * lib/autoconf/c.m4 (AC_LANG_CONFTEST(C)): Define instead of
1189         AC_LANG_SOURCE(C).
1190         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Add a comment at the
1191         top of confdefs.h, which also works around cpp deficiencies.
1192         * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Define AC_LANG_CONFTEST(xyz)
1193         (AC_LANG_CONFTEST): Dispatch based on _AC_LANG.
1194         (AC_LANG_CONFTEST()): New.
1196 2008-11-03  Paolo Bonzini  <bonzini@gnu.org>
1198         Reorganize definition of languages.
1199         * lib/autoconf/c.m4 (AC_LANG(C), AC_LANG(C++), AC_LANG(Objective C),
1200         _AC_LANG_ABBREV(C), _AC_LANG_ABBREV(C++), _AC_LANG_ABBREV(Objective C),
1201         _AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++), _AC_LANG_PREFIX(Objective C)):
1202         Replace definitions with usage of AC_LANG_DEFINE.
1203         (Sections 2b, 2c): Delete.
1204         (Sections 1b, 1c): Move after section 2a.
1205         * lib/autoconf/erlang.m4 (AC_LANG(Erlang), _AC_LANG_ABBREV(Erlang),
1206         _AC_LANG_PREFIX(Erlang), AC_LANG_SOURCE(Erlang)): Replace definitions
1207         with usage of AC_LANG_DEFINE.
1208         (AC_LANG_ERLANG): Define using AU_DEFUN.
1209         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_LANG(Fortran 77),
1210         _AC_LANG_ABBREV(Fortran), _AC_LANG_ABBREV(Fortran 77),
1211         _AC_LANG_PREFIX(Fortran), _AC_LANG_PREFIX(Fortran 77),
1212         _AC_LANG_SOURCE(Fortran), AC_LANG_SOURCE(Fortran 77)): Replace
1213         definitions with usage of AC_LANG_DEFINE.
1214         * lib/autoconf/lang.m4 (AC_LANG_DEFINE, AC_LANG_SOURCE()): New.
1216 2008-11-03  Paolo Bonzini  <bonzini@gnu.org>
1218         Use preprocessor in cpp tests.
1219         * tests/c.at (CPP tests): Use AC_CHECK_HEADERS(..., [-]).
1221 2008-10-31  Paolo Bonzini  <bonzini@gnu.org>
1223         Rename _AC_CHECK_HEADER_OLD and _AC_CHECK_HEADER_NEW.
1224         * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Adjust naming.
1225         (_AC_CHECK_HEADER_PREPROC_BODY): New name of _AC_CHECK_HEADER_OLD_BODY.
1226         (_AC_CHECK_HEADER_COMPILE_BODY): New name of _AC_CHECK_HEADER_NEW_BODY.
1227         (_AC_CHECK_HEADER_PREPROC): New name of _AC_CHECK_HEADER_OLD.
1228         (_AC_CHECK_HEADER_COMPILE): New name of _AC_CHECK_HEADER_NEW.
1229         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADER_NEW):
1230         Give better name.
1232 2008-10-31  Eric Blake  <ebb9@byu.net>
1234         Support multiple undiverts and dumpdefs at once.
1235         * lib/m4sugar/m4sugar.m4 (m4_dumpdefs, m4_undivert): Allow extra
1236         arguments.
1237         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>,
1238         <m4_undivert>: Document argument list change.
1239         * tests/m4sugar.at (m4@&t@_divert_stack, m4@&t@_dumpdef): Test
1240         them.
1242         Simplify diversion stack handling.
1243         * lib/m4sugar/m4sugar.m4 (m4_divert_stack): Use fewer macros, and
1244         avoid extra newlines.
1245         (m4_divert_stack_push): Compute location here, rather than caller.
1246         (m4_divert_push): Update caller.
1247         (m4_divert): Likewise, and also adjust current diversion name.
1248         (m4_divert_pop): Simplify rule that diversion stack must never go
1249         empty.
1250         (_m4_require_call): Bypass diversion stack when collecting
1251         required macro text.
1252         (m4_init): Set current diversion without requiring m4_init.
1253         * lib/m4sugar/m4sh.m4 (AS_INIT): Avoid too many pops.
1254         * lib/autotest/general.m4 (AT_INIT): Likewise.
1255         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Schedule wrapped
1256         text to run prior to m4sugar cleanup.
1257         * doc/autoconf.texi (Text processing Macros) <m4_newline>: Mention
1258         optional argument.
1259         (Conditional constructs) <m4_ifvaln, m4_n>: Mention use of dnl.
1260         * NEWS: Undo blurb about m4_divert.
1261         * tests/m4sugar.at (m4@&t@_divert_stack): New test.
1263         Simplify expansion stack handling.
1264         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack): Use fewer macros;
1265         always output 'top level'.
1266         (_m4_expansion_stack_entry): New macro, to format the string only
1267         when needed.
1268         (m4_expansion_stack_push): Only push a macro name.
1269         (m4_warn, _m4_defun_pro): Update callers.
1270         (m4_expansion_stack_pop, m4_expansion_stack_dump): Delete.
1271         (_m4_defun_epi, m4_fatal): Inline the calls.
1272         * tests/m4sugar.at (m4@&t@_expansion_stack): New test.
1274 2008-10-30  Eric Blake  <ebb9@byu.net>
1276         Better documentation of AC_CHECK_HEADER's fourth argument.
1277         * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
1278         how to suppress compiler or preprocessor header check.
1279         Reported by Jeff Squyres.
1281 2008-10-30  Eric Blake  <ebb9@byu.net>
1283         Fix LINENO testsuite failure.
1284         * tests/m4sh.at (AT_DATA_LINENO): Use AS_LINENO_PREPARE, not
1285         undocumented _AS_PREPARE, and move unset earlier in script.
1287         Update LINENO documentation.
1288         * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
1289         (Special Shell Variables) <LINENO>: Mention that LINENO support in
1290         child scripts may be broken.  Modernize example.
1292 2008-10-30  Paolo Bonzini  <bonzini@gnu.org>
1294         Do not check for $LINENO in generated scripts.
1295         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Do not call _AS_LINENO_PREPARE,
1296         and explain why.
1298 2008-10-30  Eric Blake  <ebb9@byu.net>
1300         Don't check for non-POSIX extensions in suggested tests.
1301         * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_WORKS): Remove suggestion;
1302         we still use += if available, but should not reject shells (like
1303         dash) that don't provide it.
1304         (_AS_DETECT_SUGGESTED): Document a policy for m4sh.
1305         Reported by Paolo Bonzini.
1307 2008-10-30  Paolo Bonzini  <bonzini@gnu.org>
1309         Pass CONFIG_SHELL down to generated scripts, and re-export SHELL.
1310         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): If proceeding
1311         with a given CONFIG_SHELL, move it to SHELL.
1312         (AS_INIT_GENERATED): Re-export SHELL.
1314 2008-10-30  Eric Blake  <ebb9@byu.net>
1316         Work around Solaris /bin/sh case bug.
1317         * lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT): Always provide
1318         a non-empty command list.
1319         (AS_CASE): Always guarantee that a case will match.
1320         * doc/autoconf.texi (Limitations of Builtins) <case>: Document the
1321         Solaris bug, and mention AS_CASE.
1323 2008-10-30  Paolo Bonzini  <bonzini@gnu.org>
1325         Require _AS_CR_PREPARE where appropriate.
1326         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Call _AS_CR_PREPARE.
1327         (AS_PREPARE): Require _AS_CR_PREPARE.
1329         Avoid walking the entire PATH when looking for a better shell.
1330         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Test shell characteristics
1331         as the PATH is walked.
1333         Add third argument to _AS_PATH_WALK
1334         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Do not call _AS_CR_PREPARE.
1335         (_AS_PATH_WALK): Add third optional argument.
1337         Trim down the length of the shell function test.
1338         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Condense.
1340 2008-10-29  Eric Blake  <ebb9@byu.net>
1342         Fix LINENO detection to work around bash and pdksh limitations.
1343         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Enhance the test, so
1344         that we can choose which of two tests to trust.
1345         (_AS_RUN): Set flag when alternate shell is running.
1346         (_AS_DETECT_EXPAND): New macro.
1347         (_AS_DETECT_BETTER_SHELL): Use it to massage LINENO tests.
1349 2008-10-29  Eric Blake  <ebb9@byu.net>
1351         Mention proper fix for zsh users.
1352         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Recommend zsh
1353         version known to work.
1354         Suggested by Paolo Bonzini.
1356         Document current beta-quality status.
1357         * configure.ac: Reflect fact that change to git-version-gen
1358         produces -, but not always a letter, on non-release builds.
1359         * BUGS: Mention known issues.
1360         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Ask for help in
1361         debugging platforms with deficient shells.
1363 2008-10-29  Eric Blake  <ebb9@byu.net>
1365         Alter signature of AS_INIT_GENERATED.
1366         * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): Add parameters, and
1367         manage here-doc and chmod in place.  This also allows future
1368         changes for optimizing the child via diversion/m4_wrap magic.
1369         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
1370         caller.
1371         * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
1372         Update the documentation.
1374 2008-10-29  Eric Blake  <ebb9@byu.net>
1376         Use _m4_stack_reverse in m4_set.
1377         * lib/m4sugar/m4sugar.m4 (_m4_set_contents_1)
1378         (_m4_set_contents_2): Rewrite to share _m4_stack_reverse
1379         implementation.
1380         (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
1381         (m4_set_map): Adjust callers to new API.
1383         Add m4_stack_foreach_sep.
1384         * lib/m4sugar/m4sugar.m4 (m4_stack_foreach_sep)
1385         (m4_stack_foreach_sep_lifo): New macros.
1386         (_m4_stack_reverse): Adjust prototype, to support it.
1387         (m4_copy): Use fewer macros.
1388         * tests/m4sugar.at (m4@&t@_stack_foreach): Rename...
1389         (m4@&t@_stack): ...and add m4_stack_foreach_sep tests.
1391 2008-10-29  Bruno Haible  <bruno@clisp.org>
1393         Mention Sun WorkShop 6.2 OpenMP bug.
1394         * doc/autoconf.texi (AC_OPENMP): Document portability pitfall.
1396 2008-10-29  Paolo Bonzini  <bonzini@gnu.org>
1398         Rewrite handling of diversion and expansion stack.
1399         * NEWS: Document stricter requirement on m4_init.
1400         * lib/m4sugar/m4sugar.m4 (m4_divert_stack): New, replacing
1401         _m4_divert_n_stack.
1402         (_m4_divert_stack_push): New.
1403         (m4_divert): Use _m4_divert_stack_push and replace m4_define with
1404         m4_popdef.
1405         (m4_divert_push): Use _m4_divert_stack_push.
1406         (m4_divert_pop): Use m4_divert_stack instead of _m4_divert_n_stack,
1407         pop _m4_divert_stack instead of m4_divert_stack.
1408         (m4_expansion_stack): New.  Update comment above it.
1409         (m4_expansion_stack_push, m4_expansion_stack_pop): Work on
1410         _m4_expansion_stack instead of m4_expansion_stack.
1411         (m4_expansion_stack_dump): Check presence of _m4_expansion_stack
1412         instead of m4_expansion_stack.  Use m4_expansion_stack's expansion
1413         instead of the definition, and compensate for the trailing newline
1414         in the expansion.
1415         (m4_warn, _m4_defun_pro, _m4_defun_epi): Check presence of
1416         _m4_expansion_stack instead of m4_expansion_stack.
1417         (m4_newline): Expand first argument after the newline.
1418         (m4_init): Use m4_divert_stack instead of _m4_divert_n_stack,
1419         * tests/m4sugar.at (m4_append, m4_text_wrap): Invoke m4_init.
1420         * tests/tools.at (whitespace in file names, the empty token): Likewise.
1422 2008-10-28  Eric Blake  <ebb9@byu.net>
1424         Reduce forks while searching for better shell.
1425         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED)
1426         (_AS_DETECT_SUGGESTED): No need to provide extra subshell; _AS_RUN
1427         already does the job.
1428         (_AS_DETECT_BETTER_SHELL): Simplify AS_EXIT when not run in a trap
1429         0 context.
1431         Undo needless efforts to protect $2 in $2_t.
1432         * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY)
1433         (_AC_TYPE_UNSIGNED_INT_BODY): Reduce extra quoting.
1435 2008-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1437         Fix parallel test execution output lossage.
1438         * lib/autotest/general.m4 (_AT_CHECK): Truncate files to hold
1439         standard output and standard error before the test, use append
1440         mode for writing.
1441         * THANKS: Update.
1442         Caught by Bob Proulx' build daemons, analysis and suggested fix
1443         by Stéphane Chazelas.
1445 2008-10-28  Eric Blake  <ebb9@byu.net>
1447         Use m4_map_args in more places.
1448         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_dumpdef, m4_popdef)
1449         (m4_undefine, m4_combine): Use m4_map_args, rather than
1450         m4_foreach.
1452 2008-10-28  Eric Blake  <ebb9@byu.net>
1454         Override m4 1.4.x dumpdef, as it breaks autom4te.
1455         * lib/m4sugar/m4sugar.m4 (m4_dumpdef): New implementation.
1456         (m4_copy): Formatting touchup.
1457         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
1458         semantic differences as well as m4_dumpdefs.
1459         * NEWS: Likewise.
1460         * tests/m4sugar.at (m4@&t@_dumpdef): New test.
1462 2008-10-28  Eric Blake  <ebb9@byu.net>
1464         Allow m4sugar to be used without autom4te, such as in bison.
1465         * lib/m4sugar/m4sugar.m4 (m4_text_wrap, m4_qlen): Document that
1466         alternate escape sequences can be used.
1467         (m4_text_box): Likewise.  Don't output quadrigraphs.
1468         (m4_qdelta): Delete unused macro.
1470 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
1472         Add m4_stack_foreach and m4_stack_foreach_lifo.
1473         * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): New from _m4_copy.
1474         (m4_stack_foreach, m4_stack_foreach_lifo): New.
1475         (m4_copy): Use m4_stack_foreach and m4_curry.
1476         (_m4_dumpdefs_down, _m4_dumpdefs_up): Remove.
1477         (m4_dumpdefs): Rewrite using m4_stack_foreach_lifo.
1478         * tests/m4sugar.at (m4_stack_foreach): New test.
1480 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
1482         use a shell function for AC_TYPE_INTx_T
1483         * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY, _AC_TYPE_UNSIGNED_INT_BODY):
1484         New.
1485         (_AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT): Define and use a shell function.
1487 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
1489         * lib/autoconf/general.m4 (AC_CHECK_DECL): Fix AS_ESCAPE usage.
1490         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL,
1491         _AC_CHECK_HEADER_NEW): Likewise.
1492         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
1494 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
1496         * lib/autoconf/types.m4 (_AC_CHECK_MEMBER_BODY): New.
1497         (AC_CHECK_MEMBER): Define and use a shell function.
1499 2008-10-27  Eric Blake  <ebb9@byu.net>
1501         Prefer m4_fatal over AC_FATAL.
1502         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF)
1503         (AC_CHECK_MEMBER): Use non-obsolete macro name.
1504         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF): Likewise.
1505         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE, AC_SUBST):
1506         Likewise.
1507         * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
1508         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCY_DEFAULT)
1509         (_AC_CONFIG_UNIQUE, _AC_CONFIG_REGISTER_DEST): Likewise.
1511 2008-10-27  Eric Blake  <ebb9@byu.net>
1513         Avoid raw carriage return in scripts.
1514         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Generate CR
1515         via tr, rather than with literal byte.
1516         * THANKS: Update.
1517         Reported by Steven R. Loomis; patch suggested by Thomas Dickey.
1519 2008-10-27  Eric Blake  <ebb9@byu.net>
1521         Use AS_VAR_ARITH.
1522         * lib/autotest/general.m4 (at_func_arith): Delete; replace all
1523         clients with AS_VAR_ARITH instead.
1524         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE): Use new
1525         macro.
1526         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Likewise.
1527         * tests/torture.at (Torturing config.status): Likewise.
1528         * tests/tools.at (autom4te --force): Likewise.
1530         Add AS_VAR_ARITH.
1531         * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE, _AS_VAR_ARITH_WORKS)
1532         (AS_VAR_ARITH): New macros.
1533         (_AS_PREPARE, AS_PREPARE): Emit preparation.
1534         * tests/m4sh.at (AS@&t@_VAR_ARITH): New test.
1535         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_ARITH>:
1536         Document new macro.
1537         (Limitations of Usual Tools) <expr>: Mention portability problem
1538         if first argument starts with -.
1539         (Shell Substitutions) <$((expression))>: Mention it.
1540         * NEWS: Likewise.
1542 2008-10-27  Eric Blake  <ebb9@byu.net>
1544         Use read, rather than `cat`, for safe one-line files.
1545         * lib/autotest/general.m4 (AT_CLEANUP): Avoid a fork, since it is
1546         known that the file has only one line and no \.
1547         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_RUN): Likewise.
1549 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
1551         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE,
1552         _AC_COMPUTE_INT_RUN): Add IF-SUCCESS argument.
1553         (_AC_COMPUTE_INT_BODY): New.
1554         (AC_COMPUTE_INT): Define and use a shell function.
1556 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
1558         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW_BODY): Extract
1559         test body here.  Move head comment of _AC_CHECK_TYPE_NEW here.
1560         (_AC_CHECK_TYPE_NEW): Define a shell function and call it.
1562 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
1564         * lib/autoconf/general.m4 (_AC_CHECK_DECL_BODY): New.
1565         (AC_CHECK_DECL): Use a shell function.
1567 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
1569         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_OLD,
1570         _AC_CHECK_HEADER_NEW): Use a shell function.
1572 2008-10-25  Eric Blake  <ebb9@byu.net>
1574         Track recent copyright assignments.
1575         * AUTHORS: Update.
1577 2008-10-25  Paolo Bonzini  <bonzini@gnu.org>
1578         and Eric Blake  <ebb9@byu.net>
1580         Use a shell function for _AC_CHECK_HEADER_MONGREL.
1581         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL_BODY): New
1582         macro.
1583         (_AC_CHECK_HEADER_MONGREL): Use a shell function.
1585 2008-10-25  Eric Blake  <ebb9@byu.net>
1587         Simplify _AS_PREPARE handling of functions.
1588         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Factor...
1589         (_AS_REQUIRE_SHELL_FN): ...into new helper macro.
1590         (_AS_PREPARE): Temporarily redefine AS_REQUIRE_SHELL_FN to make
1591         this task easier.
1592         (_AS_LINENO_PREPARE): Make more efficient.
1593         (_AS_MKDIR_P_PREPARE): Simplify use in _AS_PREPARE.
1594         (_AS_UNSET_PREPARE): Avoid blank newline.
1595         (AS_INIT): Emit as_func_unset alongside other functions.
1597 2008-10-25  Eric Blake  <ebb9@byu.net>
1599         Document AS_EXIT.
1600         * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Document
1601         this macro.
1602         (Limitations of Builtins): Mention AS_EXIT.
1603         * NEWS: Mention it.
1605         Use AS_EXIT in autoconf.as.
1606         * bin/autoconf.as: Consistently use AS_EXIT.
1608 2008-10-24  Eric Blake  <ebb9@byu.net>
1610         Fix m4 underquoting in AC_PROG_INSTALL.
1611         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Produce accurate
1612         character ranges.
1614         Speed up AC_CHECK_HEADER.
1615         * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Factor out $@.
1617 2008-10-24  Paolo Bonzini  <bonzini@gnu.org>
1618         and Eric Blake  <ebb9@byu.net>
1620         Use a shell function for AC_CHECK_FUNC.
1621         * lib/autoconf/functions.m4 (_AC_CHECK_FUNC_BODY): New macro.
1622         (AC_CHECK_FUNC): Use a shell function.
1623         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Reduce number of forks.
1625 2008-10-24  Eric Blake  <ebb9@byu.net>
1627         Work around fact that gnulib-tool doesn't use m4_copy.
1628         * lib/autoconf/general.m4 (AC_LIBOBJ, AC_LIBSOURCES): Defun, not
1629         define, so that an initial location is present, to account for
1630         fact that gnulib-tool pushes another AC_DEFUN'd macro on top.
1632         Make m4_defun_init more robust.
1633         * lib/m4sugar/m4sugar.m4 (m4_defun_init): Handle indirect macro
1634         names, and correct number of arguments.
1635         (m4_copy): Also set up location of the copy.
1636         (m4_defun): When copied, use current macro name, not original.
1637         * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
1638         Update test.
1640         Optimize clients of AS_REQUIRE.
1641         * lib/m4sugar/m4sugar.m4 (m4_defun): Add undocumented third
1642         argument.
1643         (m4_defun_init): New undocumented macro.
1644         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG, AS_MESSAGE, AS_BASENAME)
1645         (_AS_DIRNAME_EXPR, AS_DIRNAME, AS_ECHO, AS_ECHO_N, AS_TEST_X)
1646         (AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK, AS_VERSION_COMPARE)
1647         (AS_TR_SH, AS_TR_CPP, AS_VAR_APPEND, AS_VAR_PUSHDEF): Use it to
1648         simplify these macros once the one-shot initialization is
1649         complete.
1650         * tests/m4sugar.at (m4@&t@_require: one-shot initialization): New
1651         test.
1653         Improve m4_copy.
1654         * lib/m4sugar/m4sugar.m4 (m4_copy): Add second implementation for
1655         public use.
1656         (_m4_copy): New macro, which preserves pushdef stacks.
1657         (_m4_defun_pro_outer): Bypass it, for speed.
1658         (m4_init): Bypass new implementation, since it breaks on m4_defn.
1659         * bin/autoupdate.in (handle_autoconf_macros): Likewise.
1660         * lib/autoconf/general.m4 (AC_PREREQ): Undefine before redefining,
1661         now that m4_copy checks this.
1662         * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
1663         this, as well as m4_rename.
1664         * lib/autoconf/autoconf.m4 (m4_copy): Temporarily redefine when
1665         renaming builtins, since it breaks on m4_ifdef.
1666         * NEWS: Likewise.
1667         * tests/m4sugar.at (m4@&t@_defn): Enhance test.
1669 2008-10-24  Eric Blake  <ebb9@byu.net>
1671         AC_FUNC_GETGROUPS: Revert regression.
1672         * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Only set
1673         ac_cv_func_getgroups_works=no when it is not available.
1675 2008-10-23  Eric Blake  <ebb9@byu.net>
1677         Whitespace cleanup.
1678         * lib/autoconf/fortran.m4: Consistently use tabs.
1680 2008-10-23  Chikama Masaki  <masaki.chikama@gmail.com>  (tiny change)
1682         For gfortran on sh, ignore -little.
1683         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add -little to
1684         list of ignored arguments.
1685         * THANKS: Update.
1687 2008-10-23  Paolo Bonzini  <bonzinI@gnu.org>
1689         Eliminate empty lines after AC_*_IFELSE.
1690         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
1691         _AC_LINK_IFELSE, _AC_RUN_IFELSE): Add a dnl at end.
1693 2008-10-23  Paolo Bonzini  <bonzinI@gnu.org>
1695         Avoid a fork in _AC_RUN_LOG and _AC_RUN_LOG_STDERR
1696         * lib/autoconf/general.m4 (_AC_RUN_LOG, _AC_RUN_LOG_STDERR):
1697         Return a boolean status code based on $ac_status.
1699 2008-10-23  Paolo Bonzini  <bonzinI@gnu.org>
1701         Ensure actions can look at conftest* files.
1702         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY,
1703         _AC_COMPILE_IFELSE_BODY, _AC_LINK_IFELSE_BODY, _AC_RUN_IFELSE_BODY):
1704         Move rm commands, except IPA files and Apple debug symbols...
1705         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE,
1706         _AC_RUN_IFELSE): ...in here.
1707         * tests/compile.at: Add regression test.
1709 2008-10-23  Eric Blake  <ebb9@byu.net>
1711         Remove excess dnl from m4sh.
1712         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_PREPARE)
1713         (_AS_SHELL_FN_WORK, _AS_SHELL_SANITIZE, AS_IF, _AS_ECHO_LOG)
1714         (AS_MESSAGE, AS_ERROR, AS_BASENAME, _AS_BASENAME_PREPARE)
1715         (_AS_DIRNAME_EXPR, AS_DIRNAME, _AS_DIRNAME_PREPARE, AS_ECHO)
1716         (AS_ECHO_N, AS_TEST_X, AS_EXECUTABLE_P, _AS_ME_PREPARE)
1717         (_AS_LINENO_PREPARE, AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK)
1718         (AS_SET_CATFILE, AS_HELP_STRING, AS_TMPDIR, AS_VERSION_COMPARE)
1719         (_AS_TR_SH_PREPARE, AS_TR_SH, _AS_TR_CPP_PREPARE, AS_TR_CPP)
1720         (_AS_TR_PREPARE, AS_VAR_APPEND, AS_VAR_PUSHDEF)
1721         (AS_INIT_GENERATED): Use fewer dnl in m4sh macro bodies.
1723 2008-10-23  Paolo Bonzini  <bonzini@gnu.org>
1724         and Eric Blake  <ebb9@byu.net>
1726         Use a shell function for _AC_RUN_IFELSE.
1727         * lib/autoconf/general.m4 (_AC_RUN_IFELSE_BODY): New macro.
1728         (_AC_RUN_IFELSE): Use a shell function.
1729         (_AC_RUN_LOG): Avoid subshell for logging.
1731 2008-10-23  Eric Blake  <ebb9@byu.net>
1733         Formatting tweak: balance () with m4sh case statements.
1734         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
1735         (_AS_SHELL_SANITIZE, _AS_ECHO_N_PREPARE, _AS_ECHO_PREPARE)
1736         (AS_SET_CATFILE, _AS_TEST_PREPARE): Add strategic shell comments.
1737         (_AS_CASE, _AS_CASE_DEFAULT, AS_CASE): Rearrange newlines, to
1738         allow output of strategic shell comments.
1739         (AS_VERSION_COMPARE): Use AS_CASE.
1740         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
1742 2008-10-22  Jim Meyering  <meyering@redhat.com>
1744         AC_FUNC_GETGROUPS: always define $ac_cv_func_getgroups_works
1745         * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Always define
1746         the shell variable, $ac_cv_func_getgroups_works.  Otherwise, if
1747         it is set to "yes" in the environment and configure is run on
1748         a system like mingw that lacks the getgroups function, it would
1749         mistakenly define HAVE_GETGROUPS.  Reported by Simon Josefsson in
1750         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/15354>.
1752 2008-10-22  Paolo Bonzini  <bonzini@gnu.org>
1753         and Eric Blake  <ebb9@byu.net>
1755         Use a shell function for _AC_LINK_IFELSE.
1756         * lib/autoconf/general.m4 (_AC_LINK_IFELSE_BODY): New macro.
1757         (_AC_LINK_IFELSE): Use a shell function.
1759 2008-10-22  Eric Blake  <ebb9@byu.net>
1761         Fix autoconf logging commands.
1762         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED, _AC_EVAL)
1763         (_AC_EVAL_STDERR, AC_RUN_LOG): Respect as_lineno.
1764         (_AC_DO_ECHO): Likewise, and use fewer dnl.
1765         (_AC_RUN_LOG_STDERR): Avoid subshell for logging.
1767 2008-10-22  Eric Blake  <ebb9@byu.net>
1769         Fix testsuite failure.
1770         * tests/mktests.sh (ac_exclude_list): Don't generate test for
1771         AC_REQUIRE_SHELL_FN.
1773 2008-10-21  Eric Blake  <ebb9@byu.net>
1775         Improve wording related to automake and autotest.
1776         * doc/autoconf.texi (Making testsuite Scripts): Clarify wording in
1777         relation to automake.  Mention dependency on package.m4.
1778         Consolidate examples.  Define AUTOM4TE.
1779         * THANKS: Update.
1780         Reported by William Pursell.
1782 2008-10-21  Eric Blake  <ebb9@byu.net>
1784         Allow AS_VAR_SET_IF in shell lists.
1785         * lib/m4sugar/m4sh.m4 (AS_VAR_SET_IF): Allow continuation of
1786         line.
1787         * lib/autoconf/general.m4 (AC_CACHE_VAL): Supply newline no longer
1788         provided by AS_VAR_SET_IF.
1789         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Adjust
1790         clients.
1791         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
1792         * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
1794         Allow AS_VAR_IF in shell lists.
1795         * lib/m4sugar/m4sh.m4 (AS_VAR_IF): Allow continuation of line.
1796         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Adjust clients.
1797         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
1798         Likewise.
1799         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
1800         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD)
1801         (_AC_CHECK_HEADER_DIRENT): Likewise.
1802         * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
1803         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
1804         Likewise.
1805         * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
1807         Allow AS_CASE in shell lists.
1808         * lib/m4sugar/m4sh.m4 (AS_CASE): Always execute test, in case of
1809         side effects.  Allow continuation of script on same line as esac.
1810         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Adjust client.
1811         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
1812         * NEWS: Document the subtle change.
1814         Allow AS_IF in shell lists.
1815         * lib/m4sugar/m4sh.m4 (AS_IF): Always execute test, in case of
1816         side effects.  Allow continuation of script on same line as fi.
1817         (_AS_DETECT_BETTER_SHELL): Adjust clients.
1818         (AS_VAR_IF, AS_VAR_SET_IF): For now, supply newline no longer
1819         given by AS_IF.
1820         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Likewise.
1821         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Likewise.
1822         (AC_EGREP_CPP, _AC_RUN_IFELSE): Adjust client.
1823         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
1824         * doc/autoconf.texi (Common Shell Constructs) <AS_IF>: Fix typo.
1825         (Polymorphic Variables): Move mention of dnl to the only two
1826         AS_VAR functions that need it.
1828 2008-10-21  Paolo Bonzini  <bonzini@gnu.org>
1829         and Eric Blake  <ebb9@byu.net>
1831         Use a shell function for _AC_COMPILE_IFELSE.
1832         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE_BODY): New macro.
1833         (_AC_COMPILE_IFELSE): Use a shell function.
1835 2008-10-21  Eric Blake  <ebb9@byu.net>
1837         Use AS_VAR_APPEND.
1838         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS_ONCE): Use new macro.
1839         * lib/autoconf/general.m4 (_AC_INIT_PREPARE)
1840         (_AC_LIBOBJS_NORMALIZE): Likewise.
1841         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): Likewise.
1842         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS)
1843         (_AC_OUTPUT_CONFIG_STATUS, _AC_OUTPUT_MAIN_LOOP): Likewise.
1844         * lib/autotest/general.m4 (AT_INIT): Likewise.
1846         Add AS_VAR_APPEND.
1847         * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
1848         (_AS_VAR_APPEND_WORKS, AS_VAR_APPEND): New macros.
1849         (AS_PREPARE, _AS_PREPARE): Emit preparation.
1850         * tests/m4sh.at (AS@&t@_VAR_APPEND): New test.
1851         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_APPEND>:
1852         Document new macro.
1853         <AS_VAR_SET>: Mention ramification of `""` rules.
1854         * NEWS: Mention new macro.
1856 2008-10-21  Paolo Bonzini  <bonzini@gnu.org>
1857         and Eric Blake  <ebb9@byu.net>
1859         Use a shell function for _AC_PREPROC_IFELSE.
1860         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY): New macro.
1861         (_AC_PREPROC_IFELSE): Use a shell function.
1862         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Factor for faster execution.
1863         (AS_REQUIRE_SHELL_FN): Bypass AS_REQUIRE if function has already
1864         been provided.
1866 2008-10-21  Eric Blake  <ebb9@byu.net>
1868         Add banners to generated files.
1869         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Use m4_text_box for
1870         existing banner.
1871         (AS_INIT): Add new banners at strategic points.
1872         * lib/autoconf/general.m4 (AC_INIT): Alter banner location, and
1873         make consistent with other banners.
1874         * lib/autotest/general.m4 (AT_INIT): Make banners consistent.
1876 2008-10-20  Paolo Bonzini  <bonzini@gnu.org>
1878         Add AC_REQUIRE_SHELL_FN and the SHELL_FN diversion.
1879         * lib/autoconf/general.m4 (AC_REQUIRE_SHELL_FN): New.
1880         (m4_divert(SHELL_FN)): New.
1882 2008-10-20  Eric Blake  <ebb9@byu.net>
1884         Avoid unportable use of echo in testsuite.
1885         * tests/m4sh.at (AS@&t@_VAR basics): Use AS_ECHO, since string
1886         contains backslash.
1888 2008-10-18  Paolo Bonzini  <bonzini@gnu.org>
1890         Make sure that nested AS_REQUIRE do not lose the desired diversion.
1891         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Expand _m4_divert_desired before
1892         passing it to m4_divert_require, so that its content is not used
1893         anymore.
1894         * tests/m4sh.at (Nested AS_REQUIRE): New testcase.
1896 2008-10-18  Eric Blake  <ebb9@byu.net>
1898         Document bugs in { } handling.
1899         * doc/autoconf.texi (Limitations of Builtins): Mention bug on
1900         empty list.
1902         Fix some testsuite failures introduced two days ago.
1903         * tests/m4sh.at (Nested AS@&t@_REQUIRE_SHELL_FN)
1904         (AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require): Adjust to changed
1905         API.
1906         Reported by Ralf Wildenhues.
1908 2008-10-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1910         Show how to extract single substitutions from config.status.
1911         * doc/autoconf.texi (config.status Invocation): Show example
1912         using `--file=-'.
1914 2008-10-17  Eric Blake  <ebb9@byu.net>
1916         Add m4_curry.
1917         * lib/m4sugar/m4sugar.m4 (m4_curry, _m4_curry): New macros.
1918         * tests/m4sugar.at (m4@&t@_map_args): Rename...
1919         (m4@&t@_map_args and m4@&t@_curry): ...and add currying tests.
1920         * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
1921         currying as a way to add parameters.
1922         (Evaluation Macros) <m4_curry>: Document the new macro.
1923         * NEWS: Likewise.
1925         Improve suggested test filtering.
1926         * lib/m4sugar/m4sh.m4 (_AS_DETECT_SUGGESTED_PRUNE): New macro,
1927         extracted from...
1928         (_AS_DETECT_BETTER_SHELL): ...here, to use faster API.  No need to
1929         check for an empty required set.
1931         Add m4_set_map.
1932         * lib/m4sugar/m4sugar.m4 (m4_set_foreach): New macro.
1933         * tests/m4sugar.at (m4@&t@_set): Enhance test.
1934         * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
1935         Document it.
1936         * NEWS: Likewise.
1938         Document m4_map_args.
1939         * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair):
1940         Rename...
1941         (m4_map_args, m4_map_args_pair): ...to these names, and document.
1942         (m4_version_unletter): Use the interface.
1943         * lib/m4sugar/foreach.m4 (m4_map_args, m4_map_args_pair)
1944         (_m4_map_args_, _m4_map_args_pair_, _m4_map_args_pair_end):
1945         Perform same renames.
1946         * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Adjust callers.
1947         * tests/m4sugar.at (m4@&t@_map_args): New test.
1948         (recursion): Adjust caller.
1949         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Likewise.
1950         * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
1951         this interface.
1952         * NEWS: Mention the new macros.
1954 2008-10-17  Eric Blake  <ebb9@byu.net>
1956         Reduce vertical whitespace in configure.
1957         * lib/autoconf/general.m4 (AC_INIT): Silence newline output during
1958         m4 side effect initializations.
1959         * lib/m4sugar/m4sh.m4 (AS_PREPARE): Likewise.
1961 2008-10-17  Eric Blake  <ebb9@byu.net>
1963         Document AS_VAR interfaces.
1964         * doc/autoconf.texi (Programming in M4sh): M4sh is now prime-time.
1965         (Polymorphic Variables): New node.
1966         * NEWS: Update accordingly.
1968         Test AS_VAR interfaces.
1969         * tests/m4sh.at (AS@&t@_VAR): New test.
1970         * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Force expansion of
1971         _AS_TR_SH_PREPARE at top level, rather than argument collection.
1972         (AS_TR_SH): Support command substitution.
1974         Add AS_VAR_COPY.
1975         * lib/m4sugar/m4sh.m4 (AS_VAR_COPY): New macro.
1976         (AS_VAR_IF): Use it, instead of the broken AS_VAR_GET.
1977         * lib/autoconf/general.m4 (AC_CACHE_CHECK): Likewise.
1978         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
1979         * lib/autotest/general.m4 (_AT_FINISH): Likewise.
1981         Sort AS_VAR_* interfaces.
1982         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Reduce output to one line.
1983         (AS_VAR_TEST_SET, AS_VAR_SET, AS_VAR_SET_IF, AS_VAR_POPDEF): Sort,
1984         no code changes.
1986 2008-10-16  Eric Blake  <ebb9@byu.net>
1988         Allow comments before functions emitted by m4sh.
1989         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Add comment
1990         argument.  Supply closing comment, to ease readability.
1991         (_AS_MKDIR_P_PREPARE): Adjust caller.
1992         (_AS_UNSET_PREPARE): Add comment.
1994         Add AS_FUNCTION_DESCRIBE.
1995         * lib/m4sugar/m4sh.m4 (AS_FUNCTION_DESCRIBE): New macro.
1996         * lib/autotest/general.m4 (AT_INIT): Use it.
1998 2008-10-16  Eric Blake  <ebb9@byu.net>
2000         Speed up m4_qlen with caching.
2001         * lib/m4sugar/m4sugar.m4 (_m4_qlen): Renamed from old m4_qlen.
2002         (m4_qlen): Cache results for speed.
2004 2008-10-16  Paolo Bonzini  <bonzini@gnu.org>
2006         Add a testcase using more then one language.
2007         * tests/compile.at (Multiple languages): New test.
2009 2008-10-16  Paolo Bonzini  <bonzini@gnu.org>
2011         Fix Libtool's config.lt test.
2012         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Disable AS_REQUIRE while
2013         expanding it.
2015 2008-10-15  Eric Blake  <ebb9@byu.net>
2017         Break circular require chain in _AS_LINENO_PREPARE.
2018         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Ensure that logging is
2019         disabled when reporting LINENO failure, since logging requires
2020         LINENO.
2021         * doc/autoconf.texi (Initialization Macros): Recommend m4_pushdef,
2022         not m4_rename, since the latter is undocumented.
2023         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid
2024         m4_rename, as it does not yet handle pushdef stacks.
2025         Reported by Ralf Wildenhues.
2027 2008-10-15  Eric Blake  <ebb9@byu.net>
2029         Cleanups to previous patches.
2030         * doc/autoconf.texi (Portable Shell): Minor edits.
2031         (Limitations of Builtins): Touch up wording.
2032         * lib/m4sugar/m4sh.m4 (AS_LINENO_PUSH): Nuke trailing whitespace.
2033         (_AS_SHELL_SANITIZE): Wrap comments less than 80 columns.
2035 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
2037         Updates to shell portability documentation.
2038         * doc/autoconf.texi: Updates all references to "Portable Shell" and
2039         "Limitations of Builtins" to use three-argument commands.
2040         (Programming in M4sh): Document AS_ECHO, AS_ECHO_N, AS_UNSET.
2041         (Portable Shell): Move here discussion about "Where is the POSIX
2042         shell?"  Mention that M4sh provides a SVR2 shell and takes care
2043         of unsetting variables if necessary.  Talk about M4sh and not only
2044         Autoconf-generated scripts.
2045         (Special Shell Variables): Talk about M4sh and not only
2046         Autoconf-generated scripts.  Don't talk about things that Autoconf
2047         does not do.  Mention problems of $LINENO with shell functions.
2048         (Limitations of Builtins).  Mention AS_ECHO and AS_ECHO_N.  Move
2049         discussion of eval bugs before discussion on proper use of eval.
2050         Mention AS_IF.  Reword why not to use "shift N".  Mention "foo=;
2051         unset foo" trick.  Include M4sh code that unsets MAIL for Bash 2.01.
2052         * NEWS: Update list of documented M4sh macros.
2054 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
2056         Assume a (possibly buggy) `unset' is present after a
2057         `better shell' was found.
2058         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Use AS_UNSET.
2059         * lib/autoconf/programs.m4 (AC_PROG_SED): Use AS_UNSET.
2060         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Provide $as_unset as an
2061         alias for AS_UNSET, for backwards compatibility.
2062         (_AS_DETECT_BETTER_SHELL): Set BASH_ENV and ENV to /dev/null in case
2063         the shell does not support unset.
2064         (_AS_SHELL_SANITIZE): Work around Bash 2.01 bugs.  Unset BASH_ENV.
2065         (AS_INIT, _AS_PREPARE, AS_PREPARE): Call it.
2066         (AS_UNSET): Assume it is there but it might fail if the variable is
2067         not set.  Use it throughout instead of $as_unset.
2069 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
2071         Turn AS_SHELL_SANITIZE into a for-Libtool-only wrapper.
2072         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED): Remove
2073         m4_require of _AS_DETECT_BETTER_SHELL.
2074         (_AS_CLEANUP): Add it here.
2075         (_AS_DETECT_BETTER_SHELL): Just expand the test instead of appending it
2076         to _AS_CLEANUP.
2077         (_AS_SHELL_SANITIZE): New name of the old AS_SHELL_SANITIZE macro.
2078         (AS_SHELL_SANITIZE): New macro hacking around Libtool misuse.
2079         (AS_PREPARE): Use _AS_SHELL_SANITIZE.
2080         (AS_INIT): Add m4_provide of itself.
2082 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
2084         Use "test x$foo = xyes" to avoid upsetting Libtool's sh.test.
2085         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_SHELL_FN_WORK): Use
2086         "test x$foo = xyes".
2088 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
2090         Trim down the size of the better-shell test.
2091         * lib/m4sugar/m4sh.at (_AT_DETECT_BETTER_SHELL): Store the common
2092         snippets into shell variables.
2093         (_AS_RUN): Rewrite.
2095 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
2097         Support a stack of LINENO values for AS_MESSAGE.
2098         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): If defined, use $as_lineno as
2099         the line number emitted to the log file.
2100         (AS_LINENO_PUSH, AS_LINENO_POP): New.
2101         * tests/m4sh.at (LINENO Stack): New test.
2103 2008-10-14  Eric Blake  <ebb9@byu.net>
2105         Correct previous patch.
2106         * doc/autoconf.texi (Shell Functions): Bash obeys Posix, after
2107         all.
2109         Document shell function environment pitfall.
2110         * doc/autoconf.texi (Shell Functions): Document bugs in bash,
2111         Solaris /bin/sh.
2113 2008-10-14  Paolo Bonzini  <bonzini@gnu.org>
2115         Use m4_require to implement AS_REQUIRE.
2116         * lib/m4sugar/m4sugar.m4 (_m4_require_call): Accept a third argument.
2117         (m4_require): Pass it.
2118         (m4_divert_require): New.
2119         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Rewrite using m4_divert_require.
2120         Remove comment about differences with m4_require.
2121         * tests/m4sh.at (AS_REQUIRE_SHELL_FN and m4_require): Update to test
2122         the expected behavior.
2123         (Nested AS_REQUIRE_SHELL_FN): New test.
2125 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
2127         Test AS_LINENO_PREPARE.
2128         * tests/m4sh.at: Use documented AS_LINENO_PREPARE.
2130 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
2132         Test AS_ME_PREPARE.
2133         * tests/m4sh.at (as_me): New test.
2135 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
2137         Add and document AS_INIT_GENERATED.
2138         * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): New.
2139         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use it.
2140         * doc/autoconf.texi (Initialization macros): Document it.
2142 2008-10-13  Eric Blake  <ebb9@byu.net>
2144         Use consistent shell function style.
2145         * lib/m4sugar/m4sh.m4 (_AS_PREPARE, AS_REQUIRE_SHELL_FN)
2146         (_AS_SHELL_FN_WORK): Imitate GNU Coding Standards for C
2147         functions.
2149 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
2151         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Place names of
2152         contributors under m4 rather than shell comments.
2154 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
2156         * lib/m4sugar/m4sh.m4 (AS_ME_PREPARE, AS_LINENO_PREPARE): New.
2157         * doc/autoconf.texi (Initialization macros): Document them.
2158         (Portable Shell): Refer to AS_LINENO_PREPARE.
2159         * NEWS: Mention them.
2161         * bin/autoconf.as: Invoke AS_ME_PREPARE.
2162         * lib/autotest/general.m4: Likewise.
2164 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
2166         * doc/autoconf.texi (Programming in M4sh): Make its own chapter.
2168 2008-10-10  Eric Blake  <ebb9@byu.net>
2170         Fix _AS_MKDIR_P usage.
2171         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P): Correct documentation to
2172         match implementation.
2173         (_AS_PREPARE, _AS_MKDIR_P_PREPARE): Adjust callers.
2174         * doc/autoconf.texi (Programming in M4sh) <AS_MKDIR_P>: Tweak
2175         wording to better match behavior.
2177 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
2179         * doc/autoconf.texi: Be less wary of shell functions.
2180         * NEWS: Document the increased use of shell functions.
2182 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
2184         * m4sugar/m4sh.m4 (_AS_MKDIR_P): New, from AS_MKDIR_P.  Adjust
2185         meaning of as_mkdir_p to be `false' or a full `mkdir -p' command.
2186         (AS_MKDIR_P): Just dispatch to as_func_mkdir_p.
2187         (_AS_PREPARE): Define shell functions.
2188         (_AS_MKDIR_P_PREPARE): Set as_mkdir_p according to the above change.
2189         Define shell functions.
2191 2008-10-09  Eric Blake  <ebb9@byu.net>
2193         Only prepare $as_me if it will be used.
2194         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Avoid unconditional
2195         preparation.
2196         (_AS_ECHO_LOG): Depend on $LINENO preparation.
2197         (AS_MESSAGE): Depend on $as_me preparation.
2198         (AS_TMPDIR): Use AS_ERROR, rather than a hand-rolled copy.
2200 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
2202         * m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Delay setting as_me
2203         until the M4SH-INIT diversion using _AS_ME_PREPARE.
2204         (_AS_PREPARE): Invoke _AS_EXPR_PREPARE before _AS_BASENAME_PREPARE
2205         and _AS_DIRNAME_PREPARE, and _AS_BASENAME_PREPARE and _AS_ME_PREPARE
2206         before _AS_LINENO_PREPARE.
2207         (AS_PREPARE): Include all the AS_REQUIREs manually.
2208         (_AS_ME_PREPARE): New.
2209         (_AS_LINENO_PREPARE): Use m4_defun.
2211 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
2213         * m4sugar/m4sh.m4 (_AS_BASENAME_EXPR, _AS_DIRNAME_EXPR): Do not
2214         require _AS_EXPR_PREPARE.
2215         (_AS_BASENAME_PREPARE, _AS_DIRNAME_PREPARE): Do it here.
2216         (_AS_PREPARE): Add _AS_BASENAME_PREPARE.
2218 2008-10-08  Eric Blake  <ebb9@byu.net>
2220         Resync from gnulib.
2221         * cfg.mk (cvs_executable_files, cvs_files): Rewrite...
2222         (fetch): ...into new target.
2223         (executable-update): Delete, now that it is unused.
2224         * maint.mk (update, local_updates, cvs_files, gnulib_repo)
2225         (wget-update, cvs-update): Likewise.
2226         * HACKING (Update the foreign files): Document new procedure.
2227         * GNUmakefile: Resync from upstream, via new 'make fetch'.
2228         * build-aux/config.guess: Likewise.
2230 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
2232         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Remove.
2233         (AS_INIT): Do not call it.
2235 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
2237         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Expand
2238         _AS_UNSET_PREPARE in M4SH-SANITIZE.
2240 2008-10-08  Eric Blake  <ebb9@byu.net>
2242         Avoid repeating required shell tests in suggested set.
2243         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED):
2244         Use m4_set, rather than m4_expand_once/m4_append.
2245         (_AS_DETECT_SUGGESTED): Adjust to new storage layout, and filter
2246         required tests out of suggested tests.
2247         Reported by Paolo Bonzini.
2249 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
2251         Add m4sh keyword to all m4sh.at tests.
2252         * tests/m4sh.at: Add m4sh keyword to all tests.  Fix comment
2253         pastos.
2255 2008-10-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2257         Document AS_VERSION_COMPARE.
2258         * doc/autoconf.texi (Programming in M4sh): Document
2259         AS_VERSION_COMPARE.
2260         * NEWS: Update.
2262         Do not write to testsuite log fd before initialization.
2263         * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD, AT_JOB_FIFO_FD):
2264         Define fds only when initializing the log fd so early error
2265         messages do not try to write to it.
2266         * tests/autotest.at (Startup error messages): New test.
2267         * NEWS: Document this 2.63 regression.
2269 2008-10-07  Eric Blake  <ebb9@byu.net>
2271         Ensure _AS_CLEANUP is defined.
2272         * lib/m4sugar/m4sh.m4 (_AS_CLEANUP): Give initial definition.
2273         * tests/m4sh.at (AS@&t@_INIT cleanup): Expose the need for this.
2275         Improve m4sh maintainability.
2276         * lib/m4sugar/m4sh.m4: Sort macros for sanitizing the shell; no
2277         code change.
2279         Fix m4 quoting in previous patch.
2280         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Determine diversion
2281         name prior to invoking AS_REQUIRE.
2282         Reported by Ralf Wildenhues.
2284 2008-09-18  Paolo Bonzini  <bonzini@gnu.org>
2285         and Eric Blake  <ebb9@byu.net>
2287         Add a separate diversion for shell functions.
2288         * lib/m4sugar/m4sh.m4 (M4SH-INIT-FN): New diversion.
2289         (AS_REQUIRE): Accept diversion parameter.
2290         (AS_REQUIRE_SHELL_FN): Use it.
2292 2008-10-06  Eric Blake  <ebb9@byu.net>
2294         Add m4_default_quoted.
2295         * lib/m4sugar/m4sugar.m4 (m4_default_quoted): New macro.
2296         (m4_for, m4_expand_once, m4_text_wrap, m4_text_box): Use it.
2297         * doc/autoconf.texi (Conditional constructs): Document it.
2298         * NEWS: Likewise.
2300         Fix build with case-insensitive make, again.
2301         * Makefile.am (pkgdata_DATA): Protect by MAKE_CASE_SENSITIVE.
2302         Reported via Keith Marshall, originally by newthinker in
2303         <http://thread.gmane.org/gmane.comp.gnu.mingw.user/27725>.
2305 2008-10-06  Bruno Haible  <bruno@clisp.org>
2307         Warn about /usr/ucb on Solaris.
2308         * doc/install.texi (Particular Systems): Recommend putting
2309         /usr/ucb late in PATH, if at all.
2311 2008-10-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2313         Fix more testsuite hang corner cases.
2314         * lib/autotest/general.m4: Use the serial code path if no test
2315         is to be run.
2316         * tests/autotest.at (parallel test execution): Test -j and -jN
2317         with `-k notmatched'.
2319 2008-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2321         Fix hang with `testsuite -k notmatched'.
2322         * lib/autotest/general.m4: Do not reset $at_jobs if it is equal
2323         to one.  Fixes hang with `-k notmatched'.
2325 2008-10-02  Eric Blake  <ebb9@byu.net>
2327         Document more binary file portability traps.
2328         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Remind
2329         reader that NUL and sed don't always mix.
2330         <tr>: Mention Solaris /usr/ucb/tr bug with \0.
2332 2008-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2334         Implement parallel Autotest test execution: testsuite --jobs.
2335         * lib/autotest/general.m4 (AT_JOB_FIFO_FD): New macro.
2336         (AT_INIT): <at_jobs>: New variable.
2337         Accept -j, -jN, --jobs[=N], document them in --help output.
2338         Implement parallel driver loop using a FIFO, enabled with --jobs
2339         and if mkfifo works; otherwise, fall back to sequential loop.
2340         (AT_SETUP): Store, do not output summary progress line if
2341         parallel.
2342         * tests/autotest.at (parallel test execution, parallel truth)
2343         (parallel fallacy, parallel skip): New tests.
2344         * doc/autoconf.texi (testsuite Invocation): Document -j, --jobs,
2345         the mkfifo requirement, and that --errexit may cause concurrent
2346         jobs to finish.
2347         * NEWS: Update.
2349 2008-09-20  Eric Blake  <ebb9@byu.net>
2351         Fix sample isinf definition.
2352         * doc/autoconf.texi (Function Portability) <isinf>: Filter out NaN
2353         first.
2354         * THANKS: Update.
2355         Reported by David Cournapeau.
2357 2008-09-16  Eric Blake  <ebb9@byu.net>
2359         Fix Erlang regression, introduced 2006-11-17.
2360         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Avoid M4 comment
2361         caused by underquoting.
2362         * NEWS: Mention this fix.
2363         * THANKS: Update.
2364         Reported by BJ Terry.
2366 2008-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2368         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Improve a bit.
2370         Mention Solaris sh ':' redirection bug.
2371         * doc/autoconf.texi (File Descriptors): Redirecting ':'
2372         in a loop causes bogus optimization with Solaris sh.
2374 2008-09-10  Eric Blake  <ebb9@byu.net>
2376         Avoid testsuite bug when autom4te cache is disabled by user.
2377         * tests/tools.at (autoconf: forbidden tokens, basic): Enable
2378         cache, even if user normally disabled it.
2379         Reported by Bruno Haible.
2381         Avoid testsuite bug in presence of verbose config.site.
2382         * tests/base.at (Input/Output): Nullify config.site during test.
2383         Reported by Bob Friesenhahn.
2385 2008-09-09  Eric Blake  <ebb9@byu.net>
2387         Release Version 2.63.
2388         * NEWS: Mention the release.
2390         Formatting tweaks to the manual.
2391         * doc/autoconf.texi (Introduction, Systemology)
2392         (File System Conventions, Portable C and C++)
2393         (Floating Point Portability): Allow URLs to split as needed.
2394         (Indices): Add entries, to work around texinfo bug on indices that
2395         start too close to a page break.
2396         (Particular Functions): Mention ftello.
2397         (Introduction, Language Choice): Use @enddots at sentence end.
2399         Resync from gnulib.
2400         * cfg.mk (cvs_executable_files, cvs_files): Update list of files,
2401         although for now, they are still manually sync'd.
2402         * build-aux/gnupload: Update.
2403         * build-aux/config.sub: Likewise.
2404         * GNUmakefile: Likewise.
2406 2008-09-06  Eric Blake  <ebb9@byu.net>
2408         Mention that Automake already supports VPATH.
2409         * doc/autoconf.texi (Build Directories): Details in this section
2410         only apply to users avoiding automake.
2411         * THANKS: Update.
2412         Reported by Matej Tyc.
2414         Relax tone when warning about cross-compiler names.
2415         * lib/autoconf/programs.m4 (_AC_TOOL_WARN): Support cross-compiles
2416         with poorly named tools; the issue has been reported too many
2417         times in the last four years to pull support.
2418         * doc/autoconf.texi (Specifying Names, Generic Programs): Update
2419         documentation accordingly.
2420         * THANKS: Update.
2421         Reported by Josef Tran and others, wording suggested by Ralf
2422         Wildenhues.
2424 2008-09-01  Eric Blake  <ebb9@byu.net>
2426         Improve AC_C_BIGENDIAN.
2427         * doc/autoconf.texi (C Compiler) <AC_C_BIGENDIAN>: Mention that
2428         universal builds require a config header.
2429         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Enhance comments.  Check
2430         AH_HEADER at the last possible moment, so that users can use
2431         AC_CONFIG_HEADER after this macro.
2432         Reported by Stepan Kasal.
2434         Fix manual date information.
2435         * doc/autoconf.tex: UPDATED refers to the day the manual was
2436         built, not the release date of Autoconf.
2437         Based on a bison patch by Akim Demaille.
2439 2008-08-27  Eric Blake  <ebb9@byu.net>
2441         Fix off-by-one bug in _m4_shiftn.
2442         * lib/m4sugar/foreach.m4 (_m4_shiftn): Handle case when shifting
2443         all arguments.
2444         * tests/m4sugar.at (M4 loops): Test it.
2445         Reported by Akim Demaille.
2447 2008-08-26  Eric Blake  <ebb9@byu.net>
2449         Improve INSTALL formatting.
2450         * doc/install.texi [!autoconf]: Ensure first paragraphs are
2451         indented like all others in a plain text rendering.
2452         * Makefile.am ($(srcdir)/INSTALL): Ensure plaintext formatting.
2453         Reported by Bruno Haible.
2455 2008-08-26  Stepan Kasal  <skasal@redhat.com>
2457         Check for case sensitive make.
2458         * m4/make-check.m4 (AC_PROG_MAKE_CASE_SENSITIVE): New macro,...
2459         * configure.ac: ... called here.
2460         * Makefile.am ($(abs_srcdir)/INSTALL, INSTALL): Return to...
2461         ($(srcdir)/INSTALL): ...this, but enclose the rule in
2462         "if MAKE_CASE_SENSITIVE".
2464 2008-08-26  Eric Blake  <ebb9@byu.net>
2466         Update invocation documentation.
2467         * doc/autoconf.texi (autoscan Invocation): Mention --debug.
2468         (autoreconf Invocation): Mention -v.
2469         (autom4te Invocation): Tie --freeze to -F, not -f.
2470         (autoupdate Invocation): Mention --prepend-include.
2471         * doc/install.texi (configure Invocation): Mention --help=short,
2472         --help=recursive, -n/--no-create, --prefix.  Avoid TABs.
2473         * bin/autoscan.in ($help): Omit space before `...'.
2474         * bin/ifnames.in ($help): Likewise.
2475         * bin/autoconf.as (Usage): Likewise.
2476         * bin/autoreconf.in ($help): Likewise.
2477         * bin/autoheader.in ($help): Likewise.
2478         * bin/autom4te.in ($help): Likewise.
2479         * bin/autoupdate.in ($help): Likewise.
2480         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use
2481         `[OPTION]...', rather than `[OPTIONS]'.  Mention --silent.  Indent
2482         --file correctly.
2484         Don't let frozen __m4_version__ break downgrade to m4 1.4.x.
2485         * bin/autom4te.in: Adjust comments, now that we rely on 1.4.5+.
2486         (files_to_options): Avoid inheriting __m4_version__ from frozen
2487         file if current M4 does not support it.
2489 2008-08-25  Eric Blake  <ebb9@byu.net>
2491         Adjust to recent m4 1.6 change to support m4_debugmode(d).
2492         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Move
2493         freeze-time decision of using faster 1.6 implementation...
2494         (m4_init): ...to a runtime decision, and add use of new debugmode
2495         flag.
2497 2008-08-22  Peter O'Gorman  <pogma@thewrittenword.com>
2499         Limit AC_C_BIGENDIAN univeral checks to Mac OS X.
2500         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Limit the check to
2501         __APPLE_CC__ with possible -arch flags.
2502         * NEWS: Document it.
2504 2008-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2506         * NEWS: Fix typo.
2508 2008-08-22  Eric Blake  <ebb9@byu.net>
2510         * TODO: Add an item for additional m4sugar looping constructs.
2511         Suggested by Ralf Wildenhues.
2513         Add reminder to keep dual implementations in sync.
2514         * lib/m4sugar/m4sugar.m4: Add comments.
2515         * lib/m4sugar/foreach.m4: Likewise.
2516         Suggested by Ralf Wildenhues.
2518 2008-08-22  Peter Eisentraut  <peter_e@gmx.net>  (tiny change)
2520         Format warning and error messages to match GCS.
2521         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK)
2522         (_AC_INIT_PARSE_ARGS, _AC_CACHE_DUMP): Start warning and error
2523         messages with a lowercase letter, end them without punctuation.
2524         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Likewise.
2525         * lib/autoconf/libs.m4 (AC_PATH_X): Likewise.
2526         * lib/autoconf/status.m4 (AC_OUTPUT, _AC_OUTPUT_MAIN_LOOP):
2527         Likewise.
2528         * tests/fortran.at (GNU Fortran): Likewise.
2529         * tests/torture.at (Deep Package): Likewise.
2531 2008-08-21  Eric Blake  <ebb9@byu.net>
2533         Avoid extra side effects in m4sugar list expansion.
2534         * lib/m4sugar/m4sugar.m4 (m4_mapall_sep, m4_list_cmp): Wrap
2535         around...
2536         (_m4_mapall_sep, _m4_list_cmp_raw): ...new helpers, to avoid
2537         duplicate side effects.
2538         (m4_version_compare): Adjust caller.
2539         * lib/m4sugar/foreach.m4 (m4_list_cmp): Rename...
2540         (_m4_list_cmp_raw): ...to match m4sugar.
2541         * doc/autoconf.texi (Looping constructs): Document the behavior of
2542         side effects.
2543         * tests/m4sugar.at (M4 loops, m4@&t@_map, m4@&t@_version_compare):
2544         Ensure only one side effect.
2545         (recursion): Fix test typo.
2546         Reported by Ralf Wildenhues.
2548 2008-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2550         * TODO: Add item for compiler default flags.
2551         Suggested by Bruno Haible.
2553         * tests/m4sh.at (AS_IF and AS_CASE): Set the expansion limit
2554         back to 1000.
2556 2008-08-21  Eric Blake  <ebb9@byu.net>
2558         Formatting improvements.
2559         * doc/autoconf.texi: Use @file and @command, rather than @code,
2560         where appropriate.
2562         Document another make bug.
2563         * doc/autoconf.texi (The Make Macro SHELL): Mention bug in BSD
2564         make, GNU make <= 3.80.
2566         Tweak wording about SHELL in Makefile.
2567         * doc/autoconf.texi (The Make Macro SHELL): Stronger wording on
2568         the importance of proper SHELL settings.
2569         Reported by Bruno Haible, in
2570         http://lists.gnu.org/archive/html/bug-libtool/2008-04/msg00029.html.
2572 2008-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2574         Avoid timestamp races for updated input.
2575         * tests/m4sh.at (AS_IF and AS_CASE): Use `autom4te --force' for
2576         second script.
2577         * tests/tools.at (autotools and whitespace in file names): Add
2578         --force for repeated invocations.
2580 2008-08-20  Bruno Haible  <bruno@clisp.org>
2582         Add section to INSTALL about particular systems.
2583         * doc/install.texi (Particular systems): New node.
2584         * doc/autoconf.texi: Adjust menus.
2586 2008-08-19  Bruno Haible  <bruno@clisp.org>
2587         and Peter O'Gorman  <peter@pogma.com>
2589         Mention universal binaries in INSTALL.
2590         * doc/install.texi (Compiling For Multiple Architectures): Explain
2591         how to create universal binaries on MacOS X.
2593 2008-08-19  Jim Meyering  <jim@meyering.net>
2594             Eric Blake  <ebb9@byu.net>
2595             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2597         Avoid shell parse errors after interrupt due to empty ``.
2598         * doc/autoconf.texi (Shell Substitutions): Document the issue.
2599         * lib/m4sugar/m4sh.m4 (AS_VAR_IF): New function.
2600         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Use it in place of
2601         "test AS_VAR_GET([...]) = yes"
2602         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL): Likewise.
2603         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Likewise.
2604         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD): Likewise.
2605         (_AC_CHECK_HEADER_DIRENT): Likewise.
2606         * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
2607         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
2608         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use
2609         temporary variable to work around the issue.
2610         * tests/foreign.at (Libtool): Quote result of command
2611         substitution.
2613 2008-08-18  Eric Blake  <ebb9@byu.net>
2615         Test m4_transform without tickling shell bugs.
2616         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Relax test to
2617         something more manageable.
2618         * tests/m4sugar.at (recursion): Move stress test of
2619         m4_transform_pair here.
2620         Reported by Ralf Wildenhues.
2622         Let 'git diff' give better context for doc updates.
2623         * .gitattributes (*.texi*): Add new entry.
2624         * README-hacking: Mention how to use it.
2625         Inspired by a coreutils patch by Jim Meyering.
2627 2008-08-15  Eric Blake  <ebb9@byu.net>
2629         Fix m4_map regression from 2007-10-16.
2630         * lib/m4sugar/m4sugar.m4 (_m4_apply): New macro.
2631         (m4_map): Ignore empty sublists.  For a list consisting of only an
2632         empty sublist, this restores 2.61 behavior of being a no-op.
2633         (m4_map_sep): Likewise, and expand separator.
2634         (m4_mapall, m4_mapall_sep): New macros, to regain 2.62 behavior.
2635         (_m4_map): Rewrite, to be common base for all four variants.
2636         * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new prototype.
2637         * tests/m4sugar.at (m4@&t@_map): Add tests.
2638         * doc/autoconf.texi (Looping constructs) <m4_map>: Document new
2639         macros, and mention ramifications of expanded separator.
2640         * NEWS: Mention the change.
2642 2008-08-14  Eric Blake  <ebb9@byu.net>
2644         Implement m4_transform_pair, to speed up AS_IF.
2645         * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair): New
2646         macros, undocumented for now.
2647         * lib/m4sugar/foreach.m4 (m4_transform, m4_transform_pair): Also
2648         the m4 1.4.x counterparts.
2649         * lib/m4sugar/m4sh.m4 (AS_IF, AS_CASE): Use it.
2650         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Test it.
2652 2008-08-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2654         * lib/autoconf/programs.m4 (AC_PATH_TARGET_TOOL)
2655         (AC_CHECK_TARGET_TOOL, AC_CHECK_TARGET_TOOLS): Require, do not
2656         warn about previous AC_CANONICAL_TARGET.
2657         (AC_CHECK_TARGET_TOOL): Add missing `$' making the macro
2658         unusable in the non-cross-compiling case.
2659         * NEWS, THANKS: Update.
2660         Report by Dave Erickson.
2662 2008-08-12  Eric Blake  <ebb9@byu.net>
2664         Optimize m4_bmatch.
2665         * lib/m4sugar/foreach.m4 (m4_bmatch): Provide linear
2666         implementation for m4 1.4.x.
2667         * tests/m4sugar.at (m4@&t@_bmatch): New test.
2668         (recursion): Test the linear nature.
2669         * NEWS: Document the fix.
2671         Fix m4_cond corner case.
2672         * lib/m4sugar/foreach.m4 (_m4_cond): Ensure alternate
2673         implementation allows concatenation with subsequent text.
2674         * tests/m4sugar.at (m4@&t@_cond): Enhance test.
2676         Add test for m4_cond.
2677         * tests/m4sugar.at (m4@&t@_cond): New test.
2678         Reported by Ralf Wildenhues.
2680 2008-08-06  Eric Blake  <ebb9@byu.net>
2682         Fix autoheader 2.62 regression on AC_DEFINE([__EXTENSIONS__]).
2683         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Use a
2684         unique key for the AH_VERBATIM.
2685         * tests/c.at (AC_USE_SYSTEM_EXTENSIONS): New test.
2686         * NEWS: Mention the fix.
2687         Reported by Andreas Schwab, analyzed by Stepan Kasal.
2689         Add linear m4_cond for m4 1.4.x.
2690         * lib/m4sugar/m4sugar.m4 (m4_cond): Split into...
2691         (_m4_cond): ...this, for fewer macros per iteration.
2692         * lib/m4sugar/foreach.m4 (_m4_cond): New implementation.
2693         * tests/m4sugar.at (recursion): Test it.
2694         * NEWS: Document the linear guarantee.
2696         Speed up diversion handling.
2697         * lib/m4sugar/m4sugar.m4 (m4_divert, m4_divert_push)
2698         (m4_divert_pop, m4_divert_text): Avoid dnl for fewer macro
2699         expansions.
2701         AC_C_CHAR_UNSIGNED is not strictly necessary.
2702         * doc/autoconf.texi (C Compiler) <AC_C_CHAR_UNSIGNED>: Mention a
2703         portable alternative to this macro.
2704         * THANKS: Update.
2705         Reported by Hallvard B Furuseth.
2707         Update some files from upstream.
2708         * GNUmakefile: Update.
2709         * build-aux/announce-gen: Likewise.
2710         * build-aux/config.guess: Likewise.
2711         * build-aux/config.sub: Likewise.
2712         * build-aux/git-version-gen: Likewise.
2713         * build-aux/texinfo.tex: Likewise.
2714         * build-aux/vc-list-files: Likewise.
2715         * doc/make-stds.texi: Likewise.
2716         * doc/standards.texi: Likewise.
2718 2008-08-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2720         Fix AC_CONFIG_FILES([$var]) 2.62 regression.
2721         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Flatten
2722         whitespace in $ac_config_files and $ac_config_headers.
2723         * tests/torture.at (Parameterized AC_CONFIG_FILES): New test.
2724         Report by Andreas Schwab and Per Øyvind Karlsen.
2725         * THANKS: Update.
2727 2008-07-30  Eric Blake  <ebb9@byu.net>
2729         Fix bugs in previous version of m4_bpatsubsts.
2730         * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): Don't expand $1, and
2731         allow concatenation with subsequent text.
2732         * tests/m4sugar.at (m4@&t@_bpatsubsts): Enhance test.
2734 2008-07-29  Eric Blake  <ebb9@byu.net>
2736         Add linear m4_bpatsubsts for m4 1.4.x.
2737         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Match documentation
2738         about anchors, even for only one substitution.
2739         * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): New implementation.
2740         * doc/autoconf.texi (Conditional constructs) <m4_bpatsubsts>:
2741         Clarify behavior with regard to quoting.
2742         * tests/m4sugar.at (recursion): Test scaling of m4_bpatsubsts.
2743         (m4@&t@_bpatsubsts): New test.
2744         * NEWS: Document the linear guarantee.
2746         Tweak m4_do semantics.
2747         * lib/m4sugar/m4sugar.m4 (m4_do): Don't concat final argument with
2748         subsequent text.
2749         * lib/m4sugar/foreach.m4 (m4_do): Don't concat intermediate
2750         arguments, and avoid infinite loop.
2751         * doc/autoconf.texi (Evaluation Macros) <m4_do>: Document the
2752         behavior.
2753         * tests/m4sugar.at (m4@&t@_do): New test.
2755         Optimize m4_for.
2756         * lib/m4sugar/m4sugar.m4 (m4_for): Use fewer macros.
2757         (_m4_for): Take additional parameter, for fewer m4_indir calls.
2758         * lib/m4sugar/foreach.m4 (_m4_foreach, _m4_shiftn, m4_do)
2759         (m4_reverse, _m4_list_pad, _m4_list_cmp): Adjust all callers.
2760         * doc/autoconf.texi (Looping constructs) <m4_for>: Document subtle
2761         semantic change caused by the optimization.
2762         * tests/m4sugar.at (M4 loops): Test the new semantics.
2764         One more m4_list_cmp tweak.
2765         * lib/m4sugar/m4sugar.m4 (_m4_list_cmp_1): Don't defer shift.
2766         * lib/m4sugar/foreach.m4 (m4_list_cmp): Fix comment.
2767         * tests/m4sugar.at (recursion): Test both directions of list
2768         disparity.
2770         Add m4_reverse, and improve m4_list_cmp.
2771         * lib/m4sugar/m4sugar.m4 (m4_reverse): New macro.
2772         (m4_list_cmp): Rewrite to give linear behavior with M4 1.6 on an
2773         m4_reverse'd list.
2774         * lib/m4sugar/foreach.m4 (m4_reverse): Add the M4 1.4.x
2775         counterpart.
2776         * tests/m4sugar.at (recursion): Test it.
2777         * doc/autoconf.texi (Evaluation Macros) <m4_reverse>: Document
2778         it.
2779         (Text processing Macros) <m4_append>: Cross-reference to m4_set.
2780         * NEWS: Mention new macro.
2782 2008-07-28  Eric Blake  <ebb9@byu.net>
2784         Avoid _m4_shiftn for m4 1.6 speedup.
2785         * lib/m4sugar/m4sugar.m4 (m4_foreach, _m4_foreach, m4_map)
2786         (_m4_map, m4_map_sep): Rewrite recursion to use one less m4_if.
2787         * lib/m4sugar/foreach.m4 (_m4_map): Accomodate changed signature.
2789         Implement O(n) unique element set creation.
2790         * lib/m4sugar/m4sugar.m4 (m4_set_add, m4_set_add_all)
2791         (m4_set_contains, m4_set_contents, m4_set_delete)
2792         (m4_set_difference, m4_set_dump, m4_set_empty, m4_set_foreach)
2793         (m4_set_intersection, m4_set_list, m4_set_listc, m4_set_remove)
2794         (m4_set_size, m4_set_union): New macros.
2795         * lib/m4sugar/foreach.m4 (m4_set_add_all): Add O(n) fallback for
2796         m4 1.4.x.
2797         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, AC_SUBST): Use
2798         new m4_set API for the set most likely to be large.
2799         * doc/autoconf.texi (Set manipulation Macros): New node.
2800         * NEWS: Mention new macros.
2801         * tests/m4sugar.at (m4@&t@_set): New test.
2803 2008-07-25  Eric Blake  <ebb9@byu.net>
2805         Avoid infinite aclocal loop.
2806         * lib/m4sugar/m4sugar.m4 (m4_init): Bypass m4_include tracing, so
2807         that aclocal doesn't insist on finding m4sugar/foreach.m4.
2809         Provide O(n) replacement macros for M4 1.4.x.
2810         * lib/m4sugar/foreach.m4: New file.
2811         (m4_foreach, m4_case, _m4_shiftn, m4_do, m4_dquote_elt, _m4_map)
2812         (m4_join, m4_joinall, m4_list_cmp, _m4_minmax): Replace m4sugar
2813         macros based on $@ recursion [fast on M4 1.6, but quadratic on M4
2814         1.4.x] with versions based on m4_for/m4_foreach [slow on 1.6, but
2815         linear on 1.4.x].
2816         * lib/m4sugar/m4sugar.m4 (m4_init): Dynamically load new file if
2817         older M4 is assumed.
2818         (m4_map_sep): Optimize.
2819         (m4_max, m4_min): Refactor, by adding...
2820         (_m4_max, _m4_min, _m4_minmax): ...more efficient helpers.
2821         (m4_defn, m4_popdef, m4_undefine): Use foreach recursion.
2822         * lib/m4sugar/Makefile.am (dist_m4sugarlib_DATA): Distribute new
2823         file.
2824         * tests/m4sugar.at (M4 loops): Add a stress test that takes
2825         forever if m4_foreach and friends are quadratic.
2826         * NEWS: Mention this.
2828 2008-07-21  Eric Blake  <ebb9@byu.net>
2830         Ignore undefined macros, necessary with m4 1.6.
2831         * bin/autoupdate.in (_au___undefine): New macro,...
2832         (_au__undefine): ...wrapped by ifdef to silence m4 warnings.
2833         Reported by Ralf Wildenhues.
2835         Resync with gnulib.
2836         * GNUmakefile: Grab from upstream, to fix issue where 'make
2837         install' would allow installation of stale version string.
2839 2008-07-19  Eric Blake  <ebb9@byu.net>
2841         Support multiple arguments to m4_defn, m4_popdef, and m4_undefine.
2842         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Loop
2843         through all variables, per POSIX and newer m4.
2844         (_m4_text_wrap): Exploit the looping capabilities.
2845         * tests/m4sugar.at (m4@&t@_defn): Test this.
2846         * NEWS: Document it.
2847         * doc/autoconf.texi (Redefined M4 Macros) <m4_defn, m4_popdef>
2848         <m4_undefine>: Likewise.
2850         Reduce overhead of m4_builtin([defn]).
2851         * lib/m4sugar/m4sugar.m4 (_m4_defn, _m4_popdef, _m4_undefine): New
2852         internal macros, which are slightly more efficient than
2853         m4_builtin([defn]) and company.
2854         (m4_defn, m4_popdef, m4_undefine, m4_warn, m4_ifset)
2855         (_m4_dumpdefs_up, _m4_dumpdefs_down, _m4_wrap, m4_for)
2856         (_m4_divert_n_stack, m4_divert_pop, m4_expansion_stack_push)
2857         (m4_expansion_stack_dump, _m4_defun_pro, _m4_defun_epi)
2858         (_m4_defun_epi_outer, _m4_require_call, m4_combine, m4_append)
2859         (_m4_append_uniq, m4_append_uniq_w, _m4_text_wrap, m4_text_box)
2860         (m4_version_prereq): Use them.
2862         Use warnings from m4 when available.
2863         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Don't
2864         define slower wrapper if m4 will warn on our behalf; key off of
2865         __m4_version__, added alongside the new warnings in m4 1.6.
2866         * tests/m4sugar.at (m4@&t@_defn): New test.
2868 2008-07-18  Eric Blake  <ebb9@byu.net>
2870         Add m4_joinall.
2871         * lib/m4sugar/m4sugar.m4 (m4_joinall, _m4_joinall): New macros.
2872         * tests/m4sugar.at (m4@&t@_join): Test them.
2873         * doc/autoconf.texi (Text processing Macros) <m4_join>: Document
2874         m4_joinall.
2875         * NEWS: Likewise.
2877 2008-07-17  Stepan Kasal  <skasal@redhat.com>
2878         and Eric Blake  <ebb9@byu.net>
2880         Improve documentation of config.h.in template rules.
2881         * doc/autoconf.texi (Header Templates): Mention rules on comments
2882         and whitespace, and that the user cannot rely on #undef to survive
2883         through config.status.
2885 2008-07-16  Eric Blake  <ebb9@byu.net>
2887         Revert m4_prepend; it is less efficient, and unused by bison.
2888         * lib/m4sugar/m4sugar.m4 (m4_prepend, m4_prepend_uniq)
2889         (m4_prepend_uniq_w): Delete addition from 2008-07-11.
2890         (_m4_grow_uniq_1): Rename back...
2891         (_m4_append_uniq): ...to this.
2892         * NEWS: Revert NEWS blurb.
2893         * doc/autoconf.texi (Text processing Macros) <m4_prepend>: Delete.
2894         * tests/m4sugar.at (m4@&t@_prepend): Delete.
2896 2008-07-15  Eric Blake  <ebb9@byu.net>
2898         Avoid failure if version.m4 is omitted but m4_PACKAGE_* unused.
2899         * lib/m4sugar/m4sugar.m4 (m4_version_compare): Provide alternate
2900         definition for non-Autoconf clients of m4sugar.
2902 2008-07-14  Eric Blake  <ebb9@byu.net>
2904         Tighten bound of potential speed of m4_append.
2905         * doc/autoconf.texi (Text processing Macros) <m4_append>
2906         <m4_prepend>: If m4 is fixed, m4_append can be linear rather than
2907         O(n log n).
2908         * lib/m4sugar/m4sugar.m4 (m4_append, m4_append_uniq): Fix comments.
2909         Analysis by Bruno Haible.
2911 2008-07-11  Eric Blake  <ebb9@byu.net>
2913         Inherit improvements from bison's fork of m4sugar.
2914         * lib/m4sugar/m4sugar.m4 (m4_PACKAGE_VERSION): Ignore failure to
2915         find version.texi, since bison does not provide it.
2916         (m4_prepend): Add new macro, from bison.
2917         (m4_prepend_uniq, m4_prepend_uniq_w): Add new macros, for
2918         completeness.
2919         (_m4_append_uniq): Rename...
2920         (_m4_grow_uniq_1): ...to this to share implementation, and
2921         optimize initial assignment.
2922         (m4_append_uniq_w): Adjust caller.
2923         * NEWS: Document new macros.
2924         * doc/autoconf.texi (Text processing Macros) <m4_append>: Mention
2925         speed consideration.
2926         <m4_prepend>: Document the new prepend variants.
2927         * tests/m4sugar.at (m4@&t@_prepend): New test.
2929         Work around M4 1.6 warning on undefined macros.
2930         * lib/m4sugar/m4sugar.m4 (changeword, symbols): Don't rename if
2931         not already available as builtins.
2933 2008-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2935         * doc/autoconf.texi (@dvar): Remove trailing newline.
2936         (@ovar): Likewise.  Fix macro documentation.
2938 2008-07-02  Stepan Kasal  <skasal@redhat.com>
2940         Add quotes to the header of autoscan-generated source.
2941         * bin/autoscan.in: Add quotes to AC_PREREQ and AC_INIT.
2943 2008-06-28  Andreas Schwab  <schwab@suse.de>
2945         * doc/autoconf.texi (autoscan Invocation): Fix spacing.
2946         (autoconf Invocation): Likewise.
2947         (autoreconf Invocation): Likewise.
2948         (autoheader Invocation): Likewise.
2949         (autom4te Invocation): Likewise.
2951 2008-06-19  Eric Blake  <ebb9@byu.net>
2953         Add comment explaining recent patch.
2954         * lib/autotest/general.m4 (AT_INIT) <at_pass_list>: Explain choice
2955         of * vs. ? globbing.
2957 2008-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2959         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not warn when not
2960         linking a file to itself.
2961         Report by Bruno Haible.
2963 2008-06-19  Eric Blake  <ebb9@byu.net>
2965         Resync with gnulib.
2966         * GNUmakefile: Grab from upstream, to fix VPATH 'make dist' bug.
2967         Reported by Stepan Kasal.
2969 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2971         Reorganize autotest files, factorize for parallel execution.
2972         * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD): Move definition
2973         earlier in the file.
2974         (AT_INIT): Create line number cache in
2975         $at_suite_dir/at-source-lines.
2976         <at_helper_dir>: New directory at-groups below $at_suite_dir.
2977         Add comment explaining the new directory structure.
2978         (at_func_group_prepare, at_func_group_postprocess): New shell
2979         functions to factorize per-test group work.  Keep the actual
2980         test execution outside of a shell function in order to avoid
2981         zsh 4.x exit status bugs.
2982         <at_check_line_file, at_status_file, at_stdout, at_stder1>
2983         <at_stderr, at_test_source>: Turn these into per-group files
2984         below $at_helper_dir.  Also store test results there in files
2985         named pass, fail, xpass, xfail, skip.  Let the parent collect
2986         results from $at_helper_dir.  Adjust summary statistics
2987         computation and result output.
2989 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2991         Fix '#undef variable /* comment */' transform in config headers.
2992         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): For
2993         undefined preprocessor macros that are followed by a comment
2994         in the header template, do not create nested comments in the
2995         output.
2996         * tests/torture.at (@%:@define header templates): Extend test.
2997         * NEWS: Update.
2998         Report by Karsten Hopp <karsten@redhat.com>.
3000 2008-06-09  Eric Blake  <ebb9@byu.net>
3002         Mark AC_TYPE_SIGNAL as obsolete.
3003         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Switch to AU_DEFUN.
3004         * doc/autoconf.texi (Function Portability): Update documentation.
3005         (Particular Types): Move AC_TYPE_SIGNAL...
3006         (Obsolete Macros): ...here, and mention why.
3007         * NEWS: Mention the change.
3009         Allow lib64 as a default X library location.
3010         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Add lib64.
3011         * NEWS: Mention the change.
3012         * THANKS: Update.
3013         Reported by Brad Walker.
3015 2008-06-05  Eric Blake  <ebb9@byu.net>
3017         Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
3018         * lib/autotest/general.m4 (AT_KEYWORDS): Expand argument prior to
3019         converting it to lower case.
3020         * tests/autotest.at (Keywords and ranges): Test this.
3021         * NEWS: Document the fix.
3022         * THANKS: Update.
3023         Reported via Karsten Hopp, by Jochen Schmitt in
3024         https://bugzilla.redhat.com/show_bug.cgi?id=449973
3026 2008-06-03  Eric Blake  <ebb9@byu.net>
3028         Fix 'make dist' regression from 2008-05-08.
3029         * Makefile.am (INSTALL): Add rule, to accomodate 'make dist' after
3030         GNUmakefile's _autoconf rule removes INSTALL.
3032 2008-05-27  Eric Blake  <ebb9@byu.net>
3034         Document Solaris /bin/sh redirection pitfall.
3035         * doc/autoconf.texi (File Descriptors): Mention redirection bug.
3037 2008-05-14  Eric Blake  <ebb9@byu.net>
3039         Improve documentation of ! issues.
3040         * doc/autoconf.texi (Limitations of Builtins) <!>: Touch up.
3041         Reported by Noah Misch.
3043         Document some FreeBSD shell bugs.
3044         * doc/autoconf.texi (Limitations of Builtins) <!>: Mention ! issue
3045         in compound pipe commands.
3046         <export>: Mention difference of exporting an undefined variable.
3047         (Shell Functions): Mention loss of $? in entry to shell functions.
3048         Extracted from the git mailing list.
3050 2008-05-13  Stepan Kasal  <kasal@ucw.cz>
3052         Work around MSYS and Cygwin bugs when dealing with trailing space.
3053         * tests/atlocal.in (func_sanitize_dir_name): Let atlocal succeed,
3054         even when platform bugs are tickled.
3055         Reported by Keith Marshall and Eric Blake.
3057 2008-05-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3059         Let AC_MSG_FAILURE report pwd.
3060         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE):
3061         Output $ac_pwd along with fatal failure.
3062         * tests/torture.at (Deep Package): Extend test.
3063         Reported numerous times against GCC, and probably other packages.
3065 2008-05-12  Eric Blake  <ebb9@byu.net>
3067         Enforce --help and --version compliance.
3068         * configure.ac (AM_INIT_AUTOMAKE): Add std-options option.
3070 2008-05-08  Keith Marshall  <keithmarshall@users.sourceforge.net>  (tiny change)
3072         Avoid case-insensitive `make install' vs. `INSTALL' conflict.
3073         * Makefile.am ($(srcdir)/INSTALL): Replace all references...
3074         ($(abs_srcdir)/INSTALL): ...with this.
3076 2008-05-06  Eric Blake  <ebb9@byu.net>
3078         Fix typo.
3079         * doc/autoconf.texi (Shell Substitutions): Drop at_ prefix.
3081         Avoid overfull \hbox.
3082         * doc/autoconf.texi (Versioning): Reword to fit line size.
3084         Document $(( )) pitfalls.
3085         * doc/autoconf.texi (Shell Substitutions): Mention octal
3086         vs. decimal.  Mention autotest's at_func_arith.
3088         Improve behavior of './testsuite 01'.
3089         * lib/autotest/general.m4 (AT_INIT) <at_func_validate_ranges>:
3090         Alter usage to eval its arguments, in order to normalize away
3091         leading zero.  All callers updated.
3092         * tests/autotest.at (Keywords and ranges): Test range
3093         normalization with leading 0.
3095 2008-04-26  Eric Blake  <ebb9@byu.net>
3097         Mention Solaris /usr/ucb/tr pitfall.
3098         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Add section.
3099         Reported by Bruno Haible and Jim Meyering.
3101 2008-04-24  Eric Blake  <ebb9@byu.net>
3103         Mention m4sugar's internal quote strings.
3104         * doc/autoconf.texi (Quadrigraphs): Mention alternate quote used
3105         in m4sugar, and how to still output it literally.
3106         * tests/m4sugar.at (m4@&t@_split): And test it.
3107         Reported by Joel E. Denny.
3109 2008-04-23  Eric Blake  <ebb9@byu.net>
3111         Allow unbalanced () in m4_expand.
3112         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Use more complex
3113         quotes.
3114         (m4_noquote, _m4_split): Use consistent complex quote.
3115         * tests/autotest.at (Left paren, Right paren): Test this.
3116         (Parentheses): Ensure new quadrigraphs still work.
3117         (AT_CHECK_AT_TITLE_CHAR): All title char tests exercise m4_expand.
3118         * NEWS: Mention the fix.
3119         * doc/autoconf.texi (Quadrigraphs): Revert mention of macros that
3120         require quadrigraphs for ().
3121         (Evaluation Macros) <m4_expand>: Relax the restriction against
3122         unbalanced ().
3123         (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
3124         (Writing Testsuites) <AT_SETUP>: Likewise.
3125         Reported by Joel E. Denny, fix suggested by Noah Misch.
3127 2008-04-22  Eric Blake  <ebb9@byu.net>
3129         Support unbalanced () in AT_SETUP by adding two new quadrigraphs.
3130         * bin/autom4te.in (handle_output): Substitute @{:@ and @:}@.
3131         (handle_traces): Likewise.
3132         * lib/m4sugar/m4sugar.m4 (m4_qlen): Account for new quadrigraphs.
3133         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Add new tests.
3134         * doc/autoconf.texi (Quadrigraphs): Document them.
3135         (Evaluation Macros) <m4_expand>: Enhance documentation.
3136         (Text processing Macros) <m4_text_box>: Document cases where
3137         quadrigraphs can help for problemetic unbalanced parentheses.
3138         (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
3139         (Writing Testsuites) <AT_SETUP>: Likewise.
3140         (Limitations of Builtins) <case>: Consolidate text on unbalanced
3141         parentheses, and add an example of creative comments.
3142         * NEWS: Document the addition.
3143         Reported by Joel E. Denny.
3145 2008-04-16  Eric Blake  <ebb9@byu.net>
3147         Document pdksh exec behavior.
3148         * doc/autoconf.texi (Limitations of Builtins) <exec>: New
3149         subsection.
3150         Discovered by Jim Meyering.
3152 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3154         * tests/autotest.at (AT_CHECK_AT): Allow to pass additional
3155         arguments to the inner suite.
3156         (errexit, input from stdin): New tests.
3158 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3160         * NEWS: Post-release update.
3162 2008-04-10  Eric Blake  <ebb9@byu.net>
3164         AC_AUTOCONF_VERSION might contain arbitrary macro names.
3165         * doc/autoconf.texi (Versioning): Mention problem with expansion.
3166         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Adjust test.
3168 2008-04-09  Slava Sysoltsev <Viatcheslav.Sysoltsev@h-d-gmbh.de>  (tiny change)
3170         Flush buffered output before exit.
3171         * bin/autom4te.in (handle_output): Explicitly close file.
3172         * THANKS: Update.
3173         See http://lists.gnu.org/archive/html/autoconf/2008-04/msg00026.html.
3175 2008-04-08  Eric Blake  <ebb9@byu.net>
3177         Generate web docs for 2.62.
3178         * doc/autoconf.texi (Evaluation Macros): Fix typo.
3179         (Notices): Use recommended means to escape RCS keyword.
3180         * cfg.mk (gnulib_dir): New macro.
3181         (web-manual): New target.
3183 2008-04-05  Eric Blake  <ebb9@byu.net>
3185         Release Version 2.62.
3186         * NEWS: Mention the release.
3188 2008-04-04  Stepan Kasal  <kasal@ucw.cz>
3189         and Eric Blake  <ebb9@byu.net>
3191         Return back to GPLv2+, until the text of the exceptions is
3192         finalized, reverting the change from 2007-07-03 and the first
3193         part of the change from 2007-07-20.
3194         * COPYING: Revert to GPLv2.
3195         * COPYINGv3: New file, since some auxiliary build tools, used for
3196         building autoconf and not installed, are GPLv3.
3197         * Makefile.am (EXTRA_DIST): Distribute COPYINGv3.
3198         * NEWS: Remove mention of GPLv3.
3199         * README: Clarify situation regarding GPLv3.
3201 2008-04-05  Eric Blake  <ebb9@byu.net>
3203         Prepare for release.
3204         * maint.mk (announcement): Avoid deleted option.
3205         * cfg.mk (release_archive_dir): Use default.
3206         * build-aux/gnupload: New file, from automake/gnulib.
3207         * Makefile.am (EXTRA_DIST): Distribute it.
3208         * .x-sc_two_space_separator_in_usage: New file, to exempt gnupload
3209         from syntax check.
3211 2008-04-05  Jim Meyering  <meyering@redhat.com>
3212         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3214         Work around CR EOL markers on OS/2 (www.ecomstation.com Ecs v2 rc4)
3215         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When CR
3216         is the EOL marker, skip a step that would remove and translate
3217         carriage return bytes.
3218         * THANKS: Update.
3219         Reported by Elbert Pol.
3221 2008-04-05  Eric Blake  <ebb9@byu.net>
3223         Avoid some autoreconf -Wall warnings.
3224         * configure.ac: Use proper quoting, to be a good example.
3225         (PACKAGE_NAME): Remove setting covered by autoconf.
3226         (AM_INIT_AUTOMAKE): Bump automake requirement, for html rules.
3227         * doc/Makefile.am (TEXI2DVI): Remove settings covered by
3228         automake.
3229         (html, autoconf_1.html, standards_1.html): Likewise.
3230         (TEXI2HTML, TEXI2HTML_FLAGS): Remove unused macros.
3231         * Makefile.am (html): Likewise.
3232         * doc/autoconf.texi (Quoting and Parameters): Add missing section
3233         name.
3234         * tests/Makefile.am (AUTOMAKE_OPTIONS): Intentionally ignore
3235         warning about our override, until Automake is fixed.
3236         * README-hacking: Document minimum requirements for bootstrap.
3238 2008-04-03  Eric Blake  <ebb9@byu.net>
3240         Fix version number generation in man pages.
3241         * Makefile.am (EXTRA_DIST): Distribute .version.
3242         (.version): New rule.
3243         * man/Makefile.am (common_dep): Depend on .version, not
3244         configure.ac.
3245         (.x.1): Use package name for version string.
3246         * GNUmakefile [!_have-Makefile]: Sync from upstream, again.
3247         * build-aux/git-version-gen: Sync from upstream.
3249         More maintainer tweaks: pass 'make maintainer-distcheck'.
3250         * GNUmakefile (_is-dist-target): Sync from upstream.
3251         * build-aux/vc-list-files: Sync from upstream, yet again.
3252         * tests/atlocal.in (unsupported_fs_chars): Always remove tdir.
3253         * tests/Makefile.am (EXTRA_DIST): Don't distribute the built
3254         package.m4.
3255         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump year.
3257         Fix VPATH 'make syntax-check'.
3258         * maint.mk (VC_LIST, VC_LIST_EXCEPT, sc_changelog)
3259         (sc_prohibit_jm_in_m4, makefile-check): Support VPATH.
3260         (author_mark_check): Avoid error message.
3261         * build-aux/vc-list-files: Sync from upstream again.
3262         * build-aux/texinfo.tex: Likewise.
3264         Sync files from upstream, and pass 'make syntax-check'.
3265         * config/announce-gen: Move...
3266         * build-aux/announce-gen: ...here, and sync from gnulib.
3267         * Makefile.am (EXTRA_DIST): Adjust accordingly.
3268         * cfg.mk (announce_gen): Likewise.
3269         (prev_version_file): Delete, relying on default in maint.mk.
3270         (gpg_key_ID): New macro.
3271         (url_dir_list): Rewrite to match coreutils.
3272         * config/prev-version.txt: Move...
3273         * .prev-version: ...here, and adjust to 2.61.
3274         * build-aux/vc-list-files: Sync from coreutils.
3275         * maint.mk: Resynchronize with coreutils, where possible.
3276         (ME): Remove $(srcdir) from definition.
3277         (CVS): Delete.
3278         (GIT, VC, VC-tag): New macros.
3279         (CVS_LIST, CVS_LIST_EXCEPT): Rename...
3280         (VC_LIST, VC_LIST_EXCEPT): ...to this.
3281         (cvs-tag-check): Delete.
3282         (cvs-diff-check): Rename...
3283         (vc-diff-check): ...to this.
3284         (sc_file_system): Allow FHS acronym.
3285         * doc/autoconf.texi (Particular Functions): Recommend
3286         unconditional <config.h>.
3287         * build-aux/config.guess: Sync from upstream (manually).
3288         * build-aux/config.sub: Likewise.
3289         * build-aux/texinfo.tex: Likewise.
3290         * doc/make-stds.texi: Likewise.
3291         * doc/standards.texi: Likewise.
3292         * .gitattributes: Ignore whitespace problems in upstream files.
3294 2008-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3296         * doc/autoconf.texi (Limitations of Usual Tools): Mention awk %u
3297         bug on HP-UX/IA.
3298         Report by Peter O'Gorman.
3300 2008-04-02  Eric Blake  <ebb9@byu.net>
3302         Recommend the just-released M4 1.4.11.
3303         * NEWS: Update recommendation.
3304         * README: Likewise.
3305         * doc/autoconf.texi (Introduction): Likewise.
3306         * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
3308 2008-04-01  Eric Blake  <ebb9@byu.net>
3310         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Bump
3311         copyright year.
3313 2008-03-28  Peter O'Gorman  <peter@pogma.com>
3315         Find X11 on Mac OS X too.
3316         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT,_AC_PATH_X_XMKMF):
3317         Check for libX11 with extensions dylib la and dll too.
3318         * THANKS: Update.
3319         Reported by Martin Costabel.
3321 2008-03-28  Eric Blake  <ebb9@byu.net>
3323         Update TODO based on completed tasks.
3324         * TODO (AC_PROG_INSTALL takes multiple files): Done.
3325         (AC_GNU_SOURCE deprecation): Done, see AC_USE_SYSTEM_EXTENSIONS.
3326         (AC_COMPILE_IFELSE documentation): Done.
3327         (Tracing builtins): Done, now that we require M4 1.4.5.
3328         (AC_PROG_CC_POSIX suggestion, providing header files)
3329         (AC_TYPE_SIGNAL): Not needed; gnulib's approach is better.
3330         (cache consistency): Done with precious variables.
3332 2008-03-26  Eric Blake  <ebb9@byu.net>
3334         Document --trace=macro:format in --help output.
3335         * bin/autom4te.in (help): Mention optional trace format.
3336         * bin/autoconf.as (usage): Likewise.
3338         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Fix
3339         typos in last patch.
3340         Reported by Ralf Wildenhues.
3342 2008-03-26  Jim Meyering  <meyering@redhat.com>
3344         Fix texinfo syntax error.
3345         * doc/autoconf.texi (Limitations of Usual Tools): s/@kbd {/@kbd{/
3347 2008-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3349         Warn, not fail on whitespace-only precious variable differences.
3350         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Output
3351         precious variable differences less ambiguous with `ugly-quotes'.
3352         If their settings differ only in whitespace, do not fail, but
3353         reuse the old value.
3354         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Extend macro to allow
3355         an optional status and expected-warning argument.  Fix m4
3356         quotation for initial value.
3357         (AC_ARG_VAR): Also test for whitespace-only differences, and
3358         that the old value is retained in this case.
3359         * doc/autoconf.texi (Setting Output Variables): Document this.
3360         * NEWS: Update.
3361         Report and initial patch by Paolo Bonzini.
3363 2008-03-26  Eric Blake  <ebb9@byu.net>
3365         Document busybox sed bug.
3366         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Mention
3367         restrictions when using back-references.
3368         Reported by Vincent Lefevre:
3369         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13013>.
3371         Document Automake interaction with AC_CONFIG_MACRO_DIR.
3372         * doc/autoconf.texi (Input): Mention ACLOCAL_AMFLAGS for automake
3373         users.
3374         * THANKS: Update.
3375         Reported by Chris Pickett.
3377 2008-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3379         * tests/autotest.at (Using atlocal): Quote instances of `pwd`.
3381         * tests/local.at (AT_CHECK_M4): Factorize warning output
3382         normalization.
3383         Suggested by Eric Blake.
3385 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3387         Fix .exe-related test failure on MinGW.
3388         * tests/local.at (AT_CHECK_M4): Normalize `/bin/m4.exe' correctly
3389         for comparing warning output.
3391         Fix Fortran testsuite failures with gfortran 4.3.
3392         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): When scanning
3393         verbose compiler output, skip lines that set variables; gfortran
3394         4.3 sets LIBRARY_PATH, COMPILER_PATH, COLLECT_GCC_OPTIONS.
3395         * THANKS: Update.
3396         Report by Vincent Lefèvre.
3398 2008-03-21  Eric Blake  <ebb9@byu.net>
3400         * GNUmakefile: Resynchronize with gnulib.
3402         Document more uses of $cross_compiling.
3403         * doc/autoconf.texi (Runtime): Document that a temporary override
3404         is permissible.
3405         * THANKS: Update.
3406         Reported by Ineiev, example by Ralf Wildenhues.
3408         Don't swallow $1 in textual local variables.
3409         * lib/m4sugar/m4sugar.m4 (m4_combine): Don't use overquoting and
3410         expansion of text arguments, as that swallows $1.
3411         (m4_text_wrap): Likewise, by splitting out...
3412         (_m4_text_wrap): ...new helper macro.  Also, allow arbitrary
3413         expression for width.
3414         * tests/m4sugar.at (m4@&t@_text_wrap): Test this.
3415         (m4@&t@_combine): Likewise.
3417 2008-03-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3419         Avoid leftover files on Leopard.
3420         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove a.out.dSYM
3421         directory created on darwin.
3422         (AC_NO_EXECUTABLES): Likewise; also remove objects which may be
3423         left over from a broken link.
3424         * tests/c.at (AC_NO_EXECUTABLES (working linker))
3425         (AC_NO_EXECUTABLES (broken linker)): New tests.
3426         Report by Gary V. Vaughan.
3428         * lib/autom4te.in (Automake-preselections): Trace
3429         _AM_COND_IF, _AM_COND_ELSE, _AM_COND_ENDIF.
3431 2008-03-20  Eric Blake  <ebb9@byu.net>
3433         Kill more CVS references.
3434         * README-cvs: Delete.  See README-hacking instead.
3435         * README-hacking: Update wording, based on older file.
3436         * BUGS: Remove CVS mention.
3438 2008-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3440         * tests/tools.at (autotools and whitespace in file names): Skip
3441         if aclocal is not present.
3443 2008-03-20  Eric Blake  <ebb9@byu.net>
3445         Sync GNUmakefile with gnulib.
3446         * GNUmakefile (Makefile.cfg): Rename...
3447         (cfg.mk): ...to this, and make optional.
3448         (GNUmakefile.cfg): Delete, redundant with cfg.mk.
3449         (Makefile.maint): Rename...
3450         (maint.mk): ...to this.
3451         (all) [!_have-Makefile]: Rename...
3452         (abort-due-to-no-makefile): ...to this, and invoke via
3453         .DEFAULT_GOAL to pick up all targets.
3454         * Makefile.cfg: Rename...
3455         * cfg.mk: ...to this.
3456         * Makefile.maint: Rename...
3457         * maint.mk ...to this.
3458         (ME): Reflect name change.
3459         (makefile-check, m4-check, author_mark_check, msg): Use $(ME)
3460         rather than hard-coded name.
3461         * GNUmakefile.cfg: Delete; move rules into cfg.mk.
3462         * Makefile.am (EXTRA_DIST): Reflect file name changes.
3463         * .x-sc_prohibit_atoi_atof: Likewise.
3464         * lib/freeze.mk: Likewise.
3466 2008-03-19  Stepan Kasal  <kasal@ucw.cz>
3468         * doc/autoconf.texi (Introduction): Improve the paraphrase of
3469         Henry Spencer's quotation.
3471 2008-03-19  Eric Blake  <ebb9@byu.net>
3473         AC_CONFIG_HEADERS replaced AC_CONFIG_HEADER.
3474         * bin/autoscan.in (output): Avoid obsolete spelling.
3475         * tests/local.at (AC_STATE_SAVE): Update usage.
3476         * THANKS: Update.
3477         Reported by John Calcote.
3479         Emphasize that ease of configure triumphs over ease of autoconf.
3480         * doc/autoconf.texi (Introduction): Expand on primary
3481         vs. secondary goal of autoconf.
3482         * THANKS: Update.
3483         Inspired by Paul Smith.
3485 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3487         * lib/Autom4te/FileUtils.pm (handle_exec_errors): New argument
3488         $hint, show if the executing program does not exist.
3489         (xsystem_hint): New function, like xsystem but allows to pass
3490         a hint.
3491         * bin/autoreconf.in: Use xsystem_hint for spawning autopoint and
3492         libtoolize.
3493         Report by Bruce Korb.
3495 2008-03-14  Stepan Kasal  <kasal@ucw.cz>
3497         * lib/Autom4te/ChannelDefs.pm, tests/fortran.at,
3498         tests/mktests.sh, tests/wrapper.as: Fix typos.
3500 2008-03-12  Eric Blake  <ebb9@byu.net>
3502         Fix yesterday's regression in m4_wrap([$1]).
3503         * lib/m4sugar/m4sugar.m4 (_m4_wrap): Don't directly invoke wrapped
3504         text, since it may contain text that looks like parameters.
3505         * tests/m4sh.at (AS@&t@_INIT cleanup): Enhance test.
3507 2008-03-11  Eric Blake  <ebb9@byu.net>
3509         Improve error messages for common testsuite bugs.
3510         * lib/autotest/general.m4 (_AT_DEFINE_INIT, _AT_DEFINE_SETUP): New
3511         macros for defining order-enforced macros.
3512         (AT_INIT, AT_SETUP, AT_CLEANUP, AT_BANNER, AT_XFAIL_IF)
3513         (AT_CAPTURE_FILE, AT_DATA, AT_CHECK, AT_CHECK_NOESCAPE): Add error
3514         messages when order violations are detected.
3515         * tests/autotest.at (AT_CHECK_AT_SYNTAX): New helper macro.
3516         (AT_SETUP without AT_INIT, AT_BANNER without AT_INIT)
3517         (AT_CLEANUP without AT_INIT, Missing AT_CLEANUP)
3518         (AT_CHECK without AT_SETUP, AT_DATA without AT_SETUP)
3519         (AT_XFAIL_IF without AT_DATA, AT_KEYWORDS without AT_SETUP,
3520         (AT_CLEANUP without AT_SETUP, AT_BANNER inside AT_SETUP)
3521         (AT_SETUP inside AT_SETUP, Multiple AT_INIT)
3522         (Banner-only test suite): New tests.
3523         Reported by Christopher Hulbert.
3525         Tweak m4_wrap to force FIFO or LIFO semantics.
3526         * lib/m4sugar/m4sugar.m4 (m4_wrap): Override M4 implementation.
3527         (m4_wrap_lifo, _m4_wrap): New macros.
3528         * lib/m4sugar/m4sh.m4 (AS_INIT): Combine all cleanup into known
3529         order, prior to m4sugar's.
3530         (_AS_DETECT_BETTER_SHELL): Use cleanup parameter, rather than
3531         m4_wrap.
3532         * lib/autotest/general.m4 (AT_INIT): Combine all cleanup into
3533         known order, prior to m4sh's.
3534         * doc/autoconf.texi (Diagnostic Macros) <m4_fatal>: Document
3535         argument.
3536         (Redefined M4 Macros) <m4_wrap>: Rewrite documentation to match
3537         new behavior.
3538         * tests/m4sh.at (AS_INIT cleanup): New test.
3539         * NEWS: Document the change.
3541 2008-03-10  Eric Blake  <ebb9@byu.net>
3543         Encode nested autotest data.
3544         * tests/autotest.at (AT_CHECK_AT_PREP): Avoid raw AT_ in output.
3545         (unusual file names): Likewise.
3546         (m4_pattern_allow): Remove loophole, to make it easier to catch
3547         poorly written tests.
3549         Factor some autotest tests.
3550         * tests/autotest.at (AT_CHECK_AT_PREP): New macro, to factor out
3551         common initialization.
3552         (AT_CHECK_AT, Banners, Keywords and ranges, srcdir propagation)
3553         (whitespace in absolute testdir, unusual file names): Use it.
3555 2008-03-06  Eric Blake  <ebb9@byu.net>
3557         Minor documentation fix.
3558         * doc/autoconf.texi (Evaluation Macros): Fix typo.
3560 2008-03-04  Eric Blake  <ebb9@byu.net>
3562         Make AT_CHECK act like a simple command.
3563         * lib/autotest/general.m4 (_AT_CHECK): Wrap commands in {;}.
3564         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Test it.
3566 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3568         On MinGW, substitution of CR and 0xFF fails.
3569         * tests/torture.at (Substitute and define special characters):
3570         MinGW awk cannot handle 0xFF, and on MinGW, the test does the
3571         wrong thing for CR.
3573 2008-03-04  Eric Blake  <ebb9@byu.net>
3575         Pull in recent maintainer improvements from coreutils.
3576         * GNUmakefile (_is-dist-target): 'make distclean' should not
3577         trigger autoreconf.
3578         (_dummy): Change directories before removing autom4te.cache.
3579         (check dist distcheck install) [!_have-Makefile]: Provide nicer
3580         diagnostics.
3581         * configure.ac (AC_CONFIG_LINKS): Copy GNUmakefile into VPATH
3582         builds, after initial bootstrap.
3583         * Makefile.am (distclean-local): Work around current automake bug.
3584         * Makefile.maint (ME): Allow VPATH usage.
3586         Use git-merge-changelog when available.
3587         * .gitattributes: New file.
3588         * README-hacking: Document use of git-merge-changelog.
3590         Work around cygwin bug.
3591         * tests/atlocal.in (unsupported_fs_chars): Avoid cygwin bug where
3592         "touch 't\'" creates regular file 't'.
3594         Ignore tests that require read-only directories under root.
3595         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Skip
3596         no-write portion if user has root-like privileges.
3598 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3600         * lib/autotest/general.m4 (AT_INIT): Fix detection of '-C -'.
3602 2008-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3604         autoreconf -m now honors $MAKE.
3605         * bin/autoreconf.in ($run_make): Renamed from ...
3606         ($make): ... this.  Use now as command to run `make',
3607         overridden by $MAKE.  Document this in --help output.
3608         * doc/autoconf.texi (autoreconf Invocation): Document
3609         all environment variables honored by autoreconf.
3610         * NEWS: Update.
3611         Report by Paul Eggert.
3613 2008-03-03  Eric Blake  <ebb9@byu.net>
3615         Documentation improvements.
3616         * doc/autoconf.texi (Looping constructs): s/recurses/repeats/.
3617         (Evaluation Macros): Drop `1' suffix from metasyntax variable name
3618         that preceeds @dots.  Improve wording.
3619         (Text processing Macros): Drop `1' suffix from metasyntax variable
3620         name that preceeds @dots.
3621         (Number processing Macros): Drop `1' suffix from metasyntax
3622         variable name that preceeds @dots.  Improve wording.
3623         * lib/m4sugar/m4sugar.m4 (m4_cmp): Comment wording fix.
3624         Suggested by Ralf Wildenhues.
3626 2008-03-02  Jim Meyering  <meyering@redhat.com>
3628         Don't infloop upon "make dist".
3629         * GNUmakefile: Merge from coreutils.
3630         * Makefile.am (dist-hook): Inject .tarball-version into tarball,
3631         not .version.
3632         * configure.ac (AC_INIT): Use .tarball-version, not .version.
3633         * build-aux/git-version-gen: Update from gnulib.
3635 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3637         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
3638         Before using /dev/full, check that it is a writable character
3639         special device.
3640         Report by Benoit Sigoure and Eric Blake.
3642         Actually test that @configure_input@ is expanded correctly.
3643         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
3644         Actually check generated file contents for the name of the
3645         generated file, using AC_PROG_FGREP and $FGREP.
3647 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
3649         Be nice with file systems that don't handle unusual characters.
3650         * tests/atlocal.in (func_sanitize_file_name)
3651         (func_sanitize_dir_name): New shell functions.
3652         * tests/tools.at (autom4te and whitespace in file names)
3653         (autotools and whitespace in file names): Use them.
3654         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
3655         Cover more potentially problemtic file names.  Use the new
3656         functions.
3658         Properly handle funny file names for headers in config.status.
3659         The test suite did not cover this bug because the code was not
3660         quoting properly the arguments of `rm -f' (which "fails" silently)
3661         as well as the arguments of `diff' (whose output was redirected to
3662         /dev/null so we couldn't see its error message).
3663         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Properly quote the
3664         file names passed to `rm' and `diff'.
3665         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
3666         Add a regression test.
3668 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
3669         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3671         Properly expand @configure_input@ in config.status.
3672         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_MAIN_LOOP):
3673         Escape the backslashes and ampersands in $configure_input before
3674         using it in the sed replacement string to expand @configure_input@.
3675         Report by Eric Blake and Patrick Welche.
3677 2008-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3679         Ignore errors from ./run on w32.
3680         * tests/autotest.at (whitespace in absolute testdir):
3681         Ignore stderr for `./run' which fails to remove the
3682         busy test directory on w32.
3684 2008-02-22  Eric Blake  <ebb9@byu.net>
3686         Improve documentation for writing autotest suites.
3687         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention that
3688         checks must live inside a test group.
3689         Reported by Christopher Hulbert.
3691 2008-02-21  Eric Blake  <ebb9@byu.net>
3693         Sync git-version-gen from upstream.
3694         * build-aux/git-version-gen: Pull from gnulib.
3695         * configure.ac (AC_INIT): Adjust to new calling convention.
3697 2008-02-12  Eric Blake  <ebb9@byu.net>
3699         Avoid trailing space in config.h with AC_DEFINE([var], []).
3700         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Explicitly mark empty
3701         defines with a comment.
3703 2008-02-08  Eric Blake  <ebb9@byu.net>
3705         Fix texinfo typos in previous patch.
3706         * doc/autoconf.texi (Site Defaults): s/[{}]/@&/g.
3707         Reported by Ralf Wildenhues.
3709         Describe a config.site that can be used for FHS compliance.
3710         * doc/autoconf.texi (Site Defaults): Fix typo.  Add new example
3711         for FHS.
3712         * THANKS: Update.
3713         Reported by Jules Colding and Ralf Wildenhues.
3715 2008-02-02  Eric Blake  <ebb9@byu.net>
3717         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Fix typo.
3719 2008-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3721         * lib/autotest/general.m4 (AT_INIT): Fix --clean to work
3722         again, broken since introduction of `-C dir'.
3723         * tests/autotest.at (Choosing where testsuite is run): Test it.
3725 2008-01-30  Paul Eggert  <eggert@cs.ucla.edu>
3727         * doc/autoconf.texi: Update Back-Cover text to reflect new GNU wording.
3729 2008-01-29  Eric Blake  <ebb9@byu.net>
3731         Fix more autotest regressions.
3732         * lib/autotest/general.m4 (AT_LINE): Fix regression from
3733         2007-10-04 when file name is `dnl'.
3734         (AT_INIT) <PREPARE_TESTS>: Move command-line assignments...
3735         <TESTS_BEGIN>: ...to this new diversion, to fix regression from
3736         yesterday in libtool's testsuite.
3737         (_AT_ARG_OPTION): Detect write failure.
3738         * doc/autoconf.texi (Diversion support): Document PREPARE_TESTS to
3739         make libtool's use kosher.  Document m4_init.
3740         (Programming in M4sh): Document AS_INIT.
3741         (Writing Testsuites): Document limitation of AT_DATA file name.
3742         * tests/autotest.at (unusual file names): New test.
3743         (Banners, Keywords and ranges): Use correct shell.
3745         More corner cases in testsuite VAR=VALUE handling.
3746         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS): Fix quoting
3747         bug.
3748         <PARSE_ARGS_END>: Also detect leading digits in assignments.
3749         * tests/autotest.at (Using atlocal): Enhance test to catch last
3750         bug.
3752         * doc/autoconf.texi (Limitations of Builtins) <.>: Mention bash
3753         bug.
3755 2008-01-28  Eric Blake  <ebb9@byu.net>
3757         Fix regression in handling VAR=VALUE arguments to testsuite.
3758         * lib/autotest/general.m4 (AT_INIT) <PARSE_ARGS_END>: Detect
3759         leading = as invalid.  Defer use of command-line variable
3760         assignments...
3761         <PREPARE_TESTS>: ...here, after atconfig has been sourced.  Fix
3762         regression in sourcing files.
3763         * tests/autotest.at (Using atlocal): New test to catch this.
3764         (Debugging a successful test, Choosing where testsuite is run):
3765         Use correct shell.
3766         Reported by Ralf Wildenhues.
3768         Document grep peculiarity.
3769         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
3770         BSD behavior on binary input.
3772         Minor testsuite improvements.
3773         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Use fewer
3774         forks when sanitizing PATH.  Always output machine information,
3775         not just when atconfig was located.
3777         Add 'testsuite -C dir'.
3778         * lib/autotest/general.m4 (_AT_ARG_OPTION): Move missing argument
3779         detection...
3780         (AT_INIT) <PARSE_ARGS_END>: ...here, since -k always takes
3781         argument.
3782         <DEFAULTS>: Delay computation of variables based on $at_dir...
3783         <PREPARE_TESTS>: ...to here, since -C can change $at_dir.
3784         <TESTS>: Re-invoke via absolute name, since -C may be in effect.
3785         <PARSE_ARGS>: Parse new option.
3786         <HELP_TUNING>: Document it.
3787         * tests/autotest.at (Choosing where testsuite is run): New test
3788         for this feature.
3789         (Keywords and ranges): Add test for missing -k argument.
3790         * NEWS: Document this.
3791         * doc/autoconf.texi (testsuite Invocation): Likewise.
3793 2008-01-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3795         * build-aux/config.guess, build-aux/config.sub,
3796         build-aux/texinfo.tex: Sync from gnulib.
3797         * doc/fdl.texi, doc/make-stds.texi, doc/standards.texi:
3798         Likewise.
3800 2008-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3802         * doc/autoconf.texi (Particular Programs): Do not mention the
3803         Autoconf version in which the AC_PROG_INSTALL change was done.
3804         Suggested by Paul Eggert.
3806 2008-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3808         Fix --help=recursive with multiple AC_CONFIG_SUBDIRS.
3809         * lib/autoconf/general.m4 (_AC_INIT_HELP): If, for recursive help
3810         mode, we change to the source directory, also set $ac_pwd so we
3811         do not go back to the build tree for the next config subdir.
3812         * tests/torture.at (Deep Package): Extend test to contain two
3813         config subdirs on the top level.
3815         Fix parallel `maintainer-check'.
3816         * Makefile.am (maintainer-check-tests): Depend on `all'.
3817         Use `$(MAKE) $(AM_MAKEFLAGS)' instead of plain `make'.
3818         * tests/Makefile.am (maintainer-check-c++, maintainer-check-posix):
3819         Likewise.
3820         (maintainer-check): Serialize the testsuite runs.
3822         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE2): Accept `+'
3823         in feature string for --enable/--with.  Convert to underscore
3824         for variable name.
3826         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Require that
3827         `install -c file1 file2 dir' works.
3828         * doc/autoconf.texi (Particular Programs): Document this.
3829         * NEWS: Update.
3831 2008-01-21  Eric Blake  <ebb9@byu.net>
3833         Improve documentation about default include directives.
3834         * doc/autoconf.texi (Generic Headers, Generic Declarations)
3835         (Generic Structures, Generic Types)
3836         (Generic Compiler Characteristics): Add links to
3837         AC_INCLUDES_DEFAULT.
3838         Reported by Reuben Thomas.
3840 2008-01-15  Eric Blake  <ebb9@byu.net>
3842         * lib/m4sugar/m4sugar.m4 (m4_qlen): Use fewer macros.
3844 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3846         * tests/Makefile.am (noinst_SCRIPTS): Renamed from
3847         check_SCRIPTS.  Building the wrappers for `all' allows help2man
3848         to use them for the manpages.
3849         Report by Benoit Sigoure.
3851         * bin/autoreconf.in: Discard stderr for $autoconf/$aclocal --help.
3853 2007-12-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3855         Fix some write failure cases in Autotest.
3856         * lib/autotest/general.m4 (AT_INIT): Do not exit successfully
3857         upon write failures for --help, --version, --list.
3858         Guard against write failures for intermediate created scripts.
3859         <at_func_create_debugging_script>: Do not make the debugging
3860         script executable if it is not complete.
3862 2007-12-12  Eric Blake  <ebb9@byu.net>
3864         Fix thinko in earlier patch - m4_join isn't defined yet.
3865         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
3866         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
3867         (m4_require): Use m4_do, not m4_join.
3869         Fix some whitespace tests on cygwin.
3870         * tests/tools.at (autom4te and whitespace in file names): Restore
3871         font-lock.  Create $TMPDIR before it might be used.
3873         Fix spurious testsuite failure with M4 1.4.11.
3874         * tests/local.at (AT_CHECK_M4): Cater to new m4 error message.
3876         Optimize AC_REQUIRE.
3877         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
3878         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
3879         (m4_require): Avoid extra macro calls.
3881 2007-12-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3883         * tests/torture.at (srcdir): Fix quoting.
3885         Do not pass top_srcdir to configure scripts in testsuite.
3886         * tests/autotest.at (srcdir propagation): Copy install-sh to
3887         source tree.
3888         (my only test): Drop setting of `top_srcdir'.
3889         * tests/base.at (Input/Output): Likewise.
3890         * tests/local.at (AT_CONFIGURE_AC): Copy install-sh,
3891         config.guess, and config.sub to test source tree.
3892         Drop AC_CONFIG_AUX_DIR setting.
3893         (AT_CHECK_CONFIGURE): Drop setting of `top_srcdir'.
3894         * tests/torture.at (Substitute a 2000-byte string): Drop
3895         AC_CONFIG_AUX_DIR setting, copy install-sh to test source tree.
3896         (Substitute a newline, datarootdir workaround): Likewise.
3897         (Define a newline): Adjust for linenumber changes in configure.ac.
3898         * tests/foreign.at (Libtool): Adjust comment to reflect changes.
3900         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): Skip test
3901         if `pwd` contains whitespace.
3903         Quote $abs_top_srcdir in tests.
3904         * tests/local.at (AT_CHECK_PERL_SYNTAX): Likewise.
3905         * tests/tools.at (Syntax of the shell scripts): Likewise.
3907         * tests/m4sh.at (LINENO): Quote $0.
3909         Fix testsuite program wrapper for whitespace in `pwd`.
3910         The problem here is that the usual mantra is that command
3911         variables can contain arguments, thus we cannot just escape
3912         $AUTOCONF, $AUTOM4TE etc.  The compromise is to put the
3913         $top_builddir/tests directory early in $PATH, so that the
3914         wrappers are found by their plain name.
3915         * tests/wrapper.as: Put $testdir early in $PATH.
3916         (AUTOCONF, AUTOHEADER, AUTOM4TE): Set to plain command names.
3918         Proper config.status --file/--header and $srcdir escaping.
3919         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Quote special
3920         characters in $ac_file_inputs.
3921         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER): eval $ac_file_inputs
3922         accordingly.
3923         * tests/torture.at (datarootdir workaround): Adjust.
3924         (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): Extend test.
3926         Fix Autotest for whitespace in `pwd`.
3927         * lib/autotest/general.m4 (AT_INIT)
3928         <at_func_create_debugging_script, Driver Loop>:
3929         Quote $at_group_dir.
3930         * tests/autotest.at (whitespace in absolute testdir): New test.
3932         * lib/autom4te.in: Quote @datadir@.
3934         Proper file name escaping in Autoconf programs and Perl modules.
3935         This includes escaping of characters special to the shell
3936         as well as special to Perl, e.g., leading `<' or `>'.
3937         For example, when $file starts with `>', `open ">$file"'
3938         wrongly tries to append to a different file.
3939         * bin/autoconf.as: Fix quoting for autom4te options.
3940         * lib/Autom4te/General.pm (shell_quote): New function, taken
3941         from coreutils, written by Jim Meyering.
3942         (mktmpdir): Use it.
3943         * bin/autom4te.in (files_to_options, handle_m4): Use shell_quote
3944         and open_quote.
3945         * bin/autoreconf.in (parse_args): Likewise.
3946         * bin/autoscan.in (main): Likewise.
3947         * bin/autoupdate.in (main): Likewise.
3948         * bin/autoheader.in: Likewise, fixing old insufficient escaping.
3949         * bin/ifnames.in: Likewise, XFile usage fixes.
3950         * tests/tools.at (autom4te and whitespace in file names): Extend
3951         test.  Test twice, with special characters allowed on w32, and the
3952         rest.  Test leading and trailing whitespace, for `open_quote'.
3953         (autotools and whitespace in file names): New, analogous test.
3954         Reported by Paul Eggert and Benoit Sigoure, additional suggestions
3955         by Russ Allbery and Eric Blake.
3957         Sync from Automake.
3958         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
3959         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Likewise.
3960         * lib/Autom4te/FileUtils.pm (open_quote): New function.
3961         (update_file, contents): Use it.
3963         * Makefile.am (autom4te-update): Rewrite for git.
3965 2007-12-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3967         * doc/autoconf.texi (autom4te Invocation, Autom4te Cache): Fix typos.
3969         Fix copyright years.
3970         * Makefile.am, doc/install.texi, lib/autoconf/fortran.m4,
3971         lib/autoconf/lang.m4, lib/freeze.mk: Likewise.
3973 2007-12-04  Eric Blake  <ebb9@byu.net>
3975         Manually resync with gnulib, since 'make cvs-update' no longer works.
3976         * build-aux/config.guess: New upstream version.
3977         * build-aux/config.sub: Likewise.
3979         When using older automake, don't downgrade build-aux/texinfo.tex.
3980         * configure.ac (AM_INIT_AUTOMAKE): Add no-texinfo.tex option.
3981         * doc/Makefile.am (TEXINFO_TEX): Add.
3983 2007-11-27  Paul Eggert  <eggert@cs.ucla.edu>
3985         Fix AC_C_BIGENDIAN bug caused by new awk method of substitution.
3986         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Don't comment out the
3987         #undef as this runs afoul of our new way of creating config.h.
3988         Problem reported by Jim Meyering in
3989         <http://lists.gnu.org/archive/html/autoconf-patches/2007-11/msg00164.html>.
3991 2007-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3993         Fix autom4te for unusual characters in input file names.
3994         * bin/autom4te.in (files_to_options): Quote active characters
3995         for the shell.
3996         * tests/tools.at (autom4te and white space in file names):
3997         New test.
3999         * doc/autoconf.texi (Limitations of Usual Tools) <awk>:
4000         Document that Tru64 awk always splits $0.
4002 2007-11-24  Stepan Kasal  <kasal@ucw.cz>
4004         * lib/autotest/general.m4 (AT_INIT): Do not extract the
4005         `#AT_STOP_...' line at the end of each test.
4007 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4009         * lib/autotest/general.m4 (AT_INIT): For awk line number
4010         extraction script, ensure `$at_group' has a defined value
4011         even for the empty set, and properly quote its usage inside
4012         the awk script.
4014 2007-11-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4016         * doc/autoconf.texi (Shell Functions): New chapter.  Document
4017         IRIX sh $0 issue in functions, move content from ...
4018         (Portable Shell): ... here.
4019         (Shell Script Compiler): Note that shell functions are not
4020         totally unportable any more.
4022 2007-11-22  Stepan Kasal  <kasal@ucw.cz>
4023         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4025         * lib/autotest/general.m4 (AT_INIT): Exit awk script after
4026         extracting the line numbers of the last needed test.
4028 2007-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4030         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
4031         Fix quoting.
4033 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4035         Fix IRIX testsuite debugging failures: $0 in functions.
4036         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
4037         Do not use $0 inside a function, as IRIX sh will set that to the
4038         function name rather than the script invocation name.
4040 2007-11-19  Paolo Bonzini  <bonzini@gnu.org>
4041         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4043         * lib/autotest/general.m4 (at_func_test): Use cached line numbers
4044         to extract test scripts.
4045         (AT_INIT): Extract and cache test script line numbers.
4047 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4049         * lib/autotest/general.m4: Revert 2007-11-15 patch and
4050         subsequent fixups; the awk -> here-document conversion trashes
4051         performance too much with AIX sh.
4053 2007-11-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4055         * tests/local.at: Do not test m4, perl with AT_TESTED.
4057         Diagnose and guard against write errors dealing with config.status.
4058         The general idea is this: all write failures from `configure'
4059         writing `config.status' are indicated by $ac_write_error, which
4060         is only checked at the end.  This is safe because config.status
4061         code is not executed before the file is complete.  Other write
4062         failures, be they inside config.status, or in sub shell/awk
4063         scripts spawned from configure or config.status, typically need
4064         earlier checking, as their results are used right afterwards.
4065         * lib/autoconf/status.m4 (AC_OUTPUT): Initialize `ac_write_fail'
4066         before writing config.status, check afterwards.
4067         (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
4068         (_AC_OUTPUT_HEADERS_PREPARE,_AC_OUTPUT_CONFIG_STATUS):
4069         Set `ac_write_error' for write failures to config.status.  Barf
4070         upon write failures to temporary files.
4071         Adjust note about closing and reopening the here-document.
4072         (_AC_OUTPUT_HEADER, _AC_OUTPUT_LINK, _AC_OUTPUT_COMMAND)
4073         (_AC_OUTPUT_MAIN_LOOP): Likewise, adjust note about closing and
4074         reopening the here-document.
4075         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
4076         Ensure `ac_write_error' does not escape into config.status.
4077         Also, add a couple of code paths not yet exercised in the test
4078         suite: a config file with input from stdin, and a config header
4079         output to stdout.
4080         Suggestion for catching write errors by Bruno Haible.
4082 2007-11-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4084         Avoid error with Tru64 awk and testsuite lines with many words.
4085         * lib/autotest/general.m4 (AT_INIT): In the awk script that
4086         reads the testsuite, set the field separator to an unusual value,
4087         in order to not run over the limit of 199 fields.  Tru64 4.0D awk
4088         even splits the input if $i, i>0, was never accessed in the script.
4090         Revert 2007-10-17 change.
4091         * TODO: Multiline args in config files and headers mean something
4092         different and are not fixed, see
4093         <http://lists.gnu.org/archive/html/autoconf-patches/2007-05/msg00017.html>
4094         Report by Stepan Kasal.
4096         * doc/autoconf.texi (Generic Programs): Fix typo.
4098 2007-11-16  Stepan Kasal  <kasal@ucw.cz>
4100         AC_*_TOOL does not canonicalize the prefix
4101         * doc/autoconf.texi (Generic Programs): Do not say that
4102         the *_TOOL macros canonicalize, they simply use the `host_alias'.
4104 2007-11-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4106         Diagnose write errors in config.status instantiations.
4107         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE)
4108         (_AC_OUTPUT_HEADER, _AC_OUTPUT_MAIN_LOOP): Bail out
4109         on write errors.
4110         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
4111         Extend test to also check for some write error failures, using...
4112         <AT_CHECK_CONFIG_CREATION_NOWRITE>: ...this new macro.
4113         Report by Bruno Haible.
4115         Indentation fixups.
4116         * lib/autotest/general.m4 (AT_INIT) <at_func_log_failure>: Fix
4117         indentation.
4118         (_AT_CHECK): Use less indentation, to save space.
4120 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4122         Add witness macro for @top_build_prefix@ substitution.
4123         * lib/autoconf/status.m4 (_AC_HAVE_TOP_BUILD_PREFIX): New macro.
4124         (_AC_OUTPUT_FILE): Mention it here.
4126 2007-11-15  Paolo Bonzini  <bonzini@gnu.org>
4127         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4129         * lib/autotest/general.m4 (at_func_test): Remove.
4130         (AT_INIT): Pre-extract test groups into separate files.
4131         (AT_CLEANUP): Source pre-extracted file instead of calling at_func_test.
4132         Remove at-test-source files together with the $at_group_dir.
4133         * tests/autotest.at (Long test source lines): New test.
4135 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4137         Shell functions and variables may share a namespace.
4138         * doc/autoconf.texi (Portable Shell): Mention Solaris sh
4139         limitation.
4141 2007-11-14  Paul Eggert  <eggert@cs.ucla.edu>
4143         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Make comment match
4144         gnulib.
4146 2007-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4148         * lib/autoconf/status.m4: Fix a couple of comment typos.
4150         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Use $as_me, not $me.
4152 2007-11-13  Jim Meyering  <meyering@redhat.com>
4154         Clean up the rule to create "expr".
4155         * tests/Makefile.am (expr): Don't redirect directly to target.
4156         Redirect just once, not for each echo statement.
4157         Use $@, not literal "expr".
4159 2007-11-13  Paul Eggert  <eggert@cs.ucla.edu>
4161         Don't worry about preprocessor when testing long long.
4162         See: http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00075.html
4163         * doc/autoconf.texi (Preprocessor Arithmetic): New section.
4164         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT):
4165         These no longer check for preprocessor flaws.
4166         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET):
4167         Do not check for preprocessor flaws.
4169 2007-11-13  Jim Meyering  <meyering@redhat.com>
4171         Adapt dependencies, now that a version change doesn't modify configure.ac
4172         * GNUmakefile: Remove "make clean" kludge.
4173         * lib/m4sugar/Makefile.am (version.m4): Depend on Makefile, not
4174         configure.ac.
4175         Don't redirect directly to target.
4176         Use $@, not literal "version.m4".
4178 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4180         * doc/autoconf.texi (Making testsuite Scripts): Document
4181         ":;{" shorthand as in previous patch.
4183 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
4185         * doc/autoconf.texi (Limitations of Builtins): Document problem
4186         with { ... } a bit more clearly.  Suggest ":;{" as a shorthand
4187         for the workaround.
4188         * lib/m4sugar/Makefile.am (version.m4): Detect 'echo' failure.
4189         Use ":;{" shorthand.
4190         * tests/Makefile.am ($(srcdir)/package.m4): Likewise.
4192 2007-11-12  Jim Meyering  <meyering@redhat.com>
4194         Add more non-srcdir build support.
4195         * GNUmakefile (dummy): Split a long line.
4196         Add -v option to autoreconf invocation.
4198         Remove the autoreconf-provided INSTALL, so that we regenerate it.
4199         * GNUmakefile (dummy): Remove INSTALL.
4201         Remove racy commands to build scripts in bin/ and tests/.
4202         * man/Makefile.am (.x.1): Now that scripts in bin/ and tests/
4203         are guaranteed to be built, remove the rules that tried to build
4204         them.  Before, with a parallel build, these rules could lead to
4205         two processes writing tests/wrapper.in concurrently.
4207         Build in man/ only *after* building in bin/ and tests/.
4208         * Makefile.am (SUBDIRS): The man-page-creation process runs $(MAKE)
4209         in both bin/ and tests/.
4211         Accommodate non-srcdir build-from-checkout.
4212         * build-aux/git-version-gen: Require an additional parameter: $srcdir.
4213         Use git's --git-dir=$srcdir/.git option.
4214         Add quotes, in case tarball_version_file contains shell meta-characters.
4215         * GNUmakefile (_curr-ver): Pass $(srcdir) to git-version-gen.
4216         * configure.ac: Pass "." to git-version-gen.
4218         Avoid spurious test failures due to version skew.
4219         * GNUmakefile (dummy): Run $(MAKE) clean after autoreconf -i.
4221 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4223         Avoid warnings about conftest.dSYM directories on Mac OS X Leopard.
4224         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_RUN_IFELSE):
4225         Remove conftest.dSYM directory.
4226         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT)
4227         (_AC_LANG_PROGRAM_C_, _AC_FC_MAIN, __AC_FC_NAME_MANGLING):
4228         Remove `conftest.*' recursively.
4229         * lib/autoconf/lang.m4 (AC_LINK_IFELSE): Likewise.
4230         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
4231         Likewise.
4232         (_AC_COMPILER_OBJEXT_REJECT): Reject *.dSYM.
4233         * THANKS: Update.
4234         Report and analysis by Jeff Squyres and Peter O'Gorman.
4236 2007-11-12  Benoit Sigoure  <tsuna@lrde.epita.fr>
4238         Fix typos in variable names.
4239         * tests/semantics.at (test for AC_CHECK_LIB): s/at_m/ac_m/.
4241 2007-11-11  Benoit Sigoure  <tsuna@lrde.epita.fr>
4243         Document that $((expression)) is not portable.
4244         * doc/autoconf.texi (Shell Substitutions): Here.
4246 2007-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4248         Ignore configure --help* errors due to LINENO-impaired shells.
4249         * tests/torture.at (Configuring subdirectories, Deep Package):
4250         In the --help* tests in read-only trees, make `.' temporarily
4251         writable again for the `stderr' file, and ignore errors due to
4252         the attempt to write configure.lineno.
4253         Report by Patrick Welche.
4255 2007-11-10  Jim Meyering  <meyering@redhat.com>
4257         Generate package.m4 in build-dir, not srcdir.
4258         * tests/Makefile.am (package.m4): Adjust target.
4259         Don't redirect directly to $@.
4260         (CLEANFILES): Add package.m4.
4261         ($(TESTSUITE)): Depend on just-built package.m4, not the one
4262         in $(srcdir).
4263         When running $(AUTOTEST), search "." before searching $(srcdir).
4265         Avoid a race condition that would make parallel "distclean" fail.
4266         * tests/Makefile.am (distclean-generic): Replace the default,
4267         automake-provided rule with an identical one, but with an additional
4268         dependency on distclean-local.  Simply adding the dependency would
4269         cause automake not to emit the rule at all.
4270         * BUGS: Building with -jN works, now.
4272         Distribute git-version-gen.
4273         * Makefile.am (EXTRA_DIST): Add build-aux/git-version-gen,
4274         since GNUmakefile is distributed, and requires it for dist* rules.
4276         Remove two more generated files from version control.
4277         * INSTALL: Remove generated file.
4278         * lib/autoscan/autoscan.list: Remove generated file.
4280 2007-11-09  Paul Eggert  <eggert@cs.ucla.edu>
4282         * GNUmakefile (PATH): Remove stray apostrophes; they become
4283         part of PATH, which isn't wanted here.
4285 2007-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4287         New config files output variable `top_build_prefix'.
4288         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Substitute
4289         `top_build_prefix'.
4290         * doc/autoconf.texi (Preset Output Variables): Document it.
4291         * NEWS: Update.
4292         Report by Bob Friesenhahn.
4294         Avoid expr for arithmetic evaluation if the shell accepts $((...)).
4295         * lib/autotest/general.m4 (AT_INIT) <at_func_arith>: New
4296         function, to parametrize arithmetic with expr vs. the shell.
4297         Use it where possible.
4298         Suggestion by Benoit Sigoure.
4300 2007-11-03  Benoit Sigoure  <tsuna@lrde.epita.fr>
4302         Adjust the documentation of autotest WRT atlocal.
4303         * doc/autoconf.texi (Making testsuite Scripts): It is not necessary,
4304         when using Automake, to write a rule to produce atlocal, since it's
4305         an AC_CONFIG_FILES.  Mention that atlocal.in needs to be
4306         distributed, not atconfig.in.
4308 2007-11-04  Eric Blake  <ebb9@byu.net>
4310         Update list information.
4311         * README: Mention new autoconf-commit list.
4312         * doc/autoconf.texi (Introduction): Mention autoconf-commit list.
4314 2007-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4316         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Fix comment typo.
4318         * lib/m4sugar/Makefile.am (version.m4): Another bash bug workaround.
4320         * build-aux/.gitignore: Ignore mkinstalldirs.
4322         * doc/autoconf.texi (autoreconf Invocation): Fix an underfull line.
4324 2007-11-03  Jim Meyering  <meyering@redhat.com>
4326         s/-/./ in snapshot version string: 2.61a-256-8b556 -> 2.61a.256-8b556
4327         * build-aux/git-version-gen: This syncs from coreutils.
4329         Adjust the build procedure so "make check" works reliably.
4330         * README-hacking: Include an extra step between "make" and
4331         "make check" to ensure that the latter passes.
4333         Use just-built tools, when possible.
4334         * GNUmakefile (PATH): Set and export here, ...
4335         (dummy): ... rather than here.
4337 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4338         and Andreas Schwab  <schwab@suse.de>
4340         * tests/Makefile.am ($(srcdir)/package.m4): Work around bash
4341         exit status bug.
4343 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4345         * configure.ac (AC_PREREQ): Require version 2.60, for
4346         AC_PROG_SED, AC_PROG_GREP.
4348 2007-11-02  Benoit Sigoure  <tsuna@lrde.epita.fr>
4349         and Jim Meyering  <meyering@redhat.com>
4350         and Andreas Schwab <schwab@suse.de>
4351         and Eric Blake  <ebb9@byu.net>
4353         Document a bug in GNU Bash with compound commands and redirections.
4354         * doc/autoconf.texi (Limitations of Builtins): Mention that GNU
4355         Bash doesn't properly set $? when `{ ... } >/bad' fails, and give
4356         workaround.
4358 2007-11-03  Eric Blake  <ebb9@byu.net>
4360         Support m4 1.4.5 in testsuite.
4361         * tests/torture.at (Define a newline): Exclude line numbers in
4362         error message.
4363         Reported by Ralf Wildenhues.
4365 2007-11-03  Jim Meyering  <meyering@redhat.com>
4367         Remove automake-provided files from version control.
4368         * build-aux/elisp-comp: Remove file.
4369         * build-aux/install-sh: Remove file.
4370         * build-aux/missing: Remove file.
4371         * build-aux/mdate-sh: Remove file.
4372         * build-aux/.gitignore: New file.
4373         Suggestion from Ralf Wildenhues.
4375 2007-11-03  Eric Blake  <ebb9@byu.net>
4377         Adjust version comparison to account for git snapshot numbers.
4378         * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Also treat - as a
4379         component separator.
4380         * doc/autoconf.texi (Number processing Macros)
4381         <m4_version_compare>: Document this change.
4382         * tests/m4sugar.at (m4@&t@_version_compare): Test it.
4384 2007-10-30  Bruno Haible  <bruno@clisp.org>
4386         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro,
4387         extracted from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
4388         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT): Use it.
4389         Fixes problem with Sun C 5.[0-8] in 32-bit mode, reported in
4390         <http://lists.gnu.org/archive/html/autoconf-patches/2007-10/msg00210.html>
4391         Suggested by Paul Eggert.
4393 2007-10-28  Jim Meyering  <meyering@redhat.com>
4395         * README-hacking: Autoconf, Automake, and Perl are required to build.
4396         List Gzip and Tar separately.  Suggested by Ralf Wildenhues.
4398 2007-10-28  Jim Meyering  <meyering@redhat.com>
4400         README-hacking: Recommend running autoreconf -vi.
4401         * GNUmakefile (dummy): Use autoreconf -i, with appropriate PATH,
4402         so that we use just-built tools when they're available.
4403         Suggestions from Ralf Wildenhues.
4405 2007-10-28  Jim Meyering  <meyering@redhat.com>
4407         Make inter-release --version output more useful.
4409         Now, each unofficial build has a version "number" like 2.61a-19-58dd,
4410         which indicates that it is built using the 19th change set
4411         (in _some_ repository) following the "v2.61a" tag, and that 58dd
4412         is a prefix of the commit SHA1.
4413         * build-aux/git-version-gen: New file.
4414         * configure.ac: Run it to set the version.
4415         (AM_INIT_AUTOMAKE): Don't check NEWS here.
4416         * Makefile.am (dist-hook): Arrange so that .version appears only
4417         in distribution tarballs, never in a checked-out repository.
4418         * .gitignore: Add .version here, too.  Just in case.
4419         * tests/Makefile.am ($(srcdir)/package.m4): Depend on Makefile,
4420         not configure.ac, now that the version number changes automatically.
4422         Ensure that $(VERSION) is up to date for dist-related targets.
4423         * GNUmakefile: Arrange to rerun autoconf, if the version reported by
4424         git-version-gen doesn't match $(VERSION), but only for dist targets.
4426 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4428         Fix `Deep Package' failure with a configure script early in PATH
4429         * tests/torture.at (Deep Package): Add `.' early in PATH.
4430         Report by Jim Meyering.
4432 2007-10-27  Jim Meyering  <meyering@redhat.com>
4434         Remove all generated files from version control.
4435         * aclocal.m4: Remove.
4436         * configure: Remove.
4437         * Makefile.in: Remove, along with all other Makefile.in in subdirs.
4438         * .gitignore: Add aclocal.m4, configure and Makefile.in.  Sort.
4439         * README-hacking: New file: how to build from just-checked-out sources.
4441 2007-10-23  Eric Blake  <ebb9@byu.net>
4443         Improve corner case of m4_expand.
4444         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Rewrite more
4445         efficiently.
4446         * tests/m4sh.at (AS@&t@_HELP_STRING): Test overquoted comma.
4447         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Update
4448         documentation.
4450 2007-10-23  Paul Eggert  <eggert@cs.ucla.edu>
4452         * doc/make-stds.texi: Update from gnulib.
4454 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
4455         and Eric Blake  <ebb9@byu.net>
4457         * lib/autoconf/c.m4 (AC_C_RESTRICT): Work around Sun C++ compatibility
4458         problem reported by Bruno Haible in
4459         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00027.html>.
4461 2007-10-22  Eric Blake  <ebb9@byu.net>
4463         * doc/autoconf.texi (Particular Types): Mention bug in HP-UX 11.00
4464         preprocessor.
4466 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
4468         Don't check for bug in HP-UX 11.00 cpp.
4469         * lib/autoconf/types.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4470         Use -1ull rather than -1u, since that causes problems with gnulib; see
4471         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
4473 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4475         * tests/autotest.at (Backquote command substitution)
4476         (Multiline backquote command substitution)
4477         (Parenthetical command substitution)
4478         (Multiline parenthetical command substitution): Fix typos in
4479         test names.
4481 2007-10-21  Eric Blake  <ebb9@byu.net>
4483         * configure: Regenerate.
4485 2007-10-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4487         Fix config status generation with Tru64 ksh.
4488         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix
4489         escaping of backslash in here-documents.
4491         Fix `Deep Package' test failure on FreeBSD.
4492         * tests/torture.at (Deep Package): Do not add `.' to $PATH
4493         unnecessarily.  Do not try running `/bin/sh configure' with a
4494         configure script to be found in $PATH, if the shell does not do
4495         this resolution.  Fixes test failure on FreeBSD.
4497         Fix config header generation with AIX awk.
4498         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): In awk
4499         script, use helper array D_is_set, as `" 0"' does not evaluate
4500         to true for AIX awk.
4502 2007-10-21  Eric Blake  <ebb9@byu.net>
4504         * tests/autotest.at (Banners): Reinstate test, with typo
4505         corrected.
4507 2007-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4509         * lib/autotest/general.m4 (Defaults): Validate input ranges ...
4510         <at_func_validate_ranges>: ... using this new function.
4511         * tests/autotest.at (Keywords and ranges): Test invalid ranges.
4512         Test --list with ranges and keywords.
4513         (Banners): Remove one now-failing test.
4515 2007-10-20  Eric Blake  <ebb9@byu.net>
4517         Fix testsuite --list subset.
4518         * lib/autotest/general.m4 (AT_INIT) <at_list_p>: Swap newlines
4519         back to spaces, before listing subset of tests.
4520         Reported by Ralf Wildenhues.
4522 2007-10-19  Eric Blake  <ebb9@byu.net>
4524         s/parenthesis/parentheses/ where appropriate.
4525         * doc/autoconf.texi: Fix typos.
4526         * lib/m4sugar/m4sugar.m4: Likewise.
4527         Reported by Ralf Wildenhues.
4529         Document m4_expand limitation.
4530         * lib/m4sugar/m4sugar.m4 (m4_expand): Mention problem with
4531         unbalanced parse.
4532         * doc/autoconf.texi (Pretty Help Strings, Evaluation Macros)
4533         (Writing Testsuites): Mention limitations inherited from
4534         m4_expand.
4536         Improve AT_BANNER handling.
4537         * lib/autotest/general.m4 (BANNERS): New named diversion.
4538         (TESTS_END): Diversion no longer used.
4539         (AT_INIT) <at_func_banner, BANNERS>: Factor all banners into a
4540         shell function, which prints only as needed, using an associative
4541         array of banner text from a special diversion.
4542         <PARSE_ARGS_END>: No longer need awk to find banners.
4543         <TESTS>: Banners are no longer processed by main driver loop, so
4544         we no longer need case statement.
4545         (AT_BANNER): Rewrite to populate new diversion.
4546         (AT_SETUP): Each test invokes its own banner.  No output is needed
4547         to the TESTS diversion.
4548         * doc/autoconf.texi (Writing Testsuites): Document slight
4549         semantics change.
4550         * tests/autotest.at (AT_BANNERS): Enhance test.
4551         * NEWS: Document AT_BANNER.
4553         Document and test AT_BANNER.
4554         * doc/autoconf.texi (Writing Testsuites): Document AT_BANNER.
4555         * tests/autotest.at (AT_CHECK_EGREP): Share between tests.
4556         (AT_CHECK_BANNERS): New test.
4558         Doc touchups.
4559         * doc/autoconf.texi (Text processing Macros) <m4_strip>
4560         <m4_text_wrap>: Clarify and fix typos.
4562 2007-10-18  Eric Blake  <ebb9@byu.net>
4564         Ignore `make dist' changelogs in testsuite.log.
4565         * lib/autotest/general.m4 (AT_INIT) <ChangeLogs>: Prune
4566         directories matching AT_PACKAGE_TARNAME-*.
4568         Fix AT_TESTED, AT_KEYWORDS.
4569         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Warn if separator
4570         occurs in string, as duplicates may be added.
4571         (_m4_append_uniq): New helper macro.
4572         (m4_append_uniq_w): New macro.
4573         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Fix
4574         duplication bug by using new macro.
4575         (AT_INIT) <at_tested>: Restore newline separators.  Invoke tested
4576         programs with stdin redirected, so programs that don't
4577         understand --version won't try to behave interactively.
4578         * tests/autotest.at (Tested programs): Catch this bug.
4579         * tests/m4sugar.at (m4@&t@_append): Test new macro.
4580         * tests/local.at (AT_TESTED): Add m4, perl.
4581         * doc/autoconf.texi (Text processing Macros): Document
4582         m4_append_uniq_w, and update text on m4_append.
4583         * NEWS: Document the addition.
4585 2007-10-17  Eric Blake  <ebb9@byu.net>
4587         Function cleanup.
4588         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Convert
4589         from m4 macro...
4590         (AT_INIT) <at_func_create_debugging_script>: ...to shell
4591         function.
4592         (AT_INIT): Defer function declarations until after --help,
4593         --version.  Format functions consistently, trying to fit in 80
4594         columns.
4595         (TEST_FUNCTIONS): Based on recent changes, rename...
4596         (TEST_GROUPS): ...to this.
4598         Reject FreeBSD m4.
4599         * m4/m4.m4 (AC_PROG_GNU_M4): Also check for frozen file support.
4600         * configure: Regenerate.
4601         Reported by Bob Friesenhahn.
4603         Test recent additions.
4604         * tests/m4sugar.at (m4@&t@_map, m4@&t@_combine)
4605         (m4@&t_max and m4@&t_min): New tests.
4606         * doc/autoconf.texi (Evaluation Macros) <m4_apply>: Enhance
4607         description.
4609 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4611         * TODO: multiline args in config files and headers work now.
4613         Autotest: do not use shell functions for individual tests.
4614         * lib/autotest/general.m4 (AT_INIT) <at_func_test>: Merely
4615         extract the source test source, do not invoke it.
4616         (AT_SETUP, AT_CLEANUP): Source test code outside shell function.
4617         * tests/autotest.at (Fallacy): Actually let the inner suite fail,
4618         expect exit status of 1.
4619         * tests/autotest.at (Skip): New test, for bogus zsh exit status.
4621         * lib/autotest/general.m4 (at_func_test): Fix test extraction
4622         script.
4624 2007-10-17  Eric Blake  <ebb9@byu.net>
4626         Fix m4_combine for empty suffix list.
4627         * lib/m4sugar/m4sugar.m4 (m4_combine): Check for suffix list.
4628         * doc/autoconf.texi (Text processing Macros): Document this.
4630         Add m4_combine, based on Libtool's lt_combine.
4631         * lib/m4sugar/m4sugar.m4 (m4_combine): New macro.
4632         * doc/autoconf.texi (Text processing Macros): Document it.
4633         * NEWS: Likewise.
4635 2007-10-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4637         Fix `configure --help=recursive' in unconfigured/read-only trees.
4638         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Avoid errors when `.'
4639         is not writable, use 'cp -p' in this case, in the hope that it
4640         will not actually be needed.  Still try removing files, in case
4641         of other write errors.
4642         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): For ac_confdir,
4643         use $as_myself, not $0.
4644         (_AC_INIT_HELP): For --help=recursive, if the subdir does not
4645         exist, try again in the the source tree.  This change assumes
4646         that the subpackage configure script is capable of running
4647         --help=recursive in the source tree.
4648         * tests/torture.at (Configuring subdirectories, Deep Package):
4649         Adjust tests to expose both issues, also try invocation as
4650         `sh configure ...' and plain `configure ...' with PATH adjusted.
4651         * NEWS, THANKS: Update.
4652         Report by Hans Ulrich Niedermann.
4654 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
4656         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
4657         Problem reported by H.Merijn Brand in
4658         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
4659         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
4660         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4661         Check that preprocessor handles 64-bit ints, too.
4663 2007-10-16  Eric Blake  <ebb9@byu.net>
4665         m4_map is a looping construct.
4666         * lib/m4sugar/m4sugar.m4 (m4_map, _m4_map, m4_map_sep): Move.
4668         Fix m4_map, and add some more utility macros.
4669         * lib/m4sugar/m4sugar.m4 (m4_apply, m4_count, m4_dquote_elt)
4670         (m4_echo, m4_make_list): New documented macros.
4671         (_m4_quote, _m4_shift2): New helper macros.
4672         (m4_map): Change semantics to allow calling macro without
4673         arguments.
4674         (m4_map_sep): Likewise.  Also change semantics to quote separator,
4675         to match m4_join and m4_append.
4676         (m4_version_unletter): Fix use of m4_map.
4677         * doc/autoconf.texi (Evaluation Macros): Document m4_apply,
4678         m4_count, m4_dquote_elt, m4_echo, m4_make_list.
4679         (Text processing Macros): Mention m4_dquote as a faster
4680         alternative to joining with commas.
4681         (Looping constructs): Document m4_map, m4_map_sep.
4682         * NEWS: Mention new macros.
4684         A few more m4sugar improvements, to benefit libtool.
4685         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts, _m4_shiftn): Reduce size
4686         of expansion by avoiding extra uses of $@.
4687         (m4_shiftn): Avoid extra dnl, and forbid shifting by 0.
4688         (_m4_cdr): New helper macro.
4689         (_m4_map, m4_map_sep): Use it to reduce size of expansion.
4690         (_m4_shift3): New helper macro.
4691         (_m4_foreach): Swap argument order, and use new macro to reduce
4692         size of expansion.
4693         * doc/autoconf.texi (Looping constructs) <m4_shiftn>: Mention that
4694         count must be positive.
4696         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Fix typo.
4697         Reported by Ralf Wildenhues.
4699 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4701         * doc/autoconf.texi (Portable Shell): Improve description of zsh
4702         4.x function subshell bug with exit and trap.
4704 2007-10-15  Eric Blake  <ebb9@byu.net>
4706         Enhance AS_HELP_STRING.
4707         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't expand arguments,
4708         and reduce number of expansions.
4709         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Rework to use m4_expand,
4710         and to take indent and wrap column numbers.
4711         * tests/m4sh.at (AS@&t@_HELP_STRING): Update the test.
4712         * doc/autoconf.texi (Pretty Help Strings): Document details about
4713         arguments.
4714         (Text processing Macros): Minor tweaks.
4715         * NEWS: Document this change.
4717         Fix 2007-10-03 regression with AT_SETUP([a, b]).
4718         * lib/m4sugar/m4sugar.m4 (m4_expand): New macro.
4719         (m4_text_box): Use it.
4720         * lib/autotest/general.m4 (AT_SETUP): Use it.
4721         * lib/m4sugar/m4sh.m4 (_AS_RUN): Use it.
4722         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Test this.
4723         * NEWS: Revert caveat about semantics change on comma.
4724         * doc/autoconf.texi (Evaluation Macros): Document m4_expand.
4726 2007-10-13  Eric Blake  <ebb9@byu.net>
4728         Change m4_join to match libtool's ltsugar semantics.
4729         * lib/m4sugar/m4sugar.m4 (m4_join): Just define this, not defun.
4730         Ignore empty arguments, using...
4731         (_m4_join): ...this new helper.
4732         * tests/m4sugar.at (m4@&t@_join): New test.
4733         * doc/autoconf.texi (Text processing Macros): Document new
4734         semantics of m4_join.
4736         Make AC_PREREQ faster and more robust.
4737         * lib/m4sugar/m4sugar.m4 (m4_ignore, m4_unquote): New macros.
4738         (m4_version_prereq): Inline constant expansions.
4739         (m4_list_cmp): Reduce number of expansions, by avoiding m4_case.
4740         Rewrite in terms of [] list, not () list.
4741         (_m4_list_cmp, _m4_version_unletter): New helper macros.
4742         (m4_version_unletter): Write wrapper around new implementation to
4743         preserve old semantics.
4744         (m4_version_compare): Pass correct type of list, and avoid
4745         overhead of flattening expressions too early.
4746         (m4_do): Move to be near other quoting macros.
4747         (m4_max, m4_min): Always result in decimal output.
4748         * doc/autoconf.texi (Looping constructs): Add m4_car, m4_cdr.
4749         Move m4_do...
4750         (Evaluation Macros): ...here.  Add m4_ignore, m4_unquote.
4751         (Text processing Macros): Move m4_version_compare...
4752         (Number processing Macros): ...to this new node; document m4_cmp,
4753         m4_list_cmp, m4_sign, m4_max, m4_min.
4754         * tests/m4sugar.at (m4@&t@_version_compare): Enhance test, to pick
4755         up on bugs fixed by this patch.
4756         * NEWS: Document new macros.
4758 2007-10-12  Eric Blake  <ebb9@byu.net>
4760         * doc/autoconf.texi (Text processing Macros): Fix bad merge.
4761         (Reporting Messages): Fix underfull hbox.
4763         Some more m4sugar documentation.
4764         * lib/m4sugar/m4sugar.m4: Clean up macro order.
4765         * doc/autoconf.texi (Programming in M4): Lighten the warning on
4766         using m4sugar; it is stabilizing and useful.
4767         (Redefined M4 Macros): Touch up wording on M4 builtins; sort.  Add
4768         m4_divert, m4_undivert, __file__, __line__, __oline__.
4769         (Diagnostics): New node, documenting m4_assert, m4_errprintn,
4770         m4_fatal, m4_location, m4_warn.
4771         (Diversion support): New node, documenting m4_divert_push,
4772         m4_divert_pop, m4_divert_text, m4_divert_once.
4773         (Text processing Macros): Sort.  Add m4_flatten, m4_join,
4774         m4_newline, m4_strip, m4_text_box, m4_text_wrap.
4775         (Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
4776         as obsolescent.
4777         (Printing Messages): Change cross-reference.
4779         Document interaction of recent m4_append change with Libtool HEAD.
4780         * lib/m4sugar/m4sugar.m4 (m4_append): Document semantics change.
4781         (m4_append_uniq): Add new parameters, based on lt_append_uniq.
4782         * tests/m4sugar.at (m4@&t@_append): New test.
4783         * NEWS: Document semantics change.
4784         * doc/autoconf.texi (Text processing Macros): Likewise.
4786         s/AC_VERSION/AC_AUTOCONF_VERSION/.
4787         * doc/autoconf.texi (Versioning): Change the name.
4788         * NEWS: Likewise.
4789         * lib/autoconf/general.m4 (AC_AUTOCONF_VERSION): Likewise.
4790         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Likewise.
4791         Suggested by Ralf Wildenhues.
4793         Namespace cleanup.
4794         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE)
4795         (_AC_OUTPUT_HEADERS_PREPARE): Convert here-doc delimiters into
4796         autoconf namespace.
4797         * doc/autoconf.texi (Programming in M4sugar, Forbidden Patterns)
4798         (Programming in M4sh, Macro Names): Beef up description of
4799         namespaces reserved for autoconf.
4800         * configure: Regenerate.
4802 2007-10-12  Eric Blake  <ebb9@byu.net>
4803         and Paolo Bonzini  <bonzini@gnu.org>
4805         Speed up execution of subset of testsuite.
4806         * lib/autotest/general.m4 (TEST_FUNCTIONS): New diversion.
4807         (AT_INIT) <at_func_test>: New shell function.
4808         (AT_INIT) <at_myself>: New variable, set to absolute $as_myself.
4809         (AT_INIT) <at_test_source> New variable, names file that holds
4810         current test function definition.
4811         (AT_SETUP): Start the shell function at_func_test_#, into the
4812         TEST_FUNCTIONS diversion.
4813         (AT_CLEANUP): End the shell function.  Simplify the TESTS
4814         diversion to invoke the function.
4816 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4818         * .gitignore: Ignore tags and TAGS files.
4820 2007-10-11  Eric Blake  <ebb9@byu.net>
4822         Config header generation followup.
4823         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Check for raw newlines,
4824         which won't work with the preprocessor nor with the awk
4825         implementation.
4826         * tests/torture.at (Define a newline): Test raw newline detection,
4827         removing the XFAIL.
4828         * doc/autoconf.texi (Defining Symbols): Document recent change to
4829         allow backslash-newline.
4830         * THANKS: Update.
4832 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4834         * lib/autotest/general.m4: Put function braces in separate line.
4836 2007-10-10  Eric Blake  <ebb9@byu.net>
4838         Avoid some overhead from m4_defn and m4_popdef.
4839         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Only
4840         pass on first argument, since we are documented that way.
4841         (m4_for, m4_append_uniq, m4_text_wrap): Optimize out defined-ness
4842         check where it is safe to do so.
4843         (m4_append): Likewise, and quote the separator.
4844         (m4_text_box): Likewise, and avoid regex, also be robust to
4845         expansion and quadrigraphs.
4847         Another AC_DEFINE speedup.
4848         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Move parameter
4849         elision...
4850         (_AC_DEFINE_Q): ...here, and only do it once.
4851         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid overquoting.
4852         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix m4_defn overquoting
4853         introduced 2007-10-05.
4855         Whitespace cleanup.
4856         * lib/autoconf/general.m4: Use consistent indentation.
4857         * configure: Regenerate.
4859         * NEWS: Announce recent round of speed optimizations.
4861 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4863         * NEWS: Announce shell function usage in Autotest.
4865 2007-10-10  Eric Blake  <ebb9@byu.net>
4866         and Paul Eggert  <eggert@cs.ucla.edu>
4868         Reduce number of forks at startup.
4869         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Speed up NLS
4870         sanitization.
4871         * configure: Regenerate.
4873 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4874         and Paul Eggert  <eggert@cs.ucla.edu>
4876         Use awk for config header generation.
4877         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix comments.
4878         (_AC_OUTPUT_HEADERS_PREPARE): New macro.  Rewrite of the config
4879         header machinery for use with awk and placement outside the main
4880         config.status instantiation loop.  Retain multi-line defines
4881         through backslash-newline combinations, do not split the script
4882         any more.
4883         (_AC_OUTPUT_HEADER): Simplify accordingly, use $AWK.
4884         (_AC_OUTPUT_MAIN_LOOP): Call _AC_OUTPUT_HEADERS_PREPARE if
4885         needed.
4886         (AC_OUTPUT_MAKE_DEFS): Remove backslash-newline combinations
4887         from define values.
4888         * NEWS: Update.
4889         * tests/torture.at (#define header templates): Extend test by
4890         several more cases: white space before and after `#', macros
4891         with parameters in config.hin and as defines, multi-line macro
4892         values.
4893         (Torturing config.status): Use a define value twice the length
4894         in order to exercise the awk literal string limit.
4895         (Substitute and define special characters): Also try special
4896         delimiter, to exercise the special-case code.
4897         Suggestion by Eric Lemings.
4899 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4901         * tests/local.at (AT_COPYRIGHT): Bump copyright years.
4903 2007-10-09  Eric Blake  <ebb9@byu.net>
4905         Improve header of bin/autoconf.
4906         * lib/m4sugar/m4sh.m4 (AS_INIT): Add a 'generated from' notice.
4907         * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Override new notice
4908         from M4sh.
4909         * bin/autoconf.as: Put copyright up front in generated file.
4911         * bin/autoconf.as (exit_missing_arg): Font-lock tweak.
4913 2007-10-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4915         * doc/install.texi (Basic Installation): Document `uninstall'.
4916         * INSTALL: Regenerate.
4917         Suggestion by Roberto Bagnara.
4919 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
4921         * doc/autoconf.texi (Limitations of Usual Tools): V7 awk had 'index'.
4923         Adjust doc. to match latest gnulib.
4924         * build-aux/texinfo.tex: Sync from gnulib.
4925         * doc/standards.texi: Likewise.
4926         * doc/autoconf.texi (Copying This Manual): Rename to "GNU Free
4927         Documentation License" and remove the subsection.  This simplifies
4928         the manual a bit and is more like what other GNU projects do
4929         nowadays.
4931 2007-10-08  Eric Blake  <ebb9@byu.net>
4933         Use recent changes.
4934         * configure: Regenerate.
4936         Fix regression in m4_text_wrap from 2007-10-05.
4937         * lib/m4sugar/m4sugar.m4 (m4_max, m4_min): New macros.
4938         (m4_sign): Sort.
4939         (m4_text_wrap): Fix off-by-one error in rewrite from m4_for to
4940         m4_format.
4941         * lib/autotest/general.m4 (AT_SETUP): Avoid negative width.
4942         * tests/autotest.at (Long test title, Longer test title): Test
4943         this fix, beyond what AS_HELP_STRING already tests.
4945         Avoid m4 warnings on bad m4_format usage.
4946         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Use %*s, in case width
4947         evaulates to 0.
4948         * lib/autotest/general.m4 (AT_SETUP): Likewise; also ensure that
4949         enough arguments are provided.
4951 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
4953         * doc/autoconf.texi (Shell portability): Document shell function
4954         portability.
4956 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
4958         * lib/autotest/general.m4 (AT_INIT): Add at_func_diff_devnull,
4959         at_func_check_skip, at_func_check_status, at_func_filter_trace,
4960         at_func_log_failure shell functions.  Use test -s to avoid
4961         useless diff invocations.
4962         (at_func_check_newline): Renamed from at_check_newline.
4963         (AT_SETUP): Define AT_captured_files to empty.
4964         (AT_DIFF_STDERR(*), AT_DIFF_STDOUT(*)): New, extracted from _AT_CHECK.
4965         (_AT_CHECK): Replace m4_case with m4_ifdef/m4_indir.  Use all
4966         the shell functions.
4968 2007-10-05  Paul Eggert  <eggert@cs.ucla.edu>
4970         Don't assume "." is writeable, for commands like "autoconf --version".
4971         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use a
4972         different heuristic instead, one that doesn't rely on creating
4973         files.
4975         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle "///"
4976         correctly.
4978 2007-10-05  Jim Meyering  <meyering@redhat.com>
4980         Avoid makeinfo warnings.
4981         * doc/autoconf.texi (Redefined M4 Macros): Add a `,' after @xref.
4982         (Looping constructs): Add ` ' after @defmac'd name, m4_do.
4984 2007-10-05  Eric Blake  <ebb9@byu.net>
4986         Resolve Python issue 1676135 regarding configure directory args.
4987         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Strip trailing
4988         slashes from directory arguments.
4989         * tests/base.at (configure directories): New test.
4990         * doc/autoconf.texi (Installation Directory Variables): Document
4991         the change.
4992         * NEWS: Likewise.
4993         * THANKS: Update.
4994         Reported by Björn Lindqvist.
4996         Provide better short-circuiting operation.
4997         * lib/m4sugar/m4sugar.m4 (m4_cond, m4_newline): New macros.
4998         (m4_text_wrap): Use it.  Also avoid useless m4_for.
4999         * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE, AS_LITERAL_IF): Use
5000         new macro.
5001         (_AS_IDENTIFIER_IF): Likewise, and fix bug when $1 is [,].
5002         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Use new macros
5003         to avoid regexps.
5004         * doc/autoconf.texi (Redefined M4 Macros): Expand m4_if
5005         documentation.  Sort m4_mkstemp, m4_undefine.  Move m4_ifndef...
5006         (Conditional constructs): ...here, to new section.  Also document
5007         m4_cond, m4_ifval, m4_n, m4_ifvaln, m4_ifset, m4_case, m4_bmatch,
5008         m4_bpatsubsts, and m4_default.
5009         (Looping constructs): Document m4_shiftn, m4_shift2, m4_shift3,
5010         m4_do.
5012 2007-10-04  Eric Blake  <ebb9@byu.net>
5014         Fix recent testsuite failures.
5015         * lib/autotest/general.m4 (AT_INIT, AT_SETUP): Double-quote text
5016         that must not be re-expanded after AS_ESCAPE.
5017         * lib/m4sugar/m4sh.m4 (_AS_IDENTIFIER_IF): Don't expand $1 when
5018         checking if it is an identifier.
5020         Whitespace cleanup.
5021         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Avoid
5022         leading whitespace, as it caused space-tab in testsuite.
5023         (AT_INIT): Avoid trailing newlines in testsuite.
5025         One more round of m4_foreach_w speedups.
5026         * lib/m4sugar/m4sugar.m4 (m4_flatten): Only use regex if newline
5027         is present.
5028         (_m4_split): Avoid useless expansions inside definition.  Move
5029         argument defaulting...
5030         (m4_split): ...here.  Change alternate quote to something less
5031         likely to appear in $1.  Also, special case space as regexp...
5032         (m4_foreach_w): ...to avoid regexp on single-term list.
5033         (m4_default, m4_defn, m4_popdef, m4_undefine, _m4_foreach): Avoid
5034         useless expansions inside definition.
5035         * tests/m4sugar.at (m4@&t@_split): Add tests.
5037 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
5039         * general.m4 (AT_INIT): Add at_check_newline function.
5040         (_AT_DECIDE_TRACEABLE): Include at_traceon test, use shell function.
5041         (_AT_CHECK): Don't use at_trace_this.
5043 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
5045         Fix previous commit.
5046         * lib/autotest/general.m4 (AT_LINE): Fix regex.
5048 2007-10-04  Eric Blake  <ebb9@byu.net>
5050         Speed up building testsuites.
5051         * lib/autotest/general.m4 (AT_LINE): Only use regex when file
5052         changed since last time.  Use simpler regex.
5054 2007-10-03  Eric Blake  <ebb9@byu.net>
5056         Optimize checking for identifiers.
5057         * lib/m4sugar/m4sh.m4 (AS_IDENTIFIER_IF, _AS_IDENTIFIER_IF): New
5058         macros, more efficient than regex on m4_re_word.
5059         * lib/autoconf/general.m4 (AC_SUBST, AC_DEFINE_TRACE_LITERAL):
5060         Rewrite in terms of new macro.  As a side-effect, AC_DEFINE can
5061         now use @&t@.
5062         * configure: Regenerate.
5064         Remove some XFAILs, and make AT_SETUP output line up.
5065         * lib/autotest/general.m4 (AT_SETUP): Only expand description
5066         once; thereafter, use its expansion, properly quoted.
5067         * tests/autotest.at (AT_CHECK_AT_TITLE): Also check macro
5068         expansion with arguments, and check for aligned output.
5069         (AT_CHECK_AT_TITLE_CHAR): Remove XFAILs for tests that now pass.
5070         Add a test for macros with parameters.
5071         * NEWS: Document the semantics change.
5072         * tests/base.at: Fix test titles containing commas.
5073         * tests/compile.at: Likewise.
5074         * tests/tools.at: Likewise.
5075         * tests/torture.at: Likewise.
5077         Another round of regex avoidance.
5078         * lib/m4sugar/m4sugar.m4 (m4_cr_alnum, m4_cr_all)
5079         (_m4_define_cr_not, m4_cr_not_letters, m4_cr_not_LETTERS)
5080         (m4_cr_not_Letters, m4_cr_not_digits, m4_cr_not_alnum)
5081         (m4_cr_not_symbols1, m4_cr_not_symbols2): New macros, implementing
5082         character ranges useful in m4_translit.
5083         (m4_toupper, m4_tolower): Optimize the constant portion of
5084         definition.
5085         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Also reject @S|@ because it
5086         creates $, and reject [] thanks to AS_TR_SH rewrite.
5087         (AS_TR_SH, AS_TR_CPP): Use just translit, not bpatsubst.
5088         (AS_ESCAPE): Factor...
5089         (_AS_ESCAPE): ...into new macro, with second argument required.
5090         Avoid regex in common case.
5091         (_AS_QUOTE): Use new macro.
5093         Whitespace cleanup.
5094         * lib/autoconf/types.m4: Avoid space-tab.
5095         * lib/m4sugar/m4sh.m4: Use tab consistently.
5097 2007-10-03  Paul Eggert  <eggert@cs.ucla.edu>
5099         * lib/m4sugar/m4sugar.m4 (m4_shift2, m4_shift3): New macros.
5100         (m4_shiftn): Remove no-longer-needed optimization.  Perhaps we
5101         should remove m4_shiftn entirely?
5102         (m4_case, b4_bmatch, m4_map_sep, m4_bpatsubsts, m4_join):
5103         Prefer m4_shift2 and m4_shift3 to m4_shiftn.
5104         * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
5105         * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Likewise.
5106         * tests/autotest.at (AT_CHECK_AT_TEST): Likewise.
5108 2007-10-03  Eric Blake  <ebb9@byu.net>
5110         Comment touchups.
5111         * lib/m4sugar/m4sugar.m4: Grammar fixes in comments.
5113 2007-10-02  Eric Blake  <ebb9@byu.net>
5115         Optimize appending text.
5116         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Use index, not regular
5117         expressions.
5119         Optimize recursion.
5120         * lib/m4sugar/m4sugar.m4 (m4_shiftn): This macro is called in a
5121         lot of hot spots; optimize it for 2 and 3 shifts.
5123         Optimize AC_PREREQ and other m4sugar numerics.
5124         * lib/m4sugar/m4sugar.m4 (m4_sign): Write with m4_eval.
5125         (m4_cmp): Compare arbitrary expressions, without overflow.
5126         (m4_version_unletter): Also recognize capital letters.
5127         (m4_version_compare): Avoid regex when splitting version number
5128         string.
5130 2007-10-01  Eric Blake  <ebb9@byu.net>
5132         Once again, reject IRIX m4.
5133         * m4/m4.m4 (AC_PROG_GNU_M4): Use indir builtin to root out non-GNU
5134         implementations that ignore --trace.
5135         * configure: Regenerate.
5136         Reported by Ralf Wildenhues.
5138         Fix regression in AC_DEFINE([macro(with_arg)]).
5139         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't chop off close
5140         quotes with a careless m4_substr.
5142 2007-09-30  Eric Blake  <ebb9@byu.net>
5144         Allow nameless iteration.
5145         * lib/m4sugar/m4sugar.m4 (m4_for, _m4_for): Access variable
5146         indirectly.
5147         * tests/m4sugar.at (myvar): Test this.
5149 2007-09-29  Eric Blake  <ebb9@byu.net>
5151         Speed optimization: avoid m4 regex when other algorithms work.
5152         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Rewrite without regex.
5153         (_AS_QUOTE_IFELSE): Likewise.
5154         * lib/m4sugar/m4sugar.m4 (m4_strip): Reduce from 3 to 2 regex.
5155         (m4_bpatsubsts): Split...
5156         (_m4_bpatsubsts): ...so that recursion can avoid patsubst on empty
5157         regex.
5158         (_m4_divert()): Define, to avoid m4 warning on `m4_divert'.
5159         (m4_qlen): Optimize on short strings, to avoid regex.
5160         (m4_sign): Avoid regex, and fix bug with `01' and `-0'.
5161         * lib/autoconf/general.m4 (AC_CACHE_VAL): Rewrite without regex.
5162         (AC_DEFINE_TRACE): Likewise.
5164 2007-09-28  Eric Blake  <ebb9@byu.net>
5166         Oops - my earlier 'optimization' caused a regression.
5167         * tests/local.at (AT_CHECK_M4): Fix typo.
5169 2007-09-27  Eric Blake  <ebb9@byu.net>
5170         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5172         Catch even more common AC_CACHE_VAL mistakes.
5173         * lib/autoconf/general.m4 (AC_CACHE_VAL): Warn if cache variable
5174         lacks '_cv_', or if AC_SUBST appears in body.
5175         * tests/base.at (AC_CACHE_CHECK): Test this change.
5177 2007-09-27  Stepan Kasal  <kasal@ucw.cz>
5178         and Eric Blake  <ebb9@byu.net>
5180         Autotest no longer caters to Ultrix redirection limitation.
5181         * doc/autoconf.texi (Writing testsuite.at): Remove the
5182         limitation that the first parameter of AT_CHECK cannot
5183         contain redirection.
5184         (File Descriptors): Mention that Ultrix limitation is no longer a
5185         show-stopper in modern code.
5186         * tests/local.at (AT_CHECK_M4): Fix for cases when the fourth
5187         parameter is `stderr' or `experr'.  Optimize if it was `ignore'.
5188         * lib/autotest/general.m4 (AT_CHECK): Update comment.
5190 2007-09-27  Eric Blake  <ebb9@byu.net>
5192         Squelch changeword in m4sugar.
5193         * lib/m4sugar/m4sugar.m4 (changeword): Disable this experimental
5194         feature of m4 1.4.x.
5196         Configure whitespace touchups.
5197         * lib/autoconf/general.m4 (_AC_INIT_HELP): Fix alignment of
5198         installation directories, and avoid TAB, in configure --help
5199         output.
5200         * configure.ac: Avoid extra trailing newline.
5201         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Avoid space-tab.
5202         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid TAB in
5203         config.status --help output.
5204         * configure: Regenerate.
5206         Fix underquotation in AS_HELP_STRING.
5207         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Don't underquote lhs
5208         argument.
5209         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't underquote
5210         first-prefix argument.
5211         * tests/m4sh.at (AS@&t@_HELP_STRING): Test this fix.
5212         * NEWS: Document AS_HELP_STRING fix.
5214         Autotest formatting touchups.
5215         * lib/autotest/general.m4 (HELP_TUNING): Avoid TAB in terminal
5216         output.
5217         (PATH): Simplify computation of new PATH.
5219 2007-09-26  Eric Blake  <ebb9@byu.net>
5221         Fix testsuite breakage in last patch.
5222         * tests/autotest.at (AT_CHECK_AT_TITLE): Properly quote the
5223         font-lock fix.
5224         * tests/torture.at (@%:@define header templates): Rename, so that
5225         output lines up correctly.
5227         More font-lock happiness.
5228         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Clean up font
5229         confusion.
5231 2007-09-25  Eric Blake  <ebb9@byu.net>
5233         Typo fixes.
5234         * lib/autoconf/general.m4 (AC_SUBST): Fix typo in comment.
5235         * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Likewise.
5237         Improve documentation of M4 parameter expansion.
5238         * doc/autoconf.texi (Quoting and Parameters): New section.
5239         (Quotation and Nested Macros): Improve wording.
5241         Improve C99 detection.
5242         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and
5243         avoid deprecation warning with icc.
5244         * THANKS: Update.
5245         Reported by Ted Bullock.
5247 2007-09-24  Jim Meyering  <jim@meyering.net>
5249         Whenever possible, use the vertical bar as sed delimiter.
5250         * lib/autoconf/functions.m4 (GETLOADAVG_LIBS) [AC_FUNC_GETLOADAVG]:
5251         Use "|", not "!".
5252         * lib/autoconf/status.m4 (_AC_SRCDIRS) [ac_top_builddir_sub]:
5253         [ac_dir_suffix]: Use "|", not "," as sed delimiter.
5254         * tests/mktests.sh (as_me): Likewise.
5255         * lib/freeze.mk (check-forbidden-patterns): Likewise.
5256         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
5257         * configure: Regenerate.
5258         * doc/autoconf.texi (Shell Substitutions): Use "|", not "," in examples.
5259         * lib/autotest/general.m4 (AT_INIT): Use "|", not "&" as sed delimiter
5260         in the : -> $PATH_SEPARATOR transformation of $AUTOTEST_PATH.
5261         This is fine, as long as $PATH_SEPARATOR doesn't contain "|".
5263 2007-09-22  Jim Meyering  <jim@meyering.net>
5265         Add a comment.
5266         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Document the
5267         2004-05-31 change also with a comment in the code.
5269 2007-09-20  Eric Blake  <ebb9@byu.net>
5271         More contribution housekeeping.
5272         * THANKS: Sort.
5273         * AUTHORS: Sort, reflect recent assignment from Helge Deller.
5275         Ignore additional files, when copying cross-repository.
5276         * .gitignore: Ignore CVS directories, emacs edits.
5277         * .cvsignore: Ignore .git directory, emacs edits.
5279 2007-09-15  Eric Blake  <ebb9@byu.net>
5281         Provide AC_VERSION, not m4_AUTOCONF_VERSION.
5282         * doc/autoconf.texi (Text processing Macros): Remove mention of
5283         m4_AUTOCONF_VERSION, and leave m4_PACKAGE_VERSION undocumented
5284         once again.
5285         (Notices): Move AC_PREREQ...
5286         (Versioning): ...to this new section, alongside the new AC_VERSION
5287         alias for the undocumented m4_PACKAGE_VERSION.
5288         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): Revert change.
5289         * lib/autoconf/general.m4 (AC_VERSION): New macro.
5290         * NEWS: Update to match this rename.
5291         * tests/m4sugar.at (m4@&t@_version_compare): Remove tests of
5292         m4_PACKAGE_VERSION.
5293         * tests/tools.at (autoconf: AC_VERSION): New test.
5294         Suggested by Paolo Bonzini and Benoit Sigoure.
5296 2007-09-14  Eric Blake  <ebb9@byu.net>
5298         Prepare for conversion to git.
5299         * doc/.cvsignore: Avoid multiple listings on one line.
5300         * bin/.cvsignore: Likewise.
5301         * .gitignore, bin/.gitignore, config/.gitignore, doc/.gitignore,
5302         lib/.gitignore, lib/Autom4te/.gitignore, lib/autoconf/.gitignore,
5303         lib/autoscan/.gitignore, lib/autotest/.gitignore,
5304         lib/emacs/.gitignore, lib/m4sugar/.gitignore, man/.gitignore,
5305         tests/.gitignore: New files, identical to .cvsignore counterpart.
5307 2007-09-13  Eric Blake  <ebb9@byu.net>
5309         Editing eye-candy.
5310         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Restore
5311         font-lock balance.
5312         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Likewise.
5313         * lib/autoconf/general.m4 (_AC_DO_ECHO): Likewise.
5314         * configure: Regenerate.
5316         Clean up 'make dist' of previous patch.
5317         * tests/Makefile.am (EXTRA_DIST): Distribute mktests.stamp.
5318         (CLEANFILES): Don't clean the stamp, since we distribute the
5319         generated files pre-built.
5320         (MAINTAINERCLEANFILES): Clean it here instead.
5321         * tests/Makefile.in: Regenerate.
5323         Avoid parallel 'make check' issue.
5324         * tests/Makefile.am (mktests.stamp): New witness.
5325         (TESTSUITE_GENERATED_AT): Use it.
5326         (CLEANFILES): Clean the witness.
5327         * tests/.cvsignore (mktests.stamp): Ignore the witness.
5329         Document another awk pitfall.
5330         * doc/autoconf.texi (Limitations of Usual Tools) <awk>: Document
5331         limitation of field variables in END.
5332         Reported by Gary V. Vaughan.
5334         * AUTHORS: Add missing entries.
5336 2007-09-12  Eric Blake  <ebb9@byu.net>
5338         Publish m4_ifndef, m4_version_compare, m4_AUTOCONF_VERSION.
5339         * doc/autoconf.texi (Text processing Macros): Document
5340         m4_version_compare, m4_AUTOCONF_VERSION, m4_PACKAGE_VERSION.
5341         (Redefined M4 Macros): Document m4_ifndef.
5342         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): New macro; we
5343         can't obsolete m4_PACKAGE_VERSION at this time since Autoconf 1.10
5344         used it while it was undocumented.
5345         * NEWS: Document this change.
5346         * lib/m4sugar/Makefile.am (version.m4): Update copyright dates.
5347         * lib/m4sugar/Makefile.in: Regenerate.
5348         * tests/m4sugar.at (m4@&t@_version_compare): New test.
5349         Reported by Bruno Haible.
5351         * doc/autoconf.texi (Generic Compiler Characteristics): Add
5352         missing index entries.
5354 2007-09-11  Eric Blake  <ebb9@byu.net>
5356         Centralize all system extensions checks.
5357         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
5358         from AC_AIX, AC_GNU_SOURCE, AC_MINIX.  Add Interix support.
5359         (AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
5360         AC_USE_SYSTEM_EXTENSIONS.
5361         (AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
5362         (AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
5363         * doc/autoconf.texi (Posix Variants): Reword this section,
5364         emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
5365         rather than a series of system-specific checks.
5366         (Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
5367         AC_MINIX.
5368         * NEWS: Document this change.
5369         * THANKS: Update.
5370         Reported by Martin Koeppe.
5372 2007-09-08  Eric Blake  <ebb9@byu.net>
5374         Clean up obsolete macros references.
5375         * doc/autoconf.texi: Add anchors to support better
5376         cross-referencing.
5377         (Particular Structures): Move obsolete macros descriptions...
5378         (External Software): Likewise.
5379         (Package Options): Likewise.
5380         (Obsolete Macros): ...to here.  Add cross-references to
5381         documentation on replacements.
5382         * NEWS: Mention that these macros have been obsolete for a while
5383         now: AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_RDEV AC_WITH AC_ENABLE.
5385         Improve M4 path searching during configure.
5386         * lib/autoconf/programs.m4 (AC_PATH_PROGS_FEATURE_CHECK): New
5387         macro.
5388         (_AC_PATH_PROG_FEATURE_CHECK): Rename...
5389         (_AC_PATH_PROGS_FEATURE_CHECK): ...to this, add defaulted action
5390         parameter, and kill side effects.
5391         (_AC_PROG_GREP, AC_PROG_SED): Adjust callers.
5392         (_AC_FEATURE_CHECK_LENGTH): Kill extra whitespace.
5393         * m4/m4.m4 (AC_PROG_GNU_M4): Don't stop searching until working m4
5394         is found.
5395         (AC_PATH_PROGS_FEATURE_CHECK): Add backwards compatibility hack to
5396         allow bootstrapping with autoconf 2.61.
5397         * configure.ac (M4): AC_PROG_GNU_M4 now exits on failure.
5398         * configure: Regenerate.
5399         * doc/autoconf.texi (Generic Programs): Document new macro.
5400         * tests/mktests.sh (au_exclude_script): Exclude auto-testing new
5401         macro.
5402         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): New test.
5403         * NEWS: Document the change.
5404         * THANKS: Update.
5405         Reported by Hans Aberg.
5407         * doc/autoconf.texi (Generic Programs): Fix typo.
5409 2007-09-06  Eric Blake  <ebb9@byu.net>
5411         * doc/autoconf.texi (Generic Programs): Use $PATH_SEPARATOR, not
5412         :, and make it clear that optional @var{path} defaults to $PATH.
5413         (Erlang Compiler and Interpreter): Likewise.
5415         Texinfo cleanup.
5416         * doc/autoconf.texi: Avoid lines > 80 columns when possible.
5417         Reword some paragraphs to avoid overfull, underfull hbox
5418         warnings.  Add index entries to avoid overfull vbox warnings.
5420 2007-09-05  Eric Blake  <ebb9@byu.net>
5422         * NEWS: Adjust wording for AC_CONFIG_LINKS.
5423         Reported by Ralf Wildenhues.
5425 2007-09-03  Eric Blake  <ebb9@byu.net>
5427         * NEWS: Document fixes that have been applied since 2.61a.
5429         Housekeeping.
5430         * THANKS: Update, and convert to UTF-8 encoding.
5431         * AUTHORS: Likewise.
5433 2007-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5435         * lib/autoconf/general.m4 (AC_SITE_LOAD): Guard against file
5436         names beginning with `-' again.
5438 2007-08-22  Stepan Kasal  <kasal@ucw.cz>
5439             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5441         * doc/autoconf.texi (Defining Directories): Mention
5442         AM_CPPFLAGS, as the way to modify CPPFLAGS when using Automake.
5444 2007-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5446         * lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
5447         here, this macro is expanded by AC_INIT.  Fixes 2.60 regression.
5448         * tests/base.at (configure arguments): New test.
5449         * THANKS: Update.
5450         Report by Olaf Lenz.
5452         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Expand macro
5453         arguments in comment.
5454         Report by Vincent Torri <vtorri at univ minus evry dot fr>.
5456 2007-08-20  Benoit Sigoure  <tsuna@lrde.epita.fr>
5458         * doc/autoconf.texi (File System Conventions): Index the proper
5459         way of detecting absolute file names.
5461 2007-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5463         * build-aux/config.guess, build-aux/config.sub,
5464         build-aux/elisp-comp, build-aux/install-sh, build-aux/mdate-sh,
5465         build-aux/missing, build-aux/texinfo.tex, doc/fdl.texi,
5466         doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
5467         * doc/autoconf.texi (GNU Free Documentation License): Adjust for
5468         sectioning change in fdl.texi.
5470         * bin/autoconf.as: Update --version output to match current GCS.
5471         * bin/autoheader.in: Likewise.
5472         * bin/autom4te.in: Likewise.
5473         * bin/autoreconf.in: Likewise.
5474         * bin/autoscan.in: Likewise.
5475         * bin/autoupdate.in: Likewise.
5476         * bin/ifnames.in: Likewise.
5478 2007-08-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5480         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not try to link a
5481         file to itself if source and build trees coincide.
5482         * tests/torture.at (AC_CONFIG_LINKS and identical files): New
5483         test.
5484         Report by Sebastian Freundt <hroptatyr@gna.org>.
5486 2007-07-20  Paul Eggert  <eggert@cs.ucla.edu>
5488         Reword the copyright notices to match what's suggested in GPLv3.
5489         In ChangeLog files, use more-permissive notice rather than GPL, as
5490         per usual GNU standards these days.
5492 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
5494         * doc/autoconf.texi (autoreconf Invocation): Document ACLOCAL_AMFLAGS
5495         limitation reported by Leo Moisio in
5496         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432941>.
5498 2007-07-03  Paul Eggert  <eggert@cs.ucla.edu>
5500         * COPYING: Update to GPLv3.  All uses changed.
5502 2007-06-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5503         and Paul Eggert  <eggert@cs.ucla.edu>
5505         * doc/autoconf.texi (Limitations of Usual Tools): sed -e ''
5506         fails on AIX 5.3.
5508 2007-06-17  Noah Misch  <noah@cs.caltech.edu>
5510         * lib/autotest/general.m4 (AT_INIT): Handle absolute `srcdir'.
5511         * tests/autotest.at (srcdir propagation): Test absolute `srcdir' and
5512         `srcdir' as subdirectory of `builddir'.
5514 2007-06-13  Noah Misch  <noah@cs.caltech.edu>
5516         * lib/autotest/general.m4 (AT_INIT): Compute $srcdir correctly.
5517         * tests/autotest.at (srcdir propagation): New test.
5518         * THANKS: Update.
5519         Reported by Mike Frysinger.
5521 2007-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5523         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Set FPATH too.
5524         Problem reported by Fred Kreek in
5525         <http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00009.html>.
5526         * doc/autoconf.texi (Special Shell Variables): Warn about FPATH.
5527         (Macro Names, Defining Directories): Don't mention PATH as a name
5528         for a fully qualified file name, as this usage violates the GNU
5529         coding standards and we shouldn't recommend it.
5531         * lib/autotest/general.m4 (AT_INIT): Don't set PATH to the empty
5532         string and then assume shell builtins like "test" will work.
5534 2007-06-12  Noah Misch  <noah@cs.caltech.edu>
5536         * lib/autoconf/general.m4 (AC_SUBST): Raise a fatal error if VARIABLE is
5537         not a valid shell variable name.
5538         * tests/mktests.sh (ac_exclude_list): Add AC_ARG_VAR.
5539         * tests/torture.at (AC_SUBST: variable name validation): New test.
5540         Reported by Andreas Schwab.
5542 2007-06-04  Noah Misch  <noah@cs.caltech.edu>
5544         * doc/autoconf.texi (AC_F77_MAIN): Give a specific usage example that
5545         works with both C and C++.
5547 2007-06-03  Noah Misch  <noah@cs.caltech.edu>,
5548             Bruno Haible  <bruno@clisp.org>
5550         * lib/autoconf/c.m4 (AC_OPENMP): Use a simple loop instead of compiler
5551         brand tests.
5553 2007-05-31  Paul Eggert  <eggert@cs.ucla.edu>
5555         * doc/autoconf.texi (Particular Types): Give example of use for
5556         AC_TYPE_INT8_T etc.
5558 2007-05-29  Stepan Kasal  <kasal@ucw.cz>
5560         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Fix a typo.
5562 2007-05-28  Paul Eggert  <eggert@cs.ucla.edu>
5564         * doc/autoconf.texi (Particular Types): AC_TYPE_INT8_T does not
5565         define HAVE_INT8_T, and likewise for similar macros.
5566         Problem reported by Patrick Welche in
5567         <http://lists.gnu.org/archive/html/autoconf/2007-05/msg00062.html>.
5569 2007-05-25  Noah Misch  <noah@cs.caltech.edu>
5571         * bin/Makefile.am ($(top_builddir)/bin/autom4te): New dependency.
5573 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
5575         * lib/autoconf/c.m4 (AC_OPENMP): Don't echo --enable-openmp
5576         choice, since that's what we do with --enable-largefile etc.
5577         Redo indenting and assignments to simplify things a bit, and make
5578         the parens work with Emacs.
5580         * doc/autoconf.texi (Generic Compiler Characteristics): Fix typo
5581         in my previous change: AC_C_OPENMP -> AC_OPENMP.  Reported by Bruno
5582         Haible.
5584 2007-05-21  Noah Misch  <noah@cs.caltech.edu>
5586         * lib/autoconf/c.m4 (AC_OPENMP): Simplify use of AC_ARG_ENABLE.
5587         * tests/local.at (AT_CHECK_ENV): Exempt OPENMP_CFLAGS.
5589 2007-05-21  Bruno Haible  <bruno@clisp.org>
5591         * NEWS: Rename AC_C_OPENMP to AC_OPENMP.
5592         * lib/autoconf/c.m4 (AC_OPENMP): Renamed from AC_C_OPENMP.
5593         * doc/autoconf.texi (Generic Compiler Characteristics): Move
5594         renamed AC_OPENMP documentation here, from "C compiler".
5595         Mention C++ and Fortran.
5597 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
5599         * doc/autoconf.texi (C Compiler): Tweak OpenMP documentation a bit.
5601 2007-05-21  Bruno Haible  <bruno@clisp.org>
5603         * NEWS: Mention AC_C_OPENMP.
5604         * lib/autoconf/c.m4 (AC_C_OPENMP): New macro.
5605         * doc/autoconf.texi (C Compiler): Document AC_C_OPENMP.
5606         Based in part on Steven G. Johnson's investigations for the AX_OPENMP
5607         macro in the Autoconf macro archive.
5609 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5611         * bin/autom4te.in: Fix typos.
5613 2007-05-16  Noah Misch  <noah@cs.caltech.edu>
5615         * bin/autoconf.as: Handle `-' just like other input files.
5616         * bin/autom4te.in (parse_args): Pass `-' through.
5617         (handle_output): Skip the forbidden token search if we read from stdin.
5618         (up_to_date): Always treat stdin as out of date.
5619         * tests/tools.at (autoconf: input from stdin): New test.
5620         (autoconf: forbidden tokens, basic): Check a second `autoconf' run.
5622 2007-05-16  Stepan Kasal  <kasal@ucw.cz>
5624         * tests/foreign.at tests/semantics.at, tests/tools.at: Remove
5625         parameters for AT_CLEANUP.
5626         * tests/local.at (AT_CHECK_AU_MACRO): Likewise.
5628 2007-05-14  Paul Eggert  <eggert@cs.ucla.edu>
5630         * NEWS: Document that AC_C_RESTRICT checks 'restrict' last.
5631         * doc/autoconf.texi (C Compiler): Likewise.
5633 2007-05-14  Noah Misch  <noah@cs.caltech.edu>
5635         * lib/autoconf/c.m4 (AC_C_RESTRICT): Check `restrict' last.
5637 2007-05-09  Stepan Kasal  <kasal@ucw.cz>
5639         * doc/autoconf.texi: Direntry for "autoconf Invocation"
5640         renamed to "autoconf-invocation"
5642         * doc/autoconf.texi (Caching Results): The CACHE-ID variable
5643         in the examples should not use the internal "ac_" prefix.
5645 2007-05-05  Noah Misch  <noah@cs.caltech.edu>
5647         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): Use `eval'.
5648         * doc/autoconf.texi ($@, case): Document Zsh limitations.
5650 2007-05-03  Stepan Kasal  <kasal@ucw.cz>
5652         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
5653         Reorganize the comments before and in the macro.
5655 2007-05-02  Stepan Kasal  <kasal@ucw.cz>
5657         * lib/autoconf/lang.m4, lib/autoconf/c.m4,
5658         lib/autoconf/fortran.m4, lib/autoconf/erlang.m4: Cleanup of
5659         section titles and other comments; no code change.
5661 2007-05-01  Kevin Ryde  <user42@zip.com.au>
5663         * doc/autoconf.texi (Particular Programs): Typo
5664         @acindex{AC_PROG_MKDIR_P} shouldn't have "AC" in that call.
5666 2007-04-30  Paul Eggert  <eggert@cs.ucla.edu>
5668         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Don't imply that
5669         'configure' will fail if the shell lacks proper support for shell
5670         functions.  Suggested by RMS.
5672 2007-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5674         * doc/autoconf.texi (Limitations of Builtins): Correct the warning
5675         about Solaris /bin/printf '%010000x' 123.  Problem reported by
5676         Bruno Haible.
5678 2007-04-28  Paul Eggert  <eggert@cs.ucla.edu>
5680         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look
5681         for a.* when searching for executables, as this prevents users
5682         from having files like a.c.  Problem reported by Ralf Wildenhues in:
5683         http://lists.gnu.org/archive/html/autoconf-patches/2007-04/msg00029.html
5684         This fixes a problem introduced on 2000-12-19.
5686 2007-04-26  Paul Eggert  <eggert@cs.ucla.edu>
5688         * doc/autoconf.texi (Limitations of Builtins): Warn about Solaris
5689         /bin/printf '%010000x' 123.  Problem reported by Arto C. Nirkko
5690         via Bruno Haible.
5692 2007-04-12  Paul Eggert  <eggert@cs.ucla.edu>
5694         * NEWS: Document recent changes to AC_CHECK_ALIGNOF, AC_CHECK_SIZEOF,
5695         AC_CHECK_TYPE, AC_CHECK_TYPES.
5696         * doc/autoconf.texi (Generic types): C types must be type-names
5697         (the C terminology), not type-ids (the C++ term).  C++ types
5698         must not be anonymous.
5699         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Remove special case
5700         for C++; this drops support for anonymous struct and union types,
5701         which were problematic anyway.
5702         * tests/semantics.at (AC_CHECK_HEADERS_NEW): Adjust test to work even
5703         for C++.
5705 2007-04-12  Jim Meyering  <jim@meyering.net>
5707         * doc/autoconf.texi (Libraries): Typo fix: insert missing "in".
5709 2007-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5711         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Fix AC_CONFIG_LINKS
5712         to prefer a link source from the build tree, if it exists.
5713         Report by Pallav Gupta <pallavgupta@gmail.com>.
5715 2007-04-11  Paul Eggert  <eggert@cs.ucla.edu>
5717         * doc/autoconf.texi (Generic Types): Document the restrictions
5718         on types imposed by AC_CHECK_TYPE, AC_CHECK_TYPES.
5719         (Generic Compiler Characteristics): AC_CHECK_SIZEOF now works
5720         with objects too.  Document the restrictions on its use.
5721         Document the restrictions on AC_CHECK_ALIGNOF's type argument.
5722         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW):
5723         For C, just try sizeof (TYPE) and sizeof ((TYPE)); if the former
5724         works but the latter doesn't, then it's a valid type.
5725         This lets people use function types and so forth.
5726         For C++ there doesn't seem to be a simple solution, so leave it alone.
5727         (AC_CHECK_SIZEOF): Allow argument to be a variable.
5728         (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Don't bother to invoke
5729         AC_CHECK_TYPE; that wasn't documented or necessary.
5731 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
5733         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Skip AS_TEST_X
5734         when cross-compiling.
5736 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
5738         * doc/autoconf.texi (External Software): Fix a typo in the
5739         previous change.
5741 2007-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5743         * doc/autoconf.texi (External Software, Package Options):
5744         Fix ambiguous wording.  Report by Reuben Thomas <rrt@sc3d.org>.
5746 2007-04-06  Paul Eggert  <eggert@cs.ucla.edu>
5748         * doc/autoconf.texi (Particular Types): AC_C_LONG_DOUBLE is now
5749         obsolescent.  Suggested by Bruno Haible.
5750         * NEWS: Document this.
5752 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
5754         * doc/autoconf.texi (Here-Documents, Limitations of Builtins):
5755         (Limitations of Usual Tools): Don't say "older" if Solaris 10 by
5756         default still has the problem.  Problem reported by Bruce Korb.
5758 2007-03-28  Stepan Kasal  <kasal@ucw.cz>
5759         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5761         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix a
5762         comment in the generated config.status.
5764 2007-03-27  Stepan Kasal  <kasal@ucw.cz>
5766         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Update comment.
5768 2007-03-26  Paul Eggert  <eggert@cs.ucla.edu>
5770         * doc/autoconf.texi (Shellology): Rework treatment of the 'test'
5771         command and case statements to make it a bit clearer and describe
5772         more pitfalls.
5774 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
5776         * doc/autoconf.texi (C Compiler): Mention that AC_PROG_CC_C99 also
5777         checks for unsigned long long int.
5779 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5781         * doc/autoconf.texi (Limitations of Usual Tools): Warn about other
5782         nonstandard grep R.E. escape sequences.
5784 2007-03-17  Jim Meyering  <jim@meyering.net>
5786         * doc/autoconf.texi: Adjust grammar around use of "heuristics".
5787         (Limitations of Usual Tools): Also list \< and \>, and mention that
5788         HP-UX's grep, like the one from Solaris, does not support that syntax.
5790 2007-03-09  Stepan Kasal  <kasal@ucw.cz>
5792         * doc/autoconf.texi (Specifying Names): `--host' does not
5793         change the build type.
5795 2007-03-05  Paul Eggert  <eggert@cs.ucla.edu>
5797         * doc/autoconf.texi (C Compiler): Warn that AC_C_BIGENDIAN
5798         suggests AC_CONFIG_HEADERS.
5799         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Warn if not using
5800         AC_CONFIG_HEADERS.  Problem reported by
5801         Peter O'Gorman.
5803 2007-02-28  Paul Eggert  <eggert@cs.ucla.edu>
5805         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Fix typo "__LITLE_ENDIAN__".
5806         Problem reported by Paolo Bonzini in:
5807         http://lists.gnu.org/archive/html/autoconf-patches/2007-02/msg00024.html
5808         * tests/semantics.at (AC_C_BIGENDIAN): Don't reject hosts that have
5809         universal binaries.  Problem reported by Elias Pipping.
5811 2007-02-27  Paul Eggert  <eggert@cs.ucla.edu>
5813         * NEWS: AC_C_BIGENDIAN now supports universal binaries a la Mac OS X.
5814         * doc/autoconf.texi (C Compiler): Document this.  There is a new
5815         extra argument ACTION-IF-UNIVERSAL.
5816         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Implement this.
5817         Add support for Solaris-style _LITTLE_ENDIAN and _BIG_ENDIAN.
5818         Reindent for sanity's sake.
5820 2007-02-24  Eric Blake  <ebb9@byu.net>
5822         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
5823         copyright.
5824         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
5825         * lib/autotest/general.m4 (AT_INIT): Likewise.
5826         (_AT_DECIDE_TRACEABLE): Fix syntax highlighting.
5828 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5830         * lib/autotest/general.m4 (AT_INIT): With --clean, return exit
5831         status of rm so we know when it failed.
5832         If cleaning of test dir failed before running the test, warn.
5833         Output the line separator in verbose mode before the warning
5834         to make clear the warning belongs to the following test.
5836 2007-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5838         * doc/autoconf.texi (Parentheses): Mention problem with (( in
5839         shells.
5841 2007-02-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5842         and Paul Eggert  <eggert@cs.ucla.edu>
5844         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix quoting
5845         errors introduced in last change.
5847 2007-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5849         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer \r to
5850         an actual carriage return.  Use "ac_cr" to contain the actual
5851         carriage return.
5852         * doc/autoconf.texi (Limitations of Usual Tools): Document problem
5853         with traditional Awk and begin.
5854         * tests/torture.at (Limitations of Builtins): Document the problem
5855         with Bash 2.03 printf.
5856         (Substitute and define special characters):
5857         Remove trailing white space.  Work around a bug in Solaris 8 /bin/bash.
5859 2007-02-06  Ralf Menzel  <menzel@ls6.cs.uni-dortmund.de>  (tiny change)
5861         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Redirect
5862         input from /dev/null in awk test, so even Solaris /usr/bin/awk
5863         will not wait for input with a script containing only a BEGIN
5864         rule.
5866 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
5868         * doc/autoconf.texi (Introduction, Why GNU M4): Clarify M4 version
5869         requirements.
5870         * README: Likewise.
5872 2007-02-02  Eric Blake  <ebb9@byu.net>
5874         * NEWS: Update copyright.
5876         * m4/m4.m4 (AC_PROG_GNU_M4): Reject M4 1.4 through 1.4.4 as
5877         broken.
5878         * configure.ac: Update error message.
5879         * NEWS: Note that M4 1.4.5 or later is now a hard dependency.
5880         Reported by Gary Vaughan and Jim Meyering, and problem analyzed
5881         by Stepan Kasal:
5882         http://lists.gnu.org/archive/html/bug-autoconf/2006-11/msg00025.html
5884 2007-01-31  Eric Blake  <ebb9@byu.net>
5886         * THANKS (people): Update.
5888 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5890         * doc/autoconf.texi (Shellology): pdksh 5.2.14 is still the
5891         latest version.
5892         (Shell Substitutions): Note problems with @{var:=value} etc.
5893         Add a new section for problems with @{#var} etc.  Problem noted
5894         by Ralf Wildenhues.  See:
5895         http://lists.gnu.org/archive/html/libtool-patches/2005-01/msg00157.html
5897 2007-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5899         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Also
5900         AC_SUBST([MKDIR_P]), so that Automake < 1.10 will pick up its
5901         trace, if a package uses AC_PROG_MKDIR_P explicitly.  The actual
5902         substitution will still be done by the special code.
5903         Report by Jim Meyering.
5905         * doc/autoconf.texi (File System Conventions): Mention that
5906         $PATH_SEPARATOR is for the build system only.
5907         Report by Keith Marshall.
5909 2007-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5911         * doc/autoconf.texi (Setting Output Variables): Mention that
5912         all non-NUL characters are ok in substituted values.
5913         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Fix comment typo.
5914         (_AC_OUTPUT_FILES_PREPARE): Test and use backslash escaping of
5915         carriage return for $AWK, needed for BSD awk.
5916         * tests/torture.at (Substitute and define special characters):
5917         Test all 8 bit non-NUL characters.
5918         Report against Automake by Patrick Welche.
5920 2007-01-15  Stepan Kasal  <kasal@ucw.cz>
5922         * doc/autoconf.texi: Direntry for "autoconf Invocation" renamed.
5924 2007-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5926         * lib/autoconf/programs.m4 (AC_PROG_SED): When closing a pipe
5927         early on the reader side, drop stderr of the input to avoid
5928         `broken pipe' error output; this may happen even with shell
5929         builtin `echo' of some bash versions.  Reports by Ian Macdonald
5930         <iamacdo@telkomsa.net> and Sam Sexton <Sam.Sexton@reuters.com>.
5932 2007-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5934         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Use newlines to
5935         separate items of `ac_user_opts', to avoid long lines.
5936         (_AC_INIT_PARSE_ENABLE2, _AC_ENABLE_IF_ACTION): Adjust.
5938 2007-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5940         * doc/autoconf.texi: Fix some typos.
5942 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
5944         Fix some wording problems noted by Paolo Bonzini in:
5945         http://lists.gnu.org/archive/html/autoconf-patches/2007-01/msg00077.html
5946         * doc/autoconf.texi (Signed Overflow Examples): Give more
5947         discussion about the allow_superuser_privileges example,
5948         and change it a bit to make things clearer.
5949         (Optimization and Wraparound): Clarify whether the compiler
5950         will generate an infinite loop for the example derived from
5951         Autoconf's mktime test.
5952         (Signed Overflow Advice): Say that -ftrapv is meant for debugging.
5953         Also, clarify unsigned multiplication overflow.
5955 2007-01-04  Eric Blake  <ebb9@byu.net>
5957         * bin/Makefile.am (RELEASE_YEAR): New macro.
5958         (edit): Use it to supply correct copyright year to scripts.
5959         * bin/autoconf.as (version): Use it.
5960         * bin/autoheader.in ($version): Likewise.
5961         * bin/autom4te.in ($version): Likewise.
5962         * bin/autoreconf.in ($version): Likewise.
5963         * bin/autoscan.in ($version): Likewise.
5964         * bin/autoupdate.in ($version): Likewise.
5965         * bin/ifnames.in ($version): Likewise.
5967 2007-01-02  Paul Eggert  <eggert@cs.ucla.edu>
5969         * doc/autoconf.texi (Integer Overflow): Revised based on today's
5970         feedback.  The most important changes document what happens when
5971         you convert an out-of-range value to a signed integer type, and
5972         say that (sum < a) != (b < 0) reliably detects overflow when sum =
5973         a + b.
5975         * doc/autoconf.texi (Integer Overflow): Greatly expand and
5976         rewrite, taking notions from the recent discussion on the gcc and
5977         autoconf mailing lists; please see
5978         http://lists.gnu.org/archive/html/autoconf-patches/2006-12/msg00091.html
5979         and follow the many links.
5980         (Integer Overflow Basics, Signed Overflow Examples):
5981         (Optimization and Wraparound, Signed Overflow Advice):
5982         (Signed Integer Division): New sections.
5984 2006-12-28  Steven G. Johnson  <stevenj@alum.mit.edu>
5986         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't include
5987         preprocessor macro arguments in traced name.
5988         * doc/autoconf.texi (Defining symbols): Document longstanding
5989         support for AC_DEFINE-ing macros with arguments, and document
5990         behavior when the same variable has multiple AC_DEFINEs.
5991         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Revert to the
5992         old implementation which AC_DEFINEs the FC_FUNC and FC_FUNC_
5993         macros directly, giving much shorter and simpler code.
5995 2006-12-28  Malcolm Purvis <malcolmp@xemacs.org>  (trivial change)
5997         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Insert a
5998         space before "$ac_configure_args" to prevent a 'config.status
5999         --recheck' failure if ac_configure_args doesn't contain a leading
6000         space.  This works around a problem with the XEmacs configure.ac,
6001         which uses the (undocumented) ac_configure_args variable
6002         inconsistently with Autoconf.
6004 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6006         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):
6007         Include <limits.h>, and use its INT_MAX to rewrite the
6008         j loop so that it does not overflow 'int'.  Problem reported by
6009         Ralf Wildenhues in
6010         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
6011         Play it safe by shifting left by 1 rather than multiplying by 2,
6012         as GCC is less likely to optimize this away when the value
6013         is signed (when it assumes overflow leads to undefined behavior).
6014         Also, don't assume time_t uses two's complement.
6016 2006-12-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6018         * tests/torture.at (Substitute a 2000-byte string): Avoid using
6019         a 10kB long (multi-line) string literal, OpenServer 5.0.7 ksh
6020         dumps core on it.  Report by Tim Rice.
6022 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
6024         * lib/autoconf/general.m4 (AC_ARG_ENABLE): Print help about
6025         --disable-option-checking to --help output even when
6026         AC_PRESERVE_HELP_ORDER is not used.
6027         (_AC_INIT_PARSE_ENABLE2): Print warnings using actual --enable or
6028         --with argument, rather than argument with [-.] replaced by
6029         underscores.
6030         * NEWS: Fix typo in previous change; the news was in the
6031         wrong section.
6033 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6035         * NEWS: Warnings are now generated by default for unknown
6036         --enable-* and --with-* options.
6037         * doc/autoconf.texi (Option Checking): Renamed from
6038         (Configure Option Checking).  Tighten up the wording a bit.
6039         (External Software, Package Options): Cross-reference to Option
6040         Checking, and use this to shorten our section.
6041         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Prefer test -n
6042         "$x" to test "x$foo" != x.
6043         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
6044         Don't warn if $enable_option_checking is "no".
6045         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Initialize
6046         ac_unrecognized_opts to the empty string.
6047         Don't echo the unrecognized opts, as this might mishandle
6048         backslashes or leading -.
6049         (AC_PRESERVE_HELP_ORDER): Put the --disable-option-checking
6050         usage next to the other --disable-FEATURE options in the
6051         help string.
6053 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
6055         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, _AC_INIT_PARSE_ARGS):
6056         (_AC_INIT_PARSE_ENABLE2, _AC_INIT_HELP, _AC_ENABLE_IF):
6057         Print warning for unrecognized --with and --enable options
6058         (AC_DISABLE_OPTION_CHECKING): New macro to disable warnings.
6059         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS):
6060         Disable option checking when subdirs are configured.
6061         (AC_OUTPUT): If warnings are enabled, print warning about
6062         unrecognized --with and --enable options at the end of
6063         the configure output (as well as at the beginning).
6064         * doc/autoconf.texi (Option Checking): New node.
6065         Document new option warning functionality.
6067 2006-12-16  Eric Blake  <ebb9@byu.net>
6069         * configure.ac (AC_INIT): Bump version, since 2.61a is released.
6070         * NEWS: Start news for current version.
6072 2006-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6074         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
6075         Define HAVE_GETMNTENT to 1, not to the empty string.
6076         Problem originally reported by Jochen Friedrich in
6077         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403243>.
6079         This change prompted by a problem report by Andrey Simonenko in
6080         <http://lists.gnu.org/archive/html/bug-autoconf/2006-12/msg00026.html>.
6081         * doc/autoconf.texi (Defining Symbols): AC_DEFINE works for
6082         object-like macros only, in the traditional portable character
6083         set.
6084         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL):
6085         Warn about attempts to define things that are not identifiers.
6086         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Rewrite to avoid
6087         awful hack that AC_DEFINEd macro names containing parentheses.
6089 2006-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6091         * doc/autoconf.texi: Undo some of the 2006-12-10 change.  It was
6092         too drastic, even if Texinfo in theory requires it for info mode.
6094         (config.status Invocation): Renamed back from Recreating a
6095         Configuration).
6096         (Obsolete config.status Use): Renamed back from Obsolete Recreation.
6097         (Autoconf 2.13): Renamed back from 20th-century Autoconf 2.
6099 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
6101         * NEWS: Version 2.61a.
6103 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
6104         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6106         * NEWS: Document changes with echo and printf, and the lack
6107         of limits on the total size of multi-line values of substituted
6108         variables, and the AC_FUNC_FSEEKO fix.
6110 2006-12-10  Paul Eggert  <eggert@cs.ucla.edu>
6112         * doc/autoconf.texi (Writing Autoconf Input): Renamed from
6113         Writing configure.ac.
6114         (Autoconf Input Layout): Renamed from configure.ac Layout.
6115         (Recreating a Configuration): Renamed from config.status Invocation.
6116         (Obsolete Recreation): Renamed from Obsolete config.status Use.
6117         (acconfig Header): Renamed from acconfig.h.
6118         (20th-century Autoconf 2): Renamed from Autoconf 2.13.
6119         (Writing Testsuites): Renamed from Writing testsuite.at.
6120         (Autom4te Cache): Renamed from autom4te.cache.
6122         * BUGS: Remove mention of VPATH problem, since it's now documented
6123         not to be a bug in the Autoconf build procedure itself, but rather
6124         a problem with the proprietary `make' programs.
6126         * doc/autoconf.texi (Build Directories): Add a cross reference
6127         to VPATH and Make.
6129         * build-aux/config.guess, build-aux/config.sub, build-aux/texinfo.tex:
6130         * doc/standards.texi: Sync from gnulib.
6132         * man/autoconf.1, man/autoheader.1, man/autom4te.1, man/autoreconf.1:
6133         * man/autoscan.1, man/autoupdate.1, man/config.guess.1:
6134         * man/config.sub.1, man/ifnames.1: Remove from CVS, since they're
6135         generated automatically.
6137 2006-12-06  Paul Eggert  <eggert@cs.ucla.edu>
6139         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Also try -xc99=all, for Sun
6140         C 5.8 on Solaris 10.  Using -xc99=all rather than -xc99 bypasses
6141         the buggy -xc99 option of Forte Developer 7 C on Solaris 9.
6143 2006-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6145         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the
6146         `CEOF$ac_eof' special marker, the awk script cannot contain a
6147         line matching `^CEOF', so this is not needed any more.
6148         * tests/torture.at (Substitute a newline): Expose the `%!_!# '
6149         special marker in the test.
6151 2006-12-06  Stepan Kasal  <kasal@ucw.cz>
6153         * tests/tools.at (autom4te preselections): Use `find -newer';
6154         remove one of the sleeps.
6156         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Make it
6157         more readable, using ...
6158         (_AC_INIT_PARSE_ENABLE2): ... this new helper macro.
6160         * doc/autoconf.texi (autoheader Invocation): Do not double-
6161         quote the parameter of `AH_BOTTOM' in the example.
6163 2006-12-05  Stepan Kasal  <kasal@ucw.cz>
6165         * doc/autoconf.texi (Configuration Headers): Remove the
6166         example with multiple input files.
6167         (autoheader Invocation): Encourage `AH_BOTTOM', discouraging
6168         multiple input files.
6170 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6172         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When
6173         creating the awk substitution script, handle one input line at a
6174         time, so that the maximum length of a substituted (multi-line)
6175         value is not limited by the size of the sed pattern space.
6176         The trade-off is a slightly repetitive sed script.
6177         * doc/autoconf.texi (Limitations of Usual Tools): Branch labels
6178         can only have up to 7 characters, due to Solaris 10 /bin/sed.
6179         * tests/torture.at (Substitute a 2000-byte string): Increase the
6180         test with several long lines, they should not be caught by sed
6181         limits any more.
6183         * tests/tools.at (autom4te preselections): New test, to flag
6184         entries missing from autom4te.cfg.
6185         Report by David Byron <dbyron@hheld.com>.
6187         * tests/torture.at (Substitute a 2000-byte string): Actually use
6188         AC_PROG_AWK, so the last change works as intended.
6189         (Substitute and define special characters): Likewise.
6190         (Substitute a newline): Likewise.
6192         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use `$AWK'
6193         instead of `awk' consistently.
6194         (_AC_OUTPUT_CONFIG_STATUS): Initialize $AWK.
6195         * tests/torture.at (Torturing config.status): Test both the
6196         result of AC_PROG_AWK and plain awk.
6197         (Substitute a 2000-byte string): Likewise.
6198         (Substitute and define special characters): Likewise.
6199         (Substitute a newline): Likewise.
6201 2006-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6203         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko
6204         can be assigned to a function pointer.  Problem reported by
6205         Peter Palfrader in <http://bugs.debian.org/401377>.  Based on
6206         part of a patch by Ralf Wildenhues in that same bug report.
6208 2006-12-01  Paul Eggert  <eggert@cs.ucla.edu>
6210         * tests/mktests.sh (ac_exclude_list): Exclude AC_FUNC_SETVBUF_REVERSED.
6211         * tests/semantics.at (AC_FUNC_SETVBUF_REVERSED): New test.
6213 2006-12-01  Eric Blake  <ebb9@byu.net>
6215         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in
6216         cross-compiling from cygwin to mingw.
6217         Reported by Bob Rossi.  This resurrects the 2000-11-30 patch to
6218         aclang.m4, which was mistakenly removed in the 2001-09-17 patch
6219         to lib/autoconf/c.m4.
6221 2006-12-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6223         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Use a longer test
6224         string for more reliable failure.  Wrap the entire test that
6225         causes the broken Solaris printf to dump core, in a subshell,
6226         so the segmentation fault message is reliably suppressed.
6227         Fix shell expansion errors by using /usr/ucb/echo always;
6228         avoid an error on systems without it by another subshell.
6229         Avoid m4 expansion of `$1'.  Set the zeroth argument of the
6230         subshell-$as_echo to `as_echo', for better error message.
6232 2006-11-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6234         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): If `BASH_ARGV' or
6235         `BASH_SOURCE' contain a newline, set them to empty, as they may
6236         not be unset.
6238 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
6240         Turn AC_FUNC_SETVBUF_REVERSED into a noop.  It's been obsolete for
6241         years and is too hard to maintain now.  The last straw was
6242         reported by Jerker Baeck in
6243         <http://lists.gnu.org/archive/html/autoconf/2006-11/msg00102.html>.
6244         * NEWS: AC_FUNC_SETVBUF_REVERSED is now obsolete.
6245         * doc/autoconf.texi (Particular Functions): Move
6246         AC_FUNC_SETVBUF_REVERSED from here...
6247         (Obsolete Macros): ... to here.  Say that it does nothing now.
6248         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
6249         Turn into (almost) a no-op.
6251         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL, AC_C_CONST):
6252         (AC_C_VOLATILE):
6253         Do not recommend via AN_FUNCTION, AN_IDENTIFIER, or AN_HEADER.
6254         These macros are obsolescent and new applications shouldn't need them.
6255         * lib/autoconf/functions.m4 (AC_FUNC_CLOSEDIR_VOID, AC_REPLACE_FNMATCH):
6256         (AC_FUNC_GETLOADAVG, AC_FUNC_GETPGRP, AC_FUNC_MEMCMP):
6257         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP, AC_FUNC_STAT, AC_FUNC_LSTAT):
6258         (AC_FUNC_STRFTIME, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
6259         (AC_FUNC_VPRINTF): Likewise.
6260         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT, AC_HEADER_STAT):
6261         (AC_HEADER_STDC, AC_HEADER_SYS_WAIT, AC_HEADER_TIME): Likewise.
6262         * lib/autoconf/types.m4 (AC_STRUCT_TM): Likewise.
6264         * doc/autoconf.texi (Setting Output Variables): Mention that
6265         @VAR1@VAR2 has unspecified behavior.  Problem reported by
6266         Ralf Wildenhues.
6267         * NEWS: Mention this.
6269         * Makefile.am: Put only a single '#' into the copyright notice,
6270         so that it's also present in the output file.  Standardize wording
6271         in makefile copyright notices to match GNU coding standards.
6272         * bin/Makefile.am: Likewise.
6273         * doc/Makefile.am: Likewise.
6274         * lib/Makefile.am: Likewise.
6275         * lib/freeze.mk: Likewise.
6276         * lib/autoconf/Makefile.am: Likewise.
6277         * lib/autoscan/Makefile.am: Likewise.
6278         * lib/autotest/Makefile.am: Likewise.
6279         * lib/m4sugar/Makefile.am: Likewise.
6280         * man/Makefile.am: Likewise.
6281         * tests/Makefile.am: Likewise.
6282         * lib/emacs/Makefile.am: Remove copyright notice; it's just a
6283         one-line file.
6285 2006-11-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6287         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix error
6288         in the sed script that mangles the awk script: delete up to the
6289         first exclamation mark only.
6290         * tests/torture.at (Substitute and define special characters):
6291         Test '!' too.
6293 2006-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6295         Rewrite config files generation: avoid quadratic growth in
6296         the number of substituted variables by using awk instead of sed
6297         for the bulk of the substitutions.
6298         * NEWS: Mention this.
6299         * doc/autoconf.texi (Setting Output Variables): `|#_!!_#|' is also
6300         forbidden in the output (and thus input) file.
6301         * lib/autoconf/status.m4 (_AC_AWK_LITERAL_LIMIT): New macro.
6302         (_AC_OUTPUT_FILES_PREPARE): Instead of several sed scripts,
6303         generate just one large awk script for substitutions,
6304         eliminating much of the earlier complexity, while adding some
6305         new complexity.  Only expand the substitution templates at
6306         configure time, for smaller configure script size.  If
6307         _AC_SUBST_FILES are used, test 'awk' for working getline support
6308         at config.status time.  If absent, interpolate through the
6309         shell.  The awk script was written with much help
6310         from Paolo Bonzini and Paul Eggert.
6311         (_AC_SED_CMD_NUM, _AC_SED_DELIM_NUM, _AC_SED_FRAG): Removed.
6312         (_AC_SED_FRAG_NUM): Likewise.
6313         (_AC_SUBST_CMDS): Renamed from...
6314         (_AC_SED_CMDS): ...this.
6315         (_AC_OUTPUT_FILE): Use _AC_SUBST_CMDS.
6316         * tests/torture.at (Substitute a 2000-byte string): Also
6317         substitute a line with 1000 words, and a variable with several
6318         long lines.
6319         (Substitute and define special characters): Test awk special
6320         characters, and put substitution input strings `@foo@' in the
6321         output, to test that no recursion happens; test several other
6322         combinations from Paolo Bonzini.
6324 2006-11-25  Paul Eggert  <eggert@cs.ucla.edu>
6326         * lib/autotest/general.m4 (AT_INIT): Undo recent changes
6327         that replaced echo with AS_ECHO where this wasn't necessary.
6328         Problem reportd by Ralf Wildenhues.
6329         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Port to Solaris 7,
6330         where "/usr/bin/printf '%s\n' S" dumps core if S is long.
6331         This is Sun bug 4206210.  Problem reportd by Ralf Wildenhues.
6333 2006-11-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6335         * lib/freeze.mk (GREP): Removed, no need to initialize this.
6337 2006-11-21  Paul Eggert  <eggert@cs.ucla.edu>
6339         * doc/autoconf.texi (Limitations of Usual Tools): Don't claim
6340         that traditional Awk lacks 3-arg "split".  It has it.
6341         Mention that FS must be a single character, and a few other
6342         99-byte limits of traditional Awk.
6343         Mention that if (i in a) doesn't work with traditional Awk.
6345 2006-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6347         * tests/autotest.at (BSx641-newline in command):
6348         (BS-BS-newline in command, BSx640-newline in command):
6349         (Newline-CODE-BS-newline in command):
6350         (Single-quote-BS-newline in command):
6351         (Single-quote-newline-BS-newline in command):
6352         Use printf '%s\n' instead of echo, for portability to hosts
6353         where echo interprets backslashes.  This will break on hosts
6354         that lack printf, but for now let's assume all such hosts
6355         are dead (if not, we should get reports of test failures).
6357 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6359         'echo' has some portability problems, when given a first argument
6360         with a leading '-', or when given any argument containing '\'.
6361         Avoid using 'echo' in these cases.
6362         * bin/Makefile.am $(bin_SCRIPTS): Rewrite to avoid 'echo' entirely.
6363         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Likewise.
6364         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
6365         * lib/autotest/general.m4 (AT_INIT): Likewise.
6366         * bin/autoconf.as: Use AS_ECHO rather than plain echo, when the
6367         argument might be unportable.
6368         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Likewise.
6369         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Likewise.
6370         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT):
6371         (_AC_FC_LIBRARY_LDFLAGS): Likewise.
6372         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Likewise.
6373         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE, _AC_INIT_PREPARE):
6374         (_AC_ARG_VAR_VALIDATE, AC_ARG_PROGRAM, _AC_MSG_LOG_CONFTEST):
6375         (AC_RUN_LOG, _AC_RUN_IFELSE, _AC_LIBOBJS_NORMALIZE): Likewise.
6376         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
6377         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Likewise.
6378         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
6379         (AC_PROG_MAKE_SET): Likewise.
6380         * lib/autoconf/status.m4 (_AC_SRCDIRS, _AC_OUTPUT_HEADER):
6381         (_AC_OUTPUT_SUBDIRS, _AC_OUTPUT_CONFIG_STATUS): Likewise.
6382         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT, AT_INIT):
6383         (AT_CLEANUP, _AT_DECIDE_TRACEABLE, _AT_CHECK): Likewise.
6384         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE, _AS_ECHO_UNQUOTED):
6385         (_AS_BASENAME_SED, _AS_DIRNAME_SED, AS_MKDIR_P, AS_TMPDIR, AS_UNAME):
6386         (AS_TR_SH, AS_TR_CPP, AS_VAR_GET): Likewise.
6387         * bin/autoconf.as: Redo verbose flag implementation, as the old
6388         scheme wouldn't work with AS_ECHO.
6389         * lib/autotest/general.m4 (AT_INIT): Likewise.
6390         * lib/autoconf/general.m4 (AC_MSG_RESULT, AC_MSG_RESULT_UNQUOTED):
6391         Don't use ECHO_T, since ECHO_N is now reliable.
6392         * lib/autotest/general.m4 (AT_INIT): Likewise.
6393         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use sed "$script"
6394         rather than using a here-document to put the script into a file.
6395         (_AC_DO_ECHO): Hoist the eval out of the echo, so that we can
6396         use AS_ECHO.
6397         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Likewise.
6398         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Use
6399         AS_ECHO_N rather than ECHO_N and ECHO_C.  This doesn't fix any
6400         bug, but we might as well stop using ECHO_N and ECHO_C internally.
6401         * lib/autotest/general.m4 (AT_SETUP): Likewise.
6402         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N): Likewise.
6403         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
6404         (_AC_OUTPUT_MAIN_LOOP): Rework echo so that it has just one
6405         operand, as AS_ECHO requires.  Avoid double file name expansion.
6406         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke _AS_ECHO_PREPARE.
6407         Don't set as_nl, since _AS_ECHO_PREPARE does that now.
6408         (_AS_PREPARE): Comment that _AS_ECHO_N_PREPARE is just for user code.
6409         (AS_ECHO, AS_ECHO_N, _AS_ECHO_PREPARE): New macros.
6410         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
6411         Double-quote strings that would otherwise contain M4 comments.
6412         * tests/m4sh.at (AS_ECHO and AS_ECHO_N): New test.
6414         * configure.ac (AC_INIT): Bump to 2.61a.
6415         * NEWS: Likewise.
6417 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6419         Version 2.61.
6421         * configure.ac (AC_INIT): Bump to 2.61.
6422         * NEWS: Likewise.
6424         * tests/autotest.at (Macro with backslash in a test title):
6425         Comment out for now, as this tests neither fails nor passes
6426         reliably.  Problem reported by Ralf Wildenhues.
6428 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
6430         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos
6431         in previous change, which caused test failures.
6433 2006-11-16  Stepan Kasal  <kasal@ucw.cz>
6435         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Factor out
6436         code for --enable, --disable, --with, and --without to...
6437         (_AC_INIT_PARSE_ENABLE): ... a new macro.
6438         * doc/autoconf.texi (Package Options):
6439         * NEWS: Document that AC_ARG_ENABLE allows dots, too.
6441 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
6443         Import these changes from config via gnulib:
6445         2006-11-15  Ben Elliston  <bje@gnu.org>
6447         From Josselin Mouette <joss@debian.org>:
6448         * build-aux/config.guess (SX-8:SUPER-UX:*:*): New.
6450         2006-11-08  Ben Elliston  <bje@gnu.org>
6452         * build-aux/config.guess (authenticamd:Interix*:[3456]*): Another AMD64.
6454         2006-11-07  Steve Woodford  <scw@NetBSD.org>
6455                     Ben Elliston  <bje@gnu.org>
6457         * build-aux/config.guess (*:NetBSD:*:*): Handle sh5el arch.
6458         * build-aux/config.sub (sh5el): New basic_machine.
6461         Import this change from coreutils:
6463         2006-02-13  Jim Meyering  <jim@meyering.net>
6465         * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
6468         Import this change from gnustandards via gnulib:
6470         2006-11-15  Karl Berry  <karl@gnu.org>
6472         * standards.texi: core -> memory, throughout.
6473         (CPU Portability): show correct example of calling write
6474         on a char value; thanks to Paul Eggert for the code.
6475         Both of these suggestions from Eugene Y. Vasserman.
6478         Import these changes from texinfo via gnulib:
6480         2006-11-08  Karl Berry  <karl@gnu.org>
6482         * build-aux/texinfo.tex (\dopdfimage): look for png, jpg/jpeg/JPG, and
6483           as well as pdf images, since they are supported in pdftex with
6484           no further ado.
6486         2006-11-05  Karl Berry  <karl@gnu.org>
6488         * doc/texinfo.tex (Image Syntax): don't mention GIF any more.
6490 2006-11-13  Paul Eggert  <eggert@cs.ucla.edu>
6492         * NEWS: Document the AC_ARG_WITH change.
6494 2006-11-13  Bruno Haible  <bruno@clisp.org>
6496         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): For --with, --without
6497         options, transliterate also dots to underscores.
6498         (_AC_ENABLE_IF): Transliterate also dots to underscores.
6499         * doc/autoconf.texi (External Software): Document that AC_ARG_WITH's
6500         first argument may also contain dots.
6502 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6504         * tests/mktests.sh (ac_exclude_list): Exclude AC_PROG_CXX_C_O, for
6505         benefit of platforms like Solaris+GCC where it is common to have a
6506         non-working g++ installation.
6508 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6509         and Joel E. Denny  <jdenny@ces.clemson.edu>
6510         and Paul Eggert  <eggert@cs.ucla.edu>
6512         * tests/autotest.at (AT_CHECK_AT_TITLE): Fix shell quoting bugs
6513         and non-portable sed scripts, and use $CONFIG_SHELL when invoking
6514         ./micro-suite.
6516 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
6518         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Set
6519         ac_cv_type_long_long_int to 'yes' instead of 'cross-compiling'.
6520         Imported from a similar patch to gnulib by Bruno Haible.
6522 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
6524         * NEWS: New macros AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS.
6525         * doc/autoconf.texi (C Compiler): Document them.
6526         * lib/autoconf/c.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS):
6527         New macros, taken from gnulib.
6529 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
6531         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
6532         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
6533         Matthew Woehlke.
6535 2006-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6537         * tests/torture.at (Configuring subdirectories): Do not skip
6538         Automake 1.10 nor future Automake 11.1 (sic).
6540 2006-10-26  Joel E. Denny  <jdenny@ces.clemson.edu>
6541         and Stepan Kasal  <kasal@ucw.cz>
6543         Handle special characters in test case titles correctly.
6544         * lib/autotest/general.m4 (AT_INIT): M4-quote and AS_ESCAPE AT_help_all
6545         properly.
6546         (AT_SETUP): M4-quote and AS_ESCAPE the title properly everywhere.
6547         * tests/autotest.at (AT_CHECK_AT_TITLE): Add EXPANDED-TITLE-TO-TEST
6548         argument.  Extend to check titles printed by ./micro-suite and
6549         ./micro-suite -l and the title in micro-suite.log.
6550         (Backquote in a test title,
6551         Single-quote in a test title,
6552         Double-quote in a test title): Don't expect failure anymore.
6553         (Backslash in a test title): Put a non-whitespace character after the
6554         backslash so that Bourne shells might actually see it as an escape
6555         sequence.
6556         (Brackets in a test title,
6557         Pound in a test title,
6558         Comma in a test title,
6559         Quoted Macro in a test title,
6560         Macro in a test title,
6561         Macro with single-quote in a test title): New tests.
6562         (Macro with backquote in a test title,
6563         Macro with double-quote in a test title,
6564         Macro with backslash in a test title): New tests expected to fail.
6565         * tests/torture.at (#define header templates): M4-quote this title in
6566         AT_SETUP call so that no M4 code is commented inadvertently somewhere.
6567         The visible effect was a stray [] in the testsuite output.
6569 2006-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6571         * doc/autoconf.texi (Limitations of Builtins): Do not invoke
6572         `trap ... 0' inside a function, for AIX sh.
6574 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
6576         * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0,
6577         since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build
6578         5363) simply issues a warning when dividing by zero at compile
6579         time.  Problem reported by Elias Pipping.
6581 2006-10-26  Eric Blake  <ebb9@byu.net>
6583         * THANKS: Update.
6584         * doc/autoconf.texi (Evaluation Macros): Improve the example to
6585         show effect on macros that expand with commas.
6586         Reported by Joel E. Denny.
6588         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
6589         Also work with M4 1.4.8.
6591 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
6593         * doc/autoconf.texi (Slashes): Document Tru64 4.0 bug reported by
6594         Jim Meyering.
6596 2006-10-25  Stepan Kasal  <kasal@ucw.cz>
6598         * tests/tools.at (autom4te --force): New test, verifies that
6599         `--force' always rewrites the output file.
6601 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
6603         * doc/autoconf.texi (Limitations of Usual Tools): Document that rm
6604         needs operands on NetBSD 2.0.2.  Problem reported by Bruno Haible.
6606 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
6608         * tools/trace.at (autoconf --trace: user macros): Test `$%'.
6610 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
6612         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
6613         If FUNCTION-BODY is nonempty, use AC_LINK_IFELSE rather than
6614         AC_COMPILE_IFELSE, to work around problem with OSF/1 4.0F fseeko
6615         reported by Nelson H. F. Beebe for Coreutils 6.4.
6617         * tests/tools.at (autoconf --trace: user macros): Remove test
6618         for tracing multiline macros, since m4 1.4.7a uses a different
6619         way to number lines.  Problem reported by Ralf Wildenhues.
6621 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
6623         * bin/autom4te.in (handle_m4): Do not redirect stdin to
6624         /dev/null since the heuristics for interactive behaviour was
6625         fixed in CVS m4.
6627         * bin/autom4te.in: With --force, always refresh the output
6628         file.  Problem reported by Greg Schafer <gschafer@zip.com.au>.
6630         * bin/autoconf.as: Fix the verbose message at the end.
6632 2006-10-23  Paul Eggert  <eggert@cs.ucla.edu>
6634         * configure.ac (AC_INIT): Bump to 2.60c.
6635         * NEWS: Likewise.
6637 2006-10-22  Paul Eggert  <eggert@cs.ucla.edu>
6639         * NEWS: Version 2.60b.
6641         Import this change from Texinfo:
6642         2006-10-15  Karl Berry  <karl@gnu.org>
6643         * build-aux/texinfo.tex: automake 1.10
6645         * NEWS: Remove AC_CACHE_CHECK_INT.
6646         * doc/autoconf.texi (Caching Results): Likewise.
6647         * lib/autoconf/general.m4 (_AC_CACHE_CHECK_INT): Renamed from
6648         AC_CACHE_CHECK_INT, since it's no longer public.
6649         * lib/autoconf/types.m4: All uses of AC_CACHE_CHECK_INT changed.
6650         * tests/base.at (AC_COMPUTE_INT): Test this, not AC_CACHE_CHECK_INT.
6652 2006-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6654         * doc/autoconf.texi (Limitations of Usual Tools): Fix two typos.
6656 2006-10-19  Eric Blake  <ebb9@byu.net>
6658         * lib/m4sugar/m4sugar.m4 (m4_mkstemp): New macro.
6659         (m4_maketemp): Avoid warnings with M4 1.9a.
6660         * lib/emacs/autoconf-mode.el (autoconf-font-lock-keywords): Color
6661         m4_mkstemp.
6662         * doc/autoconf.texi (Redefined M4 Macros): Document m4_mkstemp.
6663         * NEWS: Likewise.
6665 2006-10-16  Eric Blake  <ebb9@byu.net>
6667         * doc/autoconf.texi (Setting Output Variables): Fix typo.
6669         * bin/autoconf.as (version): Reword to match GNU Coding
6670         Standards.
6671         * bin/autoheader.in (version): Likewise.
6672         * bin/autom4te.in (version): Likewise.
6673         * bin/autoreconf.in (version): Likewise.
6674         * bin/autoscan.in (version): Likewise.
6675         * bin/autoupdate.in (version): Likewise.
6676         * bin/ifnames.in (version): Likewise.
6678 2006-10-14  Stepan Kasal  <kasal@ucw.cz>
6680         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Expand $1 before
6681         looking for special shell characters.
6682         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Do not expand the
6683         macro defined by AS_VAR_PUSHDEF before passing it as a
6684         parameter.
6685         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
6686         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB):
6687         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
6688         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL):
6689         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_DIRENT):
6690         Likewise.
6691         * lib/autotest/general.m4 (AT_INIT): Quote parameters of
6692         AS_VAR_* properly.
6693         * tests/m4sh.at (AS_LITERAL_IF): New test.
6695 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
6697         (Imported from Automake.)
6698         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
6699         which incorrectly sets the mode of an existing destination
6700         directory.  In some cases the unpatched install-sh could do the
6701         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
6702         system.  We hope this is rare in practice, but it's clearly worth
6703         fixing.  Problem reported by Alex Unleashed in
6704         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
6705         Also, don't bother to check for -m bugs unless we're using -m;
6706         suggested by Stepan Kasal.
6708 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
6710         Import this change from Automake:
6712         2006-08-23  Alexandre Duret-Lutz  <adl@gnu.org>
6713         * lib/Autom4te/ChannelDefs.pm (usage): Mention that -Wportability
6714         is enabled by default with gnu and gnits strictness.
6715         Report from Bruno Haible.
6717         2006-03-10  Alexandre Duret-Lutz  <adl@gnu.org>
6718         * lib/Autom4te/ChannelDefs.pm: Make -Wportability the default in
6719         gnu and gnits modes.
6721         Import this change from Config:
6723         2006-09-20  Ben Elliston  <bje@gnu.org>
6724         * build-aux/config.sub (score, score-*): New.
6726         Import this change from Gnulib:
6728         2006-09-16  Karl Berry  <karl@gnu.org>
6729         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
6730         to avoid sectioning errors.
6732         Import these changes from Texinfo:
6734         2006-10-04  Karl Berry  <karl@gnu.org>
6735         * build-aux/texinfo.tex (\singlequotechar): rename to \codequoteright.
6736         (\quoteexpand): rename to \rquoteexpand.
6737         (\codequoteleft): new def, to look for @set codequotebacktick.
6738         (\lquoteexpand, \quoteexpand): new defs.
6739         (\lquoteChar, \rquoteChar, \dashChar, \underChar: new \chardef's.
6740         (\code): must use new \...Char values, since now ` is active.
6742         2006-08-26  Karl Berry  <karl@gnu.org>
6743         * build-aux/texinfo.tex (\textdegree): New command.
6745         2006-08-12  Karl Berry  <karl@gnu.org>
6746         * build-aux/texinfo.tex (error \box0): smaller font.
6748 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6750         * doc/autoconf.texi (Autoheader Macros): Fix syntax error.
6752 2006-10-13  Stepan Kasal  <kasal@ucw.cz>
6754         * doc/autoconf.texi (Autoheader Macros): Warn that the text
6755         added to the template can get mangled.
6757 2006-10-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6759         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): In the test,
6760         include the default headers, and redefine obstack_chunk_alloc
6761         and obstack_chunk_free.  Fixes false failure with glibc.
6763 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
6765         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Set as_executable_p,
6766         for backward compatibility with Libtool 1.5.22.  Problem reported
6767         by Ralf Wildenhues.
6769 2006-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6771         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL): Require
6772         AC_PROG_CC.
6773         Report by IOhannes m zmoelnig <zmoelnig@iem.at>.
6775 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
6777         * NEWS: AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for
6778         the NonStop platform.
6779         * doc/autoconf.texi (Posix Variants): Likewise.
6780         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
6782         * lib/m4sugar/m4sh.m4 (AS_TEST_X): New macro.
6783         (AS_EXECUTABLE_P): Use as_test_x rather than as_executable_p.
6784         (_AS_TEST_PREPARE): Set as_test_x rather than as_executable_p.
6785         Use a better substitute, by inspecting the output of "ls"
6786         rather than just using ":".
6787         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Use AS_TEST_X
6788         rather than AS_EXECUTABLE_P, since we needn't worry about
6789         non-regular files here.
6791         * NEWS: Autoconf-generated shell scripts no longer export BIN_SH,
6792         due to configuration hassles with this.  See Tonya Underwood's report
6793         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00003.html>.
6794         * doc/autoconf.texi (Special Shell Variables): Likewise.
6796 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
6797             Stepan Kasal  <kasal@ucw.cz>
6799         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Don't set BIN_SH.
6800         (_AS_DETECT_BETTER_SHELL): Don't look in /usr/bin/posix.
6802 2006-10-11  Stepan Kasal  <kasal@ucw.cz>
6804         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Move the
6805           initialization which is not inherited through the environment
6806         (_AS_BOURNE_COMPATIBLE): ... to this new macro.
6807         (_AS_RUN): Call _AS_BOURNE_COMPATIBLE, not AS_BOURNE_COMPATIBLE.
6809 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
6811         * doc/autoconf.texi (Limitations of Usual Tools): Describe
6812         problems with mkdir -p -m.
6814 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
6816         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Remove
6817         comment about ac_cpp_err; it was incorrect, and anyway
6818         ac_cpp_err is being removed below.
6819         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE): Don't
6820         set ac_cpp_err to 'yesyes' if preproc_warn_flag and werror_flag
6821         are both 'yes'.  In fact, don't bother setting ac_cpp_err at all;
6822         nobody uses it.
6823         (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't log our funky tests
6824         with werror_flag and conftest.err and so forth.  This is more
6825         compatible with how _AC_PROG_PREPROC_WORKS_IFELSE behaves,
6826         and anyway the user shouldn't normally want to see this gorp logged.
6827         Problem reported by Ralf Wildenhues.
6828         * lib/autoconf/lang.m4 (AC_LANG_WERROR): werror_flag's default is
6829         empty, not 'no', since the rest of the code uses 'test -z'.
6831 2006-10-04  Paul Eggert  <eggert@cs.ucla.edu>
6833         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
6834         Use a single call to AC_DO_TOKENS rather than multiple, for
6835         efficiency.
6836         (_AC_LINK_IFELSE): Test that resulting file is executable.
6837         Problem reported by mwoehlke in
6838         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00048.html>.
6840         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Use "test -x /" rather
6841         than creating a file to use with test -x; this is much faster.
6843 2006-10-02  Bruno Haible  <bruno@clisp.org>
6845         * lib/autom4te.in (Automake-preselections): Add
6846         AM_GNU_GETTEXT_INTL_SUBDIR, for automake 1.10.
6848 2006-09-27  Stepan Kasal  <kasal@ucw.cz>
6850         * doc/autoconf.texi (Writing testsuite.at): Fix a typo: for
6851         standard error, `experr' should be used, not `expout'.
6853 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
6855         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Don't compile the
6856         fseeko testing program twice; just use the earlier result.
6857         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
6858         Set cache var to 'unknown' (not 'no') if leaving the macro unset
6859         still doesn't let the program compile.
6860         (AC_SYS_LARGEFILE): Test for _LARGE_FILES only if earlier tests
6861         failed.
6863         * lib/autoconf/functions.m4: Fix problems reported by Ralf Wildenhues.
6864         (AC_FUNC_ERROR_AT_LINE): Don't bother to check for error.h.  Just
6865         include it, without including anything else.
6866         (AC_FUNC_FSEEKO): Avoid gcc -Wall warnings about constant
6867         expressions.
6868         (AC_FUNC_STRNLEN): Require AC_USE_SYSTEM_EXTENSIONS.
6870 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6872         * lib/autoconf/functions.m4 (AC_FUNC_ERROR_AT_LINE): Check for
6873         `error.h', and include it, for a `error_at_line' prototype.
6874         Use a nonempty format string in the link test.
6875         * lib/autoconf/functions.m4 (AC_FUNC_WAIT3): Include <sys/wait.h>,
6876         for a declaration of wait3.
6878 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
6880         * NEWS: AC_CHECK_DECL now also works with aggregate objects.
6881         * doc/autoconf.texi (Generic Declarations): Clarify that AC_CHECK_DECL
6882         can apply to constants too, and that it checks for macro defns.
6883         * lib/autoconf/general.m4 (AC_CHECK_DECL): Assume C89 or better,
6884         and simply cast the identifier to void.  This handles structure
6885         values.  Problem reported by Ralf Wildenhues.
6886         * tests/semantics.at (AC_CHECK_DECLS): Also check enums.
6888 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6890         * tests/semantics.at (AC_CHECK_DECLS): Also check macros,
6891         structure, and function symbols.
6893 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6895         * tests/semantics.at (AC_CHECK_MEMBERS): Also test with a struct
6896         member.
6898 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
6900         * NEWS: Recommend M4 1.4.7 instead of 1.4.6.
6901         * README: Likewise.
6902         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
6904 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
6905         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6907         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): Avoid `gcc -Wall'
6908         warnings (uninitialized value).
6909         (AC_FUNC_UTIME_NULL): Likewise, test for and include <utime.h> if
6910         present.
6911         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Likewise, add
6912         parentheses.
6913         (AC_STRUCT_TM): Likewise, avoid unused variables.
6915 2006-09-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6917         * lib/autoconf/c.m4 (_AC_ARG_VAR_LDFLAGS): Update comment.
6918         (_AC_ARG_VAR_LIBS): New macro: let LIBS be precious.
6919         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Call _AC_ARG_VAR_LIBS.
6920         * lib/autoconf/fortran.m4 (AC_PROG_F77, AC_PROG_FC): Likewise.
6921         Report by Olly Betts.
6923 2006-09-19  Eric Blake  <ebb9@byu.net>
6925         * m4/m4.m4: Change copyright.
6926         * configure: Regenerate.
6927         * Makefile.in: Likewise.
6928         * bin/Makefile.in: Likewise.
6929         * doc/Makefile.in: Likewise.
6930         * lib/Makefile.in: Likewise.
6931         * lib/Autom4te/Makefile.in: Likewise.
6932         * lib/autoconf/Makefile.in: Likewise.
6933         * lib/autoscan/Makefile.in: Likewise.
6934         * lib/autotest/Makefile.in: Likewise.
6935         * lib/emacs/Makefile.in: Likewise.
6936         * lib/m4sugar/Makefile.in: Likewise.
6937         * man/Makefile.in: Likewise.
6938         * tests/Makefile.in: Likewise.
6940         * m4/m4.m4 (AC_PROG_GNU_M4): Check for m4 --debugfile support.
6941         * bin/Makefile.am (edit): Substitute M4_DEBUGFILE.
6942         * bin/autom4te.in (handle_m4): Favor --debugfile over misnamed
6943         --error-output, to avoid warnings with M4 2.0.
6945 2006-09-19  Stepan Kasal  <kasal@ucw.cz>
6947         * lib/autoconf/libs.m4 (AH_CHECK_LIB): Fix quoting, to be
6948           consistent with _AH_CHECK_FUNCS and _AH_CHECK_HEADERS.
6949         * lib/autoconf/headers.m4 (AH_CHECK_HEADERS_DIRENT): Likewise.
6951 2006-09-15  Stepan Kasal  <kasal@ucw.cz>
6953         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Eliminate the
6954         expansion of AC_CHECK_FUNCS.
6956 2006-09-14  Stepan Kasal  <kasal@ucw.cz>
6958         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Remove a
6959         mistaken comment: the path has to be relative; do not use
6960         the path at runtime.
6962 2006-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6964         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote the
6965         argument to `--prefix' for sub-configure scripts.
6966         Pass `--silent' to sub-configure scripts.
6967         * tests/torture.at (Configuring subdirectories): Add tests
6968         for both changes.
6969         * doc/autoconf.texi (Setting Output Variables): Fix example to
6970         not show `--silent' being passed to a `configure' re-run.
6972 2006-09-12  Paul Eggert  <eggert@cs.ucla.edu>
6974         * doc/autoconf.texi (Input): Clarify role of AC_CONFIG_MACRO_DIR.
6975         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Do not check
6976         for the existence of the directory at configure-time.  That's
6977         too late, anyway.  Problem reported by Stefan Seefeld.
6979         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Avoid bug in UnixWare
6980         7.1.4 /usr/bin/posix/sh described by Tim Rice in
6981         <http://lists.gnu.org/archive/html/bug-autoconf/2006-09/msg00017.html>.
6983 2006-09-11  Stepan Kasal  <kasal@ucw.cz>
6985         * tests/local.at (AT_CHECK_M4): Fix this so that the testsuite
6986         works with GNU M4 1.4.3 again; make the normalized form
6987         match the current m4 message; fix the description.
6988         * test/tools.at (autom4te cache): Adapt to the change.
6990 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
6992         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):  Add year_2050_test
6993         to catch glibc bug 2821
6994         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
6996         Merge from gnulib as follows: Use AC_CHECK_HEADERS_ONCE instead of
6997         AC_CHECK_HEADERS, and likewise for AC_CHECK_FUNCS_ONCE and
6998         AC_CHECK_FUNCS.  Don't check for stdlib.h, since we now
6999         assume C89.
7001 2006-09-08  Stepan Kasal  <kasal@ucw.cz>
7003         * lib/autom4te.in (Autoconf-without-aclocal-m4): Move the
7004         preselections ...
7005         (Autoconf): ... here.
7006         (Autoscan-preselections): Delete.
7008 2006-09-07  Stepan Kasal  <kasal@ucw.cz>
7010         * lib/autom4te.in (Automake-preselections): Preselect
7011         AM_ENABLE_MULTILIB.
7013 2006-09-05  Paul Eggert  <eggert@cs.ucla.edu>
7015         * doc/autoconf.texi (Preset Output Variables): srcdir and
7016         top_srcdir are not necessarily relative.  Problem reported
7017         by Dries Kimpe.
7019 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7021         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Prefer xlf90/xlf95 over
7022         f90/f95 because the latter drivers of AIX Fortran 9.1 do not
7023         accept files with extension `.f'.  For consistency, also prefer
7024         xlf over f77.
7025         * doc/autoconf.texi (Fortran Compiler): Remove mention of bug
7026         from last patch.
7028 2006-09-05  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
7030         * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB): Added substitution
7031         of ERLANG_LIB_VER_* variables.
7032         * doc/autoconf.texi (Erlang Libraries): Document ERLANG_LIB_VER_*
7033         variables.
7035 2006-09-03  Paul Eggert  <eggert@cs.ucla.edu>
7036         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7038         * doc/autoconf.texi (Limitations of Builtins): Document 'unset'
7039         bugs of Bash 2.01 and 2.05a.
7040         (Fortran Compiler): Document that AC_PROG_CC should be called
7041         before AC_PROG_FC, due to a bug in Autoconf.
7043 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
7045         * NEWS: New macro AC_CACHE_CHECK_INT.  It replaces the
7046         old AC_COMPUTE_INT, which now behaves like _AC_COMPUTE_INT
7047         except the first two arguments are reversed.
7048         * doc/autoconf.texi (Caching Results): New macro AC_CACHE_CHECK_INT.
7049         (Generic Compiler Characteristics): AC_COMPUTE_INT no longer
7050         caches nor outputs a diagnostic.  Suggested by Bruno Haible.
7051         * lib/autoconf/general.m4 (AC_CACHE_CHECK_INT): New macro,
7052         equivalent to the old AC_COMPUTE_INT.
7053         (AC_COMPUTE_INT): No longer caches or reports.  New signature.
7054         All uses changed to AC_CACHE_CHECK_INT.
7055         * tests/base.at (AC_CACHE_CHECK_INT): New test.
7056         * tests/mktests.sh (ac_exclude_list): Add AC_CACHE_CHECK_INT.
7058 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
7060         * NEWS: AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_FUNC_GETLOADVG,
7061         and AC_REPLACE_FNMATCH are now obsolescent in Autoconf.  New
7062         programs should use their Gnulib counterparts.
7063         * doc/autoconf.texi (Particular Functions): Likewise.
7064         (Macro Names, testsuite Invocation): Replace uses of these
7065         obsolete macros with uses of non-obsolete macros.
7067 2006-08-29  Eric Blake  <ebb9@byu.net>
7069         * configure.ac (AC_INIT): Bump to 2.60b.
7070         * NEWS: Update.
7072 2006-08-28  Eric Blake  <ebb9@byu.net>
7074         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Fix logic that was
7075         mistakenly swapped on 2006-08-15.
7077 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
7079         * NEWS: Version 2.60a.
7081 2006-08-25  Stepan Kasal  <kasal@ucw.cz>
7083         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Remove the IPA/IPO
7084         file created by the PGI compiler.
7086 2006-08-25  Noah Misch  <noah@cs.caltech.edu>
7088         * lib/Autom4te/General.pm (END): Use `File::Path::rmtree' to
7089         simplify the code.
7091 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
7093         Fix Lex library problem reported to us by Julio Garvia.
7094         * doc/autoconf.texi (Particular Programs): YYTEXT_POINTER is
7095         for the default, which the user can override.
7096         * lib/autoconf/programs.m4 (AC_PROG_LEX): Let _AC_PROG_LEX_YYTEXT_DECL
7097         deal with LEXLIB.
7098         (_AC_PROG_LEX_YYTEXT_DECL): Handle caching correctly; the old code
7099         didn't work if some values were cached but not others.  Test for
7100         broken lex libraries like native ia64-hp-hpux11.22; see
7101         <http://sources.redhat.com/ml/binutils/2003-12/msg00337.html>, and
7102         work around the problem by preferring an empty LEXLIB to -lfl or
7103         -ll.  Let the user set LEXLIB='' to indicate no library needed.
7105         * NEWS: Recommend M4 1.4.6 instead of 1.4.5.
7106         * README: Likewise.
7107         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
7109 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
7111         Rework to use more-modern build style.
7112         Many files are renamed; all uses of their names were changed.
7113         * .x-sc_trailing_blank: Renamed from .x-sc_trailing_space.
7114         * .x-sc_useless_cpp_parens: New file.
7115         * build-aux/config.guess: Renamed from config/config.guess.  Update.
7116         * build-aux/config.sub: Renamed from config/config.sub.  Update.
7117         * build-aux/elisp-comp: Renamed from config/elisp-comp.
7118         * build-aux/install-sh: Renamed from config/install-sh.  Update.
7119         * build-aux/mdate-sh: Renamed from config/mdate-sh.
7120         * build-aux/missing: Renamed from config/missing.
7121         * build-aux/texinfo.tex: Renamed from config/texinfo.tex.  Update.
7122         * build-aux/vc-list-files: Renamed from config/vc-list-files.
7123         * config/Makefile.am: Removed.
7124         * config/mkinstalldirs: Removed.
7125         * config/move-if-change: Removed.
7126         * m4/m4.m4: Renamed from config/m4.m4.  Add (C) to copyright notice.
7127         * Makefile.am (SUBDIRS): Remove config.
7128         (ACLOCAL_AMFLAGS): Include from m4, not config.
7129         (EXTRA_DIST): Add config/announce-gen, config/prev-version.txt.
7130         (WGET, WGETFLAGS): New macros, since Makefile.maint no longer does this.
7131         (autom4te-update): Rewrite with a loop.  Get from gnulib, not automake.
7132         Fail if there's an error.
7133         * Makefile.cfg (move_if_change): Remove.
7134         (wget_files): Remove.
7135         (cvs_executable_files): New macro.
7136         (cvs_files): Use it.  Remove mkinstalldirs.  Add fdl.texi.
7137         (executable-update): Use $(cvs_executable_files).
7138         (local-checks-to-skip): Remove.
7139         * Makefile.maint: Merge from coreutils, plus add our own changes
7140         (gzip_rsyncable): New macro.
7141         (GZIP_ENV): Use it.
7142         (CVS_LIST): Use build-aux/vc-list-files.
7143         (VERSION_REGEXP): New macro.
7144         (local-checks-available): Add patch-check, $(syntax-check-rules),
7145         check-AUTHORS.
7146         (syntax-check-rules): Compute dynamically.
7147         (sc_cast_of_x_alloc_return_value): Work even if no source files.
7148         (sc_cast_of_alloca_return_value): Likewise.
7149         (sc_prohibit_atoi_atof): Simplify regexp.
7150         (sc_no_if_have_config_h, sc_require_config_h):
7151         (sc_prohibit_assert_without_use,
7152         (sc_obsolete_symbols): Check for O_NDELAY.
7153         (sc_texi_notab): Remove.
7154         (sc-changelog): Don't make an exception for '----' lines.
7155         (.re-list): Remove, so we don't have a junk file behind.
7156         (sc_system_h_headers): Remove the need for .re-list.
7157         (sc_the_the):  New rule.
7158         (sc_tight_scope): Simplify.
7159         (sc_trailing_blank): Renamed from sc_trailing_space.
7160         (longopt_re): New macro.
7161         (sc_two_space_separator_in_usage): New rule.
7162         (sc_unmarked_diagnostics): Look at all files under CVS.
7163         (sc_useless_cpp_parens, patch-check, check-AUTHORS): New rules.
7164         (news-date-check, changelog-check): Version is OK.
7165         (po-check): Look for lib files even if not in CVS.
7166         (copyright-check): Use $() not ``.
7167         (maintainer-distcheck): Do not depend on changelog-check.
7168         (my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz).
7169         Also check for -Wpointer-arith.
7170         (WGET, WGETFLAGS, tgz-md5, tgz-sha1, bz2-md5, bz2-sha1):
7171         (xdelta-md5, xdelta-sha1, tgz-size, bz2-size, xd-size, rel-check):
7172         Remove.
7173         (announcement): Add --gpg-key-id arg.
7174         (cvs-sv): Remove.
7175         (move_if_change): Just use mv.
7176         (local_updates: Remove wget-update, po-update.
7177         (po_repo, do-po-update, po-update, wget_files, get-targets): Remove.
7178         (config.guess-url_prefix, config.sub-url_prefix): Remove.
7179         (ansi2knr.c-url_prefix, texinfo.tex-url_prefix):
7180         (standards.texi-url_prefix, make-stds.texi-url_prefix, target, url):
7181         ($(get-targets)): Remove.
7182         (cvs_files): Remove missing, mkinstalldirs, ansi2knr.c.
7183         (gnulib_repo): Renamed from automake_repo.  Get from gnulib now.
7184         (cvs-update): Get from gnulib.
7185         (emut_upload_commands): gnupload is in build-aux now.
7186         (alpha beta major): Add changelog-check.  Check version.
7187         * configure.ac (AC_CONFIG_AUX_DIR): Renamed from config to build-aux.
7188         (AC_CONFIG_FILES): Remove.
7189         * bin/autoconf.as: Add spaces to avoid distcheck warning.
7190         * config/announce-gen: Sync from coreutils.
7191         * doc/make-stds.texi: Sync from gnulib.
7192         * doc/standards.texi: Likewise.
7193         * man/Makefile.am: Adjust for config -> build-aux renaming.
7194         * tests/Makefile.am: Prefer $(FOO) to @FOO@.
7195         * tests/local.at: Adjust from config -> build-aux renaming.
7196         * tests/tools.at: Likewise.
7197         * tests/torture.at: Likewise.
7199         * NEWS: The C99 check now tests for vararg macros and 64-bit
7200         preprocessor ints.
7201         * doc/autoconf.texi (C Compiler): Document // comments, va_copy.
7202         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Test varargs macros and
7203         64-bit preprocessor ints.  Check for static initialization of
7204         long long.  Remove unnecessary casts.
7206 2006-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7208         * doc/autoconf.texi (Particular Programs): Mention that
7209         @INSTALL@ and @MKDIR_P@ may vary for different output files.
7210         Reported by Alexandre Duret-Lutz.
7212 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
7214         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
7215         -lgcc?* and -lSystem, for Darwin/MacOS X.  Problem reported by
7216         Bill Northcott in
7217         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00083.html>.
7219 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
7221         * lib/autoconf/c.m4 (AC_C_CONST): Don't used shadowed vars, to
7222         pacify insanely picky compilers.  Problem reported by Eric Blake.
7224         * doc/autoconf.texi (Posix Variants): INTERACTIVE Unix is no
7225         longer supported by Sun.
7227 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
7229         * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
7230         rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
7231         -Wundef -Werror".  Problem reported by David Fang in
7232         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
7233         * doc/autoconf.texi (Header Templates, Default Includes):
7234         (Particular Functions, Generic Functions, Header Portability):
7235         (Particular Headers, Generic Headers, Generic Declarations, Guidelines):
7236         (Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
7237         (Present But Cannot Be Compiled, Preprocessor Symbol Index):
7238         Prefer #ifdef to #if.
7239         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
7240         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
7241         (AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
7242         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
7243         Likewise.
7244         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
7245         (AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
7246         * lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
7247         (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
7248         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
7249         S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
7250         this.
7252 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
7254         * doc/autoconf.texi (Limitations of Usual Tools): Document sed
7255         problems with arg script text that doesn't end in newline, and
7256         with '-e a...'.  Problems reported by Ralf Wildenhues.
7258 2006-08-12  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
7260         * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
7261         check for libXt by a check for libX11.
7263 2006-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7265         * doc/autoconf.texi (config.status Invocation): Adjust according
7266         to last change.
7268 2006-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7270         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
7271         --help' should mention that `--version' outputs configuration
7272         settings.  Report by Bruno Haible.
7274 2006-08-06  Paul Eggert  <eggert@cs.ucla.edu>
7276         Fix test suite failures reported by Pierre in
7277         <http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
7278         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
7279         the compiler created a file "b.out" when it didn't create anything
7280         at all.
7281         * lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
7282         Discard stderr too, when invoking the test script.
7284 2006-08-05  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
7286         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
7287         in the restoring of the werror flag.
7289 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7291         * doc/autoconf.texi (Volatile Objects): Be even a little
7292         less skeptical about "volatile", after discussion with
7293         Bruno Haible on bug-gnulib.
7294         (Limitations of Usual Tools): Warn about sed stripping
7295         leading white space from text.  From Bruno Haible.
7297 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
7299         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
7300         compiler complains about it, even if things works after the
7301         complaint.  Problem reported by Peter O'Gorman.
7303         * doc/autoconf.texi (Preset Output Variables): Document CFLAGS,
7304         CPPFLAGS, and LDFLAGS better.  Problem reported by Bruno Haible.
7305         Similarly for CXXFLAGS, OBJCFLAGS, ERLCFLAGS.
7307 2006-07-17  Paul Eggert  <eggert@cs.ucla.edu>
7309         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space
7310         after -R regardless of host.  Patrick Welche reports that this
7311         fixes things on NetBSD 3.99.
7313         * NEWS: Recommend M4 1.4.5.
7314         * README: Likewise.
7315         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
7316         * tests/tools.at (autom4te cache): Update wording of diagnostic
7317         to match M4 1.4.5.
7319 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
7321         * doc/autoconf.texi (C Compiler): Add a ref to Volatile Objects
7322         under AC_C_VOLATILE.
7323         (Volatile Objects): Be a little less skeptical about what
7324         "volatile" means.  Derived from thoughts by Ben Pfaff in
7325         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00092.html>.
7327 2006-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7329         * doc/autoconf.texi: Fix some typos.
7331 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
7333         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
7334         more globally, since the 2006-06-30 patch didn't suffice.  Problem
7335         reported by Keith Marshall.  Also, don't bother with builddir2,
7336         since it shouldn't be needed any more.
7338 2006-07-07  Paolo Bonzini  <bonzini@gnu.org>
7340         * doc/autoconf.texi (Generic compiler characteristics):
7341         Document AC_COMPUTE_INT.  Fix wrong statements on Default
7342         Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.
7344         * lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
7345         (_AC_COMPUTE_INT): Add obsoletion warnings.
7346         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
7347         AC_COMPUTE_INT.
7349         * NEWS: Document change.
7351 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7353         * doc/autoconf.texi (Volatile Objects): New section.
7355         * NEWS: Document previous change.
7357 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7359         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
7360         Require that long long int be at least 64 bits wide.  C99 requires
7361         this and enough programs depend on it so we should check for it.
7362         Bruno Haible reports in
7363         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00286.html>
7364         that long long int is 32 bits wide with some nonstandard compilers.
7365         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
7367 2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7369         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
7370         to a nonexistent file, so that we don't have to worry about
7371         a local site configuration that doesn't use /usr/local.
7372         Problem reported by Keith Marshall in
7373         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00133.html>.
7375 2006-06-28  Paul Eggert  <eggert@cs.ucla.edu>
7377         * doc/autoconf.texi: Be more consistent about using @acronym with
7378         "HP" and "HP-UX".  Remove mention of OSF; the old version wasn't
7379         quite right (it talked about "OSF/Tru64", even though the
7380         operating systems were called OSF/1, Digital UNIX, and Tru64 UNIX,
7381         and it even mentioned "OSF 4"!) and at this point there's little
7382         reason to talk about OSF any more, since it died in 1994.
7383         (Specific Compiler Characteristics): Simplify example of
7384         negative-size array.
7385         (File Descriptors): Reorder to make the text flow better.
7386         Remove joke about "appreciate the various levels"; I didn't get it.
7387         Add remark about HP-UX sh -x bug with stderr noted by Bob Proulx in
7388         <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00225.html>.
7389         (File Descriptors, Limitations of Usual Tools):
7390         Tone down the advice against renaming or removing open files.
7391         (Limitations of Usual Tools): Add a new section, on 'rm'.
7393 2006-06-26  Stepan Kasal  <kasal@ucw.cz>
7395         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
7396         -lXt in LIBS, idea from Karsten Hopp; this was due since
7397         this change:
7399         2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
7400         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
7401         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
7402         (which belong to Xt, not X itself).  See Debian bug 327655.
7404 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7406         * configure.ac (AC_INIT): Bump to 2.60a.
7407         * NEWS: Update.
7409 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7411         Version 2.60.
7413         * configure.ac, NEWS: Update.
7415 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7417         * config/texinfo.tex: Sync from upstream.
7419         * bin/autom4te.in (handle_traces): Transform the `@S|@'
7420         quadrigraph correctly in traces.
7422         * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
7423         Fix typos.
7425         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
7426         datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
7427         not defined.
7428         * doc/autoconf.texi (Changed Directory Variables): New node,
7429         to document the whole `datarootdir' business a bit better.
7430         * NEWS: Update.
7431         * tests/torture.at (datarootdir workaround): Extend test.
7432         Prompted by report by Alexandre Julliard.
7434 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
7436         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
7437         when using default mode of IBM C 6 for AIX.  Problem and two-line
7438         fix reported by Larry Jones.
7440 2006-06-22  Alexandre Julliard <julliard@winehq.org>
7442         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
7443         about literal '${datarootdir}' if a definition is found in the
7444         output file.
7446 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7448         * NEWS: Use "M4" rather than "m4" when appropriate.
7449         Problem reported by Eric Blake.
7450         * doc/autoconf.texi: Likewise.
7451         Use @acronym around BSD, GCC, and GNU when appropriate.
7452         (Why GNU M4): Renamed from "Why GNU m4".
7453         (Redefined M4 Macros): Mention that Posix
7454         m4wrap takes only 1 argument, but GNU M4 1.4.x takes more.
7455         (Buffer Overruns): Mention size_t and ptrdiff_t as alternatives
7456         to int.
7458 2006-06-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7460         * bin/autom4te.in (handle_output): Do not forbid the empty
7461         pattern.
7462         * tests/tools.at (autoconf: the empty token): New test.
7464 2006-06-20  Stepan Kasal  <kasal@ucw.cz>
7466         * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
7467         calls, so that we do not care whether they are LIFO or FIFO;
7468         in the m4_wrap, do not check which diversion is the topmost
7469         one, just check that the stack is balanced at the end.
7470         * lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
7471         base diversion forever--pop the previous diversion before
7472         opening the new one; consequently, remove the m4_wrap call.
7473         * lib/autotest/general.m4 (AT_INIT): Likewise.
7474         * tests/m4sugar.at: Do not use
7475         m4_wrap([m4_diversion_pop([..])]), for educational purposes.
7477 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
7478         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7480         * NEWS: Document that m4wrap/m4_wrap might not be LIFO.
7481         * doc/autoconf.texi (Redefined M4 Macros): Likewise.
7482         Rework example of m4wrap token-pasting trouble so that it doesn't
7483         care whether it's LIFO or FIFO.
7484         Fix some "contrary to"s that are awkward in English.
7486 2006-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7488         * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
7489         to `yes' instead of `int$1_t' if the type is found, for more
7490         consistent configure output (where $1 is the number of bits).
7491         (_AC_TYPE_UINT): Likewise for `uint$1_t'.
7492         Suggested by Bruno Haible.
7494         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
7495         needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
7496         with system headers.  Report by Bruno Haible.
7498 2006-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7500         * config/config.guess, config/config.sub: Sync from upstream.
7502         * bin/Makefile.am (autoconf.in): Use `--melt' for autom4te,
7503         in order to avoid picking up an older installed frozen m4sh.m4f.
7504         Besides an outdated shell startup, this could have been created
7505         by an earlier M4 version with incompatible frozen file format.
7507 2006-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7509         * README: Recommend m4 1.4.4 instead of 1.4.3..
7510         * doc/autoconf.texi: Likewise.
7511         (Special Chars in Names): Say that $(.FOO) is portable, as
7512         suggested by Stepan Kasal.
7513         (Installation Directory Variables, Build Directories):
7514         (Automatic Remaking, Subdirectories, Fortran Compiler):
7515         (Making testsuite Scripts, Defining Directories):
7516         Quote variable usages better.
7517         (Making testsuite Scripts): Add clean-local rule to makefile
7518         snippet, by Eric Blake.
7519         (Installation Directory Variables): Fix table item font.
7520         Reword slightly to clarify.  Generalize advice about
7521         not using special characters to include all file-related
7522         vars, not just VPATH.
7523         (Special Chars in Variables): Warn about special characters in
7524         $(srcdir) too.
7525         (Assignments): Clarify default-value example as suggested by
7526         Ralf Wildenhues in
7527         <http://lists.gnu.org/archive/html/autoconf-patches/2006-06/msg00072.html>.
7528         (Special Shell Variables): Note leading ./ or ../, as suggested
7529         by Eric Blake.
7530         (Limitations of Builtins): Under cd, warn about CDPATH.
7531         (The Make Macro MAKEFLAGS): Untabify.  Problem reported by
7532         Ralf Wildenhues.
7534 2006-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7536         * doc/autoconf.texi (Configuration Actions): Remove duplicate
7537         `@var', for texi2html.
7538         (Systemology): Some more word wrapping, for DVI output.
7539         (autom4te Invocation): The short option for `--melt' is `-M',
7540         not `-m'.
7542 2006-06-15  Paul Eggert  <eggert@cs.ucla.edu>
7544         * doc/autoconf.texi: More formatting and English tweaks,
7545         many suggested by Ralf Wildenhues.
7546         Reword to avoid "@code{...}'s" and the like, since it's ugly
7547         with Emacs info mode.  discontents -> woes.
7548         Put a few "will"s back.  time stamp -> timestamp.
7549         side-effect -> side effect.
7551 2006-06-14  Paul Eggert  <eggert@cs.ucla.edu>
7553         * doc/autoconf.texi (Initializing configure, Shell Substitutions):
7554         Warn about $@ not persisting.  Problem reported by Julien Danjou in
7555         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372179>.
7556         (Special Chars in Names): Renamed from Leading _ in Macro Names.
7557         Mention other special chars, too.
7559 2006-06-14  Eric Blake  <ebb9@byu.net>
7561         * doc/autoconf.texi (The Make Macro MAKEFLAGS): New node.
7563 2006-06-13  Paul Eggert  <eggert@cs.ucla.edu>
7565         * doc/autoconf.texi: Some systematic minor improvements, as
7566         follows.  Use "makefile" when talking about makefiles
7567         generally (which might be named "makefile" or "Makefile" or even
7568         "foo.mk"), "Makefile" when talking about a specific makefile
7569         called "Makefile".  This unclutters the text from weird quotes
7570         (e.g., "`Makefile's" in info mode).  Similarly, use "@var{foo}
7571         values" rather than "@var{foo}s" and similar constructs containing
7572         "}s".  Use "Make rules" rather than "Makefile rules".  Minor
7573         English-language improvements.  Change the prefix "sub-" to "sub"
7574         and "re-" to "re".
7575         Put blank lines around examples more consistently.
7576         Avoid "rather" and "very" as intensifiers.
7577         Avoid "will" as an auxiliary.
7578         (Limitations of Make): Split this node into....
7579         (Portable Make, $< in Ordinary Make Rules, Failure in Make Rules):
7580         (Leading _ in Macro Names, Backslash-Newline-Newline):
7581         (Backslash-Newline Comments, Long Lines in Makefiles):
7582         (Macros and Submakes, The Make Macro SHELL, Comments in Make Rules):
7583         (obj/ and Make, make -k Status, VPATH and Make):
7584         (VPATH and Double-colon, $< in Explicit Rules):
7585         (Automatic Rule Rewriting, OSF/Tru64 Directory Magic):
7586         (Make Target Lookup, Single Suffix Rules, Timestamps and Make):
7587         New nodes, resulting from splitup of Limitations of Make.
7588         All cross-references changed.  Raise the top node from
7589         a section to a chapter, and all subnodes accordingly.
7590         Redo the introductory wording to match the new organization.
7591         (Installation Directory Variables): Use an example that is
7592         closer to what Autoconf actually does.  Mention that VPATH's
7593         value should not contain metacharacters or white space.
7594         (Fortran Compiler): Fix a VPATH bug in an example.
7595         (Leading _ in Macro Names): Mention that this problem is no longer
7596         of practical concern.
7597         (VPATH and Make): Reword the advice to make it clearer
7598         that Autoconf and Automake support VPATH in non-GNU make, but
7599         many packages have bugs in this area.
7600         ($< in Explicit Rules): Refer to Build Directories rather
7601         than using a (non-VPATH-safe) example.
7602         (Automatic Rule Rewriting): Mention the sort of disaster that
7603         can ensue with Solaris-style rule rewriting with VPATH.
7605 2006-06-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7607         * doc/install.texi (Compilers and Options): Weaken the
7608         suggestion to use GNU make for VPATH builds.
7610         * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
7611         AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
7613         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
7614         in regular expression.
7616 2006-06-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7618         * doc/autoconf.texi (Installation Directory Variables):
7619         Drop extra @samp from `@table @samp' item.
7620         (Limitations of Usual Tools): Comment fix.
7621         Do not nest @samp just to point to other table items.
7622         (Writing testsuite.at) <AT_CHECK>: The second argument to
7623         `@dvar' is already @samp'ed.
7624         (Making testsuite Scripts) <AC_CONFIG_TESTDIR>: Likewise,
7625         do not use @var in the second argument.
7627 2006-06-07  Paul Eggert  <eggert@cs.ucla.edu>
7629         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
7630         $as_shell.exe too.  Problem reported by Andreas Buening in
7631         <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
7633 2006-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7635         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
7636         `unused variable' compiler warning, for `-Wall -Werror'.
7637         Reported by Jaap Haitsma in
7638         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00012.html>.
7640 2006-06-06  Paul Eggert  <eggert@cs.ucla.edu>
7642         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
7643         case the compiler dumps core.  Problem reported for
7644         OpenServer 5.0.7 by Tim Rice in
7645         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
7646         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
7647         Likewise.
7649 2006-06-06  Tim Rice <tim@multitalents.net>.
7651         * lib/freeze.mk: Quiet check-forbidden-patterns so the string
7652         "ERROR" only shows up in "make check" output if there is an
7653         error.
7655 2006-06-06  Eric Blake  <ebb9@byu.net>
7657         * tests/tools.at (automatically allowed tokens): Fix typo.
7659 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
7661         * NEWS: Don't blame non-GNU VPATH compatibility issues on Automake.
7663         * doc/autoconf.texi (Integer Overflow): Mention that INT_MIN % -1
7664         typically overflows on x86 CPUs, even though the C standard
7665         requires otherwise.
7667 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7669         * configure.ac (AC_INIT): Bump to 2.59e.
7670         * NEWS: Update.
7672 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7674         Version 2.59d.
7676         * config/texinfo.tex: Sync from upstream.
7678         * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
7679         seen, invoke libtoolize with `--ltdl' argument.
7680         * lib/autom4te.in (Autoreconf-preselections): Adjust.
7681         * NEWS: Update.
7682         Suggested by Eric Blake.
7684 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
7686         * NEWS: Whoops!  AC_FUNC_STRNLEN isn't obsolescent.  Problem
7687         reported by Ralf Wildenhues.
7688         * doc/autoconf.texi (AC_FUNC_STRNLEN): Likewise.
7690 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7692         * THANKS: Update.
7694 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
7696         * doc/autoconf.texi: Modernize some of the references to Solaris.
7698 2006-06-05  Stepan Kasal  <kasal@ucw.cz>
7700         * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
7701         message issued by AC_REQUIRE.
7702         * tests/m4sugar.at: Check m4_require's error message.
7703         * tests/base.at: Check AC_REQUIRE's error message.
7704         * tests/local.at (AT_CHECK_M4): New macro, almost identical
7705         to...
7706         (AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
7707         AT_CHECK_M4.
7708         (AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
7709         `expout' as the last parameter.
7710         * tests/tools.at: Adapt to the above change.
7712 2006-06-04  Stepan Kasal  <kasal@ucw.cz>
7714         * doc/autoconf.texi (Limitations of Usual Tools): Correct
7715         information about race-free implementations of mkdir.
7717 2006-06-04  Eric Blake  <ebb9@byu.net>
7719         * bin/autoreconf.in (help): Document M4 environment variable.
7720         * bin/autoconf.as (Usage): Likewise.
7721         * bin/autom4te.in (help): Likewise.
7722         * doc/autoconf.texi (autom4te Invocation): Likewise.
7724 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
7726         * NEWS: GNU make now recommended for VPATH builds.
7727         Mention that some macros are now documented to be obsolescent.
7728         * doc/autoconf.texi:
7729         Prefer "current" to "modern" to describe
7730         currently-used (albeit perhaps old-fashioned) hosts.
7731         Mention which ancient features no longer need to be worried about.
7732         setgid -> set-group-ID
7733         setuid -> set-user-ID (these are the Posix terms)
7734         Fix some misuses of "only".
7735         (AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
7736         (AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
7737         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
7738         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
7739         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
7740         (AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
7741         (AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
7742         (AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
7743         (AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
7744         Mention that these macros are obsolescent.
7745         (Installation Directory Variables): shall -> should
7746         (File Descriptors): Mention that 0, 1, 2 might get reopened.
7747         Mention that it's now safe to use 3 and 4.
7748         (Limitations of Usual Tools): cp -r is now specified by Posix.
7749         Omit longwinded and obsolescent discussion of cp -f.
7750         Modernize discussion of expr, ls.
7751         (Limitations of Make): Modernize discussion of VPATH builds.
7752         Mention $? as a workaround in some cases.
7753         * doc/install.texi (Basic Installation):
7754         Mention "./configure; make; make install" first.  Be more
7755         specific about why this file is generic.  Remove unnecessary
7756         parens.  Remove misleading "only".  Remove obsolete advice
7757         about csh.  Don't say "configure" takes awhile; say it
7758         might take a while.  Suggest CFLAGS=-g rather than CFLAGS=-O2,
7759         and CC=c99 rather than CC=c89, as these are blessed by current
7760         Posix.  Recommend GNU make if doing a VPATH build.
7762 2006-06-03  Paul Eggert  <eggert@cs.ucla.edu>
7764         * doc/autoconf.texi: Use a consistent style "$ @kbd{...}" for
7765         examples involving shell prompts.
7767 2006-06-02  Stepan Kasal  <kasal@ucw.cz>
7768         and Paul Eggert  <eggert@cs.ucla.edu>
7770         * doc/autoconf.texi (Here-Documents): Add details about the
7771         pre-ksh93g bug.  Reword slightly to make it clearer.  Consistently
7772         use "here-documents" instead of "here documents".
7774 2006-06-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7776         * config/texinfo.tex, doc/standards.texi: Sync from upstream.
7778 2006-06-01  Paul Eggert  <eggert@cs.ucla.edu>
7780         * doc/autoconf.texi (File System Conventions): Warn about ":"
7781         anywhere in directory names.
7783 2006-05-31  Paul Eggert  <eggert@cs.ucla.edu>
7785         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be even more conservative
7786         about quoting the case statement, just in case.
7787         * doc/autoconf.texi (Here-Documents): Mention that the ksh bug
7788         was fixed in ksh93g; reported by Ralf Wildenhues.
7790 2006-05-31  Stepan Kasal  <kasal@ucw.cz>
7792         * doc/autoconf.texi (System Services): Do not document
7793         overriding EXEEXT via ac_cv_exeext=ext.
7794         (Particular Programs) <AC_PROG_MKDIR_P>:
7795         Document that ${MKDIR_P} understands --.
7796         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Improve the
7797         comment.
7799 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7801         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Guard against test
7802         argument with leading hyphen.  Problem reported by Paul Eggert.
7804 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
7806         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be more conservative
7807         about quoting ac_try: quote all of it, if any of it seems suspicious.
7808         This means we don't have to worry about ${ or sed any more.
7809         Also, double-quote the case statement, to work around misuses via
7810         underquoting as reported by Ralf Wildenhues in
7811         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00169.html>.
7812         (_AC_EVAL_STDERR): Revert, since evidently some packages rely on this
7813         undocumented and dangerous macro.
7814         Problem reported by Ralf Wildenhues in
7815         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00168.html>.
7817 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7819         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Check whether
7820         `dirname -- /' returns `/', for SunOS dirname scripts that escaped.
7821         Report by Sam Sirlin <sam@kalessin.jpl.nasa.gov>.
7823 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
7825         * lib/autoconf/general.m4: Revert AC_TRY_EVAL and AC_TRY_COMMAND,
7826         since evidently some packages rely on the old, broken behavior.
7827         Problem reported by Ralf Wildenhues in
7828         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00160.html>.
7829         (AC_TRY_EVAL, AC_TRY_COMMAND, _AC_EVAL): Go back to the
7830         pre-2006-05-26 definitions, but leave in the comments that
7831         these macros are dangerous and should not be used.
7832         (_AC_DO_ECHO): Renamed from _AC_EVAL_ECHO.  All callers changed.
7833         (_AC_DO): Renamed from _AC_EVAL.  All callers changed.
7834         (_AC_DO_STDERR): Renamed from _AC_EVAL_STDERR.  All callers changed.
7835         (_AC_DO_VAR): Renamed from AC_TRY_EVAL.
7836         (_AC_DO_TOKENS): Renamed from AC_TRY_COMMAND.
7838 2006-05-29  Paul Eggert  <eggert@cs.ucla.edu>
7840         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
7841         the use of 'tr', since this is our only use of 'tr'.
7843 2006-05-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7844         and Paul Eggert  <eggert@cs.ucla.edu>
7846         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
7847         Don't assume 'grep' works on long lines, since AIX grep doesn't.
7849 2005-05-28  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7851         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on
7852         the output file in the `${datarootdir}' test.
7854 2005-05-28  Stepan Kasal  <kasal@ucw.cz>
7855         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7857         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If we have not seen
7858         mention of `datarootdir' in the input file(s), but literal
7859         `${datarootdir}' in the output file, and we haven't warned yet,
7860         then warn as well: the user may have (erroneously) used
7861         `AC_SUBST([mydatadir], [$datadir/my])' instead of the correct
7862         `AC_SUBST([mydatadir], ['${datadir}/my'])'.
7863         * tests/torture.at (datarootdir workaround): Extend this test.
7864         * NEWS: Update.
7866 2006-05-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7867         and Paul Eggert  <eggert@cs.ucla.edu>
7869         * doc/autoconf.texi (autoheader Invocation): The first argument to
7870         `AC_DEFINE_UNQUOTED' need not be a literal.  Mention the
7871         alternatives and clear up the language a bit.
7873 2006-05-27  Paul Eggert  <eggert@cs.ucla.edu>
7875         * NEWS: Reword notice for AC_TRY_COMMAND, AC_TRY_EVAL,
7876         ac_config_guess, ac_config_sub, ac_configure.
7877         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
7878         Fix typo that prevented an unnecessary space from being removed.
7879         Problems reported by Ralf Wildenhues in:
7880         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00143.html
7882 2006-05-26  Paul Eggert  <eggert@cs.ucla.edu>
7884         * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
7885         Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
7886         Don't use the term "thread-safe" to talk about mkdir race
7887         conditions, since the problem is more a process than a thread
7888         issue.  Problem reported by Stepan Kasal in:
7889         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
7890         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
7891         the test for 'install' more closely.  Look at MKDIR_P first.
7892         Look in the PATH, and at /opt/sfw/bin.
7893         Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
7894         Don't bother to try mkdir -p, since we already check mkdir --version;
7895         just look at the version number.  (There's no easy way to check
7896         for race-free implementations.)
7897         * tests/tools.at (autoconf: subdirectories): Adjust to above
7898         changes, since MKDIR_P now might end in "/mkdir -p".
7900         * doc/autoconf.texi (autoheader Invocation): Mention that the
7901         first arg of AC_DEFINE_UNQUOTED must be a literal.
7902         Problem reported by Ben Pfaff in
7903         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00090.html>.
7905         * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
7906         * doc/autoconf.texi (Special Chars in Variables): New section.
7907         (Preset Output Variables): Warn about special chars in CPPFLAGS.
7908         (Installation Directory Variables): Quote $(datadir) better.
7909         (Limitations of Builtins): Describe some of eval's trickiness.
7911         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
7912         * lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
7913         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
7914         in front of every arg, not just trailing args.  Quote apostrophes.
7915         (_AC_EVAL_ECHO): New macro.
7916         (_AC_EVAL, AC_EVAL_STDERR): Use it.  Quote arg of eval.
7917         (AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
7918         removed.
7919         (_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
7920         exposed by quoting of eval argument.  Put the command on line line
7921         so it logs better.
7922         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
7923         (_AC_PATH_X, AC_PATH_X): Quote more safely.
7924         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
7925         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
7926         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
7927         Handle special chars in prefix, ac_srcdir, ac_aux_dir.
7928         Use eval more safely.
7929         (_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
7930         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
7931         to be replaced.
7932         * tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
7933         lines, exposed by quoting of eval argument.
7935 2006-05-26  Stepan Kasal  <kasal@ucw.cz>
7936         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7938         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
7939         initialization of `ac_cv_exeext', do not override it if it was
7940         already set, unless it was set to `no', for compatibility with
7941         Autoconf-2.13, and comment this.
7942         Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
7943         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
7944         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
7945         * doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
7946         Document that this test may be overridden by setting
7947         `ac_cv_exeext'.
7949 2006-05-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7951         Revert these two patches:
7953         2006-04-06  Eric Blake  <ebb9@byu.net>
7954         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
7955         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
7956         2006-04-01.
7958         2006-04-01  Stepan Kasal  <kasal@ucw.cz>
7959         Clean up _AC_COMPILER_EXEEXT* macros.
7960         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
7961           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
7962           ac_file to the name of the default output file and call
7963           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
7964           initial `rm' of the candidate files...
7965         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
7966           the same list in subsequent `rm' calls, and for the temporary
7967           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
7968           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
7969         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
7970         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
7971           no longer needed) by libtool.  Make it a cache check.
7972         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
7973           copied here by mistake.
7974         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
7975           _AC_COMPILER_EXEEXT.
7976         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
7977           _AC_COMPILER_OBJEXT directly.
7978         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
7980 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7982         * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
7983         Fix description of how the buggy `sed' works.
7985 2006-05-25  Noah Misch  <noah@cs.caltech.edu>
7987         Sync from Automake:
7989         * lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
7990         ENOLCK.  Only mention `make -j' when applicable.  Only raise
7991         fatal errors when `make -j' is involved.  Improve error message.
7993 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7995         * doc/autoconf.texi (Here-Documents): We now know more about
7996         the variable expansion in here documents bug.
7997         Thanks to Tim Rice and Stepan Kasal.
7999         * doc/autoconf.texi (Making testsuite Scripts): Add an example
8000         how to use TESTSUITEFLAGS.  Suggested by Eric Blake.
8002 2006-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8004         * tests/autotest.at (Multiline command from M4 expansion):
8005         No failure to be expected if the shell quotes newlines in
8006         commands in the `set -x' output.  Report by Tim Rice.
8007         * THANKS: Update.
8009 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
8011         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
8012         expansion in the here-documents used by config.status, as that
8013         runs afoul of the Korn shell version M-12/28/93d bug described in
8014         the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
8015         fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
8016         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
8018 2006-05-23  Jim Meyering  <jim@meyering.net>
8020         * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
8021         Fix typo introduced with 2006-04-02 change.  It reversed the sense
8022         of the test.
8024 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
8026         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
8027         ac_dB slightly, to save bytes in the script.
8028         Max out at 50 lines, rather than 96; this is more likely
8029         (though not guaranteed) to avoid obscure 'sed' failures.
8031 2006-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8033         * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
8034         `tr -d -' as bad option argument.  Work around this by deleting
8035         an unrelated character.
8036         Report by Tim Rice <tim@multitalents.net>.
8038 2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>,
8039             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
8040             Stepan Kasal  <kasal@ucw.cz>
8042         * doc/autoconf.texi (Particular Programs): Do not promise that
8043         we always prefer the GNU version of the program, and that we
8044         search according to PATH; both rules can have exceptions.
8045         Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
8046         AC_PROG_SED.  Move descriptions of limitations
8047         to the Limitations of Usual Tools section.
8048         (Limitations of Usual Tools) <sed>: Mention script length
8049         limitations with Solaris /usr/ucb/sed.
8050         <grep>: Fix wording for empty alternative.  Mention that -c and
8051         -l should not be combined, and that -E and -F should not be
8052         combined.
8054 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
8055         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8057         * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
8058         limits in Solaris 8 /usr/ucb/sed by testing a long script.
8060 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
8062         * doc/autoconf.texi (Defining Symbols): Literal parameter of
8063         AC_DEFINE is now passed to m4_pattern_allow.
8064         * NEWS: Mention that; likewise for AC_SUBST.
8065         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
8066         the parameter to m4_pattern_allow.
8067         * tests/tools.at: Add a check for that.
8069 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
8071         * lib/autoconf/status.m4: Fix typos.
8073 2006-05-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8075         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
8076         only the files that this macro generates.
8078 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
8080         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
8081         the HP-UX sed limitation of 99 commands, labels do not count.
8082         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
8083         in the comment.
8084         (_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
8086 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
8088         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
8089         Import the following fix from coreutils:
8091         2006-01-13  Jim Meyering  <jim@meyering.net>
8093         Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
8094         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
8095         not double-quote uses of that variable, to accommodate the rare
8096         case in which getmntent is available in none of the libraries
8097         checked.  This happens at least on FreeBSD 5.0.
8099 2006-05-20  Paul Eggert  <eggert@cs.ucla.edu>
8101         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
8102         ac_config_guess, ac_config_sub, and ac_configure, since evidently
8103         some other programs unwisely rely on these undocumented vars.
8104         But put in warning comments about them.
8105         Problem reported by Ralf Wildenhues in
8106         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
8107         * NEWS: Document that these variables are intended to go away.
8109 2006-05-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8111         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
8112         and set the language to C++ (analogous to the equivalent Fortran
8113         tests).
8115         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
8116         * doc/autoconf.texi (C++ Compiler): Document it.
8117         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
8118         * NEWS: Update.
8120 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8122         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
8123         that caused config.status to generate 100-command sed scripts; the
8124         portable limit is 99.
8126 2006-05-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8128         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
8129         variable `ac_d' instead of `d' to avoid infringing namespace.
8130         Report by Ralf Menzel.
8132 2006-05-18  Paul Eggert  <eggert@cs.ucla.edu>
8134         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
8135         $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
8136         * tests/tools.at (autoconf: subdirectories): New test, taken from
8137         the corresponding problem report by Ralf Wildenhues in:
8138         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
8140         * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
8141         Quote some uses of shell variables if they might suffer unexpected
8142         globbing.  This doesn't fix all instances of quoting problems that
8143         I found, just the easy ones that look safe.
8144         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
8145         (AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
8146         (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
8147         (AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
8148         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
8149         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
8150         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
8151         Likewise.
8152         * lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
8153         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
8155 2006-05-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8157         * bin/autoreconf.in ($help): Reword according to the manual.
8158         Suggested by Olly Betts.
8160 2006-05-17  Olly Betts  <olly@survex.com>  (tiny change)
8161         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8163         * bin/autoreconf.in: Pass the directory argument to
8164         `require_configure_ac'.  Fix comment.
8165         * tests/torture.at (Configuring subdirectories): Expose this.
8166         Reported by Olly Betts.
8168 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8170         * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
8171         lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
8172         Automake as follows:
8174         * lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
8175         `$configure_in' instead of `configure.in', to preserve
8176         directory component.
8178 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8180         * config/config.guess, config/config.sub, config/texinfo.tex,
8181         doc/make-stds.texi, doc/standards.texi: Sync from upstream.
8183 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
8185         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
8186         test for C99 conformance; (bool) 0.5 is an integer constant
8187         expression, but (bool) -0.5 is not.  Problem reported by Fedor
8188         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
8190 2006-05-13  Paul Eggert  <eggert@cs.ucla.edu>
8192         * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
8193         sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
8194         Warn about obsolete install-sh files.  Remove stray sentence
8195         fragment and fix cross reference.
8196         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
8197         install -d; this undoes the 2006-05-10 change.
8198         (MKDIR_P): Mark with AN_MAKEVAR.
8199         (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
8200         that we don't require $INSTALL to be thread-safe.  Move comments
8201         out of generated code.  Require AC_CONFIG_AUX_DIR_DEFAULT instead
8202         of AC_PROG_INSTALL.  Output a message saying that we're checking
8203         mkdir -p.  Set MKDIR_P rather than mkdir_p.  Do special magic for
8204         MKDIR_P instead of AC_SUBST.
8205         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
8206         Special magic for MKDIR_P, too.
8207         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
8208         a dnl.
8209         * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
8211 2006-05-11  Paul Eggert  <eggert@cs.ucla.edu>
8213         Sync from Automake, as follows:
8215         2006-05-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8216         * config/install-sh: Initialize IFS, so field splitting isn't
8217         turned off later.
8218         * config/mkinstalldirs: Likewise.
8219         * config/missing: Remove superfluous quotes.  Replace all uses of
8220         `[' by `test', for consistency, and for..
8221         * config/missing (sed_minuso, sed_output): New variables.
8222         (autom4te, help2man, makeinfo): Use them.  Unifies detection of
8223         `-o FILE', `--output FILE', `--output=FILE', stricter regex.
8224         Fixes `missing' to detect `--output' for help2man.  Fixes
8225         PR automake/483.  Report by Dennis J. Linse.
8226         (autom4te): Document in `missing --help'.
8228 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8230         * NEWS: New macro AC_PROG_MKDIR_P.  AS_MKDIR_P is now more robust.
8231         * config/install-sh: Don't use 'path' to talk about file names,
8232         as per GNU coding standards.  Close a race condition reported by Ralf
8233         Wildenhues and Stepan Kasal.  There is still a race condition
8234         on hosts that predate Posix 1003.1-1992, but we can't help this.
8235         Don't mishandle weird characters like space on pre-Posix hosts.
8236         Invoke mkdir at most once per dir arg on pre-Posix hosts.
8237         * doc/autoconf.texi (Programming in M4sh): Cross-reference to
8238         AC_PROG_MKDIR_P from AS_MKDIR_P.
8239         (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
8240         from mkdir.  Mention that Autoconf 2.60 install-sh is safe but
8241         earlier editions are not (including Automake 1.8.3).
8242         Do not suggest mkinstalldirs for thread-safety.
8243         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
8244         that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
8245         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
8246         presence of special characters and race conditions.
8247         * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
8248         in Autoconf's name space.
8250 2006-05-10  Bruno Haible  <bruno@clisp.org>
8251         and Paul Eggert  <eggert@cs.ucla.edu>
8253         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
8254         from Automake with minor changes.
8255         * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
8257 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8259         * config/install-sh: Update to Automake CVS version, as follows:
8260         2006-04-25  Stepan Kasal  <kasal@ucw.cz>
8261         * lib/install-sh: Simplify the expr implementation of dirname.
8262         2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8263         * lib/install-sh: Handle --, and diagnose unknown options.
8265 2006-05-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8267         * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
8268         `./autom4te' to create `./testsuite', since the `all' target
8269         will ensure its presence, but `installcheck' should not create
8270         the uninstalled wrappers.
8272         * tests/torture.at (Unusual Automake input files): Skip if we
8273         detect automake < 1.8.
8275 2006-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8277         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
8278         is set to `no', then that overrides and sets ac_cv_prog_cc_c89
8279         and ac_cv_prog_cc_c99 to `no', for backward compatibility.
8280         * NEWS: Update.
8282 2006-05-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8284         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
8285         munge (multiple) white space and other oddities.
8286         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
8287         single quotes in variable assignment.
8288         (AC_ARG_VAR, configure invocation): Adjust tests to expose this
8289         and similar failures by adding multiple spaces, tabs, and other
8290         special characters.
8291         Report and different test suggested by Francesco Romani
8292         <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
8294         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
8295         single quotes, we only need to search for single quotes; this
8296         both simplifies the search pattern, and makes us less
8297         susceptible to `echo' variations for arguments not containing
8298         single quotes.
8299         (_AC_ARG_VAR_VALIDATE): Likewise.
8301 2006-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8303         * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
8304         `$*' and IFS concatenation issue with traditional shells and
8305         bash-2.04.  Report by Seanster@Seanster.com.
8307 2006-05-03  Bruno Haible  <bruno@clisp.org>
8309         * doc/autoconf.texi (Limitations of Usual Tools): Identify more
8310         precisely which Mac OS X versions have the od problem.
8312 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8314         * doc/autoconf.texi: Use @option systematically.
8316 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8317         and Bruno Haible  <bruno@clisp.org>
8319         * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
8320         about 'od'.
8321         (Integer Overflow): Mention the special case of integer division
8322         overflow.
8324 2006-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8326         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
8327         traditional shells like the Solaris one that do not use the
8328         first IFS character for assembling `$*'.
8329         Prompted by a related report from autoconf_bug@nro.ca.
8331 2006-05-01  Paul Eggert  <eggert@cs.ucla.edu>
8332         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8334         * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
8335         Mention more problems with the -e option.
8337 2006-04-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8339         * NEWS: Typo.
8340         * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
8342         * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
8343         in URLs to improve DVI formatted output (requires texinfo 4.6).
8344         (System Services, Systemology, Shellology): Likewise.
8345         (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
8346         output.
8348         * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
8349         continuous text.
8350         (Runtime): Fix macro argument names to match description:
8351         `action-if-found' -> `action-if-true' and similarly.
8352         (Obsolete Macros): Likewise.
8353         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
8354         (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
8355         (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
8357 2006-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8359         * doc/autoconf.texi (Limitations of Make): Clean up markup.
8361         * ChangeLog: Typo.
8362         * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
8363         DVI output.
8365 2006-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8367         * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
8368         /bin/sh set unsorted output.
8369         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
8370         * tests/local.at: Likewise.
8372 2006-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8374         * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
8375         (Integer Overflow, Null Pointers, Buffer Overruns):
8376         (Floating Point Portability, Exiting Portably): New sections.
8377         (Writing Test Programs): Fix some langauge.  Recommend exiting
8378         with status 1, not merely nonzero.  Clarify exit declaration.
8379         (Run Time): Move C exit status stuff to new Exiting Portably section.
8380         (Systemology): Mention Posix and levenez.  Update v7 reference.
8381         (Portable Shell): Mention the Posix shell.
8383 2006-04-25  Stepan Kasal  <kasal@ucw.cz>
8385         * bin/autoconf.as (me): Replace by as_me.
8387 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8389         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
8390         since as_me isn't set yet.
8392 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8394         Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
8395         a few minor bugs in this area.
8397         * doc/autoconf.texi (Programming in M4sh): Comment out the
8398         documentation of AS_BASENAME, for now.
8399         (Shell Substitutions): Do not use AS_DIRNAME in an example.
8400         (Limitations of Builtins) <basename>: Do not refer to
8401         AS_BASENAME.
8402         * bin/autoconf.as (me): Don't use AS_BASENAME.
8403         (dir): Remove the unused variable.
8404         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
8405         AS_DETECT_REQUIRED.  All uses changed.
8406         (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
8407         All uses changed.
8408         (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
8409         (AS_BASENAME): Use "basename --" to protect against leading "-".
8410         (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR.  All uses changed.
8411         (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED.  All uses changed.
8412         (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
8413         (_AS_DIRNAME_PREPARE): Likewise.
8414         (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR.  All uses changed.
8415         (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED.  All uses changed.
8416         (AS_DIRNAME): Use "dirname --".
8418 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8420         * doc/autoconf.texi (Runtime): Renamed from "Run Time".  All uses
8421         of "run time" and "run-time" changed to "runtime", for consistency.
8422         * lib/autoconf/fortran.m4: Likewise (in comment).
8423         * lib/autoconf/functions.m4: Likewise.
8424         * lib/autoconf/general.m4: Likewise.
8425         * lib/autoconf/headers.m4: Likewise.
8427         * doc/autoconf.texi (Run Time): Document the exit status situation
8428         with more accuracy and detail.
8430 2006-04-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8432         * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
8433         Archive is not officially `GNU' any more.  Update URL.
8434         (Defining Directories): Likewise
8435         * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
8437 2006-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8439         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
8440         newline from the `trap' code to finish `config.log'; the NetBSD
8441         /bin/sh resets the exit status after an empty command, as
8442         documented in doc/autoconf.texi.
8443         Reported by Dalibor Topic <robilad@kaffe.org>.
8445 2006-04-19  Paul Eggert  <eggert@cs.ucla.edu>
8447         * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
8448         Suggested by Bruno Haible.
8450 2006-04-18  Paul Eggert  <eggert@cs.ucla.edu>
8452         * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
8453         some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
8454         Instead, just list the shells that we know work.
8455         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg.  All uses
8456         changed.  Be more cautious about the _cv_ variable.
8457         * tests/tools.at (Syntax of the shell scripts): Check the
8458         _cv_ variable once, at first, to avoid an internal autoconf error
8459         when sh -n does not work.
8461 2006-04-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8463         * lib/Autom4te/FileUtils.pm: Sync from Automake.
8465 2006-04-16  Paul Eggert  <eggert@cs.ucla.edu>
8467         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
8468         use ">&-" since we're only 99.999% sure that this is portable,
8469         and since the MinGW bug is fixed in a different way.
8470         * lib/autotest/general.m4 (AT_INIT): Likewise.
8472 2006-04-16  Stepan Kasal  <kasal@ucw.cz>
8474         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
8475         before opening config.log, to avoid hitting a bug on MinGW.
8477 2006-04-14  Paul Eggert  <eggert@cs.ucla.edu>
8479         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
8480         AS_MESSAGE_LOG_FD before reopening it onto the log file.
8481         This works around a MinGW bug reported by Eric Paire.
8482         Make sure that all writes to the log file append to it,
8483         rather than possibly losing data.
8484         * lib/autotest/general.m4 (AT_INIT): Likewise.
8486 2006-04-14  Stepan Kasal  <kasal@ucw.cz>
8488         * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
8489         description.
8491 2006-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8493         * NEWS: Update.
8495         * configure.ac (AC_INIT): Bump to 2.59d.
8497 2006-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8499         Version 2.59c.
8501         * Makefile.maint (news-date-check): Do not require a leading `*'
8502         before the release date in NEWS.
8504 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
8505         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8507         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
8508         the instantiated file do not contain the string 'datarootdir'
8509         but contain @datadir@, @docdir@, @infodir@, @localedir@, or
8510         @mandir@, replace the reference '${datarootdir}' by the value.
8511         * tests/torture.at (datarootdir workaround): New test.
8512         * NEWS: Advertise this temporary fixup.
8513         Based on a patch by Bruno Haible, reported and analyzed by
8514         Paul Eggert and Noah Misch.
8516 2006-04-12  Eric Blake  <ebb9@byu.net>
8518         * tests/autotest.at (Debugging a failed test): Fix comment.
8520 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
8522         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
8523         all the changes since 2006-04-07.
8525 2006-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8527         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
8528         succeeded, but `ln -s file dir' failed, take care to remove the
8529         leftover target before the next test, to prevent its spurious
8530         failure; also make sure `ln file dir' works before selecting it.
8531         Thanks to Keith Marshall for pointing this out.
8532         * THANKS: Update.
8534         * lib/autotest/general.m4 (AT_INIT): Store quoted variable
8535         assignments in `at_debug_args', so that we put them correctly
8536         in the `run' script.
8537         * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
8538         Reported by Eric Blake.
8540 2006-04-11  Eric Blake  <ebb9@byu.net>
8542         * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
8543         top-level tests after micro-suite has been run.   Used in...
8544         (Debugging a successful test, Debugging script and environment),
8545         (Debugging a failed test): ...these new tests.  The first of these
8546         is fixed by...
8547         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
8548         macro, split out from...
8549         (AT_INIT): ...here, so that using -d also generates a run script.
8550         Document that -d inhibits top-level logging.
8551         * doc/autoconf.texi (testsuite Invocation): Document that -d only
8552         inhibits top-level logging; debug scripts are created.
8554         * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
8555         check.
8556         * tests/autotest.at (Empty test, Empty check): New test to check it.
8558         * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
8559         from gcc.
8561 2006-04-10  Stepan Kasal  <kasal@ucw.cz>
8563         * tests/mktests.sh: Use "trap '' 0", not "trap 0".  Do not touch
8564         the files if a problem appears.  Make the empty *.at files
8565         read-only, too.  Proposed by Ralf Wildenhues.
8567 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8569         * config/Makefile.am: Add comment to force updated Makefile.in.
8571         * lib/freeze.mk: Fix typo in comment.  Unlike the last, white
8572         space only patch to this file, this patch causes the Makefile.in
8573         files that include freeze.mk to be updated, and thus have a
8574         newer time stamp again, which in turn makes a pristine CVS
8575         checkout have correct time stamps.
8577         * Makefile.maint (cvs-sv): New macro, to be used..
8578         (config.guess-url_prefix, config.sub-url_prefix)
8579         (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
8580         point to CVS text checkout of Gnulib files.
8581         (copyright-check): Bump current year.
8582         (announcement): Do not hard-wire `./announce-gen'.
8583         (cvs-update): Propagate failures of `cvs' and `move-if-change'
8584         correctly.
8585         * Makefile.cfg (executable-update): Use `chmod a+x' instead of
8586         `chmod +x'.
8587         (wget_files): Update config.guess, config.sub, texinfo.tex by
8588         `wget-update', now that their URLs work again.
8590 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
8592         * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
8593         Problem noted by Paul D. Smith.
8595 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8597         * doc/autoconf.texi: Remove unused words from word list.
8598         * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
8599         .x-sc_trailing_space: New files.
8601         * doc/standards.texi: Sync from gnulib.
8603         * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
8604         `LIBOBJDIR' as experimental.
8606         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
8607         with a target directory; it's internally implemented as `cp'
8608         anyway, but since Autoconf advertises the possibility to use
8609         a target directory when LN_S is `ln -s', we need to find out.
8610         Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
8611         analyzed by Keith Marshall <keith.marshall@total.com>.
8613         * THANKS: Update.
8615 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
8617         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
8618         confdefs.h as-is.  In general, if it has backslash-newline or the
8619         like, then it doesn't work either to sort or to remove empty
8620         lines.
8622 2006-04-09  Stepan Kasal  <kasal@ucw.cz>
8624         * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
8626 2006-04-09  Alexandre Duret-Lutz  <adl@gnu.org>
8628         * lib/autom4te.in (Automake-preselections): Preselect
8629         _AM_SUBST_NOTMAKE.
8631 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8633         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
8634         apostrophe within a single-quoted string, as this is the usual
8635         tradition and is easier to read than '"'"'.  Don't rely on the
8636         shell treating "$/" like '$/'.  Use a more-consistent indenting
8637         style for the trap.
8639 2006-04-09  Eric Blake  <ebb9@byu.net>
8641         * tests/autotest.at (Backquote command substitution),
8642         (Multiline backquote command substitution): Remove mistaken
8643         AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
8644         applied...
8645         (Parenthetical command substitution, Multiline parenthetical
8646         command substitution): here.
8648 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8650         Import macros from gnulib (often changing their name).
8652         * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
8653         New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
8654         AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
8655         AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
8656         AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
8657         AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
8658         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
8659         AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
8660         AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
8661         AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
8662         The manual mentions Gnulib more prominently.
8663         * doc/autoconf.texi (Gnulib): New node.
8664         (Pointers): Add Gnulib URL.
8665         (Particular Functions): Alphabetize.  Add AC_FUNC_STRTOLD.
8666         (Generic Functions): Add AC_CHECK_FUNCS_ONCE.  Refer to new
8667         Gnulib section.
8668         (Particular Headers): Add AC_HEADER_ASSERT.  For stdbool.h,
8669         suggest a #define rather than a typedef for _Bool, and mention
8670         Gnulib rather than trying to substitute stdbool code.
8671         (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
8672         (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
8673         (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
8674         AC_STRUCT_DIRENT_D_TYPE.
8675         (Particular Types): Mention stdint.h and inttypes.h as standard
8676         headers too.
8677         Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
8678         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
8679         AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
8680         AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
8681         AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
8682         (C Compiler): Move AC_C_LONG_DOUBLE to ...
8683         (Obsolete Macros): here.  Under AC_LONG_DOUBLE, mention
8684         AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
8685         (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
8686         (Coding Style).  Don't mention m4_expand_once.
8687         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
8688         AC_TYPE_LONG_DOUBLE_WIDER.  Now obsolete.
8689         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
8690         (AC_CHECK_FUNCS): Use it.
8691         (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
8692         (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
8693         * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
8694         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
8695         (AC_HEADER_ASSERT): New macro.
8696         (AC_HEADER_STDBOOL): Don't assume "#error" works.
8697         Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
8698         Catch a bug in an HP-UX C compiler.
8699         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
8700         * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
8701         (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
8702         (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
8703         (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
8704         (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
8705         New macros.
8707         * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
8708         use /^foo|bar$/, it does not mean /^(foo|bar)$/.
8710 2006-04-08  Stepan Kasal  <kasal@ucw.cz>
8712         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
8713         of the warning introduced by the 2001-08-28 change.
8715 2006-04-08  Stepan Kasal  <kasal@ucw.cz>,
8716             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8718         * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
8719         variables shall be overriden by the cache.
8720         * tests/torture.at (AC_ARG_VAR): Test also with a first value
8721         that contains braces.
8723 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
8725         Revert the patch from 2006-04-01 and only improve
8726         _AS_DETECT_BETTER_SHELL:
8728         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
8729         skip nonexistent directories.
8730         (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
8731         only shell candidates which exist.
8732         (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
8733         * lib/autotest/general.m4 (AT_INIT): No need to give three
8734         parameters to _AS_PATH_WALK.
8736 2006-04-07  Stepan Kasal  <kasal@ucw.cz>,
8737             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8739         * bin/autoupdate.in (handle_autoconf_patches): Change the way we
8740         distinguish m4sugar macros.
8741         * tests/tools.at (autoupdating with aclocal and m4_include):
8742         New test.  Bug reported by Gary V. Vaughan <gary@gnu.org>,
8743         test case by Noah Misch <noah@cs.caltech.edu>.
8745 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
8747         Revert my change from 2006-03-17, in other words:
8748         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
8749           and DUALCASE=1.
8750         (AS_SHELL_SANITIZE): Remove DUALCASE=1.
8751         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
8752           it is set.
8754 2006-04-07  Eric Blake  <ebb9@byu.net>
8756         * doc/autoconf.texi (Programming in M4sh): Document that
8757         AS_MKDIR_P exits the script on failure.
8758         * lib/autotest/general.m4: Remove redundant AS_ERROR.
8760 2006-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8762         * config/elisp-comp, config/install-sh, config/mdate-sh,
8763         config/missing, config/mkinstalldirs: Sync from Automake.
8765         * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
8766         from Automake.
8768         * doc/make-stds.texi: Sync from gnulib.
8770 2006-04-06  Eric Blake  <ebb9@byu.net>
8772         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
8773         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
8774         2006-04-01.
8776 2006-04-06  Stepan Kasal  <kasal@ucw.cz>,
8777             Eric Blake  <ebb9@byu.net>,
8778             Paul Eggert  <eggert@cs.ucla.edu>,
8779             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8781         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
8782         whether `set' quotes correctly: redirect stderr of the tested
8783         `set', and use a subshell, for Ultrix; use `sed' instead of
8784         `grep' for zsh `set' which may write binary output; match only
8785         at the beginning of a line, to avoid false positives.
8786         In order to avoid false positives by unrelated variables with
8787         multiline content, put the dump algorithm in a subshell and
8788         unset all variables containing newlines (except some which are
8789         special to the shell).  Warn about cache variables that are
8790         unset.
8792 2006-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8794         * config/config.guess, config/config.sub, config/texinfo.tex:
8795         Sync from upstream.
8797         * tests/mktests.sh: Reword comments.
8799         * tests/mktests.sh: Only skip internal macros starting with
8800         `_AC_' or `__AC_'.  Noted by Stepan Kasal.
8801         Update exclusion lists for the test suite to this end:
8802         (AC_ARG_VAR): Do test this now.
8803         (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
8804         (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
8805         (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
8806         (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
8808         * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
8809         shell issue with double-quoted command substitutions of native
8810         commands.
8811         Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
8812         Marshall.
8814         * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
8815         no file matches the glob, discard the warning, set `nullglob'.
8816         (syntax-check): Likewise.
8817         (sc_cast_of_x_alloc_return_value): Likewise.
8818         (sc_cast_of_alloca_return_value, sc_error_exit_success)
8819         (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
8820         (m4-check): Likewise.
8821         (sc_system_h_headers): Do not print rule on execution.
8822         (sc_tight_scope): Do not fail for non-existing `src' directory.
8823         (sc_changelog): Skip the Copyright footer.
8824         * lib/autoconf/lang.m4: Remove trailing space.
8826         * lib/autoconf/status.m4: More replacements to
8827         <tab><space> where this makes sense.
8829 2006-04-06  Stepan Kasal  <kasal@ucw.cz>
8831         * tests/Makefile.am (maintainer-check-posix):
8832           s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
8834         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
8835           ac_config_<foo>s again, sometimes normalized, sometimes not.
8836         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
8837         (AC_CONFIG_COMMANDS): Do not do so here.
8838         (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
8839           and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
8840           2005-07-25 rewrite.  Noticed by Noah Misch.
8842         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
8843           _AC_PRESERVE_HELP_ORDER, ...
8844         (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
8846         * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
8847           inside m4_expand_once; it is redundant.
8849         * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
8850           for --help from Cygnus `configure.'
8852 2006-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8854         * doc/autoconf.texi (C Compiler): Warn about #error.  Follows up
8855         on a patch proposed by Ralf Wildenhues.
8857 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
8859         * lib/autoconf/status.m4: Replace <space>''<tab> with
8860         <tab><space> where this makes sense.
8862 2006-04-05  Howard Chu  <hyc@highlandsun.com>  (trivial change)
8863             Noah Misch  <noah@cs.caltech.edu>
8865         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
8866         (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
8867         * doc/autoconf.texi (Help Formatting): New node.
8868         * NEWS: Announce AC_PRESERVE_HELP_ORDER.
8870 2006-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8872         * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
8873         lib/autoconf/specific.m4, lib/autoconf/status.m4,
8874         lib/autoconf/types.m4, lib/autotest/general.m4,
8875         tests/mktests.sh, tests/torture.at: White space cleanup:
8876         remove some SPACE before TAB, or add quoting ('' or @&t@).
8878         * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
8880         * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
8882 2006-04-05  Eric Blake  <ebb9@byu.net>
8884         * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
8885         empty test suite works.
8886         * tests/autotest.at (Empty test suite): Remove xfail.
8888 2006-04-05  Noah Misch  <noah@cs.caltech.edu>
8890         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
8891         TAGS to ac_config_<foo>s.
8892         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
8893         (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
8894         normalizing it, consistent it with previous releases.
8895         * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
8897 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
8899         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
8900         Use simplified args that Eric Blake originally suggested.
8902 2006-04-04  Paul Eggert  <eggert@cs.ucla.edu>
8904         * tests/mktests.sh: Don't use 'cat'; just read the files directly.
8905         Prefer 'sort -u' to 'sort | uniq'.  Filter data before sorting it.
8906         Use 'comm' rather than N instances of grep; this also fixes a bug
8907         whereby substrings were incorrectly matched, causing us to not
8908         generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
8909         (exclude_list): Exclude empty macros.
8910         (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
8912         Use awk rather than grep -E or egrep, to avoid
8913         portability problems with regular expressions containing newlines.
8914         (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
8915         Switch from grep to awk syntax.
8916         (ac_exclude_script): Renamed from ac_exclude_egrep.
8917         (au_exclude_script): Renamed from au_exclude_egrep.
8919 2006-04-04  Noah Misch  <noah@cs.caltech.edu>
8921         * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
8922         a subdirectory subject to Cygnus `configure'.
8923         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
8925         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
8926         report request when we have no AC_PACKAGE_BUGREPORT.
8928 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8930         * THANKS: Update.
8932         * tests/mktests.sh: Update copyright year in the header of the
8933         generated files.
8935         * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
8936         (AC_C_RESTRICT): Likewise.  Furthermore, add a function with a
8937         typedef'ed restricted pointer, to catch a compiler bug on
8938         HP-UX 11.x, and fix warnings so it passes with -Werror.
8939         (_AC_PROG_CC_C99): Likewise.
8940         Reported by Albert Chin <china@thewrittenword.com>.
8941         * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
8943 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
8945         * bin/autoscan.in (subdirs): New global.
8946         (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
8947         (output): Emit AC_CONFIG_SUBDIRS as needed.
8948         * tests/autoscan.at (autoscan): Remove XFAIL.
8950 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
8952         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
8954 2006-04-03  Eric Blake  <ebb9@byu.net>
8956         * THANKS: Add myself.
8958 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8960         * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
8961         to log, point to testsuite output tree.
8963 2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
8965         * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
8966         * doc/autoconf.texi (Function Portability): Mention that C++
8967         has trouble with 'exit'.
8968         (Guidelines): Test programs shouldn't use 'exit'.
8969         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
8970         Remove; all uses removed.
8971         (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
8972         Return from 'main' instead of calling 'exit'.
8973         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
8974         (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
8975         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
8976         (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
8977         (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
8978         (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
8979         (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
8980         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
8981         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
8982         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
8983         * tests/compile.at: Likewise.
8985 2006-04-02  Pavel Roskin  <proski@gnu.org>
8987         * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
8989 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
8991         Clean up _AC_COMPILER_EXEEXT* macros.
8993         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
8994           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
8995           ac_file to the name of the default output file and call
8996           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
8997           initial `rm' of the candidate files...
8998         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
8999           the same list in subsequent `rm' calls, and for the temporary
9000           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
9001           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
9002         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
9003         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
9004           no longer needed) by libtool.  Make it a cache check.
9005         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
9006           copied here by mistake.
9007         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
9008           _AC_COMPILER_EXEEXT.
9009         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
9010           _AC_COMPILER_OBJEXT directly.
9011         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
9013 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
9015         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
9016         (AS_DIRNAME): Use it.
9017         (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
9019         * tests/*.at: Remove the generated ones.
9021 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
9023         * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
9025 2006-04-01  Eric Blake  <ebb9@byu.net>
9027         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
9028         directories, unless optional third argument supplied.
9029         (AS_UNAME): Don't optimize PATH walk.
9031         * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
9033 2006-04-01  Eric Blake  <ebb9@byu.net>
9034         and Stepan Kasal  <kasal@ucw.cz>
9036         * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
9037         and fix some typos.
9039 2006-04-01  Noah Misch  <noah@cs.caltech.edu>
9041         * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
9042         Autoconf version number despite a zero- or one-argument AC_INIT.
9044         * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
9045         subordinate tools.
9046         * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
9047         * doc/autoconf.texi (autoreconf Invocation): Document it.
9049         * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
9050         Append LocalWords so ispell-buffer passes cleanly.  Spelling fixes.
9052 2006-04-01  Eric Blake  <ebb9@byu.net>
9054         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
9055         * lib/autotest/general.m4: Be tolerant of existing directory when
9056           rm failed to remove it.
9058 2006-04-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9060         * bin/autoupdate.in: Redefine m4_location so that warnings print
9061         the correct lines of the input file by subtracting..
9062         (_au__first_line): ..this new definition.
9064         * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
9065         AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
9066         Remove stray newline in output.
9067         (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
9068         AC_DEFUN this for autoconf, including the obsoletion diagnose.
9069         Fixes autoupdating of code where the replacement output contains
9070         m4sugar macros.
9071         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
9072         * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
9073          (au_exclude_list): Add AC_LANG_SAVE.
9074         * tests/tools.at: Several new tests for all of this.
9075         * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
9076         hairy details.
9077         The AC_LANG_SAVE issue was reported against Libtool by
9078         Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
9079         Kristian Kvilekval <kris@cs.ucsb.edu>.
9081 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
9083         * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
9084           switch all of them on and of when necessary.  Fixes the bug when
9085           m4sugar macros (e.g., m4_define) were expanded after the first
9086           automatic update (e.g., after AC_PREREQ or AC_INIT).
9088 2006-03-31  Paul Eggert  <eggert@cs.ucla.edu>
9090         * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
9091         of AS_BASENAME and AS_DIRNAME.  Reported by Stepan Kasal.
9093         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
9094         correctly.  Problem reported by Eric Blake.
9095         (_AS_EXPR_PREPARE): Detect Tru64 expr bug.  Problem reported by
9096         Ralf Wildenhues.
9098 2006-03-30  Paul Eggert  <eggert@cs.ucla.edu>
9100         * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
9101         Tighten up the basename/dirname wording.
9103 2006-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9105         * Makefile.maint (sc_texi_notab): New check: do not use TABs
9106         in texinfo files outside of verbatim environments.
9107         (syntax-check-rules): Update.
9108         * doc/autoconf.texi (Configuration Headers): Conform to it.
9110 2006-03-30  Chris Pickett <cpicke@cs.mcgill.ca>  (tiny change)
9112         * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
9113           aclocal cannot be given on the command line.
9115 2006-03-29  Paul Eggert  <eggert@cs.ucla.edu>
9117         * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
9118         Give an example for AS_DIRNAME instead of referring to Posix..
9119         (File System Conventions): Put discussion of // versus / here, and
9120         modernize it a bit.
9121         (Limitations of Usual Tools): Add basename.  Remove verbiage
9122         after dirname, since it got moved to the above sections.
9123         All this was inspired by a patch proposed earlier by Eric Blake.
9125 2006-03-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9127         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
9128         `$0' to protect against spaces.
9129         * lib/autotest/general.m4 (AT_INIT): Likewise.
9130         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
9131         `$0', $as_me.
9133 2006-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9135         * bin/autoscan.in: The value of find_configure_ac should be
9136         checked for existence, so we don't barf over a nonexisting
9137         configure.ac.  Reported by Laurence Darby <ldarby@tuffmail.com>.
9139 2006-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9141         * bin/autoupdate.in: Fix some typos.
9143 2006-03-21  Stepan Kasal  <kasal@ucw.cz>
9145         * doc/autoconf.texi (Installation Directory Variables): Fix typo.
9147         * lib/autoscan/autoscan.list: Refreshed.
9149 2006-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9151         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
9152         and Erlang related variables.
9154         * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
9155         (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
9156         (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
9157         (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
9158         (AC_LANG_BOOL_COMPILE_TRY(Objective C))
9159         (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
9160         (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
9161         (_AC_PROG_OBJC_G): New macros.
9162         (_AC_ARG_VAR_CPPFLAGS): Adjusted.
9163         * doc/autoconf.texi (Objective C Compiler): New node.
9164         (Preset Output Variables): Document OBJCFLAGS.
9165         (Language Choice): Document `Objective C' language.
9166         (Fortran Compiler): Fix typo.
9167         * NEWS: Updated.
9168         Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
9170 2006-03-20  Stepan Kasal  <kasal@ucw.cz>
9172         * doc/autoconf.texi (Default Includes): Fix typo
9173           s/AC_HEADERS_STDC/AC_HEADER_STDC/
9174         (Limitations of Usual Tools): s/unwriteable/unwritable/
9175         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
9176           Fix typos in the comments.
9178 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
9180         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
9181           Factor out the warning to...
9182         (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
9183         * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
9184         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
9186         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
9187           case `ac_delim' when writing the sed script.
9189         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
9190           moved DUALCASE=1 ...
9191         (AS_SHELL_SANITIZE): ... here.
9192         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
9193           that it is set.
9195         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
9196           AC_SUBST.
9197         (_AC_PATH_PROG): Store the result to VARIABLE.
9198         (AC_PATH_PROG): No need to set VARIABLE again.
9200         * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
9201           the first one is usual AT_CHECK_MACRO test, the second one checks
9202           that the same works when cross-compiling.
9203         * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
9204         (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
9206 2006-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9208         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
9209         the directory `/usr/bin/posix' in the shell search, to prefer
9210         the Posix shell not only in subsequent spawns as with `$BIN_SH'
9211         on Tru64.
9213         * doc/autoconf.texi (contents): To fix texi2html output, hide
9214         `@setcontentsaftertitlepage' for HTML.
9215         (Writing Autoconf Macros): Likewise, insert space after `@c'.
9216         (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
9217         `@,{c}'.
9219 2006-03-16  Stepan Kasal  <kasal@ucw.cz>
9221         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
9222           sanitizing...
9223         (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
9224         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
9225           why IFS is restored so late; thank you, Ralf, for reminding us.
9227 2006-03-15  Stepan Kasal  <kasal@ucw.cz>
9229         * doc/autoconf.texi (Pretty Help Strings): No need to use cached
9230           variables in the examples.
9232 2006-03-14  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
9234         * doc/autoconf.texi (several sections): Cleaned up documentation for
9235         macros in erlang.m4.
9237 2006-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9239         * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
9240         failure condition for `$(cmd)' style command substitutions.
9241         (Parenthetical command substitution, Multiline parenthetical
9242         command substitution): Use it.
9244         * doc/autoconf.texi (Special Shell Variables): Missing word.
9245         Reported by Keith Marshall <keith.marshall@total.com>.
9247         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
9248         IFS even in case of empty `$PATH'.
9250 2006-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9252         * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
9253         `expr' away if there is nothing to do.
9254         < --keywords >: Simplify and robustify argument handling.
9255         Revert erroneous comment from 2005-08-23.  Extend to allow
9256         keyword negation with `!'.
9257         Update help message.  Remove broken code to prevent running
9258         tests multiple times.
9259         * doc/autoconf.texi (testsuite Invocation) < --keywords >:
9260         Update and fix the documentation accordingly.
9261         * tests/autotest.at (Keywords): Renamed to..
9262         (Keywords and ranges): .. this.  Extended to make sure negated
9263         keywords, keywords taken from AT_SETUP arguments, and numeric
9264         test ranges work, and that matching is case-insensitive.
9266 2006-03-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9268         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
9269         allow to pass unnamed structs even in C++.
9270         (AC_CHECK_SIZEOF):  Likewise.
9271         Also fix quoting error in `AC_MSG_FAILURE' arguments.
9272         * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
9273         struct): New tests for unnamed structs, each both native and
9274         cross-compiling.
9276         * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
9277         a structure inside a cast, for C++ conformance.
9278         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
9279         Also fix quoting error in `AC_MSG_FAILURE' arguments.
9281         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
9282         nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
9283         trying to execute the command `no'.
9285         * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
9286         m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
9287         expanded outside.
9289         * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
9290         example.  Do not emphasize `$%', it is hardly new and special.
9291         Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
9293         * doc/autoconf.texi (Limitations of Usual Tools): Document
9294         OpenBSD and traditional `grep' failure to handle multiple
9295         patterns separated by newlines.
9297 2006-03-10  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
9299         * doc/autoconf.texi (several sections): Add documentation for macros
9300         in erlang.m4.
9302 2006-03-10  Eric Blake  <ebb9@byu.net>
9304         * doc/autoconf.texi (Obsolete Macros): Fix wording of
9305         AC_TRY_LINK_FUNC.
9307 2006-03-10  Paul Eggert  <eggert@cs.ucla.edu>
9309         * doc/autoconf.texi: Use @acronym more consistently for acronyms
9310         like BSD, GPL, LGPL.  Fix minor English typos.
9311         (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
9312         Mention that these macros are becoming obsolete.
9313         (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
9314         Use more modern terminology for which standard is what.
9315         (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
9316         and to ansi2knr.
9317         (AC_PROG_CXX): Likewise.
9318         (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
9319         Remove obsolete discussion about how to port to K&R.
9320         (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
9321         the obsolescent AC_HEADER_STDC.
9322         (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
9323         can't rely on it.
9325 2006-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9327         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
9328         Remove stdin redirection from /dev/null to allow pipe to work.
9330 2006-03-08  Paul Eggert  <eggert@cs.ucla.edu>
9332         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
9333         Require that /lib/cpp include stdio.h correctly.  Solaris 10's
9334         doesn't.  Problem reported by D'Arcy A MacIsaac and diagnosed by
9335         Ralf Wildenhues.
9337 2006-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9339         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
9340         HP-UX sed is 99 commands, not 100.
9341         (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
9342         _AC_SUBST_FILES fragment.  Separate `{' and `r' commands by
9343         newline for portability.
9344         * tests/torture.at (Torturing config.status): Also test 100
9345         AC_SUBST_FILE invocations.  Fix test to actually verify the
9346         AC_CONFIG_FILES output.
9347         * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
9348         command, label, and read-file `r' limits.  Unify HP-UX spelling.
9350         * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
9351         non-suffix rule.
9352         ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
9353         non-GNU make.
9354         (autoconfdir, $(AUTOCONF_FILES)): Likewise.
9355         * tests/mktests.sh: Small shell portability fixes.
9357 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9359         * doc/autoconf.texi (Caching Results): Fix the examples to use a
9360         recommended quoting style and discard unwanted output.
9362 2006-03-05  Paul Eggert  <eggert@cs.ucla.edu>
9364         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
9365         (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
9366         cases, and to work around Tru64 expr bug.
9368 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9370         * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
9371         expr bug that turns the result of a regex match into a number if
9372         possible.
9374 2006-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9376         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
9377         HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
9378         in section `Specific Compiler Characteristics'.
9380 2006-03-04  Eric Blake  <ebb9@byu.net>
9382         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
9383         variable warning.
9385 2006-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9387         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
9388         order of variable initialization, so even the Solaris 2.6 shell
9389         can create a config header correctly.  Fixes lots of test suite
9390         failures.
9392 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9394         * doc/autoconf.texi (Text processing Macros): New node to
9395         document the m4sugar macros m4_re_escape, m4_tolower,
9396         m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
9398 2006-02-22  Paul Eggert  <eggert@cs.ucla.edu>
9400         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
9401         XrmInitialize (0) -> XrmInitialize ().
9402         Reported by Toshio Kuratomi.
9404 2006-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9406         * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
9407         test, as in `if tests; then cmd1; elif ...; else ...; fi'.
9408         * doc/autoconf.texi (Programming in M4sh): Adjusted.
9409         * tests/m4sh.at (AS_IF and AS_CASE): Test this.  Also make sure
9410         both macros are defun'ed so that required macros are evaluated
9411         outside.
9413         * doc/autoconf.texi (Prerequisite Macros): State more precisely
9414         where a required macro will be expanded.
9415         (Coding Style): Another reason not to use `m4_define'.
9417 2006-02-21  Eric Blake  <ebb9@byu.net>
9419         * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
9421 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9423         * doc/autoconf.texi (Looping constructs): New node, to
9424         document m4_for, m4_foreach, m4_foreach_w, and mention
9425         obsolete AC_FOREACH.
9426         (Obsolete Macros): Document AC_FOREACH.
9427         * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
9428         (m4_for): Fix to never loop (almost) endlessly, work correctly
9429         with arithmetic expressions in arguments, a step of zero or
9430         non-integer multiple of the interval, and avoid integer
9431         overflow.
9432         * tests/m4sugar.at: New test for m4_for, m4_foreach, and
9433         m4_foreach_w.
9435 2006-02-20  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
9437         Add basic support for Erlang, both for configuring Erlang/OTP
9438         tools, and Erlang as a conf test language.
9439         * lib/autoconf/erlang.m4: New file.
9440         * lib/autoconf/autoconf.m4: Add erlang.m4.
9441         * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
9442         * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
9443         * NEWS: Add short description of new macros.
9444         * THANKS: Add Romain Lenglet.
9446 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9448         * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
9449         native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
9451 2006-02-15  Eric Blake  <ebb9@byu.net>
9453         * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
9454         warning.
9456 2006-02-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9458         * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
9459         (_AS_CASE): Private helper macro.
9460         * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
9461         * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
9462         Fix syntax of AS_IF description
9463         (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
9464         for the AC_REQUIRE mess.
9465         * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
9466         AS_SHELL_SANITIZE.
9468 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
9470         * doc/autoconf.texi: Minor style cleanup.
9471         Be consistent about spaces after commas.
9472         Insert [] where empty args look a bit funny.
9473         Fix some "i.e." and "e.g." usages.
9474         Try to avoid "X/Y" usages.
9475         Don't be pedantic about "ISO C99"; just say C99.
9476         Prefer GNU style for spaces in front of parens.
9477         (Function Portability): Comment about C89 versus C99
9478         signed integer division.
9479         (Particular Headers): Use current gnulib style for dirent
9480         includes.
9482 2006-02-14  Stepan Kasal  <kasal@ucw.cz>
9483         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9485         * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
9486         macros without parameters.
9487         * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
9488         * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
9489         * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
9490         `$#' bug.
9491         (autoupdate): Updated to match AU_ALIAS fix.
9493 2006-02-13 Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9494         and Paul Eggert  <eggert@cs.ucla.edu>
9496         * doc/autoconf.texi (Programming in M4sh): Document
9497         AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
9499 2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9501         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
9502         (AS_BOURNE_COMPATIBLE): ..this.
9503         (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
9505 2006-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9507         * doc/install.texi (Defining Variables): Tighten up the
9508         CONFIG_SHELL wording.
9510 2006-02-12 Paul Eggert  <eggert@cs.ucla.edu>
9511         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9513         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
9514         of (set -o) rather than testing whether (set -o posix) succeeds,
9515         to work around a bug in the AIX 5.3 shell.  Problem originally
9516         reportd by Howard Chu for libtool.
9518 2006-02-10  J.T. Conklin  <jtc@acorntoolworks.com>
9520         * doc/autoconf.texi (Running the Compiler, Running the Linker):
9521         Changes the macro arguments in summaries to match the
9522         descriptions.
9524 2006-02-04  Stepan Kasal  <kasal@ucw.cz>
9526         * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
9527         hint as ``a workaround for a bug.''
9529 2006-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9531         * bin/autoreconf.in: New option `--no-recursive'.
9532         Improve wording for subpackages a bit.
9533         * doc/autoconf.texi (autoreconf Invocation): Updated.
9534         * NEWS: Updated.
9536         * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
9537         in environment of `configure', not the command line.
9538         Reported by Howard Chu <hyc@highlandsun.com>.
9540 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9542         * doc/autoconf.texi (Limitations of Builtins): Document the
9543         problem with "trap -".
9545 2006-01-23  Steven G. Johnson  <stevenj@fftw.org>
9547         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
9548         (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
9549         messages to differentiate Fortran and Fortran 77 tests.
9550         (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
9551         AC_LANG_ASSERT, to allow use in mixed-language projects.
9553 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9555         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
9556         FOO" to "defined (FOO)".
9557         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
9558         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
9559         * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
9560         * tests/tools.at (ifnames): Likewise.
9562 2006-01-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9564         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
9565         * lib/Autom4te/General.pm (mktmpdir): Likewise.
9566         (END): Improve error message a bit.
9567         Reported by Bruce Korb <bkorb@gnu.org>.
9569 2006-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9571         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
9572         `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
9574 2006-01-11  Stepan Kasal  <kasal@ucw.cz>
9576         * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
9577         requires sys/stream.h.  Reported by Oliver Kiddle.
9579 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9580             Stepan Kasal  <kasal@ucw.cz>
9582         * lib/autotest/general.m4 (AT_INIT): When ensuring writability
9583         before the removals of test dirs, use `find' to avoid modification
9584         of symlinked directories.
9586 2006-01-11  Steven G. Johnson  <stevenj@alum.mit.edu>
9588         * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
9589         Don't ignore the macro arguments.
9591 2006-01-11  David Thompson  <dthompsn@vizsolutions.com>
9593         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
9594         declaration that works for MSVC.
9596 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9598         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
9599         Add `*.map' and `.inf' for Green Hills compiler.
9600         Reported by Stefan Seefeld <stefan@codesourcery.com>.
9602         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
9603         correctly: pad with spaces after FIRST_PREFIX if necessary,
9604         and compute string lenghts with `m4_qlen' instead of `m4_len'.
9605         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
9606         * tests/m4sh.at (AS_HELP_STRING): Test extended.
9607         * NEWS: Updated.
9608         Reported by numerous people, numerous times.
9610 2006-01-05  Paul Eggert  <eggert@cs.ucla.edu>
9612         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
9613         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
9614         * lib/autoconf/general.m4, lib/autoconf/status.m4:
9615         * lib/autotest/general.m4, tests/local.at:
9616         Update copyright year to 2006.
9618         * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
9619         sed substitutions.
9620         * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
9621         for file names, again.  Reported by Noah Misch.
9622         (Coding Style): Explain that s|a|b| is preferred for file names.
9623         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
9624         (AC_OUTPUT_MAKE_DEFS): Likewise.
9625         * lib/autotest/general.m4 (AT_INIT): Likewise.
9626         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
9627         * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
9629         Fix Posix-conformance bugs re use of { command in sed scripts,
9630         and improve the sed-related documentation a bit.
9631         * doc/autoconf.texi (Installation Directory Variables): Use
9632         our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
9633         rather than "sed" when talking about Sed in general.
9634         (Particular Programs): Likewise.
9635         (Coding Style): y is like s with respect to / and ,.
9636         (Limitations of Usual Tools): Document the weird restrictions
9637         that Posix has about { }.  Use better quoting.
9638         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
9639         Rewrite to conform to Posix rules about { } in sed scripts.
9640         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
9641         * tests/foreign.at (Libtool): Likewise.
9642         * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
9643         Use our own style advice re 's,a,b,' versus 's|a|b|'.
9645 2006-01-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9647         * lib/autoconf/status.m4: Fix typo.
9649         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
9650         singly- or doubly-quoted arguments to `-cmdline', `-ignore',
9651         `-def', for the benefit of Portland `pgf90 -Mipa'.
9652         Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
9654 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9656         * doc/autoconf.texi: Update copyright (and other) dates to 2006.
9657         * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
9658         shell from zsh to bash.
9660 2005-12-31  Stepan Kasal  <kasal@ucw.cz>
9662         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
9663           ":" caused problems on OS/2-EMX.  Suggested by Andrew Belov.
9665 2005-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9667         * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
9668         parentheses in $(...).  Problem reported by Eric Blake.
9670 2005-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9672         * doc/autoconf.texi (Limitations of Usual Tools):
9673         Mention which characters can be escaped with \ in portable regular
9674         expressions used in grep, sed, expr.  Mention the leading ^ problem
9675         with expr.  Clean up some confusing wording.  Mention which
9676         grep options are portable.
9678 2005-12-09  Stepan Kasal  <kasal@ucw.cz>
9680         * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
9682 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
9684         * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
9685         patch, noted by Ralf Wildenhues.
9687 2005-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9689         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
9690         posix' unconditionally, for pdksh in `native sh' emulation.
9692 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9694         * doc/autoconf.texi (Shellology): Document eval $? problem
9695         with ash.
9696         (Limitations of Builtins): Likewise.
9698 2005-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9700         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
9701         CONFIG_SHELL in the environment of the configure rerun.
9702         * doc/autoconf.texi (Here-Documents, config.status Invocation):
9703         Suggest passing CONFIG_SHELL absolute, and in the environment
9704         rather than as option.
9706 2005-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9708         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
9709         Fix quoting of output line (triggered for many AC_SUBST_FILEs).
9710         Fix macro quoting.  Fix output for n * 98 substituted variables.
9712 2005-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9714         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
9715         `tmp' to avoid file removal race.
9717 2005-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9719         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
9720         ac_clean_files and LIBOBJS.
9722 2005-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9724         * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
9725         Factor functionality to..
9726         (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
9727         `AC_SUBST($1)' in the public version.
9728         (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
9729         (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
9730         ac_pt_* variables.
9732 2005-11-01  Stepan Kasal  <kasal@ucw.cz>
9734         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
9735         filesystems.
9737 2005-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9739         * NEWS: Move AH_HEADER mention to right place.
9741 2005-10-27  Stepan Kasal  <kasal@ucw.cz>
9743         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
9744         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
9746 2005-10-25  Stepan Kasal  <kasal@ucw.cz>
9748         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
9749         conftst2.$ac_objext.
9750         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
9752 2005-10-24  Stepan Kasal  <kasal@ucw.cz>
9754         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
9755         conftest.o, to see whether the compiler really obeys; rm the object
9756         file before and after the test and register it with ac_clean_files.
9757         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
9759 2005-10-21  Stepan Kasal  <kasal@ucw.cz>
9761         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
9762         the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
9763         code so that the most common case requires less forks.
9765 2005-10-20  Stepan Kasal  <kasal@ucw.cz>
9767         * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
9768         not portable; thanks to Paul Eggert and Alexandre.
9770         * NEWS: Fix an old typo.
9772 2005-10-20  Jim Meyering  <jim@meyering.net>
9774         * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
9775         the latter'', in two places.
9777 2005-10-19  Paul Eggert  <eggert@cs.ucla.edu>
9779         * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
9780         AC_LANG_PROGRAM, fixing a typo.  Don't give details about
9781         the inner workings of AC_LANG_FUNC_LINK_TRY.
9782         * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
9783         AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
9784         by the function rather than ignoring it.
9785         (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
9786         comparing its address.  Intel's interprocedural optimization was
9787         outsmarting the old heuristic.  Problem reported by
9788         Mikulas Patocka.
9790 2005-10-19  Stepan Kasal  <kasal@ucw.cz>
9792         * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
9794 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9796         * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
9797         (m4_map, m4_map_sep): Use it.  Handle the empty list correctly.
9799 2005-10-04  Stepan Kasal  <kasal@ucw.cz>
9801         * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
9802         before removing it (chmod -R u+rwx); there are three instances of this.
9804 2005-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9805             Stepan Kasal  <kasal@ucw.cz>
9807         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
9808         * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
9809         make its content writable before removing it.  Remove an errorneous
9810         comment from the end, where the logs of the failed tests are copied
9811         to the main log file.
9813 2005-09-27  Stepan Kasal  <kasal@ucw.cz>
9815         * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
9816           in case the computer is too quick.  Double quote the configure.ac
9817           snippets.
9819         * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
9820           problems if the testsuite were running too fast.
9822 2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9824         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
9825         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
9826         (which belong to Xt, not X itself).  See Debian bug 327655.
9827         * NEWS: Mention this.
9829 2005-09-07  Stepan Kasal  <kasal@ucw.cz>
9831         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
9833 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
9835         * config/move-if-change: Don't output "$2 is unchanged";
9836         suggested by Ben Elliston.  Handle weird characters correctly.
9838 2005-09-06  Stepan Kasal  <kasal@ucw.cz>
9840         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
9841           calls, so that the final expansion of this macro is shorter.
9842           Create the conftest.$ac_ext outside the `for' loop, to speed the run.
9843           Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
9844           the cleanup there.  Use AS_VAR_* macros, to be more general.
9845         * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
9847         * lib/autoconf/general.m4: Use AS_IF where appropriate.
9849         * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
9851 2005-09-01  Stepan Kasal  <kasal@ucw.cz>
9853         * doc/autoconf.texi (Configuration Headers): Add an index entry
9854           for AH_HEADER.
9856 2005-08-26  Pavel Roskin  <proski@gnu.org>
9858         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
9859         XMKMF to locate xmkmf.  Make XMKMF precious.  Export CC when
9860         running xmkmf.
9862 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
9864         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
9865         The previous patch didn't work, so try a better one.
9867 2005-08-26  Stepan Kasal  <kasal@ucw.cz>
9869         * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
9870         in the example.  Reported by Bruno Haible.
9871         <AS_TR_SH>: Likewise.  Also modify the example to be more convincing:
9872         "if $undefined_var;" succeeds with my shell.
9874         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
9875         AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
9876         but change the m4_divert_text to m4_divert_once.
9878 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
9880         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
9881         Work around bug in Solaris /usr/xpg4/bin/awk.
9882         The bug is present in at least Solaris 8 through 10.
9884 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
9886         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
9887         some evil values and relying on the fact that $* concatenates the
9888         parameters by the first character from IFS.
9890 2005-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
9891             Stepan Kasal  <kasal@ucw.cz>
9893         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
9894         first header appears, define AH_HEADER.
9895         * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
9896         Update limitations about when to call AC_CONFIG_HEADERS.
9897         (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
9898         parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
9899         that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
9900         ``Configuration Actions''; fix their index entries.
9902         * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
9903         options correctly.  Process N-M as M-N if M is smaller than N.
9904         Process ranges correctly so that N-N will run only N.
9905         Sort and uniquify the tests that will be run.  If there is more
9906         than one test, reinsert the banners for the tests.
9907         * tests/autotest.at (Keywords): Unmark XFAIL.
9909 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
9911         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
9912           before passing the macro name to AH_TEMPLATE.
9914         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
9915           now opens log after option processing; in particular, --version
9916           and --help do not touch config.log.
9918         * Makefile.maint: Revert the change from 2005-08-12.
9920 2005-08-22  Stepan Kasal  <kasal@ucw.cz>
9922         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
9923           common code to...
9924         (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
9926 2005-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9928         * doc/autoconf.texi (Using Autotest, testsuite Scripts)
9929         (Autotest Logs, Writing testsuite.at, testsuite Invocation):
9930         Language cleanup.
9932         * doc/autoconf.texi (Defining Symbols, Changed Results):
9933         Prepend to LIBS, not append, in examples.
9935 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
9937         When building in place, set srcdir="."; suggested by Tim Van Holder.
9939         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
9940           build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
9941         (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
9942         * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
9943           does not mean "no --srcdir option".
9945 2005-08-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9947         * tests/autoscan.at (autoscan): New file.
9948         * tests/suite.at: Use it.
9949         * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
9950         Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
9952         * tests/autotest.at (Keywords): Test keywords combinations.
9954 2005-08-12  Stepan Kasal  <kasal@ucw.cz>
9956         * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
9957           add "2>&1"; gzip 1.2.4 prints help on stderr.
9959 2005-07-27  Stepan Kasal  <kasal@ucw.cz>
9961         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
9962         was pushdef'ed twice while popped only once.  Push it only once.
9963         (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
9965 2005-07-26  Stepan Kasal  <kasal@ucw.cz>
9967         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
9968         prefixed by mere "===", not "configure: === ".
9970 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
9972         * Makefile.maint: Update from Bison.
9974         * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
9975         "<tab>" in comment, so that the point is understandable.
9977 2005-07-25  Stepan Kasal  <kasal@ucw.cz>
9979         Rewrite substantial part of lib/autoconf/status.m4.
9980         The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
9981         and CONFIG_COMMANDS are not processed in four separate loops.
9982         Instead, there is one main loop.  This alows that the common code
9983         is expanded only once, thus config.status (and configure) is smaller.
9985         The registration mechnism in AC_CONFIG_FILES and cousins also changed;
9986         the AC_LIST_FILES and cousins macros are no longer used.
9988         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
9989         _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
9990         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
9991         _AC_OUTPUT_COMMAND): ..., respectively.  These macros no longer
9992         contain the initialization, nor the for loop, nor the associated
9993         commands; all these go to ...
9994         (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
9995         _AC_OUTPUT_CONFIG_STATUS.
9996         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
9997         Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
9998         (_AC_OUTPUT_FILE): The creation of the sed script ...
9999         (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
10000         (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
10001         _AC_OUTPUT_MAIN_LOOP.
10002         (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
10003         _AC_CONFIG_COMMANDS): Use ...
10004         (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
10005         (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
10006         (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
10007         _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
10008         (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
10009         (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
10010         ... new macros.
10011         (_AC_CONFIG_UNIQUE): Update.
10012         (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
10013         Replaced by this ...
10014         (_AC_LIST_TAGS): ... new common macro.
10015         (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
10016         AC_LIST_COMMAND_COMMANDS): Replaced by this ...
10017         (_AC_LIST_TAG_COMMANDS): ... new common macro.
10018         (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
10019         this didn't belong to the `config commands' section.
10020         (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
10021         (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
10022         AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
10023         to the `config commands' section either.
10024         (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
10025         (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
10027         ... and many changes to the comments nearby.
10029         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
10030         set ac_subdirs_all='_AC_LIST_SUBDIRS'.
10031         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
10032         AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
10033         (#define header templates): The comment at the top of the generated
10034         header now includes the name(s) of the source file(s).
10036         Several unrelated small changes:
10038         * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
10039         parameter to AC_DIAGNOSE.
10040         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
10041         (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
10042         with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
10043         (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
10044         with AU::AC_OUTPUT.
10045         (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
10046         in AC_OUTPUT doesn't double-quote it either.
10047         * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
10048         parameters.
10050 2005-07-10  Stepan Kasal  <kasal@ucw.cz>
10052         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
10053         versions of Portland Group compiler produce single- and double-quoted
10054         -cmdline argument.  Reported by Steven G. Johnson <stevenj@fftw.org>
10055         and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
10057 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
10059         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
10060         This is a corrected version of yesterday's patch.
10062 2005-07-07  Stepan Kasal  <kasal@ucw.cz>
10064         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
10065         path, too; insert a "===" to emphasize the line.
10067         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
10068           ac_cv_build_alias to ac_build_alias.
10069         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
10071         On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
10072         change eliminates it.  Problem reported by Alexandre Duret-Lutz.
10073         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
10074         (AC_ARG_VAR): ... here.
10075         (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
10076           target_alias.
10078         Keep a list of all precious variables and process them with one simple
10079         for loop, instead of expanding all commands, or, OTOH, complicated
10080         processing of output of "set".
10081         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
10082         variable names in new macro...
10083         (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
10084         (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
10085           a loop to assign all ac_env_* and ac_cv_env_* variables.
10086         (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
10087           to INIT_PREPARE.
10088         (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
10089           its value to shell variable ac_precious_vars and call
10090           _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
10091         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
10092           _AC_ARG_VAR_VALIDATE.
10094         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
10095           and the AC_SUBSTs ...
10096         (AC_INIT): ... here.
10098         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
10099           the ac_subst_files section in config.log.
10101         * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
10103 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10105         * NEWS: New macro AC_C_TYPEOF.
10106         * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
10107         * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
10108         * tests/c.at (C keywords): Test AC_C_TYPEOF.
10110         Fix problems reported by Nicolas Joly.
10111         * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
10112         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
10113         They are generated by the Tru64 v5.1B shell.
10115 2005-07-05  Stepan Kasal  <kasal@ucw.cz>
10117         Fix my changes from 2005-07-01; reported by Noah Misch.
10118         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
10119         description, the macro now accepts only a single tag.
10120         (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
10122         Fix cases when the varsions of Autoconf and Autotest don't match.
10123         Reported by Noah Misch.
10124         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
10125         at_top_builddir, for compatibility with older autotest.
10126         * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
10127         is not set, use at_top_builddir, for compatibility with older
10128         versions of autoconf.
10130 2005-07-04  Paul Eggert  <eggert@cs.ucla.edu>
10132         * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
10133         Problem reported by Patrick Welche.
10135 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
10137         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
10138         sed substitution command, so that we allow | in program prefixes
10139         and program suffixes.  (& is a problem anyway; we're not fixing
10140         that here.)
10141         * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
10142         configure_input, top_builddir, srcdir, etc.
10143         * lib/autotest/general.m4 (AT_INIT): Likewise, for
10144         PATH_SEPARATOR in AUTOTEST_PATH.
10146 2005-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
10148         * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
10149         for loop over config.site files using `set', to allow
10150         directory names containing IFS characters.
10152 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
10154         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
10155         directories with weird names.  Apparently some people like living
10156         on the edge.  However, improve the test that "pwd" actually does
10157         report a name for the working directory.
10158         * NEWS: Remove the claim that we test for funny chars in dir names.
10160 2005-07-01  Stepan Kasal  <kasal@ucw.cz>
10162         * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
10163         replaced ...
10164         * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
10165         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
10166         Now accept a single tag, not whitespace separated list.
10167         (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
10169 2005-06-30  Stepan Kasal  <kasal@ucw.cz>
10171         * doc/autoconf.texi (Configuration Headers): Change the explanation
10172         about #include <config.h>.
10173         (Generic Functions): Mention the Gnulib project.
10174         (Limitations of Usual Tools) <sed>: Another minor rephrasing.
10176         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
10177         document to output the default config_* lists to config.status.
10178         Don't recognize option --file, if the functionality is not there.
10179         Likewise for --header; moreover, recognize --he and --h as shortcuts
10180         for --help in that case.
10182         * lib/autoconf/status.m4: Fix the order of the "sections", so that it
10183         matches the order of execution.  No code changed.
10185 2005-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10187         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
10188         single-quoted -cmdline argument in Portland Group compiler.
10189         Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
10191 2005-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
10193         * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
10195 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
10197         * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
10198         descriptors to child processes; reported by Norman Gray.
10200 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
10202         * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
10204         * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
10205         instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
10206         (AC_SUBST): Call it.
10207         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
10208         the directory specific variables; but don't call it for configure_input.
10210 2005-06-28  Derek Price  <derek@ximbiot.com>
10212         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
10213         addition.
10215 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10217         * NEWS: Don't worry about spaces in bindir etc.  Only srcdir and working
10218         directory have inherent problems with special characters like spaces,
10219         due to limitations in Make syntax.  Problem reported by Alexandre
10220         Duret-Lutz.
10221         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
10222         Also, fix Tru64 porting problem with shell patterns,
10223         reported by Ralf Wildenhues.
10225 2005-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10227         * doc/autoconf.texi (Subdirectories): Fix markup typos.
10229 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10231         * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
10233         Fix some more shell quoting problems.  Prompted by a bug report
10234         from Justace Clutter.
10235         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
10236         variable into diagnostic.  Make the diagnostic an error, not a warning,
10237         because we really don't support spaces and suchlike in dir names.
10238         (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
10239         Don't worry about backslashes in srcdir; it can't happen now.
10240         (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
10241         Simplify ac_optarg handling.
10242         (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
10244 2005-06-22  Stepan Kasal  <kasal@ucw.cz>
10246         Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
10247         * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
10248         * tests/atlocal.in: Propagate $EGREP and $SED.
10249         * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
10250         (AT_CONFIG_CMP): Use sed instead of grep plumbing.
10252         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
10253         that '\|' is not allowed in BREs; recommend using newline separated
10254         list of patterns instead of multiple -e options.
10256         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
10258         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
10260 2005-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10262         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
10264 2005-06-21  Stepan Kasal  <kasal@ucw.cz>
10266         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
10267         b, t, r, w commands require single space, while : cannot have any.
10268         (Special Shell Variables): Fix sed code this in the example.
10269         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
10270         * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
10272         * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
10273         expand to the empty list.  Don't use two pairs of m4_changequote,
10274         it's not necessary.
10276 2005-06-20  Derek Price  <derek@ximbiot.com>
10278         * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
10280 2005-06-17  Paul Eggert  <eggert@cs.ucla.edu>
10282         * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
10283         * doc/autoconf.texi:
10284         Don't mention Solaris versions so much, if a
10285         problem is common to all extant versions of Solaris.  Say "SunOS
10286         4" instead of "SunOS" for SunOS 4.
10287         (awk): Mention more of the limitations of traditional Awk.
10288         (cat): Don't talk about cat -v.
10290 2005-06-16  Paul Eggert  <eggert@cs.ucla.edu>
10292         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
10293         (AS_VERSION_COMPARE): New macro.  The API is taken from CVS,
10294         but the implementation is entirely different and is designed
10295         to be compatible with glibc strverscmp.
10296         * tests/m4sh.at (AS_VERSION_COMPARE): New test.
10298         * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
10299         on Mac OS X 10.4 reported by Peter O'Gorman in:
10300         http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
10301         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
10302         Use shell builtins rather than 'expr', to work around expr bug.
10304 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
10306         * doc/autoconf.texi: "filesystem" -> "file system".
10307         "behaviour" -> "behavior".
10308         Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
10309         * lib/autoconf/general.m4: Omit blank after ":" sed command,
10310         as per POSIX.
10311         * lib/m4sugar/m4sh.m4: Likewise.
10312         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
10313         with Solaris sed.  Fix by Ralf Menzel and Stepan Kasal.
10315         * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
10316         (.x.1): Ignore the time stamp in the .TH line when deciding whether
10317         to update the man page.  That way, we don't have to check in new
10318         man pages every month.
10320         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
10321         quotes and backslashes.  Patch from Derek Price.
10323 2005-06-10  Derek Price  <derek@ximbiot.com>
10325         * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
10326         AS_TR_SH.
10328 2005-06-08  Paul Eggert  <eggert@cs.ucla.edu>
10330         * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
10331         -u, since it outputs chatter if the input files are the same.
10332         Problem reported by Ralf Menzel.
10334 2005-06-08  Derek Price  <derek@ximbiot.com>
10336         * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
10337         renaming them since they are about to be redefined anyhow.
10339 2005-06-08  Derek Price  <derek@ximbiot.com>
10341         * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
10342         redefined M4 macros to this node.  Document m4_include & m4_sinclude.
10343         Move m4_undefine to alphabetical order.
10345 2005-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10347         * README: Recommend GNU M4 1.4.3 or later.
10348         * doc/autoconf.texi (Introduction): Likewise.
10349         Reword to avoid some formatting glitches.
10350         Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
10351         Clarify explanation of HP compiler bug.
10352         Redo example output tp match current CVS snapshot.
10353         Use @example.org in email addresses when the examples
10354         might get inadvertently cut-and-pasted into user code.
10355         Remove example of autom4te usage that doesn't seem to work now.
10356         Use modern AC_INIT (except when the example is meant to be
10357         shown with Autoconf 2.13).
10358         Update ksh info for Solaris 9 and later.
10359         KB -> kB.
10360         Modernize description of Automake versions a bit.
10361         Don't claim a future version of Autoconf is near.
10362         * doc/install.texi: Reword to avoid some formatting glitches.
10364 2005-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10366         * doc/autoconf.texi: Add [] to examples, so that the manual
10367         follows its own advice about quoting better.
10368         Reword to avoid some formatting glitches.
10369         * doc/installt.exi: Reword to avoid some formatting glitches.
10371         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
10372         Tru64 ksh pattern matching bug.  Reported against Libtool by
10373         Albert Chin <libtool@mlists.thewrittenword.com> and
10374         Nicolas Joly <njoly@pasteur.fr>.
10376 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
10378         m4_cdr of one-member list was [[]] (one-member list containing an
10379         empty string) instead of [] (an empty list.  Callers were skewed to
10380         match this misbehaviour.  As a consequence of this:
10381          - m4_foreach([x], [], [foo]) expanded to `foo', while
10382          - the expansion of m4_foreach([x], [[]], [foo]) was empty.
10383         This bug has been fixed:
10385         * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
10386           expand to an empty string; print error msg if called without
10387           an argument list.
10388         (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
10389           misbehaviour; handle [] and [[]] correctly.
10391 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
10393         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
10394         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
10395           scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
10397 2005-06-06  Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>  (trivial change)
10399         * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
10400           swallow records with more than 99 fields.
10401         * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
10402           parse the long line.
10404 2005-06-04  Stepan Kasal  <kasal@ucw.cz>
10406         * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
10407           swallow literals longer than 399.  Reported by Ralf Wildenhues.
10408         * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
10409           to workaround this limitation.
10411 2005-06-03  Steven G. Johnson  <stevenj@alum.mit.edu>
10413         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
10414         to gfortran, and make these the first two compiler names
10415         checked (following the general autoconf preference for gcc).
10417 2005-06-03  Stepan Kasal  <kasal@ucw.cz>
10419         * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
10420         (DISTCLEANFILES): Remove $(check_SCRIPTS).
10421         (testsuite): Make sure autotest.m4f is up-to-date before using it.
10423 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10425         * lib/autotest/general.m4 (AT_INIT): Don't create a regular
10426         expression of unbounded size when processing the --list
10427         option.  This runs afoul of a limit of 399 bytes per regular
10428         expression on AIX.  Problem reported by Ralf Wildenhues.
10430 2005-06-01  Paul Eggert  <eggert@cs.ucla.edu>
10432         * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
10433         * doc/autoconf.texi (Particular Headers): Reword example
10434         for multiline stdbool replacement.
10435         (Setting Output Variables): Reword text a bit.  Don't
10436         give all the details about |#_!!_#|.
10437         Reword description of line replacement.
10439 2005-05-31  Dan Manthey  <dan_manthey@partech.com>
10441         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
10442         now contain newlines, and substituted files must be referenced on
10443         a line alone; the sed scripts to substitute them are now very
10444         different.
10445         (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
10446         commands can be put in a sed script portably.
10447         * doc/autoconf.texi (Setting Output Variables): Document above
10448         changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
10449         use of multiline substitution.
10450         * tests/torture.at: No longer expect substitution of newline to fail.
10452 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
10454         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
10455         From Ralf Menzel (trivial change).
10457 2005-05-25  Paul Eggert  <eggert@cs.ucla.edu>
10459         * tests/local.at: Don't attempt to check for negated character
10460         classes in shell scripts.  The test was too brittle.
10462 2005-05-25  Stepan Kasal  <kasal@ucw.cz>
10464         * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
10465         * doc/autoconf.texi (Limitations of Builtins): Document this
10466           limitation.
10468 2005-05-24  Stepan Kasal  <kasal@ucw.cz>
10470         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
10471           common code; used in many places in the tree.
10472         (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
10473         (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
10475         * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
10477         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
10478           messages when ac_unique_file is not found.
10479         (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
10480         (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
10481           commands, for consistency with AC_MSG_ERROR and such.
10483         * bin/autoconf.as: Make more use of "shift 2" in option processing.
10485         * bin/Makefile.am: Merge the two rules for creating scripts.
10487 2005-05-23  Stepan Kasal  <kasal@ucw.cz>
10489         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
10490         obsolete; it was never documented.
10491         (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
10493 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
10495         * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
10496         * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
10497         (ac_top_builddir): ... this ...
10498         (ac_top_build_prefix): ... to this; the old name is also kept, for
10499           backward compatibility.
10500         (ac_top_builddir_sub): New variable, without the trailing slash,
10501           always nonempty.
10502         (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
10503         * doc/autoconf.texi (Configuration Actions): Rename
10504           ac_top_builddir to ac_top_build_prefix.
10505         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
10506           at_top_builddir to at_top_build_prefix.
10507         * lib/autotest/general.m4 (AT_INIT): Likewise.
10509 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
10511         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
10512           of confdefs.h .
10514 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
10516         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
10517           argument to m4_foreach.  I guess it was necessary in the past,
10518           but I think it's a no-op now.
10520 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
10522         * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
10523           ``cat <<_ACEOF'' commands to one.
10524         (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
10525         * lib/autoconf/status.m4: On various places, use expr instead of
10526           ``echo|sed.''
10527         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
10528         (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
10529         * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
10530           a range.
10531         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
10532           the wrong patterns between ``case'' and ``esac.''  The previous
10533           code had false positives.
10535 2005-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
10537         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
10538         as on 2005-05-02.
10539         * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
10540         Mention LIBOBJDIR.
10542 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10544         * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
10545         ChangeLog.2, GNUmakefile, Makefile.am, Makefile.cfg,
10546         Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
10547         bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
10548         bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
10549         bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
10550         config/config.guess, config/config.sub, config/elisp-comp,
10551         config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
10552         doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
10553         lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
10554         lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
10555         lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
10556         lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
10557         lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
10558         lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
10559         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
10560         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
10561         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
10562         lib/autoconf/general.m4, lib/autoconf/headers.m4,
10563         lib/autoconf/lang.m4, lib/autoconf/libs.m4,
10564         lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
10565         lib/autoconf/specific.m4, lib/autoconf/status.m4,
10566         lib/autoconf/types.m4, lib/autoscan/Makefile.am,
10567         lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
10568         lib/autotest/Makefile.am, lib/autotest/autotest.m4,
10569         lib/autotest/general.m4, lib/emacs/Makefile.am,
10570         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
10571         lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
10572         lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
10573         tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
10574         tests/compile.at, tests/foreign.at, tests/fortran.at,
10575         tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
10576         tests/semantics.at, tests/suite.at, tests/tools.at,
10577         tests/torture.at, tests/wrapper.as:
10578         Update FSF postal mail address.
10580 2005-05-13  Stepan Kasal  <kasal@ucw.cz>
10582         * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
10583           check.
10584         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
10585           enough arguments, similarly as in m4_bpatsubsts.
10587 2005-05-12  Stepan Kasal  <kasal@ucw.cz>
10589         * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
10590           of absolute paths.
10592 2005-05-11  Stepan Kasal  <kasal@ucw.cz>
10594         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
10595           for absolute directory names in one loop.
10596         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
10597           abbreviations of --version and --debug.
10599 2005-05-10  Paul Eggert  <eggert@cs.ucla.edu>
10601         * doc/autoconf.texi (Autoconf Language): Be more precise about
10602         quoting rules.  Problems noted by Stepan Kasal.
10603         Also, throughout this document, be more careful about white space.
10604         "blank", "white space", and "space" all have different meanings
10605         and we should be careful to say what we mean.
10607 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10609         Fix C++ related problems reported by Werner Lemberg.
10610         * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
10611         * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
10612         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
10613         avoid problems with C++ and throw.
10614         * tests/compile.at: .cpp, not .cc.
10616         * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
10618 2005-05-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10620         * doc/autoconf.texi (Generic Functions): Typos.
10622 2005-05-02  Gary V. Vaughan  <gary@gnu.org>
10624         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
10625         object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
10626         set by latest automake.
10628 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
10630         * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
10631         outputs 0 on GNU/Linux these days.
10633 2005-04-29  Paul Eggert  <eggert@cs.ucla.edu>
10635         * doc/autoconf.texi (Autoconf Language): Add more description
10636         about quoting heuristics.
10637         (Limitations of Builtins): Describe "set -" problems.
10639 2005-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10641         * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
10642         not newline.
10644         * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
10645         by AC_DEFINE; it was a mistake.
10646         From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
10648 2005-04-25  Stepan Kasal  <kasal@ucw.cz>
10650         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
10652 2005-04-22  Stepan Kasal  <kasal@ucw.cz>
10654         * doc/autoconf.texi (External Software): Quadrigraphs are not
10655           processed correctly in AS_HELP_STRING; avoid this in the examples.
10656         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
10657         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
10658           comment and reduce m4_default([foo], []) to [foo].
10659         (m4_strip): Update the explanation.
10661 2005-04-19  Paul Eggert  <eggert@cs.ucla.edu>
10663         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
10664         Remove core.conftest.* too; it's generated by Tru64 5.1.
10665         Problem reported by Jennis Pruett.
10666         * lib/autoconf/functions.m4
10667         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
10668         Don't bother to remove core files; AC_RUN_IFELSE should do that
10669         for you.
10671 2005-04-19  Stepan Kasal  <kasal@ucw.cz>
10673         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
10675 2005-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
10677         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
10678         Report from Horst Wente.
10680 2005-04-15  Stepan Kasal  <kasal@ucw.cz>
10682         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
10683           the comment.
10685 2005-04-14  Gregorio Guidi  <greg_g@gentoo.org>
10687         * doc/autoconf.texi (External Software, Package Options): Add
10688           examples showing how to implement --with-* and --enable-* options.
10690 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
10692         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
10693         as well as configure.in.  Problem reported by Gregorio Guidi.
10695 2005-04-10  Paul Eggert  <eggert@cs.ucla.edu>
10697         * doc/autoconf.texi (Particular Functions): Use gnulib's current
10698         pattern for alloca snippet.
10700 2005-04-04  Stepan Kasal  <kasal@ucw.cz>
10702         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
10704 2005-04-01  Stepan Kasal  <kasal@ucw.cz>
10706         * doc/autoconf.texi (Generic Programs): Fix a typo.
10708 2005-04-01  Paul Eggert  <eggert@cs.ucla.edu>
10710         * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
10711         fails if %s isn't supported.  Problem reported by Ralf Wildenhues.
10713 2005-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10715         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
10716         Merge `-z option' as well for the benefit of Solaris link flags.  Pass
10717         whole-archive (-zallextract, -zdefaultextract) options in the hope of
10718         unique libraries, for the Sun Fortran 95 8.0 compiler.  Bug reported
10719         against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
10721 2005-03-22  Paul Eggert  <eggert@cs.ucla.edu>
10723         * NEWS: The configure command now warns you if you attempt to use
10724         a directory whose name contains a special character like space,
10725         newline, or "\".
10726         * doc/autoconf.texi (Installation Directory Variables): Allow
10727         "," in file names.  Do not use \@; it's not a portable regexp.
10728         * bin/Makefile.am (edit): Likewise.
10729         * lib/Makefile.am (edit): Likewise.
10730         * tests/Makefile.am (edit): Likewise.
10731         * tests/semantics.at: Likewise.
10732         * tests/torture.at: Likewise.
10733         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
10734         * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
10735         * doc/autoconf.texi (File System Conventions): Warn about
10736         unportable file names.
10737         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
10738         (AC_INIT): Use it.
10739         (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
10740         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
10741         ac_pwd, and quote srcdir.
10742         * lib/autotest/general.m4 (AT_INIT): Quote file name args.
10744         * doc/autoconf.texi: Fix some systematic formatting problems.
10745         ".)"  needs a following @: if not at the end of a sentence, and
10746         similarly for "!)".  "etc." should be preceded by a comma.
10747         "n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
10749 2005-03-22  Bruno Haible  <bruno@clisp.org>
10751         * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
10752         argument is often called 'build-aux'.
10754 2005-03-07  Stepan Kasal  <kasal@ucw.cz>
10756         * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
10757           macro AC_TRY_LINK is obsolete.
10758         (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
10759           `AC_CONFIG_FILES'.
10761 2005-02-24  Stepan Kasal  <kasal@ucw.cz>
10763         * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
10764           `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
10765           from a Common Lisp's `cl'.
10766         (AC_PROG_CXX): Behave according to the documentation: don't
10767           search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
10768           make the variable CCC precious; use `cl.exe', not `cl'.
10770 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
10771             Alexandre Duret-Lutz  <adl@gnu.org>
10773         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
10774         /dev/null, as "configure" shouldn't read stdin, and this insulates
10775         us from problems (e.g., when testing for "cl").  Also, do this
10776         redirection before invoking "hostname" or "uname", and keep the
10777         original input stream available via...
10778         (AS_ORIGINAL_STDIN_FD): ... this new macro.
10779         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
10780         bother with "</dev/null" since it's now done at the top of
10781         'configure'.
10782         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
10783         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
10784         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
10785         * doc/autoconf.texi (File Descriptor Macros): New section.
10786         (Printing Messages): Mention it.
10787         * tests/base.at (Input/Output): New test.
10789 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
10791         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
10792         newline if neither \c nor -n work, as that would output two
10793         newlines.  Prefer -n to \c.  Reported by Stepan Kasal.
10795 2005-02-12  Stepan Kasal  <kasal@ucw.cz>
10797         * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
10798         This causes that any required macros inside will get before the if.
10799         * doc/autoconf.texi (autom4te.cache): A typo.
10801 2005-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10803         Undo previous change, except keep the change to
10804         lib/autoconf/programs.m4 that replaced grep with shell
10805         pattern-matching.  This is because net-snmp configure reads stdin.
10806         Reported by Noah Misch.
10808 2005-02-11  Paul Eggert  <eggert@cs.ucla.edu>
10810         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
10811         from /dev/null, as "configure" shouldn't read stdin, and this
10812         insulates us from problems (e.g., when testing for "cl").
10813         Suggested by Alexandre Duret-Lutz.  Also, do this redirection
10814         before invoking "hostname" or "uname".
10815         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
10816         _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
10817         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
10818         "</dev/null" since it's now done at the top of 'configure'.
10819         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
10820         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
10821         Also, replace grep with shell pattern-matching, to save a process.
10823 2005-02-10  Paul Eggert  <eggert@cs.ucla.edu>
10825         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
10826         _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
10827         avoid thinking that Allegro Common Lisp's "cl" command is a C++
10828         compiler.
10830 2005-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10832         * doc/autoconf.texi (Limitations of Usual Tools): Document that
10833         grep -q isn't portable.  Improve grep -s explanation.
10834         Problem reported by Dan Manthey.
10836 2005-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10838         * doc/autoconf.texi (Special Shell Variables): Clarify
10839         PATH_SEPARATOR wording; fix typo in IFS.  Reported by Gary V. Vaughan.
10841 2005-02-07  Paul Eggert  <eggert@cs.ucla.edu>
10843         * doc/autoconf.texi: Use @acronym for DJGPP.
10844         Fix some @code's that should have been @env's, and vice versa.
10845         Sort environment variable names.
10846         Mention that shells no longer inherit IFS.
10847         Don't recommend PATH_SEPARATOR=';' so strongly.
10848         Mention that $RANDOM might expand to the empty string.
10849         "symlink" and "soft link" -> "symbolic link".
10850         Improve mktemp description (reported by Bruno Haible).
10852 2005-02-05  Paul Eggert  <eggert@cs.ucla.edu>
10854         * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
10855         * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
10856         Likewise.
10857         * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
10858         Likewise.
10860 2005-02-04  Paul Eggert  <eggert@cs.ucla.edu>
10862         * NEWS: Mention AT_COPYRIGHT.
10864         * tests/local.at (AT_CMP): Use diff directly on input files rather
10865         than copying them.
10867         * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
10868         /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
10870 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
10871         and Paul Eggert  <eggert@cs.ucla.edu>
10873         * tests/autotest.at (Empty test suite): New test.
10874         * tests/torture.at (Substitute and define special characters)
10875         (Substitute a 2000-byte string, Define to a 2000-byte string)
10876         (Substitute a newline, Define a newline): New tests.
10878 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
10880         * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
10881         * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
10882         (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
10883         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
10884         (Standard regular expressions): New test.
10885         (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
10886         excess test name quoting.
10887         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
10888         CPPFLAGS to `configure' instead of setting it in `configure'.
10890         * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
10891         any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
10892         on some platforms.
10894         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
10895         s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
10897         * tests/local.at (AT_CMP): New macro.
10898         (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
10899         (AC_SAVE_STATE): Move environment grep...
10900         (AT_CHECK_ENV): to here.  Filter out `'$''.  Use AT_CMP.
10901         (AT_CONFIG_CMP): New macro.
10902         (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
10903         * tests/c.at (Extensions): Do not exit early.
10904         * tests/atlocal.in: Inherit $GREP.
10906         * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
10907         (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
10909         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
10910         (AC_COPYRIGHT): Factor header comment portion out and move into...
10911         * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
10912         * lib/autotest/general.at (AT_COPYRIGHT): New macro.
10913         (AT_INIT): Add Autotest copyright notice.  Display copyright notices in
10914         --version output.
10915         * tests/local.at: Add Autoconf test suite copyright notice.
10916         * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
10918 2005-02-04  Bruno Haible  <bruno@clisp.org>
10919         and Paul Eggert  <eggert@cs.ucla.edu>
10921         * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
10923 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
10925         * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
10926         this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
10928         Try not to generated lines of unlimited length, as POSIX places a
10929         2047-byte limit on line length of portable text files.
10930         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
10931         Use newline as a separator, not space.
10932         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
10933         (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
10934         space.
10936 2005-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10938         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
10939         as_func_*.  Add test to check whether positional parameters
10940         are restored after function return.
10942 2005-02-02  Paul Eggert  <eggert@cs.ucla.edu>
10944         * doc/autoconf.texi (Special Shell Variables): Mention _,
10945         BIN_SH, DUALCASE.  Say that variables other than "status" are safe
10946         if they contain a lower-case letter.  The DUALCASE problem was
10947         reported by Ralf Wildenhues.
10949         * bin/autoconf.as: Don't exit with status 0 after write failure
10950         with --help or --version.
10951         * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
10952         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
10954 2005-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10956         * doc/autoconf.texi (Limitations of Usual Tools):
10957         Unicos 9 sed limitations.
10958         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
10959         to get the option-enhanced interface on older Crays.  Try ftn for
10960         Fortran 95 (newer Crays).
10962 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
10964         * man/Makefile.am (.x.1): Go back to the simple solution, but take
10965         care to echo the commands, so the user knows what's going on.
10966         Modified from a suggestion by Stepan Kasal.
10968         * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
10969         with a cross reference.  Derived from a suggestion by Bruce Korb.
10971 2005-01-31  Paul Eggert  <eggert@cs.ucla.edu>
10973         * doc/autoconf.texi (config.status Invocation): Warn about
10974         discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
10975         * doc/install.texi (Defining Variables): Likewise.
10976         Based on a proposed patch by Ralf Wildenhues.
10978         * man/Makefile.am (.x.1): Make sure the required generated files
10979         are up to date.  Problem and original solution proposed by Stepan Kasal.
10980         $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
10981         implicit-man-prerequisites): New rules, used by the above.
10983         * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
10984         * config/config.guess, config/config.sub, config/install-sh: Likewise.
10985         * config/missing, config/texinfo.tex: Likewise.
10987 2005-01-29  Stepan Kasal  <kasal@ucw.cz>
10989         Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
10990         Update the long comment explaining it.
10992         m4_require no longer writes an ``is required by'' line to the
10993         execution stack.  It contains only one bit of non-redundant
10994         information: that the macro was required, not called.  And even
10995         this bit is useless in most situations: have you ever met a macro
10996         which both calls and requires the same macro?
10998         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
10999         (_m4_defun_pro_outer): ... only via this macro, for the outermost
11000           macro.
11001         (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
11002         (m4_expansion_stack_pop): Remove the misplaced comment.
11003         (m4_require): Don't put the ``is required by'' line to the
11004           execution stack; slightly improve the out-of-a-defun error message.
11005         (_m4_divert_grow): New macro, counter for the temporary diversions.
11006         (_m4_require_call): Use it.
11007         * tests/m4sugar.at (m4_require): Expect output without the
11008           ``is required by'' messages.
11010 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11012         * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
11013         rather than x for expr.
11015         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
11016         this is safe.
11017         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
11018         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
11019         * lib/autotest/general.m4 (AT_INIT): Likewise.
11020         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
11021         * tests/mktests.sh: Likewise.
11023 2005-01-27  Akim Demaille  <akim@epita.fr>
11025         Have autoheader honor --force.
11027         * doc/make-stds.texi, doc/standards.texi: Update from masters.
11028         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
11029         * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
11030         from masters, so that FileUtils.pm's update_file provide --force
11031         support.
11032         * bin/autoheader.in: Pass $force to update_file so that
11033         config.h.in is always recreated when --force.
11035 2005-01-24  Stepan Kasal  <kasal@ucw.cz>
11037         * doc/autoconf.texi (Introduction): Update Peter Simons' address.
11039 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11041         * doc/autoconf.texi (Limitations of Builtins): Clarify that
11042         "if test ! -d foo; ..." is portable.  Suggested by Stepan Kasal.
11044 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
11046         * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
11047         Warn about newline stripping in `` and $().  Update Solaris
11048         version to 9.
11049         (Limitations of Builtins): Use expr "X...", not expr "x...", as
11050         X insulates us from future changes to Posix.
11051         (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
11052         stripping.
11054 2005-01-19  Stepan Kasal  <kasal@ucw.cz>
11056         * doc/autoconf.texi (Defining Symbols): Delete the false comment that
11057           you cannot use AC_DEFINE to define macros containing `[' or `]'.
11059 2005-01-13  Paul Eggert  <eggert@cs.ucla.edu>
11061         * doc/autoconf.texi (Limitations of Usual Tools): Document bug
11062         in Solaris 8 join.  Problem reported by Tomohiro Suzuki on
11063         bug-tar mailing list.
11065 2005-01-05  Stepan Kasal  <kasal@ucw.cz>
11067         * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
11069 2005-01-05  Paul Eggert  <eggert@cs.ucla.edu>
11071         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
11072         ulongval to be static, to avoid unwanted GCC warning.  Problem
11073         reported by Michael Jennings via Daniel Reed; see
11074         <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
11076 2005-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
11078         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
11079         docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
11080         datadir, infodir, and mandir.  Adjust argument parsing code.
11081         (_AC_INIT_HELP): Update help text.
11082         * doc/autoconf.texi (Installation Directory Variables): Document
11083         new variables.
11085 2005-01-04  Noah Misch  <noah@cs.caltech.edu>
11087         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
11088         not seem to work, assume it does set $(MAKE).
11089         * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
11091 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
11093         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
11095 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
11097         A cleanup of the diversion support in m4sugar.
11099         * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
11100         (_m4_divert_n_stack): New macro; the expansion is
11101           <newline>m4_divert_stack, if m4_divert_stack is defined, and void
11102           otherwise.
11103         (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
11104         (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
11105           stored in _m4_divert_diversion or _m4_divert_dump.
11106         (m4_divert_pop): When the parameter is given, compare the symbolic
11107           name with the last diversion pushed on the stack.  Previously, the
11108           current diversion was compared with the numeric value of the
11109           diversion given as the parameter.
11110         (m4_require): If the macro hasn't been expanded yet, call ...
11111         (_m4_require_call): this new macro.
11113 2005-01-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11115         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
11116         Workarounds for documented `case' limitations.
11118 2005-01-03  Paul Eggert  <eggert@cs.ucla.edu>
11120         * doc/autoconf.texi (Limitations of Usual Tools): Warn about
11121         sed 'command1;command2'.  Problem reported by Ralf Wildenhues.
11123 2005-01-02  Paul Eggert  <eggert@cs.ucla.edu>
11125         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
11126         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
11127         bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
11129         Patch from Roger Leigh (with some minor changes) as follows:
11130         * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
11131         Resurrect AC_PROG_CC_STDC.
11132         * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
11133         AC_PROG_CC_C89, AC_PROG_CC_C99.
11134         (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
11135         * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
11136         AC_PROG_CC_C99): New macros.
11137         (AC_PROG_CC_STDC): Use them.
11138         (_AC_PROG_CC_STDC): Remove.
11139         (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
11140         * THANKS: Add Roger Leigh.
11142 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
11144         * bin/autoreconf.in (autoreconf_current_directory):  AM_INIT_AUTOMAKE
11145         signals that the package uses Automake; a `Makefile.am' is typical but
11146         not essential.  Reported by Magnus Therning.
11147         * tests/torture.at (autoreconf.): New banner.
11148         (autoreconf and non-AC configure): Rename to `Non-Autoconf
11149         AC_CONFIG_SUBDIRS'.
11150         (autoreconf an empty directory): Rename to `Empty directory'.
11151         (Unusual Automake input files): New test.
11153 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
11155         * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
11156         (AT_SETUP): Clear AT_capture_files.
11157         (_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
11158         (AT_KEYWORDS): Fix comment typo.
11159         * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
11160         * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
11161         * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
11163 2004-12-29  Albert Chin-A-Young  <china@thewrittenword.com>
11165         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
11166         If the variable to set is already set, set ac_cv_path_$1
11167         to the preset value so caller can assume ac_cv_path_$1
11168         is available.  (trivial change)
11170 2004-12-27  Noah Misch  <noah@cs.caltech.edu>
11172         * BUGS (Minor Problems): Warn about makefile limitations.
11173         * Makefile.am: Find and update `INSTALL' in $(srcdir).
11174         * man/Makefile.am: Find and update manual pages in $(srcdir).
11176 2004-12-24  Eric Blake  <ebb9@byu.net>
11178         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
11179         shells in subshell, to avoid noise from ash.  (trivial change)
11181 2004-12-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11183         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
11184         problems with SunOS ksh and backslash escaping, Bourne shells and
11185         closing brackets (both within character classes).  Bug reported
11186         against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
11187         <read>: New entry.  Mention non-availability of -r.
11189 2004-12-21  Akim Demaille  <akim@epita.fr>
11191         * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
11192         avoid cluttering displayed messages.  Rather, prepend srcdir where
11193         AT_LINE is used for log files.
11195 2004-12-21  Stepan Kasal  <kasal@ucw.cz>
11197         * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
11198         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
11199           no longer part of the macro, quote the occurrence of ``$tmp''.
11200         * doc/autoconf.texi (Forbidden Patterns): Typo.
11202 2004-12-21  Akim Demaille  <akim@epita.fr>
11204         * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
11205         separated from the test title by forcing a white space.
11207 2004-12-21  Akim Demaille  <akim@epita.fr>
11209         Enable Emacs navigation within testsuite.log files.
11211         * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
11212         use the compilation mode.
11213         (AT_LINE): Point to the srcdir.
11215 2004-12-19  Noah Misch  <noah@cs.caltech.edu>
11217         * tests/Makefile.am (installcheck-local): Use $(bindir).
11218         (check-local, installcheck-local): Pass TESTSUITEFLAGS.
11219         * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
11220         Makefile.am scheme Autoconf now uses.
11222 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
11224         * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
11225         * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
11227 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
11229         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
11230         (_AT_CHECK): Use it.
11231         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
11232         (AS_ESCAPE): Fix comment.
11233         * tests/autotest.at: Adjust section banner comments.
11234         (AT_CHECK_AT): Accept STATUS and STDERR.
11235         (AT_CHECK_AT_TEST): Likewise.
11236         (Invalid brace-enclosed parameter expansion)
11237         (Multiline command from M4 expansion)
11238         (Double-M4-quoted command): New tests.
11240 2004-12-17  Paul Eggert  <eggert@cs.ucla.edu>
11242         * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
11244 2004-12-17  Akim Demaille  <akim@epita.fr>
11246         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
11247         m4_pattern_allow.
11248         Suggested by Alexandre Duret-Lutz.
11249         * doc/autoconf.texi (Setting Output Variables): Catch up.
11251 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
11253         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
11255 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
11257         * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
11258           remove the comment which said we cannot.
11260 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
11262         Add a specialized check for resolv.h.  Thanks to Gerrit P. Haase,
11263         Reini Urban and Paul Eggert for reporting the dependencies.
11265         * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
11266         * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
11267         (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
11269 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
11271         * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
11272           so that eg. ``autoscan --help'' doesn't truncate it.
11274 2004-12-15  Nicolas Joly  <njoly@pasteur.fr>
11276         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
11277         generated conftest files.
11279 2004-12-13  Noah Misch  <noah@cs.caltech.edu>
11281         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
11282         tracing on commands with possibly-escaped newlines.
11283         * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
11284         discontinued behavior and its implications.
11285         * tests/autotest.at (BS-newline in command, ^BS-newline in command)
11286         (BSx641-newline in command, BS-BS-newline in command)
11287         (BSx640-newline in command, Newline-CODE-BS-newline in command)
11288         (Single-quote-BS-newline in command)
11289         (Single-quote-newline-BS-newline in command): New tests.
11291 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
11293         * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
11294           on platforms where it works.
11295         (_AS_TEST_PREPARE): Test for ``test -x''.
11296         (_AS_BROKEN_TEST_PREPARE): Nuke.
11298 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
11300         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
11301         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
11302           give only 4-letter prefix to AS_TMPDIR, comment fixed.
11303         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
11304           create the temporary directory.
11305         (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
11307 2004-12-12  Kelley Cook  <kcook@gcc.gnu.org>
11309         * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
11310         (trivial change)
11312 2004-12-12  Alexandre Duret-Lutz  <adl@gnu.org>
11314         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
11316 2004-12-11  Noah Misch  <noah@cs.caltech.edu>
11318         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
11319         to avoid using a negated character class.  Reported by Nicolas Joly.
11320         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
11322 2004-12-10  Paul Eggert  <eggert@cs.ucla.edu>
11324         * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
11325         autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
11326         Don't depend on .x file explicitly, since "make" does that for us.
11327         Suggested by Stepan Kasal.
11329         * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
11330         Add *.tmp.
11331         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
11332         ifnames): Factor common code.  And they said it couldn't be done!
11334 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
11336         * bin/.cvsignore: Add autoconf.in.
11337         * tests/.cvsignore: Add wrapper.in.
11338         * lib/autotest/general.m4: Escape '$' in case pattern.
11340 2004-12-09  Noah Misch  <noah@cs.caltech.edu>
11342         * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
11344         * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
11346         * tests/autotest.at: New file.
11347         * tests/suite.at: Include it.
11348         * tests/Makefile.am: Distribute it.
11350         * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
11351           shell tracing on a command that could contain multiple lines.
11352         * doc/autoconf.text: Document that fact and its implications.
11353         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
11354         * tests/autotest.at (Multiline backquote command substitution,
11355           Multiline parameter expansion, Literal multiline command,
11356           Multiline parenthetical command substitution): Remove XFAIL.
11358 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
11360         * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
11361         and suggest AC_SEARCH_LIBS.  Suggested by Noah Misch and Stepan Kasal.
11363 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
11365         * configure.ac (test suite): Cease to generate wrapper scripts.
11366         * configure: Regenerate.
11367         * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
11368         (m4f_dependencies): Adjust accordingly.
11369         * tests/Makefile.am (Wrappers): Generate wrapper scripts.
11370         (wrapper.in): Generate it in the build directory.
11371         (MAINTAINERCLEANFILES): Delete wrapper.in.
11372         (CLEANFILES): Add wrapper.in.
11373         * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
11374         the output.  Replace each $as_me with a @wrap_program@.
11375         * tests/wrapper.in: Delete it; we always build it.
11377         * bin/Makefile.am (autoconf.in): Generate it in the build directory.
11378         (EXTRA_DIST): Remove autoconf.in.
11379         (CLEANFILES): Add autoconf.in.
11380         (autoconf): Find autoconf.in in the build directory.
11381         * bin/autoconf.in: Delete it; we always build it.
11383 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
11385         * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'.  Join
11386         PATH members so as to not prepend an empty element.  Move a comment.
11387         * Makefile.am (SUBDIRS): Build in `tests' last.
11388         * tests/Makefile.am (installcheck-local): Add check-local dependencies.
11390 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
11392         * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
11393         the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
11394         <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
11395         Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
11397 2004-12-07  Stepan Kasal  <kasal@ucw.cz>
11399         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
11400         patch: extra "-l"s.
11402 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
11404         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
11405         looking elsewhere for getmntent.  Problem reported by Mark D. Baushke.
11406         * doc/autoconf.texi (Particular Functions): Mention new behavior.
11408 2004-12-03  Stepan Kasal  <kasal@ucw.cz>
11410         * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
11411           out the common code to ...
11412         (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
11413           value of the #define--default to 1, iff the macro was called
11414           with exactly one parameter.
11416 2004-12-02  Paul Eggert  <eggert@cs.ucla.edu>
11418         * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
11419         "char c = '\200';" rather than "char c = 0x80;" as the
11420         latter doesn't conform to the strict C standard due to
11421         overflow on signed char hosts.
11423         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
11424         to -qlanglvl=ansi.  We don't want to disable extensions.
11426 2004-11-29  Paul Eggert  <eggert@cs.ucla.edu>
11428         * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
11429         (Using Autotest, testsuite Scripts, Writing testsuite.at):
11430         Reword slightly to avoid some English-language problems noted
11431         by Ralf Wildenhues in:
11432         http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
11434 2004-11-29  Stepan Kasal  <kasal@ucw.cz>
11436         * NEWS: Add ^L above each release.
11438 2004-11-28  Paul Eggert  <eggert@cs.ucla.edu>
11440         Fix documentation problems reported by Russ Boylan in
11441         <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
11442         along with some nearby cruft.
11443         * doc/autoconf.texi (Libtool): Libtool can be used without
11444         Automake (not without Autoconf).
11445         (Introduction): Mention lists.gnu.org.
11446         * BUGS: Don't mention bugs.gnu.org.
11447         Remove mention of ancient libtool compatibility problem.
11448         * NEWS: Mention that bugs.gnu.org is kaput.
11449         * README: Likewise.  Mention where mailing list archives can be found.
11451 2004-11-28  Stepan Kasal  <kasal@ucw.cz>
11453         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
11455 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
11457         * doc/autoconf.texi (Pretty Help Strings): Go back to
11458         single-quoting assignments to cache variables.
11460 2004-11-23  Stepan Kasal  <kasal@ucw.cz>
11462         * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
11463         with the examples; fix the bug in MY_ARG_WITH example reported
11464         by Alexandre Duret-Lutz.
11465         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
11466         expansion of $1 in the comment emitted to configure.
11468 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
11470         * doc/autoconf.texi (Pretty Help Strings): Fix typo
11471         in my editing of the previous patch.  Problem reported
11472         by Alexandre Duret-Lutz.
11474 2004-11-22  Stepan Kasal  <kasal@ucw.cz>
11476         * doc/autoconf.texi (Autoconf Language): Explain that
11477         ``descriptions'' may not be double quotes.
11478         (Quotation Rule Of Thumb): Likewise.
11479         (Pretty Help Strings): Likewise; remove the wrong comment;
11480         simplify the examples and improve their quoting.
11482 2004-11-13  Stepan Kasal  <kasal@ucw.cz>
11484         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
11485         the $1_found variable, don't test whether the file is executable;
11486         Both things are checked ...
11487         (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
11488         the former ``test -f''.
11489         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
11491 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
11493         * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
11494         use cp -R instead.
11496 2004-11-10  Derek R. Price  <derek@ximbiot.com>
11498         * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
11499         limitations.  Reorder paragraphs for clarity.
11501 2004-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11503         * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
11504         to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
11505         variants", "Unix", and some related minor wording fixups.
11507         (Shellology, Special Shell Variables): Document that the Zsh
11508         problem with NULLCMD was fixed in zsh 3.1.6-dev-18.  Thanks
11509         to Alexandre Duret-Lutz for this info.
11511 2004-10-10  Alexandre Duret-Lutz  <adl@gnu.org>
11513         * doc/autoconf.texi (One-Shot Macros): New node.
11515 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
11517         * doc/autoconf.texi (Function Portability): Fix misdescription
11518         of putenv.  Problem reported by Michael Wardle.
11520 2004-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11522         * doc/autoconf.texi (auindex): New macro.
11523         (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
11524         Problem reported by Stepan Kasal.
11526 2004-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11528         Fix problems reported by Andreas Buening in:
11529         http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
11530         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
11531         in test makefile.
11532         * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
11533         readable; it's not true in OS/2-emx.
11535 2004-09-04  Paul Eggert  <eggert@cs.ucla.edu>
11537         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
11538         "/usr/include", clear ac_x_includes instead of leaving it as "no"
11539         (trivial change).  Problem and patch reported by Andrew Church in:
11540         http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
11542 2004-09-03  Paul Eggert  <eggert@cs.ucla.edu>
11544         * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
11545         three args in examples.  Problem reported by Frederik Fouvry in:
11546         http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
11547         Also, fix some minor spacing and punctuation bugs.
11549 2004-09-02  Akim Demaille  <akim@epita.fr>
11551         * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
11552         "case" to restore ordering.
11553         Reported by Stepan Kasal.
11555 2004-08-26  Akim Demaille  <akim@epita.fr>
11557         * doc/autoconf.texi: Minor typos and stylos.
11559 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
11561         * configure.ac (AC_INIT): Bump to 2.59c.
11563 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
11565         Version 2.59b.
11567         * README: Add advice about m4 1.4.2.
11569         * Makefile.cfg (wget_files): Remove config.guess, config.sub,
11570         texinfo.tex for now (done by hand now).
11571         * Makefile.maint (wget_files, cvs_files):
11572         Remove ansi2knr.c; nobody uses it.
11573         (ansi2knr.c-url_prefix): Remove.
11574         (cvs-update): Fix test for failure.  I don't know why it ever
11575         worked...
11577         * doc/autoconf.texi: Update URLs, some of which went stale.
11578         Use @uref rather than @href.
11580         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
11581         handle "--" as per POSIX.  Suggested by Paul Pogonyshev.
11583         * config/config.guess, config/config.sub, config/elisp-comp,
11584         config/install-sh, config/mkinstalldirs, config/texinfo.tex,
11585         doc/fdl.texi, doc/standards.texi: Sync with master copy.
11587         * NEWS, TODO, configure.ac, bin/autoscan.in,
11588         bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
11589         doc/install.texi, lib/Autom4te/Configure_ac.pm,
11590         lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
11591         lib/autoconf/programs.m4, lib/autoconf/status.m4,
11592         lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
11593         lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
11594         tests/tools.at, tests/torture.at:
11595         Use "file name" rather than "filename" or "path",
11596         to be consistent with the terminology of the GNU coding standards.
11598 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
11600         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
11601         AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
11602         HP-UX 11.23 cc/aCC or Tru64 4.0 cc.  Problem reported by Noah Misch in
11603         <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
11605         More fixes to support spaces in the name of the build directory.
11606         This isn't a complete fix but it's an improvement.
11608         * bin/autoconf.as (autom4te_options): New var.
11609         Use it instead of appending to AUTOM4TE, so that we can allow
11610         spaces in the build directory's absolute name.
11611         * bin/autoheader.in ($autoconf): Allow spaces in file names.
11612         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
11613         AT_CHECK_NOESCAPE): Likewise.
11614         * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
11615         main program): Likewise.
11617 2004-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11619         * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
11620         From Ralf Corsepius in:
11621         http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
11623 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11625         * doc/autoconf.texi (Function Portability): Document isinf and
11626         and isnan.  From a suggestion by Kevin Ryde.
11628         * lib/Autom4te/General.pm (END): Return correct exit status even
11629         if unlink succeeds and sets $?.  Needed with Solaris 8's perl 5.00503.
11631 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
11633         * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
11634         for compatibility with Automake 1.4.  Reported by J C Fitzgerald in
11635         <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
11637 2004-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
11639         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
11640         (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
11641         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
11642         * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
11643         * lib/autom4te.in (Automake-preselections): Preselect
11644         AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
11646 2004-08-02  Alexandre Duret-Lutz  <adl@gnu.org>
11648         * lib/autom4te.in (Automake-preselections): Preselect
11649         AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
11650         trace them.
11652 2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
11654         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
11655         Tru64.
11656         * doc/autoconf.texi (Shellology): Mention BIN_SH.
11657         Document problem with "`""`" in pdksh POSIX mode.
11659 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
11661         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
11662         with pdksh, too.  Problem reported by Patrick Welche via
11663         Gary V. Vaughan.
11664         * doc/autoconf.texi (Shellology): Note that set -o posix is
11665         useful for pkdsh, too.
11667 2004-06-24  Paul Eggert  <eggert@cs.ucla.edu>
11669         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
11670         _AS_UNSET_PREPARE, so that we can use $as_unset directly.
11671         Don't fail if ENV or BASH_ENV is readonly.
11672         (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
11673         etc. are read only.  Problem reported by Ludovic Courtes.
11675 2004-06-23  Noah Misch  <noah@cs.caltech.edu>
11677         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
11678         zsh, disable GLOB_SUBST to avoid backslash handling problems.
11679         (trivial change)
11681 2004-06-04  Paul Eggert  <eggert@cs.ucla.edu>
11683         * doc/autoconf.texi (File System Conventions): Warn about
11684         names like "aux".  Problem reported by Eric Blake.
11686         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
11687         by zero instead of array size, so that we can use any arithmetic
11688         constant expression (instead of requiring an integer constant
11689         expression).  This allows us to test expressions like DBL_MAX <
11690         LDBL_MAX, which didn't conform to the C standard using the old
11691         method.
11692         (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
11693         now that we can do floating-point tests at compile time.
11695 2004-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11697         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
11698         and LDBL_EPSILON, as the resulting expression isn't an
11699         integer constant expression and violates the C standard.
11700         Problem reported by Nelson H. F. Beebe.  Also, check
11701         for "L" suffix, and check that long double doesn't have
11702         worse range or precision than double, that mixed-mode
11703         arithmetic doesn't generate a diagnostic, that double
11704         constants fit in long double.
11706 2004-06-03  Kevin Ryde  <user42@zip.com.au>
11708         * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
11709         malloc(0) and realloc(NULL,size).
11711         * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
11712         Bob Proulx.
11714 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
11716         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
11717         in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].  Problem reported
11718         by Jim Meyering.
11720 2004-05-26  Paul Eggert  <eggert@cs.ucla.edu>
11722         * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
11723         can be rewritten using if-then-else.  Suggested by Bruno Haible.
11725 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
11727         * doc/autoconf.texi (testsuite Scripts): Fix typo.
11728         Problem reported by Stepan Kasal.
11730 2004-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11732         * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
11733         change).  Patch reported by Ralf Wildenhues in
11734         <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
11736         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
11737         function F exists if the compiler and linker let you compile an
11738         expression like (F != 0).  Recent versions of GCC optimize away
11739         the reference to F in that case, since every function address must
11740         be nonzero, so the link succeeds even if F does not exist.
11741         Problem reported by Manu in
11742         <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
11744         * doc/autoconf.texi (Systemology): Standardize on the spelling of
11745         "Unix".  Many uses changed.
11746         (Limitations of Builtins): Explain better why the ! command isn't
11747         portable.
11749 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
11751         * lib/autom4te.in (Automake-preselections): Preselect
11752         LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
11754 2004-05-19  Kevin Ryde  <user42@zip.com.au>
11756         * doc/autoconf.texi (Function Portability): Add strerror_r, cross
11757         referencing AC_FUNC_STRERROR_R.
11759         * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
11760         note pessimistic assumption when cross compiling.
11762 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11764         * doc/autoconf.texi (Limitations of Make): Note that BSD make
11765         (until 2004) invoked subcommands with sh -e, contra POSIX.
11766         Reported by Kevin Ryde.
11768 2004-05-10  Eric Sunshine  <sunshine@sunshineco.com>
11770         * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
11771         _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
11772         "        $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
11773         `test -f "        /usr/bin/grep"', which _always_ failed.
11774         (AC_PROG_SED): Ditto bogus PATH fix.
11775         * autoconf.texi (AC_PROG_GREP): Properly document that this macro
11776         requires that grep correctly supports _multiple_ `-e' options, rather
11777         than stating only that grep should accept `-e'.
11779 2004-05-03  Paul Eggert  <eggert@cs.ucla.edu>
11781         Port to C99, which requires that 'exit' be declared.
11783         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
11784         to ensure that stdlib.h is included.
11785         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
11786         AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
11787         _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
11788         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
11789         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
11790         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
11791         when using 'exit' in a test; C99 requires that 'exit' be declared.
11793 2004-05-02  Paul Eggert  <eggert@cs.ucla.edu>
11795         * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
11796         now prefers 'grep' implementations that accept -e.
11797         (Limitations of Usual Tools): Describe problems of traditional
11798         egrep and fgrep with long input lines, and of traditional grep
11799         with -e.
11800         * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
11801         (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
11802         All callers changed.  Append /usr/xpg4/bin to the PATH, for
11803         Solaris.
11804         (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
11805         the user with complaints about multiple -e options.
11806         * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
11807         Define it with AC_PROG_GREP.
11808         * configure.ac (AC_PROG_GREP): Add.
11809         * lib/freeze.mk (GREP): New macro.
11811 2004-05-02  Eric Sunshine  <sunshine@sunshineco.com>
11813         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
11814         a possible candidate only after all others fail, rather than
11815         consulting it first.  This improves backward compatibility by
11816         better reflecting the way shell selection occurred in previous
11817         versions of Autoconf, and should help to avoid triggering latent
11818         problems in other packages, such as the one in Automake where zsh
11819         is not handled robustly:
11820         http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
11821         Although it is not Autoconf's responsibility to work around
11822         problems in Automake, it nevertheless makes sense to avoid
11823         introducing unnecessary incompatibilites.
11825 2004-04-22  Albert Chin-A-Young  <china@thewrittenword.com>,
11826             Gary V. Vaughan  <gary@gnu.org>
11828         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
11829         how deeply nested we are when a suitable tool is found, set the
11830         ac_path_TOOL_found flag.
11831         (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
11832         nested we are in this macro.  Break out of all 3 nested loops if
11833         ac_path_TOOL_found is set.
11835 2004-04-21  Gary V. Vaughan  <gary@gnu.org>
11837         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
11838         of the _AS_PATH_WALK loop too if GNU flavor is found.
11840 2004-04-21  Alexandre Duret-Lutz  <adl@gnu.org>
11842         * doc/autoconf.texi (Limitations of Make): Update documentation
11843         for `$<'.  New entry `Long lines', based on a report from Simon
11844         Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
11845         paragraph about DJGPP, based on a mail from Richard Dawe.
11847 2004-04-20  Paul Eggert  <eggert@twinsun.com>
11849         * tests/c.at (C keywords): Don't assume that GCC supports
11850         "restrict" and "inline", as sufficiently-old GCC versions do not
11851         (also, GCC configured to be in pedantic C89 mode does not).
11852         Problem reported by Sumit Pandya in:
11853         http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
11855         * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
11856         consider -g to work if it generates warnings when plain compiles
11857         don't.  Problem reported by Braden McDaniel in:
11858         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
11860         * doc/autoconf.texi (Slashes): New section, to document a problem
11861         reported by Jim Meyering in:
11862         http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
11864         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
11865         linker output files before linking, to work around IRIX 6 linker bug.
11866         Problem reported by Rainer Orth in:
11867         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
11869 2004-04-20  Gary V. Vaughan  <gary@gnu.org>
11871         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
11872         best tool so far counter rely on the tool path variable name to
11873         avoid checks for one tool being affected by the results of running
11874         the length check on a previous tool.
11876         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
11877         match expression argument, as different greps have different
11878         regular expression flavours.
11879         (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
11880         literals.
11881         (AC_PROG_EGREP): Pass 'EGREP$'.
11882         (AC_PROG_GREP): Pass 'GREP$'.
11884 2004-04-20  Albert Chin-A-Young  <china@thewrittenword.com>
11886         * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
11887         is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
11889 2004-03-29  Paul Eggert  <eggert@twinsun.com>
11891         * doc/autoconf.texi (Particular Headers, Particular Types, Generic
11892         Types, Specific Compiler Characteristics, System Services,
11893         Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
11894         etc. consistently instead of 'long', 'short', 'unsigned' etc.
11895         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
11896         * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
11897         Likewise.
11898         * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
11899         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
11900         AC_TYPE_OFF_T): Likewise.
11901         * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
11902         Likewise.
11904         * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
11905         pacify libtool 1.5.2.  Fix quoting problems in sed command.
11907 2004-03-28  Paul Eggert  <eggert@twinsun.com>
11909         * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
11910         now defines HAVE_DECL_TZNAME if it is declared, when
11911         HAVE_STRUCT_TM_TM_ZONE is not defined.
11912         * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
11913         Do not assume atoi.  Rely on HAVE_DECL_TZNAME when testing
11914         for HAVE_TZNAME.
11916 2004-03-28  Steven G. Johnson  <stevenj@fftw.org>
11918         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
11919         superfluous backslashing of quotes (") in sed expressions;
11920         thanks to Paul Eggert.
11922 2004-03-26  Steven G. Johnson  <stevenj@alum.mit.edu>
11924         * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
11925         Fortran compiler is ifort, also added pghpf; thanks to Nelson
11926         H. F. Beebe for the bug report.
11928 2004-03-26  Steven G. Johnson  <stevenj@fftw.org>
11930         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
11931         quoted -cmdline argument in Portland Group compiler (bug
11932         reported by Jeffrey J. Barteet).
11934 2004-03-25  Kevin Ryde  <user42@zip.com.au>
11936         * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
11937         (Run Time): ... here, where it's now mentioned.
11939 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
11941         * doc/autoconf.texi (autom4te Invocation): Language Autoconf
11942         inherits from language Autoconf-without-aclocal-m4.
11943         (Customizing autom4te): Adjust example; the cache must now be
11944         disabled for language Autoconf-without-aclocal-m4.
11946 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
11947             Nathanael Nerode  <neroden@twcny.rr.com>
11949         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
11950         AC_CHECK_TOOLS): Warn if a cross-tool is found without
11951         a prefix.
11952         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
11953         AC_CHECK_TARGET_TOOLS): New macros.
11954         * doc/autoconf.texi (Generic Programs): Document
11955         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
11956         AC_CHECK_TARGET_TOOLS, and warn for future changes
11957         in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
11958         AC_CHECK_TOOLS.
11959         (Specifying Names): Document the reason for these future
11960         behavioral changes.
11961         * tests/mktests.sh: Do not generate tests for the
11962         new macros.
11963         * NEWS: Document these changes.
11965         * doc/autoconf.texi: Avoid macros with unbraced arguments,
11966         they make TeX hang up.
11968 2004-03-15  Paul Eggert  <eggert@bogus.example.com>
11970         * NEWS: New macro AC_CHECK_ALIGNOF.
11971         * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
11972         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
11973         int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
11974         vowel.
11975         (AC_CHECK_ALIGNOF): New macro.
11976         * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
11977         * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
11978         those for sizeof.
11980 2004-03-03  Paul Eggert  <eggert@twinsun.com>
11982         * bin/Makefile.am (edit): Don't use $< in a context where
11983         POSIX doesn't require support for it.  Use $@.in instead.
11984         Problem reported by Anthony N. Frasso in
11985         <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
11986         * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
11988 2004-02-23  Gary V. Vaughan  <gary@gnu.org>
11990         * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
11991         from the next generation of Libtool.
11992         * lib/autom4te.in (Autoreconf-preselections): Ditto.
11994 2004-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
11996         * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
11997         is not always thread-safe.  Report from Nathanael Nerode.
11999 2004-02-18  Paul Eggert  <eggert@twinsun.com>
12001         Fix a dependencies problem, stemming from a Autoconf 2.59 build
12002         problem on QNX reported by Stephen Rasku in
12003         <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
12005         * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
12006         $(m4sh_m4f_dependencies); this removes a FIXME.
12007         * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
12008         (MAINTAINERCLEANFILES): Split into pieces,
12009         one per related section.  Add $(srcdir)/wrapper.in.
12011 2004-02-09  Paul Eggert  <eggert@twinsun.com>
12013         * doc/autoconf.texi (Setting Output Variables): Emphasize that
12014         AC_SUBST provides no portable way to escape literal newlines.
12016         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
12017         flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
12018         Darwin uses -lcrt2.o and there's little point to cataloging all
12019         the system variants.  Partial fix reported by Andreas Waechter in:
12020         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
12021         for bug reported by Nelson H. F. Beebe in:
12022         http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
12024 2004-02-04  Paolo Bonzini  <bonzini@gnu.org>
12026         * doc/autoconf.texi (AU_DEFUN): Fix English,
12027         suggested by Paul Eggert.
12028         * lib/autoconf/autoupdate.m4: Correct reference to
12029         acobsolete.m4, suggested by Alexandre Duret-Lutz.
12031 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
12033         * bin/autoupdate.in: Define __file__ so that warnings
12034         refer to the correct file.
12035         * doc/autoconf.texi (AU_DEFUN): Describe more correctly
12036         the behavior of the third argument.
12037         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
12038         correctly the behavior of the third argument.  Document
12039         what the three macros that AU_DEFUN defines do.  Fix
12040         warning message when the third argument includes $0
12041         (reported by Alexandre Duret-Lutz).
12043 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
12044             Eric Sunshine  <sunshine@sunshineco.com>
12045             Paul Eggert  <eggert@twinsun.com>
12047         * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
12048         (AS_INIT): Output shell initialization there. Removed optional
12049         parameter. Expand _AS_SHELL_FN_SPY.
12050         (AS_INIT_WITH_SHELL_FN): Removed.
12051         (_AS_SHELL_FN_SPY): New macro.
12052         (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
12053         macros.
12054         (AS_SHELL_SANITIZE): Remove loop to find better shell
12055         and documentation for the parameter.
12056         (_AS_DETECT_BETTER_SHELL): Move it here.
12057         (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
12058         (_AS_RUN): Move it here, support testing with eval.
12059         (AS_REQUIRE_SHELL_FN): Require shell functions when
12060         it is used.
12061         (_AS_LINENO_WORKS): Put around braces, we do not
12062         trigger the bash bug anymore.
12063         * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
12064         use AS_INIT_WITH_SHELL_FN.
12065         * bin/autoconf.in, tests/wrapper.in: Regenerated.
12067 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
12069         * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
12070         * doc/autoconf.texi: Don't say that the third parameter
12071         is broken.
12072         * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
12073         (AU_DEFUN): Honor the third parameter, create autoupdate
12074         macros with AU_DEFINE.
12075         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
12076         AC_DIR_HEADER): Use AU_DEFUN's third parameter.
12077         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
12078         * lib/autoconf/programs.m4 (AC_RSH): Likewise.
12079         * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
12080         AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
12081         AC_XENIX_DIR): Likewise.
12082         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
12083         AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
12084         * lib/autoconf/status.m4: Remove FIXME.
12085         * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
12086         that the macro is not present anymore in the updated
12087         configure.ac.
12088         * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
12089         of autoupdate.
12091 2004-01-28  Paul Eggert  <eggert@twinsun.com>
12093         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
12094         copyright years.
12095         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
12096         2003 (except 1997) to the list of copyright years.  This undoes
12097         the 2003-05-22 change, which removed the older years from the list.
12098         * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
12100 2004-01-27  Gary V. Vaughan  <gary@gnu.org>
12101             Albert Chin-A-Young  <china@thewrittenword.com>
12103         * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
12104         grep or ggrep program in PATH that accepts as long lines as
12105         possible.
12106         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
12107         AC_PROG_GREP.
12108         (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
12109         egrep and fgrep respectively if $GREP -E/-F don't work.
12110         (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
12111         _AC_PROG_GREP, and AC_PROG_SED.
12112         (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
12113         longest input length accepted by a command.
12114         (AC_PROG_SED): Use it.
12115         * doc/autoconf.texi (Particular Programs): Document the changes.
12116         * NEWS: Updated.
12118 2004-01-27  Paul Eggert  <eggert@twinsun.com>
12120         * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
12121         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
12122         bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
12123         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
12125         * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
12126         bin/autoconf.in, config/Makefile.in, config/config.guess,
12127         config/config.sub, config/install-sh, config/mdate-sh,
12128         config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
12129         lib/Makefile.in, lib/Autom4te/Makefile.in,
12130         lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
12131         lib/autotest/Makefile.in, lib/emacs/Makefile.in,
12132         lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
12133         man/autoheader.1, man/autom4te.1, man/autoreconf.1,
12134         man/autoscan.1, man/autoupdate.1, man/config.guess.1,
12135         man/config.sub.1, man/ifnames.1, tests/Makefile.in,
12136         tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
12137         tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
12138         tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
12139         tests/actypes.at: Regenerate and/or sync with original
12140         sources.
12142 2004-01-26  Paul Eggert  <eggert@twinsun.com>
12144         * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
12145         HAVE_INTTYPES_H is defined.  This is needed on Tru64 5.1b with
12146         Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
12147         not <inttypes.h>.  Problem reported by Tim Mooney in
12148         <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
12149         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
12150         Likewise.
12152         * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
12153         otherwise "make check" fails because it forbids cmp (I guess
12154         because cmp treats files as binary on DOS-like systems).
12156         * tests/mktests.sh: Update copyright date to 2004, since some tests
12157         have changed in 2004.
12159 2004-01-23  Gary V. Vaughan  <gary@gnu.org>
12161         * lib/autoconf/programs.m4 (AC_PROG_SED):  New macro to test for a
12162         non-truncating sed or gsed program in PATH.
12163         * tests/acprograms.at: Add it.
12164         * doc/autoconf.texi (Particular Programs): Document it.
12165         * NEWS: Updated.
12167 2004-01-15  Paul Eggert  <eggert@twinsun.com>
12169         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
12170         -std1 disables some useful extensions on Tru64.  Problem reported
12171         by N. Lichtmaier in
12172         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
12174 2004-01-14  Paul Eggert  <eggert@twinsun.com>
12176         * doc/autoconf.texi (Programming in M4sh): Document that
12177         AS_MKDIR_P succeeds if the destination is a symbolic link
12178         to an existing directory.
12179         (Limitations of Usual Tools): Note that mkdir -p might not
12180         succeed on symlinks to directories.
12182 2004-01-13  Paul Hilfinger  <hilfinger@CS.Berkeley.EDU>
12184         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
12185         * bin/autoheader.in: Grammar fix in message.
12186         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
12187         Test for dir before calling mkdir -p.  (trivial changes)
12189 2004-01-13  Eric Blake  <ebb9@byu.net>
12191         * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
12192         AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
12194 2004-01-10  Jim Meyering  <jim@meyering.net>
12196         * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
12198 2004-01-09  Paul Eggert  <eggert@twinsun.com>
12200         * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
12201         with `autoconf -Wall,error'.  Bug reported by Eric Blake in:
12202         http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
12203         (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
12204         AC_COMPILE_IFELSE, since we now assume our caller invokes
12205         AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
12206         (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
12207         of AC_RUN_IFELSE; this avoids the warning mentioned above.
12208         (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
12210 2004-01-07  Paul Eggert  <eggert@twinsun.com>
12212         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
12213         `"'...'"`, as it's confusing (and I suspect it may not work on
12214         some platforms).  The code was incorrect anyway, as it assumed
12215         that \$ evaluated to itself in that context.  Reported by
12216         Alexandre Duret-Lutz.
12218 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
12220         * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
12221         and _LT_AC_TAGCONFIG.
12223 2004-01-06  Paul Eggert  <eggert@twinsun.com>
12225         * doc/autoconf.texi (One Macro Call): Fix an incorrect
12226         example, and add more examples.  Reported by Eric Sunshine.
12228 2004-01-05  Paul Eggert  <eggert@twinsun.com>
12230         * doc/autoconf.texi (Limitations of Usual Tools):
12231         Remove warning against "rm -fr" introduced yesterday; it
12232         was a false alarm.
12234         * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
12235         autoscan, autoupdate, ifnames): Don't use chmod -w.
12236         * lib/Makefile.am (autom4te.cfg): Likewise.
12237         * doc/autoconf.texi (Limitations of Usual Tools): Warn against
12238         "chmod -w".
12240 2004-01-04  Paul Eggert  <eggert@twinsun.com>
12241             Paolo Bonzini  <bonzini@gnu.org>
12243         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
12244         by doing lineno substitution only on lines containing "$LINENO".
12246 2004-01-04  Paul Eggert  <eggert@twinsun.com>
12248         * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
12249         Use "rm -f" to remove conftest.sed, not plain "rm".
12250         Bug reported by David Relson in
12251         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
12253         * Makefile.am (autom4te-update):
12254         Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
12255         * Makefile.maint (my-distcheck, do-po-update): Likewise.
12256         * doc/autoconf.texi (Guidelines): Likewise.
12257         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
12258         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
12259         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
12260         * lib/autotest/general.m4 (AT_INIT): Likewise.
12261         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
12262         * tests/Makefile.am (clean-local): Likewise.
12263         * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
12264         srcdir): Likewise.
12265         * doc/autoconf.texi (Limitations of Usual Tools):
12266         Warn against "rm -fr".
12268 2004-01-03  Paul Eggert  <eggert@twinsun.com>
12270         * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
12271         -c -o might not work.  From a suggestion by Kevin Ryde.
12272         (C Compiler, Generating Sources, Limitations
12273         of Usual Tools, Limitations of Make, Making testsuite Scripts):
12274         Don't put '-o' after non-options, as POSIX doesn't allow this.
12275         Mention that cc's name might be gcc or c89 or whatever.
12277 2004-01-04  Kevin Ryde  <user42@zip.com.au>
12279         * doc/autoconf.texi: Add various further index entries.
12281 2003-12-29  Paul Eggert  <eggert@twinsun.com>
12283         * bin/autoreconf.in (autoreconf_current_directory):
12284         Fix typo: mkdir without umask arg.
12286 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
12288         * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
12289         Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
12290         `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
12291         explanation clearer.
12293 2003-12-24  Andreas Schwab  <schwab@suse.de>
12295         * doc/autoconf.texi (Default Includes): Fix misspelling of
12296         AC_INCLUDES_DEFAULT.
12298 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
12300         * configure.ac: Test if sh -n works.
12301         * configure: Regenerate.
12302         * tests/atlocal.in: Store the result here.
12303         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
12304         tools.at, looking in atlocal's ac_cv_sh_n_works instead
12305         of explicitly testing.
12306         (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
12307         (AT_CHECK_AUTOCONF): Test for the configure script syntax.
12308         * tests/tools.at (Syntax of the shell scripts): Simplify
12309         using AT_CHECK_SHELL_SYNTAX.
12310         (Syntax of the Perl scripts): Remove definition of
12311         AT_CHECK_PERL_SYNTAX.
12313 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
12315         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
12316         stderr to /dev/null.
12317         * bin/autoconf.in: Regenerate.
12318         * bin/wrapper.in: Regenerate.
12320 2003-11-26  Paolo Bonzini  <bonzini@gnu.org>
12322         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
12323         Extracted from AS_SHELL_SANITIZE.
12324         (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
12325         macros.
12326         (AS_SHELL_SANITIZE): Move reinvocation code from
12327         _AS_LINENO_WORKS, use it to find out if shell
12328         functions work.
12329         (_AS_LINENO_WORKS): Don't find another shell if $LINENO
12330         does not work.
12331         (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
12332         (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
12333         was called.
12334         * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
12335         * bin/autoconf.in: Regenerate.
12336         * tests/wrapper.in: Regenerate.
12337         * tests/tools.at: Test the syntax of tests/autoconf
12338         and tests/testsuite.
12340 2003-11-24  Akim Demaille  <akim@epita.fr>
12342         * config/announce-gen (&print_locations, &print_signatures)
12343         (&sizes): New.
12344         Use them.
12345         No longer rely on Gnus to inline the list of signatures: compute
12346         them on the fly.
12348 2003-11-24  Akim Demaille  <akim@epita.fr>
12350         * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
12351         override some files.
12352         (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
12353         From Debian Autoconf 2.58.
12355 2003-11-24  Akim Demaille  <akim@epita.fr>
12357         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
12358         uses.
12359         From Debian Autoconf 2.58.
12361 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
12363         * TODO: Remove already done things.  Update the part about finding
12364         tools for the target.
12366 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
12368         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
12369         Make wording more consistent.
12370         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
12371         Explain the transition better.
12372         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
12373         the transition better.
12375 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
12377         * doc/autoconf.texi (Obsoleting Macros): Don't document the third
12378         parameter of AU_DEFUN.
12379         * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
12380         (AU_DEFUN): Remove the third parameter, it was not used.
12381         Use AC_DEFUN directly, not AU_DEFINE.
12382         * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
12383         the expanded body, consistently with other macros such as AC_USG.
12385 2003-11-17  Paul Eggert  <eggert@twinsun.com>
12387         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
12388         into the initial confdefs.h, to work around a bug in NextStep 3.3
12389         patch 3 reported by Eric Sunshine.
12391 2003-11-15  Kevin Ryde  <user42@zip.com.au>
12393         * doc/autoconf.texi (Using System Type): Revise, showing $host rather
12394         than $target since the latter is not usual, add guidelines on when to
12395         use or not use the system type.
12397 2003-11-12  Derek Price  <derek@ximbiot.com>
12399         * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
12400         typo misrepaired by an auto-spellcheck.
12402 2003-11-12  Akim Demaille  <akim@epita.fr>
12404         * bin/autoreconf.in (&parse_args): Don't call automake with
12405         --force-missing unless it actually supports it.
12406         From Debian #219336.
12408 2003-11-12  Akim Demaille  <akim@epita.fr>
12410         * configure.ac: Bump to 2.59a.
12411         Require 2.59.
12413 2003-11-06  Akim Demaille  <akim@epita.fr>
12415         Version 2.59.
12417 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
12419         * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
12420         so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
12421         and ac_abs_top_srcdir are absolute paths.
12422         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
12424 2003-11-05  Akim Demaille  <akim@epita.fr>
12426         * configure.ac: Bump to 2.58a.
12428 2003-11-05  Kevin Ryde  <user42@zip.com.au>
12430         * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
12431         it provokes a warning from makeinfo about looking like a cross
12432         reference in info output.
12434         * doc/autoconf.texi (Function Portability): Add notes on signal
12435         handler return type, as per AC_TYPE_SIGNAL.
12437 2003-11-04  Akim Demaille  <akim@epita.fr>
12439         Version 2.58.
12440         * doc/standards.texi: Update from master.
12442         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
12444 2003-11-04  Akim Demaille  <akim@epita.fr>
12446         AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
12447         computing the absolute path to d1 in the source hierarchy: it may
12448         not exist at all.  So don't cd into it.
12449         From Alexandre Duret-Lutz.
12450         http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
12452         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
12453         From Paul Eggert, but named after Perl's IO::Spec->catfile.
12454         * doc/autoconf.texi (Programming in M4sh): Document.
12455         * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
12457 2003-11-03  Pavel Roskin  <proski@gnu.org>
12459         * doc/autoconf.texi (Generic Structure Checks): Describe
12460         action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
12462 2003-10-31  Akim Demaille  <akim@epita.fr>
12464         * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
12465         (GNU Fortran): New.
12466         * doc/autoconf.texi (Language Choice): Document.
12467         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
12468         the current language is Fortran.
12470 2003-10-31  Akim Demaille  <akim@epita.fr>
12472         * bin/autom4te.in (&freeze): Use a less likely warning separator
12473         than `\n\n', so that `\n\n\n' is valid in warnings.
12474         Reported by Steve Huston.
12476 2003-10-28  Akim Demaille  <akim@epita.fr>
12478         * Makefile.cfg (local_updates, executable-update): Tweak to be
12479         robust to parallel makes.
12480         Suggested by Alexandre Duret-Lutz.
12482 2003-10-27  Akim Demaille  <akim@epita.fr>
12484         * Makefile.cfg (executable-update): New.
12485         (local_updates): Call it.
12487 2003-10-27  Akim Demaille  <akim@epita.fr>
12489         * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
12490         Don't remove core.* as it may remove valid user files.
12491         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
12492         (AC_FUNC_UTIME_NULL): Likewise.
12494 2003-10-23  Akim Demaille  <akim@epita.fr>
12496         Version 2.57g.
12497         * config/config.guess, config/config.sub: Upgrade from masters.
12499 2003-10-23  Akim Demaille  <akim@epita.fr>
12501         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
12502         AC_COMPILE_IFELSE that use break skip the clean up.  So do it by
12503         hand...
12505 2003-10-23  Akim Demaille  <akim@epita.fr>
12507         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
12508         Don't forget to remove conftest.err.
12510 2003-10-23  Akim Demaille  <akim@epita.fr>
12512         * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
12513         same object file in $LIBOBJS.
12514         Reported by Alexandre Duret-Lutz & Derek Robert Price.
12515         * doc/autoconf.texi (Generic Functions): Adjust.
12517 2003-10-20  Paul Eggert  <eggert@twinsun.com>
12519         * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
12520         Use 'eval', so that the resulting configure scripts work even if
12521         the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
12523 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
12525         * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
12526         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
12527         (_AC_LINK_IFELSE): Check the werror flag.
12528         * doc/autoconf.texi (Generic Compiler Characteristics): Document
12529         AC_LANG_WERROR.
12530         * NEWS: Mention it.
12532 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
12534         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
12535         _AC_COMPILER_EXEEXT to attempt a link.  If linking fails,
12536         override AC_LINK_IFELSE.
12538 2003-10-15  Paul Eggert  <eggert@twinsun.com>
12540         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
12541         pdksh 5.2.14.  Bug reported by Ralf Corsepius.
12542         * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
12543         Mention /usr/dt/bin/dtksh on Solaris.
12544         (Shell Substitutions): Warn about $((...)).
12545         (Parentheses): New section.
12547 2003-10-15  Kevin Ryde  <user42@zip.com.au>
12549         * doc/autoconf.texi (Function Portability): Add @prindex for exit.
12550         Add putenv and unsetenv.  Add sysconf _SC_PAGE_SIZE.
12552 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
12554         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
12555         cross test.
12557 2003-10-11  Steven G. Johnson  <stevenj@alum.mit.edu>
12559         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
12560         name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
12562 2003-10-10  Andreas Schwab  <schwab@suse.de>
12564         * bin/autoheader.in: Avoid empty first line in --version and
12565         --help output.
12566         * bin/ifnames.in: Likewise.
12568 2003-10-09  Paul Eggert  <eggert@twinsun.com>
12570         * lib/Autom4te/XFile.pm: Don't assume -j is solo.
12571         Issue a more-informative diagnostic.
12572         Problems reported by Eric Sunshine.
12574 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
12576         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
12577         -mGLOB_options_string stuff for Intel ifc, which can cause
12578         _AC_FC_LIBRARY_LDFLAGS to fail.  Use (faster) case for
12579         pattern-matching instead of grep.
12581 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
12583         * doc/autoconf.texi: Document new FC Fortran macros.
12585 2003-10-08  Gary V. Vaughan  <gary@gnu.org>
12587         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
12588         that future autopoint/aclocal/automake/autoreconf will be able
12589         to trace to find where to install local m4 macros.
12590         * doc/autoconf.texi (Input): Document it.
12591         * NEWS: Updated.
12593 2003-10-06  Gary V. Vaughan  <gary@gnu.org>
12595         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
12596         -lcrtbegin.o to list of ignored flags and fix underquoting of
12597         -lcrt[01].o.
12599 2003-10-04  Steven G. Johnson  <stevenj@ab-initio.mit.edu>
12601         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
12602         cache variable instead of $G77 to decide whether to include -O2,
12603         since $G77 is specific to Fortran 77.
12605 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
12607         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
12608         free" flag.  Re-order flags tested into rough order of popularity.
12610 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
12612         * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
12613         arguments so that it can be used with syntax identical to
12614         AC_PROG_F77, and so that we can more easily decide to
12615         remove/deprecate the DIALECT optional argument in the future if it
12616         proves troublesome.
12617         (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
12618         non-freeform-supporting compilers.  Document freeform flags.
12620 2003-10-03  Akim Demaille  <akim@epita.fr>
12622         * configure.ac: Look for emacs, not macs.
12623         Reported by Eric Sunshine.
12625 2003-10-03  Akim Demaille  <akim@epita.fr>
12627         * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
12628         * bin/autoreconf.in (autoreconf_current_directory): Create the
12629         AUX_DIR if needed, for sake of automake --add-missing etc.
12630         Suggested by Alexandre Duret-Lutz.
12632 2003-10-03  Akim Demaille  <akim@epita.fr>
12634         * configure.ac: Quotation and formatting changes.
12635         (EMACS): Don't set it if it is not recent enough to support
12636         autoconf-mode.el.
12637         From Eric Sunshine.
12639 2003-10-02  Akim Demaille  <akim@epita.fr>
12641         * bin/ifnames.in (&scan_file): Skip C++ comments.
12642         From Jeremy Yallop.
12644 2003-10-01  Pavel Roskin  <proski@gnu.org>
12646         * doc/autoconf.texi (Particular Structure Checks):
12647         Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
12649 2003-10-01  Akim Demaille  <akim@epita.fr>
12651         Version 2.57f.
12653 2003-09-30  Paul Eggert  <eggert@twinsun.com>
12655         * lib/Autom4te/XFile.pm: Use Errno.
12656         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
12657         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
12659 2003-09-30  Akim Demaille  <akim@epita.fr>
12661         * config/announce-gen (&print_news_deltas): Extracted from...
12662         (&print_changelog_deltas): here.
12663         (&news_file): Rename as...
12664         (@news_file): this.
12666 2003-09-30  Nicolas Joly  <njoly@pasteur.fr>
12668         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
12669         have been created when invoking the compiler.
12670         * tests/fortran.at (GNU Fortran 77): Quote $G77.
12672 2003-09-29  Akim Demaille  <akim@epita.fr>
12674         Version 2.57e.
12676         * config/mkinstalldirs: Upgrade.
12678 2003-09-28  Paul Eggert  <eggert@twinsun.com>
12680         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
12681         Problem reported by Lars J. Aas in
12682         <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
12683         (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
12684         "test -d ./-p && rmdir ./-p".  Suggested by Andreas Schwab in:
12685         http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
12687 2003-09-26  Akim Demaille  <akim@epita.fr>
12689         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
12690         directory for AC_CONFIG_COMMANDS' first argument exists.
12691         This makes valid the invocation of _AC_SRCPATH that follows.
12692         Reported by Eric Sunshine.
12693         * doc/autoconf.texi (Configuration Commands): Adjust.
12695 2003-09-26  Akim Demaille  <akim@epita.fr>
12697         * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
12698         Reported by Ralf Corsepius.
12700 2003-09-26  Akim Demaille  <akim@epita.fr>
12702         * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
12703         arguments.
12704         Actually, use AU_ALIAS.
12705         From Bruno Haible.
12707 2003-09-26  Paul Eggert  <eggert@twinsun.com>
12709         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
12710         rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
12711         Problem reported by Eric Sunshine in:
12712         http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
12714 2003-09-26  Akim Demaille  <akim@epita.fr>
12716         The test suite are sometimes assigning timings incorrectly.
12717         Reported by Henk Krus.
12718         Diagnosed by Nicolas Joly.
12720         * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
12721         AT_help_all.
12722         Instead of making AT_help a sequence of assignments to grow
12723         $at_help_all, just make AT_help_all be the growing contents of
12724         $at_help_all, and make a single assignment in...
12725         (AT_INIT): here.
12726         (at_times_skip): Flip the meaning and rename as...
12727         (at_times_p): this.
12728         (AT_INIT): When summarizing the test that ran, remove
12729         $at_times_file after use, and check it is present before trying to
12730         use it.
12732 2003-09-25  Akim Demaille  <akim@epita.fr>
12734         Version 2.57d.
12736         * bin/Makefile.am (edit): Handle '@configure_input@'.
12737         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
12738         (ifnames): chmod -w.
12739         * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
12740         executables, not bin/ executables!  Otherwise all the magic needed
12741         to find non installed files is turned off.  This caused a failure
12742         of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
12743         as found in its environment (sent by tests/autoreconf): pointing
12744         to bin/autom4te that could not find its files.
12745         * tests/mktests.sh: Force the replacement of generated files, for
12746         the sake of "mv" program that are interactive when overwriting a
12747         -w file.
12748         * config/install-sh: Upgrade from CVS Automake.
12750 2003-09-23  Paul Eggert  <eggert@twinsun.com>
12752         * doc/autoconf.texi (Limitations of Builtins): Document test -h
12753         versus test -L issues.
12755 2003-09-23  Daniel Jacobowitz  <drow@mvista.com> and
12756             Paul Eggert  <eggert@twinsun.com>
12758         Trivial change to support GCC's configuration procedure.
12759         * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
12760         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
12761         about inconsistency if the preprocessor is set to give errors for
12762         any warning.
12763         * doc/autoconf.texi (C Compiler Characteristics): Document this.
12765 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
12767         * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
12768         and XFile.pm from Automake.
12769         * lib/Autom4te/XFile.pm: Update from Automake.
12771 2003-09-12  Akim Demaille  <akim@epita.fr>
12773         Version 2.57c.
12775 2003-09-12  Akim Demaille  <akim@epita.fr>
12777         * config/config.guess, config/config.sub, config/missing,
12778         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
12779         from masters.
12781 2003-09-12  Akim Demaille  <akim@epita.fr>
12783         * doc/autoconf.texi (Header Portability): Promote linux/types.h,
12784         not asm/types.h.
12786 2003-09-11  Akim Demaille  <akim@epita.fr>
12788         * doc/autoconf.texi (Header Portability): linux/random.h.
12789         From Peter Hendrickson.
12791 2003-09-10  Akim Demaille  <akim@epita.fr>
12793         * tests/mktests.sh (au_exclude_egrep): Make it harder to be
12794         willing to edit the output files.
12796 2003-09-10  Akim Demaille  <akim@epita.fr>
12798         * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
12799         and AC_FC_FREEFORM.
12800         * tests/mktests.sh: Skip AC_FC_SRCEXT.
12801         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
12803 2003-09-09  Akim Demaille  <akim@epita.fr>
12805         * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
12806         Reported by Gary Vaughan.
12807         * bin/autom4te.in (handle_m4): Likewise.
12809 2003-09-09  Akim Demaille  <akim@epita.fr>
12811         * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
12812         trailing files.
12814 2003-09-07  Paul Eggert  <eggert@twinsun.com>
12816         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
12817         Improve the accuracy of the wording about obsolescence.
12818         From a suggestion by Ian Lance Taylor in
12819         <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
12821 2003-09-05  Paul Eggert  <eggert@twinsun.com>
12823         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
12824         for the benefit of g77 3.2.  Fix suggested by Steven G. Johnson.
12826 2003-09-04  Akim Demaille  <akim@epita.fr>
12828         * tests/mktests.sh (ac_exclude_list): Fix the filtering of
12829         AC_FUNC_WAIT3.
12831 2003-09-04  Akim Demaille  <akim@epita.fr>
12833         * bin/autom4te.in: Use &fatal where more appropriate than &error.
12834         (freeze): When exiting, use $exit_code.
12835         * lib/autoconf/fortran.m4: Comment changes.
12837 2003-09-04  Akim Demaille  <akim@epita.fr>
12839         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
12841 2003-09-02  Steven G. Johnson  <stevenj@alum.mit.edu>
12843         Add support for newer Fortran dialects.  The F77 interface is
12844         unchanged, and continues to support Fortran 77.  New FC macros
12845         correspond to all the old F77 macros, with output variables FC,
12846         FCFLAGS, and FCLIBS.  AC_PROG_FC defaults to picking the newest
12847         available dialect, but older dialects can be specified.  There are
12848         new macros AC_FC_SRCEXT to set the source extension, and
12849         AC_FC_FREEFORM to accept free-form source files.
12851         * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
12852         New macros.
12853         (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
12854         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
12855         _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
12856         _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
12857         AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
12858         AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
12859         _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
12860         _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
12861         AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
12862         _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
12863         AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
12864         _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
12865         AC_FC_SRCEXT, AC_FC_FREEFORM):
12866         New macros.
12867         (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
12868         AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
12869         AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
12870         Rewrite in terms of the above.
12871         (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
12872         * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
12873         * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
12874         AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
12876 2003-09-02  Paul Eggert  <eggert@twinsun.com>
12878         * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
12879         Document problems with timestamp resolution that 'make', 'cp -p', and
12880         'touch -r' have.
12882 2003-08-27  Akim Demaille  <akim@epita.fr>
12884         * tests/m4sugar.at (cross_warning): Make sure to enable the
12885         output, so that we can track spurious m4sugar output.
12886         * tests/local.at: Require 2.57.
12887         (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
12888         are defaulted by AT_CHECK anyway.
12889         Use AT_CHECK_AUTOM4TE.
12890         * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
12891         missing dnl.
12893 2003-08-27  Akim Demaille  <akim@epita.fr>
12895         * bin/autoheader.in: Issue the "Using auxiliary..." message only
12896         when -Wobsolete is set.
12897         Set it on by default.
12898         Suggested by Klee Dienes.
12900 2003-08-27  Akim Demaille  <akim@epita.fr>
12902         * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
12903         documentation.
12904         From Guido Draheim.
12906 2003-08-26  Akim Demaille  <akim@epita.fr>
12908         * doc/autoconf.texi (Output): Make clear that one can run code
12909         after AC_OUTPUT.
12911 2003-08-25  Akim Demaille  <akim@epita.fr>
12913         * config/announce-gen, GNUmakefile, Makefile.maint: Update from
12914         CVS Bison.
12916 2003-08-25  Alexandre Duret-Lutz  <adl@gnu.org>
12918         * bin/autoreconf.in (parse_args): Do not pass --no-force to
12919         Automake versions prior to 1.8.
12921 2003-08-25  Akim Demaille  <akim@epita.fr>
12923         * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
12924         From Ville Karaila.
12926 2003-08-24  Akim Demaille  <akim@epita.fr>
12928         * configure.ac: Bump to 2.57c.
12930 2003-08-22  Akim Demaille  <akim@epita.fr>
12932         Version 2.57b.
12934         * Makefile.cfg (local-checks-to-skip): New.
12935         * Makefile.maint (local-check): Rename as...
12936         (local-checks-available): this.
12937         (local-check): New.
12939         * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
12940         * configure.ac: Require Automake 1.7.6.
12942 2003-08-22  Akim Demaille  <akim@epita.fr>
12944         Output stack traces in warnings.
12946         * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
12947         Replace the former...
12948         (m4_warn): Pass the call stack to _m4_warn.
12949         * bin/autom4te.in: Adjust to output the call stack.
12950         * tests/m4sugar.at (m4@&t@_warn): Adjust.
12952 2003-08-22  Akim Demaille  <akim@epita.fr>
12954         * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
12955         * bin/autom4te.in: Adjust.
12957 2003-08-21  Akim Demaille  <akim@epita.fr>
12959         * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
12960         (&verbose): Remove.
12961         (&getopt): Adjust the note and verb channels, depending upon
12962         --verbose.
12963         * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
12964         * bin/autoupdate.in: Adjust.
12965         Use &verb, not &verbose.
12967 2003-08-21  Akim Demaille  <akim@epita.fr>
12969         * bin/autoheader.in (&parse_args): Use &parse_warnings and
12970         &parse_WARNINGS.
12971         ($help): Use Autom4te::ChannelDefs::usage.
12972         * bin/autoscan.in: Use Autom4te::ChannelDefs.
12973         * lib/Autom4te/General.pm: Don't export error: you don't own it.
12975 2003-08-21  Akim Demaille  <akim@epita.fr>
12977         First stab at preserving warnings between calls to autom4te,
12978         including when the cache is used.
12980         There are still several issues: (i) there are too many runs of m4
12981         (one for include, one for warnings, and some more), (ii) warnings
12982         spreading on several lines are not handled gracefully, (iii) the
12983         code meant to have the call stack display for errors does not work
12984         (its handling should move from m4 to autom4te).
12986         * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
12987         Use them.
12988         (@preselect): Add m4_warn.
12989         ($exit_status): Remove, use $exit_code.
12990         ($help): Use Autom4te::ChannelDefs::usage.
12991         (&handle_m4): No longer define the m4_warnings.
12992         At each run, extract and report the warnings.
12993         Always cache the result, including if the exit status is on
12994         failure, since if nothing changes, we should result in the same
12995         failure, hence we can use the cache.
12996         * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
12997         (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
12998         Remove.
12999         (m4_warn): Redefine as a do-nothing: it is its invocation that
13000         matters, as warnings are now reported via traces.
13001         * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
13002         the contents of m4_warn: make it _call_ m4_warn, so that tracing
13003         the latter reveals calls to the former.
13005         Adjust the tests.
13007         * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
13009 2003-08-21  Akim Demaille  <akim@epita.fr>
13011         * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
13012         Use them.
13014 2003-08-21  Akim Demaille  <akim@epita.fr>
13016         * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
13017         forward order.
13018         * lib/Autom4te/ChannelDefs.pm: Doc typos.
13019         (&parse_warnings): Accept a list of warning requests.
13020         (&usage): Return a string, not a side effect.
13021         (cross): New warning category.
13023 2003-08-21  Akim Demaille  <akim@epita.fr>
13025         * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
13026         (&require_configure_ac): Accept an optional directory argument.
13027         ($configure_ac): Remove.
13028         * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
13029         (&catfile): Remove.
13030         * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
13031         * bin/autoscan.in: Adjust.
13033 2003-08-20  Akim Demaille  <akim@epita.fr>
13035         * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
13036         Reported by Alexandre Duret-Lutz.
13038 2003-08-20  Akim Demaille  <akim@epita.fr>
13040         * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
13041         * bin/autom4te: Adjust.
13042         In particular, be Autoconf tools are really silent when properly
13043         working, bind the verbosity of the 'note' channel to $verbose.
13044         * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
13045         (&xsystem, &contents): Remove, since they are exported by...
13046         * lib/Autom4te/FileUtils.pm: this.
13047         More perldoc.
13048         * lib/Autom4te/General.pm (&up_to_date_p): Move to...
13049         * lib/Autom4te/FileUtils.pm: here.
13051 2003-08-20  Akim Demaille  <akim@epita.fr>
13053         * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
13054         * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
13055         from CVS Automake.
13057 2003-08-20  Akim Demaille  <akim@epita.fr>
13059         * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
13060         (autom4te-update): New.
13061         * Makefile.cfg (update): Bind autom4te-update.
13063 2003-08-19  Derek Price  <derek@ximbiot.com>
13065         * lib/autotest/general.m4: Comment various HELP_* diversions.
13066         (PARSE_ARGS_BEGIN): New section for option parsing related
13067         initialization.
13068         (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
13069         package specific options and associated help.
13071 2003-08-19  Akim Demaille  <akim@epita.fr>
13073         * config/announce-gen, Makefile.cfg: New.
13074         * Makefile.am: Adjust.
13075         * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
13077 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
13079         * lib/autom4te.in (Automake-preselections): Preselect
13080         AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
13081         and m4_sinclude.
13083 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
13085         * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
13086         (Autoconf-without-aclocal-m4): ... this new language.
13087         * doc/autoconf.texi (autom4te Invocation): Mention
13088         Autoconf-without-aclocal-m4.
13090 2003-08-18  Derek Price  <derek@ximbiot.com>
13092         * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
13093         RUN-IF-PASS optional arguments.
13095 2003-08-18  Derek Price  <derek@ximbiot.com>
13097         * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
13099 2003-08-16  Derek Price  <derek@ximbiot.com>
13101         * doc/autoconf.texi (Writing testsuite.at): Document defaults for
13102         STDOUT & STDERR arguments.
13104 2003-08-14  Derek Price  <derek@ximbiot.com>
13106         * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
13107         DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
13108         shorter column three.  Add DESCRIPTION to log file content.
13110 2003-08-13  Derek Price  <derek@ximbiot.com>
13112         * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
13113         output.
13115 2003-08-12  Derek Price  <derek@ximbiot.com>
13117         * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
13118         (AT_CHECK_NOESCAPE): Move core functionality to...
13119         (_AT_CHECK): ...this new macro.
13121 2003-08-07  Derek Price  <derek@ximbiot.com>
13123         * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
13124         (AT_CHECK_NOESCAPE): ...to this new macro.
13126 2003-07-31  Paul Eggert  <eggert@twinsun.com>
13128         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
13129         in Bash 2.01.  Problem reported by Brian Gough in
13130         <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
13132 2003-07-25  John W. Eaton  <jwe@bevo.che.wisc.edu>
13134         * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
13135         -lcrt1.o, for OS X.  (trivial change)
13137 2003-07-07  Paul Eggert  <eggert@twinsun.com>
13139         * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
13140         inside '#ifndef __cplusplus'.  Problem reported by
13141         Bob Friesenhahn.
13143 2003-07-06  Bill Clarke  <llib@computer.org>
13145         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
13146         'long', not 'int', for benefit of Sun's recent C++ compilers
13147         (trivial change).  See:
13148         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
13149         (This really should be 'intptr_t', not 'long', but that would
13150         take more work.)
13152 2003-06-25  Akim Demaille  <akim@epita.fr>
13154         * lib/Makefile.am (autom4te.cfg): Make it read only.
13155         Depend on Makefile since it contains substitutions.
13156         From Paolo Bonzini.
13157         * lib/autom4te.in (args): Add local.at? for Autotest args.
13158         This change was made on autom4te.cfg which is generated.
13159         Reported by Raja R. Harinath.
13161 2003-06-25  Akim Demaille  <akim@epita.fr>
13163         * doc/autoconf.texi (Header Portability): sys/mount.h.
13164         From Gareth McCaughan.
13166 2003-06-23  Akim Demaille  <akim@epita.fr>
13168         * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
13169         not all of them.  This fixes 1. the fact that when testing
13170         Autoconf there are many many config.log, 2. the incorrect use of
13171         top_srcdir to find config.log.
13172         Don't mix the detailed output of failed test with the summary of
13173         failures.  Rather, append detailed log afterwards.
13175 2003-06-23  Akim Demaille  <akim@epita.fr>
13177         * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
13178         always run: output config.log on $at_group_log.
13180 2003-06-23  Akim Demaille  <akim@epita.fr>
13182         * tests/torture.at (#define header templates): Don't use quotes in
13183         C++ comments as it puzzles Emacs' sh font-lock-mode.
13185 2003-06-23  Akim Demaille  <akim@epita.fr>
13187         * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
13188         * lib/autom4te.cfg (args): Add local.at? for Autotest args.
13189         * tests/atspecific.m4: Rename as...
13190         * tests/local.at: This.
13191         * tests/suite.at: Move the globals into...
13192         * tests/local.at: here.
13193         * tests/Makefile.am: Adjust.
13194         * doc/autoconf.texi (testsuite Scripts): Adjust.
13196 2003-06-21  Kevin Ryde  <user42@zip.com.au>
13198         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
13199         error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
13200         ensuring we add -std1 for full-ANSI.
13202         * doc/autoconf.texi (hdrindex): New macro.
13203         Add index entries for portability of various standard header files.
13205 2003-06-20  Akim Demaille  <akim@epita.fr>
13207         * configure.ac: Bump to 2.57b.
13209 2003-06-20  Akim Demaille  <akim@epita.fr>
13211         Version 2.57a.
13213 2003-06-20  Akim Demaille  <akim@epita.fr>
13215         * bin/autom4te.in: Don't rely on $HOME being defined.
13216         Reported by Marc Espie as PR/233.
13218 2003-06-20  Akim Demaille  <akim@epita.fr>
13220         * lib/autotest/general.m4: Use at_times_file only if used.
13221         From Nicolas Joly.
13223 2003-06-20  Akim Demaille  <akim@epita.fr>
13225         * config/config.guess, config/config.sub, config/elisp-comp,
13226         * config/install-sh, config/mkinstalldirs, doc/standards.texi:
13227         Update from masters.
13229 2003-06-11  Paolo Bonzini  <bonzini@gnu.org>
13231         * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
13232         * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
13233         (TEST_SCRIPT): New diversion.
13234         (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
13235         (AT_CLEANUP): ...to here.  Undivert TEST_SCRIPT.
13236         (AT_INIT): Support for expected failures.
13238 2003-06-02  Akim Demaille  <akim@epita.fr>
13240         * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
13241         changes.
13242         * lib/Autom4te/General.pm (&backname): Remove, no longer used by
13243         Autoconf nor Automake.
13244         (&contents): New, from Automake.
13245         PODify.
13247 2003-05-28  Paul Eggert  <eggert@twinsun.com>
13249         * NEWS, doc/autoconf.texi (Particular Functions),
13250         lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
13251         is the inverse of localtime.
13253 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
13255         * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
13256         (handle_exec_errors): New function.  Work around $! being
13257         altered by WEXITSTATUS.
13258         (xqx, xsystem): Use handle_exec_errors.
13260 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
13262         * lib/Autom4te/General.pm (END): Rewrite exit code processing.
13263         Do not call `_exit()', simply modify `$?'.
13264         (xsystem): Reset $! before running system, and check it afterward.
13265         * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
13266         63 for version mismatches.
13268 2003-05-23  Akim Demaille  <akim@epita.fr>
13270         * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
13271         Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
13272         the middle of a line).
13273         * lib/m4sugar/m4sugar.m4: Likewise.
13274         Remove useless spaces in comments.
13276 2003-05-23  Akim Demaille  <akim@epita.fr>
13278         * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
13279         exit 63, so that we (or Automake's "missing") can tell the
13280         difference with a plain failure.
13281         * doc/autoconf.texi (Notices): Adjust.
13283 2003-05-23  Akim Demaille  <akim@epita.fr>
13285         * Makefile.am, bin/Makefile.am, config/Makefile.am,
13286         * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
13287         White spaces cleanup.
13289 2003-05-22  Jim Meyering  <jim@meyering.net>
13290             Paul Eggert  <eggert@twinsun.com>
13292         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
13293         Remove `#include <stdlib.h>' from the list; we should never
13294         make confdefs.h include <stdlib.h> or <cstdlib>, because the
13295         resulting namespace pollution would cause other tests to fail.
13296         Configure scripts run with some older versions of g++ and HP's
13297         aCC would fail due to such an #include.  Problems reported by
13298         Matthew Mueller in <http://bugs.debian.org/120704> and by
13299         Keith Bostic in
13300         <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
13301         In the test, use the test declaration before including <stdlib.h>,
13302         as that's closer to how it'll be used.
13304 2003-05-23  Akim Demaille  <akim@epita.fr>
13306         * doc/autoconf.texi (Header Portability): ucred.h.
13307         From Ian Redfern.
13309 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
13311         Overhaul Autotest's logging: generate separate log files
13312         in testsuite.dir/NNN/testsuite.log, and append them to
13313         testsuite.log instead of re-running the test verbosely.
13315         * lib/autotest/general.m4 (AT_INIT): Use a single redirected
13316         file descriptor, write 0 to at_status_file instead of setting
13317         at_status=0, initialize some new variables (at_status_file,
13318         at_group_log, at_suite_log, at_tee_pipe).  Remove the cruft
13319         to rerun the tests, instead append the at_group_log to the
13320         at_suite_log when a test fails.
13321         (AT_SETUP): pipe the test case's output into at_tee_pipe,
13322         with the AS_MESSAGE_LOG_FD redirected to stdout.
13323         (AT_CLEANUP): save the output status in $at_status_file
13324         and restore it, redirect the AS_MESSAGE_LOG_FD back to
13325         its original place.
13326         (AT_CHECK): since tests are run with a redirected stdout,
13327         and used to be re-run in verbose mode, turn some $at_verbose
13328         into echo, and don't redirect the output of testing stdout
13329         and stderr.
13331         * lib/autotest/autoconf.texi (testsuite Scripts): Update
13332         the name of the debugging directory and information about
13333         its contents.
13335 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
13337         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
13338         parameter.
13340 2003-05-22  Akim Demaille  <akim@epita.fr>
13342         * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
13343         * lib/autoconf/fortran.m4 lib/autoconf/general.m4
13344         * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
13345         * lib/autoconf/status.m4: Fix and adjust copyright notices.
13347 2003-05-22  Akim Demaille  <akim@epita.fr>
13349         * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
13350         * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
13351         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
13352         * lib/autoconf/general.m4, lib/autoconf/headers.m4,
13353         * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
13354         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
13355         * lib/autoconf/status.m4, lib/autoconf/types.m4,
13356         * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
13357         * tests/atspecific.m4, tests/base.at, tests/compile.at,
13358         * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
13359         * tests/tools.at, tests/torture.at:
13360         Whitespace clean up.
13361         Suggested by Jim Meyering.
13363 2003-05-22  Akim Demaille  <akim@epita.fr>
13365         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
13366         ' \t' as '\t ' so that Emacs' whitespace.el keep it.
13367         Reported by Jim Meyering.
13369 2003-05-22  Akim Demaille  <akim@epita.fr>
13371         * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
13372         Add AC_HELP_STRING  to the obsolete macros section.
13373         Typos.
13374         Use '@.' for sentences that ended in a capital letter.
13375         From Art Haas.
13377 2003-05-22  Akim Demaille  <akim@epita.fr>
13379         * config/config.guess, config/config.sub, config/elisp-comp,
13380         * config/install-sh, config/mdate-sh, config/mkinstalldirs,
13381         * config/texinfo.tex, doc/standards.texi: Update from masters.
13383 2003-05-21  Paolo Bonzini  <bonzini@gnu.org>
13385         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
13386         it to eval.
13388 2003-05-21  Akim Demaille  <akim@epita.fr>
13390         * bin/autoupdate.in ($m4): Fix quotation.
13391         Reported by Martin Mokrejs.
13393 2003-05-19  Paul Eggert  <eggert@twinsun.com>
13395         * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
13396         Remove non-ASCII characters.
13398 2003-05-18  Paolo Bonzini  <bonzini@gnu.org>
13400         * tests/semantics.at (AC_SEARCH_LIBS): New test.
13401         * tests/semantics.at (AC_CHECK_HEADERS_OLD,
13402         AC_CHECK_HEADERS_NEW): New tests.
13404 2003-05-17  Akim Demaille  <akim@epita.fr>
13406         * lib/autoconf/functions.m4: Use the default includes so that
13407         memcmp be declared before being tested.
13408         Reported by Sander Niemeijer.
13409         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
13410         * doc/autoconf.texi (Default Includes): Document
13411         AC_INCLUDES_DEFAULT.
13413 2003-05-17  Akim Demaille  <akim@epita.fr>
13415         * lib/autoconf/specific.m4: Include signal.h and unistd.h.
13416         * doc/autoconf.texi (Obsolete Macros): Adjust.
13417         Reported by Werner LEMBERG and Debian Bug 190886.
13419 2003-05-16  Akim Demaille  <akim@epita.fr>
13421         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
13422         user name space clashes.
13423         Reported by Bruno Haible.
13425 2003-05-16  Akim Demaille  <akim@epita.fr>
13427         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
13428         * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
13429         them uniform, and more robust to Perl special characters.
13430         Reported by Martin Mokrejs.
13432 2003-05-14  Akim Demaille  <akim@epita.fr>
13434         * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
13436 2003-05-14  Akim Demaille  <akim@epita.fr>
13438         * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
13439         linux/irda.h.
13441 2003-05-12  Akim Demaille  <akim@epita.fr>
13443         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
13444         message.
13445         From Matthias Andree.
13447 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
13449         * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
13450         and truncate.
13452 2003-05-06  Akim Demaille  <akim@epita.fr>
13454         Don't try to be smart with aclocal 1.8+ because (i) aclocal no
13455         longer updates aclocal.m4 if useless, (ii) if a file m4_included
13456         by aclocal.m4 is changed it might require the importing of another
13457         m4 extension file, i.e., aclocal must be run.
13459         * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
13460         (&parse_args): Use --force with aclocal if required and supported.
13461         (&autoreconf_current_directory): Use &run_aclocal.
13463 2003-05-06  Akim Demaille  <akim@epita.fr>
13465         Lock autom4te's cache.
13467         * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
13468         * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
13469         argument instead of a file name, so that the request file remains
13470         open during the whole autom4te run.
13471         ($icache_file): New.
13472         (&freeze): Lock the $icache_file.
13474 2003-04-29  Derek Price  <derek@ximbiot.com>
13476         * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
13477         seperator with m4_append_uniq().  It doesn't work.
13478         (AT_CLEANUP): Add `;' to end of at_help_all.
13479         (AT_INIT): Allow --keywords to be specified more than once.  When
13480         grepping $at_help_all for keywords, use the field and keyword
13481         seperators to ensure a complete keyword match.  Alter at_prev handling
13482         to support the new --keywords behavior.
13484 2003-04-27  Karl Berry  <karl@freefriends.org>
13486         * doc/autoconf.texi: Make the dir entries in the autoconf manual
13487         align better with others.  I also made some of the individual
13488         entries on one line, for brevity and to make it easier for me to
13489         sort my dir-example file in the Texinfo distribution :).
13491 2003-04-12  Jim Meyering  <jim@meyering.net>
13493         * NEWS: Mention the new macro.
13494         * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
13495         * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
13496         * tests/c.at: Test AC_C_RESTRICT.
13497         * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
13499 2003-04-08  Akim Demaille  <akim@epita.fr>
13501         * bin/ifnames.in: Skip C++ comments.
13502         From Jeremy Yallop.
13504 2003-04-08  Akim Demaille  <akim@epita.fr>
13506         * GNUmakefile (SHELL): Don't assume sh is in /bin/.
13507         From Ilya Zakharevich.
13509 2003-04-08  Akim Demaille  <akim@epita.fr>
13511         * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
13512         net/if.h, stdlib.h.
13514 2003-04-01  Derek Price  <derek@ximbiot.com>
13516         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
13517         from Akim's checkin of 2003-03-29.
13519 2003-04-01  Derek Price  <derek@ximbiot.com>
13521         * tests/torture.at (Configuring subdirectories): Add missing
13522         close-quote for Akim's change from 2003-03-28.
13524 2003-04-01  Akim Demaille  <akim@epita.fr>
13526         * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
13527         (AC, AT, MS): these.
13528         (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
13529         New.
13530         Use them.
13531         * doc/Makefile.am (CLEANFILES): Adjust.
13532         (TEXI2DVI): Make it --batch.
13534 2003-03-31  Derek Price  <derek@ximbiot.com>
13536         * lib/autotest/general.m4: Revert the checkin from 2003-03-27
13537         which removed the main loop.
13538         Thanks to Akim Demaille.
13540 2003-03-29  Akim Demaille  <akim@epita.fr>
13542         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
13543         that starts a GUI.
13544         From Ilya Zakharevich.
13546 2003-03-29  Akim Demaille  <akim@epita.fr>
13548         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
13549         documentation to read is Autoconf's.
13550         Suggested by Paul Eggert.
13552 2003-03-28  Akim Demaille  <akim@epita.fr>
13554         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
13555         reading the section "Present But Cannot Be Compiled" when the
13556         header causes problems.
13558 2003-03-28  Akim Demaille  <akim@epita.fr>
13560         * tests/torture.at (Configuring subdirectories): Require aclocal
13561         1.4, otherwise the test fails, as it does support configure.ac.
13562         This fixes the "test 40 failed" bug reports.
13564 2003-03-28  Akim Demaille  <akim@epita.fr>
13566         * doc/autoconf.texi (C Compiler): `#line' portability.
13567         From Paul Eggert and Nelson H. F. Beebe.
13569 2003-03-27  Derek Price  <derek@ximbiot.com>
13571         * lib/autotest/general.m4: Eliminate main loop and reorganize test
13572         layout in order to allow scripting around test groups.
13574 2003-03-27  Derek Price  <derek@ximbiot.com>
13576         * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
13577         HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
13578         use new diversions in preparation for accepting new arguments and
13579         allowing scripting around tests.
13580         (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
13582 2003-03-26  Derek Price  <derek@ximbiot.com>
13584         * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
13585         obsolete AC_HELP_STRING.
13586         (AC_HELP_STRING): AU_DEFUN to...
13587         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
13588         * tests/m4sh.at (AS_HELP_STRING): New test.
13590         * tests/acgeneral.at: Regenerated.
13592 2003-03-26  Derek Price  <derek@ximbiot.com>
13594         * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
13595         sense.  Verbosify the diversion definitions comment.
13597 2003-03-26  Derek Price  <derek@ximbiot.com>
13599         * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
13600         AS_PREPARE.
13602 2003-03-21  Eric Siegerman  <eric_97@pobox.com>
13604         * doc/autoconf.texi (Present But Cannot Be Compiled):
13605         Grammar fixes and minor rewording. (trivial change)
13607 2003-03-06  Paul Eggert  <eggert@twinsun.com>
13609         Work around a problem noted by Nelson H. F. Beebe with coreutils
13610         4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
13611         2002/05/09) rejects '#line 32768 "configure"' because the line
13612         number overflows.
13613         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
13614         #line directives.
13615         * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
13616         * doc/autoconf.texi (Generating Sources): Document this.
13618 2003-03-01  Richard Dawe  <rich@phekda.freeserve.co.uk>
13620         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
13621         file name for the m4 program, when it has an "exe" file extension.
13622         DJGPP's error messages include the error code in brackets -
13623         remove the error code during normalization.
13625 2003-02-28  Akim Demaille  <akim@epita.fr>
13627         * doc/autoconf.texi (Present But Cannot Be Compiled): New.
13629 2003-02-28  Alexandre Duret-Lutz  <adl@gnu.org>
13631         * doc/autoconf.texi (Limitations of Make): Remove the section
13632         about `$<' in inference rules, it was a bogus interpretation of
13633         an old Automake change.  Discuss NetBSD, FreeBSD, OpenBSD, and
13634         Tru64 make in the "target lookup" section.
13635         (Automake): Automake 1.5+ no longer requires special tools to be
13636         present on the developer's host.
13638 2003-02-26  Richard Dawe  <rich@phekda.freeserve.co.uk>
13640         * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
13641         to a shell that can handle redirection or quoting correctly.
13642         Override SHELL with the shell detected by configure.
13643         Use of $^O suggested by Tim van Holder.
13644         * bin/autom4te.in (BEGIN): Likewise.
13645         * bin/autoreconf.in (BEGIN): Likewise.
13646         * bin/autoscan.in (BEGIN): Likewise.
13647         * bin/autoupdate.in (BEGIN): Likewise.
13648         * bin/ifnames.in (BEGIN): Likewise.
13650         * bin/ifnames.in: Add final newline to help and version messages.
13652         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
13653         to cope with DOS-style absolute paths, when constructing
13654         ${ac_make}.
13656         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
13657         When constructing paths with IFS=:, quote the path. If we're
13658         constructing a DOS-style absolute path, we don't want to split it
13659         on the colon.
13661         * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
13662         in description.
13664 2003-02-25  Pavel Roskin  <proski@gnu.org>
13666         * bin/autoheader.in: Add missing newline when printing
13667         suggestion how change AC_DEFINE call.
13669 2003-02-24  Paul Eggert  <eggert@twinsun.com>
13671         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
13672         2002-09-01 patch by replacing "test -n" with "test -z".
13673         This fixes a bug found by Jeff Painter and reported by Tom Epperly in
13674         <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
13676         * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
13677         to fix a mismatch between example and discussion.
13679 2003-02-24  Kevin Ryde  <user42@zip.com.au>
13681         * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
13682         format starting with "-".
13684 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
13686         * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
13687         is not portable inside Makefile.
13689 2003-02-20  Akim Demaille  <akim@epita.fr>
13691         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
13692         compiler says yeah, but preproc says nope, compiler is right.
13693         Conversely, prompt the reader to send a bug report to the
13694         maintainers of the package, not of Autoconf.
13696 2003-02-20  Klee Dienes  <kdienes@apple.com>
13698         * bin/autoreconf.in (autoreconf_current_directory): Properly
13699         handle an empty aclocal.m4.
13701 2003-02-20  Akim Demaille  <akim@epita.fr>
13703         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
13704         $ac_prefix_program.
13705         From Larry Jones.
13707 2002-12-23  Paul Eggert  <eggert@twinsun.com>
13709         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
13710         innocuous variant befor including <limits.h> or <assert.h>.  This
13711         works around a bug reported by Albert Chin: HP-UX 11i
13712         (and earlier versions) have a <limits.h> that declares
13713         gettimeofday and many other functions.
13715 2002-12-03  Paul Eggert  <eggert@twinsun.com>
13717         Version 2.57.
13719         * NEWS, configure.ac: Update version.
13721         * doc/fdl.texi: Upgrade to FDL version 1.2.
13723         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
13724         nontrivially in main's body, so that f's external declaration is
13725         not optimized away in AIX.  This should fix the bug reported by
13726         Martin Frydl in
13727         <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
13729         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
13730         _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
13731         defined, to support freestanding compilers.  This should fix the
13732         bug reported by Momchil Velkov in
13733         <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
13735         * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
13736         arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
13737         obsolete AC_CHECK_TYPE.  The missing empty arg was reported
13738         by Simon Josefsson in
13739         <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
13741         * Makefile.maint (www-gnu): New macro.
13742         (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
13743         the location has moved.
13745 2002-12-02  Martin Frydl  <martin@systinet.com>
13747         * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
13748         \(.*\) match is too long and there is something more to be checked.
13749         <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
13751 2002-11-15  Akim Demaille  <akim@epita.fr>
13753         Version 2.56.
13755         * config/install-sh: chmod +x.
13756         From Paul Eggert.
13757         * config/move-if-change: Indenting changes.
13758         * Makefile.am (AUTOMAKE_OPTIONS): Move to...
13759         * configure.ac (AM_INIT_AUTOMAKE): here.
13760         Require 1.7.1.
13762 2002-11-14  Akim Demaille  <akim@epita.fr>
13764         Version 2.55.
13766         * config/config.guess, config/config.sub, config/install-sh:
13767         Update from masters.
13769 2002-11-14  Akim Demaille  <akim@epita.fr>
13771         * Makefile.maint: Sync with Bison, i.e.:
13772         (po-check): Scan .l and .y files instead of the
13773         .c and the .h files that they generate.  This fixes the bug
13774         reported by Tim Van Holder in:
13775         <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
13776         Look for N_ as well as for _.  Try to avoid matching #define for
13777         N_ and _.
13778         From Paul Eggert.
13780 2002-11-14  Akim Demaille  <akim@epita.fr>
13782         * doc/autoconf.texi (C Compiler): Compiling several files at once.
13783         From Paul Eggert and Albert Chin-A-Young.
13785 2002-11-14  Akim Demaille  <akim@epita.fr>
13787         * doc/autoconf.texi (C Compiler): Solitary backslashes.
13788         From Paul Eggert and Albert Chin-A-Young.
13790 2002-11-14  Kevin Ryde  <user42@zip.com.au>
13792         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
13793         than assigning in main, to avoid HP cc +O3 optimizing it away.
13795 2002-11-12  Peter Eisentraut  <peter_e@gmx.net>
13797         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
13798         option.  Process --recheck after parsing all options.  Pass -q
13799         option to configure on --recheck.
13800         (AC_OUTPUT): Pass -q from configure to config.status.
13801         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
13802         arguments to record.
13803         * doc/autoconf.texi (config.status Invocation): Document
13804         config.status -q option.
13806 2002-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
13808         * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
13809         Makefile.in if Makefile.am exists.
13810         (output): Strip `.am' from Makefiles.  Don't
13811         output AC_CONFIG_FILES if no Makefiles were found.
13813 2002-11-07  Akim Demaille  <akim@epita.fr>
13815         * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
13816         (local_updates): New.
13817         * Makefile.maint: Update, from CVS Bison.
13818         (local_updates): New.
13820 2002-11-06  Akim Demaille  <akim@epita.fr>
13822         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
13823         declaration in extern "C" too.
13824         Reported by Roberto Bagnara.
13826 2002-11-06  Akim Demaille  <akim@epita.fr>
13828         * tests/torture.at (Configuring subdirectories): Don't use grep
13829         -w.
13830         * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
13831         Reported by Ezra Peisach.
13833 2002-11-05  Akim Demaille  <akim@epita.fr>
13835         * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
13836         Remove.
13837         We _have_ to stop using the old compatibility scheme that tried to
13838         avoid useless backslashes because Libtool 1.4.3 contains a
13839         AC_DEFINE([error_t], [int],
13840         [Define to a type to use for \`error_t' if it is not
13841         otherwise available.])
13842         We _have_ to quote the single quote and backslashes with \.  The
13843         old compatibility scheme saw that ` was backslashed, and therefore
13844         did not quote the single quote.  Hence before this patch, Autoconf
13845         was not compatible with Libtool.
13847 2002-11-04  Paul Eggert  <eggert@twinsun.com>
13849         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
13850         too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
13851         LC_NAME, LC_PAPER, LC_TELEPHONE.
13852         * doc/autoconf.texi (Special Shell Variables): Mention those vars.
13854 2002-11-04  Akim Demaille  <akim@epita.fr>
13856         Version 2.54c.
13858         * Makefile.maint (update, cvs-update, po-update, do-po-update):
13859         New.
13860         * config/texinfo.tex: Update.
13862 2002-11-03  Akim Demaille  <akim@epita.fr>
13864         * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
13865         from...
13866         (&autoreconf): here.
13867         ($help, $make, &parse_args, &autoreconf_current_directory):
13868         Support -m/--make.
13869         * doc/autoconf.texi (autoreconf Invocation): Adjust.
13871 2002-10-31  Bruno Haible  <bruno@clisp.org>
13873         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
13874         Change name of cache variable to ac_cv_func_malloc_0_nonnull.
13875         (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
13876         (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
13877         to ac_cv_func_realloc_0_nonnull.
13878         (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
13880 2002-10-31  Akim Demaille  <akim@epita.fr>
13882         The test suite was no longer checking for trailing envvars and files.
13884         * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
13885         (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
13887 2002-10-31  Akim Demaille  <akim@epita.fr>
13889         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
13890         `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
13891         Make variable, not a shell variable.
13892         Suggested by Bruno Haible.
13894 2002-10-31  Akim Demaille  <akim@epita.fr>
13896         * bin/autom4te.in (load_configuration): Reject #args out of any
13897         language.
13899 2002-10-31  Akim Demaille  <akim@epita.fr>
13901         * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
13902         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
13903         (_AC_RUN_IFELSE): Use it.
13904         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
13905         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
13906         * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
13907         inline it.
13909 2002-10-30  Akim Demaille  <akim@epita.fr>
13911         * bin/autom4te.in (&parse_args, $help): Support --no-cache.
13912         * doc/autoconf.texi (autom4te Invocation): Adjust.
13913         Suggested by Tim van Holder.
13915 2002-10-29  Paul Eggert  <eggert@twinsun.com>
13917         * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
13918         AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
13919         Problem reported by Bruno Haible.
13921 2002-10-29  Akim Demaille  <akim@epita.fr>
13923         * doc/autoconf.texi (Header Templates): Put also in words what the
13924         pictures says to assist free style readers.
13925         (Customizing autom4te): s/--cache=/--cache /.
13927 2002-10-29  Akim Demaille  <akim@epita.fr>
13929         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
13930         sys/wait.h.
13931         sparc_address_test returns void.
13932         Use it with an argument, as prototyped.
13933         From Bruno Haible.
13935 2002-10-29  Akim Demaille  <akim@epita.fr>
13937         * doc/autoconf.texi (Subdirectories): Cygnus dirs have
13938         configure.in, not configure.ac.
13939         Reported by Bruno Haible.
13941 2002-10-29  Akim Demaille  <akim@epita.fr>
13943         * tests/torture.at (Deep Package): New test.
13944         (Configuring subdirectories): Don't use a testSubDir as Autotest
13945         now does it itself.
13947 2002-10-29  Akim Demaille  <akim@epita.fr>
13949         * bin/autoreconf.in (&parse_args, $help): Support --warnings.
13950         * doc/autoconf.texi (Invoking autom4te): Rename as...
13951         (autom4te Invocation): this, for consistency with the other nodes.
13953 2002-10-29  Akim Demaille  <akim@epita.fr>
13955         * lib/autom4te.in (Autoconf): s/automate/autom4te/.
13956         Reported by Ralf Corsepius.
13958 2002-10-29  Akim Demaille  <akim@epita.fr>
13960         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
13961         characters is a back as an `obsolete' warning now.
13962         Reported by Ralf Corsepius.
13964 2002-10-28  Akim Demaille  <akim@epita.fr>
13966         * configure.ac: Bump to 2.54c.
13968 2002-10-28  Akim Demaille  <akim@epita.fr>
13970         Version 2.54b.
13972         * tests/foreign.at (Libtool): Adjust to broken libtoolize.
13974 2002-10-28  Akim Demaille  <akim@epita.fr>
13976         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
13977         m4 executable names, and different GNU M4 version.
13978         Reported by Ezra Peisach and Paul Jarc.
13980 2002-10-27  Akim Demaille  <akim@epita.fr>
13982         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
13983         AC_RUN_IFELSE.
13985 2002-10-27  Akim Demaille  <akim@epita.fr>
13987         * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
13988         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
13989         Die when a simple Fortran program cannot be compiled.
13990         * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
13991         Issue a warning if no function is given.
13993 2002-10-27  Akim Demaille  <akim@epita.fr>
13995         * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
13996         Move the documentation of AC_TRY_RUN to...
13997         (Obsolete Macros): here.
13998         Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
13999         (autoconf Invocation): Remove the duplicates with `invoking
14000         autom4te'.
14001         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
14002         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
14004 2002-10-27  Akim Demaille  <akim@epita.fr>
14006         * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
14007         and AC_LANG_FUNC_LINK_TRY.
14008         (Examining Libraries): Rename as...
14009         (Running the Linker): this.
14010         Document AC_LINK_IFELSE.
14011         Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
14012         (Obsolete Macros): here.
14013         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
14014         AC_TRY_LINK_FUNC nor AC_TRY_LINK.
14015         * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
14016         * lib/autoconf/headers.m4 (AC_USG): Likewise.
14018 2002-10-27  Akim Demaille  <akim@epita.fr>
14020         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
14022         More `check config.log' messages.
14024         * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
14025         * doc/autoconf.texi (Printing Messages): Document it.
14026         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
14027         appropriate.
14028         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
14029         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
14030         (_AC_COMPILER_OBJEXT): Likewise.
14031         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
14032         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
14033         Likewise.
14034         * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
14035         Likewise.
14037         Deprecate macros with unusual interfaces.
14039         * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
14040         (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
14042         Document the new ones, and proper style.
14044         * doc/autoconf.texi (Generating Sources): New.
14045         Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
14046         (Examining Declarations): Rename as...
14047         (Running the Preprocessor): this.
14048         Document AC_PREPROC_IFELSE.
14049         (Examining Syntax): Rename as...
14050         (Running the Compiler): this.
14051         (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
14052         (Obsolete Macros): Move the definition of AC_TRY_CPP and
14053         AC_TRY_COMPILE here.
14055 2002-10-27  Akim Demaille  <akim@epita.fr>
14057         Move sections around.
14059         * doc/autoconf.texi (Customizing autom4te): Remove a lost
14060         sentence.
14061         Reported by Burno Haible.
14062         (Language Choice): Now the first section of...
14063         (Writing Tests): this section.
14064         Make the introduction less C-centric.
14065         (Guidelines, Test Functions): Move to...
14066         (Writing Test Programs): this new section.
14067         (Test Programs): Merge into...
14068         (Run Time): this.
14070 2002-10-27  Akim Demaille  <akim@epita.fr>
14072         * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
14073         autom4te.in that resulted in the need for two `make' runs.
14075 2002-10-27  Akim Demaille  <akim@epita.fr>
14077         * configure.ac: Bump to 2.54b.
14079 2002-10-25  Akim Demaille  <akim@epita.fr>
14081         Version 2.54a.
14083         * Makefile.maint: Update from the Coreutils.
14084         (AMTAR): Remove, obsolete.
14085         (automake_repo): Update to redhat.com.
14086         (cvs_file): New.
14087         Adjust to the fact that ansi2knr is now hosted by Automake.
14088         * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
14089         * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
14090         Update from masters.
14091         * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
14092         autoscan.pre is not to be installed, and autoscan.list is not to
14093         be shipped.
14094         (CLEANFILES): Add autoscan.list.
14095         (autoscan.list): Disable the cache.
14096         * bin/Makefile.am: Include freeze.mk.
14098 2002-10-25  Akim Demaille  <akim@epita.fr>
14100         * bin/autom4te.in (&load_configuration): Take the file as
14101         argument.
14102         (&parse_args): Handle -C, --cache.
14103         ($help): Adjust.
14104         (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
14105         * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
14106         * doc/autoconf.texi (Invoking autom4te): Document --cache.
14107         Now a subsection of...
14108         (Using autom4te): This new section.
14109         (Customizing autom4te): New.
14110         (autom4te.cache): Adjust.
14112 2002-10-25  Akim Demaille  <akim@epita.fr>
14114         * doc/autoconf.texi (Generic Headers): More information on how to
14115         use AC_CHECK_HEADERS.
14117 2002-10-25  Akim Demaille  <akim@epita.fr>
14119         * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
14120         Space changes.
14122 2002-10-25  Akim Demaille  <akim@epita.fr>
14124         * bin/autoscan.in (output): Output AC_PREREQ.
14125         (%needed_macros): Add AC_PREREQ so that configure.ac without one
14126         be reported.
14128 2002-10-23  Akim Demaille  <akim@epita.fr>
14130         * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
14131         document _Bool.
14133 2002-10-23  Akim Demaille  <akim@epita.fr>
14135         * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
14136         Reported by Peter Eisentraut.
14138 2002-10-23  Akim Demaille  <akim@epita.fr>
14140         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
14141         type _Bool.
14142         Fix a typo.
14143         * doc/autoconf.texi (Particular Headers): Adjust according to Paul
14144         Eggert's recommandations.
14146 2002-10-22  Akim Demaille  <akim@epita.fr>
14148         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
14149         Bison, by Paul Eggert.
14150         * doc/autoconf.texi (Particular Headers): Document it.
14152 2002-10-22  Aaron M. Ucko  <amu@alum.mit.edu>
14154         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
14155         `$ac_configure_args'.
14157 2002-10-22  Akim Demaille  <akim@epita.fr>
14159         * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
14160         (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
14161         From Art Haas.
14163 2002-10-22  Akim Demaille  <akim@epita.fr>
14165         Restore the 2002-10-11  Akim Demaille  <akim@epita.fr> patch:
14167         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
14168         (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
14169         (_AC_CHECK_HEADER_NEW): Rename as...
14170         (AC_CHECK_HEADER): this.
14172 2002-10-22  Akim Demaille  <akim@epita.fr>
14174         * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
14175         words about HP-UX cmp: it was actually a user-written cmp.
14177 2002-10-22  Akim Demaille  <akim@epita.fr>
14179         * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
14180         are a few warnings.
14181         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
14182         Quote for Perl '' strings, not "".
14183         * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
14184         strings.
14186 2002-10-22  Akim Demaille  <akim@epita.fr>
14188         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
14189         characters is a syntax warning now.
14190         (_AS_QUOTE): Accept $2 as list of characters to quote.
14191         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
14192         Quote for Perl, not sh.
14193         * bin/autoheader.in: When $debug, report the file which is
14194         `do'ne.
14195         * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
14196         `@', to tickle Perl's lists.
14197         Reported by Carlos Velasco.
14199 2002-10-18  Akim Demaille  <akim@epita.fr>
14201         * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
14202         missing included files _are_ errors.
14203         Thanks to Alexandre Duret-Lutz.
14204         * tests/tools.at (autom4te cache): Adjust.
14205         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
14206         (AT_CHECK_M4SUGAR): Use it.
14207         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
14208         Adjust.
14209         * tests/tools.at (autom4te): Now it does exit 1.
14211 2002-10-17  Akim Demaille  <akim@epita.fr>
14213         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
14214         Fixes the `AC_ARG_VAR' test failures.
14215         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
14216         * lib/freeze.mk (check-forbidden-patterns): New.
14217         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
14218         * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
14219         * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
14220         /dev/null.
14221         Reported months ago by H. Merijn Brand.
14223 2002-10-17  Akim Demaille  <akim@epita.fr>
14225         * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
14227 2002-10-16  Paul Eggert  <eggert@twinsun.com>
14229         * Makefile.maint (wget_files): Remove ansi2knr.c.
14230         (ansi2knr.c-url_prefix): Remove.
14232 2002-10-16  Akim Demaille  <akim@epita.fr>
14234         Because of caching, some files that no longer exist and are no
14235         longer required can still cause errors.
14236         Reported by Alexandre Duret-Lutz.
14238         * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
14239         to frozen files in @ARGV, as @ARGV must remain being a list of
14240         files.  Rather, at M4 call sites, use this...
14241         (&files_to_options): New function.
14242         (&freeze): Use &error.
14243         (&up_to_date): If a file that was included according to the cache
14244         is no longer there, then the output is out dated.
14245         (&main): Don't even check whether a file is up to date is anyway
14246         --force is given.
14247         * tests/tools.at (autom4te cache): New.
14249 2002-10-16  Akim Demaille  <akim@epita.fr>
14251         * bin/autoconf.as: Kill dead options.
14252         * bin/autoupdate.in (&parse_args): Kill old options.
14253         * bin/autoreconf.in (&parse_args): Remove dead options.
14254         Factor some code.
14255         (&autoreconf): Report the directories we enter *and leave*, so
14256         that error messages can be easily located, and use GNU Make
14257         format, so that Emacs' compile mode understands us.
14258         * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
14259         if some file was changed instead of `print'.
14260         * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
14261         (&parse_args): Remove the dead options.
14262         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
14263         autoheader's quiet mode.
14264         (AT_CHECK_AUTOUPDATE): Likewise.
14265         * tests/tools.at (autoupdate): Adjust.
14266         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
14268 2002-10-11  Akim Demaille  <akim@epita.fr>
14270         No longer use CPP to check for the existing of headers: use CC to
14271         check for compilability.
14273         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
14274         (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
14275         (_AC_CHECK_HEADER_NEW): Rename as...
14276         (AC_CHECK_HEADER): this.
14278         * lib/autotest/general.m4 (AT_INIT): Include the failed test
14279         numbers in the Subject suggestion.
14281 2002-10-11  Akim Demaille  <akim@epita.fr>
14283         * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
14284         Suggest using AC_CHECK_DECLS instead.
14286 2002-10-11  Akim Demaille  <akim@epita.fr>
14288         * tests/torture.at (AC_ARG_VAR): Have configure report the value
14289         of `precious'.
14291 2002-10-11  Akim Demaille  <akim@epita.fr>
14293         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
14294         file name to enable parallel executions.
14295         From Sam Varshavchik.
14297 2002-10-08  Akim Demaille  <akim@epita.fr>
14299         * bin/autoreconf.in (&autoreconf): Run autopoint before the first
14300         aclocal invocation, as Gettext macros might not be visible to
14301         aclocal.
14302         Instead of blindly running autopoint, scan configure.ac (not the
14303         traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
14304         Reported by Paul D. Smith.
14306 2002-10-08  Paul Eggert  <eggert@twinsun.com>
14308         Work around problems found when POSIXLY_CORRECT=1 is set.
14309         None of this seems to have anything to do with POSIX, really,
14310         but it's how Perl getopt works.
14311         * bin/autom4te.in (parse_args): Configure GetOpt with
14312         "permute", too.
14313         * doc/autoconf.texi (Invoking autom4te):
14314         --warning -> --warnings.
14315         * lib/autom4te.in: --warning -> --warnings.
14317 2002-09-28  Akim Demaille  <akim@epita.fr>
14319         * doc/autoconf.texi (autom4te.cache): New section.
14321 2002-09-28  Akim Demaille  <akim@epita.fr>
14323         * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
14324         (Automake-preselections): Update.
14325         * bin/autoreconf.in, bin/autoheader.in: Comment changes.
14327 2002-09-28  Akim Demaille  <akim@epita.fr>
14329         * lib/autoscan/autoscan.pre: Move all the remaining rules to...
14330         * lib/autoconf/c.m4, lib/autoconf/functions.m4,
14331         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
14332         * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
14334 2002-09-28  Akim Demaille  <akim@epita.fr>
14336         * tests/torture.at (Configuring subdirectories): Be robust to
14337         users who use config.site to require for a cache: in this case,
14338         the two last configure runs, using two different sets of
14339         arguments, trigger a legitimate error.
14341 2002-09-28  Akim Demaille  <akim@epita.fr>
14343         * tests/m4sh.at (Functions Support, Functions and return Support):
14344         New.
14346 2002-09-28  Akim Demaille  <akim@epita.fr>
14348         * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
14349         autoheader are Perl programs.
14350         (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
14351         (autom4te): Specify that the sources are in the $srcdir.
14352         * doc/autoconf.texi (Installation Directory Variables): Adjust.
14354 2002-09-28  Akim Demaille  <akim@epita.fr>
14356         * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
14357         (tm_zone): Move their rules to...
14358         * lib/autoconf/types.m4: here, using AN_ macros.
14359         * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
14360         (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
14361         (make, mawk, nawk, ranlib, yacc): Similarly, move to...
14362         * lib/autoconf/programs.m4: here.
14363         * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
14364         (ETAGS_FOR_AUTOCONF): New.
14365         Use it.
14367 2002-09-28  Akim Demaille  <akim@epita.fr>
14369         * lib/autoconf/autoscan.m4: New file.
14370         * lib/autoconf/autoconf.m4: Include it.
14371         * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
14372         that were listed in the original autoscan.list.
14373         * lib/autoconf/headers.m4: Similarly with headers.
14374         * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
14375         (.m4.m4f): Don't pass --prepend-include, since that's done by
14376         tests/autom4te itself.
14377         * lib/autoscan/Makefile.am: Include freeze.mk.
14378         (autoscan.list): New target --this file is no longer a source.
14379         (autoscan.pre): New file.
14381 2002-09-28  Akim Demaille  <akim@epita.fr>
14383         * bin/autoscan.in (@kinds): Make them singular.
14384         Adjust all uses.
14385         (&init_tables): When --debug, report the list of rules to ease
14386         tracking changes in autoscan.list.
14387         * lib/autoscan/autoscan.list (function): Strip comments, sort.
14389 2002-09-28  Akim Demaille  <akim@epita.fr>
14391         * lib/autoscan/functions, lib/autoscan/headers,
14392         * lib/autoscan/identifiers, lib/autoscan/makevars,
14393         * lib/autoscan/programs: Merge into...
14394         * lib/autoscan/autoscan.list: this.
14395         * bin/autoscan.in (&init_tables): Adjust.
14397 2002-09-28  Akim Demaille  <akim@epita.fr>
14399         * lib/autoscan/functions, lib/autoscan/headers,
14400         * lib/autoscan/identifiers, lib/autoscan/makevars,
14401         * lib/autoscan/programs: Make the `kind' explicit, i.e., each
14402         `functions' line is now prefixed with `function:'.
14403         * bin/autoscan.in (&init_tables): Adjust.
14405 2002-09-28  Akim Demaille  <akim@epita.fr>
14407         From now on, autoscan files must always map a macro name to a
14408         word: there is no `default' macro for autoscan.
14410         * bin/autoscan.in (&init_tables): Reject entries with no macro at
14411         all.
14412         * lib/autoscan/functions, lib/autoscan/headers: Make the macro
14413         explicit.
14415 2002-09-28  Akim Demaille  <akim@epita.fr>
14417         * bin/autoscan.in (%c_keywords): Remove.
14418         (&used): Keep only track of the words we might be interested in.
14419         (&output_kind): It is no longer needed to look for non active
14420         checks.
14422 2002-09-27  Akim Demaille  <akim@epita.fr>
14424         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
14425         jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
14426         * lib/autoscan/functions: Adjust.
14427         * doc/autoconf.texi (Particular Functions): Adjust.
14429 2002-09-27  Akim Demaille  <akim@epita.fr>
14431         * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
14432         from /tmp.
14433         Thanks to Bill Moseley and Paul Eggert.
14434         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
14435         the tmpdir must be created.
14436         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
14437         dir be in the build tree, instead of $TMPDIR.
14439 2002-09-27  Akim Demaille  <akim@epita.fr>
14441         * bin/autoscan.in: Improve the comments.
14442         (&parse_args): Drop obsolete undocumented options.
14443         (&output_kind): Output warnings.
14444         * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
14445         (getwd): Trigger a warning.
14447 2002-09-26  Akim Demaille  <akim@epita.fr>
14449         * bin/autoreconf.in: Clarify that -s is meaningless without -i.
14450         Reported by Ralf Corsepius.
14451         * doc/autoconf.texi (autoreconf Invocation): Likewise.
14453 2002-09-26  Akim Demaille  <akim@epita.fr>
14455         Single suffix rules and seperated dependencies are not portable.
14457         * doc/autoconf.texi (Installation Directory Variables): Update.
14458         (Limitations of Make): Some about `Single Suffix Rules and
14459         Separated Dependencies'.
14460         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
14461         (ifnames, autoscan, autom4te): Un-factor into several rules.
14463 2002-09-25  Paul Eggert  <eggert@twinsun.com>
14465         * BUGS (Interoperability bugs): New section.  Mention libtool
14466         1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
14468 2002-09-24  Paul Eggert  <eggert@twinsun.com>
14470         Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
14471         make handles suffix-rules differently from GNU make.
14473         * bin/Makefile.am (SUFFIXES, .in): Remove.
14474         (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
14475         Move the body of the old .in rule here.
14477 2002-09-16  Akim Demaille  <akim@epita.fr>
14479         i960 compilers create `b.out' files by default.
14480         Reported by Ralf Corsepius.
14482         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
14483         (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
14485 2002-09-13  Paul Eggert  <eggert@twinsun.com>
14487         * doc/autoconf.texi (Particular Headers): Remove obsolete
14488         reference to `struct timezone' in the description of
14489         AC_HEADER_TIME.
14491 2002-09-13  Akim Demaille  <akim@epita.fr>
14493         Version 2.54.
14495         * config/config.sub, config/config.guess: Update.
14496         * Makefile.maint: Update from bits of the Coreutils 4.5.1.
14497         * Makefile.am: Adjust.
14499 2002-09-13  Akim Demaille  <akim@epita.fr>
14501         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
14502         reading config.log when the compiler is rejected.
14503         Suggested by Guido Draheim.
14505 2002-09-13  Akim Demaille  <akim@epita.fr>
14507         * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
14508         (chdir_init) might hang when stat'ing mounted directories.
14509         Reported by Vance Shipley.
14511 2002-09-12  Akim Demaille  <akim@epita.fr>
14513         * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
14514         the lists.
14516 2002-09-12  Akim Demaille  <akim@epita.fr>
14518         * doc/autoconf.texi (Defining Symbols): Present two different
14519         prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
14520         difference between 1 argument calls, and 2-3 argument calls.
14522 2002-09-12  Peter Eisentraut  <peter_e@gmx.net>
14524         * doc/autoconf.texi: Review grammar and punctuation.
14526 2002-09-11  Paul Eggert  <eggert@twinsun.com>
14528         * doc/autoconf.texi: Fix minor formatting, spelling, and
14529         grammatical typos.
14530         (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
14531         AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
14532         is obsolescent.
14534 2002-09-11  Akim Demaille  <akim@epita.fr>
14536         * doc/autoconf.texi (Questions): Rename as...
14537         (FAQ): this.
14538         (Defining Directories): New.
14540 2002-09-09  Akim Demaille  <akim@epita.fr>
14542         * doc/autoconf.texi (Making testsuite Scripts): Update.
14543         Suggested by Nishio Futoshi.
14545 2002-09-09  Koji Arai  <JCA02266@nifty.ne.jp>
14547         * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
14548         plain `@' is wanted.
14550 2002-09-09  Akim Demaille  <akim@epita.fr>
14552         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
14553         `duplicates', since the algorithm was too naive and could keep
14554         `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
14555         keep `--prefix foo --prefix bar' as `--prefix foo bar'.
14556         Reported by Ralf Corsepius.
14557         * tests/torture.at (Configuring subdirectories): Exercise these
14558         cases.
14560 2002-09-09  Akim Demaille  <akim@epita.fr>
14562         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
14563         looking for a replacement file.
14564         * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
14565         directory is relative.
14566         * doc/autoconf.texi (Generic Functions): Clarify the replacement
14567         directory definition.
14568         Reported by Andreas Schwab and Jim Meyering.
14570 2002-09-06  Akim Demaille  <akim@epita.fr>
14572         * doc/autoconf.texi (Setting Output Variables): Clarify what
14573         precious variables are.
14574         Suggested by Pontus Skoeld.
14576 2002-09-05  Akim Demaille  <akim@epita.fr>
14578         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
14579         (ifnames, autoscan, autom4te): Since we don't only depend on
14580         configure.ac variables (such as VERSION etc.), but also on prefix
14581         and so forth, depend on Makefile, not configure.ac.
14582         Reported by Alexandre Duret-Lutz.
14583         * doc/autoconf.texi (Installation Directory Variables): Adjust.
14585 2002-09-05  Kevin Ryde  <user42@zip.com.au>
14587         * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
14588         doesn't seem to be confined to ia64, just say "some versions".
14590 2002-09-04  Akim Demaille  <akim@epita.fr>
14592         * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
14593         Automake 1.6c.
14594         * Makefile.am (maintainer-clean-local): Remove.
14595         (MAINTAINERCLEANFILES): Remove COPYING.
14597 2002-09-03  Paul Eggert  <eggert@twinsun.com>
14599         * doc/autoconf.texi (Configuration Commands): Remove obsolete
14600         example for AC_CONFIG_COMMANDS_PRE.  Problem reported by Marcus
14601         Brinkmann.
14603 2002-09-03  Akim Demaille  <akim@epita.fr>
14605         * configure.ac: Bump to 2.53d.
14606         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
14607         as of today, on Automake's team suggestion.
14609 2002-09-03  Akim Demaille  <akim@epita.fr>
14611         Version 2.53c.
14613 2002-09-02  Akim Demaille  <akim@epita.fr>
14615         * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
14616         SITE_MACRO_DIR.
14617         * configure.ac: Disable SITE_MACRO_DIR.
14619 2002-09-02  Jim Meyering  <meyering@lucent.com>
14621         * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
14622         i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
14623         Also, tweak grammar: s/make sure to/be sure to/.
14625 2002-09-02  Paul Eggert  <eggert@twinsun.com>
14627         * doc/autoconf.texi (Limitations of Builtins): Explain why logical
14628         directory names are generally preferable to physical names.
14630 2002-09-02  Akim Demaille  <akim@epita.fr>
14632         * lib/Autom4te/General.pm (&update_file): s/die/error/.
14633         Reported by Raja R. Harinath.
14634         * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
14635         * bin/autoupdate.in: Use error instead of die.
14637 2002-09-01  Paul Eggert  <eggert@twinsun.com>
14639         * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
14640         ordinary shell concatenation rather than echo+tr+sed command that
14641         runs afoul of a long-line-related sed bug in Solaris 8.
14643         * bin/autoheader.in (parse_args): --warning -> --warnings.
14645         * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
14646         stdout, as traditional "ls" does.
14647         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
14648         _AC_COMPILER_EXEEXT_O): Likewise.
14649         * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
14651         * bin/autoconf.as: Add --prepend-include option.  This patch was
14652         applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
14653         but bin/autoconf.in is generated automatically from bin/autoconf.as.
14655         * bin/autoconf.in, configure: Regenerate.
14657         * doc/autoconf.texi (Special Shell Variables): Mention
14658         ENV, MAIL, MAILPATH, PS1, PS2, PS4.  Index PWD.
14660         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
14661         MAILPATH and set PS1, PS2, PS4 to default values, to work
14662         around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
14663         For LC_ALL etc, first try to set to "C" as POSIX requires and as
14664         the Autoconf documentation specifies; fall back to "unset" only if
14665         this fails.  Use a shell for-loop for this rather than an m4 loop,
14666         to shorten the output script.
14668 2002-08-30  Paul Eggert  <eggert@twinsun.com>
14670         * doc/autoconf.texi (Special Shell Variables): Mention POSIX
14671         1003.1-2001's requirements for CDPATH.  Give a simpler workaround
14672         for the CDPATH problem.  Document PWD.
14673         (Limitations of Builtins): Document the problem that "cd $foo" and
14674         "ls $foo" may refer to different directories in shells conforming
14675         to POSIX 1003.1-2001.  Use PS1 rather than CDPATH for "unset"
14676         example, since the old example is now out of date.
14678         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
14679         FOO" and "ls FOO" talk about different directories; this catches
14680         problems when POSIX 1003.1-2001 "cd" fails due to symlink
14681         spaghetti.
14683         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
14684         of rolling our own unset.
14685         (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
14686         in practice we needn't worry about CDPATH if unset doesn't work.
14688         * Makefile.in, aclocal.m4, bin/Makefile.in,
14689         config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
14690         lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
14691         lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
14692         lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
14693         tests/Makefile.in: Regenerate with Automake 1.6.3.
14695         * config/config.guess, config/config.sub, config/mkinstalldirs:
14696         Update.
14698         * configure: Regenerate with self.
14700 2002-08-30  Kevin Ryde  <user42@zip.com.au>
14702         * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
14703         default output.
14705 2002-08-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14707         * bin/autom4te.in (Request::load): Correctly test for "do" read
14708         failure.
14710 2002-08-29  Akim Demaille  <akim@epita.fr>
14712         * lib/Autom4te/General.pm (&xqx): New.
14713         (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
14714         hand, which is not portable.
14715         (&error): New.
14716         * bin/autom4te.in: Use them.
14717         Use &error instead of die.
14718         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
14719         Adjust.
14721 2002-08-17  Paul Eggert  <eggert@twinsun.com>
14723         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
14724         default list of compilers to try, since it was long ago superseded
14725         by the ksh fc builtin.  Suggested by Steven G. Johnson.
14727 2002-07-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
14729         * doc/autoconf.texi (Invoking autom4te): End the option table,
14730         fixing a bug introduced by the previous patch.
14731         (Limitations of Make): Add a 'target lookup' subentry in the
14732         'VPATH' entry.  Rewrite all `make' occurences as `@command{make}'.
14734 2002-07-29  Mark D. Roth  <roth@feep.net>
14736         * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
14737         options and use $AUTOM4TE_PATH.
14738         * doc/autoconf.texi: Remove documentation of autom4te
14739         --include-envvar and --site-macro-subdir options and document
14740         use of $AUTOM4TE_PATH.
14741         * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
14742         arguments from each language section.
14744 2002-07-29  Paul Eggert  <eggert@twinsun.com>
14746         * doc/install.texi: Include copyright symbol in copyright notice.
14748         * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
14749         Replace with:
14750         (AM_MAKEINFOFLAGS): New macro.
14751         * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
14752         * Makefile.am (INSTALL): Use the new macros.
14753         Use -o rather than --output, since "missing" does not grok --output.
14755 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
14757         * doc/autoconf.texi (Limitations of Make): Escaped newlines in
14758         comments do not always work. Never trust the exit status of
14759         `make -k'.
14761 2002-07-24  Kevin Ryde  <user42@zip.com.au>
14763         * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
14764         Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
14766 2002-07-23  Paul Eggert  <eggert@twinsun.com>
14768         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
14769         Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
14770         apparently treats PATH="nonexistent" as if it contained ".".
14771         Bug reported by Stefan `Sec' Zehl.
14773 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
14775         * doc/autoconf.texi (Limitations of Make): Mention the special
14776         handling of the obj/ directory by BSD make.
14778 2002-07-20  Kevin Ryde  <user42@zip.com.au>
14780         * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
14781         backslashes.
14783 2002-07-19  Akim Demaille  <akim@epita.fr>
14785         * doc/autoconf.texi (Function Portability): `exit'.
14786         (Programming in M4sh): Ethymology of M4sh.
14788 2002-07-19  Akim Demaille  <akim@epita.fr>
14790         * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
14792 2002-07-18  Akim Demaille  <akim@epita.fr>
14794         Version 2.53b.
14796 2002-07-18  Akim Demaille  <akim@epita.fr>
14798         * config/config.guess, config/config.sub: Update.
14800 2002-07-18  Akim Demaille  <akim@epita.fr>
14802         Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
14803         Automake's parts.
14805         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
14806         * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
14807         * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
14809 2002-07-18  Akim Demaille  <akim@epita.fr>,
14810             Alexandre Duret-Lutz  <duret_g@epita.fr>
14812         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
14813         _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
14815 2002-07-17  Russ Allbery  <rra@stanford.edu>
14817         * doc/autoconf.texi (Initializing configure): Clarify the
14818         description of the tarname default.
14820 2002-07-17  Andreas Buening  <andreas.buening@nexgo.de>
14822         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
14823         ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
14824         latter was not run.
14826 2002-07-17  Akim Demaille  <akim@epita.fr>
14828         * lib/Autom4te/General.pm (find_file): Browse the directories in
14829         the order they are given.
14831 2002-07-17  Akim Demaille  <akim@epita.fr>
14833         * tests/wrapsh.as, tests/wrappl.as: Merge into...
14834         * tests/wrapper.as: this.
14835         * tests/Makefile.am, configure.ac: Adjust.
14837 2002-07-17  Mark D. Roth  <roth@feep.net>
14839         * configure.ac: Add --enable-site-macro-dir option.
14840         * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
14841         * bin/autom4te.in: Add --prepend-include, --include-envvar, and
14842         --site-macro-subdir options.
14843         * bin/autoconf.in: Add --prepend-include option.
14844         * bin/autoheader.in: Add --prepend-include option.
14845         * bin/autoreconf.in: Add --prepend-include option.
14846         * bin/autoscan.in: Add --prepend-include option.
14847         * bin/autoupdate.in: Add --prepend-include option.
14848         * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
14849         macro directory, remove note that include path directories are
14850         used in reverse order, and document --prepend-include option.
14851         * lib/autom4te.in: Use --prepend-include instead of --include.
14852         * tests/wrapsh.in: Use --prepend-include instead of --include.
14854 2002-07-17  Akim Demaille  <akim@epita.fr>
14856         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
14857         tarnames.
14858         * doc/autoconf.texi (Initializing configure): Adjust.
14860 2002-07-17  Akim Demaille  <akim@epita.fr>
14862         * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
14863         (_AC_FUNC_MALLOC): New.
14864         (AC_FUNC_MALLOC): Use the latter.
14865         Define HAVE_MALLOC to 0 if broken.
14866         * doc/autoconf.texi (Particular Functions): Adjust.
14868 2002-07-16  Akim Demaille  <akim@epita.fr>
14870         * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
14871         * doc/autoconf.texi (C Compiler): Adjust.
14873 2002-07-09  Akim Demaille  <akim@epita.fr>
14875         * doc/autoconf.texi: Properly set the ``header'' part.
14877 2002-07-09  Akim Demaille  <akim@epita.fr>
14879         * doc/autoconf.texi (Systemology): Some about Darwin.
14881 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
14883         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
14884         Don't use AC_REQUIRE in AU_DEFUN.
14886 2002-07-09  Art Haas  <ahaas@neosoft.com>
14888         * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
14890 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
14892         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
14893         bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
14894         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
14895         so that Emacs setups GNU style for perl-mode and cperl-mode.
14897 2002-06-27  Paul Eggert  <eggert@twinsun.com>
14899         * config/install-sh: Quote $src.  Prefer || to test's -o option,
14900         as per "Limitations of Builtins".
14901         * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
14902         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
14904         * tests/mktests.sh: Use grep instead of fgrep, as per
14905         "Limitations of Builtins".
14907 2002-06-15  Paul Eggert  <eggert@twinsun.com>
14909         * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
14910         autom4te_perllibdir): Set to top build dir or src dir as appropriate,
14911         so that we consistently test the just-built programs.
14912         * tests/wrappl.as: Likewise.
14914 2002-06-12  Paul Eggert  <eggert@twinsun.com>
14916         * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
14917         name, so that symlinks to 'autoconf' work properly.  Bug reported
14918         by Bruno Haible.
14919         * bin/autoheader.in (AUTOM4TE): Likewise.
14920         * bin/autoreconf.in (autoconf, autoheader): Likewise.
14921         * bin/autoscan.in (autom4te): Likewise.
14922         * bin/autoupdate.in (autom4te): Likewise.
14924         * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
14925         btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
14926         on Solaris 2.5.1.
14928 2002-06-11  Andreas Schwab  <schwab@suse.de>
14930         * doc/autoconf.texi: Add more dir entries.
14932 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
14934         * bin/autom4te.in ($cache): Don't define using `$me', the name
14935         of the cache should not depend on the name under which autom4te
14936         was installed.
14938 2002-06-07  Akim Demaille  <akim@epita.fr>
14940         * tests/tools.at (autoconf: forbidden tokens, basic)
14941         (autoconf: forbidden tokens, exceptions): Adjust to the change of
14942         words in autom4te.in.
14944 2002-06-07  Peter Eisentraut  <peter_e@gmx.net>
14946         * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
14947         _AC_LANG_PROGRAM_C_F77_HOOKS.
14949 2002-06-07  Akim Demaille  <akim@epita.fr>
14951         * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
14952         rename as...
14953         (AC_REPLACE_FNMATCH): this.
14954         * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
14955         AC_FUNC_FNMATCH_GNU.
14957 2002-06-07  Akim Demaille  <akim@epita.fr>
14959         * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
14960         Rosetta Stone for Unix.
14962 2002-06-07  Akim Demaille  <akim@epita.fr>
14964         * bin/autom4te.in (warn_forbidden): When rejecting a token,
14965         suggest m4_pattern_allow.
14966         Suggested by Adam J. Richter.
14968 2002-06-07  Akim Demaille  <akim@epita.fr>
14970         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
14971         ac_config_libobj_dir.
14972         (AC_CONFIG_LIBOBJ_DIR): New.
14973         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
14974         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
14975         Use ac_config_libobj_dir to find the replacement files.
14976         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
14977         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
14978         (AC_REPLACE_FNMATCH_GNU): these.
14979         (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
14980         * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
14981         * tests/mktests.sh (ac_exclude_list): Don't check
14982         AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
14984 2002-06-06  Paul Eggert  <eggert@twinsun.com>
14986         * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
14987         if ln doesn't work.
14988         * NEWS: Likewise.
14989         * doc/autoconf.texi (Configuration Links): Likewise.
14990         (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
14992 2002-06-05  Paul Eggert  <eggert@twinsun.com>
14994         * config/config.guess, config/config.sub, config/texinfo.tex:
14995         Update from masters.
14997 2002-05-29  Paul Eggert  <eggert@twinsun.com>
14999         * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
15000         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
15001         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
15002         Likewise.
15003         * lib/autoconf/Makefile.am (check-local): Likewise.
15004         * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
15005         * lib/autoconf/types.m4 (commentary only): Likewise.
15006         * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
15007         * lib/autotest/Makefile.am (check-local): Likewise.
15008         * lib/m4sugar/Makefile.am (check-local): Likewise.
15009         * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
15010         * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
15012         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
15013         * doc/autoconf.texi (Particular Programs): Document them.
15014         (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
15015         * NEWS: Likewise.
15017 2002-05-27  Paul Eggert  <eggert@twinsun.com>
15019         * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
15020         * NEWS, doc/autoconf.texi (Particular Types): Document it.
15021         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
15022         instead of AC_MBSTATE_T, which never existed.
15024 2002-05-23  Akim Demaille  <akim@epita.fr>
15026         * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
15027         version of Autoconf that is discussed.
15029 2002-05-22  Paul Eggert  <eggert@twinsun.com>
15031         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
15032         from the default list of compilers to try.  Suggested by
15033         Kate Hedstrom.
15034         * NEWS: Document the above.
15035         * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
15037 2002-05-17  Paul Eggert  <eggert@twinsun.com>
15039         * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
15040         the member is itself an aggregate.  Bug reported by Sergey Poznyakoff.
15041         This improves on an earlier suggestion by H. Peter Anvin.
15043 2002-05-16  Paul Eggert  <eggert@twinsun.com>
15045         AC_FUNC_FNMATCH now tests only for POSIX compatibility.
15046         AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
15047         Both macros now accept an optional source-dir arg.
15048         New macro AC_GNU_SOURCE to define _GNU_SOURCE.
15050         * NEWS: Document this.
15051         * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
15053         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
15054         (AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
15055         not for GNU extensions; this undoes part of the 2000-11-03 change,
15056         reverting to 2.13-compatible behavior.
15057         Add new optional argument DIR.
15058         (AC_FUNC_FNMATCH_GNU): New macro.
15060         * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
15062 2002-05-08  Paul Eggert  <eggert@twinsun.com>
15064         * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
15065         Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
15066         and it causes a 'test' syntax error if it fails.
15067         Bug reported by Stephen Gildea.
15069         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
15070         If prototypes are supported, use them to check this at compile-time,
15071         instead of trying to check it at run-time.  If we must do a run-time
15072         check, assume that setvbuf is standard when cross-compiling, as
15073         nonstandard setvbuf occurs only on ancient and unlikely hosts.
15074         Bug reported by Paul D. Smith.
15076         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
15077         argument specifying location of getloadavg.c.  This removes a
15078         FIXME.  This idea was taken from Jim Meyering's implementation in
15079         textutils.
15080         * doc/autoconf.texi (Particular Functions): Document this.
15081         Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
15082         that's what the code does; this fixes a bug reported by
15083         Paul D. Smith.
15085 2002-05-03  Akim Demaille  <akim@epita.fr>
15087         * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
15088         autopoint instead of gettextize.
15089         ($uses_alocal): Rename as...
15090         ($uses_aclocal): this.
15091         * doc/autoconf.texi (autoreconf Invocation): Adjust.
15092         Suggested by Bruno Haible.
15094 2002-05-03  Akim Demaille  <akim@epita.fr>
15096         * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
15098 2002-04-29  Paul Eggert  <eggert@twinsun.com>
15100         * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
15101         files to be 1 second older; just set them to be the same time.
15102         Also, sleep 1 second after the first aclocal, to work around
15103         problems with sub-second time stamps on the input files.
15105 2002-04-29  Thien-Thi Nguyen  <ttn@gnu.org>
15107         * doc/autoconf.texi: Mention "set -e -x" lossage
15108         under node "Limitations of Builtins".
15110 2002-04-29  Akim Demaille  <akim@epita.fr>
15112         * doc/install.texi: Better wording for setting variables when
15113         running configure.
15114         From Christian Cornelssen.
15116 2002-04-29  Akim Demaille  <akim@epita.fr>
15118         * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
15119         of lack of $LINENO support, then the test will compare the $LINENO
15120         in testsuite vs. the lineno in the test file.  This is wrong, of
15121         course.
15122         Be sure to protect it.
15123         Reported by Patrick Welche.
15125 2002-04-25  Akim Demaille  <akim@epita.fr>
15127         * doc/autoconf.texi (Obsolete Macros): Typo.
15128         Reported by Vladimir Volovich.
15130 2002-04-25  Akim Demaille  <akim@epita.fr>
15132         * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
15133         than some of the input files, hence, on the second run of aclocal,
15134         if some of its input are younger, make them older.
15135         Suggested by Paul Eggert.
15137 2002-04-25  Akim Demaille  <akim@epita.fr>
15139         * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
15140         Thanks to Paul Eggert.
15142 2002-04-25  Akim Demaille  <akim@epita.fr>
15144         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
15145         and ac_subst_vars be sh variables containing the list of
15146         AC_SUBST_FILES'ed and AC_SUBST'ed identifiers.  Output them in the
15147         DEFAULT diversion.
15148         (_AC_INIT_PREPARE): Use them to log them.
15149         (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
15150         (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
15151         _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
15152         _AC_SUBST_FILES and _AC_SUBST_VARS.
15153         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
15155 2002-04-24  Akim Demaille  <akim@epita.fr>
15157         * bin/autoreconf.in (autoreconf): Run automake after autoconf and
15158         autoheader, so that automake does not complain about a missing
15159         config.h.in that was to be created.
15161 2002-04-23  Akim Demaille  <akim@epita.fr>
15163         * bin/autoheader.in (parse_args): --warning takes an argument.
15164         Fixes PR/220.
15166 2002-04-22  Peter Eisentraut  <peter_e@gmx.net>
15168         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
15169         and bb.out when cleaning up.
15171 2002-04-22  Akim Demaille  <akim@epita.fr>
15173         Version 2.53a.
15175 2002-04-22  Akim Demaille  <akim@epita.fr>
15177         * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
15179 2002-04-22  Akim Demaille  <akim@epita.fr>
15181         * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
15182         comma.
15183         Reported by Gregory Giannoni.
15185 2002-04-22  Akim Demaille  <akim@epita.fr>
15187         * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
15188         Fixes false failures on Darwin.
15190 2002-04-21  Paul Eggert  <eggert@twinsun.com>
15192         * TODO, bin/autoupdate.in, doc/autoconf.texi,
15193         lib/autoconf/general.m4, lib/autoconf/libs.m4,
15194         lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
15195         tests/tools.at: Minor spelling and grammar fixes.
15197 2002-04-20  Paul Eggert  <eggert@twinsun.com>
15199         * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
15200         ZSH_VERSION fixes.  Bug reported by Raja R Harinath.
15201         * lib/autotest/general.m4 (AT_INIT): Likewise.
15202         * tests/atgeneral.m4 (AT_INIT): Likewise.
15204 2002-04-19  Paul Eggert  <eggert@twinsun.com>
15206         * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
15207         doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
15208         lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
15209         lib/autoconf/functions.m4, lib/autoconf/general.m4,
15210         lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
15211         lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
15212         tests/atspecific.m4, tests/semantics.at, tests/torture.at:
15213         Minor spelling and grammar fixes.
15215         * doc/autoconf.texi: Follow the outline suggested in the GNU
15216         Sample Texts sections of the Texinfo 4.2 manual.  Most
15217         importantly, this makes sure that the copyright notices appear in
15218         all output formats.  You probably need Texinfo 4.2 to generate
15219         the manual now.
15221         Fix some bugs when using "$@" when there might be zero positional
15222         arguments in cases where this matters.
15224         * bin/autoconf.as: Rewrite so that the problem does not come up.
15225         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
15226         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
15227         * lib/autotest/general.m4 (AT_INIT): Likewise.
15229         * bin/autoheader.in: Use 'case' statement to work around problem.
15230         * bin/auto4mte.in: Likewise.
15231         * bin/autoreconf.in: Likewise.
15232         * bin/autoscan.in: Likewise.
15233         * bin/autoupdate.in: Likewise.
15234         * bin/ifnames.in: Likewise.
15236         * doc/autoconf.texi (Shell Substitutions): Document the problem.
15238         * lib/autotest/general.m4 (AT_INIT):
15239         Use Zsh alias to work around problem.
15240         * tests/atgeneral.m4 (AT_INIT): Likewise.
15242         * tests/c.at: We can't have zero arguments, so remove workaround
15243         that is not portable to Zsh.
15245 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
15247         * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
15248         from aclocal.m4 too.
15250 2002-04-12  Akim Demaille  <akim@epita.fr>
15252         * tests/wrappl.as: New, M4sh precursor of wrappl.in.
15254 2002-04-10  Akim Demaille  <akim@epita.fr>
15256         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
15257         workaround for ${1+"$@"}.
15258         * doc/autoconf.texi (Shell Substitutions): Explain it.
15259         From Oliver Kiddle and Peter Stephenson.
15261         Have M4sh perform minimal shell sanitizing.
15263         * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
15264         part into...
15265         (_AS_PREPARE): this new macro.
15266         (AS_PREPARE): New.
15267         (AS_INIT): Invoke AS_SHELL_SANITIZE.
15268         * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
15270         Adjust Autoconf and Autotest.
15272         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
15273         AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
15274         * lib/autotest/general.m4 (AT_INIT): Likewise.
15275         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
15276         Invoke _AS_PREPARE (not AS_PREPARE) in addition to
15277         AS_SHELL_SANITIZE.
15279         Use this M4sh to generate Autoconf's shell scripts.
15281         * tests/wrapsh.as: New, precursor of wrapsh.in.
15282         * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
15283         on Autotest and M4sh.
15284         ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
15285         (wrapsh.in): New target.
15286         * bin/autoconf.as: New, precursor of autoconf.in.
15287         (autoconf.in): New target.
15289 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
15291         * doc/autoconf.texi (Limitations of Make): Mention the issue
15292         with indented comments in rules.
15294 2002-04-09  Andreas Schwab  <schwab@suse.de>
15296         * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
15297         ac_top_builddir when setting ac_abs_top_builddir.
15299 2002-04-06  Kevin Ryde  <user42@zip.com.au>
15301         * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
15302         (Portable Shell): Cross reference to Systemology.
15304 2002-04-05  Akim Demaille  <akim@epita.fr>
15306         * bin/autoreconf.in (autoreconf): Be sure to accumulate the
15307         directories when descending in a SUBDIRS.
15308         Reported by Ezra Peisach.
15310 2002-04-04  Andreas Schwab  <schwab@suse.de>
15312         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
15313         contains no literal separators.
15315 2002-04-03  Akim Demaille  <akim@epita.fr>
15317         * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
15318         (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
15319         Use dnl, not the KILL diversion.
15320         Extracted from...
15321         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
15322         (AC_CONFIG_LINKS): here.
15323         Adjust.
15324         Don't use the KILL diversion, as it kills spurious output, which
15325         results in failures being hidden.
15326         Use m4_defn where appropriate.
15327         (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
15328         after the second argument.
15329         Use m4_defn.
15330         * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
15331         syntax, as it is provided by M4sugar.
15332         * tests/torture.at (Multiple AC_CONFIG_FILES): New.
15334 2002-04-03  Andreas Schwab  <schwab@suse.de>
15336         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
15337         expanded if $# <= 2.
15339         * bin/autoreconf.in (autoreconf): Run automake after rerunning
15340         aclocal.
15342 2002-04-03  Akim Demaille  <akim@epita.fr>
15344         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
15345         (_AC_COMPILER_EXEEXT_REJECT): New.
15346         Also recognize *.bb and *.bbg as compilation byproducts.
15347         (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
15348         (_AC_COMPILER_OBJEXT): Use them.
15349         Fixes Debian #138666.
15351 2002-04-02  Peter Eisentraut  <peter_e@gmx.net>
15353         Integrate AC_PROG_CC_STDC into AC_PROG_CC.
15355         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
15356         AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
15357         (AC_PROG_CC): Call _AC_PROG_CC_STDC.
15358         (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
15359         (AC_C_CONST): Same.
15360         (AC_C_INLINE): Same.
15361         (AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
15362         * doc/autoconf.texi, NEWS: Document.
15363         * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
15364         AC_C_CROSS.
15366 2002-04-02  Akim Demaille  <akim@epita.fr>
15368         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
15369         _AS_MKDIR_P_PREPARE.
15371 2002-03-28  Kevin Ryde  <user42@zip.com.au>
15373         * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
15374         to avoid versions of HP C which don't allow that.
15376 2002-03-27  Paul Eggert  <eggert@twinsun.com>
15378         * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
15379         (AS_SHELL_SANITIZE): Invoke it.
15380         (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
15382 2002-03-26  Akim Demaille  <akim@epita.fr>
15384         * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
15386 2002-03-26  Akim Demaille  <akim@epita.fr>
15388         * doc/autoconf.texi (Introduction): The GNATS base moved.
15390 2002-03-25  Paul Eggert  <eggert@twinsun.com>
15392         * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
15393         as POSIX requires, as it doesn't work with Zsh.
15394         * doc/autoconf.texi (Assignments): Document the problem.
15396 2002-03-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
15398         * doc/autoconf.texi (Limitations of Make): Mention more issue
15399         about VPATH, overriding of macros in sub-makes, and handling of
15400         SHELL.
15402 2002-03-21  Paul Eggert  <eggert@twinsun.com>
15404         * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
15405         problem with here-document buffer boundaries.
15407         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
15408         when reinvoking the shell, to work around problems with installers
15409         who put strange things like "cd" commands in their environments.
15411 2002-03-19  Akim Demaille  <akim@epita.fr>
15413         * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
15414         From Aaron Ucko.
15416 2002-03-19  Akim Demaille  <akim@epita.fr>
15418         * bin/autoscan.in (scan_file): Specify the location in `&used'
15419         invocations.
15420         From Nicolas Joly.
15422 2002-03-19  Akim Demaille  <akim@epita.fr>
15424         * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
15425         From Nishio Futoshi.
15427 2002-03-19  Akim Demaille  <akim@epita.fr>
15429         * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
15431 2002-03-18  Paul Eggert  <eggert@twinsun.com>
15433         * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
15434         (Limitations of Usual Tools): Add mkdir section.
15436         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
15437         (AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
15438         back on AS_DIRNAME to compute prefixes otherwise; this is
15439         roughly what mkinstalldirs does.  That way, we need not have
15440         our own filename disassembler.  The old disassembler did not
15441         work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
15443         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
15444         Create at_test_all by a series of assignments,
15445         not by a single assignment of a long string.  The latter causes ksh
15446         version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
15447         presumably because of a buffer overrun.
15449 2002-03-14  Paul Eggert  <eggert@twinsun.com>
15451         * lib/autotest/general.m4 (at_times_skip):
15452         Renamed from at_times.  Now a boolean.
15453         ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
15454         says 'times: not found'.
15456 2002-03-14  Akim Demaille  <akim@epita.fr>
15458         * bin/autoreconf.in (&study_gettextize): New.
15459         (&autoreconf): Handle newest gettextize.
15460         Rerun aclocal if needed.
15461         Suggested by Andreas Schwab.
15463 2002-03-13  Akim Demaille  <akim@epita.fr>
15465         * doc/autoconf.texi (Special Shell Variables): More about IFS.
15467 2002-03-13  Akim Demaille  <akim@epita.fr>
15469         * doc/autoconf.texi (Header Portability): New.
15470         Add information about stdint.h and inttypes.h from Paul Eggert.
15472 2002-03-13  Akim Demaille  <akim@epita.fr>
15474         * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
15475         -p'.
15476         From Bob Proulx.
15478 2002-03-12  Akim Demaille  <akim@epita.fr>
15480         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
15481         m4_require.
15483 2002-03-11  Andreas Schwab  <schwab@suse.de>
15485         * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
15486         does not do it if --with-lispdir is given.
15488 2002-03-08  Akim Demaille  <akim@epita.fr>
15490         Version 2.53.
15492 2002-03-08  Akim Demaille  <akim@epita.fr>
15494         * doc/autoconf.texi (Subdirectories): Clarify that the
15495         subdirectory should exist.
15497 2002-03-08  Akim Demaille  <akim@epita.fr>
15499         * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
15501 2002-03-08  Akim Demaille  <akim@epita.fr>
15503         * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
15504         aliases the actual variables, and modifications of the former
15505         affect the latter.
15507 2002-03-08  Akim Demaille  <akim@epita.fr>
15509         * bin/autom4te.in (&handle_m4): Protect us from corrupted file
15510         because of C-c: have m4 output in tmp files, then mv them.
15512 2002-03-08  Akim Demaille  <akim@epita.fr>
15514         * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
15515         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
15516         * bin/ifnames.in: Copyright update.
15518 2002-03-08  Akim Demaille  <akim@epita.fr>
15520         * doc/autoconf.texi (Invoking autom4te): New.
15522 2002-03-05  Akim Demaille  <akim@epita.fr>
15524         * doc/autoconf.texi (Specifying Names): Clarification suggested by
15525         Kevin Ryde.
15527 2002-03-05  Akim Demaille  <akim@epita.fr>
15529         Version 2.52i.
15531 2002-03-04  Akim Demaille  <akim@epita.fr>
15533         * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
15534         * lib/autoconf/general.m4 (AC_INIT): More informative error
15535         message for LIBOBJ.
15537 2002-03-04  Akim Demaille  <akim@epita.fr>
15539         * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
15540         parallel builds.
15542 2002-03-04  Akim Demaille  <akim@epita.fr>
15544         * doc/autoconf.texi (Transforming Names): Equality between target
15545         and host is irrelevant.
15546         (Specifying Names, Canonicalizing): Remove all references to the
15547         backward compatibility hooks.  Rather, collect them all into...
15548         (Hosts and Cross-Compilation): this new section.
15549         * doc/install.texi (System Type): Ditto.
15550         * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
15551         that `--host' implies cross-compilation.
15553 2002-03-04  Akim Demaille  <akim@epita.fr>
15555         * doc/autoconf.texi (Evaluation Macros): New.
15556         * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
15557         useless.
15558         (_m4_foreach): Define the variant with immediate evaluation so
15559         that it contains exactly the items, not an expression which
15560         evaluation is the current item.
15561         (m4_re_string, m4_re_word): Don't over quote them.
15563 2002-03-04  Akim Demaille  <akim@epita.fr>
15565         Instead of having stacking `shift's evaluated at the end, let
15566         `foreach' loops immediately evaluate them.
15568         * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
15569         $*.  This is the n-th time I change my mind, but hopefully this is
15570         the last...
15571         (m4_lquote): New.
15572         (m4_text_wrap): Use m4_foreach, which is finally correct _and_
15573         efficient.
15574         (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
15575         it was only a hack for m4_text_wrap.
15576         (m4_car2): Remove, replaced by...
15577         (m4_cdr): New.
15578         (_m4_foreach): Adjust.
15579         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
15580         m4_bpatsubst for clarification.
15582 2002-03-04  Akim Demaille  <akim@epita.fr>
15584         * doc/autoconf.texi (Changequote is Evil): New.
15586 2002-03-03  Kevin Ryde  <user42@zip.com.au>
15588         * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
15589         on old systems like SunOS.
15591 2002-03-01  Peter Eisentraut  <peter_e@gmx.net>
15593         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
15594         lib/autoconf/functions.m4, lib/autoconf/general.m4,
15595         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
15596         lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
15597         of messages.
15599 2002-02-28  Akim Demaille  <akim@epita.fr>
15601         * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
15602         message to be sent.
15604 2002-02-28  Kevin Ryde  <user42@zip.com.au>
15606         * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
15608 2002-02-25  Akim Demaille  <akim@epita.fr>
15610         * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
15611         From Akinori Musha.
15613 2002-02-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
15615         * lib/Autom4te/XFile.pm (getline, getlines): New functions,
15616         translate \r\n to \n.
15618 2002-02-07  Akim Demaille  <akim@epita.fr>
15620         Version 2.52h.
15622 2002-02-07  Akim Demaille  <akim@epita.fr>
15624         Fix Autoconf PR/209.
15625         Also reported by Frank Denis.
15627         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
15629 2002-02-07  Akim Demaille  <akim@epita.fr>
15631         Fix Autoconf PR/207:
15632         AC_PREFIX_PROGRAM fails with dashed program names
15634         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
15635         variable when looking for the prefix program.
15636         Now it also works for shell variables.
15638 2002-02-07  Akim Demaille  <akim@epita.fr>
15640         * doc/autoconf.texi (Limitations of Builtins): More about
15641         case/esac.
15643 2002-02-06  Akim Demaille  <akim@epita.fr>
15645         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
15646         case/esac, some shells don't support it.
15647         Reported by Zack Weinberg.
15648         * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
15650 2002-02-06  Akim Demaille  <akim@epita.fr>
15652         * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
15653         sure not to introduce newlines in at_groups.
15654         * lib/autotest/Makefile.am (autotest.m4f): Typo.
15656 2002-02-06  Akim Demaille  <akim@epita.fr>
15658         * tests/torture.at (Configuring subdirectories): Skip if aclocal
15659         is not available.
15661 2002-02-05  Paul Eggert  <eggert@twinsun.com>
15663         * doc/autoconf.texi (Specific Compiler Characteristics):
15664         Describe HP-UX cc bug workaround more accurately.
15665         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
15666         not unsigned long.
15667         * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
15668         cross-compilers, too.  This undoes some of the most recent change
15669         to this file.
15671 2002-02-05  Akim Demaille  <akim@epita.fr>
15673         * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
15674         to make sure they are up to date when `check' is run.
15676 2002-02-05  Akim Demaille  <akim@epita.fr>
15678         * doc/autoconf.texi (Making testsuite Scripts): Document
15679         package.m4.
15681 2002-02-05  Akim Demaille  <akim@epita.fr>
15683         * lib/freeze.mk: New.
15685 2002-02-05  Akim Demaille  <akim@epita.fr>
15687         Implement `autom4te --freeze'.
15689         * bin/autom4te.in (&freeze): New.
15690         * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
15691         * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
15693 2002-02-05  Akim Demaille  <akim@epita.fr>
15695         * bin/autom4te.in (&parse_args): Implement `frozen files are
15696         optional are the sum of the previous files on the command line'.
15697         Also, pass `--reload-state=' on them, so...
15698         (handle_m4): don't.
15699         * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
15700         (M4sh): Rely on M4sugar.
15701         (Autotest, M4sh, M4sugar): Use frozen files.
15703 2002-01-31  Akim Demaille  <akim@epita.fr>
15705         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
15706         * doc/autoconf.texi (Initializing configure): Adjust.
15708 2002-01-30  Akim Demaille  <akim@epita.fr>
15710         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
15711         alphanumeric to `-' instead of `_'.
15713 2002-01-30  Akim Demaille  <akim@epita.fr>
15715         * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
15716         for plain code, the other for cross-compilation code.  The latter
15717         is now run with GCC only.
15718         * doc/autoconf.texi (Compilers and Preprocessors): New.
15720 2002-01-30  Akim Demaille  <akim@epita.fr>
15722         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
15723         values.
15724         * doc/autoconf.texi (Initializing configure): Explain how to
15725         change AC_INIT default values.
15727 2002-01-29  Akim Demaille  <akim@epita.fr>
15729         * tests/torture.at (Configuring subdirectories): Use configure.in,
15730         so that aclocal 1.4 works.
15731         Reported by Alexandre Duret-Lutz and Larry Schmitt.
15733 2002-01-28  Akim Demaille  <akim@epita.fr>
15735         * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
15736         needs an argument.
15738 2002-01-28  Akim Demaille  <akim@epita.fr>
15740         * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
15741         AUTOTEST_PATH *after* it was set.
15742         Don't put `.' in the PATH: the user should be precise and `./' if
15743         needed.  In addition, given that the test suite does some `cd', if
15744         `.' is in the path, the `tested programs' sections will report
15745         programs found in the test suite's directory, while during the
15746         tests (performed in their own directory), these programs are no
15747         longer visible.  In other words, the results is confusing and
15748         useless.
15749         * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
15751 2002-01-24  Akim Demaille  <akim@epita.fr>
15753         Version 2.52g.
15755 2002-01-24  Akim Demaille  <akim@epita.fr>
15757         * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
15758         * doc/autoconf.texi: Finally add Akim as an author.
15760 2002-01-24  Akim Demaille  <akim@epita.fr>
15762         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
15763         (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
15764         Bourne. Use /bin/sh.
15765         From Andreas Buening.
15767 2002-01-24  Akim Demaille  <akim@epita.fr>
15769         * config/config.guess, config/config.sub, config/texinfo.tex:
15770         Update from masters.
15772 2002-01-24  Akim Demaille  <akim@epita.fr>
15774         * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
15775         * config/auxdir.m4, config/cond.m4, config/depend.m4,
15776         * config/init.m4, config/install-sh.m4, config/lispdir.m4,
15777         * config/missing.m4, config/sanity.m4, config/select.m4,
15778         * config/strip.m4: Remove, to ease sync'ing with any version of
15779         Automake.
15781 2002-01-24  Akim Demaille  <akim@epita.fr>
15783         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
15784         (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
15785         Reported by Geir Ove Myhr.
15787 2002-01-21  Akim Demaille  <akim@epita.fr>
15789         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
15791 2002-01-21  Akim Demaille  <akim@epita.fr>
15793         * lib/Autom4te/General.pm (getopt): Use a more GNUish error
15794         message on invalid options.
15795         * bin/autom4te.in (parse_args): Don't use
15796         Autoconf::General::getopt with non valid options.
15798 2002-01-17  Jim Meyering  <meyering@lucent.com>
15800         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
15801         $ac_cv_exeext so we don't use an old, invalid, cached value.
15803 2002-01-11  Akim Demaille  <akim@epita.fr>
15805         * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
15806         Meyering.
15807         * doc/autoconf.texi (Function Portability): Document the strnlen
15808         limitation.
15809         (Particular Functions): Document AC_FUNC_STRNLEN.
15810         * lib/autoscan/functions: Adjust.
15812 2002-01-06  Akim Demaille  <akim@epita.fr>
15814         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
15815         package.m4, since is really depends upon configure.ac, not
15816         configure.
15817         * doc/autoconf.texi (testsuite Scripts): Adjust.
15818         * tests/Makefile.am (package.m4): New.
15819         EXTRA_DIST it since its a source.
15821 2002-01-06  Akim Demaille  <akim@epita.fr>
15823         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
15824         of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
15825         and PACKAGE_BUGREPORT from here...
15826         (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
15827         arguments.
15828         (_AC_INIT_PREPARE): AC_DEFINE these symbols.
15829         * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
15830         (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
15831         * tests/tools.at (autoheader): Adjust.
15832         * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
15834 2002-01-06  Akim Demaille  <akim@epita.fr>
15836         * bin/autoscan.in (scan_file): Use `&used'.
15838 2002-01-03  Akim Demaille  <akim@epita.fr>
15840         * doc/autoconf.texi (Output): Improved wording regarding use of
15841         AC_OUTPUT.
15842         From Olly Betts.
15844 2001-12-18  Kevin Ryde  <user42@zip.com.au>
15846         * doc/autoconf.texi (Function Portability): Add notes on sscanf
15847         sometimes needing writable input.
15849 2001-12-17  Jim Meyering  <meyering@lucent.com>
15851         * doc/autoconf.texi (New Macros): Tweak wording.
15853 2001-12-14  Akim Demaille  <akim@epita.fr>
15855         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
15856         trailing files, don't apply `-rf' to files which might not be
15857         created by configure (core, core.*, and *.core), but just `rm -f'.
15858         Suggested by Jonathan Kamens.
15860 2001-12-14  Aaron M. Ucko  <amu@alum.mit.edu>
15862         * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
15864 2001-12-14  Akim Demaille  <akim@epita.fr>
15866         * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
15868 2001-12-13  Peter Eisentraut  <peter_e@gmx.net>
15870         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
15871         abs_builddir, top_buildpath to abs_top_builddir, srcpath to
15872         abs_srcdir, top_srcpath to abs_top_srcdir.
15873         (_AC_OUTPUT_FILES): Adjust.
15874         * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
15875         * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
15876         * tests/wrappl.in, tests/wrapsh.in: Adjust.
15878 2001-12-12  Steven G. Johnson  <stevenj@alum.mit.edu>
15880         * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
15881         C/Fortran linking on HP/UX, by extracting the Fortran library
15882         search path from the LPATH line in the $F77 -v output.
15884 2001-12-12  Kevin Ryde  <user42@zip.com.au>
15886         * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
15887         forbidden file descriptors table.
15889 2001-11-26  Akim Demaille  <akim@epita.fr>
15891         * bin/autoscan.in (%c_keywords): Build it at top level.
15892         Map to 1 in order to simplify its uses.
15894 2001-11-26  Akim Demaille  <akim@epita.fr>
15896         * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
15897         Remove $filepath, useless.
15898         (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
15899         variables, they are really part of the tokens.
15900         Split the input line on spaces and then look for tokens.
15901         Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
15902         because of `lex$U.$(OBJEXT)'.
15903         (&scan_files): Use "@list" instead of join.
15904         * doc/Makefile.am (CLEANFILES): Add *.fns.
15906 2001-11-26  Akim Demaille  <akim@epita.fr>
15908         * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
15909         Remove, replaced by...
15910         * tests/wrappl.in: Be common for all the Perl executables.
15911         In particular autoscan and autoheader want -I.
15912         * configure.ac: Adjust.
15913         * lib/autoscan/headers: errno.h is portable.
15915 2001-11-26  Akim Demaille  <akim@epita.fr>
15917         * bin/autoscan.in (used): New.
15918         Use it.
15920 2001-11-26  Akim Demaille  <akim@epita.fr>
15922         * bin/autoscan.in (&scan_c_file): Better parsing of CPP
15923         directives.
15924         (&scan_sh_file): Remove a duplicate pattern.
15925         (&check_configure_ac): Use long options.
15926         * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
15928 2001-11-26  Akim Demaille  <akim@epita.fr>
15930         * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
15931         Before, having a line containing the opening of a multi line
15932         comment made the whole line be ignored.
15934 2001-11-26  Akim Demaille  <akim@epita.fr>
15936         * doc/autoconf.texi (Using an Autotest Test Suite): New.
15937         (testsuite Scripts): Be one of its subsection.
15938         (Autotest Logs): New.
15940 2001-11-26  Akim Demaille  <akim@epita.fr>
15942         Test groups are now run two directories deeper.
15944         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
15945         top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
15946         at_top_builddir.
15947         * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
15948         top_srcdir, builddir and top_builddir.
15949         Use `at_*dir' relatively to the directory containing the
15950         suite, use `*dir' when relatively to the current group dir.
15952 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
15954         * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
15955         lib/autoconf/functions.m4, lib/autoconf/headers.m4,
15956         tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
15957         spelling errors.
15959 2001-11-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
15961         * doc/autoconf.texi (Using System Type): Add an example of `case
15962         $host' usage so people quit using `case $target' everywhere.
15964 2001-11-22  Akim Demaille  <akim@epita.fr>
15966         * doc/autoconf.texi (Installation Directory Variables): Englishoes
15967         spotted by Jim Meyering.
15969 2001-11-16  Paul Eggert  <eggert@twinsun.com>
15971         This patch implements a `long double' suggestion by Oliver Kiddle.
15973         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
15974         static, to catch errors if the value isn't known at compile-time
15975         and the compiler supports dynamic arrays.  Change its name from
15976         `_array_' to `test_array' to avoid potential name clashes.
15977         (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
15978         test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
15979         better than double.  Catch a bug in GCC 2.95.2 x86.
15980         * doc/autoconf.texi (C Compiler): Document the above.
15981         * NEWS: Likewise.
15983 2001-11-13  Akim Demaille  <akim@epita.fr>
15985         * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
15986         hand.
15987         * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
15989 2001-11-13  Akim Demaille  <akim@epita.fr>
15991         * lib/autotest/general.m4 (AT_INIT): After having run the test
15992         group, go back to the initial directory, not to at_suite_dir.
15994 2001-11-13  Akim Demaille  <akim@epita.fr>
15996         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
15997         (AT_DATA_AUTOCONF):  Also protect @&t@ from autom4te.
15998         (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
15999         option.
16000         (AT_CHECK_CONFIGURE): Use absolute paths.
16001         (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
16002         The problem is still the old one: there is no means in M4 (that I
16003         know about) to create a defining macro, because there is no means
16004         to create `$1' etc., therefore, the defining macro ``swallows''
16005         all the arguments meant to the defined macro.
16007 2001-11-13  Akim Demaille  <akim@epita.fr>
16009         * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
16010         (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
16011         configure.ac.
16012         * tests/aclocal.m4: Remove, as it is no longer used.
16014 2001-11-13  Akim Demaille  <akim@epita.fr>
16016         * lib/autotest/general.m4: Change `tests?' into `groups?' in
16017         variable names when referring to a single test group, or to
16018         `suite' when referring to the whole test suite.
16019         `at_last_test' is removed: m4 compute at_format itself.
16020         (at_stdout, at_stder1, at_stderr): New variables.
16021         (AT_CHECK): Use them.
16023 2001-11-13  Akim Demaille  <akim@epita.fr>
16025         * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
16026         in PATH.
16027         Create `testsuite.dir/003/run' instead of `testsuite.003'.
16028         Do it as soon as a test fails, don't wait till the end of the test
16029         suite.
16030         Don't remove $as_me.[0-9]*, since these files no longer exist.
16032 2001-11-13  Akim Demaille  <akim@epita.fr>
16034         * tests/tools.at: Use absolute paths, since we are no longer run
16035         in place.
16037 2001-11-13  Akim Demaille  <akim@epita.fr>
16039         Now that tests are running in their own private dir, there is no
16040         need to list the files to remove at the end of tests groups.
16042         * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
16043         (AT_data_files, at_data_files): Remove.
16044         (AT_CLEANUP, AT_DATA): Simplify.
16045         (AT_INIT): Adjust.
16046         Remove the group dir if !debug && !failed.
16047         * tests/atspecific.m4: Adjust.
16049 2001-11-13  Akim Demaille  <akim@epita.fr>
16051         Start a new layout for Autotest: `testsuite' creates
16052         `testsuite.dir' in which the at-check-line etc. files are to be
16053         found, and `testsuite.dir/003' where the test group 3 is run.
16055         * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
16056         at_check_line_file, at_format, at_test_normalized, at_group_dir
16057         are new variables.
16058         Create the directories.
16059         Use absolute paths for at- files.
16060         (AT_CHECK): Adjust.
16062 2001-11-11  Michael Matz  <matz@kde.org>
16064         * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
16065         (m4_car2): New.
16066         (m4_car): Properly quote arguments.
16068 2001-11-13  Akim Demaille  <akim@epita.fr>
16070         * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
16071         with stricter rules on LIBOBJS.
16073 2001-11-12  Paul Eggert  <eggert@twinsun.com>
16075         * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
16076         * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
16077         __PROTOTYPES too.
16079 2001-11-12  Akim Demaille  <akim@epita.fr>
16081         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
16083 2001-11-12  Akim Demaille  <akim@epita.fr>
16085         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
16086         * lib/autoconf/functions.m4, lib/autoconf/general.m4,
16087         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
16088         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
16089         * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
16090         specify to what the macro should be defined (typically to 1).
16092 2001-11-12  Akim Demaille  <akim@epita.fr>
16094         * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
16095         From Jim Meyering.
16097 2001-11-12  Akim Demaille  <akim@epita.fr>
16099         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
16100         AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
16101         definition used by Automake where LEX is +/- "${missing} lex" and
16102         `missing' itself contains variables.
16104 2001-11-12  Akim Demaille  <akim@epita.fr>
16106         * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
16107         Now that M4sh pushes BODY, the comments were output at the end of
16108         the test suites.
16110 2001-11-08  Akim Demaille  <akim@epita.fr>
16112         * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
16113         that we can trace macros from aclocal.m4.
16114         Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
16115         obsoleted, and redirect to the former anyway.
16116         Reported by Ralf Corsepius.
16118 2001-11-08  Akim Demaille  <akim@epita.fr>
16120         * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
16121         processed only if present.
16122         * tests/torture.at (Configuring subdirectories): Use autoreconf
16123         instead of successive calls to autoconf.
16124         Add a nonexistent subdirectory to exercise the patch above.
16125         Reported by Ralf Corsepius.
16127 2001-11-08  Kevin Ryde  <user42@zip.com.au>
16129         * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
16130         doesn't accept .S files.
16132 2001-11-07  Akim Demaille  <akim@epita.fr>
16134         * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
16135         * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
16136         (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
16137         * bin/autom4te.in (warn_forbidden): New.
16138         (handle_output): Use it.
16139         Read m4_pattern_forbid with messages.
16141 2001-11-05  Akim Demaille  <akim@epita.fr>
16143         * bin/autom4te.in (--normalize): Remove.
16144         * lib/autom4te.in: Adjust.
16146 2001-11-05  Akim Demaille  <akim@epita.fr>
16148         * tests/Makefile.am (testsuite): Rename this target as...
16149         ($(TESTSUITE)): this.
16150         From Nicolas Joly.
16152 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
16154         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
16155         the --prefix option, also remove it's argument.
16157 2001-11-05  Akim Demaille  <akim@epita.fr>
16159         * doc/autoconf.texi (testsuite Invocation): Update.
16160         (Writing testsuite.at): Update.
16162 2001-11-03  Akim Demaille  <akim@epita.fr>
16164         * doc/autoconf.texi: s/@code/@command/ where appropriate.
16166 2001-11-03  Akim Demaille  <akim@epita.fr>
16168         * lib/Autom4te/General.pm: (&catfile, &canonfile)
16169         (&file_name_is_absolute): New, wrappers around routines from
16170         File::Spec.
16171         Use and export them.
16172         (&find_configure_ac): Optionally take a directory where to look at.
16173         * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
16174         the arguments.
16175         Default @ARGV to `.', not find_configure_ac.
16176         (&autoreconf): Argument is a directory.
16177         Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
16178         * doc/autoconf.texi (autoreconf Invocation): Update.
16180 2001-11-03  Akim Demaille  <akim@epita.fr>
16182         * lib/Autom4te/General.pm (@export_vars, @export_subs)
16183         (@export_forward_subs): New.
16184         Add basename, dirname, and fileparse.
16185         (@EXPORT): Adjust.
16186         * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
16187         Don't look for aclocal flags if we already know aclocal is not
16188         used.
16189         Move aclocal.m4t only if it exists.
16190         Reported by Ezra Peisach.
16192 2001-11-03  Akim Demaille  <akim@epita.fr>
16194         * bin/autoreconf.in (&parse_args): Work only on the configure.ac
16195         passed on command line, defaulting to ./configure.ac if present.
16196         (&maybe_autoreconf, File::Find): Remove, unused.
16197         (&autoreconf): If autoconf is not used, don't try to trace.
16199 2001-11-02  Akim Demaille  <akim@epita.fr>
16201         * configure.ac: Bump to 2.52g.
16203 2001-11-02  Akim Demaille  <akim@epita.fr>
16205         Version 2.52f.
16207 2001-11-02  Akim Demaille  <akim@epita.fr>
16209         * config/config.guess, config/config.sub, doc/standards.texi:
16210         * config/lispdir.m4: Update from masters.
16211         * configure.ac: Bump to 2.52f.
16213 2001-11-02  Akim Demaille  <akim@epita.fr>
16215         * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
16216         Don't run aclocal when aclocal.m4 is not from aclocal.
16217         From Ezra Peisach.
16218         Don't run libtoolize and gettextize if --install is not given.
16220 2001-11-01  Paul Eggert  <eggert@twinsun.com>
16222         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
16223         be invoked before _AS_LINENO_PREPARE.
16224         (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
16225         than character ranges.
16227         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
16228         invoking AS_BASENAME.  Set the locale variables to 'C' if
16229         possible, as POSIX requires this to get the traditional
16230         behavior.
16231         * doc/autoconf.texi (Special Shell Variables): Describe the above.
16233 2001-10-31  Paul Eggert  <eggert@twinsun.com>
16235         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
16236         with {}, as that triggers a bug in Bash 2.05.
16238         (_AS_LINENO_PREPARE): Use Sed rather than
16239         Awk.  Fix the sed prepass to work even if there are multiple
16240         instances of $LINENO on the same line.  Do not substitute for
16241         other variables like $LINENOT.  Do not check file dates; such a
16242         check is unreliable on sufficiently fast machines, and removing
16243         the check makes the code simpler and more reliable.  Check for
16244         output and chmod failures.
16246         * doc/autoconf.texi (Special Shell Variables): Document
16247         the above.
16249 2001-10-31  Akim Demaille  <akim@epita.fr>
16251         * tests/Makefile.am (atconfig): Remove this target, Automake
16252         handles it now.
16254 2001-10-31  Akim Demaille  <akim@epita.fr>
16256         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
16257         AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
16258         provided, while it is optional.
16259         * configure.ac: Adjust.
16261 2001-10-26  Paul Eggert  <eggert@twinsun.com>
16263         * NEWS, README, configure.ac, lib/Autom4te/General.pm,
16264           lib/Autom4te/Struct.pm:
16265         Require Perl 5.005_03 instead of just 5.005, as some tests fail
16266         with 5.005_02.
16268         * doc/autoconf.texi (Special Shell Variables): Document some
16269         more LINENO gotchas, particularly with respect to the Awk+Sed hack.
16271         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
16272         (_AS_LINENO_PREPARE): Use it instead of shell eval, since
16273         eval $LINENO is not portable in practice.
16275 2001-10-24  Akim Demaille  <akim@epita.fr>
16277         * lib/Autom4te/General.pm (backname): New.
16279 2001-10-24  Akim Demaille  <akim@epita.fr>
16281         * m4/: Remove, merged into...
16282         * config/: here.
16284 2001-10-23  Tim Van Holder  <tim.van.holder@pandora.be>
16286         * doc/autoconf.texi (Shellology): Mention the problems with bash
16287         2.05's use of ANSI quoting in its `set' builtin.
16289 2001-10-22  Paul Eggert  <eggert@twinsun.com>
16291         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
16292         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
16293         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
16294         POSIX decided to standardize on the int flavor of strerror_r.
16295         Always do char* test, as there's no reason not to.
16296         Assign to a char* var, to catch strerror_r that returns int*.
16298         * doc/autoconf.texi (Particular Functions):
16299         Document the above changes.  Also, document the fact that
16300         AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
16302         * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
16304 2001-10-20  Akim Demaille  <akim@epita.fr>
16306         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
16307         the executable was missing from the log.
16309 2001-10-20  Akim Demaille  <akim@epita.fr>
16311         * lib/Autom4te/General.pm (&update_file): If destination is
16312         unchanged, remove the source.
16313         (&up_to_date_p): Don't be verbose, be debug.
16314         * bin/autoreconf.in: No longer support --m4dir.
16315         (&autoreconf): Display the full path of the configure.ac we are
16316         studying.
16317         Trace it only once.
16318         Be sure to honor --force with gettextize.
16319         Always run aclocal.
16320         * doc/autoconf.texi: Adjust.
16322 2001-10-20  Akim Demaille  <akim@epita.fr>
16324         * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
16325         Remove, dead.
16326         * bin/autoreconf.in (&autoreconf): Do not run gettextize when
16327         `intl' is already present, as it refuses unless --force.
16328         (&parse_args): Use -I, --include instead of the old Autoconf
16329         options.
16330         ($localdir, $autoconf_dir): Remove.
16331         (@include): New.
16332         (&maybe_autoreconf): New, to preserve $_ for File::Find.
16334 2001-10-19  Jens Petersen  <petersen@redhat.com>
16336         * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
16337         * doc/autoconf.texi (Particular Programs): Likewise.
16339 2001-10-19  Akim Demaille  <akim@epita.fr>
16341         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
16342         file in @configure_input@.
16343         Don't mention `automatically' in addition to `generated'.
16344         * tests/torture.at (#define header templates): Adjust.
16346 2001-10-19  Akim Demaille  <akim@epita.fr>
16348         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
16349         comment, explain how to install automatic mode selection.
16350         From Russ Allbery.
16352 2001-10-19  Ezra Peisach  <epeisach@zif.mit.edu>
16354         * bin/autoreconf.in (autoreconf): Display the path to the
16355         configure.ac being studied.
16357 2001-10-18  Paul Eggert  <eggert@twinsun.com>
16359         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
16360         long, to work around a bug in the HP C compiler version HP92453-01
16361         B.11.11.23709.GP.
16363         * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
16364         (AS_BASENAME_EXPR): New macro.
16365         (AS_BASENAME_SED): Do not assume GNU sed semantics.
16366         (AS_BASENAME): Use 'basename' if that works; then try 'expr';
16367         and fall back on 'sed' only if the other two fail.  This makes
16368         AS_BASENAME act more like AS_DIRNAME.
16369         (as_me): Shell-quote the argument of AS_BASENAME, in case $0
16370         contains white space.
16371         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
16372         Use AS_DIRNAME, since I think it's now DOS-friendly.
16373         * tests/m4sh.at (DIRNAME_TEST): New arg $3.
16374         Allow "dirname //FOO" to return either / or //, as POSIX allows
16375         either behavior.
16377 2001-10-10  Akim Demaille  <akim@epita.fr>
16379         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
16380         `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
16381         From Eric Sharkey.
16383 2001-10-10  Akim Demaille  <akim@epita.fr>
16385         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
16386         m4_define, since...
16387         (_AS_ECHO_N): AS_REQUIREs it.
16389 2001-10-10  Akim Demaille  <akim@epita.fr>
16391         * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
16392         (AC_INCLUDES_DEFAULT): Move to...
16393         * lib/autoconf/headers.m4: here.
16394         * lib/autoconf/types.m4: Comment changes.
16395         * doc/autoconf.texi: Specify where the default includes are used
16396         in the macro prototypes.
16398 2001-10-09  Akim Demaille  <akim@epita.fr>
16400         * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
16401         transition code.
16403 2001-10-08  Akim Demaille  <akim@epita.fr>
16405         * bin/autoreconf.in (&autoreconf): Remove debugging code.
16406         (&parse_args): Pass verbosity/debugging options to subtools when
16407         --debug, not when --verbose.
16408         * lib/autom4te.in (Autoreconf-preselections): New.
16409         (Autoconf): Use it.
16411 2001-10-08  Akim Demaille  <akim@epita.fr>
16413         * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
16415 2001-10-08  Akim Demaille  <akim@epita.fr>
16417         * doc/autoconf.texi (autoreconf Invocation): Adjust.
16418         * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
16420 2001-10-08  Akim Demaille  <akim@epita.fr>
16422         * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
16423         (Syntax of the shell scripts): Don't.
16424         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
16425         bother with $force since...
16426         * lib/Autom4te/General.pm: does.
16428 2001-10-08  Akim Demaille  <akim@epita.fr>
16430         * bin/autoreconf.in: Rewrite in Perl.
16431         * configure.ac: Adjust.
16432         * lib/Autom4te/General.pm (&up_to_date_p): New.
16433         * bin/autom4te.in (&up_to_date_p): Use it.
16434         Rename as...
16435         (&up_to_date): this.
16437 2001-10-08  Akim Demaille  <akim@epita.fr>
16439         * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
16440         (m4_list_cmp): Use $0 to reinvoke yourself.
16441         (m4_patsubsts): New.
16442         (m4_strip, m4_version_unletter): Use it.
16443         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
16445 2001-10-08  Akim Demaille  <akim@epita.fr>
16447         * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
16448         * lib/autoconf/libs.m4, lib/autoconf/status.m4,
16449         * lib/autoconf/types.m4, lib/autotest/general.m4,
16450         * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
16451         * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
16452         m4_bregexp, m4_bpatsubst, and m4_bmatch.
16453         * doc/autoconf.texi (Redefined M4 Macros): Adjust.
16455 2001-10-08  Akim Demaille  <akim@epita.fr>
16457         * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
16459 2001-10-08  Akim Demaille  <akim@epita.fr>
16461         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
16462         * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
16463         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
16464         * tests/tools.at, tests/m4sh.at: Use it.
16465         * tests/m4sh.at: Don't rely on Autoconf macros.
16466         (DIRNAME_TEST): Also exercise the expr variant.
16467         * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
16468         preferred M4sugar extension is now `.4s'.
16469         * tests/README: Remove.
16471 2001-10-08  Akim Demaille  <akim@epita.fr>
16473         * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
16474         (m4_provide_if): this.
16475         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
16476         * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
16477         (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
16478         M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
16480 2001-10-08  Akim Demaille  <akim@epita.fr>
16482         Use `add-log-current-defun-function' for ChangeLog creation.
16483         Suggested by Tom Tromey.
16485         * lib/emacs/autotest-mode.el (autotest-mode-map): New.
16486         (autotest-mode): Adjust.
16487         * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
16488         'comment-region onto `C-c ;'.
16489         Comments are `#', not `dnl'.
16490         (autoconf-current-defun): New.
16491         (autoconf-font-lock-keywords): Recognize `m4_defun'.
16493 2001-10-08  Akim Demaille  <akim@epita.fr>
16495         * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
16496         * lib/m4sugar/m4sh.m4: here.
16497         (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
16498         * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
16499         (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
16500         include handle the m4_pattern_*, no longer push the
16501         BODY diversion nor set the /bin/sh line, AS_INIT does it.
16502         * lib/autotest/general.m4 (AT_INIT): Likewise.
16503         * tests/base.at: Adjust the tests to use AS_INIT.
16504         * tests/tools.at (AT_DATA_FORBIDDEN): New.
16505         (autoconf: forbidden tokens): Adjust to work on M4sh instead of
16506         Autoconf.
16508 2001-10-07  Paul Eggert  <eggert@twinsun.com>
16510         * doc/autoconf.texi (config.status Invocation):
16511         CONFIG_SHELL defaults to a shell that supports LINENO if available.
16513         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
16514         shell does not support LINENO, and if CONFIG_SHELL is unset or
16515         empty, and if we can find a shell that does support LINENO,
16516         then set CONFIG_SHELL to that shell and then re-execute
16517         ourselves with CONFIG_SHELL.
16519 2001-10-05  Paul Eggert  <eggert@twinsun.com>
16521         * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
16522         doesn't exist.  Remove *.tmp, as a .tmp file is created during the
16523         build of $(TESTSUITE).
16525 2001-10-05  Akim Demaille  <akim@epita.fr>
16527         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
16528         iff we are a bareword.
16529         Reported by Raja R Harinath.
16531 2001-10-05  Akim Demaille  <akim@epita.fr>
16533         * tests/m4sh.at (LINENO): New.
16534         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
16535         PATH_SEPARATOR before using it.
16536         Fix the absolute path case/esac pattern.
16537         Provide $0 as fallback for as_myself.
16538         Reported by Raja R Harinath.
16540 2001-10-05  Akim Demaille  <akim@epita.fr>
16542         * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
16543         * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
16545 2001-10-05  Akim Demaille  <akim@epita.fr>
16547         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
16548         (AS_SHELL_SANITIZE): here.  Use it.
16549         (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
16550         From Paul Eggert.
16552 2001-10-04  Akim Demaille  <akim@epita.fr>
16554         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
16555         combination of Awk and sed to replace $LINENO.
16557 2001-10-02  Paul Eggert  <eggert@twinsun.com>
16559         * doc/autoconf.texi (Limitations of Builtins): You can't use
16560         "source"; it's not portable.  Remove confusing and
16561         somewhat-incorrect example involving "." and "/".
16563         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
16564         compatibility with POSIX shells.
16566 2001-10-02  Akim Demaille  <akim@epita.fr>
16568         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
16569         instead of exec'ing to preserve $0 and $@.
16571 2001-10-01  Akim Demaille  <akim@epita.fr>
16573         * tests/testsuite (AT_INIT) <at_pass_list>: New.
16574         Don't run twice the same test.
16576 2001-10-01  Akim Demaille  <akim@epita.fr>
16578         * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
16579         No longer output the list of tests.
16580         <--list>: New option.
16581         <--full-help>: Remove.
16582         Complete the short/long options duality.
16583         Various small adjustments.
16585 2001-10-01  Akim Demaille  <akim@epita.fr>
16587         * doc/autoconf.texi: Use @kbd for user input.
16588         Always use `$' as shell prompt.
16590 2001-09-30  Paul Eggert  <eggert@twinsun.com>
16592         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
16593         Don't use nested parenthesization.  This patch was originally
16594         suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
16595         but somehow it didn't get incorporated then.
16596         * doc/autoconf.texi (Limitations of Usual Tools):
16597         Clarify remark about sed and nested parenthesization.
16599         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
16600         Report an error if the size cannot be determined even though
16601         the type exists.
16602         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
16603         Check for `expr' arithmetic overflow, and for compilation failure,
16604         and invoke a new argument $4 if either is discovered.
16605         This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
16606         (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
16608 2001-09-28  Akim Demaille  <akim@epita.fr>
16610         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
16611         * m4/lispdir.m4: New.
16612         * aclocal.m4, configure.ac: Adjust.
16614 2001-09-28  Akim Demaille  <akim@epita.fr>
16616         * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
16617         (AT_TESTED): this.
16618         (AT_INIT): More the wrapped section to where it will be expanded.
16619         Output `AT_tested' only when existing.
16620         Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
16622 2001-09-27  Akim Demaille  <akim@epita.fr>
16624         Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
16625         generates too many bug reports.
16627         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
16628         status when executing the ACTION-IF-FALSE.
16629         * tests/base.at (AC_TRY_*): Rename as...
16630         (AC_TRY_COMMAND): this.
16631         (AC_RUN_IFELSE): New.
16632         * tests/compile.at (Extensions, C keywords)
16633         (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
16634         (Broken/missing compilers, AC_PROG_CPP with warnings)
16635         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
16636         * tests/c.at (Extensions, C keywords)
16637         (Broken/missing compilers, AC_PROG_CPP with warnings)
16638         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
16639         (AC_PROG_CPP requires AC_PROG_CC): here and...
16640         * tests/fortran.at (GNU Fortran 77): there.
16641         * doc/autoconf.texi (autoconf Invocation): Fix the example:
16642         AC_TRY_RUN is about compilation, not shell commands.
16643         (Test Programs): AC_TRY_RUN works as used to be advertised.
16645 2001-09-27  Akim Demaille  <akim@epita.fr>
16647         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
16648         Raja R Harinath:
16649         Be sure to detect when $LINENO always returns the same value.
16650         Look for the original script, basename($0) is certainly not
16651         enough.
16652         Pass the CLI arguments to `$as_me.lineno'.
16654 2001-09-25  Akim Demaille  <akim@epita.fr>
16656         * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
16657         Be sure the close and reopen the LOG fd before and after using tee
16658         to extend the log.
16659         <at_tests_pattern>: Adjust to the new format of at_help_all.
16661 2001-09-23  Akim Demaille  <akim@epita.fr>
16663         * bin/autom4te.in (parse_args): There can be several invocations
16664         of --language now.
16666 2001-09-23  Akim Demaille  <akim@epita.fr>
16668         * doc/autoconf.texi (Top): Wrap in @ifnottex.
16670 2001-09-23  Akim Demaille  <akim@epita.fr>
16672         * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
16673         ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
16674         (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
16675         builddir, buildpath, top_builddir, and top_buildpath.
16676         (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
16677         the current directory.
16678         * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
16679         variables *before* changing the current directory.
16680         Skip nonexistent dirs.
16681         * doc/autoconf.texi (Preset Output Variables): Document these
16682         variables.
16684         * lib/autotest/general.m4: Do not reset AT_victims.
16685         Don't compute at_srcdir nor at_top_srcdir.
16687         * tests/tools.at: Hence use top_srcdir.
16689         * tests/Makefile.am, tests/autoconf, tests/autoheader,
16690         * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
16691         Remove.
16692         * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
16693         * tests/wrapsh.in, tests/autoupdate.in: New.
16694         * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
16695         * configure.ac: Build the position independent wrappers.
16697         * man/Makefile.am: Now that test wrappers are position
16698         independent, use them and drop dark envvar magic.
16700 2001-09-23  Akim Demaille  <akim@epita.fr>
16702         * doc/autoconf.texi (Common Shell Constructs): Rename as...
16703         (Programming in M4sh): this.
16704         Promote to @section.
16706 2001-09-23  Akim Demaille  <akim@epita.fr>
16708         * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
16709         Pass $at_debug_args to the rerun test suite.
16710         * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
16711         * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
16712         From Paul Eggert.
16714 2001-09-23  Akim Demaille  <akim@epita.fr>
16716         * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
16718 2001-09-23  Akim Demaille  <akim@epita.fr>
16720         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
16721         over-escaping.
16723 2001-09-23  Akim Demaille  <akim@epita.fr>
16725         * lib/Autom4te/General.pm (&debug): New.
16726         * bin/autom4te.in ($language): Move to...
16727         (parse_args): here.
16728         Handle --language in languages.
16729         * lib/autom4te.in (Automake-selections, Autoheader-selections)
16730         (Autoscan-selections): New.
16731         (Autoconf): Adjust.
16733 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
16735         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
16736         * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
16737         to match current versions from CVS Automake.
16739 2001-09-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
16741         * doc/autoconf.texi (Special Shell Variables): Add pdksh output
16742         for $LINENO.
16744 2001-09-22  Akim Demaille  <akim@epita.fr>
16746         * lib/autoconf/autotest.m4: Create `package.m4'.
16747         * tests/Makefile.am (package.m4): Remove.
16749 2001-09-22  Akim Demaille  <akim@epita.fr>
16751         Rely on `$LINENO' when possible instead of `__oline__'.
16753         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
16754         `$LINENO' support replacement when not supported.
16755         (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
16756         them explicitly to be sure they are not output before this section
16757         (via m4_require).  Cosmetic only.
16758         * lib/autoconf/c.m4, lib/autoconf/general.m4,
16759         * lib/autoconf/programs.m4: Replace all the occurrences of
16760         `__oline__' with `$LINENO'.
16761         * doc/autoconf.texi (Special Shell Variables): Document LINENO.
16763 2001-09-21  Tim Van Holder  <tim.van.holder@pandora.be>
16765         * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
16766         character (u: -> ue) in a code comment.
16767         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
16768         it works.
16770 2001-09-21  Akim Demaille  <akim@epita.fr>
16772         * Makefile.maint (AUTOM4TE): Neutralize autom4te.
16773         Suggested by Jim Meyering.
16775 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
16777         * lib/autoconf/programs.m4: Use extensions listed in
16778         $ac_executable_extensions when looking for programs.
16780 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
16782         * lib/autoconf/general.m4: Fix a small Englisho.
16783         * lib/autoconf/status.m4: Fix a small typo.  Handle DOS paths when
16784         setting up ac_dir_suffix and ac_top_builddir.
16785         * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
16787 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
16789         * doc/autoconf.texi (File System Conventions): Clarify the use of
16790         PATH_SEPARATOR.
16791         (Special Shell Variables[PATH_SEPARATOR]): Ditto.
16792         (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
16793         be used instead of ':'.
16794         * lib/autotest/general.m4: Replace occurrences of ':' in
16795         AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
16797 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
16799         * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
16800         arguments.  Fixed a typo.
16802 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
16804         * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
16805         $PATH.  Also set AUTOM4TE_CFG, so we can process autom4te properly.
16807 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
16809         * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
16810         * bin/autoupdate.in: Ditto.
16811         * bin/autoheader.in: Reworded a few comments.
16812         * bin/autoconf.in: Reworded help text for a few options.
16813         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
16814         * bin/autoscan.in, bin/autoupdate.in: Ditto.
16816 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
16818         * lib/Autom4te/XFile.pm (open): Simplified the error message (we
16819         already have $file).  Set output files to binary mode (helps avoid
16820         CR issues on DOSish systems).
16822 2001-09-19  Akim Demaille  <akim@epita.fr>
16824         * lib/autotest/general.m4: Englishoes.
16825         From Tim Van Holder and Alexey Mahotkin.
16827 2001-09-18  Paul Eggert  <eggert@twinsun.com>
16829         * doc/autoconf.texi (Common Shell Constructs): New node,
16830         documenting AS_DIRNAME.
16831         (Limitations of Usual Tools): Refer to it when discussing dirname.
16832         Also, update discussion of POSIX standard to reflect latest draft.
16834         * lib/autoconf/c.m4:
16835         (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
16837         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
16838         Do not pass a first argument with leading '-'
16839         to expr, by parenthesizing initial integers that might be negative.
16841         * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
16842         now merely checks whether it is an error to pass an argument
16843         to getpgrp.
16845         * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
16846         (AC_FUNC_GETPGRP): Don't bother with a runtime test.  Just check
16847         whether it is a (compile-time) error to pass an argument to
16848         getpgrp.  This simpler test supports the revised documentation,
16849         and is all that AC_FUNC_GETPGRP's users really need.
16851 2001-09-18  Akim Demaille  <akim@epita.fr>
16853         * doc/autoconf.texi (Limitations of Make) <$<>: New.
16855 2001-09-18  Akim Demaille  <akim@epita.fr>
16857         * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
16858         `{}'.
16859         * lib/autotest/general.m4 (AT_INIT): Adjust.
16861 2001-09-18  Paul Wagland  <paul@wagland.net>
16863         * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
16864         correctly.
16865         Add test for AS_BASENAME.
16866         * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
16867         added test. It now correctly handles /1/2/3/, returning '3' not ''.
16868         Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
16869         * tests/base.at: Fixed the expected responses. The old ones were
16870         one line out...
16871         * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
16872         the documentation claims it should (and how it behaved in 2.13).
16874 2001-09-18  Akim Demaille  <akim@epita.fr>
16876         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
16877         the AC_CONFIG_COMMANDS invocation.
16878         This also solves the name clash problems.
16879         Don't set the package's ID.
16880         * lib/m4sugar/Makefile.am (version.m4): Revamp.
16881         No longer to be shipped.
16882         (version.in): Remove.
16883         * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
16884         * lib/autoconf/status.m4: Adjust.
16885         Use `m4_PACKAGE_STRING'.
16886         * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
16887         the only optional argument is the name of the test suite.
16888         Expect `package.m4' to define the package signature.
16889         * lib/autom4te.in (Autotest): Add `package.m4?'.
16890         * tests/Makefile.am (package.m4): New.
16891         * tests/suite.at: ifnames is a victim.
16893 2001-09-18  Akim Demaille  <akim@epita.fr>
16895         * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
16896         AC_LIBSOURCE, AC_CONFIG_FILES.
16897         * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
16898         program version string doesn't match the package's.
16899         * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
16900         after `(cached)'.
16902 2001-09-17  Paul Eggert  <eggert@twinsun.com>
16904         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
16905         Allow expression to return any value that can fit into unsigned long
16906         (not int, as before).  Check for output errors.
16908 2001-09-17  Bruno Haible  <haible@ilog.fr>
16910         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
16911         Always include <stdio.h> and <stdlib.h>. Evaluate
16912         the expression in an extra function before these includes. Call
16913         fprintf "%d" only after ensuring the argument is of type 'int'.
16914         Reported by Wayne Chapeskie <waynec@spinnaker.com>.
16916 2001-09-17  Paul Eggert  <eggert@twinsun.com>
16918         Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
16919         or CFLAGS=-O5.  In that case, the linker has a relaxed view of
16920         fatal errors, and AC_CHECK_LIB causes it to include libraries even
16921         when they don't exist.
16923         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
16924         not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
16925         need it.
16927         * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
16928         version with the version used by fileutils 4.1, except use
16929         AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
16930         we don't need it.
16932         * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
16934 2001-09-13  Akim Demaille  <akim@epita.fr>
16936         * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
16937         _first_.
16938         Reported by Gerrit P. Haase.
16940 2001-09-13  Akim Demaille  <akim@epita.fr>
16942         * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
16943         m4_defn'ing is valid.
16945 2001-09-13  Akim Demaille  <akim@epita.fr>
16947         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
16948         * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
16949         Use it.
16951 2001-09-13  Akim Demaille  <akim@epita.fr>
16953         * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
16954         m4_match.
16955         (m4_re_escape): New.
16956         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
16957         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
16958         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
16959         Likewise.
16960         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
16961         (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
16962         * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
16963         AT_tests_all for consistency.
16964         Set at_victims.
16965         (AT_VICTIMS): Similar to AT_KEYWORDS.
16966         (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
16968 2001-09-13  Akim Demaille  <akim@epita.fr>
16970         * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
16972 2001-09-13  Akim Demaille  <akim@epita.fr>
16974         * lib/autotest/general.m4 (AT_INIT): Create and remove
16975         `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
16976         test suites can cohabit.
16978 2001-09-13  Akim Demaille  <akim@epita.fr>
16980         * tests/mktests.sh: Don't output banners for empty test files.
16982 2001-09-13  Akim Demaille  <akim@epita.fr>
16984         Test suites can be run independently of configure.
16986         * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
16987         * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
16988         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
16989         ECHO_N etc.
16990         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
16991         and at_c.
16992         * lib/autotest/general.m4: Use ECHO_*.
16994 2001-09-13  Akim Demaille  <akim@epita.fr>
16996         * bin/ifnames.in: Rewrite in Perl.
16997         * configure.ac: Don't look for AWK.
16998         * tests/tools.at (AWK portability): Remove.
16999         (Syntax of the shell scripts): Don't check ifnames.
17000         (AT_CHECK_PERL_SYNTAX): New.
17001         (Syntax of the Perl scripts): Check ifnames.
17002         * tests/ifnames: New.
17004 2001-09-13  Akim Demaille  <akim@epita.fr>
17006         * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
17007         test group titles.
17008         * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
17009         Remove all the other keywords.
17011 2001-09-10  Akim Demaille  <akim@epita.fr>
17013         * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
17014         SETUP: no longer used.
17015         Support -k, --keywords.
17016         <at_help>: Be `no', `short', or `long'.
17017         <at_help_all>: New variable.
17018         (AT_KEYWORDS): New.
17019         (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
17020         (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
17021         (_AT_CLEANUP_FILE_IF): Simplify the regexp.
17022         (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
17023         No longer fill the HELP diversion.
17024         (AT_CLEANUP): Use them.
17025         * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
17026         (m4_list_append): Remove.
17028         Spread a few keywords in the Autoconf test suite.
17030 2001-09-10  Akim Demaille  <akim@epita.fr>
17032         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
17033         PATH_SEPARATOR, let M4sh compute it.
17034         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
17035         * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
17036         Move to...
17037         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
17038         Simplify when the path is not a literal.
17039         (AS_UNAME): Use it to report PATH.
17040         * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
17041         (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
17042         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
17043         * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
17044         normalize the path, and to look for victims.
17045         * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
17046         (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
17048 2001-09-07  Akim Demaille  <akim@epita.fr>
17050         * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
17051         doesn't neutralize SIGINT, making autoconf etc. non interruptible.
17052         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
17053         related variables into `at_package_*'.
17054         * lib/autotest/general.m4 (AT_VICTIMS): New.
17055         (AT_INIT): Adjust for stand-alone/embedded test suites.
17056         (AS_MESSAGE_LOG_FD): Define and use it.
17057         * tests/suite.at (AT_VICTIMS): Use it.
17058         * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
17059         at_version.
17061 2001-09-07  Akim Demaille  <akim@epita.fr>
17063         Move toward possibly stand-alone test suites.
17065         * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
17066         in addition, it introduces useless differences in logs.
17067         (AT_INIT): Let atconfig and atlocal be both optional.
17068         Adjust PATH computation.
17069         * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
17071 2001-09-07  Akim Demaille  <akim@epita.fr>
17073         * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
17074         m4sugar/version.m4.
17076 2001-09-05  Akim Demaille  <akim@epita.fr>
17078         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
17079         to avoid GCC warnings.
17080         From Uwe Seimet.
17082 2001-09-05  Akim Demaille  <akim@epita.fr>
17084         * bin/autom4te.in: --language is -l, not -s.
17086 2001-09-05  Akim Demaille  <akim@epita.fr>
17088         Be ready to handle filenames as stupid as `dnl.at', for if even
17089         the maintainer is dumb enough to do that...
17091         * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
17092         excellence in M4 quotation: consider `__file__' is active.
17094         And BTW, when invoking m4, pass the --include in the right order:
17095         the wrong one.
17097         * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
17098         4m.
17100 2001-09-05  Akim Demaille  <akim@epita.fr>
17102         * lib/Autom4te/XFile.pm: New lib file.
17103         * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
17104         * bin/autoheader.in: Use it.
17106 2001-09-05  Akim Demaille  <akim@epita.fr>
17108         * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
17109         defined.
17111 2001-09-05  Akim Demaille  <akim@epita.fr>
17113         * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
17114         * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
17116         * bin/autoscan.in: Use `getopt' and `find_files' etc.
17117         Add -I, --include support.
17118         * doc/autoconf.texi (autoscan Invocation): Adjust.
17120 2001-09-05  Akim Demaille  <akim@epita.fr>
17122         CVS GNU M4 doesn't like `undefine(undefined)'.
17124         * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
17125         New, extracted from main.
17126         Use IO::File wherever possible.
17127         (input.m4): Be constant, use -I instead of hard coding $tmp.
17128         Therefore be a quoted heredoc.
17129         Don't invoke `_au_disable', since ac was not loaded, but just
17130         `unm4.m4'.
17132 2001-08-31  Akim Demaille  <akim@epita.fr>
17134         Version 2.52d.
17136 2001-08-31  Akim Demaille  <akim@epita.fr>
17138         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
17139         previous patch.
17140         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
17142 2001-08-31  Akim Demaille  <akim@epita.fr>
17144         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
17145         serious problems handling heredocs in heredocs.
17146         Reported by Nicolas Joly.
17148 2001-08-31  Akim Demaille  <akim@epita.fr>
17150         * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
17151         (Making testsuite Scripts): Update.
17153 2001-08-31  Akim Demaille  <akim@epita.fr>
17155         * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
17157 2001-08-31  Akim Demaille  <akim@epita.fr>
17159         * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
17160         (testsuite Scripts): There is no such thing as `atconfig.in'.
17161         And actually one diagram is missing: test suite runtime.
17163 2001-08-31  Akim Demaille  <akim@epita.fr>
17165         * lib/Autom4te/General.pm (&find_file): Browse the includes in the
17166         inverse order.
17168 2001-08-31  Akim Demaille  <akim@epita.fr>
17170         * bin/autoupdate.in (@include): `installcheck' revealed the path
17171         to m4sugar was lacking!
17173 2001-08-31  Akim Demaille  <akim@epita.fr>
17175         * man/Makefile.am (.x.1): We really have to pass
17176         autom4te_perllibdir.
17178 2001-08-31  Akim Demaille  <akim@epita.fr>
17180         * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
17181         debug scripts, in particular passing explicitly listed tests to
17182         run is stupid.
17184 2001-08-31  Akim Demaille  <akim@epita.fr>
17186         * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
17187         * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
17188         Use directly autom4te, not autoconf.
17189         * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
17191 2001-08-31  Akim Demaille  <akim@epita.fr>
17193         * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
17194         * bin/autoheader.in (%symbol): Strip arguments of macros.
17196 2001-08-31  Akim Demaille  <akim@epita.fr>
17198         * doc/autoconf.texi: Catch up -I, --include changes.
17200 2001-08-31  Akim Demaille  <akim@epita.fr>
17202         * bin/autom4te.in (&parse_args): Die on unknown languages.
17203         * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
17204         need for autoconf.
17205         Promote --include over --macrodir and other obsolete options.
17207 2001-08-31  Akim Demaille  <akim@epita.fr>
17209         * lib/Autom4te/General.pm ($version, $help, &getopt): New.
17210         * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
17211         * bin/autom4te.in ($autoconf): Pass --force.
17212         `print $out' doesn't print `$_' but `$out'.
17213         * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
17214         (autoheader): Pass --force since the test suite goes too fast for
17215         the time stamps.
17216         Adjust to the new autoheader messages.
17218 2001-08-31  Akim Demaille  <akim@epita.fr>
17220         * bin/autoheader.in: Handle the acconfig.h etc. junk files.
17221         Check the completeness of the #template.
17222         * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
17223         * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
17224         invocation.
17226 2001-08-31  Akim Demaille  <akim@epita.fr>
17228         * lib/Autom4te/General.pm (&find_file, &update_file): New.
17229         * bin/autoupdate.in, bin/autoheader.in: Adjust.
17230         Drop AC_MACRODIR dead for real.
17231         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
17232         `autoheader: `config.hin' is created'.
17233         * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
17235 2001-08-31  Akim Demaille  <akim@epita.fr>
17237         * bin/autoheader.in: Rewrite in Perl.
17238         * tests/autoheader: Adjust.
17240 2001-08-31  Akim Demaille  <akim@epita.fr>
17242         * bin/autoconf.in (--include, -I): New option.
17243         Map --localdir, --autoconf-dir onto it.
17244         Forward autom4te's options instead of interpreting them.
17245         * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
17246         There is no such envvar since the inception of autom4te.cfg.
17247         * bin/autom4te.in (&parse_args): Uniquify `@include'.
17248         * bin/autoupdate.in: Adjust, and perform more control.
17249         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
17250         * tests/autoconf: Dittowise.
17252 2001-08-31  Akim Demaille  <akim@epita.fr>
17254         * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
17255         * bin/autom4te.in (&find_file): Support `FILE?' standing for
17256         optionally `FILE'.
17257         Use -e, not -f, since /dev/null for instance is OK.
17258         (&parse_args): Adjust.
17259         * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
17261 2001-08-31  Akim Demaille  <akim@epita.fr>
17263         * configure.ac: Also find tested executables in bin.
17264         * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
17265         * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
17266         installed peer executables, only PATH is allowed to resolve it.
17267         Pass `autoconf_dir' via options, not via invisible envvars.
17268         * lib/Autom4te/General.pm (&find_peer): Remove.
17269         * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
17270         `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
17271         * man/Makefile.am: Let help2man rely on PATH instead of trying to
17272         find the executables for it.
17273         * tests/Makefile.am: Major cleanup.  Too lazy to document...
17274         * tests/atlocal.in: Remove all the obscure envvar manipulations.
17275         We only need PERL.
17276         * tests/atspecific.m4, tests/tools.at: Passing --localdir is
17277         indeed related to running the test suite, while passing
17278         --autoconf-dir and others is related to running non installed
17279         Autoconf executables.  So don't do that, leave it to...
17280         * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
17281         * tests/autoscan: New.
17282         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
17283         refer to library files: rely on --language.
17285 2001-08-29  Akim Demaille  <akim@epita.fr>
17287         * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
17288         s/--set/--language/.
17290 2001-08-29  Akim Demaille  <akim@epita.fr>
17292         * doc/autoconf.texi: Strip the @nodes.
17293         Suggested by Paul Eggert.
17294         (Initializing configure): Typo.
17296 2001-08-29  Akim Demaille  <akim@epita.fr>
17298         * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
17299         Suggested by Paul Eggert.
17301 2001-08-29  Akim Demaille  <akim@epita.fr>
17303         * Makefile.maint (do-po-update): Wget refuses to overwrite files:
17304         download in a tmp dir.
17306 2001-08-29  Akim Demaille  <akim@epita.fr>
17308         * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
17309         case insensitive OSes out there :(
17310         From Tim Van Holder.
17312 2001-08-29  Akim Demaille  <akim@epita.fr>
17314         * lib/autom4te.in: New.
17315         * lib/Makefile.am (edit, autom4te.cfg): New.
17316         * bin/autom4te.in (BEGIN): Simplify.
17317         Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
17318         (&load_configuration): New.  Use it.
17319         (&parse_args): Support --mode, --set, and --melt.
17320         * bin/autoconf.in: Simplify and adjust.
17321         * tests/Makefile.am (AUTOMAKE): Use --set.
17322         * tests/atlocal.in: Adjust.
17323         * BUGS: distcheck and check are weak.
17325 2001-08-29  Akim Demaille  <akim@epita.fr>
17327         * lib/autotest/general.m4: Use
17328                 foo=`(command) 2>/dev/null`
17329         not
17330                 foo=`command` 2>/dev/null
17331         (at-devnull): Rename as...
17332         (AT-devnull): this.
17333         (--clean): Remove AT-* files too.
17334         * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
17335         Reported by Nicolas Joly.
17337 2001-08-28  Akim Demaille  <akim@epita.fr>
17339         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
17340         quotes inside single quotes.
17341         Reported by Nicolas Joly.
17343 2001-08-28  Kevin Ryde  <user42@zip.com.au>
17345         * doc/autoconf.texi (Function Portability): Mention C right shifts.
17347 2001-08-27  Tim Van Holder  <tim.van.holder@pandora.be>
17349         * lib/autotest/general.m4: Reword some messages.
17350         (AT_INIT): Check for the `times' builtin before using it.
17351         Support test ranges as arguments to the testsuite.
17352         Have -e imply -d as the help text suggested.
17354 2001-08-27  Akim Demaille  <akim@epita.fr>
17356         * Makefile.maint: Formatting changes.
17357         (do-po-update, po-update, cvs-update, update): New targets.
17358         (AMTAR): Remove.
17360 2001-08-27  Akim Demaille  <akim@epita.fr>
17362         * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
17363         <at_cmd_line>: New.
17364         Pass it to debug-*.sh scripts.
17365         <AUTOTEST_PATH>: May contain absolute dir names.
17367 2001-08-27  Akim Demaille  <akim@epita.fr>
17369         * lib/autotest/general.m4 (AT_INIT): Log the command line.
17370         Support `VAR=VAL' as arguments.
17371         Compute PATH _after_ the options processing, so that AUTOTEST_PATH
17372         may be set via the command line.
17374 2001-08-27  Akim Demaille  <akim@epita.fr>
17376         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
17377         * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
17378         first the build dirs, then the src dirs.
17379         * configure.ac (AC_CONFIG_TESTDIR): Adjust.
17381 2001-08-27  Akim Demaille  <akim@epita.fr>
17383         * lib/autotest/general.m4 (AT_INIT): Output the definition of
17384         at_data_files earlier.
17385         (--clean, -c): New option.
17386         * tests/Makefile.am: Use this option.
17388 2001-08-27  Akim Demaille  <akim@epita.fr>
17390         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
17391         `ac_top_builddir' to mimic Automake's vocabulary, which much more
17392         readable.
17393         Adjust callers.
17394         * doc/autoconf.texi (Configuration Actions): Document the vars
17395         available in commands.
17396         Emphasize the risks of collisions in init-cmds.
17398 2001-08-27  Akim Demaille  <akim@epita.fr>
17400         * doc/autoconf.texi (Input) <AC_INIT>: Move to..
17401         (Initializing configure): this new node.
17403 2001-08-27  Akim Demaille  <akim@epita.fr>
17405         * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
17407 2001-08-27  Akim Demaille  <akim@epita.fr>
17409         * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
17410         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
17411         New file.
17412         * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
17414 2001-08-27  Akim Demaille  <akim@epita.fr>
17416         * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
17417         to...
17418         * lib/autoconf/autoheader.m4: this new file.
17419         * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
17420         (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
17421         Move to...
17422         * lib/autoconf/autoupdate.m4: this new file.
17424 2001-08-27  Akim Demaille  <akim@epita.fr>
17426         * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
17427         (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
17428         Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
17429         -> ac_dir).
17430         (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
17431         * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
17433 2001-08-27  Akim Demaille  <akim@epita.fr>
17435         * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
17436         (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
17437         (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
17438         (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
17439         (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
17440         (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
17441         (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
17442         (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
17443         (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
17444         (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
17445         (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
17446         (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
17447         (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
17448         (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
17449         (_AC_OUTPUT_SUBDIRS): Move to...
17450         * lib/autoconf/status.m4: this new file.
17451         * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
17452         * tests/Makefile.am, tests/suite.at: Adjust.
17454 2001-08-27  Akim Demaille  <akim@epita.fr>
17456         Automake 1.5.
17458         * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
17459         (AMTAR): Help automake define it.
17460         (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
17461         needed, 1.5 can have a macro and a target with the same name.
17462         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
17463         * m4/strip.m4: New.
17464         * m4/init.m4, m4/sanity.m4: Update.
17465         * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
17466         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
17467         * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
17468         * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
17470 2001-08-27  Akim Demaille  <akim@epita.fr>
17472         Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
17474         * lib/autoconf/version.in: Remove.
17475         * lib/m4sugar/version.in: New.
17476         * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
17477         Adjust callers.
17478         * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
17479         the name of the directory they're in, instead of the filename,
17480         since version.m4 is now in m4sugar, but m4_acversion must not be
17481         classified as an Autoconf macro.
17482         ($input_m4): Don't qualify the path to m4sugar.
17483         Rather, pass autoconf_dir to m4.
17484         * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
17485         * tests/suite.at: Require 2.52c.
17487 2001-08-27  Akim Demaille  <akim@epita.fr>
17489         testsuite.log should include config.log.
17491         * lib/autotest/autotest.m4: New.
17492         * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
17493         * tests/suite.at : Adjust.
17494         (AT_INIT): Log config.log.
17495         * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
17496         * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
17497         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
17498         (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
17499         of config.log on traps.
17500         (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
17501         Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
17502         for config.status'.
17503         Open the log as soon as possible.
17504         Use the same log introduction as configure's.
17506 2001-08-22  Paul Eggert  <eggert@twinsun.com>
17508         * doc/autoconf.texi (Indices): New node.
17509         Move indices out of the top level menu and into this submenu.
17511 2001-08-22  Akim Demaille  <akim@epita.fr>
17513         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
17514         AC_TRY_COMMAND.
17515         (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
17517 2001-08-22  Akim Demaille  <akim@epita.fr>
17519         * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
17520         (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
17521         (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
17522         * lib/autoconf/programs.m4: here.
17523         * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
17524         (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
17525         (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
17526         * lib/autoconf/programs.m4: here.
17527         (_AC_DECL_YYTEXT): Rename as...
17528         (_AC_PROG_LEX_YYTEXT_DECL): this.
17529         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
17530         * tests/Makefile.am, tests/suite.am: Adjust.
17532 2001-08-22  Akim Demaille  <akim@epita.fr>
17534         * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
17535         Move to...
17536         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
17537         here.
17538         * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
17539         * lib/autoconf/functions.m4: here.
17540         * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
17541         (AH_CHECK_LIB): Move to...
17542         * lib/autoconf/libs: this new file.
17543         * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
17544         (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
17545         * lib/autoconf/libs.m4: here.
17546         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
17548 2001-08-22  Akim Demaille  <akim@epita.fr>
17550         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
17551         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
17552         (AC_SITE_LOAD): Better logging of config.site.
17554 2001-08-20  Akim Demaille  <akim@epita.fr>
17556         * configure.ac (AT_CONFIG): Fix the path.
17557         * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
17558         can be used.
17560 2001-08-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
17562         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
17563         program with AC_LANG_PROGRAM before feeding it to
17564         AC_COMPILE_IFELSE.  Cleanup grep usage.
17566 2001-08-20  Akim Demaille  <akim@epita.fr>
17568         * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
17569         * NEWS, README, README-alpha, TODO, tests/README: This package is
17570         `Autoconf', not `autoconf' (the executable).
17572 2001-08-20  Akim Demaille  <akim@epita.fr>
17574         Info readers seem to need `Index' in the index node title :(
17576         * doc/autoconf.texi: Reverse the 2001-08-15 change which
17577         simplified index node names.
17579 2001-08-20  Akim Demaille  <akim@epita.fr>
17581         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
17582         arguments are not literals.
17583         * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
17584         Specify the output variables, and macros defined.
17586 2001-08-20  Akim Demaille  <akim@epita.fr>
17588         * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
17589         (Examining Syntax) <AC_TRY_COMPILE>
17590         (Examining Libraries) <AC_TRY_LINK>
17591         (Test Programs) <AC_TRY_RUN>: These macros double quote some of
17592         their arguments.
17593         Reported by Werner Lemberg.
17595 2001-08-20  Akim Demaille  <akim@epita.fr>
17597         * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
17598         top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
17599         Load atlocal late enough to dump it in the log.
17600         * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
17602 2001-08-20  Akim Demaille  <akim@epita.fr>
17604         * tests/torture.at (Configuring subdirectories): New test.
17605         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
17606         looking for.
17607         * m4/atconfig.m4: Be sure the let $[0] be expandable.
17608         (top_srcdir): Fix its computation.
17610 2001-08-20  Akim Demaille  <akim@epita.fr>
17612         * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
17613         * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
17614         test suite lives.
17615         Create `atconfig' automagically.
17616         Configure atlocal.in if present.
17617         * tests/atconfig.in: Remove.
17618         * tests/atlocal.in: New.
17619         * tests/Makefile.am: Adjust.
17621 2001-08-20  Akim Demaille  <akim@epita.fr>
17623         Huh!?!?!  There are still some user EOF tags used, which prevents
17624         their use in AC_CONFIG_COMMANDS for instance...
17626         * lib/autoconf/general.m4, lib/autoconf/specific.m4,
17627         * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
17628         `_CSEOF', or `_ATEOF', as appropriate.
17629         * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
17630         * lib/autotest/Makefile.am (check-local): Enforce this constraint.
17632 2001-08-20  Akim Demaille  <akim@epita.fr>
17634         * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
17635         * tests/semantics.at, tests/tools.at, tests/torture.at:
17636         s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
17638 2001-08-20  Akim Demaille  <akim@epita.fr>
17640         Autotest invokes M4sh's initialization.
17642         * lib/autotest/general.m4: Adjust the diversion names.
17643         (AT_INIT): Run AS_INIT.
17644         Use the BINSH diversion to invoke /bin/sh.
17645         * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
17646         * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
17648 2001-08-20  Akim Demaille  <akim@epita.fr>
17650         Let M4sh have its own diversions.
17652         * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
17653         (_m4_divert(NOTICE)): Rename as...
17654         * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
17655         (_m4_divert(HEADER-COMMENT)): these.
17656         (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
17657         (_m4_divert(NOTICE)): New, for Libtool.
17658         * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
17659         long ago with `_m4_divert(GROW)'.
17660         (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
17662 2001-08-20  Akim Demaille  <akim@epita.fr>
17664         * tests/base.at, tests/compile.at, tests/foreign.at,
17665         * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
17666         * tests/semantics.at, tests/suite.at, tests/tools.at,
17667         * tests/torture.at: Ask Autotest mode, not Autoconf mode.
17669 2001-08-20  Akim Demaille  <akim@epita.fr>
17671         * bin/autom4te.in (handle_output): Handle @__@.
17673 2001-08-20  Akim Demaille  <akim@epita.fr>
17675         * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
17676         * lib/autotest/general.m4: Adjust the license.
17678 2001-08-17  Paul Eggert  <eggert@twinsun.com>
17680         * doc/autoconf.texi (Function Portability): Mention snprintf,
17681         following up on a suggestion by Kevin Ryde.
17683 2001-08-17  Akim Demaille  <akim@epita.fr>
17685         * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
17686         `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
17688 2001-08-17  Akim Demaille  <akim@epita.fr>
17690         * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
17691         `$0.log' as for projects where testsuite is in src, we'd have
17692         testsuite.log created in src.
17694 2001-08-17  Akim Demaille  <akim@epita.fr>
17696         * bin/autom4te.in (&parse_args): Recognize --normalize.
17698 2001-08-17  Akim Demaille  <akim@epita.fr>
17700         Start implementing the AC_CHECK_HEADER transition scheme.
17702         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
17703         (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
17704         (AC_CHECK_HEADER): Use them.
17706 2001-08-17  Akim Demaille  <akim@epita.fr>
17708         * doc/autoconf.texi: Work around Texinfo buglets.
17709         (Transformation Rules): One example is enough, users are expected
17710         to have their brains on. And BTW, use DESTDIR.
17711         (dvar): New macro.  Use it.
17713 2001-08-17  Akim Demaille  <akim@epita.fr>
17715         * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
17716         * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
17717         looking for ChangeLogs.
17719 2001-08-17  Akim Demaille  <akim@epita.fr>
17721         * bin/autom4te.in: --normalize is a new option.
17722         * bin/autoconf.in: Use it.
17724 2001-08-17  Akim Demaille  <akim@epita.fr>
17726         * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
17727         * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
17729 2001-08-16  Paul Eggert  <eggert@twinsun.com>
17731         * doc/autoconf.texi, doc/install.texi: Put copyright notice at
17732         start, not at end.
17734 2001-08-15  Akim Demaille  <akim@epita.fr>
17736         * doc/Makefile.am (fu): New index, can't use fn because of defmac.
17737         Use it.
17739 2001-08-15  Akim Demaille  <akim@epita.fr>
17741         * doc/autoconf.texi (pr): New index.
17742         (prindex, findex): Use, merge, and output them.
17743         (Environment Variable Index, Output Variable Index)
17744         (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
17745         (Autotest Macro Index): Rename as...
17746         (Environment Variables, Output Variables,Preprocessor Symbols)
17747         (Autoconf Macros, M4 Macros, Autotest Macros): these.
17748         * doc/install.texi: Use @command.
17749         (Environment Variables): Rename as...
17750         (Defining Variables): this.
17752 2001-08-15  Akim Demaille  <akim@epita.fr>
17754         * doc/autoconf.texi (Function Portability): sprintf's return
17755         value.
17756         From Kevin Ryde.
17758 2001-08-15  Akim Demaille  <akim@epita.fr>
17760         * Makefile.maint (CVS): New.
17761         (local-check): Run changelog-check. last.
17762         (alpha): Don't depend upon local-check, since...
17763         (cvs-dist): depends upon it.
17765 2001-08-15  Tim Van Holder  <tim.van.holder@pandora.be>
17767         * tests/Makefile.am: Use a clean-local rule to remove
17768         autom4te.cache (it's a directory, not a file.
17769         * Makefile.am: Ditto (but maintainer-clean-local).
17771 2001-08-15  Akim Demaille  <akim@epita.fr>
17773         * bin/autom4te.in (@m4_warning): New.
17774         (&handle_m4): Use it.
17775         * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
17776         warnings are issued at each run.
17777         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
17778         is in the src tree.
17780 2001-08-15  Akim Demaille  <akim@epita.fr>
17782         * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
17783         don't waste time running `autoupdate --version' works.
17784         * tests/tools.at (autoupdating AC_PREREQ): Likewise.
17786 2001-08-13  Akim Demaille  <akim@epita.fr>
17788         * doc/autoconf.texi (ma): Rename this index as...
17789         (ac): this.
17791 2001-08-13  Akim Demaille  <akim@epita.fr>
17793         * Makefile.am: Remove dead code and dead comments.
17794         (pdf, html): New targets.
17795         * doc/autoconf.texi (Using Autotest): New chapter.
17796         * doc/Makefile.am (pdf): New targets.
17797         (CLEANFILES): Adjust.
17799 2001-08-13  Akim Demaille  <akim@epita.fr>
17801         * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
17802         duration of the test suite.
17804 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
17806         * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
17807         endianness for comparison instead of relying on AT_CHECK_ENV.
17809 2001-08-11  Paul Eggert  <eggert@twinsun.com>
17811         * doc/autoconf.texi, doc/install.texi: Add a copyright notice
17812         to the INSTALL file.
17814 2001-08-11  Paul Eggert  <eggert@twinsun.com>
17816         * NEWS: The autoconf manual now is distributed under the terms
17817         of the GNU Free Documentation License.
17819         * doc/autoconf.texi: Switch from old style copyright notice to FDL.
17820         Add an appendix "Copying This Manual" for the FDL.
17822         * doc/fdl.texi: New file, from
17823         <http://www.gnu.org/licenses/fdl.texi>.
17825         * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
17827 2001-08-10  Paul Eggert  <eggert@twinsun.com>
17829         * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
17830         ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
17831         README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
17832         m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
17833         m4/sanity.m4, tests/README, tests/aclocal.m4,
17834         tests/atspecific.m4, tests/base.at, tests/compile.at,
17835         tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
17836         tests/semantics.at, tests/suite.at, tests/tools.at,
17837         tests/torture.at: Add copyright notice.
17839         * tests/mktests.sh: Update year in copyright notice.
17841 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
17843         * tests/semantics.at (AC_C_BIGENDIAN): New test.
17845 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
17847         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
17848         ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
17849         * doc/autoconf.texi (C Compiler Characteristics): Update
17850         documentation for AC_C_BIGENDIAN.
17852 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
17854         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
17855         magic values from an object file when cross-compiling.
17856         Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
17858 2001-08-10  Akim Demaille  <akim@epita.fr>
17860         * bin/autom4te.in (&handle_output): Don't use `grep' with side
17861         effects.
17862         Suggested by Russ Allbery.
17864 2001-08-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
17866         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
17867         current $prefix to the sub-configures.
17869 2001-08-09  Tim Van Holder  <tim.van.holder@pandora.be>
17871         * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
17872         extension (needed on BeOS).  Reported by Guido van Rossum.
17874 2001-08-09  Akim Demaille  <akim@epita.fr>
17876         * bin/autom4te.in ($icache): Load it only if older than autom4te.
17878 2001-08-07  Akim Demaille  <akim@epita.fr>
17880         * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
17881         removed.
17882         (at-setup-line): Huh?  Be a variable `at_setup_line', not a file.
17883         No need to remove the files before and after the each test, before
17884         each test and at the end of the suite is enough.
17885         Display only the children `times', not the shell's.
17886         If the test failed or was skipped, at-times is not available.
17888 2001-08-07  Akim Demaille  <akim@epita.fr>
17890         Always produce testsuite.log, including when there are no
17891         failures.  This helps getting information on skipped tests, and
17892         duration of the tests.  Err, implement the latter btw.
17894         * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
17895         Dump information on the first run of each test.
17896         (AT_CLEANUP): Create `at-times' containing the duration of the
17897         test group.
17899 2001-08-07  Akim Demaille  <akim@epita.fr>
17901         The use of `dumpstat' revealed that `len' was used although it
17902         should not.  m4_text_wrap was using it, but in the Autoconf world
17903         where it is legal.  Hence (i) test M4sh in its own world, not
17904         Autoconf's, and (ii), ahem, fix the bug :)
17906         * lib/autotest/general.m4: Be sure the set good quotes, as tracing
17907         does not like `' instead of [].
17908         (AT_INIT): Forbid `^_?AT_'.
17909         And don't output such tokens.
17910         * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
17911         `script.as', and `autom4te.cache'.
17912         Remove `empty' and `macro' which are no longer used.
17913         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
17914         * tests/m4sugar.at: Use it.
17915         * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
17917 2001-08-07  Akim Demaille  <akim@epita.fr>
17919         * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
17921 2001-08-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
17923         * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
17925 2001-08-04  Akim Demaille  <akim@epita.fr>
17927         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
17928         (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
17929         AC_TRY_LINK.
17930         * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
17931         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
17932         (AC_F77_MAIN): Likewise.
17934 2001-08-04  Akim Demaille  <akim@epita.fr>
17936         Don't rely on M4sugar outputting the patterns in files, since we
17937         might process the output _without_ running m4, hence without these
17938         files.
17940         * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
17941         * bin/autom4te.in (@Request::includes): Remove, unused.
17942         (@Request::source): Rename as...
17943         (@Request::input): this.
17944         (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
17945         (&handle_output): Fetch the patterns from the traces.
17946         `$forbidden' and `$allowed' are constant: use m//o.
17947         (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
17948         (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
17950 2001-08-04  Akim Demaille  <akim@epita.fr>
17952         `autoconf && autoheader' is sped up.  Now, speed up `autoheader &&
17953         autoconf', i.e., in addition to caching traces, cache the output.
17955         * bin/autom4te.in (Request::cache): Rename as...
17956         (Request::id): this.
17957         ($cache, $icache, $tcache, $ocache): New.
17958         (&handle_m4): Save M4 output in the cache instead of $tmp.
17959         (&handle_output): Adjust.
17960         (&up_to_date_p): Check that the output cache is up to date too.
17961         (top level): Run `&handle_m4' iff force or the cache is invalid.
17962         Run `&handle_output' if the output cache is more recent.
17964 2001-08-04  Akim Demaille  <akim@epita.fr>
17966         * bin/autom4te.in ($force): New.
17967         (&parse_args, &print_usage): -f, --force is a new option.
17968         (&handle_output): CPP directives might have spaces after `#'.
17969         (&parse_args): The first file only can be frozen.
17971 2001-08-04  Akim Demaille  <akim@epita.fr>
17973         Don't let autom4te compute the `include' traces several times:
17974         first check that the trace cache file is up to date, and then
17975         compare its timestamp with that of the output.
17977         * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
17978         the preamble.  Don't require 5.005 as Autom4te::General does it,
17979         and better yet (use `use', not `require'!).
17980         * lib/Autom4te/Struct.pm: Rename the last occurrences of
17981         Class::Struct as Autom4te::Struct.
17982         * lib/Autom4te/General.pm (File::stat): Use it.
17983         (&mtime): New, export it.
17984         * bin/autom4te.in: Use it.
17985         Declare `$req' is invalid if it is outdated.
17986         Don't declare it valid before saving it if something went wrong.
17988 2001-08-04  Akim Demaille  <akim@epita.fr>
17990         Autom4te shall not encode Autoconf data, and preselecting traces
17991         must be proposed to the users.
17993         * bin/autom4te.in (@required_trace): Remove.
17994         (@preselect): New.
17995         (&parse_args, &print_usage): -p, --preselect is a new option.
17996         (&up_to_date_p): Adjust.
17997         * bin/autoconf.in: Preselect some Autoconf macros.
17999 2001-08-04  Akim Demaille  <akim@epita.fr>
18001         * tests/tools.at (autoconf --trace: user macros): Check traces on
18002         macros invoked without arguments, and macros invoked with multiple
18003         lines arguments.
18005 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
18007         * bin/autom4te.in (handle_traces): Fix rewriting of traces without
18008         arguments.
18010 2001-08-03  Akim Demaille  <akim@epita.fr>
18012         * bin/autoconf.in ($@): Work around the usual sh bug.
18013         From Nicolas Joly.
18015 2001-08-03  Akim Demaille  <akim@epita.fr>
18017         Clean up the handling of the M4 builtins tracing exception.
18019         * bin/autom4te.in (Request::request): Don't complete M4 builtins
18020         trace requests.
18021         (@m4_builtins): Rename as...
18022         (@m4_builtin): this.
18023         (%m4_builtin_alternate_name): New.
18024         (&parse_args): Complete the trace requests with alternate names.
18025         (&handle_traces): Hence no longer do it here.
18026         (&trace_requests): Remove, unused.
18028 2001-08-03  Akim Demaille  <akim@epita.fr>
18030         * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
18031         m4_if, and m4_wrap.
18033 2001-08-03  Akim Demaille  <akim@epita.fr>
18035         * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
18036         (m4_divert_pop): Dump the whole diversion stack when a diversion
18037         mismatch happens.
18038         * bin/autom4te.in (&handle_output): Remember of the first
18039         occurrence of a possibly undefined macro, not the last.
18040         Complain about the possibly undefined macros in the same order as
18041         the appear in the output.
18042         * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
18043         * tests/tools.at (autoconf: forbidden tokens, basic)
18044         (autoconf: forbidden tokens, exceptions): No longer sort
18045         autoconf's stderr, as it is now deterministic.
18046         Check that `dnl' is caught.
18048 2001-08-01  Akim Demaille  <akim@epita.fr>
18050         * configure.ac: Bump to 2.52c.
18052 2001-08-01  Akim Demaille  <akim@epita.fr>
18054         Version 2.52b.
18056         * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
18058 2001-08-01  Akim Demaille  <akim@epita.fr>
18060         Version 2.52a.
18062 2001-08-01  Akim Demaille  <akim@epita.fr>
18064         * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
18065         `die'.
18066         (&END): New.
18067         * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
18068         `END', as `Autom4te::General::END' will be triggered.
18069         * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
18070         * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
18071         system to run `mv', `rm', and `cmp'.
18073 2001-08-01  Akim Demaille  <akim@epita.fr>
18075         * lib/Autom4te/General.pm (&unique): New.
18076         * bin/autoscan.in (&output): Use it to issue trace requests once.
18078 2001-08-01  Akim Demaille  <akim@epita.fr>
18080         * lib/Autom4te/General.pm: New.
18081         * bin/autom4te.in (Autom4te::General): Use it.
18082         ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
18083         (&find_configure_ac, &find_slave): Remove.
18084         * bin/autoscan.in: Likewise.
18085         * bin/autoupdate.in: Likewise.
18087 2001-08-01  Akim Demaille  <akim@epita.fr>
18089         * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
18090         * autoheader.in, autoreconf.in, autoupdate.in: Move to...
18091         * bin: here, new directory.
18092         * lib/Autoconf: Rename as...
18093         * lib/Autom4te: this, to please case insensitive junkie OSes.
18095 2001-08-01  Akim Demaille  <akim@epita.fr>
18097         * autom4te.in ($m4): Handle the --nesting-limit.
18098         * autoconf.in (M4): Remove.
18100 2001-08-01  Akim Demaille  <akim@epita.fr>
18102         * autoconf.in ($AWK): Remove, no longer used.
18103         * test/tools.at: Use AT_CHECK_AUTOCONF.
18104         (AWK portability): Remove, for autoconf no longer uses AWK.
18105         (Syntax of the Perl scripts): New.
18106         * configure.ac: autoconf no longer needs an AWK with a good
18107         regexp engine.
18108         Use a static test on AC_PACKAGE_VERSION.
18109         * autom4te.in (&up_to_date_p): Output depends on the arguments.
18110         * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
18111         * tests/atconfig.in (PERL): New.
18113 2001-08-01  Akim Demaille  <akim@epita.fr>
18115         * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
18116         (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
18117         (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
18118         (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
18119         (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
18120         (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
18121         (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
18122         (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
18123         (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
18124         (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
18125         (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
18126         (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
18127         (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
18128         * lib/autoconf/c.m4: here, new file.
18130         * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
18131         (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
18132         (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
18133         (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
18134         (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
18135         (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
18136         (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
18137         (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
18138         (AC_F77_FUNC): Move to...
18139         * lib/autoconf/fortran.m4: here, new file.
18141 2001-08-01  Akim Demaille  <akim@epita.fr>
18143         * acfunctions.m4: Rename as...
18144         * lib/autoconf/functions.m4: this.
18145         * acgeneral.m4: Rename as...
18146         * lib/autoconf/general.m4: this.
18147         * acheaders.m4: Rename as...
18148         * lib/autoconf/headers.m4: this.
18149         * aclang.m4: Rename as...
18150         * lib/autoconf/lang.m4: this.
18151         * acoldnames.m4: Rename as...
18152         * lib/autoconf/oldnames.m4: this.
18153         * acspecific.m4: Rename as...
18154         * lib/autoconf/specific.m4: this.
18155         * actypes.m4: Rename as...
18156         * lib/autoconf/types.m4: this.
18157         * autoconf.m4: Rename as...
18158         * lib/autoconf/autoconf.m4: this.
18160         * m4sugar.m4: Rename as...
18161         * lib/m4sugar/m4sugar.m4: this.
18162         * m4sh.m4: Rename as...
18163         * lib/m4sugar/m4sh.m4: this.
18165         * tests/atgeneral.m4: Rename as...
18166         * lib/autotest/general.m4: this.
18168         * acfunctions: Rename as...
18169         * lib/autoscan/functions: this.
18170         * acheaders: Rename as...
18171         * lib/autoscan/headers: this.
18172         * acidentifiers: Rename as...
18173         * lib/autoscan/identifiers: this.
18174         * aclibraries: Rename as...
18175         * lib/autoscan/libraries: this.
18176         * acmakevars: Rename as...
18177         * lib/autoscan/makevars: this.
18178         * acprograms: Rename as...
18179         * lib/autoscan/programs: this.
18181 2001-08-01  Akim Demaille  <akim@epita.fr>
18183         * doc/autoconf.texi: Moving/deleting open files is not portable.
18184         Portability issues for `.' (source), and more information about sed.
18186 2001-07-25  Steven G. Johnson  <stevenj@alum.mit.edu>
18188         * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
18189         which has a special meaning and is not a reference to libibmil.a.
18190         Reported by Matteo Frigo.
18192 2001-07-25  Pavel Roskin  <proski@gnu.org>
18194         * autom4te.in (mktmpdir): Strip trailing newline from mktemp
18195         output.
18197 2001-07-25  Akim Demaille  <akim@epita.fr>
18199         * autoconf.in: Try to define the variables before using them.
18200         * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
18201         instead of `$perllibdir'.
18202         * tests/atconfig.in ($autom4te_perllibdir): Export it.
18204 2001-07-25  Akim Demaille  <akim@epita.fr>
18206         * autoconf.in (ac_LF_and_DOT): Remove, unused.
18208 2001-07-24  Akim Demaille  <akim@epita.fr>
18210         Let autoconf use autom4te for traces.
18212         * autoconf.in ($task, task trace): Remove, merely pass --trace to
18213         autom4te.
18214         * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
18215         (Because I found no way for autom4te to accept `-').
18216         * autom4te.in (&Request::request): Beware of M4 builtins.
18217         (END): Don't try to remove the content of an empty dir.
18218         (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
18219         (&handle_output): Set a default value to `$forbidden'.
18220         * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
18221         ($autoconf): Pass --debug and --verbose.
18222         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
18223         cache.
18225 2001-07-24  Akim Demaille  <akim@epita.fr>
18227         Let autoconf use autom4te to create configure.
18229         * autoconf.in ($automate): New var.
18230         (task script): Use autom4te.
18231         * autom4te.in (File::Spec): Use it.
18232         (&find_file): New.
18233         (&parse_args): --warning is -W, not -w.
18234         Find the top level files.
18235         (&handle_m4): Pass the warnings flags.
18236         Don't report verbosely m4's failures, unless requested.
18237         (&handle_output): Don't complain for forbidden tokens in comments.
18238         Be sure to report all the forbidden tokens within a single line.
18239         (&trace_format_to_m4): Preserve `$_'.
18240         (&handle_traces): Sort the output macros.
18241         (&up_to_date_p): Find the files before trying to get its time stamp.
18243 2001-07-24  Akim Demaille  <akim@epita.fr>
18245         * Makefile.am: Ship, build and install Autom4te.
18246         (SUBDIRS): Add lib.
18247         * lib/Autoconf/Struct.pm: New, from Automake 1.5.
18248         * configure.in: Require Perl.
18249         * man/autom4te.in: New.
18251 2001-07-19  Paul Eggert  <eggert@twinsun.com>
18253         * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
18254         example, rather than (exit 1); exit (which isn't portable).
18256 2001-07-18  Akim Demaille  <akim@epita.fr>
18258         Version 2.52.
18260 2001-07-18  Akim Demaille  <akim@epita.fr>
18262         The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
18263         was run, while they are needed also when it is expanded.
18264         Reported by Nicolas Joly.
18266         * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
18267         (AC_LANG_PROGRAM(C)): Use it instead of depending upon
18268         AC_F77_DUMMY_MAIN being expanded.
18270 2001-07-18  Akim Demaille  <akim@epita.fr>
18272         * configure.in: Bump to 2.51a.
18274 2001-07-17  Akim Demaille  <akim@epita.fr>
18276         Version 2.51.
18278 2001-07-17  Akim Demaille  <akim@epita.fr>
18280         * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
18281         Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
18283 2001-07-17  Akim Demaille  <akim@epita.fr>
18285         The runtime test for AC_FUNC_GETPGRP fails when prototypes are
18286         used.  Well, then use the prototypes when you can, and runtime as
18287         a last resort.
18288         Reported by Artur Frysiak
18290         * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
18291         (AC_FUNC_GETPGRP): Use it.
18292         First try to compile with 0-ary or 1-ary calls.
18294 2001-07-17  Akim Demaille  <akim@epita.fr>
18296         * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
18297         replacement type.
18298         From Paul Eggert.
18300 2001-07-17  Akim Demaille  <akim@epita.fr>
18302         * Makefile.maint: Sync. with cppi 1.10.
18304 2001-07-17  Akim Demaille  <akim@epita.fr>
18306         * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
18307         AC_F77_DUMMY_MAIN has been run.
18308         From Pavel Roskin and Steven G. Johnson.
18310 2001-07-17  Akim Demaille  <akim@epita.fr>
18312         * configure.in: Rename as...
18313         * configure.ac: this.
18315 2001-07-17  Akim Demaille  <akim@epita.fr>
18317         * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
18318         rules.
18319         From Marc Espie.
18320         * Makefile.maint (release-archive-dir): Rename as...
18321         (release_archive_dir): this, so that it can be specialized in
18322         Makefile.
18324 2001-07-14  Akim Demaille  <akim@epita.fr>
18326         * configure.in: Bump to 2.50d.
18328 2001-07-14  Akim Demaille  <akim@epita.fr>
18330         Version 2.50c.
18331         * Makefile.maint (alpha): Typo.
18333 2001-07-14  Akim Demaille  <akim@epita.fr>
18335         * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
18337 2001-07-14  Akim Demaille  <akim@epita.fr>
18339         * config/config.guess, config/config.sub, config/texinfo.tex
18340         * doc/standards.texi, doc/make-stds.texi: Update.
18342 2001-07-14  Akim Demaille  <akim@epita.fr>
18344         * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
18346 2001-07-14  Akim Demaille  <akim@epita.fr>
18348         * Makefile.maint (maintainer-check): Rename as...
18349         (maintainer-distcheck): this.
18350         (changelog-check, static-check): New.
18351         Use them.
18353 2001-07-14  Kevin Ryde  <user42@zip.com.au>
18355         * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
18356         for CXX is g++, not gcc.
18358 2001-07-14  Akim Demaille  <akim@epita.fr>
18360         * doc/autoconf.texi (Files): New subsection.
18362 2001-07-14  Akim Demaille  <akim@epita.fr>
18364         * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
18365         of...
18366         (Generic Compiler Characteristics): this.
18367         (C++ Compiler): New subsection.
18369 2001-07-14  Akim Demaille  <akim@epita.fr>
18371         * autoscan.in: Use IO::File.
18372         Adjust all the routines to use it.
18373         ($log): New file (autoscan.log).
18374         (output): Dump detailed logs into $log, and a shortened version to
18375         stderr.
18376         (&scan_makefile): Refine the regexp catching tokens in the code.
18377         * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
18378         and the `configure.ac' checking feature.
18380 2001-07-12  Akim Demaille  <akim@epita.fr>
18382         For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
18383         Reported by Michael Elizabeth Chastain.
18385         * autoconf.in: Refuse such AWK.
18386         * configure.in: Likewise.
18387         * Makefile.am (acversion.m4): Do not use move-if-change this file
18388         has dependencies.
18389         * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
18391 2001-07-10  Jens Petersen  <petersen@redhat.com>
18393         * autoscan.in (&scan_makefile): Improve programs regexp to parse
18394         things like "g++", "file.c" and "some-conf" as tokens.
18395         (&scan_file): Match C++ files extensions.
18396         If the filename extension is C++ then ask for c++.
18398 2001-07-05  Steven G. Johnson  <stevenj@alum.mit.edu>
18400         * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
18401         AC_TRY_LINK_FUNC, to check whether defining a dummy
18402         main-like routine is needed for linking with F77 libs.
18404 2001-07-05  Pavel Roskin  <proski@gnu.org>
18406         * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
18407         after using break.
18408         (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
18409         linking.
18411 2001-07-05  Akim Demaille  <akim@epita.fr>
18413         * Makefile.am (move_if_change): New.  Use it instead of `mv'.
18414         (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
18415         Makes' lives.
18416         Reported by Nicolas Joly.
18418 2001-07-04  Akim Demaille  <akim@epita.fr>
18420         * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
18421         up.
18422         * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
18423         warnings from compilers.
18424         * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
18425         for all the compilers, not only GNU.  Hence move from here...
18426         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
18428 2001-07-04  Akim Demaille  <akim@epita.fr>
18430         * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
18431         (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
18432         AC_COMPILE_IFELSE.
18434 2001-07-04  Akim Demaille  <akim@epita.fr>
18436         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
18437         the ``strings.h'' change claimed below.
18439 2001-07-04  Akim Demaille  <akim@epita.fr>
18441         * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
18443 2001-07-04  Akim Demaille  <akim@epita.fr>
18445         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
18446         strings.h if usable with string.h.
18447         Suggested by Paul Eggert.
18449 2001-07-04  Akim Demaille  <akim@epita.fr>
18451         * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
18452         From Jens Petersen.
18454 2001-07-03  Akim Demaille  <akim@epita.fr>
18456         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
18457         etc. in the log.
18459 2001-07-03  Akim Demaille  <akim@epita.fr>
18461         * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
18462         compiler, not the preprocessor.
18463         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
18464         dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
18465         the right thing.
18466         * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
18467         earlier if there are.
18469 2001-07-03  Akim Demaille  <akim@epita.fr>
18471         * autoscan.in ($initfile): Remove.
18472         (&find_file): Rename as...
18473         (&scan_file): this.
18474         Immediately scan the current file, instead of gathering them, and
18475         later having them handled by &scan_files.
18476         (&scan_files): Merely invoke Find::File.
18477         Adjust.
18479 2001-07-02  Akim Demaille  <akim@epita.fr>
18481         * autoscan.in: Formatting changes, matching the invocation order.
18482         (File::Find): Use it instead of Perl 4's `find.pl'.
18483         (&wanted): Rename as...
18484         (&find_file): this.
18486 2001-07-01  Pavel Roskin  <proski@gnu.org>
18488         * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
18489         break in the argument to AC_TRY_LINK_FUNC.
18490         (AC_F77_MAIN): Remove conftest* after using break in the
18491         argument to AC_TRY_LINK.
18493 2001-07-01  Steven G. Johnson  <stevenj@alum.mit.edu>
18495         Add alternate 'main' routine detection for linking C/C++ with Fortran,
18496         fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
18498         * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
18499         dummy alternate main is required even if the user provides her own
18500         'main'.
18501         (AC_F77_MAIN): New macro to detect whether it is possible to
18502         provide an alternate 'main' function name, using the 'main' from
18503         the Fortran libraries.
18504         (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
18505         cross-language link tests can be performed successfully.
18506         (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN.  Also put $FLIBS
18507         after $LIBS, for consistency; this should be the general rule since
18508         the user may want to link to Fortran libraries that require $FLIBS.
18509         * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
18511 2001-06-29  Pavel Roskin  <proski@gnu.org>
18513         * atgeneral.m4 (AT_CHECK): Add a newline to the end of
18514         at-stdout and at-stderr instead of removing the newline
18515         from the echo output, which is not guaranteed to work.
18517 2001-06-28  Jens Petersen  <petersen@redhat.com>
18519         * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
18520         confdefs.h when non-zero.
18522 2001-06-28  Akim Demaille  <akim@epita.fr>
18524         * configure.in: Bump to 2.50c.
18526 2001-06-26  Akim Demaille  <akim@epita.fr>
18528         Version 2.50b.
18530 2001-06-26  Akim Demaille  <akim@epita.fr>
18532         Version 2.50a.
18534 2001-06-25  Pavel Roskin  <proski@gnu.org>
18536         * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
18537         argument, AUTOCONF-FLAGS.
18538         * tests/mktests.sh (update_exclude_list): Add
18539         AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
18540         * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
18541         AC_FUNC_WAIT3 with "-W no-obsolete".
18543 2001-06-25  Akim Demaille  <akim@epita.fr>
18545         * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
18547 2001-06-25  Akim Demaille  <akim@epita.fr>
18549         * autoscan.in (%macro): Now maps from word to list of macros.
18550         (&init_tables): Die when a word which is already handled by
18551         explicit macros is mapped to the default macro.
18552         (&print_unique): Remove, inlined in...
18553         (&output_kind): here.
18554         (File::Basename): Use it.
18555         (&output): Sort the CONFIG_FILES.
18556         * acheaders: Normalize.
18557         * acfunctions: Likewise.
18559 2001-06-25  Akim Demaille  <akim@epita.fr>
18561         * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
18562         characteristics in the logs.
18563         Suggested by Mo DeJong.
18565 2001-06-24  Akim Demaille  <akim@epita.fr>
18567         * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
18568         (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
18569         * doc/autoconf.texi (Autoconf 2.13): New section.
18571 2001-06-24  Akim Demaille  <akim@epita.fr>
18573         * autoconf.in (Task traces): Separate the error messages from the
18574         traces to improve robustness.
18576 2001-06-23  Akim Demaille  <akim@epita.fr>
18578         * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
18579         three as failures are unlikely, and speed matters.
18581 2001-06-23  Akim Demaille  <akim@epita.fr>
18583         * doc/autoconf.texi (Redefined M4 Macros): New.
18585 2001-06-23  Akim Demaille  <akim@epita.fr>
18587         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
18588         inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
18589         5.3.
18591 2001-06-23  Paolo Bonzini  <bonzini@gnu.org>
18593         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
18594         config.status targets to after the evaluation of the INIT-CMDS.
18595         Double quote config.status targets (used to be single quoted).
18597 2001-06-23  Akim Demaille  <akim@epita.fr>
18599         * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
18600         Check the content of the created file.
18601         Check the ./config.status command line invocation.
18603 2001-06-23  Akim Demaille  <akim@epita.fr>
18605         * tests/foreign.at (Libtool): Reject prehistoric versions.
18607 2001-06-23  Akim Demaille  <akim@epita.fr>
18609         * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
18610         preexisting files matching a.*.
18612 2001-06-23  Akim Demaille  <akim@epita.fr>
18614         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
18615         stderr.
18616         * doc/autoconf.texi (AC_ARG_VAR): Update.
18618 2001-06-21  Akim Demaille  <akim@epita.fr>
18620         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
18621         precious variables have changed.
18622         * tests/torture.at (AC_ARG_VAR): Adjust.
18624 2001-06-21  Akim Demaille  <akim@epita.fr>
18626         ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
18627         but some sed choke on multiple `;', and other tools (e.g.,
18628         Automake), include the separator themselves.
18630         * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
18632 2001-06-19  Tim Van Holder  <tim.van.holder@pandora.be>
18634         * doc/autoconf.texi (Functions Portability): Rename as...
18635         (Function Portability): this.
18636         (Function Portability): Document potential problems with unlink().
18638 2001-06-19  Paul Eggert  <eggert@twinsun.com>
18640         * NEWS, doc/autoconf.texi: Document quadrigraphs.
18642 2001-06-18  Akim Demaille  <akim@epita.fr>
18644         * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
18646 2001-06-18  Ruediger Kuhlmann  <info@ruediger-kuhlmann.de>
18648         * acfunctions.m4: (AC_FUNC_VFORK) rename as...
18649         (_AC_FUNC_VFORK): this.
18650         Remove AC_DEFINEs and don't guess cross-compilation values.
18651         (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
18652         (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
18653         define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
18654         vfork doesn't work.
18655         Guess values if cross-compiling, but warn.
18656         * acfunctions: Add AC_FUNC_FORK.
18657         * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
18658         and vfork appropriately.
18660 2001-06-18  Akim Demaille  <akim@epita.fr>
18662         * doc/autoconf.texi (Functions Portability): New section.
18664 2001-06-18  Akim Demaille  <akim@epita.fr>
18666         * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
18667         in $M4.
18668         Suggested by Andreas Schwab.
18670 2001-06-18  Akim Demaille  <akim@epita.fr>
18672         * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
18673         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
18674         (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
18675         (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
18676         Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
18677         and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
18678         (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
18679         the converse).
18681 2001-06-18  Akim Demaille  <akim@epita.fr>
18683         * doc/autoconf.texi (ms): New index.
18684         (Macro Index): Rename as...
18685         (Autoconf Macro Index): this.
18686         (M4 Macro Index): New appendix.
18687         (Programming in M4): New chapter.
18688         Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
18689         (Quoting): Rename as...
18690         (M$ Quotation): this.
18691         Be part of `Programming in M4).
18693 2001-06-18  Nicolas Joly  <njoly@pasteur.fr>
18695         * tests/torture.at (AC_ARG_VAR): Set variables and export them
18696         in separate statements for compatibility with Tru64 v5.1.
18698 2001-06-17  Akim Demaille  <akim@epita.fr>
18700         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
18701         current values of the precious variables, not the previously
18702         cached values.
18703         Pass precious variables which are set to config.status.
18704         * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
18705         * tests/torture.at (AC_ARG_VAR): New.
18707 2001-06-15  Paul Eggert  <eggert@twinsun.com>
18709         * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
18710         AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
18711         and explain why and how to replace them.
18712         * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
18713         * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
18715 2001-06-15  Akim Demaille  <akim@epita.fr>
18717         `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
18718         Reported by Bruno Haible.
18720         * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
18721          (_AC_ARG_VAR_PRECIOUS): to here.
18723 2001-06-15  Pavel Roskin  <proski@gnu.org>
18725         * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
18726         an unused pointer use cast to this type and `if' statement to
18727         avoid warnings from the compiler.
18728         (AC_HEADER_TIME): Likewise.
18729         * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
18730         in `if' statement to avoid warnings from the compiler. Declare
18731         ac_aggr static to avoid the need to initialize it.
18733 2001-06-14  Akim Demaille  <akim@epita.fr>
18735         * doc/autoconf.texi (Portable Shell): Move to follow `Writing
18736         Macros'.
18738 2001-06-13  Akim Demaille  <akim@epita.fr>
18740         * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
18741         Suggested by Alexander Mai.
18743 2001-06-13  Akim Demaille  <akim@epita.fr>
18745         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
18746         sys/types.h and sys/stat.h, and check for them.
18748 2001-06-13  Akim Demaille  <akim@epita.fr>
18750         * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
18751         INCLUDES.
18753 2001-06-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
18755         * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
18756         succeeds and only try adding libdnet upon a failure.
18758 2001-06-12  Akim Demaille  <akim@epita.fr>
18760         * autoscan.in (&output_kind): Output the comment only if it exists.
18761         (%kind_comment): Add entry for `programs'.
18762         (&output_programs): Use &output_kind.
18763         (&output_functions, &output_identifiers, &output_headers)
18764         (&output_programs): Inline, and remove.
18766 2001-06-12  Akim Demaille  <akim@epita.fr>
18768         * autoscan.in (%kind_comment): New.
18769         (output_kind): New.
18770         (output_functions, output_identifiers, output_headers): Use it.
18772 2001-06-12  Akim Demaille  <akim@epita.fr>
18774         * autoscan.in (&print_unique): Take `$kind' and `$word' as
18775         arguments, to factor indirections into `%macro' and `%used'.
18776         (%generic_macro): Fix a typo.
18778 2001-06-12  Akim Demaille  <akim@epita.fr>
18780         * aclibraries: New.
18781         * autoscan.in (@kinds): Add `libraries'.
18782         Use `@kinds' instead of hard coded lists.
18783         (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
18784         Remove, replaced by...
18785         (%used): this.
18787 2001-06-12  Akim Demaille  <akim@epita.fr>
18789         * autoscan.in (%functions_macros %headers_macros)
18790         (%identifiers_macros %programs_macros %makevars_macros): Remove,
18791         replaced by...
18792         (%macro): New.
18794 2001-06-11  Raja R Harinath  <harinath@cs.umn.edu>
18796         * aclang.m4 (AC_NO_EXECUTABLES): Override
18797         _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
18799 2001-06-11  Akim Demaille  <akim@epita.fr>
18801         * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
18802         trailing new line.
18803         Reported by Andreas Schwab.
18805 2001-06-11  Akim Demaille  <akim@epita.fr>
18807         * Makefile.am, Makefile.maint: Typos.
18809 2001-06-09  Akim Demaille  <akim@epita.fr>
18811         * doc/autoconf.texi (Here-Documents): New section, gathering
18812         documentation about here-documents.
18813         Use `href', not `uref', and other changes.
18815 2001-06-09  Akim Demaille  <akim@epita.fr>
18817         * doc/autoconf.texi (Portable Shell Programming): Promoted as a
18818         chapter.
18820 2001-06-09  Akim Demaille  <akim@epita.fr>
18822         * doc/autoconf.texi (Limitations of Builtins): Complete the
18823         description of the here-docs penalties with Alexandre Oliva's
18824         explanations.
18826 2001-06-01  Paul Eggert  <eggert@twinsun.com>
18828         * doc/autoconf.texi: Talk about here documents and speedups.
18829         Do not use "echo" on arbitrary strings.
18830         Spell "here-documents" consistently with the standard.
18832 2001-06-09  Akim Demaille  <akim@epita.fr>
18834         * doc/autoconf.texi (Concept Index): Introduce it.
18835         Regenerate the menus.
18837 2001-06-09  Akim Demaille  <akim@epita.fr>
18839         * Makefile.maint, GNUmakefile: New, from Jim Meyering.
18840         * config/prev-version.txt: New.
18841         * config/move-if-change: New, for GNU libc.
18843 2001-06-06  Pavel Roskin  <proski@gnu.org>
18845         * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
18847 2001-06-06  Akim Demaille  <akim@epita.fr>
18849         * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
18850         properly when $1 is not a literal.
18851         Fixes PR Autoconf/187, reported by Bram Moolenaar.
18853 2001-06-06  Akim Demaille  <akim@epita.fr>
18855         Invoking AC_COPYRIGHT before AC_INIT fails.
18857         * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
18858         * acgeneral.m4 (_m4_divert(VERSION_FSF))
18859         (_m4_divert(VERSION_USER)): New.
18860         (AC_COPYRIGHT): $2 is the diversion to use.
18861         (_AC_INIT_COPYRIGHT): Use the FSF diversion.
18862         (AC_INIT): Remove dead comments as now it's commutative.
18864 2001-06-06  Akim Demaille  <akim@epita.fr>
18866         * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
18867         PR autoconf/187.
18869 2001-06-05  Akim Demaille  <akim@epita.fr>
18871         * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
18872         can be empty.
18873         `*dir' variables cannot be NONE.
18874         Reported by Mark Kettenis.
18876 2001-06-05  Paul Eggert  <eggert@twinsun.com>
18878         * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
18880 2001-06-04  Akim Demaille  <akim@epita.fr>
18882         * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
18883         (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
18884         (AC_TR_SH): Move as...
18885         * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
18886         (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
18887         (AS_TR_SH): these.
18888         (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
18889         (_AS_TR_SH_PREPARE): New.
18890         (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
18891         * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
18893 2001-06-02  Akim Demaille  <akim@epita.fr>
18895         * Makefile.am (.m4.m4f): Pass the options first.
18896         Fixes PR autoconf/182.
18898 2001-06-02  Nathan Sidwell  <nathan@codesourcery.com>
18900         GNU getopt, when POSIXLY_CORRECT does not permute options and
18901         arguments.  So pass the options first.
18902         Fixes PR autoconf/184.
18904         * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
18905         (run_m4): Remove files.
18906         (run_m4f): Remove.
18907         Update remainder of script to use them.
18908         (for warning in): Do not use a literal comma as it will not be
18909         split by IFS.
18911 2001-06-02  Christian Marquardt  <marq@gfz-potsdam.de>
18913         * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
18914         Fortran compilers to check.
18915         (_AC_PROG_F77_V): Add '-###' as a possible option to print
18916         information on library and object files.
18917         (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
18918         to check.
18920 2001-06-02  Akim Demaille  <akim@epita.fr>
18922         * autom4te.in (Request::@request): Declare with `vars', not `my',
18923         as it prevents updates via `do FILENAME'.
18925 2001-06-02  Akim Demaille  <akim@epita.fr>
18927         * configure.in (standards_texi): Remove, dead code.
18929 2001-06-02  Akim Demaille  <akim@epita.fr>
18931         * autom4te.in: New.
18933 2001-06-02  Pavel Roskin  <proski@gnu.org>
18935         * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
18936         for signals other than 0 - exit with code 1.
18937         * m4sh.m4 (AS_TMPDIR): Likewise.
18938         * autoconf.in: Likewise. Also don't rely on exit == exit $?.
18939         * autoheader.in: Likewise.
18940         * autoreconf.in: Likewise.
18941         * tests/torture.at (Signal handling): New test for the above.
18943 2001-06-01  Akim Demaille  <akim@epita.fr>
18945         * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
18946         message.
18948 2001-05-31  Akim Demaille  <akim@epita.fr>
18950         * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
18951         Add copyright and comments.
18952         * acheaders: Add stdint.h.
18953         Suggested by Paul Eggert.
18955 2001-05-31  Akim Demaille  <akim@epita.fr>
18957         * atgeneral.m4 (AT_INIT): Use $SHELL.
18958         * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
18960 2001-05-31  Akim Demaille  <akim@epita.fr>
18962         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
18963         stdint.h.
18964         From Paul Eggert and Lars Hecking.
18966 2001-05-31  Akim Demaille  <akim@epita.fr>
18968         * tests/base.at: Adjust line numbers in error messages.
18970 2001-05-31  Akim Demaille  <akim@epita.fr>
18972         * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
18973         to emit the bangshe line.
18974         Reported by David Carter.
18976 2001-05-30  Steven G. Johnson  <stevenj@alum.mit.edu>
18978         * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
18979         Fortran (95) compilers to check.
18981 2001-05-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
18983         * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
18984         Macro Archive URL.
18986 2001-05-23  Pavel Roskin  <proski@gnu.org>
18988         * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
18989         _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
18990         (AC_PROG_CXXCPP): Likewise.
18992 2001-05-22  Akim Demaille  <akim@epita.fr>
18994         * config: New directory.
18995         * configure.in: AC_CONFIG_AUX_DIR it.
18996         * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
18998 2001-05-22  Akim Demaille  <akim@epita.fr>
19000         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
19001         * autoupdate.in: Specify the Emacs mode.
19002         * acversion.m4.in: Rename as...
19003         * acversion.m4: this.
19004         * tests/Makefile.am (CLEANFILES): More garbage.
19006 2001-05-22  Akim Demaille  <akim@epita.fr>
19008         * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
19009         Rename as...
19010         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
19011         these.
19013 2001-05-21  Akim Demaille  <akim@epita.fr>
19015         * configure.in: Bump to 2.50a.
19018         -----
19020         Local Variables:
19021         coding: utf-8
19022         End:
19024         Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
19025         Free Software Foundation, Inc.
19027         Copying and distribution of this file, with or without
19028         modification, are permitted provided the copyright notice and this
19029         notice are preserved.