Tighten bound of potential speed of m4_append.
[autoconf.git] / ChangeLog
blob8ae2ef62cbe8bced8ef316306d76ff717d168d31
1 2008-07-14  Eric Blake  <ebb9@byu.net>
3         Tighten bound of potential speed of m4_append.
4         * doc/autoconf.texi (Text processing Macros) <m4_append>
5         <m4_prepend>: If m4 is fixed, m4_append can be linear rather than
6         O(n log n).
7         * lib/m4sugar/m4sugar.m4 (m4_append, m4_append_uniq): Fix comments.
8         Analysis by Bruno Haible.
10 2008-07-11  Eric Blake  <ebb9@byu.net>
12         Inherit improvements from bison's fork of m4sugar.
13         * lib/m4sugar/m4sugar.m4 (m4_PACKAGE_VERSION): Ignore failure to
14         find version.texi, since bison does not provide it.
15         (m4_prepend): Add new macro, from bison.
16         (m4_prepend_uniq, m4_prepend_uniq_w): Add new macros, for
17         completeness.
18         (_m4_append_uniq): Rename...
19         (_m4_grow_uniq_1): ...to this to share implementation, and
20         optimize initial assignment.
21         (m4_append_uniq_w): Adjust caller.
22         * NEWS: Document new macros.
23         * doc/autoconf.texi (Text processing Macros) <m4_append>: Mention
24         speed consideration.
25         <m4_prepend>: Document the new prepend variants.
26         * tests/m4sugar.at (m4@&t@_prepend): New test.
28         Work around M4 1.6 warning on undefined macros.
29         * lib/m4sugar/m4sugar.m4 (changeword, symbols): Don't rename if
30         not already available as builtins.
32 2008-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34         * doc/autoconf.texi (@dvar): Remove trailing newline.
35         (@ovar): Likewise.  Fix macro documentation.
37 2008-07-02  Stepan Kasal  <skasal@redhat.com>
39         Add quotes to the header of autoscan-generated source.
40         * bin/autoscan.in: Add quotes to AC_PREREQ and AC_INIT.
42 2008-06-28  Andreas Schwab  <schwab@suse.de>
44         * doc/autoconf.texi (autoscan Invocation): Fix spacing.
45         (autoconf Invocation): Likewise.
46         (autoreconf Invocation): Likewise.
47         (autoheader Invocation): Likewise.
48         (autom4te Invocation): Likewise.
50 2008-06-19  Eric Blake  <ebb9@byu.net>
52         Add comment explaining recent patch.
53         * lib/autotest/general.m4 (AT_INIT) <at_pass_list>: Explain choice
54         of * vs. ? globbing.
56 2008-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not warn when not
59         linking a file to itself.
60         Report by Bruno Haible.
62 2008-06-19  Eric Blake  <ebb9@byu.net>
64         Resync with gnulib.
65         * GNUmakefile: Grab from upstream, to fix VPATH 'make dist' bug.
66         Reported by Stepan Kasal.
68 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70         Reorganize autotest files, factorize for parallel execution.
71         * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD): Move definition
72         earlier in the file.
73         (AT_INIT): Create line number cache in
74         $at_suite_dir/at-source-lines.
75         <at_helper_dir>: New directory at-groups below $at_suite_dir.
76         Add comment explaining the new directory structure.
77         (at_func_group_prepare, at_func_group_postprocess): New shell
78         functions to factorize per-test group work.  Keep the actual
79         test execution outside of a shell function in order to avoid
80         zsh 4.x exit status bugs.
81         <at_check_line_file, at_status_file, at_stdout, at_stder1>
82         <at_stderr, at_test_source>: Turn these into per-group files
83         below $at_helper_dir.  Also store test results there in files
84         named pass, fail, xpass, xfail, skip.  Let the parent collect
85         results from $at_helper_dir.  Adjust summary statistics
86         computation and result output.
88 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90         Fix '#undef variable /* comment */' transform in config headers.
91         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): For
92         undefined preprocessor macros that are followed by a comment
93         in the header template, do not create nested comments in the
94         output.
95         * tests/torture.at (@%:@define header templates): Extend test.
96         * NEWS: Update.
97         Report by Karsten Hopp <karsten@redhat.com>.
99 2008-06-09  Eric Blake  <ebb9@byu.net>
101         Mark AC_TYPE_SIGNAL as obsolete.
102         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Switch to AU_DEFUN.
103         * doc/autoconf.texi (Function Portability): Update documentation.
104         (Particular Types): Move AC_TYPE_SIGNAL...
105         (Obsolete Macros): ...here, and mention why.
106         * NEWS: Mention the change.
108         Allow lib64 as a default X library location.
109         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Add lib64.
110         * NEWS: Mention the change.
111         * THANKS: Update.
112         Reported by Brad Walker.
114 2008-06-05  Eric Blake  <ebb9@byu.net>
116         Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
117         * lib/autotest/general.m4 (AT_KEYWORDS): Expand argument prior to
118         converting it to lower case.
119         * tests/autotest.at (Keywords and ranges): Test this.
120         * NEWS: Document the fix.
121         * THANKS: Update.
122         Reported via Karsten Hopp, by Jochen Schmitt in
123         https://bugzilla.redhat.com/show_bug.cgi?id=449973
125 2008-06-03  Eric Blake  <ebb9@byu.net>
127         Fix 'make dist' regression from 2008-05-08.
128         * Makefile.am (INSTALL): Add rule, to accomodate 'make dist' after
129         GNUmakefile's _autoconf rule removes INSTALL.
131 2008-05-27  Eric Blake  <ebb9@byu.net>
133         Document Solaris /bin/sh redirection pitfall.
134         * doc/autoconf.texi (File Descriptors): Mention redirection bug.
136 2008-05-14  Eric Blake  <ebb9@byu.net>
138         Improve documentation of ! issues.
139         * doc/autoconf.texi (Limitations of Builtins) <!>: Touch up.
140         Reported by Noah Misch.
142         Document some FreeBSD shell bugs.
143         * doc/autoconf.texi (Limitations of Builtins) <!>: Mention ! issue
144         in compound pipe commands.
145         <export>: Mention difference of exporting an undefined variable.
146         (Shell Functions): Mention loss of $? in entry to shell functions.
147         Extracted from the git mailing list.
149 2008-05-13  Stepan Kasal  <kasal@ucw.cz>
151         Work around MSYS and Cygwin bugs when dealing with trailing space.
152         * tests/atlocal.in (func_sanitize_dir_name): Let atlocal succeed,
153         even when platform bugs are tickled.
154         Reported by Keith Marshall and Eric Blake.
156 2008-05-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
158         Let AC_MSG_FAILURE report pwd.
159         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE):
160         Output $ac_pwd along with fatal failure.
161         * tests/torture.at (Deep Package): Extend test.
162         Reported numerous times against GCC, and probably other packages.
164 2008-05-12  Eric Blake  <ebb9@byu.net>
166         Enforce --help and --version compliance.
167         * configure.ac (AM_INIT_AUTOMAKE): Add std-options option.
169 2008-05-08  Keith Marshall  <keithmarshall@users.sourceforge.net>  (tiny change)
171         Avoid case-insensitive `make install' vs. `INSTALL' conflict.
172         * Makefile.am ($(srcdir)/INSTALL): Replace all references...
173         ($(abs_srcdir)/INSTALL): ...with this.
175 2008-05-06  Eric Blake  <ebb9@byu.net>
177         Fix typo.
178         * doc/autoconf.texi (Shell Substitutions): Drop at_ prefix.
180         Avoid overfull \hbox.
181         * doc/autoconf.texi (Versioning): Reword to fit line size.
183         Document $(( )) pitfalls.
184         * doc/autoconf.texi (Shell Substitutions): Mention octal
185         vs. decimal.  Mention autotest's at_func_arith.
187         Improve behavior of './testsuite 01'.
188         * lib/autotest/general.m4 (AT_INIT) <at_func_validate_ranges>:
189         Alter usage to eval its arguments, in order to normalize away
190         leading zero.  All callers updated.
191         * tests/autotest.at (Keywords and ranges): Test range
192         normalization with leading 0.
194 2008-04-26  Eric Blake  <ebb9@byu.net>
196         Mention Solaris /usr/ucb/tr pitfall.
197         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Add section.
198         Reported by Bruno Haible and Jim Meyering.
200 2008-04-24  Eric Blake  <ebb9@byu.net>
202         Mention m4sugar's internal quote strings.
203         * doc/autoconf.texi (Quadrigraphs): Mention alternate quote used
204         in m4sugar, and how to still output it literally.
205         * tests/m4sugar.at (m4@&t@_split): And test it.
206         Reported by Joel E. Denny.
208 2008-04-23  Eric Blake  <ebb9@byu.net>
210         Allow unbalanced () in m4_expand.
211         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Use more complex
212         quotes.
213         (m4_noquote, _m4_split): Use consistent complex quote.
214         * tests/autotest.at (Left paren, Right paren): Test this.
215         (Parentheses): Ensure new quadrigraphs still work.
216         (AT_CHECK_AT_TITLE_CHAR): All title char tests exercise m4_expand.
217         * NEWS: Mention the fix.
218         * doc/autoconf.texi (Quadrigraphs): Revert mention of macros that
219         require quadrigraphs for ().
220         (Evaluation Macros) <m4_expand>: Relax the restriction against
221         unbalanced ().
222         (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
223         (Writing Testsuites) <AT_SETUP>: Likewise.
224         Reported by Joel E. Denny, fix suggested by Noah Misch.
226 2008-04-22  Eric Blake  <ebb9@byu.net>
228         Support unbalanced () in AT_SETUP by adding two new quadrigraphs.
229         * bin/autom4te.in (handle_output): Substitute @{:@ and @:}@.
230         (handle_traces): Likewise.
231         * lib/m4sugar/m4sugar.m4 (m4_qlen): Account for new quadrigraphs.
232         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Add new tests.
233         * doc/autoconf.texi (Quadrigraphs): Document them.
234         (Evaluation Macros) <m4_expand>: Enhance documentation.
235         (Text processing Macros) <m4_text_box>: Document cases where
236         quadrigraphs can help for problemetic unbalanced parentheses.
237         (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
238         (Writing Testsuites) <AT_SETUP>: Likewise.
239         (Limitations of Builtins) <case>: Consolidate text on unbalanced
240         parentheses, and add an example of creative comments.
241         * NEWS: Document the addition.
242         Reported by Joel E. Denny.
244 2008-04-16  Eric Blake  <ebb9@byu.net>
246         Document pdksh exec behavior.
247         * doc/autoconf.texi (Limitations of Builtins) <exec>: New
248         subsection.
249         Discovered by Jim Meyering.
251 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
253         * tests/autotest.at (AT_CHECK_AT): Allow to pass additional
254         arguments to the inner suite.
255         (errexit, input from stdin): New tests.
257 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
259         * NEWS: Post-release update.
261 2008-04-10  Eric Blake  <ebb9@byu.net>
263         AC_AUTOCONF_VERSION might contain arbitrary macro names.
264         * doc/autoconf.texi (Versioning): Mention problem with expansion.
265         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Adjust test.
267 2008-04-09  Slava Sysoltsev <Viatcheslav.Sysoltsev@h-d-gmbh.de>  (tiny change)
269         Flush buffered output before exit.
270         * bin/autom4te.in (handle_output): Explicitly close file.
271         * THANKS: Update.
272         See http://lists.gnu.org/archive/html/autoconf/2008-04/msg00026.html.
274 2008-04-08  Eric Blake  <ebb9@byu.net>
276         Generate web docs for 2.62.
277         * doc/autoconf.texi (Evaluation Macros): Fix typo.
278         (Notices): Use recommended means to escape RCS keyword.
279         * cfg.mk (gnulib_dir): New macro.
280         (web-manual): New target.
282 2008-04-05  Eric Blake  <ebb9@byu.net>
284         Release Version 2.62.
285         * NEWS: Mention the release.
287 2008-04-04  Stepan Kasal  <kasal@ucw.cz>
288         and Eric Blake  <ebb9@byu.net>
290         Return back to GPLv2+, until the text of the exceptions is
291         finalized, reverting the change from 2007-07-03 and the first
292         part of the change from 2007-07-20.
293         * COPYING: Revert to GPLv2.
294         * COPYINGv3: New file, since some auxiliary build tools, used for
295         building autoconf and not installed, are GPLv3.
296         * Makefile.am (EXTRA_DIST): Distribute COPYINGv3.
297         * NEWS: Remove mention of GPLv3.
298         * README: Clarify situation regarding GPLv3.
300 2008-04-05  Eric Blake  <ebb9@byu.net>
302         Prepare for release.
303         * maint.mk (announcement): Avoid deleted option.
304         * cfg.mk (release_archive_dir): Use default.
305         * build-aux/gnupload: New file, from automake/gnulib.
306         * Makefile.am (EXTRA_DIST): Distribute it.
307         * .x-sc_two_space_separator_in_usage: New file, to exempt gnupload
308         from syntax check.
310 2008-04-05  Jim Meyering  <meyering@redhat.com>
311         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
313         Work around CR EOL markers on OS/2 (www.ecomstation.com Ecs v2 rc4)
314         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When CR
315         is the EOL marker, skip a step that would remove and translate
316         carriage return bytes.
317         * THANKS: Update.
318         Reported by Elbert Pol.
320 2008-04-05  Eric Blake  <ebb9@byu.net>
322         Avoid some autoreconf -Wall warnings.
323         * configure.ac: Use proper quoting, to be a good example.
324         (PACKAGE_NAME): Remove setting covered by autoconf.
325         (AM_INIT_AUTOMAKE): Bump automake requirement, for html rules.
326         * doc/Makefile.am (TEXI2DVI): Remove settings covered by
327         automake.
328         (html, autoconf_1.html, standards_1.html): Likewise.
329         (TEXI2HTML, TEXI2HTML_FLAGS): Remove unused macros.
330         * Makefile.am (html): Likewise.
331         * doc/autoconf.texi (Quoting and Parameters): Add missing section
332         name.
333         * tests/Makefile.am (AUTOMAKE_OPTIONS): Intentionally ignore
334         warning about our override, until Automake is fixed.
335         * README-hacking: Document minimum requirements for bootstrap.
337 2008-04-03  Eric Blake  <ebb9@byu.net>
339         Fix version number generation in man pages.
340         * Makefile.am (EXTRA_DIST): Distribute .version.
341         (.version): New rule.
342         * man/Makefile.am (common_dep): Depend on .version, not
343         configure.ac.
344         (.x.1): Use package name for version string.
345         * GNUmakefile [!_have-Makefile]: Sync from upstream, again.
346         * build-aux/git-version-gen: Sync from upstream.
348         More maintainer tweaks: pass 'make maintainer-distcheck'.
349         * GNUmakefile (_is-dist-target): Sync from upstream.
350         * build-aux/vc-list-files: Sync from upstream, yet again.
351         * tests/atlocal.in (unsupported_fs_chars): Always remove tdir.
352         * tests/Makefile.am (EXTRA_DIST): Don't distribute the built
353         package.m4.
354         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump year.
356         Fix VPATH 'make syntax-check'.
357         * maint.mk (VC_LIST, VC_LIST_EXCEPT, sc_changelog)
358         (sc_prohibit_jm_in_m4, makefile-check): Support VPATH.
359         (author_mark_check): Avoid error message.
360         * build-aux/vc-list-files: Sync from upstream again.
361         * build-aux/texinfo.tex: Likewise.
363         Sync files from upstream, and pass 'make syntax-check'.
364         * config/announce-gen: Move...
365         * build-aux/announce-gen: ...here, and sync from gnulib.
366         * Makefile.am (EXTRA_DIST): Adjust accordingly.
367         * cfg.mk (announce_gen): Likewise.
368         (prev_version_file): Delete, relying on default in maint.mk.
369         (gpg_key_ID): New macro.
370         (url_dir_list): Rewrite to match coreutils.
371         * config/prev-version.txt: Move...
372         * .prev-version: ...here, and adjust to 2.61.
373         * build-aux/vc-list-files: Sync from coreutils.
374         * maint.mk: Resynchronize with coreutils, where possible.
375         (ME): Remove $(srcdir) from definition.
376         (CVS): Delete.
377         (GIT, VC, VC-tag): New macros.
378         (CVS_LIST, CVS_LIST_EXCEPT): Rename...
379         (VC_LIST, VC_LIST_EXCEPT): ...to this.
380         (cvs-tag-check): Delete.
381         (cvs-diff-check): Rename...
382         (vc-diff-check): ...to this.
383         (sc_file_system): Allow FHS acronym.
384         * doc/autoconf.texi (Particular Functions): Recommend
385         unconditional <config.h>.
386         * build-aux/config.guess: Sync from upstream (manually).
387         * build-aux/config.sub: Likewise.
388         * build-aux/texinfo.tex: Likewise.
389         * doc/make-stds.texi: Likewise.
390         * doc/standards.texi: Likewise.
391         * .gitattributes: Ignore whitespace problems in upstream files.
393 2008-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
395         * doc/autoconf.texi (Limitations of Usual Tools): Mention awk %u
396         bug on HP-UX/IA.
397         Report by Peter O'Gorman.
399 2008-04-02  Eric Blake  <ebb9@byu.net>
401         Recommend the just-released M4 1.4.11.
402         * NEWS: Update recommendation.
403         * README: Likewise.
404         * doc/autoconf.texi (Introduction): Likewise.
405         * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
407 2008-04-01  Eric Blake  <ebb9@byu.net>
409         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Bump
410         copyright year.
412 2008-03-28  Peter O'Gorman  <peter@pogma.com>
414         Find X11 on Mac OS X too.
415         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT,_AC_PATH_X_XMKMF):
416         Check for libX11 with extensions dylib la and dll too.
417         * THANKS: Update.
418         Reported by Martin Costabel.
420 2008-03-28  Eric Blake  <ebb9@byu.net>
422         Update TODO based on completed tasks.
423         * TODO (AC_PROG_INSTALL takes multiple files): Done.
424         (AC_GNU_SOURCE deprecation): Done, see AC_USE_SYSTEM_EXTENSIONS.
425         (AC_COMPILE_IFELSE documentation): Done.
426         (Tracing builtins): Done, now that we require M4 1.4.5.
427         (AC_PROG_CC_POSIX suggestion, providing header files)
428         (AC_TYPE_SIGNAL): Not needed; gnulib's approach is better.
429         (cache consistency): Done with precious variables.
431 2008-03-26  Eric Blake  <ebb9@byu.net>
433         Document --trace=macro:format in --help output.
434         * bin/autom4te.in (help): Mention optional trace format.
435         * bin/autoconf.as (usage): Likewise.
437         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Fix
438         typos in last patch.
439         Reported by Ralf Wildenhues.
441 2008-03-26  Jim Meyering  <meyering@redhat.com>
443         Fix texinfo syntax error.
444         * doc/autoconf.texi (Limitations of Usual Tools): s/@kbd {/@kbd{/
446 2008-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
448         Warn, not fail on whitespace-only precious variable differences.
449         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Output
450         precious variable differences less ambiguous with `ugly-quotes'.
451         If their settings differ only in whitespace, do not fail, but
452         reuse the old value.
453         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Extend macro to allow
454         an optional status and expected-warning argument.  Fix m4
455         quotation for initial value.
456         (AC_ARG_VAR): Also test for whitespace-only differences, and
457         that the old value is retained in this case.
458         * doc/autoconf.texi (Setting Output Variables): Document this.
459         * NEWS: Update.
460         Report and initial patch by Paolo Bonzini.
462 2008-03-26  Eric Blake  <ebb9@byu.net>
464         Document busybox sed bug.
465         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Mention
466         restrictions when using back-references.
467         Reported by Vincent Lefevre:
468         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13013>.
470         Document Automake interaction with AC_CONFIG_MACRO_DIR.
471         * doc/autoconf.texi (Input): Mention ACLOCAL_AMFLAGS for automake
472         users.
473         * THANKS: Update.
474         Reported by Chris Pickett.
476 2008-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
478         * tests/autotest.at (Using atlocal): Quote instances of `pwd`.
480         * tests/local.at (AT_CHECK_M4): Factorize warning output
481         normalization.
482         Suggested by Eric Blake.
484 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
486         Fix .exe-related test failure on MinGW.
487         * tests/local.at (AT_CHECK_M4): Normalize `/bin/m4.exe' correctly
488         for comparing warning output.
490         Fix Fortran testsuite failures with gfortran 4.3.
491         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): When scanning
492         verbose compiler output, skip lines that set variables; gfortran
493         4.3 sets LIBRARY_PATH, COMPILER_PATH, COLLECT_GCC_OPTIONS.
494         * THANKS: Update.
495         Report by Vincent Lefèvre.
497 2008-03-21  Eric Blake  <ebb9@byu.net>
499         * GNUmakefile: Resynchronize with gnulib.
501         Document more uses of $cross_compiling.
502         * doc/autoconf.texi (Runtime): Document that a temporary override
503         is permissible.
504         * THANKS: Update.
505         Reported by Ineiev, example by Ralf Wildenhues.
507         Don't swallow $1 in textual local variables.
508         * lib/m4sugar/m4sugar.m4 (m4_combine): Don't use overquoting and
509         expansion of text arguments, as that swallows $1.
510         (m4_text_wrap): Likewise, by splitting out...
511         (_m4_text_wrap): ...new helper macro.  Also, allow arbitrary
512         expression for width.
513         * tests/m4sugar.at (m4@&t@_text_wrap): Test this.
514         (m4@&t@_combine): Likewise.
516 2008-03-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
518         Avoid leftover files on Leopard.
519         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove a.out.dSYM
520         directory created on darwin.
521         (AC_NO_EXECUTABLES): Likewise; also remove objects which may be
522         left over from a broken link.
523         * tests/c.at (AC_NO_EXECUTABLES (working linker))
524         (AC_NO_EXECUTABLES (broken linker)): New tests.
525         Report by Gary V. Vaughan.
527         * lib/autom4te.in (Automake-preselections): Trace
528         _AM_COND_IF, _AM_COND_ELSE, _AM_COND_ENDIF.
530 2008-03-20  Eric Blake  <ebb9@byu.net>
532         Kill more CVS references.
533         * README-cvs: Delete.  See README-hacking instead.
534         * README-hacking: Update wording, based on older file.
535         * BUGS: Remove CVS mention.
537 2008-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
539         * tests/tools.at (autotools and whitespace in file names): Skip
540         if aclocal is not present.
542 2008-03-20  Eric Blake  <ebb9@byu.net>
544         Sync GNUmakefile with gnulib.
545         * GNUmakefile (Makefile.cfg): Rename...
546         (cfg.mk): ...to this, and make optional.
547         (GNUmakefile.cfg): Delete, redundant with cfg.mk.
548         (Makefile.maint): Rename...
549         (maint.mk): ...to this.
550         (all) [!_have-Makefile]: Rename...
551         (abort-due-to-no-makefile): ...to this, and invoke via
552         .DEFAULT_GOAL to pick up all targets.
553         * Makefile.cfg: Rename...
554         * cfg.mk: ...to this.
555         * Makefile.maint: Rename...
556         * maint.mk ...to this.
557         (ME): Reflect name change.
558         (makefile-check, m4-check, author_mark_check, msg): Use $(ME)
559         rather than hard-coded name.
560         * GNUmakefile.cfg: Delete; move rules into cfg.mk.
561         * Makefile.am (EXTRA_DIST): Reflect file name changes.
562         * .x-sc_prohibit_atoi_atof: Likewise.
563         * lib/freeze.mk: Likewise.
565 2008-03-19  Stepan Kasal  <kasal@ucw.cz>
567         * doc/autoconf.texi (Introduction): Improve the paraphrase of
568         Henry Spencer's quotation.
570 2008-03-19  Eric Blake  <ebb9@byu.net>
572         AC_CONFIG_HEADERS replaced AC_CONFIG_HEADER.
573         * bin/autoscan.in (output): Avoid obsolete spelling.
574         * tests/local.at (AC_STATE_SAVE): Update usage.
575         * THANKS: Update.
576         Reported by John Calcote.
578         Emphasize that ease of configure triumphs over ease of autoconf.
579         * doc/autoconf.texi (Introduction): Expand on primary
580         vs. secondary goal of autoconf.
581         * THANKS: Update.
582         Inspired by Paul Smith.
584 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
586         * lib/Autom4te/FileUtils.pm (handle_exec_errors): New argument
587         $hint, show if the executing program does not exist.
588         (xsystem_hint): New function, like xsystem but allows to pass
589         a hint.
590         * bin/autoreconf.in: Use xsystem_hint for spawning autopoint and
591         libtoolize.
592         Report by Bruce Korb.
594 2008-03-14  Stepan Kasal  <kasal@ucw.cz>
596         * lib/Autom4te/ChannelDefs.pm, tests/fortran.at,
597         tests/mktests.sh, tests/wrapper.as: Fix typos.
599 2008-03-12  Eric Blake  <ebb9@byu.net>
601         Fix yesterday's regression in m4_wrap([$1]).
602         * lib/m4sugar/m4sugar.m4 (_m4_wrap): Don't directly invoke wrapped
603         text, since it may contain text that looks like parameters.
604         * tests/m4sh.at (AS@&t@_INIT cleanup): Enhance test.
606 2008-03-11  Eric Blake  <ebb9@byu.net>
608         Improve error messages for common testsuite bugs.
609         * lib/autotest/general.m4 (_AT_DEFINE_INIT, _AT_DEFINE_SETUP): New
610         macros for defining order-enforced macros.
611         (AT_INIT, AT_SETUP, AT_CLEANUP, AT_BANNER, AT_XFAIL_IF)
612         (AT_CAPTURE_FILE, AT_DATA, AT_CHECK, AT_CHECK_NOESCAPE): Add error
613         messages when order violations are detected.
614         * tests/autotest.at (AT_CHECK_AT_SYNTAX): New helper macro.
615         (AT_SETUP without AT_INIT, AT_BANNER without AT_INIT)
616         (AT_CLEANUP without AT_INIT, Missing AT_CLEANUP)
617         (AT_CHECK without AT_SETUP, AT_DATA without AT_SETUP)
618         (AT_XFAIL_IF without AT_DATA, AT_KEYWORDS without AT_SETUP,
619         (AT_CLEANUP without AT_SETUP, AT_BANNER inside AT_SETUP)
620         (AT_SETUP inside AT_SETUP, Multiple AT_INIT)
621         (Banner-only test suite): New tests.
622         Reported by Christopher Hulbert.
624         Tweak m4_wrap to force FIFO or LIFO semantics.
625         * lib/m4sugar/m4sugar.m4 (m4_wrap): Override M4 implementation.
626         (m4_wrap_lifo, _m4_wrap): New macros.
627         * lib/m4sugar/m4sh.m4 (AS_INIT): Combine all cleanup into known
628         order, prior to m4sugar's.
629         (_AS_DETECT_BETTER_SHELL): Use cleanup parameter, rather than
630         m4_wrap.
631         * lib/autotest/general.m4 (AT_INIT): Combine all cleanup into
632         known order, prior to m4sh's.
633         * doc/autoconf.texi (Diagnostic Macros) <m4_fatal>: Document
634         argument.
635         (Redefined M4 Macros) <m4_wrap>: Rewrite documentation to match
636         new behavior.
637         * tests/m4sh.at (AS_INIT cleanup): New test.
638         * NEWS: Document the change.
640 2008-03-10  Eric Blake  <ebb9@byu.net>
642         Encode nested autotest data.
643         * tests/autotest.at (AT_CHECK_AT_PREP): Avoid raw AT_ in output.
644         (unusual file names): Likewise.
645         (m4_pattern_allow): Remove loophole, to make it easier to catch
646         poorly written tests.
648         Factor some autotest tests.
649         * tests/autotest.at (AT_CHECK_AT_PREP): New macro, to factor out
650         common initialization.
651         (AT_CHECK_AT, Banners, Keywords and ranges, srcdir propagation)
652         (whitespace in absolute testdir, unusual file names): Use it.
654 2008-03-06  Eric Blake  <ebb9@byu.net>
656         Minor documentation fix.
657         * doc/autoconf.texi (Evaluation Macros): Fix typo.
659 2008-03-04  Eric Blake  <ebb9@byu.net>
661         Make AT_CHECK act like a simple command.
662         * lib/autotest/general.m4 (_AT_CHECK): Wrap commands in {;}.
663         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Test it.
665 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
667         On MinGW, substitution of CR and 0xFF fails.
668         * tests/torture.at (Substitute and define special characters):
669         MinGW awk cannot handle 0xFF, and on MinGW, the test does the
670         wrong thing for CR.
672 2008-03-04  Eric Blake  <ebb9@byu.net>
674         Pull in recent maintainer improvements from coreutils.
675         * GNUmakefile (_is-dist-target): 'make distclean' should not
676         trigger autoreconf.
677         (_dummy): Change directories before removing autom4te.cache.
678         (check dist distcheck install) [!_have-Makefile]: Provide nicer
679         diagnostics.
680         * configure.ac (AC_CONFIG_LINKS): Copy GNUmakefile into VPATH
681         builds, after initial bootstrap.
682         * Makefile.am (distclean-local): Work around current automake bug.
683         * Makefile.maint (ME): Allow VPATH usage.
685         Use git-merge-changelog when available.
686         * .gitattributes: New file.
687         * README-hacking: Document use of git-merge-changelog.
689         Work around cygwin bug.
690         * tests/atlocal.in (unsupported_fs_chars): Avoid cygwin bug where
691         "touch 't\'" creates regular file 't'.
693         Ignore tests that require read-only directories under root.
694         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Skip
695         no-write portion if user has root-like privileges.
697 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
699         * lib/autotest/general.m4 (AT_INIT): Fix detection of '-C -'.
701 2008-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
703         autoreconf -m now honors $MAKE.
704         * bin/autoreconf.in ($run_make): Renamed from ...
705         ($make): ... this.  Use now as command to run `make',
706         overridden by $MAKE.  Document this in --help output.
707         * doc/autoconf.texi (autoreconf Invocation): Document
708         all environment variables honored by autoreconf.
709         * NEWS: Update.
710         Report by Paul Eggert.
712 2008-03-03  Eric Blake  <ebb9@byu.net>
714         Documentation improvements.
715         * doc/autoconf.texi (Looping constructs): s/recurses/repeats/.
716         (Evaluation Macros): Drop `1' suffix from metasyntax variable name
717         that preceeds @dots.  Improve wording.
718         (Text processing Macros): Drop `1' suffix from metasyntax variable
719         name that preceeds @dots.
720         (Number processing Macros): Drop `1' suffix from metasyntax
721         variable name that preceeds @dots.  Improve wording.
722         * lib/m4sugar/m4sugar.m4 (m4_cmp): Comment wording fix.
723         Suggested by Ralf Wildenhues.
725 2008-03-02  Jim Meyering  <meyering@redhat.com>
727         Don't infloop upon "make dist".
728         * GNUmakefile: Merge from coreutils.
729         * Makefile.am (dist-hook): Inject .tarball-version into tarball,
730         not .version.
731         * configure.ac (AC_INIT): Use .tarball-version, not .version.
732         * build-aux/git-version-gen: Update from gnulib.
734 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
736         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
737         Before using /dev/full, check that it is a writable character
738         special device.
739         Report by Benoit Sigoure and Eric Blake.
741         Actually test that @configure_input@ is expanded correctly.
742         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
743         Actually check generated file contents for the name of the
744         generated file, using AC_PROG_FGREP and $FGREP.
746 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
748         Be nice with file systems that don't handle unusual characters.
749         * tests/atlocal.in (func_sanitize_file_name)
750         (func_sanitize_dir_name): New shell functions.
751         * tests/tools.at (autom4te and whitespace in file names)
752         (autotools and whitespace in file names): Use them.
753         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
754         Cover more potentially problemtic file names.  Use the new
755         functions.
757         Properly handle funny file names for headers in config.status.
758         The test suite did not cover this bug because the code was not
759         quoting properly the arguments of `rm -f' (which "fails" silently)
760         as well as the arguments of `diff' (whose output was redirected to
761         /dev/null so we couldn't see its error message).
762         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Properly quote the
763         file names passed to `rm' and `diff'.
764         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
765         Add a regression test.
767 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
768         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
770         Properly expand @configure_input@ in config.status.
771         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_MAIN_LOOP):
772         Escape the backslashes and ampersands in $configure_input before
773         using it in the sed replacement string to expand @configure_input@.
774         Report by Eric Blake and Patrick Welche.
776 2008-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
778         Ignore errors from ./run on w32.
779         * tests/autotest.at (whitespace in absolute testdir):
780         Ignore stderr for `./run' which fails to remove the
781         busy test directory on w32.
783 2008-02-22  Eric Blake  <ebb9@byu.net>
785         Improve documentation for writing autotest suites.
786         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention that
787         checks must live inside a test group.
788         Reported by Christopher Hulbert.
790 2008-02-21  Eric Blake  <ebb9@byu.net>
792         Sync git-version-gen from upstream.
793         * build-aux/git-version-gen: Pull from gnulib.
794         * configure.ac (AC_INIT): Adjust to new calling convention.
796 2008-02-12  Eric Blake  <ebb9@byu.net>
798         Avoid trailing space in config.h with AC_DEFINE([var], []).
799         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Explicitly mark empty
800         defines with a comment.
802 2008-02-08  Eric Blake  <ebb9@byu.net>
804         Fix texinfo typos in previous patch.
805         * doc/autoconf.texi (Site Defaults): s/[{}]/@&/g.
806         Reported by Ralf Wildenhues.
808         Describe a config.site that can be used for FHS compliance.
809         * doc/autoconf.texi (Site Defaults): Fix typo.  Add new example
810         for FHS.
811         * THANKS: Update.
812         Reported by Jules Colding and Ralf Wildenhues.
814 2008-02-02  Eric Blake  <ebb9@byu.net>
816         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Fix typo.
818 2008-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
820         * lib/autotest/general.m4 (AT_INIT): Fix --clean to work
821         again, broken since introduction of `-C dir'.
822         * tests/autotest.at (Choosing where testsuite is run): Test it.
824 2008-01-30  Paul Eggert  <eggert@cs.ucla.edu>
826         * doc/autoconf.texi: Update Back-Cover text to reflect new GNU wording.
828 2008-01-29  Eric Blake  <ebb9@byu.net>
830         Fix more autotest regressions.
831         * lib/autotest/general.m4 (AT_LINE): Fix regression from
832         2007-10-04 when file name is `dnl'.
833         (AT_INIT) <PREPARE_TESTS>: Move command-line assignments...
834         <TESTS_BEGIN>: ...to this new diversion, to fix regression from
835         yesterday in libtool's testsuite.
836         (_AT_ARG_OPTION): Detect write failure.
837         * doc/autoconf.texi (Diversion support): Document PREPARE_TESTS to
838         make libtool's use kosher.  Document m4_init.
839         (Programming in M4sh): Document AS_INIT.
840         (Writing Testsuites): Document limitation of AT_DATA file name.
841         * tests/autotest.at (unusual file names): New test.
842         (Banners, Keywords and ranges): Use correct shell.
844         More corner cases in testsuite VAR=VALUE handling.
845         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS): Fix quoting
846         bug.
847         <PARSE_ARGS_END>: Also detect leading digits in assignments.
848         * tests/autotest.at (Using atlocal): Enhance test to catch last
849         bug.
851         * doc/autoconf.texi (Limitations of Builtins) <.>: Mention bash
852         bug.
854 2008-01-28  Eric Blake  <ebb9@byu.net>
856         Fix regression in handling VAR=VALUE arguments to testsuite.
857         * lib/autotest/general.m4 (AT_INIT) <PARSE_ARGS_END>: Detect
858         leading = as invalid.  Defer use of command-line variable
859         assignments...
860         <PREPARE_TESTS>: ...here, after atconfig has been sourced.  Fix
861         regression in sourcing files.
862         * tests/autotest.at (Using atlocal): New test to catch this.
863         (Debugging a successful test, Choosing where testsuite is run):
864         Use correct shell.
865         Reported by Ralf Wildenhues.
867         Document grep peculiarity.
868         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
869         BSD behavior on binary input.
871         Minor testsuite improvements.
872         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Use fewer
873         forks when sanitizing PATH.  Always output machine information,
874         not just when atconfig was located.
876         Add 'testsuite -C dir'.
877         * lib/autotest/general.m4 (_AT_ARG_OPTION): Move missing argument
878         detection...
879         (AT_INIT) <PARSE_ARGS_END>: ...here, since -k always takes
880         argument.
881         <DEFAULTS>: Delay computation of variables based on $at_dir...
882         <PREPARE_TESTS>: ...to here, since -C can change $at_dir.
883         <TESTS>: Re-invoke via absolute name, since -C may be in effect.
884         <PARSE_ARGS>: Parse new option.
885         <HELP_TUNING>: Document it.
886         * tests/autotest.at (Choosing where testsuite is run): New test
887         for this feature.
888         (Keywords and ranges): Add test for missing -k argument.
889         * NEWS: Document this.
890         * doc/autoconf.texi (testsuite Invocation): Likewise.
892 2008-01-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
894         * build-aux/config.guess, build-aux/config.sub,
895         build-aux/texinfo.tex: Sync from gnulib.
896         * doc/fdl.texi, doc/make-stds.texi, doc/standards.texi:
897         Likewise.
899 2008-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
901         * doc/autoconf.texi (Particular Programs): Do not mention the
902         Autoconf version in which the AC_PROG_INSTALL change was done.
903         Suggested by Paul Eggert.
905 2008-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
907         Fix --help=recursive with multiple AC_CONFIG_SUBDIRS.
908         * lib/autoconf/general.m4 (_AC_INIT_HELP): If, for recursive help
909         mode, we change to the source directory, also set $ac_pwd so we
910         do not go back to the build tree for the next config subdir.
911         * tests/torture.at (Deep Package): Extend test to contain two
912         config subdirs on the top level.
914         Fix parallel `maintainer-check'.
915         * Makefile.am (maintainer-check-tests): Depend on `all'.
916         Use `$(MAKE) $(AM_MAKEFLAGS)' instead of plain `make'.
917         * tests/Makefile.am (maintainer-check-c++, maintainer-check-posix):
918         Likewise.
919         (maintainer-check): Serialize the testsuite runs.
921         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE2): Accept `+'
922         in feature string for --enable/--with.  Convert to underscore
923         for variable name.
925         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Require that
926         `install -c file1 file2 dir' works.
927         * doc/autoconf.texi (Particular Programs): Document this.
928         * NEWS: Update.
930 2008-01-21  Eric Blake  <ebb9@byu.net>
932         Improve documentation about default include directives.
933         * doc/autoconf.texi (Generic Headers, Generic Declarations)
934         (Generic Structures, Generic Types)
935         (Generic Compiler Characteristics): Add links to
936         AC_INCLUDES_DEFAULT.
937         Reported by Reuben Thomas.
939 2008-01-15  Eric Blake  <ebb9@byu.net>
941         * lib/m4sugar/m4sugar.m4 (m4_qlen): Use fewer macros.
943 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
945         * tests/Makefile.am (noinst_SCRIPTS): Renamed from
946         check_SCRIPTS.  Building the wrappers for `all' allows help2man
947         to use them for the manpages.
948         Report by Benoit Sigoure.
950         * bin/autoreconf.in: Discard stderr for $autoconf/$aclocal --help.
952 2007-12-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
954         Fix some write failure cases in Autotest.
955         * lib/autotest/general.m4 (AT_INIT): Do not exit successfully
956         upon write failures for --help, --version, --list.
957         Guard against write failures for intermediate created scripts.
958         <at_func_create_debugging_script>: Do not make the debugging
959         script executable if it is not complete.
961 2007-12-12  Eric Blake  <ebb9@byu.net>
963         Fix thinko in earlier patch - m4_join isn't defined yet.
964         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
965         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
966         (m4_require): Use m4_do, not m4_join.
968         Fix some whitespace tests on cygwin.
969         * tests/tools.at (autom4te and whitespace in file names): Restore
970         font-lock.  Create $TMPDIR before it might be used.
972         Fix spurious testsuite failure with M4 1.4.11.
973         * tests/local.at (AT_CHECK_M4): Cater to new m4 error message.
975         Optimize AC_REQUIRE.
976         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
977         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
978         (m4_require): Avoid extra macro calls.
980 2007-12-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
982         * tests/torture.at (srcdir): Fix quoting.
984         Do not pass top_srcdir to configure scripts in testsuite.
985         * tests/autotest.at (srcdir propagation): Copy install-sh to
986         source tree.
987         (my only test): Drop setting of `top_srcdir'.
988         * tests/base.at (Input/Output): Likewise.
989         * tests/local.at (AT_CONFIGURE_AC): Copy install-sh,
990         config.guess, and config.sub to test source tree.
991         Drop AC_CONFIG_AUX_DIR setting.
992         (AT_CHECK_CONFIGURE): Drop setting of `top_srcdir'.
993         * tests/torture.at (Substitute a 2000-byte string): Drop
994         AC_CONFIG_AUX_DIR setting, copy install-sh to test source tree.
995         (Substitute a newline, datarootdir workaround): Likewise.
996         (Define a newline): Adjust for linenumber changes in configure.ac.
997         * tests/foreign.at (Libtool): Adjust comment to reflect changes.
999         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): Skip test
1000         if `pwd` contains whitespace.
1002         Quote $abs_top_srcdir in tests.
1003         * tests/local.at (AT_CHECK_PERL_SYNTAX): Likewise.
1004         * tests/tools.at (Syntax of the shell scripts): Likewise.
1006         * tests/m4sh.at (LINENO): Quote $0.
1008         Fix testsuite program wrapper for whitespace in `pwd`.
1009         The problem here is that the usual mantra is that command
1010         variables can contain arguments, thus we cannot just escape
1011         $AUTOCONF, $AUTOM4TE etc.  The compromise is to put the
1012         $top_builddir/tests directory early in $PATH, so that the
1013         wrappers are found by their plain name.
1014         * tests/wrapper.as: Put $testdir early in $PATH.
1015         (AUTOCONF, AUTOHEADER, AUTOM4TE): Set to plain command names.
1017         Proper config.status --file/--header and $srcdir escaping.
1018         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Quote special
1019         characters in $ac_file_inputs.
1020         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER): eval $ac_file_inputs
1021         accordingly.
1022         * tests/torture.at (datarootdir workaround): Adjust.
1023         (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): Extend test.
1025         Fix Autotest for whitespace in `pwd`.
1026         * lib/autotest/general.m4 (AT_INIT)
1027         <at_func_create_debugging_script, Driver Loop>:
1028         Quote $at_group_dir.
1029         * tests/autotest.at (whitespace in absolute testdir): New test.
1031         * lib/autom4te.in: Quote @datadir@.
1033         Proper file name escaping in Autoconf programs and Perl modules.
1034         This includes escaping of characters special to the shell
1035         as well as special to Perl, e.g., leading `<' or `>'.
1036         For example, when $file starts with `>', `open ">$file"'
1037         wrongly tries to append to a different file.
1038         * bin/autoconf.as: Fix quoting for autom4te options.
1039         * lib/Autom4te/General.pm (shell_quote): New function, taken
1040         from coreutils, written by Jim Meyering.
1041         (mktmpdir): Use it.
1042         * bin/autom4te.in (files_to_options, handle_m4): Use shell_quote
1043         and open_quote.
1044         * bin/autoreconf.in (parse_args): Likewise.
1045         * bin/autoscan.in (main): Likewise.
1046         * bin/autoupdate.in (main): Likewise.
1047         * bin/autoheader.in: Likewise, fixing old insufficient escaping.
1048         * bin/ifnames.in: Likewise, XFile usage fixes.
1049         * tests/tools.at (autom4te and whitespace in file names): Extend
1050         test.  Test twice, with special characters allowed on w32, and the
1051         rest.  Test leading and trailing whitespace, for `open_quote'.
1052         (autotools and whitespace in file names): New, analogous test.
1053         Reported by Paul Eggert and Benoit Sigoure, additional suggestions
1054         by Russ Allbery and Eric Blake.
1056         Sync from Automake.
1057         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
1058         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Likewise.
1059         * lib/Autom4te/FileUtils.pm (open_quote): New function.
1060         (update_file, contents): Use it.
1062         * Makefile.am (autom4te-update): Rewrite for git.
1064 2007-12-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1066         * doc/autoconf.texi (autom4te Invocation, Autom4te Cache): Fix typos.
1068         Fix copyright years.
1069         * Makefile.am, doc/install.texi, lib/autoconf/fortran.m4,
1070         lib/autoconf/lang.m4, lib/freeze.mk: Likewise.
1072 2007-12-04  Eric Blake  <ebb9@byu.net>
1074         Manually resync with gnulib, since 'make cvs-update' no longer works.
1075         * build-aux/config.guess: New upstream version.
1076         * build-aux/config.sub: Likewise.
1078         When using older automake, don't downgrade build-aux/texinfo.tex.
1079         * configure.ac (AM_INIT_AUTOMAKE): Add no-texinfo.tex option.
1080         * doc/Makefile.am (TEXINFO_TEX): Add.
1082 2007-11-27  Paul Eggert  <eggert@cs.ucla.edu>
1084         Fix AC_C_BIGENDIAN bug caused by new awk method of substitution.
1085         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Don't comment out the
1086         #undef as this runs afoul of our new way of creating config.h.
1087         Problem reported by Jim Meyering in
1088         <http://lists.gnu.org/archive/html/autoconf-patches/2007-11/msg00164.html>.
1090 2007-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1092         Fix autom4te for unusual characters in input file names.
1093         * bin/autom4te.in (files_to_options): Quote active characters
1094         for the shell.
1095         * tests/tools.at (autom4te and white space in file names):
1096         New test.
1098         * doc/autoconf.texi (Limitations of Usual Tools) <awk>:
1099         Document that Tru64 awk always splits $0.
1101 2007-11-24  Stepan Kasal  <kasal@ucw.cz>
1103         * lib/autotest/general.m4 (AT_INIT): Do not extract the
1104         `#AT_STOP_...' line at the end of each test.
1106 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1108         * lib/autotest/general.m4 (AT_INIT): For awk line number
1109         extraction script, ensure `$at_group' has a defined value
1110         even for the empty set, and properly quote its usage inside
1111         the awk script.
1113 2007-11-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1115         * doc/autoconf.texi (Shell Functions): New chapter.  Document
1116         IRIX sh $0 issue in functions, move content from ...
1117         (Portable Shell): ... here.
1118         (Shell Script Compiler): Note that shell functions are not
1119         totally unportable any more.
1121 2007-11-22  Stepan Kasal  <kasal@ucw.cz>
1122         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1124         * lib/autotest/general.m4 (AT_INIT): Exit awk script after
1125         extracting the line numbers of the last needed test.
1127 2007-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1129         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
1130         Fix quoting.
1132 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1134         Fix IRIX testsuite debugging failures: $0 in functions.
1135         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
1136         Do not use $0 inside a function, as IRIX sh will set that to the
1137         function name rather than the script invocation name.
1139 2007-11-19  Paolo Bonzini  <bonzini@gnu.org>
1140         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1142         * lib/autotest/general.m4 (at_func_test): Use cached line numbers
1143         to extract test scripts.
1144         (AT_INIT): Extract and cache test script line numbers.
1146 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1148         * lib/autotest/general.m4: Revert 2007-11-15 patch and
1149         subsequent fixups; the awk -> here-document conversion trashes
1150         performance too much with AIX sh.
1152 2007-11-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1154         * tests/local.at: Do not test m4, perl with AT_TESTED.
1156         Diagnose and guard against write errors dealing with config.status.
1157         The general idea is this: all write failures from `configure'
1158         writing `config.status' are indicated by $ac_write_error, which
1159         is only checked at the end.  This is safe because config.status
1160         code is not executed before the file is complete.  Other write
1161         failures, be they inside config.status, or in sub shell/awk
1162         scripts spawned from configure or config.status, typically need
1163         earlier checking, as their results are used right afterwards.
1164         * lib/autoconf/status.m4 (AC_OUTPUT): Initialize `ac_write_fail'
1165         before writing config.status, check afterwards.
1166         (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
1167         (_AC_OUTPUT_HEADERS_PREPARE,_AC_OUTPUT_CONFIG_STATUS):
1168         Set `ac_write_error' for write failures to config.status.  Barf
1169         upon write failures to temporary files.
1170         Adjust note about closing and reopening the here-document.
1171         (_AC_OUTPUT_HEADER, _AC_OUTPUT_LINK, _AC_OUTPUT_COMMAND)
1172         (_AC_OUTPUT_MAIN_LOOP): Likewise, adjust note about closing and
1173         reopening the here-document.
1174         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
1175         Ensure `ac_write_error' does not escape into config.status.
1176         Also, add a couple of code paths not yet exercised in the test
1177         suite: a config file with input from stdin, and a config header
1178         output to stdout.
1179         Suggestion for catching write errors by Bruno Haible.
1181 2007-11-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1183         Avoid error with Tru64 awk and testsuite lines with many words.
1184         * lib/autotest/general.m4 (AT_INIT): In the awk script that
1185         reads the testsuite, set the field separator to an unusual value,
1186         in order to not run over the limit of 199 fields.  Tru64 4.0D awk
1187         even splits the input if $i, i>0, was never accessed in the script.
1189         Revert 2007-10-17 change.
1190         * TODO: Multiline args in config files and headers mean something
1191         different and are not fixed, see
1192         <http://lists.gnu.org/archive/html/autoconf-patches/2007-05/msg00017.html>
1193         Report by Stepan Kasal.
1195         * doc/autoconf.texi (Generic Programs): Fix typo.
1197 2007-11-16  Stepan Kasal  <kasal@ucw.cz>
1199         AC_*_TOOL does not canonicalize the prefix
1200         * doc/autoconf.texi (Generic Programs): Do not say that
1201         the *_TOOL macros canonicalize, they simply use the `host_alias'.
1203 2007-11-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1205         Diagnose write errors in config.status instantiations.
1206         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE)
1207         (_AC_OUTPUT_HEADER, _AC_OUTPUT_MAIN_LOOP): Bail out
1208         on write errors.
1209         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
1210         Extend test to also check for some write error failures, using...
1211         <AT_CHECK_CONFIG_CREATION_NOWRITE>: ...this new macro.
1212         Report by Bruno Haible.
1214         Indentation fixups.
1215         * lib/autotest/general.m4 (AT_INIT) <at_func_log_failure>: Fix
1216         indentation.
1217         (_AT_CHECK): Use less indentation, to save space.
1219 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1221         Add witness macro for @top_build_prefix@ substitution.
1222         * lib/autoconf/status.m4 (_AC_HAVE_TOP_BUILD_PREFIX): New macro.
1223         (_AC_OUTPUT_FILE): Mention it here.
1225 2007-11-15  Paolo Bonzini  <bonzini@gnu.org>
1226         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1228         * lib/autotest/general.m4 (at_func_test): Remove.
1229         (AT_INIT): Pre-extract test groups into separate files.
1230         (AT_CLEANUP): Source pre-extracted file instead of calling at_func_test.
1231         Remove at-test-source files together with the $at_group_dir.
1232         * tests/autotest.at (Long test source lines): New test.
1234 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1236         Shell functions and variables may share a namespace.
1237         * doc/autoconf.texi (Portable Shell): Mention Solaris sh
1238         limitation.
1240 2007-11-14  Paul Eggert  <eggert@cs.ucla.edu>
1242         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Make comment match
1243         gnulib.
1245 2007-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1247         * lib/autoconf/status.m4: Fix a couple of comment typos.
1249         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Use $as_me, not $me.
1251 2007-11-13  Jim Meyering  <meyering@redhat.com>
1253         Clean up the rule to create "expr".
1254         * tests/Makefile.am (expr): Don't redirect directly to target.
1255         Redirect just once, not for each echo statement.
1256         Use $@, not literal "expr".
1258 2007-11-13  Paul Eggert  <eggert@cs.ucla.edu>
1260         Don't worry about preprocessor when testing long long.
1261         See: http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00075.html
1262         * doc/autoconf.texi (Preprocessor Arithmetic): New section.
1263         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT):
1264         These no longer check for preprocessor flaws.
1265         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET):
1266         Do not check for preprocessor flaws.
1268 2007-11-13  Jim Meyering  <meyering@redhat.com>
1270         Adapt dependencies, now that a version change doesn't modify configure.ac
1271         * GNUmakefile: Remove "make clean" kludge.
1272         * lib/m4sugar/Makefile.am (version.m4): Depend on Makefile, not
1273         configure.ac.
1274         Don't redirect directly to target.
1275         Use $@, not literal "version.m4".
1277 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1279         * doc/autoconf.texi (Making testsuite Scripts): Document
1280         ":;{" shorthand as in previous patch.
1282 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
1284         * doc/autoconf.texi (Limitations of Builtins): Document problem
1285         with { ... } a bit more clearly.  Suggest ":;{" as a shorthand
1286         for the workaround.
1287         * lib/m4sugar/Makefile.am (version.m4): Detect 'echo' failure.
1288         Use ":;{" shorthand.
1289         * tests/Makefile.am ($(srcdir)/package.m4): Likewise.
1291 2007-11-12  Jim Meyering  <meyering@redhat.com>
1293         Add more non-srcdir build support.
1294         * GNUmakefile (dummy): Split a long line.
1295         Add -v option to autoreconf invocation.
1297         Remove the autoreconf-provided INSTALL, so that we regenerate it.
1298         * GNUmakefile (dummy): Remove INSTALL.
1300         Remove racy commands to build scripts in bin/ and tests/.
1301         * man/Makefile.am (.x.1): Now that scripts in bin/ and tests/
1302         are guaranteed to be built, remove the rules that tried to build
1303         them.  Before, with a parallel build, these rules could lead to
1304         two processes writing tests/wrapper.in concurrently.
1306         Build in man/ only *after* building in bin/ and tests/.
1307         * Makefile.am (SUBDIRS): The man-page-creation process runs $(MAKE)
1308         in both bin/ and tests/.
1310         Accommodate non-srcdir build-from-checkout.
1311         * build-aux/git-version-gen: Require an additional parameter: $srcdir.
1312         Use git's --git-dir=$srcdir/.git option.
1313         Add quotes, in case tarball_version_file contains shell meta-characters.
1314         * GNUmakefile (_curr-ver): Pass $(srcdir) to git-version-gen.
1315         * configure.ac: Pass "." to git-version-gen.
1317         Avoid spurious test failures due to version skew.
1318         * GNUmakefile (dummy): Run $(MAKE) clean after autoreconf -i.
1320 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1322         Avoid warnings about conftest.dSYM directories on Mac OS X Leopard.
1323         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_RUN_IFELSE):
1324         Remove conftest.dSYM directory.
1325         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT)
1326         (_AC_LANG_PROGRAM_C_, _AC_FC_MAIN, __AC_FC_NAME_MANGLING):
1327         Remove `conftest.*' recursively.
1328         * lib/autoconf/lang.m4 (AC_LINK_IFELSE): Likewise.
1329         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
1330         Likewise.
1331         (_AC_COMPILER_OBJEXT_REJECT): Reject *.dSYM.
1332         * THANKS: Update.
1333         Report and analysis by Jeff Squyres and Peter O'Gorman.
1335 2007-11-12  Benoit Sigoure  <tsuna@lrde.epita.fr>
1337         Fix typos in variable names.
1338         * tests/semantics.at (test for AC_CHECK_LIB): s/at_m/ac_m/.
1340 2007-11-11  Benoit Sigoure  <tsuna@lrde.epita.fr>
1342         Document that $((expression)) is not portable.
1343         * doc/autoconf.texi (Shell Substitutions): Here.
1345 2007-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1347         Ignore configure --help* errors due to LINENO-impaired shells.
1348         * tests/torture.at (Configuring subdirectories, Deep Package):
1349         In the --help* tests in read-only trees, make `.' temporarily
1350         writable again for the `stderr' file, and ignore errors due to
1351         the attempt to write configure.lineno.
1352         Report by Patrick Welche.
1354 2007-11-10  Jim Meyering  <meyering@redhat.com>
1356         Generate package.m4 in build-dir, not srcdir.
1357         * tests/Makefile.am (package.m4): Adjust target.
1358         Don't redirect directly to $@.
1359         (CLEANFILES): Add package.m4.
1360         ($(TESTSUITE)): Depend on just-built package.m4, not the one
1361         in $(srcdir).
1362         When running $(AUTOTEST), search "." before searching $(srcdir).
1364         Avoid a race condition that would make parallel "distclean" fail.
1365         * tests/Makefile.am (distclean-generic): Replace the default,
1366         automake-provided rule with an identical one, but with an additional
1367         dependency on distclean-local.  Simply adding the dependency would
1368         cause automake not to emit the rule at all.
1369         * BUGS: Building with -jN works, now.
1371         Distribute git-version-gen.
1372         * Makefile.am (EXTRA_DIST): Add build-aux/git-version-gen,
1373         since GNUmakefile is distributed, and requires it for dist* rules.
1375         Remove two more generated files from version control.
1376         * INSTALL: Remove generated file.
1377         * lib/autoscan/autoscan.list: Remove generated file.
1379 2007-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1381         * GNUmakefile (PATH): Remove stray apostrophes; they become
1382         part of PATH, which isn't wanted here.
1384 2007-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1386         New config files output variable `top_build_prefix'.
1387         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Substitute
1388         `top_build_prefix'.
1389         * doc/autoconf.texi (Preset Output Variables): Document it.
1390         * NEWS: Update.
1391         Report by Bob Friesenhahn.
1393         Avoid expr for arithmetic evaluation if the shell accepts $((...)).
1394         * lib/autotest/general.m4 (AT_INIT) <at_func_arith>: New
1395         function, to parametrize arithmetic with expr vs. the shell.
1396         Use it where possible.
1397         Suggestion by Benoit Sigoure.
1399 2007-11-03  Benoit Sigoure  <tsuna@lrde.epita.fr>
1401         Adjust the documentation of autotest WRT atlocal.
1402         * doc/autoconf.texi (Making testsuite Scripts): It is not necessary,
1403         when using Automake, to write a rule to produce atlocal, since it's
1404         an AC_CONFIG_FILES.  Mention that atlocal.in needs to be
1405         distributed, not atconfig.in.
1407 2007-11-04  Eric Blake  <ebb9@byu.net>
1409         Update list information.
1410         * README: Mention new autoconf-commit list.
1411         * doc/autoconf.texi (Introduction): Mention autoconf-commit list.
1413 2007-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1415         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Fix comment typo.
1417         * lib/m4sugar/Makefile.am (version.m4): Another bash bug workaround.
1419         * build-aux/.gitignore: Ignore mkinstalldirs.
1421         * doc/autoconf.texi (autoreconf Invocation): Fix an underfull line.
1423 2007-11-03  Jim Meyering  <meyering@redhat.com>
1425         s/-/./ in snapshot version string: 2.61a-256-8b556 -> 2.61a.256-8b556
1426         * build-aux/git-version-gen: This syncs from coreutils.
1428         Adjust the build procedure so "make check" works reliably.
1429         * README-hacking: Include an extra step between "make" and
1430         "make check" to ensure that the latter passes.
1432         Use just-built tools, when possible.
1433         * GNUmakefile (PATH): Set and export here, ...
1434         (dummy): ... rather than here.
1436 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1437         and Andreas Schwab  <schwab@suse.de>
1439         * tests/Makefile.am ($(srcdir)/package.m4): Work around bash
1440         exit status bug.
1442 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1444         * configure.ac (AC_PREREQ): Require version 2.60, for
1445         AC_PROG_SED, AC_PROG_GREP.
1447 2007-11-02  Benoit Sigoure  <tsuna@lrde.epita.fr>
1448         and Jim Meyering  <meyering@redhat.com>
1449         and Andreas Schwab <schwab@suse.de>
1450         and Eric Blake  <ebb9@byu.net>
1452         Document a bug in GNU Bash with compound commands and redirections.
1453         * doc/autoconf.texi (Limitations of Builtins): Mention that GNU
1454         Bash doesn't properly set $? when `{ ... } >/bad' fails, and give
1455         workaround.
1457 2007-11-03  Eric Blake  <ebb9@byu.net>
1459         Support m4 1.4.5 in testsuite.
1460         * tests/torture.at (Define a newline): Exclude line numbers in
1461         error message.
1462         Reported by Ralf Wildenhues.
1464 2007-11-03  Jim Meyering  <meyering@redhat.com>
1466         Remove automake-provided files from version control.
1467         * build-aux/elisp-comp: Remove file.
1468         * build-aux/install-sh: Remove file.
1469         * build-aux/missing: Remove file.
1470         * build-aux/mdate-sh: Remove file.
1471         * build-aux/.gitignore: New file.
1472         Suggestion from Ralf Wildenhues.
1474 2007-11-03  Eric Blake  <ebb9@byu.net>
1476         Adjust version comparison to account for git snapshot numbers.
1477         * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Also treat - as a
1478         component separator.
1479         * doc/autoconf.texi (Number processing Macros)
1480         <m4_version_compare>: Document this change.
1481         * tests/m4sugar.at (m4@&t@_version_compare): Test it.
1483 2007-10-30  Bruno Haible  <bruno@clisp.org>
1485         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro,
1486         extracted from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
1487         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT): Use it.
1488         Fixes problem with Sun C 5.[0-8] in 32-bit mode, reported in
1489         <http://lists.gnu.org/archive/html/autoconf-patches/2007-10/msg00210.html>
1490         Suggested by Paul Eggert.
1492 2007-10-28  Jim Meyering  <meyering@redhat.com>
1494         * README-hacking: Autoconf, Automake, and Perl are required to build.
1495         List Gzip and Tar separately.  Suggested by Ralf Wildenhues.
1497 2007-10-28  Jim Meyering  <meyering@redhat.com>
1499         README-hacking: Recommend running autoreconf -vi.
1500         * GNUmakefile (dummy): Use autoreconf -i, with appropriate PATH,
1501         so that we use just-built tools when they're available.
1502         Suggestions from Ralf Wildenhues.
1504 2007-10-28  Jim Meyering  <meyering@redhat.com>
1506         Make inter-release --version output more useful.
1508         Now, each unofficial build has a version "number" like 2.61a-19-58dd,
1509         which indicates that it is built using the 19th change set
1510         (in _some_ repository) following the "v2.61a" tag, and that 58dd
1511         is a prefix of the commit SHA1.
1512         * build-aux/git-version-gen: New file.
1513         * configure.ac: Run it to set the version.
1514         (AM_INIT_AUTOMAKE): Don't check NEWS here.
1515         * Makefile.am (dist-hook): Arrange so that .version appears only
1516         in distribution tarballs, never in a checked-out repository.
1517         * .gitignore: Add .version here, too.  Just in case.
1518         * tests/Makefile.am ($(srcdir)/package.m4): Depend on Makefile,
1519         not configure.ac, now that the version number changes automatically.
1521         Ensure that $(VERSION) is up to date for dist-related targets.
1522         * GNUmakefile: Arrange to rerun autoconf, if the version reported by
1523         git-version-gen doesn't match $(VERSION), but only for dist targets.
1525 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1527         Fix `Deep Package' failure with a configure script early in PATH
1528         * tests/torture.at (Deep Package): Add `.' early in PATH.
1529         Report by Jim Meyering.
1531 2007-10-27  Jim Meyering  <meyering@redhat.com>
1533         Remove all generated files from version control.
1534         * aclocal.m4: Remove.
1535         * configure: Remove.
1536         * Makefile.in: Remove, along with all other Makefile.in in subdirs.
1537         * .gitignore: Add aclocal.m4, configure and Makefile.in.  Sort.
1538         * README-hacking: New file: how to build from just-checked-out sources.
1540 2007-10-23  Eric Blake  <ebb9@byu.net>
1542         Improve corner case of m4_expand.
1543         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Rewrite more
1544         efficiently.
1545         * tests/m4sh.at (AS@&t@_HELP_STRING): Test overquoted comma.
1546         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Update
1547         documentation.
1549 2007-10-23  Paul Eggert  <eggert@cs.ucla.edu>
1551         * doc/make-stds.texi: Update from gnulib.
1553 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
1554         and Eric Blake  <ebb9@byu.net>
1556         * lib/autoconf/c.m4 (AC_C_RESTRICT): Work around Sun C++ compatibility
1557         problem reported by Bruno Haible in
1558         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00027.html>.
1560 2007-10-22  Eric Blake  <ebb9@byu.net>
1562         * doc/autoconf.texi (Particular Types): Mention bug in HP-UX 11.00
1563         preprocessor.
1565 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
1567         Don't check for bug in HP-UX 11.00 cpp.
1568         * lib/autoconf/types.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
1569         Use -1ull rather than -1u, since that causes problems with gnulib; see
1570         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
1572 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1574         * tests/autotest.at (Backquote command substitution)
1575         (Multiline backquote command substitution)
1576         (Parenthetical command substitution)
1577         (Multiline parenthetical command substitution): Fix typos in
1578         test names.
1580 2007-10-21  Eric Blake  <ebb9@byu.net>
1582         * configure: Regenerate.
1584 2007-10-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1586         Fix config status generation with Tru64 ksh.
1587         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix
1588         escaping of backslash in here-documents.
1590         Fix `Deep Package' test failure on FreeBSD.
1591         * tests/torture.at (Deep Package): Do not add `.' to $PATH
1592         unnecessarily.  Do not try running `/bin/sh configure' with a
1593         configure script to be found in $PATH, if the shell does not do
1594         this resolution.  Fixes test failure on FreeBSD.
1596         Fix config header generation with AIX awk.
1597         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): In awk
1598         script, use helper array D_is_set, as `" 0"' does not evaluate
1599         to true for AIX awk.
1601 2007-10-21  Eric Blake  <ebb9@byu.net>
1603         * tests/autotest.at (Banners): Reinstate test, with typo
1604         corrected.
1606 2007-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1608         * lib/autotest/general.m4 (Defaults): Validate input ranges ...
1609         <at_func_validate_ranges>: ... using this new function.
1610         * tests/autotest.at (Keywords and ranges): Test invalid ranges.
1611         Test --list with ranges and keywords.
1612         (Banners): Remove one now-failing test.
1614 2007-10-20  Eric Blake  <ebb9@byu.net>
1616         Fix testsuite --list subset.
1617         * lib/autotest/general.m4 (AT_INIT) <at_list_p>: Swap newlines
1618         back to spaces, before listing subset of tests.
1619         Reported by Ralf Wildenhues.
1621 2007-10-19  Eric Blake  <ebb9@byu.net>
1623         s/parenthesis/parentheses/ where appropriate.
1624         * doc/autoconf.texi: Fix typos.
1625         * lib/m4sugar/m4sugar.m4: Likewise.
1626         Reported by Ralf Wildenhues.
1628         Document m4_expand limitation.
1629         * lib/m4sugar/m4sugar.m4 (m4_expand): Mention problem with
1630         unbalanced parse.
1631         * doc/autoconf.texi (Pretty Help Strings, Evaluation Macros)
1632         (Writing Testsuites): Mention limitations inherited from
1633         m4_expand.
1635         Improve AT_BANNER handling.
1636         * lib/autotest/general.m4 (BANNERS): New named diversion.
1637         (TESTS_END): Diversion no longer used.
1638         (AT_INIT) <at_func_banner, BANNERS>: Factor all banners into a
1639         shell function, which prints only as needed, using an associative
1640         array of banner text from a special diversion.
1641         <PARSE_ARGS_END>: No longer need awk to find banners.
1642         <TESTS>: Banners are no longer processed by main driver loop, so
1643         we no longer need case statement.
1644         (AT_BANNER): Rewrite to populate new diversion.
1645         (AT_SETUP): Each test invokes its own banner.  No output is needed
1646         to the TESTS diversion.
1647         * doc/autoconf.texi (Writing Testsuites): Document slight
1648         semantics change.
1649         * tests/autotest.at (AT_BANNERS): Enhance test.
1650         * NEWS: Document AT_BANNER.
1652         Document and test AT_BANNER.
1653         * doc/autoconf.texi (Writing Testsuites): Document AT_BANNER.
1654         * tests/autotest.at (AT_CHECK_EGREP): Share between tests.
1655         (AT_CHECK_BANNERS): New test.
1657         Doc touchups.
1658         * doc/autoconf.texi (Text processing Macros) <m4_strip>
1659         <m4_text_wrap>: Clarify and fix typos.
1661 2007-10-18  Eric Blake  <ebb9@byu.net>
1663         Ignore `make dist' changelogs in testsuite.log.
1664         * lib/autotest/general.m4 (AT_INIT) <ChangeLogs>: Prune
1665         directories matching AT_PACKAGE_TARNAME-*.
1667         Fix AT_TESTED, AT_KEYWORDS.
1668         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Warn if separator
1669         occurs in string, as duplicates may be added.
1670         (_m4_append_uniq): New helper macro.
1671         (m4_append_uniq_w): New macro.
1672         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Fix
1673         duplication bug by using new macro.
1674         (AT_INIT) <at_tested>: Restore newline separators.  Invoke tested
1675         programs with stdin redirected, so programs that don't
1676         understand --version won't try to behave interactively.
1677         * tests/autotest.at (Tested programs): Catch this bug.
1678         * tests/m4sugar.at (m4@&t@_append): Test new macro.
1679         * tests/local.at (AT_TESTED): Add m4, perl.
1680         * doc/autoconf.texi (Text processing Macros): Document
1681         m4_append_uniq_w, and update text on m4_append.
1682         * NEWS: Document the addition.
1684 2007-10-17  Eric Blake  <ebb9@byu.net>
1686         Function cleanup.
1687         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Convert
1688         from m4 macro...
1689         (AT_INIT) <at_func_create_debugging_script>: ...to shell
1690         function.
1691         (AT_INIT): Defer function declarations until after --help,
1692         --version.  Format functions consistently, trying to fit in 80
1693         columns.
1694         (TEST_FUNCTIONS): Based on recent changes, rename...
1695         (TEST_GROUPS): ...to this.
1697         Reject FreeBSD m4.
1698         * m4/m4.m4 (AC_PROG_GNU_M4): Also check for frozen file support.
1699         * configure: Regenerate.
1700         Reported by Bob Friesenhahn.
1702         Test recent additions.
1703         * tests/m4sugar.at (m4@&t@_map, m4@&t@_combine)
1704         (m4@&t_max and m4@&t_min): New tests.
1705         * doc/autoconf.texi (Evaluation Macros) <m4_apply>: Enhance
1706         description.
1708 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1710         * TODO: multiline args in config files and headers work now.
1712         Autotest: do not use shell functions for individual tests.
1713         * lib/autotest/general.m4 (AT_INIT) <at_func_test>: Merely
1714         extract the source test source, do not invoke it.
1715         (AT_SETUP, AT_CLEANUP): Source test code outside shell function.
1716         * tests/autotest.at (Fallacy): Actually let the inner suite fail,
1717         expect exit status of 1.
1718         * tests/autotest.at (Skip): New test, for bogus zsh exit status.
1720         * lib/autotest/general.m4 (at_func_test): Fix test extraction
1721         script.
1723 2007-10-17  Eric Blake  <ebb9@byu.net>
1725         Fix m4_combine for empty suffix list.
1726         * lib/m4sugar/m4sugar.m4 (m4_combine): Check for suffix list.
1727         * doc/autoconf.texi (Text processing Macros): Document this.
1729         Add m4_combine, based on Libtool's lt_combine.
1730         * lib/m4sugar/m4sugar.m4 (m4_combine): New macro.
1731         * doc/autoconf.texi (Text processing Macros): Document it.
1732         * NEWS: Likewise.
1734 2007-10-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1736         Fix `configure --help=recursive' in unconfigured/read-only trees.
1737         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Avoid errors when `.'
1738         is not writable, use 'cp -p' in this case, in the hope that it
1739         will not actually be needed.  Still try removing files, in case
1740         of other write errors.
1741         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): For ac_confdir,
1742         use $as_myself, not $0.
1743         (_AC_INIT_HELP): For --help=recursive, if the subdir does not
1744         exist, try again in the the source tree.  This change assumes
1745         that the subpackage configure script is capable of running
1746         --help=recursive in the source tree.
1747         * tests/torture.at (Configuring subdirectories, Deep Package):
1748         Adjust tests to expose both issues, also try invocation as
1749         `sh configure ...' and plain `configure ...' with PATH adjusted.
1750         * NEWS, THANKS: Update.
1751         Report by Hans Ulrich Niedermann.
1753 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1755         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
1756         Problem reported by H.Merijn Brand in
1757         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
1758         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
1759         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
1760         Check that preprocessor handles 64-bit ints, too.
1762 2007-10-16  Eric Blake  <ebb9@byu.net>
1764         m4_map is a looping construct.
1765         * lib/m4sugar/m4sugar.m4 (m4_map, _m4_map, m4_map_sep): Move.
1767         Fix m4_map, and add some more utility macros.
1768         * lib/m4sugar/m4sugar.m4 (m4_apply, m4_count, m4_dquote_elt)
1769         (m4_echo, m4_make_list): New documented macros.
1770         (_m4_quote, _m4_shift2): New helper macros.
1771         (m4_map): Change semantics to allow calling macro without
1772         arguments.
1773         (m4_map_sep): Likewise.  Also change semantics to quote separator,
1774         to match m4_join and m4_append.
1775         (m4_version_unletter): Fix use of m4_map.
1776         * doc/autoconf.texi (Evaluation Macros): Document m4_apply,
1777         m4_count, m4_dquote_elt, m4_echo, m4_make_list.
1778         (Text processing Macros): Mention m4_dquote as a faster
1779         alternative to joining with commas.
1780         (Looping constructs): Document m4_map, m4_map_sep.
1781         * NEWS: Mention new macros.
1783         A few more m4sugar improvements, to benefit libtool.
1784         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts, _m4_shiftn): Reduce size
1785         of expansion by avoiding extra uses of $@.
1786         (m4_shiftn): Avoid extra dnl, and forbid shifting by 0.
1787         (_m4_cdr): New helper macro.
1788         (_m4_map, m4_map_sep): Use it to reduce size of expansion.
1789         (_m4_shift3): New helper macro.
1790         (_m4_foreach): Swap argument order, and use new macro to reduce
1791         size of expansion.
1792         * doc/autoconf.texi (Looping constructs) <m4_shiftn>: Mention that
1793         count must be positive.
1795         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Fix typo.
1796         Reported by Ralf Wildenhues.
1798 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1800         * doc/autoconf.texi (Portable Shell): Improve description of zsh
1801         4.x function subshell bug with exit and trap.
1803 2007-10-15  Eric Blake  <ebb9@byu.net>
1805         Enhance AS_HELP_STRING.
1806         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't expand arguments,
1807         and reduce number of expansions.
1808         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Rework to use m4_expand,
1809         and to take indent and wrap column numbers.
1810         * tests/m4sh.at (AS@&t@_HELP_STRING): Update the test.
1811         * doc/autoconf.texi (Pretty Help Strings): Document details about
1812         arguments.
1813         (Text processing Macros): Minor tweaks.
1814         * NEWS: Document this change.
1816         Fix 2007-10-03 regression with AT_SETUP([a, b]).
1817         * lib/m4sugar/m4sugar.m4 (m4_expand): New macro.
1818         (m4_text_box): Use it.
1819         * lib/autotest/general.m4 (AT_SETUP): Use it.
1820         * lib/m4sugar/m4sh.m4 (_AS_RUN): Use it.
1821         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Test this.
1822         * NEWS: Revert caveat about semantics change on comma.
1823         * doc/autoconf.texi (Evaluation Macros): Document m4_expand.
1825 2007-10-13  Eric Blake  <ebb9@byu.net>
1827         Change m4_join to match libtool's ltsugar semantics.
1828         * lib/m4sugar/m4sugar.m4 (m4_join): Just define this, not defun.
1829         Ignore empty arguments, using...
1830         (_m4_join): ...this new helper.
1831         * tests/m4sugar.at (m4@&t@_join): New test.
1832         * doc/autoconf.texi (Text processing Macros): Document new
1833         semantics of m4_join.
1835         Make AC_PREREQ faster and more robust.
1836         * lib/m4sugar/m4sugar.m4 (m4_ignore, m4_unquote): New macros.
1837         (m4_version_prereq): Inline constant expansions.
1838         (m4_list_cmp): Reduce number of expansions, by avoiding m4_case.
1839         Rewrite in terms of [] list, not () list.
1840         (_m4_list_cmp, _m4_version_unletter): New helper macros.
1841         (m4_version_unletter): Write wrapper around new implementation to
1842         preserve old semantics.
1843         (m4_version_compare): Pass correct type of list, and avoid
1844         overhead of flattening expressions too early.
1845         (m4_do): Move to be near other quoting macros.
1846         (m4_max, m4_min): Always result in decimal output.
1847         * doc/autoconf.texi (Looping constructs): Add m4_car, m4_cdr.
1848         Move m4_do...
1849         (Evaluation Macros): ...here.  Add m4_ignore, m4_unquote.
1850         (Text processing Macros): Move m4_version_compare...
1851         (Number processing Macros): ...to this new node; document m4_cmp,
1852         m4_list_cmp, m4_sign, m4_max, m4_min.
1853         * tests/m4sugar.at (m4@&t@_version_compare): Enhance test, to pick
1854         up on bugs fixed by this patch.
1855         * NEWS: Document new macros.
1857 2007-10-12  Eric Blake  <ebb9@byu.net>
1859         * doc/autoconf.texi (Text processing Macros): Fix bad merge.
1860         (Reporting Messages): Fix underfull hbox.
1862         Some more m4sugar documentation.
1863         * lib/m4sugar/m4sugar.m4: Clean up macro order.
1864         * doc/autoconf.texi (Programming in M4): Lighten the warning on
1865         using m4sugar; it is stabilizing and useful.
1866         (Redefined M4 Macros): Touch up wording on M4 builtins; sort.  Add
1867         m4_divert, m4_undivert, __file__, __line__, __oline__.
1868         (Diagnostics): New node, documenting m4_assert, m4_errprintn,
1869         m4_fatal, m4_location, m4_warn.
1870         (Diversion support): New node, documenting m4_divert_push,
1871         m4_divert_pop, m4_divert_text, m4_divert_once.
1872         (Text processing Macros): Sort.  Add m4_flatten, m4_join,
1873         m4_newline, m4_strip, m4_text_box, m4_text_wrap.
1874         (Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
1875         as obsolescent.
1876         (Printing Messages): Change cross-reference.
1878         Document interaction of recent m4_append change with Libtool HEAD.
1879         * lib/m4sugar/m4sugar.m4 (m4_append): Document semantics change.
1880         (m4_append_uniq): Add new parameters, based on lt_append_uniq.
1881         * tests/m4sugar.at (m4@&t@_append): New test.
1882         * NEWS: Document semantics change.
1883         * doc/autoconf.texi (Text processing Macros): Likewise.
1885         s/AC_VERSION/AC_AUTOCONF_VERSION/.
1886         * doc/autoconf.texi (Versioning): Change the name.
1887         * NEWS: Likewise.
1888         * lib/autoconf/general.m4 (AC_AUTOCONF_VERSION): Likewise.
1889         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Likewise.
1890         Suggested by Ralf Wildenhues.
1892         Namespace cleanup.
1893         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE)
1894         (_AC_OUTPUT_HEADERS_PREPARE): Convert here-doc delimiters into
1895         autoconf namespace.
1896         * doc/autoconf.texi (Programming in M4sugar, Forbidden Patterns)
1897         (Programming in M4sh, Macro Names): Beef up description of
1898         namespaces reserved for autoconf.
1899         * configure: Regenerate.
1901 2007-10-12  Eric Blake  <ebb9@byu.net>
1902         and Paolo Bonzini  <bonzini@gnu.org>
1904         Speed up execution of subset of testsuite.
1905         * lib/autotest/general.m4 (TEST_FUNCTIONS): New diversion.
1906         (AT_INIT) <at_func_test>: New shell function.
1907         (AT_INIT) <at_myself>: New variable, set to absolute $as_myself.
1908         (AT_INIT) <at_test_source> New variable, names file that holds
1909         current test function definition.
1910         (AT_SETUP): Start the shell function at_func_test_#, into the
1911         TEST_FUNCTIONS diversion.
1912         (AT_CLEANUP): End the shell function.  Simplify the TESTS
1913         diversion to invoke the function.
1915 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1917         * .gitignore: Ignore tags and TAGS files.
1919 2007-10-11  Eric Blake  <ebb9@byu.net>
1921         Config header generation followup.
1922         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Check for raw newlines,
1923         which won't work with the preprocessor nor with the awk
1924         implementation.
1925         * tests/torture.at (Define a newline): Test raw newline detection,
1926         removing the XFAIL.
1927         * doc/autoconf.texi (Defining Symbols): Document recent change to
1928         allow backslash-newline.
1929         * THANKS: Update.
1931 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1933         * lib/autotest/general.m4: Put function braces in separate line.
1935 2007-10-10  Eric Blake  <ebb9@byu.net>
1937         Avoid some overhead from m4_defn and m4_popdef.
1938         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Only
1939         pass on first argument, since we are documented that way.
1940         (m4_for, m4_append_uniq, m4_text_wrap): Optimize out defined-ness
1941         check where it is safe to do so.
1942         (m4_append): Likewise, and quote the separator.
1943         (m4_text_box): Likewise, and avoid regex, also be robust to
1944         expansion and quadrigraphs.
1946         Another AC_DEFINE speedup.
1947         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Move parameter
1948         elision...
1949         (_AC_DEFINE_Q): ...here, and only do it once.
1950         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid overquoting.
1951         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix m4_defn overquoting
1952         introduced 2007-10-05.
1954         Whitespace cleanup.
1955         * lib/autoconf/general.m4: Use consistent indentation.
1956         * configure: Regenerate.
1958         * NEWS: Announce recent round of speed optimizations.
1960 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1962         * NEWS: Announce shell function usage in Autotest.
1964 2007-10-10  Eric Blake  <ebb9@byu.net>
1965         and Paul Eggert  <eggert@cs.ucla.edu>
1967         Reduce number of forks at startup.
1968         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Speed up NLS
1969         sanitization.
1970         * configure: Regenerate.
1972 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1973         and Paul Eggert  <eggert@cs.ucla.edu>
1975         Use awk for config header generation.
1976         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix comments.
1977         (_AC_OUTPUT_HEADERS_PREPARE): New macro.  Rewrite of the config
1978         header machinery for use with awk and placement outside the main
1979         config.status instantiation loop.  Retain multi-line defines
1980         through backslash-newline combinations, do not split the script
1981         any more.
1982         (_AC_OUTPUT_HEADER): Simplify accordingly, use $AWK.
1983         (_AC_OUTPUT_MAIN_LOOP): Call _AC_OUTPUT_HEADERS_PREPARE if
1984         needed.
1985         (AC_OUTPUT_MAKE_DEFS): Remove backslash-newline combinations
1986         from define values.
1987         * NEWS: Update.
1988         * tests/torture.at (#define header templates): Extend test by
1989         several more cases: white space before and after `#', macros
1990         with parameters in config.hin and as defines, multi-line macro
1991         values.
1992         (Torturing config.status): Use a define value twice the length
1993         in order to exercise the awk literal string limit.
1994         (Substitute and define special characters): Also try special
1995         delimiter, to exercise the special-case code.
1996         Suggestion by Eric Lemings.
1998 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2000         * tests/local.at (AT_COPYRIGHT): Bump copyright years.
2002 2007-10-09  Eric Blake  <ebb9@byu.net>
2004         Improve header of bin/autoconf.
2005         * lib/m4sugar/m4sh.m4 (AS_INIT): Add a 'generated from' notice.
2006         * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Override new notice
2007         from M4sh.
2008         * bin/autoconf.as: Put copyright up front in generated file.
2010         * bin/autoconf.as (exit_missing_arg): Font-lock tweak.
2012 2007-10-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2014         * doc/install.texi (Basic Installation): Document `uninstall'.
2015         * INSTALL: Regenerate.
2016         Suggestion by Roberto Bagnara.
2018 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
2020         * doc/autoconf.texi (Limitations of Usual Tools): V7 awk had 'index'.
2022         Adjust doc. to match latest gnulib.
2023         * build-aux/texinfo.tex: Sync from gnulib.
2024         * doc/standards.texi: Likewise.
2025         * doc/autoconf.texi (Copying This Manual): Rename to "GNU Free
2026         Documentation License" and remove the subsection.  This simplifies
2027         the manual a bit and is more like what other GNU projects do
2028         nowadays.
2030 2007-10-08  Eric Blake  <ebb9@byu.net>
2032         Use recent changes.
2033         * configure: Regenerate.
2035         Fix regression in m4_text_wrap from 2007-10-05.
2036         * lib/m4sugar/m4sugar.m4 (m4_max, m4_min): New macros.
2037         (m4_sign): Sort.
2038         (m4_text_wrap): Fix off-by-one error in rewrite from m4_for to
2039         m4_format.
2040         * lib/autotest/general.m4 (AT_SETUP): Avoid negative width.
2041         * tests/autotest.at (Long test title, Longer test title): Test
2042         this fix, beyond what AS_HELP_STRING already tests.
2044         Avoid m4 warnings on bad m4_format usage.
2045         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Use %*s, in case width
2046         evaulates to 0.
2047         * lib/autotest/general.m4 (AT_SETUP): Likewise; also ensure that
2048         enough arguments are provided.
2050 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
2052         * doc/autoconf.texi (Shell portability): Document shell function
2053         portability.
2055 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
2057         * lib/autotest/general.m4 (AT_INIT): Add at_func_diff_devnull,
2058         at_func_check_skip, at_func_check_status, at_func_filter_trace,
2059         at_func_log_failure shell functions.  Use test -s to avoid
2060         useless diff invocations.
2061         (at_func_check_newline): Renamed from at_check_newline.
2062         (AT_SETUP): Define AT_captured_files to empty.
2063         (AT_DIFF_STDERR(*), AT_DIFF_STDOUT(*)): New, extracted from _AT_CHECK.
2064         (_AT_CHECK): Replace m4_case with m4_ifdef/m4_indir.  Use all
2065         the shell functions.
2067 2007-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2069         Don't assume "." is writeable, for commands like "autoconf --version".
2070         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use a
2071         different heuristic instead, one that doesn't rely on creating
2072         files.
2074         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle "///"
2075         correctly.
2077 2007-10-05  Jim Meyering  <meyering@redhat.com>
2079         Avoid makeinfo warnings.
2080         * doc/autoconf.texi (Redefined M4 Macros): Add a `,' after @xref.
2081         (Looping constructs): Add ` ' after @defmac'd name, m4_do.
2083 2007-10-05  Eric Blake  <ebb9@byu.net>
2085         Resolve Python issue 1676135 regarding configure directory args.
2086         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Strip trailing
2087         slashes from directory arguments.
2088         * tests/base.at (configure directories): New test.
2089         * doc/autoconf.texi (Installation Directory Variables): Document
2090         the change.
2091         * NEWS: Likewise.
2092         * THANKS: Update.
2093         Reported by Björn Lindqvist.
2095         Provide better short-circuiting operation.
2096         * lib/m4sugar/m4sugar.m4 (m4_cond, m4_newline): New macros.
2097         (m4_text_wrap): Use it.  Also avoid useless m4_for.
2098         * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE, AS_LITERAL_IF): Use
2099         new macro.
2100         (_AS_IDENTIFIER_IF): Likewise, and fix bug when $1 is [,].
2101         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Use new macros
2102         to avoid regexps.
2103         * doc/autoconf.texi (Redefined M4 Macros): Expand m4_if
2104         documentation.  Sort m4_mkstemp, m4_undefine.  Move m4_ifndef...
2105         (Conditional constructs): ...here, to new section.  Also document
2106         m4_cond, m4_ifval, m4_n, m4_ifvaln, m4_ifset, m4_case, m4_bmatch,
2107         m4_bpatsubsts, and m4_default.
2108         (Looping constructs): Document m4_shiftn, m4_shift2, m4_shift3,
2109         m4_do.
2111 2007-10-04  Eric Blake  <ebb9@byu.net>
2113         Fix recent testsuite failures.
2114         * lib/autotest/general.m4 (AT_INIT, AT_SETUP): Double-quote text
2115         that must not be re-expanded after AS_ESCAPE.
2116         * lib/m4sugar/m4sh.m4 (_AS_IDENTIFIER_IF): Don't expand $1 when
2117         checking if it is an identifier.
2119         Whitespace cleanup.
2120         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Avoid
2121         leading whitespace, as it caused space-tab in testsuite.
2122         (AT_INIT): Avoid trailing newlines in testsuite.
2124         One more round of m4_foreach_w speedups.
2125         * lib/m4sugar/m4sugar.m4 (m4_flatten): Only use regex if newline
2126         is present.
2127         (_m4_split): Avoid useless expansions inside definition.  Move
2128         argument defaulting...
2129         (m4_split): ...here.  Change alternate quote to something less
2130         likely to appear in $1.  Also, special case space as regexp...
2131         (m4_foreach_w): ...to avoid regexp on single-term list.
2132         (m4_default, m4_defn, m4_popdef, m4_undefine, _m4_foreach): Avoid
2133         useless expansions inside definition.
2134         * tests/m4sugar.at (m4@&t@_split): Add tests.
2136 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
2138         * general.m4 (AT_INIT): Add at_check_newline function.
2139         (_AT_DECIDE_TRACEABLE): Include at_traceon test, use shell function.
2140         (_AT_CHECK): Don't use at_trace_this.
2142 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
2144         Fix previous commit.
2145         * lib/autotest/general.m4 (AT_LINE): Fix regex.
2147 2007-10-04  Eric Blake  <ebb9@byu.net>
2149         Speed up building testsuites.
2150         * lib/autotest/general.m4 (AT_LINE): Only use regex when file
2151         changed since last time.  Use simpler regex.
2153 2007-10-03  Eric Blake  <ebb9@byu.net>
2155         Optimize checking for identifiers.
2156         * lib/m4sugar/m4sh.m4 (AS_IDENTIFIER_IF, _AS_IDENTIFIER_IF): New
2157         macros, more efficient than regex on m4_re_word.
2158         * lib/autoconf/general.m4 (AC_SUBST, AC_DEFINE_TRACE_LITERAL):
2159         Rewrite in terms of new macro.  As a side-effect, AC_DEFINE can
2160         now use @&t@.
2161         * configure: Regenerate.
2163         Remove some XFAILs, and make AT_SETUP output line up.
2164         * lib/autotest/general.m4 (AT_SETUP): Only expand description
2165         once; thereafter, use its expansion, properly quoted.
2166         * tests/autotest.at (AT_CHECK_AT_TITLE): Also check macro
2167         expansion with arguments, and check for aligned output.
2168         (AT_CHECK_AT_TITLE_CHAR): Remove XFAILs for tests that now pass.
2169         Add a test for macros with parameters.
2170         * NEWS: Document the semantics change.
2171         * tests/base.at: Fix test titles containing commas.
2172         * tests/compile.at: Likewise.
2173         * tests/tools.at: Likewise.
2174         * tests/torture.at: Likewise.
2176         Another round of regex avoidance.
2177         * lib/m4sugar/m4sugar.m4 (m4_cr_alnum, m4_cr_all)
2178         (_m4_define_cr_not, m4_cr_not_letters, m4_cr_not_LETTERS)
2179         (m4_cr_not_Letters, m4_cr_not_digits, m4_cr_not_alnum)
2180         (m4_cr_not_symbols1, m4_cr_not_symbols2): New macros, implementing
2181         character ranges useful in m4_translit.
2182         (m4_toupper, m4_tolower): Optimize the constant portion of
2183         definition.
2184         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Also reject @S|@ because it
2185         creates $, and reject [] thanks to AS_TR_SH rewrite.
2186         (AS_TR_SH, AS_TR_CPP): Use just translit, not bpatsubst.
2187         (AS_ESCAPE): Factor...
2188         (_AS_ESCAPE): ...into new macro, with second argument required.
2189         Avoid regex in common case.
2190         (_AS_QUOTE): Use new macro.
2192         Whitespace cleanup.
2193         * lib/autoconf/types.m4: Avoid space-tab.
2194         * lib/m4sugar/m4sh.m4: Use tab consistently.
2196 2007-10-03  Paul Eggert  <eggert@cs.ucla.edu>
2198         * lib/m4sugar/m4sugar.m4 (m4_shift2, m4_shift3): New macros.
2199         (m4_shiftn): Remove no-longer-needed optimization.  Perhaps we
2200         should remove m4_shiftn entirely?
2201         (m4_case, b4_bmatch, m4_map_sep, m4_bpatsubsts, m4_join):
2202         Prefer m4_shift2 and m4_shift3 to m4_shiftn.
2203         * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
2204         * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Likewise.
2205         * tests/autotest.at (AT_CHECK_AT_TEST): Likewise.
2207 2007-10-03  Eric Blake  <ebb9@byu.net>
2209         Comment touchups.
2210         * lib/m4sugar/m4sugar.m4: Grammar fixes in comments.
2212 2007-10-02  Eric Blake  <ebb9@byu.net>
2214         Optimize appending text.
2215         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Use index, not regular
2216         expressions.
2218         Optimize recursion.
2219         * lib/m4sugar/m4sugar.m4 (m4_shiftn): This macro is called in a
2220         lot of hot spots; optimize it for 2 and 3 shifts.
2222         Optimize AC_PREREQ and other m4sugar numerics.
2223         * lib/m4sugar/m4sugar.m4 (m4_sign): Write with m4_eval.
2224         (m4_cmp): Compare arbitrary expressions, without overflow.
2225         (m4_version_unletter): Also recognize capital letters.
2226         (m4_version_compare): Avoid regex when splitting version number
2227         string.
2229 2007-10-01  Eric Blake  <ebb9@byu.net>
2231         Once again, reject IRIX m4.
2232         * m4/m4.m4 (AC_PROG_GNU_M4): Use indir builtin to root out non-GNU
2233         implementations that ignore --trace.
2234         * configure: Regenerate.
2235         Reported by Ralf Wildenhues.
2237         Fix regression in AC_DEFINE([macro(with_arg)]).
2238         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't chop off close
2239         quotes with a careless m4_substr.
2241 2007-09-30  Eric Blake  <ebb9@byu.net>
2243         Allow nameless iteration.
2244         * lib/m4sugar/m4sugar.m4 (m4_for, _m4_for): Access variable
2245         indirectly.
2246         * tests/m4sugar.at (myvar): Test this.
2248 2007-09-29  Eric Blake  <ebb9@byu.net>
2250         Speed optimization: avoid m4 regex when other algorithms work.
2251         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Rewrite without regex.
2252         (_AS_QUOTE_IFELSE): Likewise.
2253         * lib/m4sugar/m4sugar.m4 (m4_strip): Reduce from 3 to 2 regex.
2254         (m4_bpatsubsts): Split...
2255         (_m4_bpatsubsts): ...so that recursion can avoid patsubst on empty
2256         regex.
2257         (_m4_divert()): Define, to avoid m4 warning on `m4_divert'.
2258         (m4_qlen): Optimize on short strings, to avoid regex.
2259         (m4_sign): Avoid regex, and fix bug with `01' and `-0'.
2260         * lib/autoconf/general.m4 (AC_CACHE_VAL): Rewrite without regex.
2261         (AC_DEFINE_TRACE): Likewise.
2263 2007-09-28  Eric Blake  <ebb9@byu.net>
2265         Oops - my earlier 'optimization' caused a regression.
2266         * tests/local.at (AT_CHECK_M4): Fix typo.
2268 2007-09-27  Eric Blake  <ebb9@byu.net>
2269         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2271         Catch even more common AC_CACHE_VAL mistakes.
2272         * lib/autoconf/general.m4 (AC_CACHE_VAL): Warn if cache variable
2273         lacks '_cv_', or if AC_SUBST appears in body.
2274         * tests/base.at (AC_CACHE_CHECK): Test this change.
2276 2007-09-27  Stepan Kasal  <kasal@ucw.cz>
2277         and Eric Blake  <ebb9@byu.net>
2279         Autotest no longer caters to Ultrix redirection limitation.
2280         * doc/autoconf.texi (Writing testsuite.at): Remove the
2281         limitation that the first parameter of AT_CHECK cannot
2282         contain redirection.
2283         (File Descriptors): Mention that Ultrix limitation is no longer a
2284         show-stopper in modern code.
2285         * tests/local.at (AT_CHECK_M4): Fix for cases when the fourth
2286         parameter is `stderr' or `experr'.  Optimize if it was `ignore'.
2287         * lib/autotest/general.m4 (AT_CHECK): Update comment.
2289 2007-09-27  Eric Blake  <ebb9@byu.net>
2291         Squelch changeword in m4sugar.
2292         * lib/m4sugar/m4sugar.m4 (changeword): Disable this experimental
2293         feature of m4 1.4.x.
2295         Configure whitespace touchups.
2296         * lib/autoconf/general.m4 (_AC_INIT_HELP): Fix alignment of
2297         installation directories, and avoid TAB, in configure --help
2298         output.
2299         * configure.ac: Avoid extra trailing newline.
2300         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Avoid space-tab.
2301         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid TAB in
2302         config.status --help output.
2303         * configure: Regenerate.
2305         Fix underquotation in AS_HELP_STRING.
2306         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Don't underquote lhs
2307         argument.
2308         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't underquote
2309         first-prefix argument.
2310         * tests/m4sh.at (AS@&t@_HELP_STRING): Test this fix.
2311         * NEWS: Document AS_HELP_STRING fix.
2313         Autotest formatting touchups.
2314         * lib/autotest/general.m4 (HELP_TUNING): Avoid TAB in terminal
2315         output.
2316         (PATH): Simplify computation of new PATH.
2318 2007-09-26  Eric Blake  <ebb9@byu.net>
2320         Fix testsuite breakage in last patch.
2321         * tests/autotest.at (AT_CHECK_AT_TITLE): Properly quote the
2322         font-lock fix.
2323         * tests/torture.at (@%:@define header templates): Rename, so that
2324         output lines up correctly.
2326         More font-lock happiness.
2327         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Clean up font
2328         confusion.
2330 2007-09-25  Eric Blake  <ebb9@byu.net>
2332         Typo fixes.
2333         * lib/autoconf/general.m4 (AC_SUBST): Fix typo in comment.
2334         * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Likewise.
2336         Improve documentation of M4 parameter expansion.
2337         * doc/autoconf.texi (Quoting and Parameters): New section.
2338         (Quotation and Nested Macros): Improve wording.
2340         Improve C99 detection.
2341         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and
2342         avoid deprecation warning with icc.
2343         * THANKS: Update.
2344         Reported by Ted Bullock.
2346 2007-09-24  Jim Meyering  <jim@meyering.net>
2348         Whenever possible, use the vertical bar as sed delimiter.
2349         * lib/autoconf/functions.m4 (GETLOADAVG_LIBS) [AC_FUNC_GETLOADAVG]:
2350         Use "|", not "!".
2351         * lib/autoconf/status.m4 (_AC_SRCDIRS) [ac_top_builddir_sub]:
2352         [ac_dir_suffix]: Use "|", not "," as sed delimiter.
2353         * tests/mktests.sh (as_me): Likewise.
2354         * lib/freeze.mk (check-forbidden-patterns): Likewise.
2355         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
2356         * configure: Regenerate.
2357         * doc/autoconf.texi (Shell Substitutions): Use "|", not "," in examples.
2358         * lib/autotest/general.m4 (AT_INIT): Use "|", not "&" as sed delimiter
2359         in the : -> $PATH_SEPARATOR transformation of $AUTOTEST_PATH.
2360         This is fine, as long as $PATH_SEPARATOR doesn't contain "|".
2362 2007-09-22  Jim Meyering  <jim@meyering.net>
2364         Add a comment.
2365         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Document the
2366         2004-05-31 change also with a comment in the code.
2368 2007-09-20  Eric Blake  <ebb9@byu.net>
2370         More contribution housekeeping.
2371         * THANKS: Sort.
2372         * AUTHORS: Sort, reflect recent assignment from Helge Deller.
2374         Ignore additional files, when copying cross-repository.
2375         * .gitignore: Ignore CVS directories, emacs edits.
2376         * .cvsignore: Ignore .git directory, emacs edits.
2378 2007-09-15  Eric Blake  <ebb9@byu.net>
2380         Provide AC_VERSION, not m4_AUTOCONF_VERSION.
2381         * doc/autoconf.texi (Text processing Macros): Remove mention of
2382         m4_AUTOCONF_VERSION, and leave m4_PACKAGE_VERSION undocumented
2383         once again.
2384         (Notices): Move AC_PREREQ...
2385         (Versioning): ...to this new section, alongside the new AC_VERSION
2386         alias for the undocumented m4_PACKAGE_VERSION.
2387         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): Revert change.
2388         * lib/autoconf/general.m4 (AC_VERSION): New macro.
2389         * NEWS: Update to match this rename.
2390         * tests/m4sugar.at (m4@&t@_version_compare): Remove tests of
2391         m4_PACKAGE_VERSION.
2392         * tests/tools.at (autoconf: AC_VERSION): New test.
2393         Suggested by Paolo Bonzini and Benoit Sigoure.
2395 2007-09-14  Eric Blake  <ebb9@byu.net>
2397         Prepare for conversion to git.
2398         * doc/.cvsignore: Avoid multiple listings on one line.
2399         * bin/.cvsignore: Likewise.
2400         * .gitignore, bin/.gitignore, config/.gitignore, doc/.gitignore,
2401         lib/.gitignore, lib/Autom4te/.gitignore, lib/autoconf/.gitignore,
2402         lib/autoscan/.gitignore, lib/autotest/.gitignore,
2403         lib/emacs/.gitignore, lib/m4sugar/.gitignore, man/.gitignore,
2404         tests/.gitignore: New files, identical to .cvsignore counterpart.
2406 2007-09-13  Eric Blake  <ebb9@byu.net>
2408         Editing eye-candy.
2409         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Restore
2410         font-lock balance.
2411         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Likewise.
2412         * lib/autoconf/general.m4 (_AC_DO_ECHO): Likewise.
2413         * configure: Regenerate.
2415         Clean up 'make dist' of previous patch.
2416         * tests/Makefile.am (EXTRA_DIST): Distribute mktests.stamp.
2417         (CLEANFILES): Don't clean the stamp, since we distribute the
2418         generated files pre-built.
2419         (MAINTAINERCLEANFILES): Clean it here instead.
2420         * tests/Makefile.in: Regenerate.
2422         Avoid parallel 'make check' issue.
2423         * tests/Makefile.am (mktests.stamp): New witness.
2424         (TESTSUITE_GENERATED_AT): Use it.
2425         (CLEANFILES): Clean the witness.
2426         * tests/.cvsignore (mktests.stamp): Ignore the witness.
2428         Document another awk pitfall.
2429         * doc/autoconf.texi (Limitations of Usual Tools) <awk>: Document
2430         limitation of field variables in END.
2431         Reported by Gary V. Vaughan.
2433         * AUTHORS: Add missing entries.
2435 2007-09-12  Eric Blake  <ebb9@byu.net>
2437         Publish m4_ifndef, m4_version_compare, m4_AUTOCONF_VERSION.
2438         * doc/autoconf.texi (Text processing Macros): Document
2439         m4_version_compare, m4_AUTOCONF_VERSION, m4_PACKAGE_VERSION.
2440         (Redefined M4 Macros): Document m4_ifndef.
2441         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): New macro; we
2442         can't obsolete m4_PACKAGE_VERSION at this time since Autoconf 1.10
2443         used it while it was undocumented.
2444         * NEWS: Document this change.
2445         * lib/m4sugar/Makefile.am (version.m4): Update copyright dates.
2446         * lib/m4sugar/Makefile.in: Regenerate.
2447         * tests/m4sugar.at (m4@&t@_version_compare): New test.
2448         Reported by Bruno Haible.
2450         * doc/autoconf.texi (Generic Compiler Characteristics): Add
2451         missing index entries.
2453 2007-09-11  Eric Blake  <ebb9@byu.net>
2455         Centralize all system extensions checks.
2456         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
2457         from AC_AIX, AC_GNU_SOURCE, AC_MINIX.  Add Interix support.
2458         (AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
2459         AC_USE_SYSTEM_EXTENSIONS.
2460         (AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
2461         (AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
2462         * doc/autoconf.texi (Posix Variants): Reword this section,
2463         emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
2464         rather than a series of system-specific checks.
2465         (Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
2466         AC_MINIX.
2467         * NEWS: Document this change.
2468         * THANKS: Update.
2469         Reported by Martin Koeppe.
2471 2007-09-08  Eric Blake  <ebb9@byu.net>
2473         Clean up obsolete macros references.
2474         * doc/autoconf.texi: Add anchors to support better
2475         cross-referencing.
2476         (Particular Structures): Move obsolete macros descriptions...
2477         (External Software): Likewise.
2478         (Package Options): Likewise.
2479         (Obsolete Macros): ...to here.  Add cross-references to
2480         documentation on replacements.
2481         * NEWS: Mention that these macros have been obsolete for a while
2482         now: AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_RDEV AC_WITH AC_ENABLE.
2484         Improve M4 path searching during configure.
2485         * lib/autoconf/programs.m4 (AC_PATH_PROGS_FEATURE_CHECK): New
2486         macro.
2487         (_AC_PATH_PROG_FEATURE_CHECK): Rename...
2488         (_AC_PATH_PROGS_FEATURE_CHECK): ...to this, add defaulted action
2489         parameter, and kill side effects.
2490         (_AC_PROG_GREP, AC_PROG_SED): Adjust callers.
2491         (_AC_FEATURE_CHECK_LENGTH): Kill extra whitespace.
2492         * m4/m4.m4 (AC_PROG_GNU_M4): Don't stop searching until working m4
2493         is found.
2494         (AC_PATH_PROGS_FEATURE_CHECK): Add backwards compatibility hack to
2495         allow bootstrapping with autoconf 2.61.
2496         * configure.ac (M4): AC_PROG_GNU_M4 now exits on failure.
2497         * configure: Regenerate.
2498         * doc/autoconf.texi (Generic Programs): Document new macro.
2499         * tests/mktests.sh (au_exclude_script): Exclude auto-testing new
2500         macro.
2501         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): New test.
2502         * NEWS: Document the change.
2503         * THANKS: Update.
2504         Reported by Hans Aberg.
2506         * doc/autoconf.texi (Generic Programs): Fix typo.
2508 2007-09-06  Eric Blake  <ebb9@byu.net>
2510         * doc/autoconf.texi (Generic Programs): Use $PATH_SEPARATOR, not
2511         :, and make it clear that optional @var{path} defaults to $PATH.
2512         (Erlang Compiler and Interpreter): Likewise.
2514         Texinfo cleanup.
2515         * doc/autoconf.texi: Avoid lines > 80 columns when possible.
2516         Reword some paragraphs to avoid overfull, underfull hbox
2517         warnings.  Add index entries to avoid overfull vbox warnings.
2519 2007-09-05  Eric Blake  <ebb9@byu.net>
2521         * NEWS: Adjust wording for AC_CONFIG_LINKS.
2522         Reported by Ralf Wildenhues.
2524 2007-09-03  Eric Blake  <ebb9@byu.net>
2526         * NEWS: Document fixes that have been applied since 2.61a.
2528         Housekeeping.
2529         * THANKS: Update, and convert to UTF-8 encoding.
2530         * AUTHORS: Likewise.
2532 2007-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2534         * lib/autoconf/general.m4 (AC_SITE_LOAD): Guard against file
2535         names beginning with `-' again.
2537 2007-08-22  Stepan Kasal  <kasal@ucw.cz>
2538             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2540         * doc/autoconf.texi (Defining Directories): Mention
2541         AM_CPPFLAGS, as the way to modify CPPFLAGS when using Automake.
2543 2007-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2545         * lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
2546         here, this macro is expanded by AC_INIT.  Fixes 2.60 regression.
2547         * tests/base.at (configure arguments): New test.
2548         * THANKS: Update.
2549         Report by Olaf Lenz.
2551         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Expand macro
2552         arguments in comment.
2553         Report by Vincent Torri <vtorri at univ minus evry dot fr>.
2555 2007-08-20  Benoit Sigoure  <tsuna@lrde.epita.fr>
2557         * doc/autoconf.texi (File System Conventions): Index the proper
2558         way of detecting absolute file names.
2560 2007-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2562         * build-aux/config.guess, build-aux/config.sub,
2563         build-aux/elisp-comp, build-aux/install-sh, build-aux/mdate-sh,
2564         build-aux/missing, build-aux/texinfo.tex, doc/fdl.texi,
2565         doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
2566         * doc/autoconf.texi (GNU Free Documentation License): Adjust for
2567         sectioning change in fdl.texi.
2569         * bin/autoconf.as: Update --version output to match current GCS.
2570         * bin/autoheader.in: Likewise.
2571         * bin/autom4te.in: Likewise.
2572         * bin/autoreconf.in: Likewise.
2573         * bin/autoscan.in: Likewise.
2574         * bin/autoupdate.in: Likewise.
2575         * bin/ifnames.in: Likewise.
2577 2007-08-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2579         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not try to link a
2580         file to itself if source and build trees coincide.
2581         * tests/torture.at (AC_CONFIG_LINKS and identical files): New
2582         test.
2583         Report by Sebastian Freundt <hroptatyr@gna.org>.
2585 2007-07-20  Paul Eggert  <eggert@cs.ucla.edu>
2587         Reword the copyright notices to match what's suggested in GPLv3.
2588         In ChangeLog files, use more-permissive notice rather than GPL, as
2589         per usual GNU standards these days.
2591 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
2593         * doc/autoconf.texi (autoreconf Invocation): Document ACLOCAL_AMFLAGS
2594         limitation reported by Leo Moisio in
2595         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432941>.
2597 2007-07-03  Paul Eggert  <eggert@cs.ucla.edu>
2599         * COPYING: Update to GPLv3.  All uses changed.
2601 2007-06-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2602         and Paul Eggert  <eggert@cs.ucla.edu>
2604         * doc/autoconf.texi (Limitations of Usual Tools): sed -e ''
2605         fails on AIX 5.3.
2607 2007-06-17  Noah Misch  <noah@cs.caltech.edu>
2609         * lib/autotest/general.m4 (AT_INIT): Handle absolute `srcdir'.
2610         * tests/autotest.at (srcdir propagation): Test absolute `srcdir' and
2611         `srcdir' as subdirectory of `builddir'.
2613 2007-06-13  Noah Misch  <noah@cs.caltech.edu>
2615         * lib/autotest/general.m4 (AT_INIT): Compute $srcdir correctly.
2616         * tests/autotest.at (srcdir propagation): New test.
2617         * THANKS: Update.
2618         Reported by Mike Frysinger.
2620 2007-06-13  Paul Eggert  <eggert@cs.ucla.edu>
2622         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Set FPATH too.
2623         Problem reported by Fred Kreek in
2624         <http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00009.html>.
2625         * doc/autoconf.texi (Special Shell Variables): Warn about FPATH.
2626         (Macro Names, Defining Directories): Don't mention PATH as a name
2627         for a fully qualified file name, as this usage violates the GNU
2628         coding standards and we shouldn't recommend it.
2630         * lib/autotest/general.m4 (AT_INIT): Don't set PATH to the empty
2631         string and then assume shell builtins like "test" will work.
2633 2007-06-12  Noah Misch  <noah@cs.caltech.edu>
2635         * lib/autoconf/general.m4 (AC_SUBST): Raise a fatal error if VARIABLE is
2636         not a valid shell variable name.
2637         * tests/mktests.sh (ac_exclude_list): Add AC_ARG_VAR.
2638         * tests/torture.at (AC_SUBST: variable name validation): New test.
2639         Reported by Andreas Schwab.
2641 2007-06-04  Noah Misch  <noah@cs.caltech.edu>
2643         * doc/autoconf.texi (AC_F77_MAIN): Give a specific usage example that
2644         works with both C and C++.
2646 2007-06-03  Noah Misch  <noah@cs.caltech.edu>,
2647             Bruno Haible  <bruno@clisp.org>
2649         * lib/autoconf/c.m4 (AC_OPENMP): Use a simple loop instead of compiler
2650         brand tests.
2652 2007-05-31  Paul Eggert  <eggert@cs.ucla.edu>
2654         * doc/autoconf.texi (Particular Types): Give example of use for
2655         AC_TYPE_INT8_T etc.
2657 2007-05-29  Stepan Kasal  <kasal@ucw.cz>
2659         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Fix a typo.
2661 2007-05-28  Paul Eggert  <eggert@cs.ucla.edu>
2663         * doc/autoconf.texi (Particular Types): AC_TYPE_INT8_T does not
2664         define HAVE_INT8_T, and likewise for similar macros.
2665         Problem reported by Patrick Welche in
2666         <http://lists.gnu.org/archive/html/autoconf/2007-05/msg00062.html>.
2668 2007-05-25  Noah Misch  <noah@cs.caltech.edu>
2670         * bin/Makefile.am ($(top_builddir)/bin/autom4te): New dependency.
2672 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
2674         * lib/autoconf/c.m4 (AC_OPENMP): Don't echo --enable-openmp
2675         choice, since that's what we do with --enable-largefile etc.
2676         Redo indenting and assignments to simplify things a bit, and make
2677         the parens work with Emacs.
2679         * doc/autoconf.texi (Generic Compiler Characteristics): Fix typo
2680         in my previous change: AC_C_OPENMP -> AC_OPENMP.  Reported by Bruno
2681         Haible.
2683 2007-05-21  Noah Misch  <noah@cs.caltech.edu>
2685         * lib/autoconf/c.m4 (AC_OPENMP): Simplify use of AC_ARG_ENABLE.
2686         * tests/local.at (AT_CHECK_ENV): Exempt OPENMP_CFLAGS.
2688 2007-05-21  Bruno Haible  <bruno@clisp.org>
2690         * NEWS: Rename AC_C_OPENMP to AC_OPENMP.
2691         * lib/autoconf/c.m4 (AC_OPENMP): Renamed from AC_C_OPENMP.
2692         * doc/autoconf.texi (Generic Compiler Characteristics): Move
2693         renamed AC_OPENMP documentation here, from "C compiler".
2694         Mention C++ and Fortran.
2696 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
2698         * doc/autoconf.texi (C Compiler): Tweak OpenMP documentation a bit.
2700 2007-05-21  Bruno Haible  <bruno@clisp.org>
2702         * NEWS: Mention AC_C_OPENMP.
2703         * lib/autoconf/c.m4 (AC_C_OPENMP): New macro.
2704         * doc/autoconf.texi (C Compiler): Document AC_C_OPENMP.
2705         Based in part on Steven G. Johnson's investigations for the AX_OPENMP
2706         macro in the Autoconf macro archive.
2708 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2710         * bin/autom4te.in: Fix typos.
2712 2007-05-16  Noah Misch  <noah@cs.caltech.edu>
2714         * bin/autoconf.as: Handle `-' just like other input files.
2715         * bin/autom4te.in (parse_args): Pass `-' through.
2716         (handle_output): Skip the forbidden token search if we read from stdin.
2717         (up_to_date): Always treat stdin as out of date.
2718         * tests/tools.at (autoconf: input from stdin): New test.
2719         (autoconf: forbidden tokens, basic): Check a second `autoconf' run.
2721 2007-05-16  Stepan Kasal  <kasal@ucw.cz>
2723         * tests/foreign.at tests/semantics.at, tests/tools.at: Remove
2724         parameters for AT_CLEANUP.
2725         * tests/local.at (AT_CHECK_AU_MACRO): Likewise.
2727 2007-05-14  Paul Eggert  <eggert@cs.ucla.edu>
2729         * NEWS: Document that AC_C_RESTRICT checks 'restrict' last.
2730         * doc/autoconf.texi (C Compiler): Likewise.
2732 2007-05-14  Noah Misch  <noah@cs.caltech.edu>
2734         * lib/autoconf/c.m4 (AC_C_RESTRICT): Check `restrict' last.
2736 2007-05-09  Stepan Kasal  <kasal@ucw.cz>
2738         * doc/autoconf.texi: Direntry for "autoconf Invocation"
2739         renamed to "autoconf-invocation"
2741         * doc/autoconf.texi (Caching Results): The CACHE-ID variable
2742         in the examples should not use the internal "ac_" prefix.
2744 2007-05-05  Noah Misch  <noah@cs.caltech.edu>
2746         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): Use `eval'.
2747         * doc/autoconf.texi ($@, case): Document Zsh limitations.
2749 2007-05-03  Stepan Kasal  <kasal@ucw.cz>
2751         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
2752         Reorganize the comments before and in the macro.
2754 2007-05-02  Stepan Kasal  <kasal@ucw.cz>
2756         * lib/autoconf/lang.m4, lib/autoconf/c.m4,
2757         lib/autoconf/fortran.m4, lib/autoconf/erlang.m4: Cleanup of
2758         section titles and other comments; no code change.
2760 2007-05-01  Kevin Ryde  <user42@zip.com.au>
2762         * doc/autoconf.texi (Particular Programs): Typo
2763         @acindex{AC_PROG_MKDIR_P} shouldn't have "AC" in that call.
2765 2007-04-30  Paul Eggert  <eggert@cs.ucla.edu>
2767         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Don't imply that
2768         'configure' will fail if the shell lacks proper support for shell
2769         functions.  Suggested by RMS.
2771 2007-04-29  Paul Eggert  <eggert@cs.ucla.edu>
2773         * doc/autoconf.texi (Limitations of Builtins): Correct the warning
2774         about Solaris /bin/printf '%010000x' 123.  Problem reported by
2775         Bruno Haible.
2777 2007-04-28  Paul Eggert  <eggert@cs.ucla.edu>
2779         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look
2780         for a.* when searching for executables, as this prevents users
2781         from having files like a.c.  Problem reported by Ralf Wildenhues in:
2782         http://lists.gnu.org/archive/html/autoconf-patches/2007-04/msg00029.html
2783         This fixes a problem introduced on 2000-12-19.
2785 2007-04-26  Paul Eggert  <eggert@cs.ucla.edu>
2787         * doc/autoconf.texi (Limitations of Builtins): Warn about Solaris
2788         /bin/printf '%010000x' 123.  Problem reported by Arto C. Nirkko
2789         via Bruno Haible.
2791 2007-04-12  Paul Eggert  <eggert@cs.ucla.edu>
2793         * NEWS: Document recent changes to AC_CHECK_ALIGNOF, AC_CHECK_SIZEOF,
2794         AC_CHECK_TYPE, AC_CHECK_TYPES.
2795         * doc/autoconf.texi (Generic types): C types must be type-names
2796         (the C terminology), not type-ids (the C++ term).  C++ types
2797         must not be anonymous.
2798         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Remove special case
2799         for C++; this drops support for anonymous struct and union types,
2800         which were problematic anyway.
2801         * tests/semantics.at (AC_CHECK_HEADERS_NEW): Adjust test to work even
2802         for C++.
2804 2007-04-12  Jim Meyering  <jim@meyering.net>
2806         * doc/autoconf.texi (Libraries): Typo fix: insert missing "in".
2808 2007-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2810         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Fix AC_CONFIG_LINKS
2811         to prefer a link source from the build tree, if it exists.
2812         Report by Pallav Gupta <pallavgupta@gmail.com>.
2814 2007-04-11  Paul Eggert  <eggert@cs.ucla.edu>
2816         * doc/autoconf.texi (Generic Types): Document the restrictions
2817         on types imposed by AC_CHECK_TYPE, AC_CHECK_TYPES.
2818         (Generic Compiler Characteristics): AC_CHECK_SIZEOF now works
2819         with objects too.  Document the restrictions on its use.
2820         Document the restrictions on AC_CHECK_ALIGNOF's type argument.
2821         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW):
2822         For C, just try sizeof (TYPE) and sizeof ((TYPE)); if the former
2823         works but the latter doesn't, then it's a valid type.
2824         This lets people use function types and so forth.
2825         For C++ there doesn't seem to be a simple solution, so leave it alone.
2826         (AC_CHECK_SIZEOF): Allow argument to be a variable.
2827         (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Don't bother to invoke
2828         AC_CHECK_TYPE; that wasn't documented or necessary.
2830 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
2832         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Skip AS_TEST_X
2833         when cross-compiling.
2835 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
2837         * doc/autoconf.texi (External Software): Fix a typo in the
2838         previous change.
2840 2007-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2842         * doc/autoconf.texi (External Software, Package Options):
2843         Fix ambiguous wording.  Report by Reuben Thomas <rrt@sc3d.org>.
2845 2007-04-06  Paul Eggert  <eggert@cs.ucla.edu>
2847         * doc/autoconf.texi (Particular Types): AC_C_LONG_DOUBLE is now
2848         obsolescent.  Suggested by Bruno Haible.
2849         * NEWS: Document this.
2851 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
2853         * doc/autoconf.texi (Here-Documents, Limitations of Builtins):
2854         (Limitations of Usual Tools): Don't say "older" if Solaris 10 by
2855         default still has the problem.  Problem reported by Bruce Korb.
2857 2007-03-28  Stepan Kasal  <kasal@ucw.cz>
2858         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2860         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix a
2861         comment in the generated config.status.
2863 2007-03-27  Stepan Kasal  <kasal@ucw.cz>
2865         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Update comment.
2867 2007-03-26  Paul Eggert  <eggert@cs.ucla.edu>
2869         * doc/autoconf.texi (Shellology): Rework treatment of the 'test'
2870         command and case statements to make it a bit clearer and describe
2871         more pitfalls.
2873 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
2875         * doc/autoconf.texi (C Compiler): Mention that AC_PROG_CC_C99 also
2876         checks for unsigned long long int.
2878 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2880         * doc/autoconf.texi (Limitations of Usual Tools): Warn about other
2881         nonstandard grep R.E. escape sequences.
2883 2007-03-17  Jim Meyering  <jim@meyering.net>
2885         * doc/autoconf.texi: Adjust grammar around use of "heuristics".
2886         (Limitations of Usual Tools): Also list \< and \>, and mention that
2887         HP-UX's grep, like the one from Solaris, does not support that syntax.
2889 2007-03-09  Stepan Kasal  <kasal@ucw.cz>
2891         * doc/autoconf.texi (Specifying Names): `--host' does not
2892         change the build type.
2894 2007-03-05  Paul Eggert  <eggert@cs.ucla.edu>
2896         * doc/autoconf.texi (C Compiler): Warn that AC_C_BIGENDIAN
2897         suggests AC_CONFIG_HEADERS.
2898         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Warn if not using
2899         AC_CONFIG_HEADERS.  Problem reported by
2900         Peter O'Gorman.
2902 2007-02-28  Paul Eggert  <eggert@cs.ucla.edu>
2904         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Fix typo "__LITLE_ENDIAN__".
2905         Problem reported by Paolo Bonzini in:
2906         http://lists.gnu.org/archive/html/autoconf-patches/2007-02/msg00024.html
2907         * tests/semantics.at (AC_C_BIGENDIAN): Don't reject hosts that have
2908         universal binaries.  Problem reported by Elias Pipping.
2910 2007-02-27  Paul Eggert  <eggert@cs.ucla.edu>
2912         * NEWS: AC_C_BIGENDIAN now supports universal binaries a la Mac OS X.
2913         * doc/autoconf.texi (C Compiler): Document this.  There is a new
2914         extra argument ACTION-IF-UNIVERSAL.
2915         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Implement this.
2916         Add support for Solaris-style _LITTLE_ENDIAN and _BIG_ENDIAN.
2917         Reindent for sanity's sake.
2919 2007-02-24  Eric Blake  <ebb9@byu.net>
2921         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
2922         copyright.
2923         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
2924         * lib/autotest/general.m4 (AT_INIT): Likewise.
2925         (_AT_DECIDE_TRACEABLE): Fix syntax highlighting.
2927 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2929         * lib/autotest/general.m4 (AT_INIT): With --clean, return exit
2930         status of rm so we know when it failed.
2931         If cleaning of test dir failed before running the test, warn.
2932         Output the line separator in verbose mode before the warning
2933         to make clear the warning belongs to the following test.
2935 2007-02-08  Paul Eggert  <eggert@cs.ucla.edu>
2937         * doc/autoconf.texi (Parentheses): Mention problem with (( in
2938         shells.
2940 2007-02-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2941         and Paul Eggert  <eggert@cs.ucla.edu>
2943         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix quoting
2944         errors introduced in last change.
2946 2007-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2948         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer \r to
2949         an actual carriage return.  Use "ac_cr" to contain the actual
2950         carriage return.
2951         * doc/autoconf.texi (Limitations of Usual Tools): Document problem
2952         with traditional Awk and begin.
2953         * tests/torture.at (Limitations of Builtins): Document the problem
2954         with Bash 2.03 printf.
2955         (Substitute and define special characters):
2956         Remove trailing white space.  Work around a bug in Solaris 8 /bin/bash.
2958 2007-02-06  Ralf Menzel  <menzel@ls6.cs.uni-dortmund.de>  (tiny change)
2960         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Redirect
2961         input from /dev/null in awk test, so even Solaris /usr/bin/awk
2962         will not wait for input with a script containing only a BEGIN
2963         rule.
2965 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
2967         * doc/autoconf.texi (Introduction, Why GNU M4): Clarify M4 version
2968         requirements.
2969         * README: Likewise.
2971 2007-02-02  Eric Blake  <ebb9@byu.net>
2973         * NEWS: Update copyright.
2975         * m4/m4.m4 (AC_PROG_GNU_M4): Reject M4 1.4 through 1.4.4 as
2976         broken.
2977         * configure.ac: Update error message.
2978         * NEWS: Note that M4 1.4.5 or later is now a hard dependency.
2979         Reported by Gary Vaughan and Jim Meyering, and problem analyzed
2980         by Stepan Kasal:
2981         http://lists.gnu.org/archive/html/bug-autoconf/2006-11/msg00025.html
2983 2007-01-31  Eric Blake  <ebb9@byu.net>
2985         * THANKS (people): Update.
2987 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
2989         * doc/autoconf.texi (Shellology): pdksh 5.2.14 is still the
2990         latest version.
2991         (Shell Substitutions): Note problems with @{var:=value} etc.
2992         Add a new section for problems with @{#var} etc.  Problem noted
2993         by Ralf Wildenhues.  See:
2994         http://lists.gnu.org/archive/html/libtool-patches/2005-01/msg00157.html
2996 2007-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2998         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Also
2999         AC_SUBST([MKDIR_P]), so that Automake < 1.10 will pick up its
3000         trace, if a package uses AC_PROG_MKDIR_P explicitly.  The actual
3001         substitution will still be done by the special code.
3002         Report by Jim Meyering.
3004         * doc/autoconf.texi (File System Conventions): Mention that
3005         $PATH_SEPARATOR is for the build system only.
3006         Report by Keith Marshall.
3008 2007-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3010         * doc/autoconf.texi (Setting Output Variables): Mention that
3011         all non-NUL characters are ok in substituted values.
3012         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Fix comment typo.
3013         (_AC_OUTPUT_FILES_PREPARE): Test and use backslash escaping of
3014         carriage return for $AWK, needed for BSD awk.
3015         * tests/torture.at (Substitute and define special characters):
3016         Test all 8 bit non-NUL characters.
3017         Report against Automake by Patrick Welche.
3019 2007-01-15  Stepan Kasal  <kasal@ucw.cz>
3021         * doc/autoconf.texi: Direntry for "autoconf Invocation" renamed.
3023 2007-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3025         * lib/autoconf/programs.m4 (AC_PROG_SED): When closing a pipe
3026         early on the reader side, drop stderr of the input to avoid
3027         `broken pipe' error output; this may happen even with shell
3028         builtin `echo' of some bash versions.  Reports by Ian Macdonald
3029         <iamacdo@telkomsa.net> and Sam Sexton <Sam.Sexton@reuters.com>.
3031 2007-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3033         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Use newlines to
3034         separate items of `ac_user_opts', to avoid long lines.
3035         (_AC_INIT_PARSE_ENABLE2, _AC_ENABLE_IF_ACTION): Adjust.
3037 2007-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3039         * doc/autoconf.texi: Fix some typos.
3041 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
3043         Fix some wording problems noted by Paolo Bonzini in:
3044         http://lists.gnu.org/archive/html/autoconf-patches/2007-01/msg00077.html
3045         * doc/autoconf.texi (Signed Overflow Examples): Give more
3046         discussion about the allow_superuser_privileges example,
3047         and change it a bit to make things clearer.
3048         (Optimization and Wraparound): Clarify whether the compiler
3049         will generate an infinite loop for the example derived from
3050         Autoconf's mktime test.
3051         (Signed Overflow Advice): Say that -ftrapv is meant for debugging.
3052         Also, clarify unsigned multiplication overflow.
3054 2007-01-04  Eric Blake  <ebb9@byu.net>
3056         * bin/Makefile.am (RELEASE_YEAR): New macro.
3057         (edit): Use it to supply correct copyright year to scripts.
3058         * bin/autoconf.as (version): Use it.
3059         * bin/autoheader.in ($version): Likewise.
3060         * bin/autom4te.in ($version): Likewise.
3061         * bin/autoreconf.in ($version): Likewise.
3062         * bin/autoscan.in ($version): Likewise.
3063         * bin/autoupdate.in ($version): Likewise.
3064         * bin/ifnames.in ($version): Likewise.
3066 2007-01-02  Paul Eggert  <eggert@cs.ucla.edu>
3068         * doc/autoconf.texi (Integer Overflow): Revised based on today's
3069         feedback.  The most important changes document what happens when
3070         you convert an out-of-range value to a signed integer type, and
3071         say that (sum < a) != (b < 0) reliably detects overflow when sum =
3072         a + b.
3074         * doc/autoconf.texi (Integer Overflow): Greatly expand and
3075         rewrite, taking notions from the recent discussion on the gcc and
3076         autoconf mailing lists; please see
3077         http://lists.gnu.org/archive/html/autoconf-patches/2006-12/msg00091.html
3078         and follow the many links.
3079         (Integer Overflow Basics, Signed Overflow Examples):
3080         (Optimization and Wraparound, Signed Overflow Advice):
3081         (Signed Integer Division): New sections.
3083 2006-12-28  Steven G. Johnson  <stevenj@alum.mit.edu>
3085         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't include
3086         preprocessor macro arguments in traced name.
3087         * doc/autoconf.texi (Defining symbols): Document longstanding
3088         support for AC_DEFINE-ing macros with arguments, and document
3089         behavior when the same variable has multiple AC_DEFINEs.
3090         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Revert to the
3091         old implementation which AC_DEFINEs the FC_FUNC and FC_FUNC_
3092         macros directly, giving much shorter and simpler code.
3094 2006-12-28  Malcolm Purvis <malcolmp@xemacs.org>  (trivial change)
3096         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Insert a
3097         space before "$ac_configure_args" to prevent a 'config.status
3098         --recheck' failure if ac_configure_args doesn't contain a leading
3099         space.  This works around a problem with the XEmacs configure.ac,
3100         which uses the (undocumented) ac_configure_args variable
3101         inconsistently with Autoconf.
3103 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
3105         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):
3106         Include <limits.h>, and use its INT_MAX to rewrite the
3107         j loop so that it does not overflow 'int'.  Problem reported by
3108         Ralf Wildenhues in
3109         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
3110         Play it safe by shifting left by 1 rather than multiplying by 2,
3111         as GCC is less likely to optimize this away when the value
3112         is signed (when it assumes overflow leads to undefined behavior).
3113         Also, don't assume time_t uses two's complement.
3115 2006-12-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3117         * tests/torture.at (Substitute a 2000-byte string): Avoid using
3118         a 10kB long (multi-line) string literal, OpenServer 5.0.7 ksh
3119         dumps core on it.  Report by Tim Rice.
3121 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
3123         * lib/autoconf/general.m4 (AC_ARG_ENABLE): Print help about
3124         --disable-option-checking to --help output even when
3125         AC_PRESERVE_HELP_ORDER is not used.
3126         (_AC_INIT_PARSE_ENABLE2): Print warnings using actual --enable or
3127         --with argument, rather than argument with [-.] replaced by
3128         underscores.
3129         * NEWS: Fix typo in previous change; the news was in the
3130         wrong section.
3132 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
3134         * NEWS: Warnings are now generated by default for unknown
3135         --enable-* and --with-* options.
3136         * doc/autoconf.texi (Option Checking): Renamed from
3137         (Configure Option Checking).  Tighten up the wording a bit.
3138         (External Software, Package Options): Cross-reference to Option
3139         Checking, and use this to shorten our section.
3140         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Prefer test -n
3141         "$x" to test "x$foo" != x.
3142         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
3143         Don't warn if $enable_option_checking is "no".
3144         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Initialize
3145         ac_unrecognized_opts to the empty string.
3146         Don't echo the unrecognized opts, as this might mishandle
3147         backslashes or leading -.
3148         (AC_PRESERVE_HELP_ORDER): Put the --disable-option-checking
3149         usage next to the other --disable-FEATURE options in the
3150         help string.
3152 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
3154         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, _AC_INIT_PARSE_ARGS):
3155         (_AC_INIT_PARSE_ENABLE2, _AC_INIT_HELP, _AC_ENABLE_IF):
3156         Print warning for unrecognized --with and --enable options
3157         (AC_DISABLE_OPTION_CHECKING): New macro to disable warnings.
3158         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS):
3159         Disable option checking when subdirs are configured.
3160         (AC_OUTPUT): If warnings are enabled, print warning about
3161         unrecognized --with and --enable options at the end of
3162         the configure output (as well as at the beginning).
3163         * doc/autoconf.texi (Option Checking): New node.
3164         Document new option warning functionality.
3166 2006-12-16  Eric Blake  <ebb9@byu.net>
3168         * configure.ac (AC_INIT): Bump version, since 2.61a is released.
3169         * NEWS: Start news for current version.
3171 2006-12-15  Paul Eggert  <eggert@cs.ucla.edu>
3173         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
3174         Define HAVE_GETMNTENT to 1, not to the empty string.
3175         Problem originally reported by Jochen Friedrich in
3176         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403243>.
3178         This change prompted by a problem report by Andrey Simonenko in
3179         <http://lists.gnu.org/archive/html/bug-autoconf/2006-12/msg00026.html>.
3180         * doc/autoconf.texi (Defining Symbols): AC_DEFINE works for
3181         object-like macros only, in the traditional portable character
3182         set.
3183         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL):
3184         Warn about attempts to define things that are not identifiers.
3185         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Rewrite to avoid
3186         awful hack that AC_DEFINEd macro names containing parentheses.
3188 2006-12-12  Paul Eggert  <eggert@cs.ucla.edu>
3190         * doc/autoconf.texi: Undo some of the 2006-12-10 change.  It was
3191         too drastic, even if Texinfo in theory requires it for info mode.
3193         (config.status Invocation): Renamed back from Recreating a
3194         Configuration).
3195         (Obsolete config.status Use): Renamed back from Obsolete Recreation.
3196         (Autoconf 2.13): Renamed back from 20th-century Autoconf 2.
3198 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
3200         * NEWS: Version 2.61a.
3202 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
3203         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3205         * NEWS: Document changes with echo and printf, and the lack
3206         of limits on the total size of multi-line values of substituted
3207         variables, and the AC_FUNC_FSEEKO fix.
3209 2006-12-10  Paul Eggert  <eggert@cs.ucla.edu>
3211         * doc/autoconf.texi (Writing Autoconf Input): Renamed from
3212         Writing configure.ac.
3213         (Autoconf Input Layout): Renamed from configure.ac Layout.
3214         (Recreating a Configuration): Renamed from config.status Invocation.
3215         (Obsolete Recreation): Renamed from Obsolete config.status Use.
3216         (acconfig Header): Renamed from acconfig.h.
3217         (20th-century Autoconf 2): Renamed from Autoconf 2.13.
3218         (Writing Testsuites): Renamed from Writing testsuite.at.
3219         (Autom4te Cache): Renamed from autom4te.cache.
3221         * BUGS: Remove mention of VPATH problem, since it's now documented
3222         not to be a bug in the Autoconf build procedure itself, but rather
3223         a problem with the proprietary `make' programs.
3225         * doc/autoconf.texi (Build Directories): Add a cross reference
3226         to VPATH and Make.
3228         * build-aux/config.guess, build-aux/config.sub, build-aux/texinfo.tex:
3229         * doc/standards.texi: Sync from gnulib.
3231         * man/autoconf.1, man/autoheader.1, man/autom4te.1, man/autoreconf.1:
3232         * man/autoscan.1, man/autoupdate.1, man/config.guess.1:
3233         * man/config.sub.1, man/ifnames.1: Remove from CVS, since they're
3234         generated automatically.
3236 2006-12-06  Paul Eggert  <eggert@cs.ucla.edu>
3238         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Also try -xc99=all, for Sun
3239         C 5.8 on Solaris 10.  Using -xc99=all rather than -xc99 bypasses
3240         the buggy -xc99 option of Forte Developer 7 C on Solaris 9.
3242 2006-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3244         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the
3245         `CEOF$ac_eof' special marker, the awk script cannot contain a
3246         line matching `^CEOF', so this is not needed any more.
3247         * tests/torture.at (Substitute a newline): Expose the `%!_!# '
3248         special marker in the test.
3250 2006-12-06  Stepan Kasal  <kasal@ucw.cz>
3252         * tests/tools.at (autom4te preselections): Use `find -newer';
3253         remove one of the sleeps.
3255         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Make it
3256         more readable, using ...
3257         (_AC_INIT_PARSE_ENABLE2): ... this new helper macro.
3259         * doc/autoconf.texi (autoheader Invocation): Do not double-
3260         quote the parameter of `AH_BOTTOM' in the example.
3262 2006-12-05  Stepan Kasal  <kasal@ucw.cz>
3264         * doc/autoconf.texi (Configuration Headers): Remove the
3265         example with multiple input files.
3266         (autoheader Invocation): Encourage `AH_BOTTOM', discouraging
3267         multiple input files.
3269 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3271         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When
3272         creating the awk substitution script, handle one input line at a
3273         time, so that the maximum length of a substituted (multi-line)
3274         value is not limited by the size of the sed pattern space.
3275         The trade-off is a slightly repetitive sed script.
3276         * doc/autoconf.texi (Limitations of Usual Tools): Branch labels
3277         can only have up to 7 characters, due to Solaris 10 /bin/sed.
3278         * tests/torture.at (Substitute a 2000-byte string): Increase the
3279         test with several long lines, they should not be caught by sed
3280         limits any more.
3282         * tests/tools.at (autom4te preselections): New test, to flag
3283         entries missing from autom4te.cfg.
3284         Report by David Byron <dbyron@hheld.com>.
3286         * tests/torture.at (Substitute a 2000-byte string): Actually use
3287         AC_PROG_AWK, so the last change works as intended.
3288         (Substitute and define special characters): Likewise.
3289         (Substitute a newline): Likewise.
3291         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use `$AWK'
3292         instead of `awk' consistently.
3293         (_AC_OUTPUT_CONFIG_STATUS): Initialize $AWK.
3294         * tests/torture.at (Torturing config.status): Test both the
3295         result of AC_PROG_AWK and plain awk.
3296         (Substitute a 2000-byte string): Likewise.
3297         (Substitute and define special characters): Likewise.
3298         (Substitute a newline): Likewise.
3300 2006-12-04  Paul Eggert  <eggert@cs.ucla.edu>
3302         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko
3303         can be assigned to a function pointer.  Problem reported by
3304         Peter Palfrader in <http://bugs.debian.org/401377>.  Based on
3305         part of a patch by Ralf Wildenhues in that same bug report.
3307 2006-12-01  Paul Eggert  <eggert@cs.ucla.edu>
3309         * tests/mktests.sh (ac_exclude_list): Exclude AC_FUNC_SETVBUF_REVERSED.
3310         * tests/semantics.at (AC_FUNC_SETVBUF_REVERSED): New test.
3312 2006-12-01  Eric Blake  <ebb9@byu.net>
3314         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in
3315         cross-compiling from cygwin to mingw.
3316         Reported by Bob Rossi.  This resurrects the 2000-11-30 patch to
3317         aclang.m4, which was mistakenly removed in the 2001-09-17 patch
3318         to lib/autoconf/c.m4.
3320 2006-12-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3322         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Use a longer test
3323         string for more reliable failure.  Wrap the entire test that
3324         causes the broken Solaris printf to dump core, in a subshell,
3325         so the segmentation fault message is reliably suppressed.
3326         Fix shell expansion errors by using /usr/ucb/echo always;
3327         avoid an error on systems without it by another subshell.
3328         Avoid m4 expansion of `$1'.  Set the zeroth argument of the
3329         subshell-$as_echo to `as_echo', for better error message.
3331 2006-11-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3333         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): If `BASH_ARGV' or
3334         `BASH_SOURCE' contain a newline, set them to empty, as they may
3335         not be unset.
3337 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
3339         Turn AC_FUNC_SETVBUF_REVERSED into a noop.  It's been obsolete for
3340         years and is too hard to maintain now.  The last straw was
3341         reported by Jerker Baeck in
3342         <http://lists.gnu.org/archive/html/autoconf/2006-11/msg00102.html>.
3343         * NEWS: AC_FUNC_SETVBUF_REVERSED is now obsolete.
3344         * doc/autoconf.texi (Particular Functions): Move
3345         AC_FUNC_SETVBUF_REVERSED from here...
3346         (Obsolete Macros): ... to here.  Say that it does nothing now.
3347         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
3348         Turn into (almost) a no-op.
3350         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL, AC_C_CONST):
3351         (AC_C_VOLATILE):
3352         Do not recommend via AN_FUNCTION, AN_IDENTIFIER, or AN_HEADER.
3353         These macros are obsolescent and new applications shouldn't need them.
3354         * lib/autoconf/functions.m4 (AC_FUNC_CLOSEDIR_VOID, AC_REPLACE_FNMATCH):
3355         (AC_FUNC_GETLOADAVG, AC_FUNC_GETPGRP, AC_FUNC_MEMCMP):
3356         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP, AC_FUNC_STAT, AC_FUNC_LSTAT):
3357         (AC_FUNC_STRFTIME, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
3358         (AC_FUNC_VPRINTF): Likewise.
3359         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT, AC_HEADER_STAT):
3360         (AC_HEADER_STDC, AC_HEADER_SYS_WAIT, AC_HEADER_TIME): Likewise.
3361         * lib/autoconf/types.m4 (AC_STRUCT_TM): Likewise.
3363         * doc/autoconf.texi (Setting Output Variables): Mention that
3364         @VAR1@VAR2 has unspecified behavior.  Problem reported by
3365         Ralf Wildenhues.
3366         * NEWS: Mention this.
3368         * Makefile.am: Put only a single '#' into the copyright notice,
3369         so that it's also present in the output file.  Standardize wording
3370         in makefile copyright notices to match GNU coding standards.
3371         * bin/Makefile.am: Likewise.
3372         * doc/Makefile.am: Likewise.
3373         * lib/Makefile.am: Likewise.
3374         * lib/freeze.mk: Likewise.
3375         * lib/autoconf/Makefile.am: Likewise.
3376         * lib/autoscan/Makefile.am: Likewise.
3377         * lib/autotest/Makefile.am: Likewise.
3378         * lib/m4sugar/Makefile.am: Likewise.
3379         * man/Makefile.am: Likewise.
3380         * tests/Makefile.am: Likewise.
3381         * lib/emacs/Makefile.am: Remove copyright notice; it's just a
3382         one-line file.
3384 2006-11-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3386         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix error
3387         in the sed script that mangles the awk script: delete up to the
3388         first exclamation mark only.
3389         * tests/torture.at (Substitute and define special characters):
3390         Test '!' too.
3392 2006-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3394         Rewrite config files generation: avoid quadratic growth in
3395         the number of substituted variables by using awk instead of sed
3396         for the bulk of the substitutions.
3397         * NEWS: Mention this.
3398         * doc/autoconf.texi (Setting Output Variables): `|#_!!_#|' is also
3399         forbidden in the output (and thus input) file.
3400         * lib/autoconf/status.m4 (_AC_AWK_LITERAL_LIMIT): New macro.
3401         (_AC_OUTPUT_FILES_PREPARE): Instead of several sed scripts,
3402         generate just one large awk script for substitutions,
3403         eliminating much of the earlier complexity, while adding some
3404         new complexity.  Only expand the substitution templates at
3405         configure time, for smaller configure script size.  If
3406         _AC_SUBST_FILES are used, test 'awk' for working getline support
3407         at config.status time.  If absent, interpolate through the
3408         shell.  The awk script was written with much help
3409         from Paolo Bonzini and Paul Eggert.
3410         (_AC_SED_CMD_NUM, _AC_SED_DELIM_NUM, _AC_SED_FRAG): Removed.
3411         (_AC_SED_FRAG_NUM): Likewise.
3412         (_AC_SUBST_CMDS): Renamed from...
3413         (_AC_SED_CMDS): ...this.
3414         (_AC_OUTPUT_FILE): Use _AC_SUBST_CMDS.
3415         * tests/torture.at (Substitute a 2000-byte string): Also
3416         substitute a line with 1000 words, and a variable with several
3417         long lines.
3418         (Substitute and define special characters): Test awk special
3419         characters, and put substitution input strings `@foo@' in the
3420         output, to test that no recursion happens; test several other
3421         combinations from Paolo Bonzini.
3423 2006-11-25  Paul Eggert  <eggert@cs.ucla.edu>
3425         * lib/autotest/general.m4 (AT_INIT): Undo recent changes
3426         that replaced echo with AS_ECHO where this wasn't necessary.
3427         Problem reportd by Ralf Wildenhues.
3428         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Port to Solaris 7,
3429         where "/usr/bin/printf '%s\n' S" dumps core if S is long.
3430         This is Sun bug 4206210.  Problem reportd by Ralf Wildenhues.
3432 2006-11-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3434         * lib/freeze.mk (GREP): Removed, no need to initialize this.
3436 2006-11-21  Paul Eggert  <eggert@cs.ucla.edu>
3438         * doc/autoconf.texi (Limitations of Usual Tools): Don't claim
3439         that traditional Awk lacks 3-arg "split".  It has it.
3440         Mention that FS must be a single character, and a few other
3441         99-byte limits of traditional Awk.
3442         Mention that if (i in a) doesn't work with traditional Awk.
3444 2006-11-18  Paul Eggert  <eggert@cs.ucla.edu>
3446         * tests/autotest.at (BSx641-newline in command):
3447         (BS-BS-newline in command, BSx640-newline in command):
3448         (Newline-CODE-BS-newline in command):
3449         (Single-quote-BS-newline in command):
3450         (Single-quote-newline-BS-newline in command):
3451         Use printf '%s\n' instead of echo, for portability to hosts
3452         where echo interprets backslashes.  This will break on hosts
3453         that lack printf, but for now let's assume all such hosts
3454         are dead (if not, we should get reports of test failures).
3456 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
3458         'echo' has some portability problems, when given a first argument
3459         with a leading '-', or when given any argument containing '\'.
3460         Avoid using 'echo' in these cases.
3461         * bin/Makefile.am $(bin_SCRIPTS): Rewrite to avoid 'echo' entirely.
3462         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Likewise.
3463         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
3464         * lib/autotest/general.m4 (AT_INIT): Likewise.
3465         * bin/autoconf.as: Use AS_ECHO rather than plain echo, when the
3466         argument might be unportable.
3467         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Likewise.
3468         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Likewise.
3469         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT):
3470         (_AC_FC_LIBRARY_LDFLAGS): Likewise.
3471         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Likewise.
3472         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE, _AC_INIT_PREPARE):
3473         (_AC_ARG_VAR_VALIDATE, AC_ARG_PROGRAM, _AC_MSG_LOG_CONFTEST):
3474         (AC_RUN_LOG, _AC_RUN_IFELSE, _AC_LIBOBJS_NORMALIZE): Likewise.
3475         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
3476         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Likewise.
3477         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
3478         (AC_PROG_MAKE_SET): Likewise.
3479         * lib/autoconf/status.m4 (_AC_SRCDIRS, _AC_OUTPUT_HEADER):
3480         (_AC_OUTPUT_SUBDIRS, _AC_OUTPUT_CONFIG_STATUS): Likewise.
3481         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT, AT_INIT):
3482         (AT_CLEANUP, _AT_DECIDE_TRACEABLE, _AT_CHECK): Likewise.
3483         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE, _AS_ECHO_UNQUOTED):
3484         (_AS_BASENAME_SED, _AS_DIRNAME_SED, AS_MKDIR_P, AS_TMPDIR, AS_UNAME):
3485         (AS_TR_SH, AS_TR_CPP, AS_VAR_GET): Likewise.
3486         * bin/autoconf.as: Redo verbose flag implementation, as the old
3487         scheme wouldn't work with AS_ECHO.
3488         * lib/autotest/general.m4 (AT_INIT): Likewise.
3489         * lib/autoconf/general.m4 (AC_MSG_RESULT, AC_MSG_RESULT_UNQUOTED):
3490         Don't use ECHO_T, since ECHO_N is now reliable.
3491         * lib/autotest/general.m4 (AT_INIT): Likewise.
3492         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use sed "$script"
3493         rather than using a here-document to put the script into a file.
3494         (_AC_DO_ECHO): Hoist the eval out of the echo, so that we can
3495         use AS_ECHO.
3496         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Likewise.
3497         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Use
3498         AS_ECHO_N rather than ECHO_N and ECHO_C.  This doesn't fix any
3499         bug, but we might as well stop using ECHO_N and ECHO_C internally.
3500         * lib/autotest/general.m4 (AT_SETUP): Likewise.
3501         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N): Likewise.
3502         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
3503         (_AC_OUTPUT_MAIN_LOOP): Rework echo so that it has just one
3504         operand, as AS_ECHO requires.  Avoid double file name expansion.
3505         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke _AS_ECHO_PREPARE.
3506         Don't set as_nl, since _AS_ECHO_PREPARE does that now.
3507         (_AS_PREPARE): Comment that _AS_ECHO_N_PREPARE is just for user code.
3508         (AS_ECHO, AS_ECHO_N, _AS_ECHO_PREPARE): New macros.
3509         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
3510         Double-quote strings that would otherwise contain M4 comments.
3511         * tests/m4sh.at (AS_ECHO and AS_ECHO_N): New test.
3513         * configure.ac (AC_INIT): Bump to 2.61a.
3514         * NEWS: Likewise.
3516 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
3518         Version 2.61.
3520         * configure.ac (AC_INIT): Bump to 2.61.
3521         * NEWS: Likewise.
3523         * tests/autotest.at (Macro with backslash in a test title):
3524         Comment out for now, as this tests neither fails nor passes
3525         reliably.  Problem reported by Ralf Wildenhues.
3527 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
3529         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos
3530         in previous change, which caused test failures.
3532 2006-11-16  Stepan Kasal  <kasal@ucw.cz>
3534         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Factor out
3535         code for --enable, --disable, --with, and --without to...
3536         (_AC_INIT_PARSE_ENABLE): ... a new macro.
3537         * doc/autoconf.texi (Package Options):
3538         * NEWS: Document that AC_ARG_ENABLE allows dots, too.
3540 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
3542         Import these changes from config via gnulib:
3544         2006-11-15  Ben Elliston  <bje@gnu.org>
3546         From Josselin Mouette <joss@debian.org>:
3547         * build-aux/config.guess (SX-8:SUPER-UX:*:*): New.
3549         2006-11-08  Ben Elliston  <bje@gnu.org>
3551         * build-aux/config.guess (authenticamd:Interix*:[3456]*): Another AMD64.
3553         2006-11-07  Steve Woodford  <scw@NetBSD.org>
3554                     Ben Elliston  <bje@gnu.org>
3556         * build-aux/config.guess (*:NetBSD:*:*): Handle sh5el arch.
3557         * build-aux/config.sub (sh5el): New basic_machine.
3560         Import this change from coreutils:
3562         2006-02-13  Jim Meyering  <jim@meyering.net>
3564         * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
3567         Import this change from gnustandards via gnulib:
3569         2006-11-15  Karl Berry  <karl@gnu.org>
3571         * standards.texi: core -> memory, throughout.
3572         (CPU Portability): show correct example of calling write
3573         on a char value; thanks to Paul Eggert for the code.
3574         Both of these suggestions from Eugene Y. Vasserman.
3577         Import these changes from texinfo via gnulib:
3579         2006-11-08  Karl Berry  <karl@gnu.org>
3581         * build-aux/texinfo.tex (\dopdfimage): look for png, jpg/jpeg/JPG, and
3582           as well as pdf images, since they are supported in pdftex with
3583           no further ado.
3585         2006-11-05  Karl Berry  <karl@gnu.org>
3587         * doc/texinfo.tex (Image Syntax): don't mention GIF any more.
3589 2006-11-13  Paul Eggert  <eggert@cs.ucla.edu>
3591         * NEWS: Document the AC_ARG_WITH change.
3593 2006-11-13  Bruno Haible  <bruno@clisp.org>
3595         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): For --with, --without
3596         options, transliterate also dots to underscores.
3597         (_AC_ENABLE_IF): Transliterate also dots to underscores.
3598         * doc/autoconf.texi (External Software): Document that AC_ARG_WITH's
3599         first argument may also contain dots.
3601 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
3603         * tests/mktests.sh (ac_exclude_list): Exclude AC_PROG_CXX_C_O, for
3604         benefit of platforms like Solaris+GCC where it is common to have a
3605         non-working g++ installation.
3607 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3608         and Joel E. Denny  <jdenny@ces.clemson.edu>
3609         and Paul Eggert  <eggert@cs.ucla.edu>
3611         * tests/autotest.at (AT_CHECK_AT_TITLE): Fix shell quoting bugs
3612         and non-portable sed scripts, and use $CONFIG_SHELL when invoking
3613         ./micro-suite.
3615 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
3617         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Set
3618         ac_cv_type_long_long_int to 'yes' instead of 'cross-compiling'.
3619         Imported from a similar patch to gnulib by Bruno Haible.
3621 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
3623         * NEWS: New macros AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS.
3624         * doc/autoconf.texi (C Compiler): Document them.
3625         * lib/autoconf/c.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS):
3626         New macros, taken from gnulib.
3628 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
3630         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
3631         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
3632         Matthew Woehlke.
3634 2006-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3636         * tests/torture.at (Configuring subdirectories): Do not skip
3637         Automake 1.10 nor future Automake 11.1 (sic).
3639 2006-10-26  Joel E. Denny  <jdenny@ces.clemson.edu>
3640         and Stepan Kasal  <kasal@ucw.cz>
3642         Handle special characters in test case titles correctly.
3643         * lib/autotest/general.m4 (AT_INIT): M4-quote and AS_ESCAPE AT_help_all
3644         properly.
3645         (AT_SETUP): M4-quote and AS_ESCAPE the title properly everywhere.
3646         * tests/autotest.at (AT_CHECK_AT_TITLE): Add EXPANDED-TITLE-TO-TEST
3647         argument.  Extend to check titles printed by ./micro-suite and
3648         ./micro-suite -l and the title in micro-suite.log.
3649         (Backquote in a test title,
3650         Single-quote in a test title,
3651         Double-quote in a test title): Don't expect failure anymore.
3652         (Backslash in a test title): Put a non-whitespace character after the
3653         backslash so that Bourne shells might actually see it as an escape
3654         sequence.
3655         (Brackets in a test title,
3656         Pound in a test title,
3657         Comma in a test title,
3658         Quoted Macro in a test title,
3659         Macro in a test title,
3660         Macro with single-quote in a test title): New tests.
3661         (Macro with backquote in a test title,
3662         Macro with double-quote in a test title,
3663         Macro with backslash in a test title): New tests expected to fail.
3664         * tests/torture.at (#define header templates): M4-quote this title in
3665         AT_SETUP call so that no M4 code is commented inadvertently somewhere.
3666         The visible effect was a stray [] in the testsuite output.
3668 2006-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3670         * doc/autoconf.texi (Limitations of Builtins): Do not invoke
3671         `trap ... 0' inside a function, for AIX sh.
3673 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
3675         * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0,
3676         since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build
3677         5363) simply issues a warning when dividing by zero at compile
3678         time.  Problem reported by Elias Pipping.
3680 2006-10-26  Eric Blake  <ebb9@byu.net>
3682         * THANKS: Update.
3683         * doc/autoconf.texi (Evaluation Macros): Improve the example to
3684         show effect on macros that expand with commas.
3685         Reported by Joel E. Denny.
3687         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
3688         Also work with M4 1.4.8.
3690 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
3692         * doc/autoconf.texi (Slashes): Document Tru64 4.0 bug reported by
3693         Jim Meyering.
3695 2006-10-25  Stepan Kasal  <kasal@ucw.cz>
3697         * tests/tools.at (autom4te --force): New test, verifies that
3698         `--force' always rewrites the output file.
3700 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
3702         * doc/autoconf.texi (Limitations of Usual Tools): Document that rm
3703         needs operands on NetBSD 2.0.2.  Problem reported by Bruno Haible.
3705 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
3707         * tools/trace.at (autoconf --trace: user macros): Test `$%'.
3709 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
3711         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
3712         If FUNCTION-BODY is nonempty, use AC_LINK_IFELSE rather than
3713         AC_COMPILE_IFELSE, to work around problem with OSF/1 4.0F fseeko
3714         reported by Nelson H. F. Beebe for Coreutils 6.4.
3716         * tests/tools.at (autoconf --trace: user macros): Remove test
3717         for tracing multiline macros, since m4 1.4.7a uses a different
3718         way to number lines.  Problem reported by Ralf Wildenhues.
3720 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
3722         * bin/autom4te.in (handle_m4): Do not redirect stdin to
3723         /dev/null since the heuristics for interactive behaviour was
3724         fixed in CVS m4.
3726         * bin/autom4te.in: With --force, always refresh the output
3727         file.  Problem reported by Greg Schafer <gschafer@zip.com.au>.
3729         * bin/autoconf.as: Fix the verbose message at the end.
3731 2006-10-23  Paul Eggert  <eggert@cs.ucla.edu>
3733         * configure.ac (AC_INIT): Bump to 2.60c.
3734         * NEWS: Likewise.
3736 2006-10-22  Paul Eggert  <eggert@cs.ucla.edu>
3738         * NEWS: Version 2.60b.
3740         Import this change from Texinfo:
3741         2006-10-15  Karl Berry  <karl@gnu.org>
3742         * build-aux/texinfo.tex: automake 1.10
3744         * NEWS: Remove AC_CACHE_CHECK_INT.
3745         * doc/autoconf.texi (Caching Results): Likewise.
3746         * lib/autoconf/general.m4 (_AC_CACHE_CHECK_INT): Renamed from
3747         AC_CACHE_CHECK_INT, since it's no longer public.
3748         * lib/autoconf/types.m4: All uses of AC_CACHE_CHECK_INT changed.
3749         * tests/base.at (AC_COMPUTE_INT): Test this, not AC_CACHE_CHECK_INT.
3751 2006-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3753         * doc/autoconf.texi (Limitations of Usual Tools): Fix two typos.
3755 2006-10-19  Eric Blake  <ebb9@byu.net>
3757         * lib/m4sugar/m4sugar.m4 (m4_mkstemp): New macro.
3758         (m4_maketemp): Avoid warnings with M4 1.9a.
3759         * lib/emacs/autoconf-mode.el (autoconf-font-lock-keywords): Color
3760         m4_mkstemp.
3761         * doc/autoconf.texi (Redefined M4 Macros): Document m4_mkstemp.
3762         * NEWS: Likewise.
3764 2006-10-16  Eric Blake  <ebb9@byu.net>
3766         * doc/autoconf.texi (Setting Output Variables): Fix typo.
3768         * bin/autoconf.as (version): Reword to match GNU Coding
3769         Standards.
3770         * bin/autoheader.in (version): Likewise.
3771         * bin/autom4te.in (version): Likewise.
3772         * bin/autoreconf.in (version): Likewise.
3773         * bin/autoscan.in (version): Likewise.
3774         * bin/autoupdate.in (version): Likewise.
3775         * bin/ifnames.in (version): Likewise.
3777 2006-10-14  Stepan Kasal  <kasal@ucw.cz>
3779         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Expand $1 before
3780         looking for special shell characters.
3781         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Do not expand the
3782         macro defined by AS_VAR_PUSHDEF before passing it as a
3783         parameter.
3784         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
3785         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB):
3786         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
3787         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL):
3788         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_DIRENT):
3789         Likewise.
3790         * lib/autotest/general.m4 (AT_INIT): Quote parameters of
3791         AS_VAR_* properly.
3792         * tests/m4sh.at (AS_LITERAL_IF): New test.
3794 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3796         (Imported from Automake.)
3797         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
3798         which incorrectly sets the mode of an existing destination
3799         directory.  In some cases the unpatched install-sh could do the
3800         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
3801         system.  We hope this is rare in practice, but it's clearly worth
3802         fixing.  Problem reported by Alex Unleashed in
3803         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
3804         Also, don't bother to check for -m bugs unless we're using -m;
3805         suggested by Stepan Kasal.
3807 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3809         Import this change from Automake:
3811         2006-08-23  Alexandre Duret-Lutz  <adl@gnu.org>
3812         * lib/Autom4te/ChannelDefs.pm (usage): Mention that -Wportability
3813         is enabled by default with gnu and gnits strictness.
3814         Report from Bruno Haible.
3816         2006-03-10  Alexandre Duret-Lutz  <adl@gnu.org>
3817         * lib/Autom4te/ChannelDefs.pm: Make -Wportability the default in
3818         gnu and gnits modes.
3820         Import this change from Config:
3822         2006-09-20  Ben Elliston  <bje@gnu.org>
3823         * build-aux/config.sub (score, score-*): New.
3825         Import this change from Gnulib:
3827         2006-09-16  Karl Berry  <karl@gnu.org>
3828         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
3829         to avoid sectioning errors.
3831         Import these changes from Texinfo:
3833         2006-10-04  Karl Berry  <karl@gnu.org>
3834         * build-aux/texinfo.tex (\singlequotechar): rename to \codequoteright.
3835         (\quoteexpand): rename to \rquoteexpand.
3836         (\codequoteleft): new def, to look for @set codequotebacktick.
3837         (\lquoteexpand, \quoteexpand): new defs.
3838         (\lquoteChar, \rquoteChar, \dashChar, \underChar: new \chardef's.
3839         (\code): must use new \...Char values, since now ` is active.
3841         2006-08-26  Karl Berry  <karl@gnu.org>
3842         * build-aux/texinfo.tex (\textdegree): New command.
3844         2006-08-12  Karl Berry  <karl@gnu.org>
3845         * build-aux/texinfo.tex (error \box0): smaller font.
3847 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3849         * doc/autoconf.texi (Autoheader Macros): Fix syntax error.
3851 2006-10-13  Stepan Kasal  <kasal@ucw.cz>
3853         * doc/autoconf.texi (Autoheader Macros): Warn that the text
3854         added to the template can get mangled.
3856 2006-10-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3858         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): In the test,
3859         include the default headers, and redefine obstack_chunk_alloc
3860         and obstack_chunk_free.  Fixes false failure with glibc.
3862 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3864         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Set as_executable_p,
3865         for backward compatibility with Libtool 1.5.22.  Problem reported
3866         by Ralf Wildenhues.
3868 2006-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3870         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL): Require
3871         AC_PROG_CC.
3872         Report by IOhannes m zmoelnig <zmoelnig@iem.at>.
3874 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3876         * NEWS: AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for
3877         the NonStop platform.
3878         * doc/autoconf.texi (Posix Variants): Likewise.
3879         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
3881         * lib/m4sugar/m4sh.m4 (AS_TEST_X): New macro.
3882         (AS_EXECUTABLE_P): Use as_test_x rather than as_executable_p.
3883         (_AS_TEST_PREPARE): Set as_test_x rather than as_executable_p.
3884         Use a better substitute, by inspecting the output of "ls"
3885         rather than just using ":".
3886         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Use AS_TEST_X
3887         rather than AS_EXECUTABLE_P, since we needn't worry about
3888         non-regular files here.
3890         * NEWS: Autoconf-generated shell scripts no longer export BIN_SH,
3891         due to configuration hassles with this.  See Tonya Underwood's report
3892         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00003.html>.
3893         * doc/autoconf.texi (Special Shell Variables): Likewise.
3895 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3896             Stepan Kasal  <kasal@ucw.cz>
3898         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Don't set BIN_SH.
3899         (_AS_DETECT_BETTER_SHELL): Don't look in /usr/bin/posix.
3901 2006-10-11  Stepan Kasal  <kasal@ucw.cz>
3903         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Move the
3904           initialization which is not inherited through the environment
3905         (_AS_BOURNE_COMPATIBLE): ... to this new macro.
3906         (_AS_RUN): Call _AS_BOURNE_COMPATIBLE, not AS_BOURNE_COMPATIBLE.
3908 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
3910         * doc/autoconf.texi (Limitations of Usual Tools): Describe
3911         problems with mkdir -p -m.
3913 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
3915         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Remove
3916         comment about ac_cpp_err; it was incorrect, and anyway
3917         ac_cpp_err is being removed below.
3918         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE): Don't
3919         set ac_cpp_err to 'yesyes' if preproc_warn_flag and werror_flag
3920         are both 'yes'.  In fact, don't bother setting ac_cpp_err at all;
3921         nobody uses it.
3922         (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't log our funky tests
3923         with werror_flag and conftest.err and so forth.  This is more
3924         compatible with how _AC_PROG_PREPROC_WORKS_IFELSE behaves,
3925         and anyway the user shouldn't normally want to see this gorp logged.
3926         Problem reported by Ralf Wildenhues.
3927         * lib/autoconf/lang.m4 (AC_LANG_WERROR): werror_flag's default is
3928         empty, not 'no', since the rest of the code uses 'test -z'.
3930 2006-10-04  Paul Eggert  <eggert@cs.ucla.edu>
3932         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
3933         Use a single call to AC_DO_TOKENS rather than multiple, for
3934         efficiency.
3935         (_AC_LINK_IFELSE): Test that resulting file is executable.
3936         Problem reported by mwoehlke in
3937         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00048.html>.
3939         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Use "test -x /" rather
3940         than creating a file to use with test -x; this is much faster.
3942 2006-10-02  Bruno Haible  <bruno@clisp.org>
3944         * lib/autom4te.in (Automake-preselections): Add
3945         AM_GNU_GETTEXT_INTL_SUBDIR, for automake 1.10.
3947 2006-09-27  Stepan Kasal  <kasal@ucw.cz>
3949         * doc/autoconf.texi (Writing testsuite.at): Fix a typo: for
3950         standard error, `experr' should be used, not `expout'.
3952 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3954         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Don't compile the
3955         fseeko testing program twice; just use the earlier result.
3956         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
3957         Set cache var to 'unknown' (not 'no') if leaving the macro unset
3958         still doesn't let the program compile.
3959         (AC_SYS_LARGEFILE): Test for _LARGE_FILES only if earlier tests
3960         failed.
3962         * lib/autoconf/functions.m4: Fix problems reported by Ralf Wildenhues.
3963         (AC_FUNC_ERROR_AT_LINE): Don't bother to check for error.h.  Just
3964         include it, without including anything else.
3965         (AC_FUNC_FSEEKO): Avoid gcc -Wall warnings about constant
3966         expressions.
3967         (AC_FUNC_STRNLEN): Require AC_USE_SYSTEM_EXTENSIONS.
3969 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3971         * lib/autoconf/functions.m4 (AC_FUNC_ERROR_AT_LINE): Check for
3972         `error.h', and include it, for a `error_at_line' prototype.
3973         Use a nonempty format string in the link test.
3974         * lib/autoconf/functions.m4 (AC_FUNC_WAIT3): Include <sys/wait.h>,
3975         for a declaration of wait3.
3977 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3979         * NEWS: AC_CHECK_DECL now also works with aggregate objects.
3980         * doc/autoconf.texi (Generic Declarations): Clarify that AC_CHECK_DECL
3981         can apply to constants too, and that it checks for macro defns.
3982         * lib/autoconf/general.m4 (AC_CHECK_DECL): Assume C89 or better,
3983         and simply cast the identifier to void.  This handles structure
3984         values.  Problem reported by Ralf Wildenhues.
3985         * tests/semantics.at (AC_CHECK_DECLS): Also check enums.
3987 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3989         * tests/semantics.at (AC_CHECK_DECLS): Also check macros,
3990         structure, and function symbols.
3992 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3994         * tests/semantics.at (AC_CHECK_MEMBERS): Also test with a struct
3995         member.
3997 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
3999         * NEWS: Recommend M4 1.4.7 instead of 1.4.6.
4000         * README: Likewise.
4001         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
4003 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
4004         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4006         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): Avoid `gcc -Wall'
4007         warnings (uninitialized value).
4008         (AC_FUNC_UTIME_NULL): Likewise, test for and include <utime.h> if
4009         present.
4010         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Likewise, add
4011         parentheses.
4012         (AC_STRUCT_TM): Likewise, avoid unused variables.
4014 2006-09-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4016         * lib/autoconf/c.m4 (_AC_ARG_VAR_LDFLAGS): Update comment.
4017         (_AC_ARG_VAR_LIBS): New macro: let LIBS be precious.
4018         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Call _AC_ARG_VAR_LIBS.
4019         * lib/autoconf/fortran.m4 (AC_PROG_F77, AC_PROG_FC): Likewise.
4020         Report by Olly Betts.
4022 2006-09-19  Eric Blake  <ebb9@byu.net>
4024         * m4/m4.m4: Change copyright.
4025         * configure: Regenerate.
4026         * Makefile.in: Likewise.
4027         * bin/Makefile.in: Likewise.
4028         * doc/Makefile.in: Likewise.
4029         * lib/Makefile.in: Likewise.
4030         * lib/Autom4te/Makefile.in: Likewise.
4031         * lib/autoconf/Makefile.in: Likewise.
4032         * lib/autoscan/Makefile.in: Likewise.
4033         * lib/autotest/Makefile.in: Likewise.
4034         * lib/emacs/Makefile.in: Likewise.
4035         * lib/m4sugar/Makefile.in: Likewise.
4036         * man/Makefile.in: Likewise.
4037         * tests/Makefile.in: Likewise.
4039         * m4/m4.m4 (AC_PROG_GNU_M4): Check for m4 --debugfile support.
4040         * bin/Makefile.am (edit): Substitute M4_DEBUGFILE.
4041         * bin/autom4te.in (handle_m4): Favor --debugfile over misnamed
4042         --error-output, to avoid warnings with M4 2.0.
4044 2006-09-19  Stepan Kasal  <kasal@ucw.cz>
4046         * lib/autoconf/libs.m4 (AH_CHECK_LIB): Fix quoting, to be
4047           consistent with _AH_CHECK_FUNCS and _AH_CHECK_HEADERS.
4048         * lib/autoconf/headers.m4 (AH_CHECK_HEADERS_DIRENT): Likewise.
4050 2006-09-15  Stepan Kasal  <kasal@ucw.cz>
4052         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Eliminate the
4053         expansion of AC_CHECK_FUNCS.
4055 2006-09-14  Stepan Kasal  <kasal@ucw.cz>
4057         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Remove a
4058         mistaken comment: the path has to be relative; do not use
4059         the path at runtime.
4061 2006-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4063         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote the
4064         argument to `--prefix' for sub-configure scripts.
4065         Pass `--silent' to sub-configure scripts.
4066         * tests/torture.at (Configuring subdirectories): Add tests
4067         for both changes.
4068         * doc/autoconf.texi (Setting Output Variables): Fix example to
4069         not show `--silent' being passed to a `configure' re-run.
4071 2006-09-12  Paul Eggert  <eggert@cs.ucla.edu>
4073         * doc/autoconf.texi (Input): Clarify role of AC_CONFIG_MACRO_DIR.
4074         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Do not check
4075         for the existence of the directory at configure-time.  That's
4076         too late, anyway.  Problem reported by Stefan Seefeld.
4078         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Avoid bug in UnixWare
4079         7.1.4 /usr/bin/posix/sh described by Tim Rice in
4080         <http://lists.gnu.org/archive/html/bug-autoconf/2006-09/msg00017.html>.
4082 2006-09-11  Stepan Kasal  <kasal@ucw.cz>
4084         * tests/local.at (AT_CHECK_M4): Fix this so that the testsuite
4085         works with GNU M4 1.4.3 again; make the normalized form
4086         match the current m4 message; fix the description.
4087         * test/tools.at (autom4te cache): Adapt to the change.
4089 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4091         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):  Add year_2050_test
4092         to catch glibc bug 2821
4093         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
4095         Merge from gnulib as follows: Use AC_CHECK_HEADERS_ONCE instead of
4096         AC_CHECK_HEADERS, and likewise for AC_CHECK_FUNCS_ONCE and
4097         AC_CHECK_FUNCS.  Don't check for stdlib.h, since we now
4098         assume C89.
4100 2006-09-08  Stepan Kasal  <kasal@ucw.cz>
4102         * lib/autom4te.in (Autoconf-without-aclocal-m4): Move the
4103         preselections ...
4104         (Autoconf): ... here.
4105         (Autoscan-preselections): Delete.
4107 2006-09-07  Stepan Kasal  <kasal@ucw.cz>
4109         * lib/autom4te.in (Automake-preselections): Preselect
4110         AM_ENABLE_MULTILIB.
4112 2006-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4114         * doc/autoconf.texi (Preset Output Variables): srcdir and
4115         top_srcdir are not necessarily relative.  Problem reported
4116         by Dries Kimpe.
4118 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4120         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Prefer xlf90/xlf95 over
4121         f90/f95 because the latter drivers of AIX Fortran 9.1 do not
4122         accept files with extension `.f'.  For consistency, also prefer
4123         xlf over f77.
4124         * doc/autoconf.texi (Fortran Compiler): Remove mention of bug
4125         from last patch.
4127 2006-09-05  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
4129         * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB): Added substitution
4130         of ERLANG_LIB_VER_* variables.
4131         * doc/autoconf.texi (Erlang Libraries): Document ERLANG_LIB_VER_*
4132         variables.
4134 2006-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4135         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4137         * doc/autoconf.texi (Limitations of Builtins): Document 'unset'
4138         bugs of Bash 2.01 and 2.05a.
4139         (Fortran Compiler): Document that AC_PROG_CC should be called
4140         before AC_PROG_FC, due to a bug in Autoconf.
4142 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4144         * NEWS: New macro AC_CACHE_CHECK_INT.  It replaces the
4145         old AC_COMPUTE_INT, which now behaves like _AC_COMPUTE_INT
4146         except the first two arguments are reversed.
4147         * doc/autoconf.texi (Caching Results): New macro AC_CACHE_CHECK_INT.
4148         (Generic Compiler Characteristics): AC_COMPUTE_INT no longer
4149         caches nor outputs a diagnostic.  Suggested by Bruno Haible.
4150         * lib/autoconf/general.m4 (AC_CACHE_CHECK_INT): New macro,
4151         equivalent to the old AC_COMPUTE_INT.
4152         (AC_COMPUTE_INT): No longer caches or reports.  New signature.
4153         All uses changed to AC_CACHE_CHECK_INT.
4154         * tests/base.at (AC_CACHE_CHECK_INT): New test.
4155         * tests/mktests.sh (ac_exclude_list): Add AC_CACHE_CHECK_INT.
4157 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
4159         * NEWS: AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_FUNC_GETLOADVG,
4160         and AC_REPLACE_FNMATCH are now obsolescent in Autoconf.  New
4161         programs should use their Gnulib counterparts.
4162         * doc/autoconf.texi (Particular Functions): Likewise.
4163         (Macro Names, testsuite Invocation): Replace uses of these
4164         obsolete macros with uses of non-obsolete macros.
4166 2006-08-29  Eric Blake  <ebb9@byu.net>
4168         * configure.ac (AC_INIT): Bump to 2.60b.
4169         * NEWS: Update.
4171 2006-08-28  Eric Blake  <ebb9@byu.net>
4173         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Fix logic that was
4174         mistakenly swapped on 2006-08-15.
4176 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
4178         * NEWS: Version 2.60a.
4180 2006-08-25  Stepan Kasal  <kasal@ucw.cz>
4182         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Remove the IPA/IPO
4183         file created by the PGI compiler.
4185 2006-08-25  Noah Misch  <noah@cs.caltech.edu>
4187         * lib/Autom4te/General.pm (END): Use `File::Path::rmtree' to
4188         simplify the code.
4190 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
4192         Fix Lex library problem reported to us by Julio Garvia.
4193         * doc/autoconf.texi (Particular Programs): YYTEXT_POINTER is
4194         for the default, which the user can override.
4195         * lib/autoconf/programs.m4 (AC_PROG_LEX): Let _AC_PROG_LEX_YYTEXT_DECL
4196         deal with LEXLIB.
4197         (_AC_PROG_LEX_YYTEXT_DECL): Handle caching correctly; the old code
4198         didn't work if some values were cached but not others.  Test for
4199         broken lex libraries like native ia64-hp-hpux11.22; see
4200         <http://sources.redhat.com/ml/binutils/2003-12/msg00337.html>, and
4201         work around the problem by preferring an empty LEXLIB to -lfl or
4202         -ll.  Let the user set LEXLIB='' to indicate no library needed.
4204         * NEWS: Recommend M4 1.4.6 instead of 1.4.5.
4205         * README: Likewise.
4206         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
4208 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
4210         Rework to use more-modern build style.
4211         Many files are renamed; all uses of their names were changed.
4212         * .x-sc_trailing_blank: Renamed from .x-sc_trailing_space.
4213         * .x-sc_useless_cpp_parens: New file.
4214         * build-aux/config.guess: Renamed from config/config.guess.  Update.
4215         * build-aux/config.sub: Renamed from config/config.sub.  Update.
4216         * build-aux/elisp-comp: Renamed from config/elisp-comp.
4217         * build-aux/install-sh: Renamed from config/install-sh.  Update.
4218         * build-aux/mdate-sh: Renamed from config/mdate-sh.
4219         * build-aux/missing: Renamed from config/missing.
4220         * build-aux/texinfo.tex: Renamed from config/texinfo.tex.  Update.
4221         * build-aux/vc-list-files: Renamed from config/vc-list-files.
4222         * config/Makefile.am: Removed.
4223         * config/mkinstalldirs: Removed.
4224         * config/move-if-change: Removed.
4225         * m4/m4.m4: Renamed from config/m4.m4.  Add (C) to copyright notice.
4226         * Makefile.am (SUBDIRS): Remove config.
4227         (ACLOCAL_AMFLAGS): Include from m4, not config.
4228         (EXTRA_DIST): Add config/announce-gen, config/prev-version.txt.
4229         (WGET, WGETFLAGS): New macros, since Makefile.maint no longer does this.
4230         (autom4te-update): Rewrite with a loop.  Get from gnulib, not automake.
4231         Fail if there's an error.
4232         * Makefile.cfg (move_if_change): Remove.
4233         (wget_files): Remove.
4234         (cvs_executable_files): New macro.
4235         (cvs_files): Use it.  Remove mkinstalldirs.  Add fdl.texi.
4236         (executable-update): Use $(cvs_executable_files).
4237         (local-checks-to-skip): Remove.
4238         * Makefile.maint: Merge from coreutils, plus add our own changes
4239         (gzip_rsyncable): New macro.
4240         (GZIP_ENV): Use it.
4241         (CVS_LIST): Use build-aux/vc-list-files.
4242         (VERSION_REGEXP): New macro.
4243         (local-checks-available): Add patch-check, $(syntax-check-rules),
4244         check-AUTHORS.
4245         (syntax-check-rules): Compute dynamically.
4246         (sc_cast_of_x_alloc_return_value): Work even if no source files.
4247         (sc_cast_of_alloca_return_value): Likewise.
4248         (sc_prohibit_atoi_atof): Simplify regexp.
4249         (sc_no_if_have_config_h, sc_require_config_h):
4250         (sc_prohibit_assert_without_use,
4251         (sc_obsolete_symbols): Check for O_NDELAY.
4252         (sc_texi_notab): Remove.
4253         (sc-changelog): Don't make an exception for '----' lines.
4254         (.re-list): Remove, so we don't have a junk file behind.
4255         (sc_system_h_headers): Remove the need for .re-list.
4256         (sc_the_the):  New rule.
4257         (sc_tight_scope): Simplify.
4258         (sc_trailing_blank): Renamed from sc_trailing_space.
4259         (longopt_re): New macro.
4260         (sc_two_space_separator_in_usage): New rule.
4261         (sc_unmarked_diagnostics): Look at all files under CVS.
4262         (sc_useless_cpp_parens, patch-check, check-AUTHORS): New rules.
4263         (news-date-check, changelog-check): Version is OK.
4264         (po-check): Look for lib files even if not in CVS.
4265         (copyright-check): Use $() not ``.
4266         (maintainer-distcheck): Do not depend on changelog-check.
4267         (my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz).
4268         Also check for -Wpointer-arith.
4269         (WGET, WGETFLAGS, tgz-md5, tgz-sha1, bz2-md5, bz2-sha1):
4270         (xdelta-md5, xdelta-sha1, tgz-size, bz2-size, xd-size, rel-check):
4271         Remove.
4272         (announcement): Add --gpg-key-id arg.
4273         (cvs-sv): Remove.
4274         (move_if_change): Just use mv.
4275         (local_updates: Remove wget-update, po-update.
4276         (po_repo, do-po-update, po-update, wget_files, get-targets): Remove.
4277         (config.guess-url_prefix, config.sub-url_prefix): Remove.
4278         (ansi2knr.c-url_prefix, texinfo.tex-url_prefix):
4279         (standards.texi-url_prefix, make-stds.texi-url_prefix, target, url):
4280         ($(get-targets)): Remove.
4281         (cvs_files): Remove missing, mkinstalldirs, ansi2knr.c.
4282         (gnulib_repo): Renamed from automake_repo.  Get from gnulib now.
4283         (cvs-update): Get from gnulib.
4284         (emut_upload_commands): gnupload is in build-aux now.
4285         (alpha beta major): Add changelog-check.  Check version.
4286         * configure.ac (AC_CONFIG_AUX_DIR): Renamed from config to build-aux.
4287         (AC_CONFIG_FILES): Remove.
4288         * bin/autoconf.as: Add spaces to avoid distcheck warning.
4289         * config/announce-gen: Sync from coreutils.
4290         * doc/make-stds.texi: Sync from gnulib.
4291         * doc/standards.texi: Likewise.
4292         * man/Makefile.am: Adjust for config -> build-aux renaming.
4293         * tests/Makefile.am: Prefer $(FOO) to @FOO@.
4294         * tests/local.at: Adjust from config -> build-aux renaming.
4295         * tests/tools.at: Likewise.
4296         * tests/torture.at: Likewise.
4298         * NEWS: The C99 check now tests for vararg macros and 64-bit
4299         preprocessor ints.
4300         * doc/autoconf.texi (C Compiler): Document // comments, va_copy.
4301         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Test varargs macros and
4302         64-bit preprocessor ints.  Check for static initialization of
4303         long long.  Remove unnecessary casts.
4305 2006-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4307         * doc/autoconf.texi (Particular Programs): Mention that
4308         @INSTALL@ and @MKDIR_P@ may vary for different output files.
4309         Reported by Alexandre Duret-Lutz.
4311 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
4313         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
4314         -lgcc?* and -lSystem, for Darwin/MacOS X.  Problem reported by
4315         Bill Northcott in
4316         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00083.html>.
4318 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
4320         * lib/autoconf/c.m4 (AC_C_CONST): Don't used shadowed vars, to
4321         pacify insanely picky compilers.  Problem reported by Eric Blake.
4323         * doc/autoconf.texi (Posix Variants): INTERACTIVE Unix is no
4324         longer supported by Sun.
4326 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4328         * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
4329         rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
4330         -Wundef -Werror".  Problem reported by David Fang in
4331         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
4332         * doc/autoconf.texi (Header Templates, Default Includes):
4333         (Particular Functions, Generic Functions, Header Portability):
4334         (Particular Headers, Generic Headers, Generic Declarations, Guidelines):
4335         (Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
4336         (Present But Cannot Be Compiled, Preprocessor Symbol Index):
4337         Prefer #ifdef to #if.
4338         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
4339         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
4340         (AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
4341         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
4342         Likewise.
4343         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
4344         (AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
4345         * lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
4346         (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
4347         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
4348         S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
4349         this.
4351 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
4353         * doc/autoconf.texi (Limitations of Usual Tools): Document sed
4354         problems with arg script text that doesn't end in newline, and
4355         with '-e a...'.  Problems reported by Ralf Wildenhues.
4357 2006-08-12  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
4359         * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
4360         check for libXt by a check for libX11.
4362 2006-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4364         * doc/autoconf.texi (config.status Invocation): Adjust according
4365         to last change.
4367 2006-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4369         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
4370         --help' should mention that `--version' outputs configuration
4371         settings.  Report by Bruno Haible.
4373 2006-08-06  Paul Eggert  <eggert@cs.ucla.edu>
4375         Fix test suite failures reported by Pierre in
4376         <http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
4377         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
4378         the compiler created a file "b.out" when it didn't create anything
4379         at all.
4380         * lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
4381         Discard stderr too, when invoking the test script.
4383 2006-08-05  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
4385         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
4386         in the restoring of the werror flag.
4388 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4390         * doc/autoconf.texi (Volatile Objects): Be even a little
4391         less skeptical about "volatile", after discussion with
4392         Bruno Haible on bug-gnulib.
4393         (Limitations of Usual Tools): Warn about sed stripping
4394         leading white space from text.  From Bruno Haible.
4396 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
4398         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
4399         compiler complains about it, even if things works after the
4400         complaint.  Problem reported by Peter O'Gorman.
4402         * doc/autoconf.texi (Preset Output Variables): Document CFLAGS,
4403         CPPFLAGS, and LDFLAGS better.  Problem reported by Bruno Haible.
4404         Similarly for CXXFLAGS, OBJCFLAGS, ERLCFLAGS.
4406 2006-07-17  Paul Eggert  <eggert@cs.ucla.edu>
4408         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space
4409         after -R regardless of host.  Patrick Welche reports that this
4410         fixes things on NetBSD 3.99.
4412         * NEWS: Recommend M4 1.4.5.
4413         * README: Likewise.
4414         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
4415         * tests/tools.at (autom4te cache): Update wording of diagnostic
4416         to match M4 1.4.5.
4418 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
4420         * doc/autoconf.texi (C Compiler): Add a ref to Volatile Objects
4421         under AC_C_VOLATILE.
4422         (Volatile Objects): Be a little less skeptical about what
4423         "volatile" means.  Derived from thoughts by Ben Pfaff in
4424         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00092.html>.
4426 2006-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4428         * doc/autoconf.texi: Fix some typos.
4430 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
4432         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
4433         more globally, since the 2006-06-30 patch didn't suffice.  Problem
4434         reported by Keith Marshall.  Also, don't bother with builddir2,
4435         since it shouldn't be needed any more.
4437 2006-07-07  Paolo Bonzini  <bonzini@gnu.org>
4439         * doc/autoconf.texi (Generic compiler characteristics):
4440         Document AC_COMPUTE_INT.  Fix wrong statements on Default
4441         Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.
4443         * lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
4444         (_AC_COMPUTE_INT): Add obsoletion warnings.
4445         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
4446         AC_COMPUTE_INT.
4448         * NEWS: Document change.
4450 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4452         * doc/autoconf.texi (Volatile Objects): New section.
4454         * NEWS: Document previous change.
4456 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
4458         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
4459         Require that long long int be at least 64 bits wide.  C99 requires
4460         this and enough programs depend on it so we should check for it.
4461         Bruno Haible reports in
4462         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00286.html>
4463         that long long int is 32 bits wide with some nonstandard compilers.
4464         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
4466 2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
4468         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
4469         to a nonexistent file, so that we don't have to worry about
4470         a local site configuration that doesn't use /usr/local.
4471         Problem reported by Keith Marshall in
4472         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00133.html>.
4474 2006-06-28  Paul Eggert  <eggert@cs.ucla.edu>
4476         * doc/autoconf.texi: Be more consistent about using @acronym with
4477         "HP" and "HP-UX".  Remove mention of OSF; the old version wasn't
4478         quite right (it talked about "OSF/Tru64", even though the
4479         operating systems were called OSF/1, Digital UNIX, and Tru64 UNIX,
4480         and it even mentioned "OSF 4"!) and at this point there's little
4481         reason to talk about OSF any more, since it died in 1994.
4482         (Specific Compiler Characteristics): Simplify example of
4483         negative-size array.
4484         (File Descriptors): Reorder to make the text flow better.
4485         Remove joke about "appreciate the various levels"; I didn't get it.
4486         Add remark about HP-UX sh -x bug with stderr noted by Bob Proulx in
4487         <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00225.html>.
4488         (File Descriptors, Limitations of Usual Tools):
4489         Tone down the advice against renaming or removing open files.
4490         (Limitations of Usual Tools): Add a new section, on 'rm'.
4492 2006-06-26  Stepan Kasal  <kasal@ucw.cz>
4494         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
4495         -lXt in LIBS, idea from Karsten Hopp; this was due since
4496         this change:
4498         2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4499         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
4500         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
4501         (which belong to Xt, not X itself).  See Debian bug 327655.
4503 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4505         * configure.ac (AC_INIT): Bump to 2.60a.
4506         * NEWS: Update.
4508 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4510         Version 2.60.
4512         * configure.ac, NEWS: Update.
4514 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4516         * config/texinfo.tex: Sync from upstream.
4518         * bin/autom4te.in (handle_traces): Transform the `@S|@'
4519         quadrigraph correctly in traces.
4521         * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
4522         Fix typos.
4524         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
4525         datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
4526         not defined.
4527         * doc/autoconf.texi (Changed Directory Variables): New node,
4528         to document the whole `datarootdir' business a bit better.
4529         * NEWS: Update.
4530         * tests/torture.at (datarootdir workaround): Extend test.
4531         Prompted by report by Alexandre Julliard.
4533 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
4535         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
4536         when using default mode of IBM C 6 for AIX.  Problem and two-line
4537         fix reported by Larry Jones.
4539 2006-06-22  Alexandre Julliard <julliard@winehq.org>
4541         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
4542         about literal '${datarootdir}' if a definition is found in the
4543         output file.
4545 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4547         * NEWS: Use "M4" rather than "m4" when appropriate.
4548         Problem reported by Eric Blake.
4549         * doc/autoconf.texi: Likewise.
4550         Use @acronym around BSD, GCC, and GNU when appropriate.
4551         (Why GNU M4): Renamed from "Why GNU m4".
4552         (Redefined M4 Macros): Mention that Posix
4553         m4wrap takes only 1 argument, but GNU M4 1.4.x takes more.
4554         (Buffer Overruns): Mention size_t and ptrdiff_t as alternatives
4555         to int.
4557 2006-06-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4559         * bin/autom4te.in (handle_output): Do not forbid the empty
4560         pattern.
4561         * tests/tools.at (autoconf: the empty token): New test.
4563 2006-06-20  Stepan Kasal  <kasal@ucw.cz>
4565         * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
4566         calls, so that we do not care whether they are LIFO or FIFO;
4567         in the m4_wrap, do not check which diversion is the topmost
4568         one, just check that the stack is balanced at the end.
4569         * lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
4570         base diversion forever--pop the previous diversion before
4571         opening the new one; consequently, remove the m4_wrap call.
4572         * lib/autotest/general.m4 (AT_INIT): Likewise.
4573         * tests/m4sugar.at: Do not use
4574         m4_wrap([m4_diversion_pop([..])]), for educational purposes.
4576 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
4577         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4579         * NEWS: Document that m4wrap/m4_wrap might not be LIFO.
4580         * doc/autoconf.texi (Redefined M4 Macros): Likewise.
4581         Rework example of m4wrap token-pasting trouble so that it doesn't
4582         care whether it's LIFO or FIFO.
4583         Fix some "contrary to"s that are awkward in English.
4585 2006-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4587         * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
4588         to `yes' instead of `int$1_t' if the type is found, for more
4589         consistent configure output (where $1 is the number of bits).
4590         (_AC_TYPE_UINT): Likewise for `uint$1_t'.
4591         Suggested by Bruno Haible.
4593         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
4594         needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
4595         with system headers.  Report by Bruno Haible.
4597 2006-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4599         * config/config.guess, config/config.sub: Sync from upstream.
4601         * bin/Makefile.am (autoconf.in): Use `--melt' for autom4te,
4602         in order to avoid picking up an older installed frozen m4sh.m4f.
4603         Besides an outdated shell startup, this could have been created
4604         by an earlier M4 version with incompatible frozen file format.
4606 2006-06-16  Paul Eggert  <eggert@cs.ucla.edu>
4608         * README: Recommend m4 1.4.4 instead of 1.4.3..
4609         * doc/autoconf.texi: Likewise.
4610         (Special Chars in Names): Say that $(.FOO) is portable, as
4611         suggested by Stepan Kasal.
4612         (Installation Directory Variables, Build Directories):
4613         (Automatic Remaking, Subdirectories, Fortran Compiler):
4614         (Making testsuite Scripts, Defining Directories):
4615         Quote variable usages better.
4616         (Making testsuite Scripts): Add clean-local rule to makefile
4617         snippet, by Eric Blake.
4618         (Installation Directory Variables): Fix table item font.
4619         Reword slightly to clarify.  Generalize advice about
4620         not using special characters to include all file-related
4621         vars, not just VPATH.
4622         (Special Chars in Variables): Warn about special characters in
4623         $(srcdir) too.
4624         (Assignments): Clarify default-value example as suggested by
4625         Ralf Wildenhues in
4626         <http://lists.gnu.org/archive/html/autoconf-patches/2006-06/msg00072.html>.
4627         (Special Shell Variables): Note leading ./ or ../, as suggested
4628         by Eric Blake.
4629         (Limitations of Builtins): Under cd, warn about CDPATH.
4630         (The Make Macro MAKEFLAGS): Untabify.  Problem reported by
4631         Ralf Wildenhues.
4633 2006-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4635         * doc/autoconf.texi (Configuration Actions): Remove duplicate
4636         `@var', for texi2html.
4637         (Systemology): Some more word wrapping, for DVI output.
4638         (autom4te Invocation): The short option for `--melt' is `-M',
4639         not `-m'.
4641 2006-06-15  Paul Eggert  <eggert@cs.ucla.edu>
4643         * doc/autoconf.texi: More formatting and English tweaks,
4644         many suggested by Ralf Wildenhues.
4645         Reword to avoid "@code{...}'s" and the like, since it's ugly
4646         with Emacs info mode.  discontents -> woes.
4647         Put a few "will"s back.  time stamp -> timestamp.
4648         side-effect -> side effect.
4650 2006-06-14  Paul Eggert  <eggert@cs.ucla.edu>
4652         * doc/autoconf.texi (Initializing configure, Shell Substitutions):
4653         Warn about $@ not persisting.  Problem reported by Julien Danjou in
4654         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372179>.
4655         (Special Chars in Names): Renamed from Leading _ in Macro Names.
4656         Mention other special chars, too.
4658 2006-06-14  Eric Blake  <ebb9@byu.net>
4660         * doc/autoconf.texi (The Make Macro MAKEFLAGS): New node.
4662 2006-06-13  Paul Eggert  <eggert@cs.ucla.edu>
4664         * doc/autoconf.texi: Some systematic minor improvements, as
4665         follows.  Use "makefile" when talking about makefiles
4666         generally (which might be named "makefile" or "Makefile" or even
4667         "foo.mk"), "Makefile" when talking about a specific makefile
4668         called "Makefile".  This unclutters the text from weird quotes
4669         (e.g., "`Makefile's" in info mode).  Similarly, use "@var{foo}
4670         values" rather than "@var{foo}s" and similar constructs containing
4671         "}s".  Use "Make rules" rather than "Makefile rules".  Minor
4672         English-language improvements.  Change the prefix "sub-" to "sub"
4673         and "re-" to "re".
4674         Put blank lines around examples more consistently.
4675         Avoid "rather" and "very" as intensifiers.
4676         Avoid "will" as an auxiliary.
4677         (Limitations of Make): Split this node into....
4678         (Portable Make, $< in Ordinary Make Rules, Failure in Make Rules):
4679         (Leading _ in Macro Names, Backslash-Newline-Newline):
4680         (Backslash-Newline Comments, Long Lines in Makefiles):
4681         (Macros and Submakes, The Make Macro SHELL, Comments in Make Rules):
4682         (obj/ and Make, make -k Status, VPATH and Make):
4683         (VPATH and Double-colon, $< in Explicit Rules):
4684         (Automatic Rule Rewriting, OSF/Tru64 Directory Magic):
4685         (Make Target Lookup, Single Suffix Rules, Timestamps and Make):
4686         New nodes, resulting from splitup of Limitations of Make.
4687         All cross-references changed.  Raise the top node from
4688         a section to a chapter, and all subnodes accordingly.
4689         Redo the introductory wording to match the new organization.
4690         (Installation Directory Variables): Use an example that is
4691         closer to what Autoconf actually does.  Mention that VPATH's
4692         value should not contain metacharacters or white space.
4693         (Fortran Compiler): Fix a VPATH bug in an example.
4694         (Leading _ in Macro Names): Mention that this problem is no longer
4695         of practical concern.
4696         (VPATH and Make): Reword the advice to make it clearer
4697         that Autoconf and Automake support VPATH in non-GNU make, but
4698         many packages have bugs in this area.
4699         ($< in Explicit Rules): Refer to Build Directories rather
4700         than using a (non-VPATH-safe) example.
4701         (Automatic Rule Rewriting): Mention the sort of disaster that
4702         can ensue with Solaris-style rule rewriting with VPATH.
4704 2006-06-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4706         * doc/install.texi (Compilers and Options): Weaken the
4707         suggestion to use GNU make for VPATH builds.
4709         * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
4710         AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
4712         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
4713         in regular expression.
4715 2006-06-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4717         * doc/autoconf.texi (Installation Directory Variables):
4718         Drop extra @samp from `@table @samp' item.
4719         (Limitations of Usual Tools): Comment fix.
4720         Do not nest @samp just to point to other table items.
4721         (Writing testsuite.at) <AT_CHECK>: The second argument to
4722         `@dvar' is already @samp'ed.
4723         (Making testsuite Scripts) <AC_CONFIG_TESTDIR>: Likewise,
4724         do not use @var in the second argument.
4726 2006-06-07  Paul Eggert  <eggert@cs.ucla.edu>
4728         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
4729         $as_shell.exe too.  Problem reported by Andreas Buening in
4730         <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
4732 2006-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4734         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
4735         `unused variable' compiler warning, for `-Wall -Werror'.
4736         Reported by Jaap Haitsma in
4737         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00012.html>.
4739 2006-06-06  Paul Eggert  <eggert@cs.ucla.edu>
4741         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
4742         case the compiler dumps core.  Problem reported for
4743         OpenServer 5.0.7 by Tim Rice in
4744         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
4745         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
4746         Likewise.
4748 2006-06-06  Tim Rice <tim@multitalents.net>.
4750         * lib/freeze.mk: Quiet check-forbidden-patterns so the string
4751         "ERROR" only shows up in "make check" output if there is an
4752         error.
4754 2006-06-06  Eric Blake  <ebb9@byu.net>
4756         * tests/tools.at (automatically allowed tokens): Fix typo.
4758 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
4760         * NEWS: Don't blame non-GNU VPATH compatibility issues on Automake.
4762         * doc/autoconf.texi (Integer Overflow): Mention that INT_MIN % -1
4763         typically overflows on x86 CPUs, even though the C standard
4764         requires otherwise.
4766 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4768         * configure.ac (AC_INIT): Bump to 2.59e.
4769         * NEWS: Update.
4771 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4773         Version 2.59d.
4775         * config/texinfo.tex: Sync from upstream.
4777         * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
4778         seen, invoke libtoolize with `--ltdl' argument.
4779         * lib/autom4te.in (Autoreconf-preselections): Adjust.
4780         * NEWS: Update.
4781         Suggested by Eric Blake.
4783 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
4785         * NEWS: Whoops!  AC_FUNC_STRNLEN isn't obsolescent.  Problem
4786         reported by Ralf Wildenhues.
4787         * doc/autoconf.texi (AC_FUNC_STRNLEN): Likewise.
4789 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4791         * THANKS: Update.
4793 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
4795         * doc/autoconf.texi: Modernize some of the references to Solaris.
4797 2006-06-05  Stepan Kasal  <kasal@ucw.cz>
4799         * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
4800         message issued by AC_REQUIRE.
4801         * tests/m4sugar.at: Check m4_require's error message.
4802         * tests/base.at: Check AC_REQUIRE's error message.
4803         * tests/local.at (AT_CHECK_M4): New macro, almost identical
4804         to...
4805         (AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
4806         AT_CHECK_M4.
4807         (AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
4808         `expout' as the last parameter.
4809         * tests/tools.at: Adapt to the above change.
4811 2006-06-04  Stepan Kasal  <kasal@ucw.cz>
4813         * doc/autoconf.texi (Limitations of Usual Tools): Correct
4814         information about race-free implementations of mkdir.
4816 2006-06-04  Eric Blake  <ebb9@byu.net>
4818         * bin/autoreconf.in (help): Document M4 environment variable.
4819         * bin/autoconf.as (Usage): Likewise.
4820         * bin/autom4te.in (help): Likewise.
4821         * doc/autoconf.texi (autom4te Invocation): Likewise.
4823 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
4825         * NEWS: GNU make now recommended for VPATH builds.
4826         Mention that some macros are now documented to be obsolescent.
4827         * doc/autoconf.texi:
4828         Prefer "current" to "modern" to describe
4829         currently-used (albeit perhaps old-fashioned) hosts.
4830         Mention which ancient features no longer need to be worried about.
4831         setgid -> set-group-ID
4832         setuid -> set-user-ID (these are the Posix terms)
4833         Fix some misuses of "only".
4834         (AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
4835         (AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
4836         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
4837         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
4838         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
4839         (AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
4840         (AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
4841         (AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
4842         (AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
4843         Mention that these macros are obsolescent.
4844         (Installation Directory Variables): shall -> should
4845         (File Descriptors): Mention that 0, 1, 2 might get reopened.
4846         Mention that it's now safe to use 3 and 4.
4847         (Limitations of Usual Tools): cp -r is now specified by Posix.
4848         Omit longwinded and obsolescent discussion of cp -f.
4849         Modernize discussion of expr, ls.
4850         (Limitations of Make): Modernize discussion of VPATH builds.
4851         Mention $? as a workaround in some cases.
4852         * doc/install.texi (Basic Installation):
4853         Mention "./configure; make; make install" first.  Be more
4854         specific about why this file is generic.  Remove unnecessary
4855         parens.  Remove misleading "only".  Remove obsolete advice
4856         about csh.  Don't say "configure" takes awhile; say it
4857         might take a while.  Suggest CFLAGS=-g rather than CFLAGS=-O2,
4858         and CC=c99 rather than CC=c89, as these are blessed by current
4859         Posix.  Recommend GNU make if doing a VPATH build.
4861 2006-06-03  Paul Eggert  <eggert@cs.ucla.edu>
4863         * doc/autoconf.texi: Use a consistent style "$ @kbd{...}" for
4864         examples involving shell prompts.
4866 2006-06-02  Stepan Kasal  <kasal@ucw.cz>
4867         and Paul Eggert  <eggert@cs.ucla.edu>
4869         * doc/autoconf.texi (Here-Documents): Add details about the
4870         pre-ksh93g bug.  Reword slightly to make it clearer.  Consistently
4871         use "here-documents" instead of "here documents".
4873 2006-06-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4875         * config/texinfo.tex, doc/standards.texi: Sync from upstream.
4877 2006-06-01  Paul Eggert  <eggert@cs.ucla.edu>
4879         * doc/autoconf.texi (File System Conventions): Warn about ":"
4880         anywhere in directory names.
4882 2006-05-31  Paul Eggert  <eggert@cs.ucla.edu>
4884         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be even more conservative
4885         about quoting the case statement, just in case.
4886         * doc/autoconf.texi (Here-Documents): Mention that the ksh bug
4887         was fixed in ksh93g; reported by Ralf Wildenhues.
4889 2006-05-31  Stepan Kasal  <kasal@ucw.cz>
4891         * doc/autoconf.texi (System Services): Do not document
4892         overriding EXEEXT via ac_cv_exeext=ext.
4893         (Particular Programs) <AC_PROG_MKDIR_P>:
4894         Document that ${MKDIR_P} understands --.
4895         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Improve the
4896         comment.
4898 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4900         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Guard against test
4901         argument with leading hyphen.  Problem reported by Paul Eggert.
4903 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
4905         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be more conservative
4906         about quoting ac_try: quote all of it, if any of it seems suspicious.
4907         This means we don't have to worry about ${ or sed any more.
4908         Also, double-quote the case statement, to work around misuses via
4909         underquoting as reported by Ralf Wildenhues in
4910         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00169.html>.
4911         (_AC_EVAL_STDERR): Revert, since evidently some packages rely on this
4912         undocumented and dangerous macro.
4913         Problem reported by Ralf Wildenhues in
4914         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00168.html>.
4916 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4918         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Check whether
4919         `dirname -- /' returns `/', for SunOS dirname scripts that escaped.
4920         Report by Sam Sirlin <sam@kalessin.jpl.nasa.gov>.
4922 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
4924         * lib/autoconf/general.m4: Revert AC_TRY_EVAL and AC_TRY_COMMAND,
4925         since evidently some packages rely on the old, broken behavior.
4926         Problem reported by Ralf Wildenhues in
4927         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00160.html>.
4928         (AC_TRY_EVAL, AC_TRY_COMMAND, _AC_EVAL): Go back to the
4929         pre-2006-05-26 definitions, but leave in the comments that
4930         these macros are dangerous and should not be used.
4931         (_AC_DO_ECHO): Renamed from _AC_EVAL_ECHO.  All callers changed.
4932         (_AC_DO): Renamed from _AC_EVAL.  All callers changed.
4933         (_AC_DO_STDERR): Renamed from _AC_EVAL_STDERR.  All callers changed.
4934         (_AC_DO_VAR): Renamed from AC_TRY_EVAL.
4935         (_AC_DO_TOKENS): Renamed from AC_TRY_COMMAND.
4937 2006-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4939         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
4940         the use of 'tr', since this is our only use of 'tr'.
4942 2006-05-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4943         and Paul Eggert  <eggert@cs.ucla.edu>
4945         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
4946         Don't assume 'grep' works on long lines, since AIX grep doesn't.
4948 2005-05-28  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4950         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on
4951         the output file in the `${datarootdir}' test.
4953 2005-05-28  Stepan Kasal  <kasal@ucw.cz>
4954         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4956         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If we have not seen
4957         mention of `datarootdir' in the input file(s), but literal
4958         `${datarootdir}' in the output file, and we haven't warned yet,
4959         then warn as well: the user may have (erroneously) used
4960         `AC_SUBST([mydatadir], [$datadir/my])' instead of the correct
4961         `AC_SUBST([mydatadir], ['${datadir}/my'])'.
4962         * tests/torture.at (datarootdir workaround): Extend this test.
4963         * NEWS: Update.
4965 2006-05-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4966         and Paul Eggert  <eggert@cs.ucla.edu>
4968         * doc/autoconf.texi (autoheader Invocation): The first argument to
4969         `AC_DEFINE_UNQUOTED' need not be a literal.  Mention the
4970         alternatives and clear up the language a bit.
4972 2006-05-27  Paul Eggert  <eggert@cs.ucla.edu>
4974         * NEWS: Reword notice for AC_TRY_COMMAND, AC_TRY_EVAL,
4975         ac_config_guess, ac_config_sub, ac_configure.
4976         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
4977         Fix typo that prevented an unnecessary space from being removed.
4978         Problems reported by Ralf Wildenhues in:
4979         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00143.html
4981 2006-05-26  Paul Eggert  <eggert@cs.ucla.edu>
4983         * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
4984         Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
4985         Don't use the term "thread-safe" to talk about mkdir race
4986         conditions, since the problem is more a process than a thread
4987         issue.  Problem reported by Stepan Kasal in:
4988         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
4989         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
4990         the test for 'install' more closely.  Look at MKDIR_P first.
4991         Look in the PATH, and at /opt/sfw/bin.
4992         Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
4993         Don't bother to try mkdir -p, since we already check mkdir --version;
4994         just look at the version number.  (There's no easy way to check
4995         for race-free implementations.)
4996         * tests/tools.at (autoconf: subdirectories): Adjust to above
4997         changes, since MKDIR_P now might end in "/mkdir -p".
4999         * doc/autoconf.texi (autoheader Invocation): Mention that the
5000         first arg of AC_DEFINE_UNQUOTED must be a literal.
5001         Problem reported by Ben Pfaff in
5002         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00090.html>.
5004         * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
5005         * doc/autoconf.texi (Special Chars in Variables): New section.
5006         (Preset Output Variables): Warn about special chars in CPPFLAGS.
5007         (Installation Directory Variables): Quote $(datadir) better.
5008         (Limitations of Builtins): Describe some of eval's trickiness.
5010         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
5011         * lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
5012         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
5013         in front of every arg, not just trailing args.  Quote apostrophes.
5014         (_AC_EVAL_ECHO): New macro.
5015         (_AC_EVAL, AC_EVAL_STDERR): Use it.  Quote arg of eval.
5016         (AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
5017         removed.
5018         (_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
5019         exposed by quoting of eval argument.  Put the command on line line
5020         so it logs better.
5021         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
5022         (_AC_PATH_X, AC_PATH_X): Quote more safely.
5023         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
5024         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
5025         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
5026         Handle special chars in prefix, ac_srcdir, ac_aux_dir.
5027         Use eval more safely.
5028         (_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
5029         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
5030         to be replaced.
5031         * tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
5032         lines, exposed by quoting of eval argument.
5034 2006-05-26  Stepan Kasal  <kasal@ucw.cz>
5035         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5037         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
5038         initialization of `ac_cv_exeext', do not override it if it was
5039         already set, unless it was set to `no', for compatibility with
5040         Autoconf-2.13, and comment this.
5041         Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
5042         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
5043         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
5044         * doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
5045         Document that this test may be overridden by setting
5046         `ac_cv_exeext'.
5048 2006-05-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5050         Revert these two patches:
5052         2006-04-06  Eric Blake  <ebb9@byu.net>
5053         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
5054         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
5055         2006-04-01.
5057         2006-04-01  Stepan Kasal  <kasal@ucw.cz>
5058         Clean up _AC_COMPILER_EXEEXT* macros.
5059         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
5060           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
5061           ac_file to the name of the default output file and call
5062           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
5063           initial `rm' of the candidate files...
5064         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
5065           the same list in subsequent `rm' calls, and for the temporary
5066           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
5067           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
5068         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
5069         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
5070           no longer needed) by libtool.  Make it a cache check.
5071         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
5072           copied here by mistake.
5073         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
5074           _AC_COMPILER_EXEEXT.
5075         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
5076           _AC_COMPILER_OBJEXT directly.
5077         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
5079 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5081         * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
5082         Fix description of how the buggy `sed' works.
5084 2006-05-25  Noah Misch  <noah@cs.caltech.edu>
5086         Sync from Automake:
5088         * lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
5089         ENOLCK.  Only mention `make -j' when applicable.  Only raise
5090         fatal errors when `make -j' is involved.  Improve error message.
5092 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5094         * doc/autoconf.texi (Here-Documents): We now know more about
5095         the variable expansion in here documents bug.
5096         Thanks to Tim Rice and Stepan Kasal.
5098         * doc/autoconf.texi (Making testsuite Scripts): Add an example
5099         how to use TESTSUITEFLAGS.  Suggested by Eric Blake.
5101 2006-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5103         * tests/autotest.at (Multiline command from M4 expansion):
5104         No failure to be expected if the shell quotes newlines in
5105         commands in the `set -x' output.  Report by Tim Rice.
5106         * THANKS: Update.
5108 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5110         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
5111         expansion in the here-documents used by config.status, as that
5112         runs afoul of the Korn shell version M-12/28/93d bug described in
5113         the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
5114         fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
5115         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
5117 2006-05-23  Jim Meyering  <jim@meyering.net>
5119         * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
5120         Fix typo introduced with 2006-04-02 change.  It reversed the sense
5121         of the test.
5123 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5125         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
5126         ac_dB slightly, to save bytes in the script.
5127         Max out at 50 lines, rather than 96; this is more likely
5128         (though not guaranteed) to avoid obscure 'sed' failures.
5130 2006-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5132         * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
5133         `tr -d -' as bad option argument.  Work around this by deleting
5134         an unrelated character.
5135         Report by Tim Rice <tim@multitalents.net>.
5137 2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>,
5138             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
5139             Stepan Kasal  <kasal@ucw.cz>
5141         * doc/autoconf.texi (Particular Programs): Do not promise that
5142         we always prefer the GNU version of the program, and that we
5143         search according to PATH; both rules can have exceptions.
5144         Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
5145         AC_PROG_SED.  Move descriptions of limitations
5146         to the Limitations of Usual Tools section.
5147         (Limitations of Usual Tools) <sed>: Mention script length
5148         limitations with Solaris /usr/ucb/sed.
5149         <grep>: Fix wording for empty alternative.  Mention that -c and
5150         -l should not be combined, and that -E and -F should not be
5151         combined.
5153 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
5154         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5156         * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
5157         limits in Solaris 8 /usr/ucb/sed by testing a long script.
5159 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
5161         * doc/autoconf.texi (Defining Symbols): Literal parameter of
5162         AC_DEFINE is now passed to m4_pattern_allow.
5163         * NEWS: Mention that; likewise for AC_SUBST.
5164         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
5165         the parameter to m4_pattern_allow.
5166         * tests/tools.at: Add a check for that.
5168 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
5170         * lib/autoconf/status.m4: Fix typos.
5172 2006-05-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5174         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
5175         only the files that this macro generates.
5177 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
5179         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
5180         the HP-UX sed limitation of 99 commands, labels do not count.
5181         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
5182         in the comment.
5183         (_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
5185 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
5187         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
5188         Import the following fix from coreutils:
5190         2006-01-13  Jim Meyering  <jim@meyering.net>
5192         Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
5193         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
5194         not double-quote uses of that variable, to accommodate the rare
5195         case in which getmntent is available in none of the libraries
5196         checked.  This happens at least on FreeBSD 5.0.
5198 2006-05-20  Paul Eggert  <eggert@cs.ucla.edu>
5200         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
5201         ac_config_guess, ac_config_sub, and ac_configure, since evidently
5202         some other programs unwisely rely on these undocumented vars.
5203         But put in warning comments about them.
5204         Problem reported by Ralf Wildenhues in
5205         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
5206         * NEWS: Document that these variables are intended to go away.
5208 2006-05-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5210         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
5211         and set the language to C++ (analogous to the equivalent Fortran
5212         tests).
5214         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
5215         * doc/autoconf.texi (C++ Compiler): Document it.
5216         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
5217         * NEWS: Update.
5219 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5221         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
5222         that caused config.status to generate 100-command sed scripts; the
5223         portable limit is 99.
5225 2006-05-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5227         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
5228         variable `ac_d' instead of `d' to avoid infringing namespace.
5229         Report by Ralf Menzel.
5231 2006-05-18  Paul Eggert  <eggert@cs.ucla.edu>
5233         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
5234         $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
5235         * tests/tools.at (autoconf: subdirectories): New test, taken from
5236         the corresponding problem report by Ralf Wildenhues in:
5237         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
5239         * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
5240         Quote some uses of shell variables if they might suffer unexpected
5241         globbing.  This doesn't fix all instances of quoting problems that
5242         I found, just the easy ones that look safe.
5243         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
5244         (AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
5245         (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
5246         (AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
5247         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
5248         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
5249         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
5250         Likewise.
5251         * lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
5252         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
5254 2006-05-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5256         * bin/autoreconf.in ($help): Reword according to the manual.
5257         Suggested by Olly Betts.
5259 2006-05-17  Olly Betts  <olly@survex.com>  (tiny change)
5260         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5262         * bin/autoreconf.in: Pass the directory argument to
5263         `require_configure_ac'.  Fix comment.
5264         * tests/torture.at (Configuring subdirectories): Expose this.
5265         Reported by Olly Betts.
5267 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5269         * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
5270         lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
5271         Automake as follows:
5273         * lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
5274         `$configure_in' instead of `configure.in', to preserve
5275         directory component.
5277 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5279         * config/config.guess, config/config.sub, config/texinfo.tex,
5280         doc/make-stds.texi, doc/standards.texi: Sync from upstream.
5282 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
5284         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
5285         test for C99 conformance; (bool) 0.5 is an integer constant
5286         expression, but (bool) -0.5 is not.  Problem reported by Fedor
5287         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
5289 2006-05-13  Paul Eggert  <eggert@cs.ucla.edu>
5291         * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
5292         sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
5293         Warn about obsolete install-sh files.  Remove stray sentence
5294         fragment and fix cross reference.
5295         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
5296         install -d; this undoes the 2006-05-10 change.
5297         (MKDIR_P): Mark with AN_MAKEVAR.
5298         (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
5299         that we don't require $INSTALL to be thread-safe.  Move comments
5300         out of generated code.  Require AC_CONFIG_AUX_DIR_DEFAULT instead
5301         of AC_PROG_INSTALL.  Output a message saying that we're checking
5302         mkdir -p.  Set MKDIR_P rather than mkdir_p.  Do special magic for
5303         MKDIR_P instead of AC_SUBST.
5304         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
5305         Special magic for MKDIR_P, too.
5306         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
5307         a dnl.
5308         * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
5310 2006-05-11  Paul Eggert  <eggert@cs.ucla.edu>
5312         Sync from Automake, as follows:
5314         2006-05-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5315         * config/install-sh: Initialize IFS, so field splitting isn't
5316         turned off later.
5317         * config/mkinstalldirs: Likewise.
5318         * config/missing: Remove superfluous quotes.  Replace all uses of
5319         `[' by `test', for consistency, and for..
5320         * config/missing (sed_minuso, sed_output): New variables.
5321         (autom4te, help2man, makeinfo): Use them.  Unifies detection of
5322         `-o FILE', `--output FILE', `--output=FILE', stricter regex.
5323         Fixes `missing' to detect `--output' for help2man.  Fixes
5324         PR automake/483.  Report by Dennis J. Linse.
5325         (autom4te): Document in `missing --help'.
5327 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5329         * NEWS: New macro AC_PROG_MKDIR_P.  AS_MKDIR_P is now more robust.
5330         * config/install-sh: Don't use 'path' to talk about file names,
5331         as per GNU coding standards.  Close a race condition reported by Ralf
5332         Wildenhues and Stepan Kasal.  There is still a race condition
5333         on hosts that predate Posix 1003.1-1992, but we can't help this.
5334         Don't mishandle weird characters like space on pre-Posix hosts.
5335         Invoke mkdir at most once per dir arg on pre-Posix hosts.
5336         * doc/autoconf.texi (Programming in M4sh): Cross-reference to
5337         AC_PROG_MKDIR_P from AS_MKDIR_P.
5338         (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
5339         from mkdir.  Mention that Autoconf 2.60 install-sh is safe but
5340         earlier editions are not (including Automake 1.8.3).
5341         Do not suggest mkinstalldirs for thread-safety.
5342         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
5343         that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
5344         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
5345         presence of special characters and race conditions.
5346         * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
5347         in Autoconf's name space.
5349 2006-05-10  Bruno Haible  <bruno@clisp.org>
5350         and Paul Eggert  <eggert@cs.ucla.edu>
5352         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
5353         from Automake with minor changes.
5354         * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
5356 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5358         * config/install-sh: Update to Automake CVS version, as follows:
5359         2006-04-25  Stepan Kasal  <kasal@ucw.cz>
5360         * lib/install-sh: Simplify the expr implementation of dirname.
5361         2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
5362         * lib/install-sh: Handle --, and diagnose unknown options.
5364 2006-05-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5366         * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
5367         `./autom4te' to create `./testsuite', since the `all' target
5368         will ensure its presence, but `installcheck' should not create
5369         the uninstalled wrappers.
5371         * tests/torture.at (Unusual Automake input files): Skip if we
5372         detect automake < 1.8.
5374 2006-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5376         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
5377         is set to `no', then that overrides and sets ac_cv_prog_cc_c89
5378         and ac_cv_prog_cc_c99 to `no', for backward compatibility.
5379         * NEWS: Update.
5381 2006-05-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5383         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
5384         munge (multiple) white space and other oddities.
5385         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
5386         single quotes in variable assignment.
5387         (AC_ARG_VAR, configure invocation): Adjust tests to expose this
5388         and similar failures by adding multiple spaces, tabs, and other
5389         special characters.
5390         Report and different test suggested by Francesco Romani
5391         <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
5393         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
5394         single quotes, we only need to search for single quotes; this
5395         both simplifies the search pattern, and makes us less
5396         susceptible to `echo' variations for arguments not containing
5397         single quotes.
5398         (_AC_ARG_VAR_VALIDATE): Likewise.
5400 2006-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5402         * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
5403         `$*' and IFS concatenation issue with traditional shells and
5404         bash-2.04.  Report by Seanster@Seanster.com.
5406 2006-05-03  Bruno Haible  <bruno@clisp.org>
5408         * doc/autoconf.texi (Limitations of Usual Tools): Identify more
5409         precisely which Mac OS X versions have the od problem.
5411 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
5413         * doc/autoconf.texi: Use @option systematically.
5415 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
5416         and Bruno Haible  <bruno@clisp.org>
5418         * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
5419         about 'od'.
5420         (Integer Overflow): Mention the special case of integer division
5421         overflow.
5423 2006-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5425         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
5426         traditional shells like the Solaris one that do not use the
5427         first IFS character for assembling `$*'.
5428         Prompted by a related report from autoconf_bug@nro.ca.
5430 2006-05-01  Paul Eggert  <eggert@cs.ucla.edu>
5431         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5433         * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
5434         Mention more problems with the -e option.
5436 2006-04-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5438         * NEWS: Typo.
5439         * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
5441         * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
5442         in URLs to improve DVI formatted output (requires texinfo 4.6).
5443         (System Services, Systemology, Shellology): Likewise.
5444         (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
5445         output.
5447         * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
5448         continuous text.
5449         (Runtime): Fix macro argument names to match description:
5450         `action-if-found' -> `action-if-true' and similarly.
5451         (Obsolete Macros): Likewise.
5452         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
5453         (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
5454         (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
5456 2006-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5458         * doc/autoconf.texi (Limitations of Make): Clean up markup.
5460         * ChangeLog: Typo.
5461         * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
5462         DVI output.
5464 2006-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5466         * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
5467         /bin/sh set unsorted output.
5468         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
5469         * tests/local.at: Likewise.
5471 2006-04-26  Paul Eggert  <eggert@cs.ucla.edu>
5473         * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
5474         (Integer Overflow, Null Pointers, Buffer Overruns):
5475         (Floating Point Portability, Exiting Portably): New sections.
5476         (Writing Test Programs): Fix some langauge.  Recommend exiting
5477         with status 1, not merely nonzero.  Clarify exit declaration.
5478         (Run Time): Move C exit status stuff to new Exiting Portably section.
5479         (Systemology): Mention Posix and levenez.  Update v7 reference.
5480         (Portable Shell): Mention the Posix shell.
5482 2006-04-25  Stepan Kasal  <kasal@ucw.cz>
5484         * bin/autoconf.as (me): Replace by as_me.
5486 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
5488         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
5489         since as_me isn't set yet.
5491 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
5493         Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
5494         a few minor bugs in this area.
5496         * doc/autoconf.texi (Programming in M4sh): Comment out the
5497         documentation of AS_BASENAME, for now.
5498         (Shell Substitutions): Do not use AS_DIRNAME in an example.
5499         (Limitations of Builtins) <basename>: Do not refer to
5500         AS_BASENAME.
5501         * bin/autoconf.as (me): Don't use AS_BASENAME.
5502         (dir): Remove the unused variable.
5503         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
5504         AS_DETECT_REQUIRED.  All uses changed.
5505         (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
5506         All uses changed.
5507         (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
5508         (AS_BASENAME): Use "basename --" to protect against leading "-".
5509         (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR.  All uses changed.
5510         (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED.  All uses changed.
5511         (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
5512         (_AS_DIRNAME_PREPARE): Likewise.
5513         (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR.  All uses changed.
5514         (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED.  All uses changed.
5515         (AS_DIRNAME): Use "dirname --".
5517 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
5519         * doc/autoconf.texi (Runtime): Renamed from "Run Time".  All uses
5520         of "run time" and "run-time" changed to "runtime", for consistency.
5521         * lib/autoconf/fortran.m4: Likewise (in comment).
5522         * lib/autoconf/functions.m4: Likewise.
5523         * lib/autoconf/general.m4: Likewise.
5524         * lib/autoconf/headers.m4: Likewise.
5526         * doc/autoconf.texi (Run Time): Document the exit status situation
5527         with more accuracy and detail.
5529 2006-04-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5531         * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
5532         Archive is not officially `GNU' any more.  Update URL.
5533         (Defining Directories): Likewise
5534         * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
5536 2006-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5538         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
5539         newline from the `trap' code to finish `config.log'; the NetBSD
5540         /bin/sh resets the exit status after an empty command, as
5541         documented in doc/autoconf.texi.
5542         Reported by Dalibor Topic <robilad@kaffe.org>.
5544 2006-04-19  Paul Eggert  <eggert@cs.ucla.edu>
5546         * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
5547         Suggested by Bruno Haible.
5549 2006-04-18  Paul Eggert  <eggert@cs.ucla.edu>
5551         * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
5552         some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
5553         Instead, just list the shells that we know work.
5554         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg.  All uses
5555         changed.  Be more cautious about the _cv_ variable.
5556         * tests/tools.at (Syntax of the shell scripts): Check the
5557         _cv_ variable once, at first, to avoid an internal autoconf error
5558         when sh -n does not work.
5560 2006-04-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5562         * lib/Autom4te/FileUtils.pm: Sync from Automake.
5564 2006-04-16  Paul Eggert  <eggert@cs.ucla.edu>
5566         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
5567         use ">&-" since we're only 99.999% sure that this is portable,
5568         and since the MinGW bug is fixed in a different way.
5569         * lib/autotest/general.m4 (AT_INIT): Likewise.
5571 2006-04-16  Stepan Kasal  <kasal@ucw.cz>
5573         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
5574         before opening config.log, to avoid hitting a bug on MinGW.
5576 2006-04-14  Paul Eggert  <eggert@cs.ucla.edu>
5578         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
5579         AS_MESSAGE_LOG_FD before reopening it onto the log file.
5580         This works around a MinGW bug reported by Eric Paire.
5581         Make sure that all writes to the log file append to it,
5582         rather than possibly losing data.
5583         * lib/autotest/general.m4 (AT_INIT): Likewise.
5585 2006-04-14  Stepan Kasal  <kasal@ucw.cz>
5587         * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
5588         description.
5590 2006-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5592         * NEWS: Update.
5594         * configure.ac (AC_INIT): Bump to 2.59d.
5596 2006-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5598         Version 2.59c.
5600         * Makefile.maint (news-date-check): Do not require a leading `*'
5601         before the release date in NEWS.
5603 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
5604         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5606         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
5607         the instantiated file do not contain the string 'datarootdir'
5608         but contain @datadir@, @docdir@, @infodir@, @localedir@, or
5609         @mandir@, replace the reference '${datarootdir}' by the value.
5610         * tests/torture.at (datarootdir workaround): New test.
5611         * NEWS: Advertise this temporary fixup.
5612         Based on a patch by Bruno Haible, reported and analyzed by
5613         Paul Eggert and Noah Misch.
5615 2006-04-12  Eric Blake  <ebb9@byu.net>
5617         * tests/autotest.at (Debugging a failed test): Fix comment.
5619 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
5621         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
5622         all the changes since 2006-04-07.
5624 2006-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5626         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
5627         succeeded, but `ln -s file dir' failed, take care to remove the
5628         leftover target before the next test, to prevent its spurious
5629         failure; also make sure `ln file dir' works before selecting it.
5630         Thanks to Keith Marshall for pointing this out.
5631         * THANKS: Update.
5633         * lib/autotest/general.m4 (AT_INIT): Store quoted variable
5634         assignments in `at_debug_args', so that we put them correctly
5635         in the `run' script.
5636         * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
5637         Reported by Eric Blake.
5639 2006-04-11  Eric Blake  <ebb9@byu.net>
5641         * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
5642         top-level tests after micro-suite has been run.   Used in...
5643         (Debugging a successful test, Debugging script and environment),
5644         (Debugging a failed test): ...these new tests.  The first of these
5645         is fixed by...
5646         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
5647         macro, split out from...
5648         (AT_INIT): ...here, so that using -d also generates a run script.
5649         Document that -d inhibits top-level logging.
5650         * doc/autoconf.texi (testsuite Invocation): Document that -d only
5651         inhibits top-level logging; debug scripts are created.
5653         * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
5654         check.
5655         * tests/autotest.at (Empty test, Empty check): New test to check it.
5657         * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
5658         from gcc.
5660 2006-04-10  Stepan Kasal  <kasal@ucw.cz>
5662         * tests/mktests.sh: Use "trap '' 0", not "trap 0".  Do not touch
5663         the files if a problem appears.  Make the empty *.at files
5664         read-only, too.  Proposed by Ralf Wildenhues.
5666 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5668         * config/Makefile.am: Add comment to force updated Makefile.in.
5670         * lib/freeze.mk: Fix typo in comment.  Unlike the last, white
5671         space only patch to this file, this patch causes the Makefile.in
5672         files that include freeze.mk to be updated, and thus have a
5673         newer time stamp again, which in turn makes a pristine CVS
5674         checkout have correct time stamps.
5676         * Makefile.maint (cvs-sv): New macro, to be used..
5677         (config.guess-url_prefix, config.sub-url_prefix)
5678         (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
5679         point to CVS text checkout of Gnulib files.
5680         (copyright-check): Bump current year.
5681         (announcement): Do not hard-wire `./announce-gen'.
5682         (cvs-update): Propagate failures of `cvs' and `move-if-change'
5683         correctly.
5684         * Makefile.cfg (executable-update): Use `chmod a+x' instead of
5685         `chmod +x'.
5686         (wget_files): Update config.guess, config.sub, texinfo.tex by
5687         `wget-update', now that their URLs work again.
5689 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
5691         * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
5692         Problem noted by Paul D. Smith.
5694 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5696         * doc/autoconf.texi: Remove unused words from word list.
5697         * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
5698         .x-sc_trailing_space: New files.
5700         * doc/standards.texi: Sync from gnulib.
5702         * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
5703         `LIBOBJDIR' as experimental.
5705         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
5706         with a target directory; it's internally implemented as `cp'
5707         anyway, but since Autoconf advertises the possibility to use
5708         a target directory when LN_S is `ln -s', we need to find out.
5709         Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
5710         analyzed by Keith Marshall <keith.marshall@total.com>.
5712         * THANKS: Update.
5714 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
5716         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
5717         confdefs.h as-is.  In general, if it has backslash-newline or the
5718         like, then it doesn't work either to sort or to remove empty
5719         lines.
5721 2006-04-09  Stepan Kasal  <kasal@ucw.cz>
5723         * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
5725 2006-04-09  Alexandre Duret-Lutz  <adl@gnu.org>
5727         * lib/autom4te.in (Automake-preselections): Preselect
5728         _AM_SUBST_NOTMAKE.
5730 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
5732         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
5733         apostrophe within a single-quoted string, as this is the usual
5734         tradition and is easier to read than '"'"'.  Don't rely on the
5735         shell treating "$/" like '$/'.  Use a more-consistent indenting
5736         style for the trap.
5738 2006-04-09  Eric Blake  <ebb9@byu.net>
5740         * tests/autotest.at (Backquote command substitution),
5741         (Multiline backquote command substitution): Remove mistaken
5742         AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
5743         applied...
5744         (Parenthetical command substitution, Multiline parenthetical
5745         command substitution): here.
5747 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
5749         Import macros from gnulib (often changing their name).
5751         * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
5752         New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
5753         AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
5754         AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
5755         AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
5756         AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
5757         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
5758         AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
5759         AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
5760         AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
5761         The manual mentions Gnulib more prominently.
5762         * doc/autoconf.texi (Gnulib): New node.
5763         (Pointers): Add Gnulib URL.
5764         (Particular Functions): Alphabetize.  Add AC_FUNC_STRTOLD.
5765         (Generic Functions): Add AC_CHECK_FUNCS_ONCE.  Refer to new
5766         Gnulib section.
5767         (Particular Headers): Add AC_HEADER_ASSERT.  For stdbool.h,
5768         suggest a #define rather than a typedef for _Bool, and mention
5769         Gnulib rather than trying to substitute stdbool code.
5770         (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
5771         (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
5772         (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
5773         AC_STRUCT_DIRENT_D_TYPE.
5774         (Particular Types): Mention stdint.h and inttypes.h as standard
5775         headers too.
5776         Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
5777         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
5778         AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
5779         AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
5780         AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
5781         (C Compiler): Move AC_C_LONG_DOUBLE to ...
5782         (Obsolete Macros): here.  Under AC_LONG_DOUBLE, mention
5783         AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
5784         (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
5785         (Coding Style).  Don't mention m4_expand_once.
5786         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
5787         AC_TYPE_LONG_DOUBLE_WIDER.  Now obsolete.
5788         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
5789         (AC_CHECK_FUNCS): Use it.
5790         (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
5791         (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
5792         * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
5793         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
5794         (AC_HEADER_ASSERT): New macro.
5795         (AC_HEADER_STDBOOL): Don't assume "#error" works.
5796         Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
5797         Catch a bug in an HP-UX C compiler.
5798         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
5799         * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
5800         (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
5801         (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
5802         (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
5803         (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
5804         New macros.
5806         * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
5807         use /^foo|bar$/, it does not mean /^(foo|bar)$/.
5809 2006-04-08  Stepan Kasal  <kasal@ucw.cz>
5811         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
5812         of the warning introduced by the 2001-08-28 change.
5814 2006-04-08  Stepan Kasal  <kasal@ucw.cz>,
5815             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5817         * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
5818         variables shall be overriden by the cache.
5819         * tests/torture.at (AC_ARG_VAR): Test also with a first value
5820         that contains braces.
5822 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
5824         Revert the patch from 2006-04-01 and only improve
5825         _AS_DETECT_BETTER_SHELL:
5827         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
5828         skip nonexistent directories.
5829         (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
5830         only shell candidates which exist.
5831         (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
5832         * lib/autotest/general.m4 (AT_INIT): No need to give three
5833         parameters to _AS_PATH_WALK.
5835 2006-04-07  Stepan Kasal  <kasal@ucw.cz>,
5836             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5838         * bin/autoupdate.in (handle_autoconf_patches): Change the way we
5839         distinguish m4sugar macros.
5840         * tests/tools.at (autoupdating with aclocal and m4_include):
5841         New test.  Bug reported by Gary V. Vaughan <gary@gnu.org>,
5842         test case by Noah Misch <noah@cs.caltech.edu>.
5844 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
5846         Revert my change from 2006-03-17, in other words:
5847         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
5848           and DUALCASE=1.
5849         (AS_SHELL_SANITIZE): Remove DUALCASE=1.
5850         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
5851           it is set.
5853 2006-04-07  Eric Blake  <ebb9@byu.net>
5855         * doc/autoconf.texi (Programming in M4sh): Document that
5856         AS_MKDIR_P exits the script on failure.
5857         * lib/autotest/general.m4: Remove redundant AS_ERROR.
5859 2006-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5861         * config/elisp-comp, config/install-sh, config/mdate-sh,
5862         config/missing, config/mkinstalldirs: Sync from Automake.
5864         * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
5865         from Automake.
5867         * doc/make-stds.texi: Sync from gnulib.
5869 2006-04-06  Eric Blake  <ebb9@byu.net>
5871         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
5872         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
5873         2006-04-01.
5875 2006-04-06  Stepan Kasal  <kasal@ucw.cz>,
5876             Eric Blake  <ebb9@byu.net>,
5877             Paul Eggert  <eggert@cs.ucla.edu>,
5878             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5880         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
5881         whether `set' quotes correctly: redirect stderr of the tested
5882         `set', and use a subshell, for Ultrix; use `sed' instead of
5883         `grep' for zsh `set' which may write binary output; match only
5884         at the beginning of a line, to avoid false positives.
5885         In order to avoid false positives by unrelated variables with
5886         multiline content, put the dump algorithm in a subshell and
5887         unset all variables containing newlines (except some which are
5888         special to the shell).  Warn about cache variables that are
5889         unset.
5891 2006-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5893         * config/config.guess, config/config.sub, config/texinfo.tex:
5894         Sync from upstream.
5896         * tests/mktests.sh: Reword comments.
5898         * tests/mktests.sh: Only skip internal macros starting with
5899         `_AC_' or `__AC_'.  Noted by Stepan Kasal.
5900         Update exclusion lists for the test suite to this end:
5901         (AC_ARG_VAR): Do test this now.
5902         (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
5903         (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
5904         (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
5905         (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
5907         * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
5908         shell issue with double-quoted command substitutions of native
5909         commands.
5910         Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
5911         Marshall.
5913         * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
5914         no file matches the glob, discard the warning, set `nullglob'.
5915         (syntax-check): Likewise.
5916         (sc_cast_of_x_alloc_return_value): Likewise.
5917         (sc_cast_of_alloca_return_value, sc_error_exit_success)
5918         (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
5919         (m4-check): Likewise.
5920         (sc_system_h_headers): Do not print rule on execution.
5921         (sc_tight_scope): Do not fail for non-existing `src' directory.
5922         (sc_changelog): Skip the Copyright footer.
5923         * lib/autoconf/lang.m4: Remove trailing space.
5925         * lib/autoconf/status.m4: More replacements to
5926         <tab><space> where this makes sense.
5928 2006-04-06  Stepan Kasal  <kasal@ucw.cz>
5930         * tests/Makefile.am (maintainer-check-posix):
5931           s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
5933         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
5934           ac_config_<foo>s again, sometimes normalized, sometimes not.
5935         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
5936         (AC_CONFIG_COMMANDS): Do not do so here.
5937         (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
5938           and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
5939           2005-07-25 rewrite.  Noticed by Noah Misch.
5941         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
5942           _AC_PRESERVE_HELP_ORDER, ...
5943         (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
5945         * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
5946           inside m4_expand_once; it is redundant.
5948         * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
5949           for --help from Cygnus `configure.'
5951 2006-04-06  Paul Eggert  <eggert@cs.ucla.edu>
5953         * doc/autoconf.texi (C Compiler): Warn about #error.  Follows up
5954         on a patch proposed by Ralf Wildenhues.
5956 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
5958         * lib/autoconf/status.m4: Replace <space>''<tab> with
5959         <tab><space> where this makes sense.
5961 2006-04-05  Howard Chu  <hyc@highlandsun.com>  (trivial change)
5962             Noah Misch  <noah@cs.caltech.edu>
5964         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
5965         (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
5966         * doc/autoconf.texi (Help Formatting): New node.
5967         * NEWS: Announce AC_PRESERVE_HELP_ORDER.
5969 2006-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5971         * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
5972         lib/autoconf/specific.m4, lib/autoconf/status.m4,
5973         lib/autoconf/types.m4, lib/autotest/general.m4,
5974         tests/mktests.sh, tests/torture.at: White space cleanup:
5975         remove some SPACE before TAB, or add quoting ('' or @&t@).
5977         * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
5979         * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
5981 2006-04-05  Eric Blake  <ebb9@byu.net>
5983         * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
5984         empty test suite works.
5985         * tests/autotest.at (Empty test suite): Remove xfail.
5987 2006-04-05  Noah Misch  <noah@cs.caltech.edu>
5989         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
5990         TAGS to ac_config_<foo>s.
5991         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
5992         (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
5993         normalizing it, consistent it with previous releases.
5994         * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
5996 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
5998         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
5999         Use simplified args that Eric Blake originally suggested.
6001 2006-04-04  Paul Eggert  <eggert@cs.ucla.edu>
6003         * tests/mktests.sh: Don't use 'cat'; just read the files directly.
6004         Prefer 'sort -u' to 'sort | uniq'.  Filter data before sorting it.
6005         Use 'comm' rather than N instances of grep; this also fixes a bug
6006         whereby substrings were incorrectly matched, causing us to not
6007         generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
6008         (exclude_list): Exclude empty macros.
6009         (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
6011         Use awk rather than grep -E or egrep, to avoid
6012         portability problems with regular expressions containing newlines.
6013         (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
6014         Switch from grep to awk syntax.
6015         (ac_exclude_script): Renamed from ac_exclude_egrep.
6016         (au_exclude_script): Renamed from au_exclude_egrep.
6018 2006-04-04  Noah Misch  <noah@cs.caltech.edu>
6020         * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
6021         a subdirectory subject to Cygnus `configure'.
6022         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
6024         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
6025         report request when we have no AC_PACKAGE_BUGREPORT.
6027 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6029         * THANKS: Update.
6031         * tests/mktests.sh: Update copyright year in the header of the
6032         generated files.
6034         * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
6035         (AC_C_RESTRICT): Likewise.  Furthermore, add a function with a
6036         typedef'ed restricted pointer, to catch a compiler bug on
6037         HP-UX 11.x, and fix warnings so it passes with -Werror.
6038         (_AC_PROG_CC_C99): Likewise.
6039         Reported by Albert Chin <china@thewrittenword.com>.
6040         * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
6042 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
6044         * bin/autoscan.in (subdirs): New global.
6045         (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
6046         (output): Emit AC_CONFIG_SUBDIRS as needed.
6047         * tests/autoscan.at (autoscan): Remove XFAIL.
6049 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
6051         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
6053 2006-04-03  Eric Blake  <ebb9@byu.net>
6055         * THANKS: Add myself.
6057 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6059         * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
6060         to log, point to testsuite output tree.
6062 2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
6064         * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
6065         * doc/autoconf.texi (Function Portability): Mention that C++
6066         has trouble with 'exit'.
6067         (Guidelines): Test programs shouldn't use 'exit'.
6068         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
6069         Remove; all uses removed.
6070         (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
6071         Return from 'main' instead of calling 'exit'.
6072         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
6073         (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
6074         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
6075         (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
6076         (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
6077         (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
6078         (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
6079         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
6080         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
6081         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
6082         * tests/compile.at: Likewise.
6084 2006-04-02  Pavel Roskin  <proski@gnu.org>
6086         * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
6088 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
6090         Clean up _AC_COMPILER_EXEEXT* macros.
6092         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
6093           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
6094           ac_file to the name of the default output file and call
6095           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
6096           initial `rm' of the candidate files...
6097         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
6098           the same list in subsequent `rm' calls, and for the temporary
6099           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
6100           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
6101         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
6102         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
6103           no longer needed) by libtool.  Make it a cache check.
6104         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
6105           copied here by mistake.
6106         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
6107           _AC_COMPILER_EXEEXT.
6108         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
6109           _AC_COMPILER_OBJEXT directly.
6110         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
6112 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
6114         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
6115         (AS_DIRNAME): Use it.
6116         (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
6118         * tests/*.at: Remove the generated ones.
6120 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
6122         * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
6124 2006-04-01  Eric Blake  <ebb9@byu.net>
6126         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
6127         directories, unless optional third argument supplied.
6128         (AS_UNAME): Don't optimize PATH walk.
6130         * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
6132 2006-04-01  Eric Blake  <ebb9@byu.net>
6133         and Stepan Kasal  <kasal@ucw.cz>
6135         * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
6136         and fix some typos.
6138 2006-04-01  Noah Misch  <noah@cs.caltech.edu>
6140         * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
6141         Autoconf version number despite a zero- or one-argument AC_INIT.
6143         * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
6144         subordinate tools.
6145         * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
6146         * doc/autoconf.texi (autoreconf Invocation): Document it.
6148         * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
6149         Append LocalWords so ispell-buffer passes cleanly.  Spelling fixes.
6151 2006-04-01  Eric Blake  <ebb9@byu.net>
6153         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
6154         * lib/autotest/general.m4: Be tolerant of existing directory when
6155           rm failed to remove it.
6157 2006-04-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6159         * bin/autoupdate.in: Redefine m4_location so that warnings print
6160         the correct lines of the input file by subtracting..
6161         (_au__first_line): ..this new definition.
6163         * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
6164         AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
6165         Remove stray newline in output.
6166         (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
6167         AC_DEFUN this for autoconf, including the obsoletion diagnose.
6168         Fixes autoupdating of code where the replacement output contains
6169         m4sugar macros.
6170         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
6171         * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
6172          (au_exclude_list): Add AC_LANG_SAVE.
6173         * tests/tools.at: Several new tests for all of this.
6174         * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
6175         hairy details.
6176         The AC_LANG_SAVE issue was reported against Libtool by
6177         Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
6178         Kristian Kvilekval <kris@cs.ucsb.edu>.
6180 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
6182         * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
6183           switch all of them on and of when necessary.  Fixes the bug when
6184           m4sugar macros (e.g., m4_define) were expanded after the first
6185           automatic update (e.g., after AC_PREREQ or AC_INIT).
6187 2006-03-31  Paul Eggert  <eggert@cs.ucla.edu>
6189         * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
6190         of AS_BASENAME and AS_DIRNAME.  Reported by Stepan Kasal.
6192         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
6193         correctly.  Problem reported by Eric Blake.
6194         (_AS_EXPR_PREPARE): Detect Tru64 expr bug.  Problem reported by
6195         Ralf Wildenhues.
6197 2006-03-30  Paul Eggert  <eggert@cs.ucla.edu>
6199         * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
6200         Tighten up the basename/dirname wording.
6202 2006-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6204         * Makefile.maint (sc_texi_notab): New check: do not use TABs
6205         in texinfo files outside of verbatim environments.
6206         (syntax-check-rules): Update.
6207         * doc/autoconf.texi (Configuration Headers): Conform to it.
6209 2006-03-30  Chris Pickett <cpicke@cs.mcgill.ca>  (tiny change)
6211         * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
6212           aclocal cannot be given on the command line.
6214 2006-03-29  Paul Eggert  <eggert@cs.ucla.edu>
6216         * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
6217         Give an example for AS_DIRNAME instead of referring to Posix..
6218         (File System Conventions): Put discussion of // versus / here, and
6219         modernize it a bit.
6220         (Limitations of Usual Tools): Add basename.  Remove verbiage
6221         after dirname, since it got moved to the above sections.
6222         All this was inspired by a patch proposed earlier by Eric Blake.
6224 2006-03-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6226         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
6227         `$0' to protect against spaces.
6228         * lib/autotest/general.m4 (AT_INIT): Likewise.
6229         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
6230         `$0', $as_me.
6232 2006-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6234         * bin/autoscan.in: The value of find_configure_ac should be
6235         checked for existence, so we don't barf over a nonexisting
6236         configure.ac.  Reported by Laurence Darby <ldarby@tuffmail.com>.
6238 2006-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6240         * bin/autoupdate.in: Fix some typos.
6242 2006-03-21  Stepan Kasal  <kasal@ucw.cz>
6244         * doc/autoconf.texi (Installation Directory Variables): Fix typo.
6246         * lib/autoscan/autoscan.list: Refreshed.
6248 2006-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6250         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
6251         and Erlang related variables.
6253         * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
6254         (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
6255         (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
6256         (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
6257         (AC_LANG_BOOL_COMPILE_TRY(Objective C))
6258         (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
6259         (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
6260         (_AC_PROG_OBJC_G): New macros.
6261         (_AC_ARG_VAR_CPPFLAGS): Adjusted.
6262         * doc/autoconf.texi (Objective C Compiler): New node.
6263         (Preset Output Variables): Document OBJCFLAGS.
6264         (Language Choice): Document `Objective C' language.
6265         (Fortran Compiler): Fix typo.
6266         * NEWS: Updated.
6267         Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
6269 2006-03-20  Stepan Kasal  <kasal@ucw.cz>
6271         * doc/autoconf.texi (Default Includes): Fix typo
6272           s/AC_HEADERS_STDC/AC_HEADER_STDC/
6273         (Limitations of Usual Tools): s/unwriteable/unwritable/
6274         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
6275           Fix typos in the comments.
6277 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
6279         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
6280           Factor out the warning to...
6281         (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
6282         * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
6283         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
6285         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
6286           case `ac_delim' when writing the sed script.
6288         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
6289           moved DUALCASE=1 ...
6290         (AS_SHELL_SANITIZE): ... here.
6291         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
6292           that it is set.
6294         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
6295           AC_SUBST.
6296         (_AC_PATH_PROG): Store the result to VARIABLE.
6297         (AC_PATH_PROG): No need to set VARIABLE again.
6299         * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
6300           the first one is usual AT_CHECK_MACRO test, the second one checks
6301           that the same works when cross-compiling.
6302         * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
6303         (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
6305 2006-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6307         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
6308         the directory `/usr/bin/posix' in the shell search, to prefer
6309         the Posix shell not only in subsequent spawns as with `$BIN_SH'
6310         on Tru64.
6312         * doc/autoconf.texi (contents): To fix texi2html output, hide
6313         `@setcontentsaftertitlepage' for HTML.
6314         (Writing Autoconf Macros): Likewise, insert space after `@c'.
6315         (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
6316         `@,{c}'.
6318 2006-03-16  Stepan Kasal  <kasal@ucw.cz>
6320         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
6321           sanitizing...
6322         (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
6323         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
6324           why IFS is restored so late; thank you, Ralf, for reminding us.
6326 2006-03-15  Stepan Kasal  <kasal@ucw.cz>
6328         * doc/autoconf.texi (Pretty Help Strings): No need to use cached
6329           variables in the examples.
6331 2006-03-14  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
6333         * doc/autoconf.texi (several sections): Cleaned up documentation for
6334         macros in erlang.m4.
6336 2006-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6338         * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
6339         failure condition for `$(cmd)' style command substitutions.
6340         (Parenthetical command substitution, Multiline parenthetical
6341         command substitution): Use it.
6343         * doc/autoconf.texi (Special Shell Variables): Missing word.
6344         Reported by Keith Marshall <keith.marshall@total.com>.
6346         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
6347         IFS even in case of empty `$PATH'.
6349 2006-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6351         * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
6352         `expr' away if there is nothing to do.
6353         < --keywords >: Simplify and robustify argument handling.
6354         Revert erroneous comment from 2005-08-23.  Extend to allow
6355         keyword negation with `!'.
6356         Update help message.  Remove broken code to prevent running
6357         tests multiple times.
6358         * doc/autoconf.texi (testsuite Invocation) < --keywords >:
6359         Update and fix the documentation accordingly.
6360         * tests/autotest.at (Keywords): Renamed to..
6361         (Keywords and ranges): .. this.  Extended to make sure negated
6362         keywords, keywords taken from AT_SETUP arguments, and numeric
6363         test ranges work, and that matching is case-insensitive.
6365 2006-03-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6367         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
6368         allow to pass unnamed structs even in C++.
6369         (AC_CHECK_SIZEOF):  Likewise.
6370         Also fix quoting error in `AC_MSG_FAILURE' arguments.
6371         * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
6372         struct): New tests for unnamed structs, each both native and
6373         cross-compiling.
6375         * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
6376         a structure inside a cast, for C++ conformance.
6377         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
6378         Also fix quoting error in `AC_MSG_FAILURE' arguments.
6380         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
6381         nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
6382         trying to execute the command `no'.
6384         * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
6385         m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
6386         expanded outside.
6388         * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
6389         example.  Do not emphasize `$%', it is hardly new and special.
6390         Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
6392         * doc/autoconf.texi (Limitations of Usual Tools): Document
6393         OpenBSD and traditional `grep' failure to handle multiple
6394         patterns separated by newlines.
6396 2006-03-10  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
6398         * doc/autoconf.texi (several sections): Add documentation for macros
6399         in erlang.m4.
6401 2006-03-10  Eric Blake  <ebb9@byu.net>
6403         * doc/autoconf.texi (Obsolete Macros): Fix wording of
6404         AC_TRY_LINK_FUNC.
6406 2006-03-10  Paul Eggert  <eggert@cs.ucla.edu>
6408         * doc/autoconf.texi: Use @acronym more consistently for acronyms
6409         like BSD, GPL, LGPL.  Fix minor English typos.
6410         (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
6411         Mention that these macros are becoming obsolete.
6412         (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
6413         Use more modern terminology for which standard is what.
6414         (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
6415         and to ansi2knr.
6416         (AC_PROG_CXX): Likewise.
6417         (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
6418         Remove obsolete discussion about how to port to K&R.
6419         (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
6420         the obsolescent AC_HEADER_STDC.
6421         (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
6422         can't rely on it.
6424 2006-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6426         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
6427         Remove stdin redirection from /dev/null to allow pipe to work.
6429 2006-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6431         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
6432         Require that /lib/cpp include stdio.h correctly.  Solaris 10's
6433         doesn't.  Problem reported by D'Arcy A MacIsaac and diagnosed by
6434         Ralf Wildenhues.
6436 2006-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6438         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
6439         HP-UX sed is 99 commands, not 100.
6440         (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
6441         _AC_SUBST_FILES fragment.  Separate `{' and `r' commands by
6442         newline for portability.
6443         * tests/torture.at (Torturing config.status): Also test 100
6444         AC_SUBST_FILE invocations.  Fix test to actually verify the
6445         AC_CONFIG_FILES output.
6446         * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
6447         command, label, and read-file `r' limits.  Unify HP-UX spelling.
6449         * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
6450         non-suffix rule.
6451         ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
6452         non-GNU make.
6453         (autoconfdir, $(AUTOCONF_FILES)): Likewise.
6454         * tests/mktests.sh: Small shell portability fixes.
6456 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6458         * doc/autoconf.texi (Caching Results): Fix the examples to use a
6459         recommended quoting style and discard unwanted output.
6461 2006-03-05  Paul Eggert  <eggert@cs.ucla.edu>
6463         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
6464         (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
6465         cases, and to work around Tru64 expr bug.
6467 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6469         * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
6470         expr bug that turns the result of a regex match into a number if
6471         possible.
6473 2006-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6475         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
6476         HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
6477         in section `Specific Compiler Characteristics'.
6479 2006-03-04  Eric Blake  <ebb9@byu.net>
6481         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
6482         variable warning.
6484 2006-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6486         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
6487         order of variable initialization, so even the Solaris 2.6 shell
6488         can create a config header correctly.  Fixes lots of test suite
6489         failures.
6491 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6493         * doc/autoconf.texi (Text processing Macros): New node to
6494         document the m4sugar macros m4_re_escape, m4_tolower,
6495         m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
6497 2006-02-22  Paul Eggert  <eggert@cs.ucla.edu>
6499         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
6500         XrmInitialize (0) -> XrmInitialize ().
6501         Reported by Toshio Kuratomi.
6503 2006-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6505         * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
6506         test, as in `if tests; then cmd1; elif ...; else ...; fi'.
6507         * doc/autoconf.texi (Programming in M4sh): Adjusted.
6508         * tests/m4sh.at (AS_IF and AS_CASE): Test this.  Also make sure
6509         both macros are defun'ed so that required macros are evaluated
6510         outside.
6512         * doc/autoconf.texi (Prerequisite Macros): State more precisely
6513         where a required macro will be expanded.
6514         (Coding Style): Another reason not to use `m4_define'.
6516 2006-02-21  Eric Blake  <ebb9@byu.net>
6518         * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
6520 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6522         * doc/autoconf.texi (Looping constructs): New node, to
6523         document m4_for, m4_foreach, m4_foreach_w, and mention
6524         obsolete AC_FOREACH.
6525         (Obsolete Macros): Document AC_FOREACH.
6526         * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
6527         (m4_for): Fix to never loop (almost) endlessly, work correctly
6528         with arithmetic expressions in arguments, a step of zero or
6529         non-integer multiple of the interval, and avoid integer
6530         overflow.
6531         * tests/m4sugar.at: New test for m4_for, m4_foreach, and
6532         m4_foreach_w.
6534 2006-02-20  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
6536         Add basic support for Erlang, both for configuring Erlang/OTP
6537         tools, and Erlang as a conf test language.
6538         * lib/autoconf/erlang.m4: New file.
6539         * lib/autoconf/autoconf.m4: Add erlang.m4.
6540         * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
6541         * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
6542         * NEWS: Add short description of new macros.
6543         * THANKS: Add Romain Lenglet.
6545 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6547         * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
6548         native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
6550 2006-02-15  Eric Blake  <ebb9@byu.net>
6552         * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
6553         warning.
6555 2006-02-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6557         * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
6558         (_AS_CASE): Private helper macro.
6559         * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
6560         * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
6561         Fix syntax of AS_IF description
6562         (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
6563         for the AC_REQUIRE mess.
6564         * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
6565         AS_SHELL_SANITIZE.
6567 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
6569         * doc/autoconf.texi: Minor style cleanup.
6570         Be consistent about spaces after commas.
6571         Insert [] where empty args look a bit funny.
6572         Fix some "i.e." and "e.g." usages.
6573         Try to avoid "X/Y" usages.
6574         Don't be pedantic about "ISO C99"; just say C99.
6575         Prefer GNU style for spaces in front of parens.
6576         (Function Portability): Comment about C89 versus C99
6577         signed integer division.
6578         (Particular Headers): Use current gnulib style for dirent
6579         includes.
6581 2006-02-14  Stepan Kasal  <kasal@ucw.cz>
6582         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6584         * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
6585         macros without parameters.
6586         * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
6587         * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
6588         * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
6589         `$#' bug.
6590         (autoupdate): Updated to match AU_ALIAS fix.
6592 2006-02-13 Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6593         and Paul Eggert  <eggert@cs.ucla.edu>
6595         * doc/autoconf.texi (Programming in M4sh): Document
6596         AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
6598 2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6600         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
6601         (AS_BOURNE_COMPATIBLE): ..this.
6602         (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
6604 2006-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6606         * doc/install.texi (Defining Variables): Tighten up the
6607         CONFIG_SHELL wording.
6609 2006-02-12 Paul Eggert  <eggert@cs.ucla.edu>
6610         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6612         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
6613         of (set -o) rather than testing whether (set -o posix) succeeds,
6614         to work around a bug in the AIX 5.3 shell.  Problem originally
6615         reportd by Howard Chu for libtool.
6617 2006-02-10  J.T. Conklin  <jtc@acorntoolworks.com>
6619         * doc/autoconf.texi (Running the Compiler, Running the Linker):
6620         Changes the macro arguments in summaries to match the
6621         descriptions.
6623 2006-02-04  Stepan Kasal  <kasal@ucw.cz>
6625         * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
6626         hint as ``a workaround for a bug.''
6628 2006-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6630         * bin/autoreconf.in: New option `--no-recursive'.
6631         Improve wording for subpackages a bit.
6632         * doc/autoconf.texi (autoreconf Invocation): Updated.
6633         * NEWS: Updated.
6635         * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
6636         in environment of `configure', not the command line.
6637         Reported by Howard Chu <hyc@highlandsun.com>.
6639 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
6641         * doc/autoconf.texi (Limitations of Builtins): Document the
6642         problem with "trap -".
6644 2006-01-23  Steven G. Johnson  <stevenj@fftw.org>
6646         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
6647         (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
6648         messages to differentiate Fortran and Fortran 77 tests.
6649         (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
6650         AC_LANG_ASSERT, to allow use in mixed-language projects.
6652 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6654         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
6655         FOO" to "defined (FOO)".
6656         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
6657         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
6658         * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
6659         * tests/tools.at (ifnames): Likewise.
6661 2006-01-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6663         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
6664         * lib/Autom4te/General.pm (mktmpdir): Likewise.
6665         (END): Improve error message a bit.
6666         Reported by Bruce Korb <bkorb@gnu.org>.
6668 2006-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6670         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
6671         `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
6673 2006-01-11  Stepan Kasal  <kasal@ucw.cz>
6675         * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
6676         requires sys/stream.h.  Reported by Oliver Kiddle.
6678 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6679             Stepan Kasal  <kasal@ucw.cz>
6681         * lib/autotest/general.m4 (AT_INIT): When ensuring writability
6682         before the removals of test dirs, use `find' to avoid modification
6683         of symlinked directories.
6685 2006-01-11  Steven G. Johnson  <stevenj@alum.mit.edu>
6687         * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
6688         Don't ignore the macro arguments.
6690 2006-01-11  David Thompson  <dthompsn@vizsolutions.com>
6692         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
6693         declaration that works for MSVC.
6695 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6697         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
6698         Add `*.map' and `.inf' for Green Hills compiler.
6699         Reported by Stefan Seefeld <stefan@codesourcery.com>.
6701         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
6702         correctly: pad with spaces after FIRST_PREFIX if necessary,
6703         and compute string lenghts with `m4_qlen' instead of `m4_len'.
6704         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
6705         * tests/m4sh.at (AS_HELP_STRING): Test extended.
6706         * NEWS: Updated.
6707         Reported by numerous people, numerous times.
6709 2006-01-05  Paul Eggert  <eggert@cs.ucla.edu>
6711         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
6712         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
6713         * lib/autoconf/general.m4, lib/autoconf/status.m4:
6714         * lib/autotest/general.m4, tests/local.at:
6715         Update copyright year to 2006.
6717         * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
6718         sed substitutions.
6719         * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
6720         for file names, again.  Reported by Noah Misch.
6721         (Coding Style): Explain that s|a|b| is preferred for file names.
6722         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
6723         (AC_OUTPUT_MAKE_DEFS): Likewise.
6724         * lib/autotest/general.m4 (AT_INIT): Likewise.
6725         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
6726         * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
6728         Fix Posix-conformance bugs re use of { command in sed scripts,
6729         and improve the sed-related documentation a bit.
6730         * doc/autoconf.texi (Installation Directory Variables): Use
6731         our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
6732         rather than "sed" when talking about Sed in general.
6733         (Particular Programs): Likewise.
6734         (Coding Style): y is like s with respect to / and ,.
6735         (Limitations of Usual Tools): Document the weird restrictions
6736         that Posix has about { }.  Use better quoting.
6737         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
6738         Rewrite to conform to Posix rules about { } in sed scripts.
6739         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
6740         * tests/foreign.at (Libtool): Likewise.
6741         * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
6742         Use our own style advice re 's,a,b,' versus 's|a|b|'.
6744 2006-01-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6746         * lib/autoconf/status.m4: Fix typo.
6748         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
6749         singly- or doubly-quoted arguments to `-cmdline', `-ignore',
6750         `-def', for the benefit of Portland `pgf90 -Mipa'.
6751         Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
6753 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
6755         * doc/autoconf.texi: Update copyright (and other) dates to 2006.
6756         * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
6757         shell from zsh to bash.
6759 2005-12-31  Stepan Kasal  <kasal@ucw.cz>
6761         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
6762           ":" caused problems on OS/2-EMX.  Suggested by Andrew Belov.
6764 2005-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6766         * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
6767         parentheses in $(...).  Problem reported by Eric Blake.
6769 2005-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6771         * doc/autoconf.texi (Limitations of Usual Tools):
6772         Mention which characters can be escaped with \ in portable regular
6773         expressions used in grep, sed, expr.  Mention the leading ^ problem
6774         with expr.  Clean up some confusing wording.  Mention which
6775         grep options are portable.
6777 2005-12-09  Stepan Kasal  <kasal@ucw.cz>
6779         * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
6781 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
6783         * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
6784         patch, noted by Ralf Wildenhues.
6786 2005-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6788         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
6789         posix' unconditionally, for pdksh in `native sh' emulation.
6791 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
6793         * doc/autoconf.texi (Shellology): Document eval $? problem
6794         with ash.
6795         (Limitations of Builtins): Likewise.
6797 2005-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6799         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
6800         CONFIG_SHELL in the environment of the configure rerun.
6801         * doc/autoconf.texi (Here-Documents, config.status Invocation):
6802         Suggest passing CONFIG_SHELL absolute, and in the environment
6803         rather than as option.
6805 2005-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6807         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
6808         Fix quoting of output line (triggered for many AC_SUBST_FILEs).
6809         Fix macro quoting.  Fix output for n * 98 substituted variables.
6811 2005-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6813         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
6814         `tmp' to avoid file removal race.
6816 2005-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6818         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
6819         ac_clean_files and LIBOBJS.
6821 2005-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6823         * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
6824         Factor functionality to..
6825         (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
6826         `AC_SUBST($1)' in the public version.
6827         (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
6828         (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
6829         ac_pt_* variables.
6831 2005-11-01  Stepan Kasal  <kasal@ucw.cz>
6833         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
6834         filesystems.
6836 2005-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6838         * NEWS: Move AH_HEADER mention to right place.
6840 2005-10-27  Stepan Kasal  <kasal@ucw.cz>
6842         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
6843         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
6845 2005-10-25  Stepan Kasal  <kasal@ucw.cz>
6847         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
6848         conftst2.$ac_objext.
6849         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
6851 2005-10-24  Stepan Kasal  <kasal@ucw.cz>
6853         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
6854         conftest.o, to see whether the compiler really obeys; rm the object
6855         file before and after the test and register it with ac_clean_files.
6856         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
6858 2005-10-21  Stepan Kasal  <kasal@ucw.cz>
6860         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
6861         the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
6862         code so that the most common case requires less forks.
6864 2005-10-20  Stepan Kasal  <kasal@ucw.cz>
6866         * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
6867         not portable; thanks to Paul Eggert and Alexandre.
6869         * NEWS: Fix an old typo.
6871 2005-10-20  Jim Meyering  <jim@meyering.net>
6873         * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
6874         the latter'', in two places.
6876 2005-10-19  Paul Eggert  <eggert@cs.ucla.edu>
6878         * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
6879         AC_LANG_PROGRAM, fixing a typo.  Don't give details about
6880         the inner workings of AC_LANG_FUNC_LINK_TRY.
6881         * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
6882         AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
6883         by the function rather than ignoring it.
6884         (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
6885         comparing its address.  Intel's interprocedural optimization was
6886         outsmarting the old heuristic.  Problem reported by
6887         Mikulas Patocka.
6889 2005-10-19  Stepan Kasal  <kasal@ucw.cz>
6891         * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
6893 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
6895         * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
6896         (m4_map, m4_map_sep): Use it.  Handle the empty list correctly.
6898 2005-10-04  Stepan Kasal  <kasal@ucw.cz>
6900         * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
6901         before removing it (chmod -R u+rwx); there are three instances of this.
6903 2005-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6904             Stepan Kasal  <kasal@ucw.cz>
6906         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
6907         * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
6908         make its content writable before removing it.  Remove an errorneous
6909         comment from the end, where the logs of the failed tests are copied
6910         to the main log file.
6912 2005-09-27  Stepan Kasal  <kasal@ucw.cz>
6914         * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
6915           in case the computer is too quick.  Double quote the configure.ac
6916           snippets.
6918         * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
6919           problems if the testsuite were running too fast.
6921 2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
6923         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
6924         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
6925         (which belong to Xt, not X itself).  See Debian bug 327655.
6926         * NEWS: Mention this.
6928 2005-09-07  Stepan Kasal  <kasal@ucw.cz>
6930         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
6932 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
6934         * config/move-if-change: Don't output "$2 is unchanged";
6935         suggested by Ben Elliston.  Handle weird characters correctly.
6937 2005-09-06  Stepan Kasal  <kasal@ucw.cz>
6939         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
6940           calls, so that the final expansion of this macro is shorter.
6941           Create the conftest.$ac_ext outside the `for' loop, to speed the run.
6942           Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
6943           the cleanup there.  Use AS_VAR_* macros, to be more general.
6944         * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
6946         * lib/autoconf/general.m4: Use AS_IF where appropriate.
6948         * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
6950 2005-09-01  Stepan Kasal  <kasal@ucw.cz>
6952         * doc/autoconf.texi (Configuration Headers): Add an index entry
6953           for AH_HEADER.
6955 2005-08-26  Pavel Roskin  <proski@gnu.org>
6957         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
6958         XMKMF to locate xmkmf.  Make XMKMF precious.  Export CC when
6959         running xmkmf.
6961 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
6963         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
6964         The previous patch didn't work, so try a better one.
6966 2005-08-26  Stepan Kasal  <kasal@ucw.cz>
6968         * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
6969         in the example.  Reported by Bruno Haible.
6970         <AS_TR_SH>: Likewise.  Also modify the example to be more convincing:
6971         "if $undefined_var;" succeeds with my shell.
6973         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
6974         AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
6975         but change the m4_divert_text to m4_divert_once.
6977 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
6979         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
6980         Work around bug in Solaris /usr/xpg4/bin/awk.
6981         The bug is present in at least Solaris 8 through 10.
6983 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
6985         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
6986         some evil values and relying on the fact that $* concatenates the
6987         parameters by the first character from IFS.
6989 2005-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
6990             Stepan Kasal  <kasal@ucw.cz>
6992         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
6993         first header appears, define AH_HEADER.
6994         * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
6995         Update limitations about when to call AC_CONFIG_HEADERS.
6996         (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
6997         parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
6998         that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
6999         ``Configuration Actions''; fix their index entries.
7001         * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
7002         options correctly.  Process N-M as M-N if M is smaller than N.
7003         Process ranges correctly so that N-N will run only N.
7004         Sort and uniquify the tests that will be run.  If there is more
7005         than one test, reinsert the banners for the tests.
7006         * tests/autotest.at (Keywords): Unmark XFAIL.
7008 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
7010         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
7011           before passing the macro name to AH_TEMPLATE.
7013         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
7014           now opens log after option processing; in particular, --version
7015           and --help do not touch config.log.
7017         * Makefile.maint: Revert the change from 2005-08-12.
7019 2005-08-22  Stepan Kasal  <kasal@ucw.cz>
7021         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
7022           common code to...
7023         (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
7025 2005-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7027         * doc/autoconf.texi (Using Autotest, testsuite Scripts)
7028         (Autotest Logs, Writing testsuite.at, testsuite Invocation):
7029         Language cleanup.
7031         * doc/autoconf.texi (Defining Symbols, Changed Results):
7032         Prepend to LIBS, not append, in examples.
7034 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
7036         When building in place, set srcdir="."; suggested by Tim Van Holder.
7038         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
7039           build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
7040         (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
7041         * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
7042           does not mean "no --srcdir option".
7044 2005-08-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7046         * tests/autoscan.at (autoscan): New file.
7047         * tests/suite.at: Use it.
7048         * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
7049         Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
7051         * tests/autotest.at (Keywords): Test keywords combinations.
7053 2005-08-12  Stepan Kasal  <kasal@ucw.cz>
7055         * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
7056           add "2>&1"; gzip 1.2.4 prints help on stderr.
7058 2005-07-27  Stepan Kasal  <kasal@ucw.cz>
7060         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
7061         was pushdef'ed twice while popped only once.  Push it only once.
7062         (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
7064 2005-07-26  Stepan Kasal  <kasal@ucw.cz>
7066         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
7067         prefixed by mere "===", not "configure: === ".
7069 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7071         * Makefile.maint: Update from Bison.
7073         * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
7074         "<tab>" in comment, so that the point is understandable.
7076 2005-07-25  Stepan Kasal  <kasal@ucw.cz>
7078         Rewrite substantial part of lib/autoconf/status.m4.
7079         The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
7080         and CONFIG_COMMANDS are not processed in four separate loops.
7081         Instead, there is one main loop.  This alows that the common code
7082         is expanded only once, thus config.status (and configure) is smaller.
7084         The registration mechnism in AC_CONFIG_FILES and cousins also changed;
7085         the AC_LIST_FILES and cousins macros are no longer used.
7087         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
7088         _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
7089         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
7090         _AC_OUTPUT_COMMAND): ..., respectively.  These macros no longer
7091         contain the initialization, nor the for loop, nor the associated
7092         commands; all these go to ...
7093         (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
7094         _AC_OUTPUT_CONFIG_STATUS.
7095         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
7096         Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
7097         (_AC_OUTPUT_FILE): The creation of the sed script ...
7098         (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
7099         (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
7100         _AC_OUTPUT_MAIN_LOOP.
7101         (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
7102         _AC_CONFIG_COMMANDS): Use ...
7103         (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
7104         (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
7105         (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
7106         _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
7107         (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
7108         (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
7109         ... new macros.
7110         (_AC_CONFIG_UNIQUE): Update.
7111         (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
7112         Replaced by this ...
7113         (_AC_LIST_TAGS): ... new common macro.
7114         (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
7115         AC_LIST_COMMAND_COMMANDS): Replaced by this ...
7116         (_AC_LIST_TAG_COMMANDS): ... new common macro.
7117         (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
7118         this didn't belong to the `config commands' section.
7119         (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
7120         (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
7121         AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
7122         to the `config commands' section either.
7123         (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
7124         (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
7126         ... and many changes to the comments nearby.
7128         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
7129         set ac_subdirs_all='_AC_LIST_SUBDIRS'.
7130         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
7131         AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
7132         (#define header templates): The comment at the top of the generated
7133         header now includes the name(s) of the source file(s).
7135         Several unrelated small changes:
7137         * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
7138         parameter to AC_DIAGNOSE.
7139         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
7140         (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
7141         with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
7142         (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
7143         with AU::AC_OUTPUT.
7144         (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
7145         in AC_OUTPUT doesn't double-quote it either.
7146         * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
7147         parameters.
7149 2005-07-10  Stepan Kasal  <kasal@ucw.cz>
7151         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
7152         versions of Portland Group compiler produce single- and double-quoted
7153         -cmdline argument.  Reported by Steven G. Johnson <stevenj@fftw.org>
7154         and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
7156 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
7158         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
7159         This is a corrected version of yesterday's patch.
7161 2005-07-07  Stepan Kasal  <kasal@ucw.cz>
7163         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
7164         path, too; insert a "===" to emphasize the line.
7166         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
7167           ac_cv_build_alias to ac_build_alias.
7168         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
7170         On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
7171         change eliminates it.  Problem reported by Alexandre Duret-Lutz.
7172         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
7173         (AC_ARG_VAR): ... here.
7174         (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
7175           target_alias.
7177         Keep a list of all precious variables and process them with one simple
7178         for loop, instead of expanding all commands, or, OTOH, complicated
7179         processing of output of "set".
7180         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
7181         variable names in new macro...
7182         (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
7183         (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
7184           a loop to assign all ac_env_* and ac_cv_env_* variables.
7185         (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
7186           to INIT_PREPARE.
7187         (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
7188           its value to shell variable ac_precious_vars and call
7189           _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
7190         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
7191           _AC_ARG_VAR_VALIDATE.
7193         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
7194           and the AC_SUBSTs ...
7195         (AC_INIT): ... here.
7197         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
7198           the ac_subst_files section in config.log.
7200         * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
7202 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7204         * NEWS: New macro AC_C_TYPEOF.
7205         * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
7206         * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
7207         * tests/c.at (C keywords): Test AC_C_TYPEOF.
7209         Fix problems reported by Nicolas Joly.
7210         * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
7211         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
7212         They are generated by the Tru64 v5.1B shell.
7214 2005-07-05  Stepan Kasal  <kasal@ucw.cz>
7216         Fix my changes from 2005-07-01; reported by Noah Misch.
7217         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
7218         description, the macro now accepts only a single tag.
7219         (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
7221         Fix cases when the varsions of Autoconf and Autotest don't match.
7222         Reported by Noah Misch.
7223         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
7224         at_top_builddir, for compatibility with older autotest.
7225         * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
7226         is not set, use at_top_builddir, for compatibility with older
7227         versions of autoconf.
7229 2005-07-04  Paul Eggert  <eggert@cs.ucla.edu>
7231         * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
7232         Problem reported by Patrick Welche.
7234 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7236         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
7237         sed substitution command, so that we allow | in program prefixes
7238         and program suffixes.  (& is a problem anyway; we're not fixing
7239         that here.)
7240         * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
7241         configure_input, top_builddir, srcdir, etc.
7242         * lib/autotest/general.m4 (AT_INIT): Likewise, for
7243         PATH_SEPARATOR in AUTOTEST_PATH.
7245 2005-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
7247         * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
7248         for loop over config.site files using `set', to allow
7249         directory names containing IFS characters.
7251 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7253         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
7254         directories with weird names.  Apparently some people like living
7255         on the edge.  However, improve the test that "pwd" actually does
7256         report a name for the working directory.
7257         * NEWS: Remove the claim that we test for funny chars in dir names.
7259 2005-07-01  Stepan Kasal  <kasal@ucw.cz>
7261         * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
7262         replaced ...
7263         * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
7264         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
7265         Now accept a single tag, not whitespace separated list.
7266         (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
7268 2005-06-30  Stepan Kasal  <kasal@ucw.cz>
7270         * doc/autoconf.texi (Configuration Headers): Change the explanation
7271         about #include <config.h>.
7272         (Generic Functions): Mention the Gnulib project.
7273         (Limitations of Usual Tools) <sed>: Another minor rephrasing.
7275         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
7276         document to output the default config_* lists to config.status.
7277         Don't recognize option --file, if the functionality is not there.
7278         Likewise for --header; moreover, recognize --he and --h as shortcuts
7279         for --help in that case.
7281         * lib/autoconf/status.m4: Fix the order of the "sections", so that it
7282         matches the order of execution.  No code changed.
7284 2005-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7286         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
7287         single-quoted -cmdline argument in Portland Group compiler.
7288         Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
7290 2005-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
7292         * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
7294 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
7296         * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
7297         descriptors to child processes; reported by Norman Gray.
7299 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
7301         * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
7303         * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
7304         instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
7305         (AC_SUBST): Call it.
7306         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
7307         the directory specific variables; but don't call it for configure_input.
7309 2005-06-28  Derek Price  <derek@ximbiot.com>
7311         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
7312         addition.
7314 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
7316         * NEWS: Don't worry about spaces in bindir etc.  Only srcdir and working
7317         directory have inherent problems with special characters like spaces,
7318         due to limitations in Make syntax.  Problem reported by Alexandre
7319         Duret-Lutz.
7320         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
7321         Also, fix Tru64 porting problem with shell patterns,
7322         reported by Ralf Wildenhues.
7324 2005-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7326         * doc/autoconf.texi (Subdirectories): Fix markup typos.
7328 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
7330         * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
7332         Fix some more shell quoting problems.  Prompted by a bug report
7333         from Justace Clutter.
7334         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
7335         variable into diagnostic.  Make the diagnostic an error, not a warning,
7336         because we really don't support spaces and suchlike in dir names.
7337         (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
7338         Don't worry about backslashes in srcdir; it can't happen now.
7339         (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
7340         Simplify ac_optarg handling.
7341         (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
7343 2005-06-22  Stepan Kasal  <kasal@ucw.cz>
7345         Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
7346         * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
7347         * tests/atlocal.in: Propagate $EGREP and $SED.
7348         * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
7349         (AT_CONFIG_CMP): Use sed instead of grep plumbing.
7351         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
7352         that '\|' is not allowed in BREs; recommend using newline separated
7353         list of patterns instead of multiple -e options.
7355         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
7357         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
7359 2005-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7361         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
7363 2005-06-21  Stepan Kasal  <kasal@ucw.cz>
7365         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
7366         b, t, r, w commands require single space, while : cannot have any.
7367         (Special Shell Variables): Fix sed code this in the example.
7368         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
7369         * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
7371         * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
7372         expand to the empty list.  Don't use two pairs of m4_changequote,
7373         it's not necessary.
7375 2005-06-20  Derek Price  <derek@ximbiot.com>
7377         * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
7379 2005-06-17  Paul Eggert  <eggert@cs.ucla.edu>
7381         * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
7382         * doc/autoconf.texi:
7383         Don't mention Solaris versions so much, if a
7384         problem is common to all extant versions of Solaris.  Say "SunOS
7385         4" instead of "SunOS" for SunOS 4.
7386         (awk): Mention more of the limitations of traditional Awk.
7387         (cat): Don't talk about cat -v.
7389 2005-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7391         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
7392         (AS_VERSION_COMPARE): New macro.  The API is taken from CVS,
7393         but the implementation is entirely different and is designed
7394         to be compatible with glibc strverscmp.
7395         * tests/m4sh.at (AS_VERSION_COMPARE): New test.
7397         * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
7398         on Mac OS X 10.4 reported by Peter O'Gorman in:
7399         http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
7400         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
7401         Use shell builtins rather than 'expr', to work around expr bug.
7403 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
7405         * doc/autoconf.texi: "filesystem" -> "file system".
7406         "behaviour" -> "behavior".
7407         Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
7408         * lib/autoconf/general.m4: Omit blank after ":" sed command,
7409         as per POSIX.
7410         * lib/m4sugar/m4sh.m4: Likewise.
7411         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
7412         with Solaris sed.  Fix by Ralf Menzel and Stepan Kasal.
7414         * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
7415         (.x.1): Ignore the time stamp in the .TH line when deciding whether
7416         to update the man page.  That way, we don't have to check in new
7417         man pages every month.
7419         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
7420         quotes and backslashes.  Patch from Derek Price.
7422 2005-06-10  Derek Price  <derek@ximbiot.com>
7424         * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
7425         AS_TR_SH.
7427 2005-06-08  Paul Eggert  <eggert@cs.ucla.edu>
7429         * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
7430         -u, since it outputs chatter if the input files are the same.
7431         Problem reported by Ralf Menzel.
7433 2005-06-08  Derek Price  <derek@ximbiot.com>
7435         * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
7436         renaming them since they are about to be redefined anyhow.
7438 2005-06-08  Derek Price  <derek@ximbiot.com>
7440         * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
7441         redefined M4 macros to this node.  Document m4_include & m4_sinclude.
7442         Move m4_undefine to alphabetical order.
7444 2005-06-07  Paul Eggert  <eggert@cs.ucla.edu>
7446         * README: Recommend GNU M4 1.4.3 or later.
7447         * doc/autoconf.texi (Introduction): Likewise.
7448         Reword to avoid some formatting glitches.
7449         Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
7450         Clarify explanation of HP compiler bug.
7451         Redo example output tp match current CVS snapshot.
7452         Use @example.org in email addresses when the examples
7453         might get inadvertently cut-and-pasted into user code.
7454         Remove example of autom4te usage that doesn't seem to work now.
7455         Use modern AC_INIT (except when the example is meant to be
7456         shown with Autoconf 2.13).
7457         Update ksh info for Solaris 9 and later.
7458         KB -> kB.
7459         Modernize description of Automake versions a bit.
7460         Don't claim a future version of Autoconf is near.
7461         * doc/install.texi: Reword to avoid some formatting glitches.
7463 2005-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7465         * doc/autoconf.texi: Add [] to examples, so that the manual
7466         follows its own advice about quoting better.
7467         Reword to avoid some formatting glitches.
7468         * doc/installt.exi: Reword to avoid some formatting glitches.
7470         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
7471         Tru64 ksh pattern matching bug.  Reported against Libtool by
7472         Albert Chin <libtool@mlists.thewrittenword.com> and
7473         Nicolas Joly <njoly@pasteur.fr>.
7475 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
7477         m4_cdr of one-member list was [[]] (one-member list containing an
7478         empty string) instead of [] (an empty list.  Callers were skewed to
7479         match this misbehaviour.  As a consequence of this:
7480          - m4_foreach([x], [], [foo]) expanded to `foo', while
7481          - the expansion of m4_foreach([x], [[]], [foo]) was empty.
7482         This bug has been fixed:
7484         * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
7485           expand to an empty string; print error msg if called without
7486           an argument list.
7487         (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
7488           misbehaviour; handle [] and [[]] correctly.
7490 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
7492         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
7493         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
7494           scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
7496 2005-06-06  Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>  (trivial change)
7498         * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
7499           swallow records with more than 99 fields.
7500         * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
7501           parse the long line.
7503 2005-06-04  Stepan Kasal  <kasal@ucw.cz>
7505         * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
7506           swallow literals longer than 399.  Reported by Ralf Wildenhues.
7507         * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
7508           to workaround this limitation.
7510 2005-06-03  Steven G. Johnson  <stevenj@alum.mit.edu>
7512         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
7513         to gfortran, and make these the first two compiler names
7514         checked (following the general autoconf preference for gcc).
7516 2005-06-03  Stepan Kasal  <kasal@ucw.cz>
7518         * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
7519         (DISTCLEANFILES): Remove $(check_SCRIPTS).
7520         (testsuite): Make sure autotest.m4f is up-to-date before using it.
7522 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
7524         * lib/autotest/general.m4 (AT_INIT): Don't create a regular
7525         expression of unbounded size when processing the --list
7526         option.  This runs afoul of a limit of 399 bytes per regular
7527         expression on AIX.  Problem reported by Ralf Wildenhues.
7529 2005-06-01  Paul Eggert  <eggert@cs.ucla.edu>
7531         * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
7532         * doc/autoconf.texi (Particular Headers): Reword example
7533         for multiline stdbool replacement.
7534         (Setting Output Variables): Reword text a bit.  Don't
7535         give all the details about |#_!!_#|.
7536         Reword description of line replacement.
7538 2005-05-31  Dan Manthey  <dan_manthey@partech.com>
7540         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
7541         now contain newlines, and substituted files must be referenced on
7542         a line alone; the sed scripts to substitute them are now very
7543         different.
7544         (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
7545         commands can be put in a sed script portably.
7546         * doc/autoconf.texi (Setting Output Variables): Document above
7547         changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
7548         use of multiline substitution.
7549         * tests/torture.at: No longer expect substitution of newline to fail.
7551 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
7553         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
7554         From Ralf Menzel (trivial change).
7556 2005-05-25  Paul Eggert  <eggert@cs.ucla.edu>
7558         * tests/local.at: Don't attempt to check for negated character
7559         classes in shell scripts.  The test was too brittle.
7561 2005-05-25  Stepan Kasal  <kasal@ucw.cz>
7563         * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
7564         * doc/autoconf.texi (Limitations of Builtins): Document this
7565           limitation.
7567 2005-05-24  Stepan Kasal  <kasal@ucw.cz>
7569         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
7570           common code; used in many places in the tree.
7571         (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
7572         (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
7574         * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
7576         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
7577           messages when ac_unique_file is not found.
7578         (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
7579         (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
7580           commands, for consistency with AC_MSG_ERROR and such.
7582         * bin/autoconf.as: Make more use of "shift 2" in option processing.
7584         * bin/Makefile.am: Merge the two rules for creating scripts.
7586 2005-05-23  Stepan Kasal  <kasal@ucw.cz>
7588         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
7589         obsolete; it was never documented.
7590         (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
7592 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
7594         * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
7595         * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
7596         (ac_top_builddir): ... this ...
7597         (ac_top_build_prefix): ... to this; the old name is also kept, for
7598           backward compatibility.
7599         (ac_top_builddir_sub): New variable, without the trailing slash,
7600           always nonempty.
7601         (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
7602         * doc/autoconf.texi (Configuration Actions): Rename
7603           ac_top_builddir to ac_top_build_prefix.
7604         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
7605           at_top_builddir to at_top_build_prefix.
7606         * lib/autotest/general.m4 (AT_INIT): Likewise.
7608 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
7610         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
7611           of confdefs.h .
7613 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
7615         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
7616           argument to m4_foreach.  I guess it was necessary in the past,
7617           but I think it's a no-op now.
7619 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
7621         * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
7622           ``cat <<_ACEOF'' commands to one.
7623         (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
7624         * lib/autoconf/status.m4: On various places, use expr instead of
7625           ``echo|sed.''
7626         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
7627         (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
7628         * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
7629           a range.
7630         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
7631           the wrong patterns between ``case'' and ``esac.''  The previous
7632           code had false positives.
7634 2005-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
7636         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
7637         as on 2005-05-02.
7638         * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
7639         Mention LIBOBJDIR.
7641 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
7643         * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
7644         ChangeLog.2, GNUmakefile, Makefile.am, Makefile.cfg,
7645         Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
7646         bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
7647         bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
7648         bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
7649         config/config.guess, config/config.sub, config/elisp-comp,
7650         config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
7651         doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
7652         lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
7653         lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
7654         lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
7655         lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
7656         lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
7657         lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
7658         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
7659         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
7660         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
7661         lib/autoconf/general.m4, lib/autoconf/headers.m4,
7662         lib/autoconf/lang.m4, lib/autoconf/libs.m4,
7663         lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
7664         lib/autoconf/specific.m4, lib/autoconf/status.m4,
7665         lib/autoconf/types.m4, lib/autoscan/Makefile.am,
7666         lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
7667         lib/autotest/Makefile.am, lib/autotest/autotest.m4,
7668         lib/autotest/general.m4, lib/emacs/Makefile.am,
7669         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
7670         lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
7671         lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
7672         tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
7673         tests/compile.at, tests/foreign.at, tests/fortran.at,
7674         tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
7675         tests/semantics.at, tests/suite.at, tests/tools.at,
7676         tests/torture.at, tests/wrapper.as:
7677         Update FSF postal mail address.
7679 2005-05-13  Stepan Kasal  <kasal@ucw.cz>
7681         * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
7682           check.
7683         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
7684           enough arguments, similarly as in m4_bpatsubsts.
7686 2005-05-12  Stepan Kasal  <kasal@ucw.cz>
7688         * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
7689           of absolute paths.
7691 2005-05-11  Stepan Kasal  <kasal@ucw.cz>
7693         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
7694           for absolute directory names in one loop.
7695         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
7696           abbreviations of --version and --debug.
7698 2005-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7700         * doc/autoconf.texi (Autoconf Language): Be more precise about
7701         quoting rules.  Problems noted by Stepan Kasal.
7702         Also, throughout this document, be more careful about white space.
7703         "blank", "white space", and "space" all have different meanings
7704         and we should be careful to say what we mean.
7706 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7708         Fix C++ related problems reported by Werner Lemberg.
7709         * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
7710         * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
7711         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
7712         avoid problems with C++ and throw.
7713         * tests/compile.at: .cpp, not .cc.
7715         * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
7717 2005-05-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7719         * doc/autoconf.texi (Generic Functions): Typos.
7721 2005-05-02  Gary V. Vaughan  <gary@gnu.org>
7723         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
7724         object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
7725         set by latest automake.
7727 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
7729         * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
7730         outputs 0 on GNU/Linux these days.
7732 2005-04-29  Paul Eggert  <eggert@cs.ucla.edu>
7734         * doc/autoconf.texi (Autoconf Language): Add more description
7735         about quoting heuristics.
7736         (Limitations of Builtins): Describe "set -" problems.
7738 2005-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7740         * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
7741         not newline.
7743         * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
7744         by AC_DEFINE; it was a mistake.
7745         From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
7747 2005-04-25  Stepan Kasal  <kasal@ucw.cz>
7749         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
7751 2005-04-22  Stepan Kasal  <kasal@ucw.cz>
7753         * doc/autoconf.texi (External Software): Quadrigraphs are not
7754           processed correctly in AS_HELP_STRING; avoid this in the examples.
7755         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
7756         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
7757           comment and reduce m4_default([foo], []) to [foo].
7758         (m4_strip): Update the explanation.
7760 2005-04-19  Paul Eggert  <eggert@cs.ucla.edu>
7762         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
7763         Remove core.conftest.* too; it's generated by Tru64 5.1.
7764         Problem reported by Jennis Pruett.
7765         * lib/autoconf/functions.m4
7766         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
7767         Don't bother to remove core files; AC_RUN_IFELSE should do that
7768         for you.
7770 2005-04-19  Stepan Kasal  <kasal@ucw.cz>
7772         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
7774 2005-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
7776         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
7777         Report from Horst Wente.
7779 2005-04-15  Stepan Kasal  <kasal@ucw.cz>
7781         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
7782           the comment.
7784 2005-04-14  Gregorio Guidi  <greg_g@gentoo.org>
7786         * doc/autoconf.texi (External Software, Package Options): Add
7787           examples showing how to implement --with-* and --enable-* options.
7789 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
7791         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
7792         as well as configure.in.  Problem reported by Gregorio Guidi.
7794 2005-04-10  Paul Eggert  <eggert@cs.ucla.edu>
7796         * doc/autoconf.texi (Particular Functions): Use gnulib's current
7797         pattern for alloca snippet.
7799 2005-04-04  Stepan Kasal  <kasal@ucw.cz>
7801         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
7803 2005-04-01  Stepan Kasal  <kasal@ucw.cz>
7805         * doc/autoconf.texi (Generic Programs): Fix a typo.
7807 2005-04-01  Paul Eggert  <eggert@cs.ucla.edu>
7809         * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
7810         fails if %s isn't supported.  Problem reported by Ralf Wildenhues.
7812 2005-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7814         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
7815         Merge `-z option' as well for the benefit of Solaris link flags.  Pass
7816         whole-archive (-zallextract, -zdefaultextract) options in the hope of
7817         unique libraries, for the Sun Fortran 95 8.0 compiler.  Bug reported
7818         against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
7820 2005-03-22  Paul Eggert  <eggert@cs.ucla.edu>
7822         * NEWS: The configure command now warns you if you attempt to use
7823         a directory whose name contains a special character like space,
7824         newline, or "\".
7825         * doc/autoconf.texi (Installation Directory Variables): Allow
7826         "," in file names.  Do not use \@; it's not a portable regexp.
7827         * bin/Makefile.am (edit): Likewise.
7828         * lib/Makefile.am (edit): Likewise.
7829         * tests/Makefile.am (edit): Likewise.
7830         * tests/semantics.at: Likewise.
7831         * tests/torture.at: Likewise.
7832         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
7833         * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
7834         * doc/autoconf.texi (File System Conventions): Warn about
7835         unportable file names.
7836         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
7837         (AC_INIT): Use it.
7838         (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
7839         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
7840         ac_pwd, and quote srcdir.
7841         * lib/autotest/general.m4 (AT_INIT): Quote file name args.
7843         * doc/autoconf.texi: Fix some systematic formatting problems.
7844         ".)"  needs a following @: if not at the end of a sentence, and
7845         similarly for "!)".  "etc." should be preceded by a comma.
7846         "n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
7848 2005-03-22  Bruno Haible  <bruno@clisp.org>
7850         * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
7851         argument is often called 'build-aux'.
7853 2005-03-07  Stepan Kasal  <kasal@ucw.cz>
7855         * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
7856           macro AC_TRY_LINK is obsolete.
7857         (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
7858           `AC_CONFIG_FILES'.
7860 2005-02-24  Stepan Kasal  <kasal@ucw.cz>
7862         * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
7863           `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
7864           from a Common Lisp's `cl'.
7865         (AC_PROG_CXX): Behave according to the documentation: don't
7866           search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
7867           make the variable CCC precious; use `cl.exe', not `cl'.
7869 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
7870             Alexandre Duret-Lutz  <adl@gnu.org>
7872         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
7873         /dev/null, as "configure" shouldn't read stdin, and this insulates
7874         us from problems (e.g., when testing for "cl").  Also, do this
7875         redirection before invoking "hostname" or "uname", and keep the
7876         original input stream available via...
7877         (AS_ORIGINAL_STDIN_FD): ... this new macro.
7878         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
7879         bother with "</dev/null" since it's now done at the top of
7880         'configure'.
7881         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
7882         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
7883         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
7884         * doc/autoconf.texi (File Descriptor Macros): New section.
7885         (Printing Messages): Mention it.
7886         * tests/base.at (Input/Output): New test.
7888 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
7890         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
7891         newline if neither \c nor -n work, as that would output two
7892         newlines.  Prefer -n to \c.  Reported by Stepan Kasal.
7894 2005-02-12  Stepan Kasal  <kasal@ucw.cz>
7896         * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
7897         This causes that any required macros inside will get before the if.
7898         * doc/autoconf.texi (autom4te.cache): A typo.
7900 2005-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7902         Undo previous change, except keep the change to
7903         lib/autoconf/programs.m4 that replaced grep with shell
7904         pattern-matching.  This is because net-snmp configure reads stdin.
7905         Reported by Noah Misch.
7907 2005-02-11  Paul Eggert  <eggert@cs.ucla.edu>
7909         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
7910         from /dev/null, as "configure" shouldn't read stdin, and this
7911         insulates us from problems (e.g., when testing for "cl").
7912         Suggested by Alexandre Duret-Lutz.  Also, do this redirection
7913         before invoking "hostname" or "uname".
7914         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
7915         _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
7916         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
7917         "</dev/null" since it's now done at the top of 'configure'.
7918         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
7919         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
7920         Also, replace grep with shell pattern-matching, to save a process.
7922 2005-02-10  Paul Eggert  <eggert@cs.ucla.edu>
7924         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
7925         _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
7926         avoid thinking that Allegro Common Lisp's "cl" command is a C++
7927         compiler.
7929 2005-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7931         * doc/autoconf.texi (Limitations of Usual Tools): Document that
7932         grep -q isn't portable.  Improve grep -s explanation.
7933         Problem reported by Dan Manthey.
7935 2005-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7937         * doc/autoconf.texi (Special Shell Variables): Clarify
7938         PATH_SEPARATOR wording; fix typo in IFS.  Reported by Gary V. Vaughan.
7940 2005-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7942         * doc/autoconf.texi: Use @acronym for DJGPP.
7943         Fix some @code's that should have been @env's, and vice versa.
7944         Sort environment variable names.
7945         Mention that shells no longer inherit IFS.
7946         Don't recommend PATH_SEPARATOR=';' so strongly.
7947         Mention that $RANDOM might expand to the empty string.
7948         "symlink" and "soft link" -> "symbolic link".
7949         Improve mktemp description (reported by Bruno Haible).
7951 2005-02-05  Paul Eggert  <eggert@cs.ucla.edu>
7953         * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
7954         * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
7955         Likewise.
7956         * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
7957         Likewise.
7959 2005-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7961         * NEWS: Mention AT_COPYRIGHT.
7963         * tests/local.at (AT_CMP): Use diff directly on input files rather
7964         than copying them.
7966         * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
7967         /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
7969 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
7970         and Paul Eggert  <eggert@cs.ucla.edu>
7972         * tests/autotest.at (Empty test suite): New test.
7973         * tests/torture.at (Substitute and define special characters)
7974         (Substitute a 2000-byte string, Define to a 2000-byte string)
7975         (Substitute a newline, Define a newline): New tests.
7977 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
7979         * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
7980         * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
7981         (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
7982         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
7983         (Standard regular expressions): New test.
7984         (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
7985         excess test name quoting.
7986         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
7987         CPPFLAGS to `configure' instead of setting it in `configure'.
7989         * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
7990         any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
7991         on some platforms.
7993         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
7994         s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
7996         * tests/local.at (AT_CMP): New macro.
7997         (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
7998         (AC_SAVE_STATE): Move environment grep...
7999         (AT_CHECK_ENV): to here.  Filter out `'$''.  Use AT_CMP.
8000         (AT_CONFIG_CMP): New macro.
8001         (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
8002         * tests/c.at (Extensions): Do not exit early.
8003         * tests/atlocal.in: Inherit $GREP.
8005         * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
8006         (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
8008         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
8009         (AC_COPYRIGHT): Factor header comment portion out and move into...
8010         * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
8011         * lib/autotest/general.at (AT_COPYRIGHT): New macro.
8012         (AT_INIT): Add Autotest copyright notice.  Display copyright notices in
8013         --version output.
8014         * tests/local.at: Add Autoconf test suite copyright notice.
8015         * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
8017 2005-02-04  Bruno Haible  <bruno@clisp.org>
8018         and Paul Eggert  <eggert@cs.ucla.edu>
8020         * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
8022 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
8024         * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
8025         this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
8027         Try not to generated lines of unlimited length, as POSIX places a
8028         2047-byte limit on line length of portable text files.
8029         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
8030         Use newline as a separator, not space.
8031         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
8032         (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
8033         space.
8035 2005-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8037         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
8038         as_func_*.  Add test to check whether positional parameters
8039         are restored after function return.
8041 2005-02-02  Paul Eggert  <eggert@cs.ucla.edu>
8043         * doc/autoconf.texi (Special Shell Variables): Mention _,
8044         BIN_SH, DUALCASE.  Say that variables other than "status" are safe
8045         if they contain a lower-case letter.  The DUALCASE problem was
8046         reported by Ralf Wildenhues.
8048         * bin/autoconf.as: Don't exit with status 0 after write failure
8049         with --help or --version.
8050         * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
8051         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
8053 2005-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8055         * doc/autoconf.texi (Limitations of Usual Tools):
8056         Unicos 9 sed limitations.
8057         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
8058         to get the option-enhanced interface on older Crays.  Try ftn for
8059         Fortran 95 (newer Crays).
8061 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
8063         * man/Makefile.am (.x.1): Go back to the simple solution, but take
8064         care to echo the commands, so the user knows what's going on.
8065         Modified from a suggestion by Stepan Kasal.
8067         * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
8068         with a cross reference.  Derived from a suggestion by Bruce Korb.
8070 2005-01-31  Paul Eggert  <eggert@cs.ucla.edu>
8072         * doc/autoconf.texi (config.status Invocation): Warn about
8073         discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
8074         * doc/install.texi (Defining Variables): Likewise.
8075         Based on a proposed patch by Ralf Wildenhues.
8077         * man/Makefile.am (.x.1): Make sure the required generated files
8078         are up to date.  Problem and original solution proposed by Stepan Kasal.
8079         $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
8080         implicit-man-prerequisites): New rules, used by the above.
8082         * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
8083         * config/config.guess, config/config.sub, config/install-sh: Likewise.
8084         * config/missing, config/texinfo.tex: Likewise.
8086 2005-01-29  Stepan Kasal  <kasal@ucw.cz>
8088         Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
8089         Update the long comment explaining it.
8091         m4_require no longer writes an ``is required by'' line to the
8092         execution stack.  It contains only one bit of non-redundant
8093         information: that the macro was required, not called.  And even
8094         this bit is useless in most situations: have you ever met a macro
8095         which both calls and requires the same macro?
8097         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
8098         (_m4_defun_pro_outer): ... only via this macro, for the outermost
8099           macro.
8100         (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
8101         (m4_expansion_stack_pop): Remove the misplaced comment.
8102         (m4_require): Don't put the ``is required by'' line to the
8103           execution stack; slightly improve the out-of-a-defun error message.
8104         (_m4_divert_grow): New macro, counter for the temporary diversions.
8105         (_m4_require_call): Use it.
8106         * tests/m4sugar.at (m4_require): Expect output without the
8107           ``is required by'' messages.
8109 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8111         * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
8112         rather than x for expr.
8114         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
8115         this is safe.
8116         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
8117         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
8118         * lib/autotest/general.m4 (AT_INIT): Likewise.
8119         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
8120         * tests/mktests.sh: Likewise.
8122 2005-01-27  Akim Demaille  <akim@epita.fr>
8124         Have autoheader honor --force.
8126         * doc/make-stds.texi, doc/standards.texi: Update from masters.
8127         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
8128         * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
8129         from masters, so that FileUtils.pm's update_file provide --force
8130         support.
8131         * bin/autoheader.in: Pass $force to update_file so that
8132         config.h.in is always recreated when --force.
8134 2005-01-24  Stepan Kasal  <kasal@ucw.cz>
8136         * doc/autoconf.texi (Introduction): Update Peter Simons' address.
8138 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
8140         * doc/autoconf.texi (Limitations of Builtins): Clarify that
8141         "if test ! -d foo; ..." is portable.  Suggested by Stepan Kasal.
8143 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
8145         * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
8146         Warn about newline stripping in `` and $().  Update Solaris
8147         version to 9.
8148         (Limitations of Builtins): Use expr "X...", not expr "x...", as
8149         X insulates us from future changes to Posix.
8150         (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
8151         stripping.
8153 2005-01-19  Stepan Kasal  <kasal@ucw.cz>
8155         * doc/autoconf.texi (Defining Symbols): Delete the false comment that
8156           you cannot use AC_DEFINE to define macros containing `[' or `]'.
8158 2005-01-13  Paul Eggert  <eggert@cs.ucla.edu>
8160         * doc/autoconf.texi (Limitations of Usual Tools): Document bug
8161         in Solaris 8 join.  Problem reported by Tomohiro Suzuki on
8162         bug-tar mailing list.
8164 2005-01-05  Stepan Kasal  <kasal@ucw.cz>
8166         * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
8168 2005-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8170         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
8171         ulongval to be static, to avoid unwanted GCC warning.  Problem
8172         reported by Michael Jennings via Daniel Reed; see
8173         <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
8175 2005-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
8177         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
8178         docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
8179         datadir, infodir, and mandir.  Adjust argument parsing code.
8180         (_AC_INIT_HELP): Update help text.
8181         * doc/autoconf.texi (Installation Directory Variables): Document
8182         new variables.
8184 2005-01-04  Noah Misch  <noah@cs.caltech.edu>
8186         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
8187         not seem to work, assume it does set $(MAKE).
8188         * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
8190 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
8192         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
8194 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
8196         A cleanup of the diversion support in m4sugar.
8198         * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
8199         (_m4_divert_n_stack): New macro; the expansion is
8200           <newline>m4_divert_stack, if m4_divert_stack is defined, and void
8201           otherwise.
8202         (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
8203         (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
8204           stored in _m4_divert_diversion or _m4_divert_dump.
8205         (m4_divert_pop): When the parameter is given, compare the symbolic
8206           name with the last diversion pushed on the stack.  Previously, the
8207           current diversion was compared with the numeric value of the
8208           diversion given as the parameter.
8209         (m4_require): If the macro hasn't been expanded yet, call ...
8210         (_m4_require_call): this new macro.
8212 2005-01-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8214         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
8215         Workarounds for documented `case' limitations.
8217 2005-01-03  Paul Eggert  <eggert@cs.ucla.edu>
8219         * doc/autoconf.texi (Limitations of Usual Tools): Warn about
8220         sed 'command1;command2'.  Problem reported by Ralf Wildenhues.
8222 2005-01-02  Paul Eggert  <eggert@cs.ucla.edu>
8224         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
8225         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
8226         bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
8228         Patch from Roger Leigh (with some minor changes) as follows:
8229         * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
8230         Resurrect AC_PROG_CC_STDC.
8231         * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
8232         AC_PROG_CC_C89, AC_PROG_CC_C99.
8233         (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
8234         * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
8235         AC_PROG_CC_C99): New macros.
8236         (AC_PROG_CC_STDC): Use them.
8237         (_AC_PROG_CC_STDC): Remove.
8238         (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
8239         * THANKS: Add Roger Leigh.
8241 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
8243         * bin/autoreconf.in (autoreconf_current_directory):  AM_INIT_AUTOMAKE
8244         signals that the package uses Automake; a `Makefile.am' is typical but
8245         not essential.  Reported by Magnus Therning.
8246         * tests/torture.at (autoreconf.): New banner.
8247         (autoreconf and non-AC configure): Rename to `Non-Autoconf
8248         AC_CONFIG_SUBDIRS'.
8249         (autoreconf an empty directory): Rename to `Empty directory'.
8250         (Unusual Automake input files): New test.
8252 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
8254         * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
8255         (AT_SETUP): Clear AT_capture_files.
8256         (_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
8257         (AT_KEYWORDS): Fix comment typo.
8258         * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
8259         * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
8260         * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
8262 2004-12-29  Albert Chin-A-Young  <china@thewrittenword.com>
8264         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
8265         If the variable to set is already set, set ac_cv_path_$1
8266         to the preset value so caller can assume ac_cv_path_$1
8267         is available.  (trivial change)
8269 2004-12-27  Noah Misch  <noah@cs.caltech.edu>
8271         * BUGS (Minor Problems): Warn about makefile limitations.
8272         * Makefile.am: Find and update `INSTALL' in $(srcdir).
8273         * man/Makefile.am: Find and update manual pages in $(srcdir).
8275 2004-12-24  Eric Blake  <ebb9@byu.net>
8277         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
8278         shells in subshell, to avoid noise from ash.  (trivial change)
8280 2004-12-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8282         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
8283         problems with SunOS ksh and backslash escaping, Bourne shells and
8284         closing brackets (both within character classes).  Bug reported
8285         against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
8286         <read>: New entry.  Mention non-availability of -r.
8288 2004-12-21  Akim Demaille  <akim@epita.fr>
8290         * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
8291         avoid cluttering displayed messages.  Rather, prepend srcdir where
8292         AT_LINE is used for log files.
8294 2004-12-21  Stepan Kasal  <kasal@ucw.cz>
8296         * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
8297         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
8298           no longer part of the macro, quote the occurrence of ``$tmp''.
8299         * doc/autoconf.texi (Forbidden Patterns): Typo.
8301 2004-12-21  Akim Demaille  <akim@epita.fr>
8303         * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
8304         separated from the test title by forcing a white space.
8306 2004-12-21  Akim Demaille  <akim@epita.fr>
8308         Enable Emacs navigation within testsuite.log files.
8310         * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
8311         use the compilation mode.
8312         (AT_LINE): Point to the srcdir.
8314 2004-12-19  Noah Misch  <noah@cs.caltech.edu>
8316         * tests/Makefile.am (installcheck-local): Use $(bindir).
8317         (check-local, installcheck-local): Pass TESTSUITEFLAGS.
8318         * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
8319         Makefile.am scheme Autoconf now uses.
8321 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
8323         * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
8324         * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
8326 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
8328         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
8329         (_AT_CHECK): Use it.
8330         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
8331         (AS_ESCAPE): Fix comment.
8332         * tests/autotest.at: Adjust section banner comments.
8333         (AT_CHECK_AT): Accept STATUS and STDERR.
8334         (AT_CHECK_AT_TEST): Likewise.
8335         (Invalid brace-enclosed parameter expansion)
8336         (Multiline command from M4 expansion)
8337         (Double-M4-quoted command): New tests.
8339 2004-12-17  Paul Eggert  <eggert@cs.ucla.edu>
8341         * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
8343 2004-12-17  Akim Demaille  <akim@epita.fr>
8345         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
8346         m4_pattern_allow.
8347         Suggested by Alexandre Duret-Lutz.
8348         * doc/autoconf.texi (Setting Output Variables): Catch up.
8350 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
8352         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
8354 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
8356         * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
8357           remove the comment which said we cannot.
8359 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
8361         Add a specialized check for resolv.h.  Thanks to Gerrit P. Haase,
8362         Reini Urban and Paul Eggert for reporting the dependencies.
8364         * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
8365         * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
8366         (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
8368 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
8370         * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
8371           so that eg. ``autoscan --help'' doesn't truncate it.
8373 2004-12-15  Nicolas Joly  <njoly@pasteur.fr>
8375         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
8376         generated conftest files.
8378 2004-12-13  Noah Misch  <noah@cs.caltech.edu>
8380         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
8381         tracing on commands with possibly-escaped newlines.
8382         * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
8383         discontinued behavior and its implications.
8384         * tests/autotest.at (BS-newline in command, ^BS-newline in command)
8385         (BSx641-newline in command, BS-BS-newline in command)
8386         (BSx640-newline in command, Newline-CODE-BS-newline in command)
8387         (Single-quote-BS-newline in command)
8388         (Single-quote-newline-BS-newline in command): New tests.
8390 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
8392         * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
8393           on platforms where it works.
8394         (_AS_TEST_PREPARE): Test for ``test -x''.
8395         (_AS_BROKEN_TEST_PREPARE): Nuke.
8397 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
8399         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
8400         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
8401           give only 4-letter prefix to AS_TMPDIR, comment fixed.
8402         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
8403           create the temporary directory.
8404         (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
8406 2004-12-12  Kelley Cook  <kcook@gcc.gnu.org>
8408         * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
8409         (trivial change)
8411 2004-12-12  Alexandre Duret-Lutz  <adl@gnu.org>
8413         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
8415 2004-12-11  Noah Misch  <noah@cs.caltech.edu>
8417         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
8418         to avoid using a negated character class.  Reported by Nicolas Joly.
8419         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
8421 2004-12-10  Paul Eggert  <eggert@cs.ucla.edu>
8423         * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
8424         autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
8425         Don't depend on .x file explicitly, since "make" does that for us.
8426         Suggested by Stepan Kasal.
8428         * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
8429         Add *.tmp.
8430         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
8431         ifnames): Factor common code.  And they said it couldn't be done!
8433 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
8435         * bin/.cvsignore: Add autoconf.in.
8436         * tests/.cvsignore: Add wrapper.in.
8437         * lib/autotest/general.m4: Escape '$' in case pattern.
8439 2004-12-09  Noah Misch  <noah@cs.caltech.edu>
8441         * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
8443         * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
8445         * tests/autotest.at: New file.
8446         * tests/suite.at: Include it.
8447         * tests/Makefile.am: Distribute it.
8449         * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
8450           shell tracing on a command that could contain multiple lines.
8451         * doc/autoconf.text: Document that fact and its implications.
8452         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
8453         * tests/autotest.at (Multiline backquote command substitution,
8454           Multiline parameter expansion, Literal multiline command,
8455           Multiline parenthetical command substitution): Remove XFAIL.
8457 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
8459         * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
8460         and suggest AC_SEARCH_LIBS.  Suggested by Noah Misch and Stepan Kasal.
8462 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
8464         * configure.ac (test suite): Cease to generate wrapper scripts.
8465         * configure: Regenerate.
8466         * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
8467         (m4f_dependencies): Adjust accordingly.
8468         * tests/Makefile.am (Wrappers): Generate wrapper scripts.
8469         (wrapper.in): Generate it in the build directory.
8470         (MAINTAINERCLEANFILES): Delete wrapper.in.
8471         (CLEANFILES): Add wrapper.in.
8472         * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
8473         the output.  Replace each $as_me with a @wrap_program@.
8474         * tests/wrapper.in: Delete it; we always build it.
8476         * bin/Makefile.am (autoconf.in): Generate it in the build directory.
8477         (EXTRA_DIST): Remove autoconf.in.
8478         (CLEANFILES): Add autoconf.in.
8479         (autoconf): Find autoconf.in in the build directory.
8480         * bin/autoconf.in: Delete it; we always build it.
8482 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
8484         * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'.  Join
8485         PATH members so as to not prepend an empty element.  Move a comment.
8486         * Makefile.am (SUBDIRS): Build in `tests' last.
8487         * tests/Makefile.am (installcheck-local): Add check-local dependencies.
8489 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
8491         * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
8492         the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
8493         <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
8494         Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
8496 2004-12-07  Stepan Kasal  <kasal@ucw.cz>
8498         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
8499         patch: extra "-l"s.
8501 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
8503         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
8504         looking elsewhere for getmntent.  Problem reported by Mark D. Baushke.
8505         * doc/autoconf.texi (Particular Functions): Mention new behavior.
8507 2004-12-03  Stepan Kasal  <kasal@ucw.cz>
8509         * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
8510           out the common code to ...
8511         (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
8512           value of the #define--default to 1, iff the macro was called
8513           with exactly one parameter.
8515 2004-12-02  Paul Eggert  <eggert@cs.ucla.edu>
8517         * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
8518         "char c = '\200';" rather than "char c = 0x80;" as the
8519         latter doesn't conform to the strict C standard due to
8520         overflow on signed char hosts.
8522         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
8523         to -qlanglvl=ansi.  We don't want to disable extensions.
8525 2004-11-29  Paul Eggert  <eggert@cs.ucla.edu>
8527         * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
8528         (Using Autotest, testsuite Scripts, Writing testsuite.at):
8529         Reword slightly to avoid some English-language problems noted
8530         by Ralf Wildenhues in:
8531         http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
8533 2004-11-29  Stepan Kasal  <kasal@ucw.cz>
8535         * NEWS: Add ^L above each release.
8537 2004-11-28  Paul Eggert  <eggert@cs.ucla.edu>
8539         Fix documentation problems reported by Russ Boylan in
8540         <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
8541         along with some nearby cruft.
8542         * doc/autoconf.texi (Libtool): Libtool can be used without
8543         Automake (not without Autoconf).
8544         (Introduction): Mention lists.gnu.org.
8545         * BUGS: Don't mention bugs.gnu.org.
8546         Remove mention of ancient libtool compatibility problem.
8547         * NEWS: Mention that bugs.gnu.org is kaput.
8548         * README: Likewise.  Mention where mailing list archives can be found.
8550 2004-11-28  Stepan Kasal  <kasal@ucw.cz>
8552         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
8554 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
8556         * doc/autoconf.texi (Pretty Help Strings): Go back to
8557         single-quoting assignments to cache variables.
8559 2004-11-23  Stepan Kasal  <kasal@ucw.cz>
8561         * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
8562         with the examples; fix the bug in MY_ARG_WITH example reported
8563         by Alexandre Duret-Lutz.
8564         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
8565         expansion of $1 in the comment emitted to configure.
8567 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
8569         * doc/autoconf.texi (Pretty Help Strings): Fix typo
8570         in my editing of the previous patch.  Problem reported
8571         by Alexandre Duret-Lutz.
8573 2004-11-22  Stepan Kasal  <kasal@ucw.cz>
8575         * doc/autoconf.texi (Autoconf Language): Explain that
8576         ``descriptions'' may not be double quotes.
8577         (Quotation Rule Of Thumb): Likewise.
8578         (Pretty Help Strings): Likewise; remove the wrong comment;
8579         simplify the examples and improve their quoting.
8581 2004-11-13  Stepan Kasal  <kasal@ucw.cz>
8583         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
8584         the $1_found variable, don't test whether the file is executable;
8585         Both things are checked ...
8586         (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
8587         the former ``test -f''.
8588         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
8590 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
8592         * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
8593         use cp -R instead.
8595 2004-11-10  Derek R. Price  <derek@ximbiot.com>
8597         * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
8598         limitations.  Reorder paragraphs for clarity.
8600 2004-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8602         * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
8603         to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
8604         variants", "Unix", and some related minor wording fixups.
8606         (Shellology, Special Shell Variables): Document that the Zsh
8607         problem with NULLCMD was fixed in zsh 3.1.6-dev-18.  Thanks
8608         to Alexandre Duret-Lutz for this info.
8610 2004-10-10  Alexandre Duret-Lutz  <adl@gnu.org>
8612         * doc/autoconf.texi (One-Shot Macros): New node.
8614 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
8616         * doc/autoconf.texi (Function Portability): Fix misdescription
8617         of putenv.  Problem reported by Michael Wardle.
8619 2004-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8621         * doc/autoconf.texi (auindex): New macro.
8622         (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
8623         Problem reported by Stepan Kasal.
8625 2004-09-05  Paul Eggert  <eggert@cs.ucla.edu>
8627         Fix problems reported by Andreas Buening in:
8628         http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
8629         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
8630         in test makefile.
8631         * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
8632         readable; it's not true in OS/2-emx.
8634 2004-09-04  Paul Eggert  <eggert@cs.ucla.edu>
8636         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
8637         "/usr/include", clear ac_x_includes instead of leaving it as "no"
8638         (trivial change).  Problem and patch reported by Andrew Church in:
8639         http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
8641 2004-09-03  Paul Eggert  <eggert@cs.ucla.edu>
8643         * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
8644         three args in examples.  Problem reported by Frederik Fouvry in:
8645         http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
8646         Also, fix some minor spacing and punctuation bugs.
8648 2004-09-02  Akim Demaille  <akim@epita.fr>
8650         * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
8651         "case" to restore ordering.
8652         Reported by Stepan Kasal.
8654 2004-08-26  Akim Demaille  <akim@epita.fr>
8656         * doc/autoconf.texi: Minor typos and stylos.
8658 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
8660         * configure.ac (AC_INIT): Bump to 2.59c.
8662 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
8664         Version 2.59b.
8666         * README: Add advice about m4 1.4.2.
8668         * Makefile.cfg (wget_files): Remove config.guess, config.sub,
8669         texinfo.tex for now (done by hand now).
8670         * Makefile.maint (wget_files, cvs_files):
8671         Remove ansi2knr.c; nobody uses it.
8672         (ansi2knr.c-url_prefix): Remove.
8673         (cvs-update): Fix test for failure.  I don't know why it ever
8674         worked...
8676         * doc/autoconf.texi: Update URLs, some of which went stale.
8677         Use @uref rather than @href.
8679         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
8680         handle "--" as per POSIX.  Suggested by Paul Pogonyshev.
8682         * config/config.guess, config/config.sub, config/elisp-comp,
8683         config/install-sh, config/mkinstalldirs, config/texinfo.tex,
8684         doc/fdl.texi, doc/standards.texi: Sync with master copy.
8686         * NEWS, TODO, configure.ac, bin/autoscan.in,
8687         bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
8688         doc/install.texi, lib/Autom4te/Configure_ac.pm,
8689         lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
8690         lib/autoconf/programs.m4, lib/autoconf/status.m4,
8691         lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
8692         lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
8693         tests/tools.at, tests/torture.at:
8694         Use "file name" rather than "filename" or "path",
8695         to be consistent with the terminology of the GNU coding standards.
8697 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
8699         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
8700         AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
8701         HP-UX 11.23 cc/aCC or Tru64 4.0 cc.  Problem reported by Noah Misch in
8702         <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
8704         More fixes to support spaces in the name of the build directory.
8705         This isn't a complete fix but it's an improvement.
8707         * bin/autoconf.as (autom4te_options): New var.
8708         Use it instead of appending to AUTOM4TE, so that we can allow
8709         spaces in the build directory's absolute name.
8710         * bin/autoheader.in ($autoconf): Allow spaces in file names.
8711         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
8712         AT_CHECK_NOESCAPE): Likewise.
8713         * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
8714         main program): Likewise.
8716 2004-08-18  Paul Eggert  <eggert@cs.ucla.edu>
8718         * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
8719         From Ralf Corsepius in:
8720         http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
8722 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
8724         * doc/autoconf.texi (Function Portability): Document isinf and
8725         and isnan.  From a suggestion by Kevin Ryde.
8727         * lib/Autom4te/General.pm (END): Return correct exit status even
8728         if unlink succeeds and sets $?.  Needed with Solaris 8's perl 5.00503.
8730 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
8732         * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
8733         for compatibility with Automake 1.4.  Reported by J C Fitzgerald in
8734         <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
8736 2004-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
8738         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
8739         (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
8740         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
8741         * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
8742         * lib/autom4te.in (Automake-preselections): Preselect
8743         AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
8745 2004-08-02  Alexandre Duret-Lutz  <adl@gnu.org>
8747         * lib/autom4te.in (Automake-preselections): Preselect
8748         AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
8749         trace them.
8751 2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
8753         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
8754         Tru64.
8755         * doc/autoconf.texi (Shellology): Mention BIN_SH.
8756         Document problem with "`""`" in pdksh POSIX mode.
8758 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
8760         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
8761         with pdksh, too.  Problem reported by Patrick Welche via
8762         Gary V. Vaughan.
8763         * doc/autoconf.texi (Shellology): Note that set -o posix is
8764         useful for pkdsh, too.
8766 2004-06-24  Paul Eggert  <eggert@cs.ucla.edu>
8768         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
8769         _AS_UNSET_PREPARE, so that we can use $as_unset directly.
8770         Don't fail if ENV or BASH_ENV is readonly.
8771         (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
8772         etc. are read only.  Problem reported by Ludovic Courtes.
8774 2004-06-23  Noah Misch  <noah@cs.caltech.edu>
8776         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
8777         zsh, disable GLOB_SUBST to avoid backslash handling problems.
8778         (trivial change)
8780 2004-06-04  Paul Eggert  <eggert@cs.ucla.edu>
8782         * doc/autoconf.texi (File System Conventions): Warn about
8783         names like "aux".  Problem reported by Eric Blake.
8785         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
8786         by zero instead of array size, so that we can use any arithmetic
8787         constant expression (instead of requiring an integer constant
8788         expression).  This allows us to test expressions like DBL_MAX <
8789         LDBL_MAX, which didn't conform to the C standard using the old
8790         method.
8791         (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
8792         now that we can do floating-point tests at compile time.
8794 2004-06-02  Paul Eggert  <eggert@cs.ucla.edu>
8796         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
8797         and LDBL_EPSILON, as the resulting expression isn't an
8798         integer constant expression and violates the C standard.
8799         Problem reported by Nelson H. F. Beebe.  Also, check
8800         for "L" suffix, and check that long double doesn't have
8801         worse range or precision than double, that mixed-mode
8802         arithmetic doesn't generate a diagnostic, that double
8803         constants fit in long double.
8805 2004-06-03  Kevin Ryde  <user42@zip.com.au>
8807         * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
8808         malloc(0) and realloc(NULL,size).
8810         * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
8811         Bob Proulx.
8813 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
8815         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
8816         in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].  Problem reported
8817         by Jim Meyering.
8819 2004-05-26  Paul Eggert  <eggert@cs.ucla.edu>
8821         * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
8822         can be rewritten using if-then-else.  Suggested by Bruno Haible.
8824 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
8826         * doc/autoconf.texi (testsuite Scripts): Fix typo.
8827         Problem reported by Stepan Kasal.
8829 2004-05-24  Paul Eggert  <eggert@cs.ucla.edu>
8831         * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
8832         change).  Patch reported by Ralf Wildenhues in
8833         <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
8835         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
8836         function F exists if the compiler and linker let you compile an
8837         expression like (F != 0).  Recent versions of GCC optimize away
8838         the reference to F in that case, since every function address must
8839         be nonzero, so the link succeeds even if F does not exist.
8840         Problem reported by Manu in
8841         <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
8843         * doc/autoconf.texi (Systemology): Standardize on the spelling of
8844         "Unix".  Many uses changed.
8845         (Limitations of Builtins): Explain better why the ! command isn't
8846         portable.
8848 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
8850         * lib/autom4te.in (Automake-preselections): Preselect
8851         LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
8853 2004-05-19  Kevin Ryde  <user42@zip.com.au>
8855         * doc/autoconf.texi (Function Portability): Add strerror_r, cross
8856         referencing AC_FUNC_STRERROR_R.
8858         * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
8859         note pessimistic assumption when cross compiling.
8861 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
8863         * doc/autoconf.texi (Limitations of Make): Note that BSD make
8864         (until 2004) invoked subcommands with sh -e, contra POSIX.
8865         Reported by Kevin Ryde.
8867 2004-05-10  Eric Sunshine  <sunshine@sunshineco.com>
8869         * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
8870         _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
8871         "        $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
8872         `test -f "        /usr/bin/grep"', which _always_ failed.
8873         (AC_PROG_SED): Ditto bogus PATH fix.
8874         * autoconf.texi (AC_PROG_GREP): Properly document that this macro
8875         requires that grep correctly supports _multiple_ `-e' options, rather
8876         than stating only that grep should accept `-e'.
8878 2004-05-03  Paul Eggert  <eggert@cs.ucla.edu>
8880         Port to C99, which requires that 'exit' be declared.
8882         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
8883         to ensure that stdlib.h is included.
8884         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
8885         AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
8886         _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
8887         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
8888         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
8889         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
8890         when using 'exit' in a test; C99 requires that 'exit' be declared.
8892 2004-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8894         * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
8895         now prefers 'grep' implementations that accept -e.
8896         (Limitations of Usual Tools): Describe problems of traditional
8897         egrep and fgrep with long input lines, and of traditional grep
8898         with -e.
8899         * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
8900         (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
8901         All callers changed.  Append /usr/xpg4/bin to the PATH, for
8902         Solaris.
8903         (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
8904         the user with complaints about multiple -e options.
8905         * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
8906         Define it with AC_PROG_GREP.
8907         * configure.ac (AC_PROG_GREP): Add.
8908         * lib/freeze.mk (GREP): New macro.
8910 2004-05-02  Eric Sunshine  <sunshine@sunshineco.com>
8912         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
8913         a possible candidate only after all others fail, rather than
8914         consulting it first.  This improves backward compatibility by
8915         better reflecting the way shell selection occurred in previous
8916         versions of Autoconf, and should help to avoid triggering latent
8917         problems in other packages, such as the one in Automake where zsh
8918         is not handled robustly:
8919         http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
8920         Although it is not Autoconf's responsibility to work around
8921         problems in Automake, it nevertheless makes sense to avoid
8922         introducing unnecessary incompatibilites.
8924 2004-04-22  Albert Chin-A-Young  <china@thewrittenword.com>,
8925             Gary V. Vaughan  <gary@gnu.org>
8927         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
8928         how deeply nested we are when a suitable tool is found, set the
8929         ac_path_TOOL_found flag.
8930         (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
8931         nested we are in this macro.  Break out of all 3 nested loops if
8932         ac_path_TOOL_found is set.
8934 2004-04-21  Gary V. Vaughan  <gary@gnu.org>
8936         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
8937         of the _AS_PATH_WALK loop too if GNU flavor is found.
8939 2004-04-21  Alexandre Duret-Lutz  <adl@gnu.org>
8941         * doc/autoconf.texi (Limitations of Make): Update documentation
8942         for `$<'.  New entry `Long lines', based on a report from Simon
8943         Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
8944         paragraph about DJGPP, based on a mail from Richard Dawe.
8946 2004-04-20  Paul Eggert  <eggert@twinsun.com>
8948         * tests/c.at (C keywords): Don't assume that GCC supports
8949         "restrict" and "inline", as sufficiently-old GCC versions do not
8950         (also, GCC configured to be in pedantic C89 mode does not).
8951         Problem reported by Sumit Pandya in:
8952         http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
8954         * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
8955         consider -g to work if it generates warnings when plain compiles
8956         don't.  Problem reported by Braden McDaniel in:
8957         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
8959         * doc/autoconf.texi (Slashes): New section, to document a problem
8960         reported by Jim Meyering in:
8961         http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
8963         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
8964         linker output files before linking, to work around IRIX 6 linker bug.
8965         Problem reported by Rainer Orth in:
8966         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
8968 2004-04-20  Gary V. Vaughan  <gary@gnu.org>
8970         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
8971         best tool so far counter rely on the tool path variable name to
8972         avoid checks for one tool being affected by the results of running
8973         the length check on a previous tool.
8975         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
8976         match expression argument, as different greps have different
8977         regular expression flavours.
8978         (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
8979         literals.
8980         (AC_PROG_EGREP): Pass 'EGREP$'.
8981         (AC_PROG_GREP): Pass 'GREP$'.
8983 2004-04-20  Albert Chin-A-Young  <china@thewrittenword.com>
8985         * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
8986         is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
8988 2004-03-29  Paul Eggert  <eggert@twinsun.com>
8990         * doc/autoconf.texi (Particular Headers, Particular Types, Generic
8991         Types, Specific Compiler Characteristics, System Services,
8992         Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
8993         etc. consistently instead of 'long', 'short', 'unsigned' etc.
8994         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
8995         * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
8996         Likewise.
8997         * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
8998         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
8999         AC_TYPE_OFF_T): Likewise.
9000         * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
9001         Likewise.
9003         * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
9004         pacify libtool 1.5.2.  Fix quoting problems in sed command.
9006 2004-03-28  Paul Eggert  <eggert@twinsun.com>
9008         * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
9009         now defines HAVE_DECL_TZNAME if it is declared, when
9010         HAVE_STRUCT_TM_TM_ZONE is not defined.
9011         * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
9012         Do not assume atoi.  Rely on HAVE_DECL_TZNAME when testing
9013         for HAVE_TZNAME.
9015 2004-03-28  Steven G. Johnson  <stevenj@fftw.org>
9017         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
9018         superfluous backslashing of quotes (") in sed expressions;
9019         thanks to Paul Eggert.
9021 2004-03-26  Steven G. Johnson  <stevenj@alum.mit.edu>
9023         * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
9024         Fortran compiler is ifort, also added pghpf; thanks to Nelson
9025         H. F. Beebe for the bug report.
9027 2004-03-26  Steven G. Johnson  <stevenj@fftw.org>
9029         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
9030         quoted -cmdline argument in Portland Group compiler (bug
9031         reported by Jeffrey J. Barteet).
9033 2004-03-25  Kevin Ryde  <user42@zip.com.au>
9035         * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
9036         (Run Time): ... here, where it's now mentioned.
9038 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
9040         * doc/autoconf.texi (autom4te Invocation): Language Autoconf
9041         inherits from language Autoconf-without-aclocal-m4.
9042         (Customizing autom4te): Adjust example; the cache must now be
9043         disabled for language Autoconf-without-aclocal-m4.
9045 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
9046             Nathanael Nerode  <neroden@twcny.rr.com>
9048         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
9049         AC_CHECK_TOOLS): Warn if a cross-tool is found without
9050         a prefix.
9051         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
9052         AC_CHECK_TARGET_TOOLS): New macros.
9053         * doc/autoconf.texi (Generic Programs): Document
9054         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
9055         AC_CHECK_TARGET_TOOLS, and warn for future changes
9056         in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
9057         AC_CHECK_TOOLS.
9058         (Specifying Names): Document the reason for these future
9059         behavioral changes.
9060         * tests/mktests.sh: Do not generate tests for the
9061         new macros.
9062         * NEWS: Document these changes.
9064         * doc/autoconf.texi: Avoid macros with unbraced arguments,
9065         they make TeX hang up.
9067 2004-03-15  Paul Eggert  <eggert@bogus.example.com>
9069         * NEWS: New macro AC_CHECK_ALIGNOF.
9070         * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
9071         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
9072         int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
9073         vowel.
9074         (AC_CHECK_ALIGNOF): New macro.
9075         * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
9076         * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
9077         those for sizeof.
9079 2004-03-03  Paul Eggert  <eggert@twinsun.com>
9081         * bin/Makefile.am (edit): Don't use $< in a context where
9082         POSIX doesn't require support for it.  Use $@.in instead.
9083         Problem reported by Anthony N. Frasso in
9084         <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
9085         * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
9087 2004-02-23  Gary V. Vaughan  <gary@gnu.org>
9089         * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
9090         from the next generation of Libtool.
9091         * lib/autom4te.in (Autoreconf-preselections): Ditto.
9093 2004-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
9095         * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
9096         is not always thread-safe.  Report from Nathanael Nerode.
9098 2004-02-18  Paul Eggert  <eggert@twinsun.com>
9100         Fix a dependencies problem, stemming from a Autoconf 2.59 build
9101         problem on QNX reported by Stephen Rasku in
9102         <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
9104         * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
9105         $(m4sh_m4f_dependencies); this removes a FIXME.
9106         * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
9107         (MAINTAINERCLEANFILES): Split into pieces,
9108         one per related section.  Add $(srcdir)/wrapper.in.
9110 2004-02-09  Paul Eggert  <eggert@twinsun.com>
9112         * doc/autoconf.texi (Setting Output Variables): Emphasize that
9113         AC_SUBST provides no portable way to escape literal newlines.
9115         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
9116         flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
9117         Darwin uses -lcrt2.o and there's little point to cataloging all
9118         the system variants.  Partial fix reported by Andreas Waechter in:
9119         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
9120         for bug reported by Nelson H. F. Beebe in:
9121         http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
9123 2004-02-04  Paolo Bonzini  <bonzini@gnu.org>
9125         * doc/autoconf.texi (AU_DEFUN): Fix English,
9126         suggested by Paul Eggert.
9127         * lib/autoconf/autoupdate.m4: Correct reference to
9128         acobsolete.m4, suggested by Alexandre Duret-Lutz.
9130 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
9132         * bin/autoupdate.in: Define __file__ so that warnings
9133         refer to the correct file.
9134         * doc/autoconf.texi (AU_DEFUN): Describe more correctly
9135         the behavior of the third argument.
9136         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
9137         correctly the behavior of the third argument.  Document
9138         what the three macros that AU_DEFUN defines do.  Fix
9139         warning message when the third argument includes $0
9140         (reported by Alexandre Duret-Lutz).
9142 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
9143             Eric Sunshine  <sunshine@sunshineco.com>
9144             Paul Eggert  <eggert@twinsun.com>
9146         * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
9147         (AS_INIT): Output shell initialization there. Removed optional
9148         parameter. Expand _AS_SHELL_FN_SPY.
9149         (AS_INIT_WITH_SHELL_FN): Removed.
9150         (_AS_SHELL_FN_SPY): New macro.
9151         (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
9152         macros.
9153         (AS_SHELL_SANITIZE): Remove loop to find better shell
9154         and documentation for the parameter.
9155         (_AS_DETECT_BETTER_SHELL): Move it here.
9156         (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
9157         (_AS_RUN): Move it here, support testing with eval.
9158         (AS_REQUIRE_SHELL_FN): Require shell functions when
9159         it is used.
9160         (_AS_LINENO_WORKS): Put around braces, we do not
9161         trigger the bash bug anymore.
9162         * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
9163         use AS_INIT_WITH_SHELL_FN.
9164         * bin/autoconf.in, tests/wrapper.in: Regenerated.
9166 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
9168         * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
9169         * doc/autoconf.texi: Don't say that the third parameter
9170         is broken.
9171         * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
9172         (AU_DEFUN): Honor the third parameter, create autoupdate
9173         macros with AU_DEFINE.
9174         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
9175         AC_DIR_HEADER): Use AU_DEFUN's third parameter.
9176         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
9177         * lib/autoconf/programs.m4 (AC_RSH): Likewise.
9178         * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
9179         AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
9180         AC_XENIX_DIR): Likewise.
9181         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
9182         AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
9183         * lib/autoconf/status.m4: Remove FIXME.
9184         * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
9185         that the macro is not present anymore in the updated
9186         configure.ac.
9187         * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
9188         of autoupdate.
9190 2004-01-28  Paul Eggert  <eggert@twinsun.com>
9192         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
9193         copyright years.
9194         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
9195         2003 (except 1997) to the list of copyright years.  This undoes
9196         the 2003-05-22 change, which removed the older years from the list.
9197         * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
9199 2004-01-27  Gary V. Vaughan  <gary@gnu.org>
9200             Albert Chin-A-Young  <china@thewrittenword.com>
9202         * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
9203         grep or ggrep program in PATH that accepts as long lines as
9204         possible.
9205         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
9206         AC_PROG_GREP.
9207         (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
9208         egrep and fgrep respectively if $GREP -E/-F don't work.
9209         (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
9210         _AC_PROG_GREP, and AC_PROG_SED.
9211         (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
9212         longest input length accepted by a command.
9213         (AC_PROG_SED): Use it.
9214         * doc/autoconf.texi (Particular Programs): Document the changes.
9215         * NEWS: Updated.
9217 2004-01-27  Paul Eggert  <eggert@twinsun.com>
9219         * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
9220         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
9221         bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
9222         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
9224         * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
9225         bin/autoconf.in, config/Makefile.in, config/config.guess,
9226         config/config.sub, config/install-sh, config/mdate-sh,
9227         config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
9228         lib/Makefile.in, lib/Autom4te/Makefile.in,
9229         lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
9230         lib/autotest/Makefile.in, lib/emacs/Makefile.in,
9231         lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
9232         man/autoheader.1, man/autom4te.1, man/autoreconf.1,
9233         man/autoscan.1, man/autoupdate.1, man/config.guess.1,
9234         man/config.sub.1, man/ifnames.1, tests/Makefile.in,
9235         tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
9236         tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
9237         tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
9238         tests/actypes.at: Regenerate and/or sync with original
9239         sources.
9241 2004-01-26  Paul Eggert  <eggert@twinsun.com>
9243         * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
9244         HAVE_INTTYPES_H is defined.  This is needed on Tru64 5.1b with
9245         Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
9246         not <inttypes.h>.  Problem reported by Tim Mooney in
9247         <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
9248         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
9249         Likewise.
9251         * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
9252         otherwise "make check" fails because it forbids cmp (I guess
9253         because cmp treats files as binary on DOS-like systems).
9255         * tests/mktests.sh: Update copyright date to 2004, since some tests
9256         have changed in 2004.
9258 2004-01-23  Gary V. Vaughan  <gary@gnu.org>
9260         * lib/autoconf/programs.m4 (AC_PROG_SED):  New macro to test for a
9261         non-truncating sed or gsed program in PATH.
9262         * tests/acprograms.at: Add it.
9263         * doc/autoconf.texi (Particular Programs): Document it.
9264         * NEWS: Updated.
9266 2004-01-15  Paul Eggert  <eggert@twinsun.com>
9268         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
9269         -std1 disables some useful extensions on Tru64.  Problem reported
9270         by N. Lichtmaier in
9271         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
9273 2004-01-14  Paul Eggert  <eggert@twinsun.com>
9275         * doc/autoconf.texi (Programming in M4sh): Document that
9276         AS_MKDIR_P succeeds if the destination is a symbolic link
9277         to an existing directory.
9278         (Limitations of Usual Tools): Note that mkdir -p might not
9279         succeed on symlinks to directories.
9281 2004-01-13  Paul Hilfinger  <hilfinger@CS.Berkeley.EDU>
9283         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
9284         * bin/autoheader.in: Grammar fix in message.
9285         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
9286         Test for dir before calling mkdir -p.  (trivial changes)
9288 2004-01-13  Eric Blake  <ebb9@byu.net>
9290         * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
9291         AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
9293 2004-01-10  Jim Meyering  <jim@meyering.net>
9295         * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
9297 2004-01-09  Paul Eggert  <eggert@twinsun.com>
9299         * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
9300         with `autoconf -Wall,error'.  Bug reported by Eric Blake in:
9301         http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
9302         (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
9303         AC_COMPILE_IFELSE, since we now assume our caller invokes
9304         AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
9305         (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
9306         of AC_RUN_IFELSE; this avoids the warning mentioned above.
9307         (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
9309 2004-01-07  Paul Eggert  <eggert@twinsun.com>
9311         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
9312         `"'...'"`, as it's confusing (and I suspect it may not work on
9313         some platforms).  The code was incorrect anyway, as it assumed
9314         that \$ evaluated to itself in that context.  Reported by
9315         Alexandre Duret-Lutz.
9317 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
9319         * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
9320         and _LT_AC_TAGCONFIG.
9322 2004-01-06  Paul Eggert  <eggert@twinsun.com>
9324         * doc/autoconf.texi (One Macro Call): Fix an incorrect
9325         example, and add more examples.  Reported by Eric Sunshine.
9327 2004-01-05  Paul Eggert  <eggert@twinsun.com>
9329         * doc/autoconf.texi (Limitations of Usual Tools):
9330         Remove warning against "rm -fr" introduced yesterday; it
9331         was a false alarm.
9333         * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
9334         autoscan, autoupdate, ifnames): Don't use chmod -w.
9335         * lib/Makefile.am (autom4te.cfg): Likewise.
9336         * doc/autoconf.texi (Limitations of Usual Tools): Warn against
9337         "chmod -w".
9339 2004-01-04  Paul Eggert  <eggert@twinsun.com>
9340             Paolo Bonzini  <bonzini@gnu.org>
9342         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
9343         by doing lineno substitution only on lines containing "$LINENO".
9345 2004-01-04  Paul Eggert  <eggert@twinsun.com>
9347         * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
9348         Use "rm -f" to remove conftest.sed, not plain "rm".
9349         Bug reported by David Relson in
9350         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
9352         * Makefile.am (autom4te-update):
9353         Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
9354         * Makefile.maint (my-distcheck, do-po-update): Likewise.
9355         * doc/autoconf.texi (Guidelines): Likewise.
9356         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
9357         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
9358         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
9359         * lib/autotest/general.m4 (AT_INIT): Likewise.
9360         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
9361         * tests/Makefile.am (clean-local): Likewise.
9362         * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
9363         srcdir): Likewise.
9364         * doc/autoconf.texi (Limitations of Usual Tools):
9365         Warn against "rm -fr".
9367 2004-01-03  Paul Eggert  <eggert@twinsun.com>
9369         * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
9370         -c -o might not work.  From a suggestion by Kevin Ryde.
9371         (C Compiler, Generating Sources, Limitations
9372         of Usual Tools, Limitations of Make, Making testsuite Scripts):
9373         Don't put '-o' after non-options, as POSIX doesn't allow this.
9374         Mention that cc's name might be gcc or c89 or whatever.
9376 2004-01-04  Kevin Ryde  <user42@zip.com.au>
9378         * doc/autoconf.texi: Add various further index entries.
9380 2003-12-29  Paul Eggert  <eggert@twinsun.com>
9382         * bin/autoreconf.in (autoreconf_current_directory):
9383         Fix typo: mkdir without umask arg.
9385 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
9387         * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
9388         Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
9389         `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
9390         explanation clearer.
9392 2003-12-24  Andreas Schwab  <schwab@suse.de>
9394         * doc/autoconf.texi (Default Includes): Fix misspelling of
9395         AC_INCLUDES_DEFAULT.
9397 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
9399         * configure.ac: Test if sh -n works.
9400         * configure: Regenerate.
9401         * tests/atlocal.in: Store the result here.
9402         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
9403         tools.at, looking in atlocal's ac_cv_sh_n_works instead
9404         of explicitly testing.
9405         (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
9406         (AT_CHECK_AUTOCONF): Test for the configure script syntax.
9407         * tests/tools.at (Syntax of the shell scripts): Simplify
9408         using AT_CHECK_SHELL_SYNTAX.
9409         (Syntax of the Perl scripts): Remove definition of
9410         AT_CHECK_PERL_SYNTAX.
9412 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
9414         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
9415         stderr to /dev/null.
9416         * bin/autoconf.in: Regenerate.
9417         * bin/wrapper.in: Regenerate.
9419 2003-11-26  Paolo Bonzini  <bonzini@gnu.org>
9421         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
9422         Extracted from AS_SHELL_SANITIZE.
9423         (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
9424         macros.
9425         (AS_SHELL_SANITIZE): Move reinvocation code from
9426         _AS_LINENO_WORKS, use it to find out if shell
9427         functions work.
9428         (_AS_LINENO_WORKS): Don't find another shell if $LINENO
9429         does not work.
9430         (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
9431         (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
9432         was called.
9433         * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
9434         * bin/autoconf.in: Regenerate.
9435         * tests/wrapper.in: Regenerate.
9436         * tests/tools.at: Test the syntax of tests/autoconf
9437         and tests/testsuite.
9439 2003-11-24  Akim Demaille  <akim@epita.fr>
9441         * config/announce-gen (&print_locations, &print_signatures)
9442         (&sizes): New.
9443         Use them.
9444         No longer rely on Gnus to inline the list of signatures: compute
9445         them on the fly.
9447 2003-11-24  Akim Demaille  <akim@epita.fr>
9449         * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
9450         override some files.
9451         (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
9452         From Debian Autoconf 2.58.
9454 2003-11-24  Akim Demaille  <akim@epita.fr>
9456         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
9457         uses.
9458         From Debian Autoconf 2.58.
9460 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
9462         * TODO: Remove already done things.  Update the part about finding
9463         tools for the target.
9465 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
9467         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
9468         Make wording more consistent.
9469         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
9470         Explain the transition better.
9471         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
9472         the transition better.
9474 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
9476         * doc/autoconf.texi (Obsoleting Macros): Don't document the third
9477         parameter of AU_DEFUN.
9478         * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
9479         (AU_DEFUN): Remove the third parameter, it was not used.
9480         Use AC_DEFUN directly, not AU_DEFINE.
9481         * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
9482         the expanded body, consistently with other macros such as AC_USG.
9484 2003-11-17  Paul Eggert  <eggert@twinsun.com>
9486         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
9487         into the initial confdefs.h, to work around a bug in NextStep 3.3
9488         patch 3 reported by Eric Sunshine.
9490 2003-11-15  Kevin Ryde  <user42@zip.com.au>
9492         * doc/autoconf.texi (Using System Type): Revise, showing $host rather
9493         than $target since the latter is not usual, add guidelines on when to
9494         use or not use the system type.
9496 2003-11-12  Derek Price  <derek@ximbiot.com>
9498         * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
9499         typo misrepaired by an auto-spellcheck.
9501 2003-11-12  Akim Demaille  <akim@epita.fr>
9503         * bin/autoreconf.in (&parse_args): Don't call automake with
9504         --force-missing unless it actually supports it.
9505         From Debian #219336.
9507 2003-11-12  Akim Demaille  <akim@epita.fr>
9509         * configure.ac: Bump to 2.59a.
9510         Require 2.59.
9512 2003-11-06  Akim Demaille  <akim@epita.fr>
9514         Version 2.59.
9516 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
9518         * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
9519         so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
9520         and ac_abs_top_srcdir are absolute paths.
9521         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
9523 2003-11-05  Akim Demaille  <akim@epita.fr>
9525         * configure.ac: Bump to 2.58a.
9527 2003-11-05  Kevin Ryde  <user42@zip.com.au>
9529         * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
9530         it provokes a warning from makeinfo about looking like a cross
9531         reference in info output.
9533         * doc/autoconf.texi (Function Portability): Add notes on signal
9534         handler return type, as per AC_TYPE_SIGNAL.
9536 2003-11-04  Akim Demaille  <akim@epita.fr>
9538         Version 2.58.
9539         * doc/standards.texi: Update from master.
9541         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
9543 2003-11-04  Akim Demaille  <akim@epita.fr>
9545         AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
9546         computing the absolute path to d1 in the source hierarchy: it may
9547         not exist at all.  So don't cd into it.
9548         From Alexandre Duret-Lutz.
9549         http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
9551         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
9552         From Paul Eggert, but named after Perl's IO::Spec->catfile.
9553         * doc/autoconf.texi (Programming in M4sh): Document.
9554         * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
9556 2003-11-03  Pavel Roskin  <proski@gnu.org>
9558         * doc/autoconf.texi (Generic Structure Checks): Describe
9559         action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
9561 2003-10-31  Akim Demaille  <akim@epita.fr>
9563         * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
9564         (GNU Fortran): New.
9565         * doc/autoconf.texi (Language Choice): Document.
9566         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
9567         the current language is Fortran.
9569 2003-10-31  Akim Demaille  <akim@epita.fr>
9571         * bin/autom4te.in (&freeze): Use a less likely warning separator
9572         than `\n\n', so that `\n\n\n' is valid in warnings.
9573         Reported by Steve Huston.
9575 2003-10-28  Akim Demaille  <akim@epita.fr>
9577         * Makefile.cfg (local_updates, executable-update): Tweak to be
9578         robust to parallel makes.
9579         Suggested by Alexandre Duret-Lutz.
9581 2003-10-27  Akim Demaille  <akim@epita.fr>
9583         * Makefile.cfg (executable-update): New.
9584         (local_updates): Call it.
9586 2003-10-27  Akim Demaille  <akim@epita.fr>
9588         * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
9589         Don't remove core.* as it may remove valid user files.
9590         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
9591         (AC_FUNC_UTIME_NULL): Likewise.
9593 2003-10-23  Akim Demaille  <akim@epita.fr>
9595         Version 2.57g.
9596         * config/config.guess, config/config.sub: Upgrade from masters.
9598 2003-10-23  Akim Demaille  <akim@epita.fr>
9600         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
9601         AC_COMPILE_IFELSE that use break skip the clean up.  So do it by
9602         hand...
9604 2003-10-23  Akim Demaille  <akim@epita.fr>
9606         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
9607         Don't forget to remove conftest.err.
9609 2003-10-23  Akim Demaille  <akim@epita.fr>
9611         * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
9612         same object file in $LIBOBJS.
9613         Reported by Alexandre Duret-Lutz & Derek Robert Price.
9614         * doc/autoconf.texi (Generic Functions): Adjust.
9616 2003-10-20  Paul Eggert  <eggert@twinsun.com>
9618         * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
9619         Use 'eval', so that the resulting configure scripts work even if
9620         the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
9622 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
9624         * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
9625         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
9626         (_AC_LINK_IFELSE): Check the werror flag.
9627         * doc/autoconf.texi (Generic Compiler Characteristics): Document
9628         AC_LANG_WERROR.
9629         * NEWS: Mention it.
9631 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
9633         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
9634         _AC_COMPILER_EXEEXT to attempt a link.  If linking fails,
9635         override AC_LINK_IFELSE.
9637 2003-10-15  Paul Eggert  <eggert@twinsun.com>
9639         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
9640         pdksh 5.2.14.  Bug reported by Ralf Corsepius.
9641         * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
9642         Mention /usr/dt/bin/dtksh on Solaris.
9643         (Shell Substitutions): Warn about $((...)).
9644         (Parentheses): New section.
9646 2003-10-15  Kevin Ryde  <user42@zip.com.au>
9648         * doc/autoconf.texi (Function Portability): Add @prindex for exit.
9649         Add putenv and unsetenv.  Add sysconf _SC_PAGE_SIZE.
9651 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
9653         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
9654         cross test.
9656 2003-10-11  Steven G. Johnson  <stevenj@alum.mit.edu>
9658         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
9659         name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
9661 2003-10-10  Andreas Schwab  <schwab@suse.de>
9663         * bin/autoheader.in: Avoid empty first line in --version and
9664         --help output.
9665         * bin/ifnames.in: Likewise.
9667 2003-10-09  Paul Eggert  <eggert@twinsun.com>
9669         * lib/Autom4te/XFile.pm: Don't assume -j is solo.
9670         Issue a more-informative diagnostic.
9671         Problems reported by Eric Sunshine.
9673 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
9675         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
9676         -mGLOB_options_string stuff for Intel ifc, which can cause
9677         _AC_FC_LIBRARY_LDFLAGS to fail.  Use (faster) case for
9678         pattern-matching instead of grep.
9680 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
9682         * doc/autoconf.texi: Document new FC Fortran macros.
9684 2003-10-08  Gary V. Vaughan  <gary@gnu.org>
9686         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
9687         that future autopoint/aclocal/automake/autoreconf will be able
9688         to trace to find where to install local m4 macros.
9689         * doc/autoconf.texi (Input): Document it.
9690         * NEWS: Updated.
9692 2003-10-06  Gary V. Vaughan  <gary@gnu.org>
9694         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
9695         -lcrtbegin.o to list of ignored flags and fix underquoting of
9696         -lcrt[01].o.
9698 2003-10-04  Steven G. Johnson  <stevenj@ab-initio.mit.edu>
9700         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
9701         cache variable instead of $G77 to decide whether to include -O2,
9702         since $G77 is specific to Fortran 77.
9704 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
9706         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
9707         free" flag.  Re-order flags tested into rough order of popularity.
9709 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
9711         * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
9712         arguments so that it can be used with syntax identical to
9713         AC_PROG_F77, and so that we can more easily decide to
9714         remove/deprecate the DIALECT optional argument in the future if it
9715         proves troublesome.
9716         (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
9717         non-freeform-supporting compilers.  Document freeform flags.
9719 2003-10-03  Akim Demaille  <akim@epita.fr>
9721         * configure.ac: Look for emacs, not macs.
9722         Reported by Eric Sunshine.
9724 2003-10-03  Akim Demaille  <akim@epita.fr>
9726         * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
9727         * bin/autoreconf.in (autoreconf_current_directory): Create the
9728         AUX_DIR if needed, for sake of automake --add-missing etc.
9729         Suggested by Alexandre Duret-Lutz.
9731 2003-10-03  Akim Demaille  <akim@epita.fr>
9733         * configure.ac: Quotation and formatting changes.
9734         (EMACS): Don't set it if it is not recent enough to support
9735         autoconf-mode.el.
9736         From Eric Sunshine.
9738 2003-10-02  Akim Demaille  <akim@epita.fr>
9740         * bin/ifnames.in (&scan_file): Skip C++ comments.
9741         From Jeremy Yallop.
9743 2003-10-01  Pavel Roskin  <proski@gnu.org>
9745         * doc/autoconf.texi (Particular Structure Checks):
9746         Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
9748 2003-10-01  Akim Demaille  <akim@epita.fr>
9750         Version 2.57f.
9752 2003-09-30  Paul Eggert  <eggert@twinsun.com>
9754         * lib/Autom4te/XFile.pm: Use Errno.
9755         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
9756         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
9758 2003-09-30  Akim Demaille  <akim@epita.fr>
9760         * config/announce-gen (&print_news_deltas): Extracted from...
9761         (&print_changelog_deltas): here.
9762         (&news_file): Rename as...
9763         (@news_file): this.
9765 2003-09-30  Nicolas Joly  <njoly@pasteur.fr>
9767         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
9768         have been created when invoking the compiler.
9769         * tests/fortran.at (GNU Fortran 77): Quote $G77.
9771 2003-09-29  Akim Demaille  <akim@epita.fr>
9773         Version 2.57e.
9775         * config/mkinstalldirs: Upgrade.
9777 2003-09-28  Paul Eggert  <eggert@twinsun.com>
9779         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
9780         Problem reported by Lars J. Aas in
9781         <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
9782         (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
9783         "test -d ./-p && rmdir ./-p".  Suggested by Andreas Schwab in:
9784         http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
9786 2003-09-26  Akim Demaille  <akim@epita.fr>
9788         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
9789         directory for AC_CONFIG_COMMANDS' first argument exists.
9790         This makes valid the invocation of _AC_SRCPATH that follows.
9791         Reported by Eric Sunshine.
9792         * doc/autoconf.texi (Configuration Commands): Adjust.
9794 2003-09-26  Akim Demaille  <akim@epita.fr>
9796         * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
9797         Reported by Ralf Corsepius.
9799 2003-09-26  Akim Demaille  <akim@epita.fr>
9801         * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
9802         arguments.
9803         Actually, use AU_ALIAS.
9804         From Bruno Haible.
9806 2003-09-26  Paul Eggert  <eggert@twinsun.com>
9808         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
9809         rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
9810         Problem reported by Eric Sunshine in:
9811         http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
9813 2003-09-26  Akim Demaille  <akim@epita.fr>
9815         The test suite are sometimes assigning timings incorrectly.
9816         Reported by Henk Krus.
9817         Diagnosed by Nicolas Joly.
9819         * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
9820         AT_help_all.
9821         Instead of making AT_help a sequence of assignments to grow
9822         $at_help_all, just make AT_help_all be the growing contents of
9823         $at_help_all, and make a single assignment in...
9824         (AT_INIT): here.
9825         (at_times_skip): Flip the meaning and rename as...
9826         (at_times_p): this.
9827         (AT_INIT): When summarizing the test that ran, remove
9828         $at_times_file after use, and check it is present before trying to
9829         use it.
9831 2003-09-25  Akim Demaille  <akim@epita.fr>
9833         Version 2.57d.
9835         * bin/Makefile.am (edit): Handle '@configure_input@'.
9836         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
9837         (ifnames): chmod -w.
9838         * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
9839         executables, not bin/ executables!  Otherwise all the magic needed
9840         to find non installed files is turned off.  This caused a failure
9841         of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
9842         as found in its environment (sent by tests/autoreconf): pointing
9843         to bin/autom4te that could not find its files.
9844         * tests/mktests.sh: Force the replacement of generated files, for
9845         the sake of "mv" program that are interactive when overwriting a
9846         -w file.
9847         * config/install-sh: Upgrade from CVS Automake.
9849 2003-09-23  Paul Eggert  <eggert@twinsun.com>
9851         * doc/autoconf.texi (Limitations of Builtins): Document test -h
9852         versus test -L issues.
9854 2003-09-23  Daniel Jacobowitz  <drow@mvista.com> and
9855             Paul Eggert  <eggert@twinsun.com>
9857         Trivial change to support GCC's configuration procedure.
9858         * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
9859         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
9860         about inconsistency if the preprocessor is set to give errors for
9861         any warning.
9862         * doc/autoconf.texi (C Compiler Characteristics): Document this.
9864 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
9866         * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
9867         and XFile.pm from Automake.
9868         * lib/Autom4te/XFile.pm: Update from Automake.
9870 2003-09-12  Akim Demaille  <akim@epita.fr>
9872         Version 2.57c.
9874 2003-09-12  Akim Demaille  <akim@epita.fr>
9876         * config/config.guess, config/config.sub, config/missing,
9877         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
9878         from masters.
9880 2003-09-12  Akim Demaille  <akim@epita.fr>
9882         * doc/autoconf.texi (Header Portability): Promote linux/types.h,
9883         not asm/types.h.
9885 2003-09-11  Akim Demaille  <akim@epita.fr>
9887         * doc/autoconf.texi (Header Portability): linux/random.h.
9888         From Peter Hendrickson.
9890 2003-09-10  Akim Demaille  <akim@epita.fr>
9892         * tests/mktests.sh (au_exclude_egrep): Make it harder to be
9893         willing to edit the output files.
9895 2003-09-10  Akim Demaille  <akim@epita.fr>
9897         * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
9898         and AC_FC_FREEFORM.
9899         * tests/mktests.sh: Skip AC_FC_SRCEXT.
9900         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
9902 2003-09-09  Akim Demaille  <akim@epita.fr>
9904         * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
9905         Reported by Gary Vaughan.
9906         * bin/autom4te.in (handle_m4): Likewise.
9908 2003-09-09  Akim Demaille  <akim@epita.fr>
9910         * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
9911         trailing files.
9913 2003-09-07  Paul Eggert  <eggert@twinsun.com>
9915         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
9916         Improve the accuracy of the wording about obsolescence.
9917         From a suggestion by Ian Lance Taylor in
9918         <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
9920 2003-09-05  Paul Eggert  <eggert@twinsun.com>
9922         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
9923         for the benefit of g77 3.2.  Fix suggested by Steven G. Johnson.
9925 2003-09-04  Akim Demaille  <akim@epita.fr>
9927         * tests/mktests.sh (ac_exclude_list): Fix the filtering of
9928         AC_FUNC_WAIT3.
9930 2003-09-04  Akim Demaille  <akim@epita.fr>
9932         * bin/autom4te.in: Use &fatal where more appropriate than &error.
9933         (freeze): When exiting, use $exit_code.
9934         * lib/autoconf/fortran.m4: Comment changes.
9936 2003-09-04  Akim Demaille  <akim@epita.fr>
9938         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
9940 2003-09-02  Steven G. Johnson  <stevenj@alum.mit.edu>
9942         Add support for newer Fortran dialects.  The F77 interface is
9943         unchanged, and continues to support Fortran 77.  New FC macros
9944         correspond to all the old F77 macros, with output variables FC,
9945         FCFLAGS, and FCLIBS.  AC_PROG_FC defaults to picking the newest
9946         available dialect, but older dialects can be specified.  There are
9947         new macros AC_FC_SRCEXT to set the source extension, and
9948         AC_FC_FREEFORM to accept free-form source files.
9950         * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
9951         New macros.
9952         (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
9953         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
9954         _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
9955         _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
9956         AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
9957         AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
9958         _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
9959         _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
9960         AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
9961         _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
9962         AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
9963         _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
9964         AC_FC_SRCEXT, AC_FC_FREEFORM):
9965         New macros.
9966         (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
9967         AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
9968         AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
9969         Rewrite in terms of the above.
9970         (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
9971         * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
9972         * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
9973         AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
9975 2003-09-02  Paul Eggert  <eggert@twinsun.com>
9977         * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
9978         Document problems with timestamp resolution that 'make', 'cp -p', and
9979         'touch -r' have.
9981 2003-08-27  Akim Demaille  <akim@epita.fr>
9983         * tests/m4sugar.at (cross_warning): Make sure to enable the
9984         output, so that we can track spurious m4sugar output.
9985         * tests/local.at: Require 2.57.
9986         (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
9987         are defaulted by AT_CHECK anyway.
9988         Use AT_CHECK_AUTOM4TE.
9989         * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
9990         missing dnl.
9992 2003-08-27  Akim Demaille  <akim@epita.fr>
9994         * bin/autoheader.in: Issue the "Using auxiliary..." message only
9995         when -Wobsolete is set.
9996         Set it on by default.
9997         Suggested by Klee Dienes.
9999 2003-08-27  Akim Demaille  <akim@epita.fr>
10001         * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
10002         documentation.
10003         From Guido Draheim.
10005 2003-08-26  Akim Demaille  <akim@epita.fr>
10007         * doc/autoconf.texi (Output): Make clear that one can run code
10008         after AC_OUTPUT.
10010 2003-08-25  Akim Demaille  <akim@epita.fr>
10012         * config/announce-gen, GNUmakefile, Makefile.maint: Update from
10013         CVS Bison.
10015 2003-08-25  Alexandre Duret-Lutz  <adl@gnu.org>
10017         * bin/autoreconf.in (parse_args): Do not pass --no-force to
10018         Automake versions prior to 1.8.
10020 2003-08-25  Akim Demaille  <akim@epita.fr>
10022         * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
10023         From Ville Karaila.
10025 2003-08-24  Akim Demaille  <akim@epita.fr>
10027         * configure.ac: Bump to 2.57c.
10029 2003-08-22  Akim Demaille  <akim@epita.fr>
10031         Version 2.57b.
10033         * Makefile.cfg (local-checks-to-skip): New.
10034         * Makefile.maint (local-check): Rename as...
10035         (local-checks-available): this.
10036         (local-check): New.
10038         * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
10039         * configure.ac: Require Automake 1.7.6.
10041 2003-08-22  Akim Demaille  <akim@epita.fr>
10043         Output stack traces in warnings.
10045         * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
10046         Replace the former...
10047         (m4_warn): Pass the call stack to _m4_warn.
10048         * bin/autom4te.in: Adjust to output the call stack.
10049         * tests/m4sugar.at (m4@&t@_warn): Adjust.
10051 2003-08-22  Akim Demaille  <akim@epita.fr>
10053         * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
10054         * bin/autom4te.in: Adjust.
10056 2003-08-21  Akim Demaille  <akim@epita.fr>
10058         * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
10059         (&verbose): Remove.
10060         (&getopt): Adjust the note and verb channels, depending upon
10061         --verbose.
10062         * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
10063         * bin/autoupdate.in: Adjust.
10064         Use &verb, not &verbose.
10066 2003-08-21  Akim Demaille  <akim@epita.fr>
10068         * bin/autoheader.in (&parse_args): Use &parse_warnings and
10069         &parse_WARNINGS.
10070         ($help): Use Autom4te::ChannelDefs::usage.
10071         * bin/autoscan.in: Use Autom4te::ChannelDefs.
10072         * lib/Autom4te/General.pm: Don't export error: you don't own it.
10074 2003-08-21  Akim Demaille  <akim@epita.fr>
10076         First stab at preserving warnings between calls to autom4te,
10077         including when the cache is used.
10079         There are still several issues: (i) there are too many runs of m4
10080         (one for include, one for warnings, and some more), (ii) warnings
10081         spreading on several lines are not handled gracefully, (iii) the
10082         code meant to have the call stack display for errors does not work
10083         (its handling should move from m4 to autom4te).
10085         * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
10086         Use them.
10087         (@preselect): Add m4_warn.
10088         ($exit_status): Remove, use $exit_code.
10089         ($help): Use Autom4te::ChannelDefs::usage.
10090         (&handle_m4): No longer define the m4_warnings.
10091         At each run, extract and report the warnings.
10092         Always cache the result, including if the exit status is on
10093         failure, since if nothing changes, we should result in the same
10094         failure, hence we can use the cache.
10095         * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
10096         (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
10097         Remove.
10098         (m4_warn): Redefine as a do-nothing: it is its invocation that
10099         matters, as warnings are now reported via traces.
10100         * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
10101         the contents of m4_warn: make it _call_ m4_warn, so that tracing
10102         the latter reveals calls to the former.
10104         Adjust the tests.
10106         * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
10108 2003-08-21  Akim Demaille  <akim@epita.fr>
10110         * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
10111         Use them.
10113 2003-08-21  Akim Demaille  <akim@epita.fr>
10115         * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
10116         forward order.
10117         * lib/Autom4te/ChannelDefs.pm: Doc typos.
10118         (&parse_warnings): Accept a list of warning requests.
10119         (&usage): Return a string, not a side effect.
10120         (cross): New warning category.
10122 2003-08-21  Akim Demaille  <akim@epita.fr>
10124         * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
10125         (&require_configure_ac): Accept an optional directory argument.
10126         ($configure_ac): Remove.
10127         * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
10128         (&catfile): Remove.
10129         * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
10130         * bin/autoscan.in: Adjust.
10132 2003-08-20  Akim Demaille  <akim@epita.fr>
10134         * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
10135         Reported by Alexandre Duret-Lutz.
10137 2003-08-20  Akim Demaille  <akim@epita.fr>
10139         * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
10140         * bin/autom4te: Adjust.
10141         In particular, be Autoconf tools are really silent when properly
10142         working, bind the verbosity of the 'note' channel to $verbose.
10143         * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
10144         (&xsystem, &contents): Remove, since they are exported by...
10145         * lib/Autom4te/FileUtils.pm: this.
10146         More perldoc.
10147         * lib/Autom4te/General.pm (&up_to_date_p): Move to...
10148         * lib/Autom4te/FileUtils.pm: here.
10150 2003-08-20  Akim Demaille  <akim@epita.fr>
10152         * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
10153         * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
10154         from CVS Automake.
10156 2003-08-20  Akim Demaille  <akim@epita.fr>
10158         * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
10159         (autom4te-update): New.
10160         * Makefile.cfg (update): Bind autom4te-update.
10162 2003-08-19  Derek Price  <derek@ximbiot.com>
10164         * lib/autotest/general.m4: Comment various HELP_* diversions.
10165         (PARSE_ARGS_BEGIN): New section for option parsing related
10166         initialization.
10167         (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
10168         package specific options and associated help.
10170 2003-08-19  Akim Demaille  <akim@epita.fr>
10172         * config/announce-gen, Makefile.cfg: New.
10173         * Makefile.am: Adjust.
10174         * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
10176 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
10178         * lib/autom4te.in (Automake-preselections): Preselect
10179         AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
10180         and m4_sinclude.
10182 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
10184         * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
10185         (Autoconf-without-aclocal-m4): ... this new language.
10186         * doc/autoconf.texi (autom4te Invocation): Mention
10187         Autoconf-without-aclocal-m4.
10189 2003-08-18  Derek Price  <derek@ximbiot.com>
10191         * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
10192         RUN-IF-PASS optional arguments.
10194 2003-08-18  Derek Price  <derek@ximbiot.com>
10196         * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
10198 2003-08-16  Derek Price  <derek@ximbiot.com>
10200         * doc/autoconf.texi (Writing testsuite.at): Document defaults for
10201         STDOUT & STDERR arguments.
10203 2003-08-14  Derek Price  <derek@ximbiot.com>
10205         * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
10206         DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
10207         shorter column three.  Add DESCRIPTION to log file content.
10209 2003-08-13  Derek Price  <derek@ximbiot.com>
10211         * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
10212         output.
10214 2003-08-12  Derek Price  <derek@ximbiot.com>
10216         * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
10217         (AT_CHECK_NOESCAPE): Move core functionality to...
10218         (_AT_CHECK): ...this new macro.
10220 2003-08-07  Derek Price  <derek@ximbiot.com>
10222         * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
10223         (AT_CHECK_NOESCAPE): ...to this new macro.
10225 2003-07-31  Paul Eggert  <eggert@twinsun.com>
10227         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
10228         in Bash 2.01.  Problem reported by Brian Gough in
10229         <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
10231 2003-07-25  John W. Eaton  <jwe@bevo.che.wisc.edu>
10233         * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
10234         -lcrt1.o, for OS X.  (trivial change)
10236 2003-07-07  Paul Eggert  <eggert@twinsun.com>
10238         * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
10239         inside '#ifndef __cplusplus'.  Problem reported by
10240         Bob Friesenhahn.
10242 2003-07-06  Bill Clarke  <llib@computer.org>
10244         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
10245         'long', not 'int', for benefit of Sun's recent C++ compilers
10246         (trivial change).  See:
10247         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
10248         (This really should be 'intptr_t', not 'long', but that would
10249         take more work.)
10251 2003-06-25  Akim Demaille  <akim@epita.fr>
10253         * lib/Makefile.am (autom4te.cfg): Make it read only.
10254         Depend on Makefile since it contains substitutions.
10255         From Paolo Bonzini.
10256         * lib/autom4te.in (args): Add local.at? for Autotest args.
10257         This change was made on autom4te.cfg which is generated.
10258         Reported by Raja R. Harinath.
10260 2003-06-25  Akim Demaille  <akim@epita.fr>
10262         * doc/autoconf.texi (Header Portability): sys/mount.h.
10263         From Gareth McCaughan.
10265 2003-06-23  Akim Demaille  <akim@epita.fr>
10267         * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
10268         not all of them.  This fixes 1. the fact that when testing
10269         Autoconf there are many many config.log, 2. the incorrect use of
10270         top_srcdir to find config.log.
10271         Don't mix the detailed output of failed test with the summary of
10272         failures.  Rather, append detailed log afterwards.
10274 2003-06-23  Akim Demaille  <akim@epita.fr>
10276         * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
10277         always run: output config.log on $at_group_log.
10279 2003-06-23  Akim Demaille  <akim@epita.fr>
10281         * tests/torture.at (#define header templates): Don't use quotes in
10282         C++ comments as it puzzles Emacs' sh font-lock-mode.
10284 2003-06-23  Akim Demaille  <akim@epita.fr>
10286         * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
10287         * lib/autom4te.cfg (args): Add local.at? for Autotest args.
10288         * tests/atspecific.m4: Rename as...
10289         * tests/local.at: This.
10290         * tests/suite.at: Move the globals into...
10291         * tests/local.at: here.
10292         * tests/Makefile.am: Adjust.
10293         * doc/autoconf.texi (testsuite Scripts): Adjust.
10295 2003-06-21  Kevin Ryde  <user42@zip.com.au>
10297         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
10298         error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
10299         ensuring we add -std1 for full-ANSI.
10301         * doc/autoconf.texi (hdrindex): New macro.
10302         Add index entries for portability of various standard header files.
10304 2003-06-20  Akim Demaille  <akim@epita.fr>
10306         * configure.ac: Bump to 2.57b.
10308 2003-06-20  Akim Demaille  <akim@epita.fr>
10310         Version 2.57a.
10312 2003-06-20  Akim Demaille  <akim@epita.fr>
10314         * bin/autom4te.in: Don't rely on $HOME being defined.
10315         Reported by Marc Espie as PR/233.
10317 2003-06-20  Akim Demaille  <akim@epita.fr>
10319         * lib/autotest/general.m4: Use at_times_file only if used.
10320         From Nicolas Joly.
10322 2003-06-20  Akim Demaille  <akim@epita.fr>
10324         * config/config.guess, config/config.sub, config/elisp-comp,
10325         * config/install-sh, config/mkinstalldirs, doc/standards.texi:
10326         Update from masters.
10328 2003-06-11  Paolo Bonzini  <bonzini@gnu.org>
10330         * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
10331         * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
10332         (TEST_SCRIPT): New diversion.
10333         (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
10334         (AT_CLEANUP): ...to here.  Undivert TEST_SCRIPT.
10335         (AT_INIT): Support for expected failures.
10337 2003-06-02  Akim Demaille  <akim@epita.fr>
10339         * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
10340         changes.
10341         * lib/Autom4te/General.pm (&backname): Remove, no longer used by
10342         Autoconf nor Automake.
10343         (&contents): New, from Automake.
10344         PODify.
10346 2003-05-28  Paul Eggert  <eggert@twinsun.com>
10348         * NEWS, doc/autoconf.texi (Particular Functions),
10349         lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
10350         is the inverse of localtime.
10352 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
10354         * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
10355         (handle_exec_errors): New function.  Work around $! being
10356         altered by WEXITSTATUS.
10357         (xqx, xsystem): Use handle_exec_errors.
10359 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
10361         * lib/Autom4te/General.pm (END): Rewrite exit code processing.
10362         Do not call `_exit()', simply modify `$?'.
10363         (xsystem): Reset $! before running system, and check it afterward.
10364         * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
10365         63 for version mismatches.
10367 2003-05-23  Akim Demaille  <akim@epita.fr>
10369         * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
10370         Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
10371         the middle of a line).
10372         * lib/m4sugar/m4sugar.m4: Likewise.
10373         Remove useless spaces in comments.
10375 2003-05-23  Akim Demaille  <akim@epita.fr>
10377         * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
10378         exit 63, so that we (or Automake's "missing") can tell the
10379         difference with a plain failure.
10380         * doc/autoconf.texi (Notices): Adjust.
10382 2003-05-23  Akim Demaille  <akim@epita.fr>
10384         * Makefile.am, bin/Makefile.am, config/Makefile.am,
10385         * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
10386         White spaces cleanup.
10388 2003-05-22  Jim Meyering  <jim@meyering.net>
10389             Paul Eggert  <eggert@twinsun.com>
10391         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
10392         Remove `#include <stdlib.h>' from the list; we should never
10393         make confdefs.h include <stdlib.h> or <cstdlib>, because the
10394         resulting namespace pollution would cause other tests to fail.
10395         Configure scripts run with some older versions of g++ and HP's
10396         aCC would fail due to such an #include.  Problems reported by
10397         Matthew Mueller in <http://bugs.debian.org/120704> and by
10398         Keith Bostic in
10399         <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
10400         In the test, use the test declaration before including <stdlib.h>,
10401         as that's closer to how it'll be used.
10403 2003-05-23  Akim Demaille  <akim@epita.fr>
10405         * doc/autoconf.texi (Header Portability): ucred.h.
10406         From Ian Redfern.
10408 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
10410         Overhaul Autotest's logging: generate separate log files
10411         in testsuite.dir/NNN/testsuite.log, and append them to
10412         testsuite.log instead of re-running the test verbosely.
10414         * lib/autotest/general.m4 (AT_INIT): Use a single redirected
10415         file descriptor, write 0 to at_status_file instead of setting
10416         at_status=0, initialize some new variables (at_status_file,
10417         at_group_log, at_suite_log, at_tee_pipe).  Remove the cruft
10418         to rerun the tests, instead append the at_group_log to the
10419         at_suite_log when a test fails.
10420         (AT_SETUP): pipe the test case's output into at_tee_pipe,
10421         with the AS_MESSAGE_LOG_FD redirected to stdout.
10422         (AT_CLEANUP): save the output status in $at_status_file
10423         and restore it, redirect the AS_MESSAGE_LOG_FD back to
10424         its original place.
10425         (AT_CHECK): since tests are run with a redirected stdout,
10426         and used to be re-run in verbose mode, turn some $at_verbose
10427         into echo, and don't redirect the output of testing stdout
10428         and stderr.
10430         * lib/autotest/autoconf.texi (testsuite Scripts): Update
10431         the name of the debugging directory and information about
10432         its contents.
10434 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
10436         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
10437         parameter.
10439 2003-05-22  Akim Demaille  <akim@epita.fr>
10441         * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
10442         * lib/autoconf/fortran.m4 lib/autoconf/general.m4
10443         * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
10444         * lib/autoconf/status.m4: Fix and adjust copyright notices.
10446 2003-05-22  Akim Demaille  <akim@epita.fr>
10448         * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
10449         * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
10450         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
10451         * lib/autoconf/general.m4, lib/autoconf/headers.m4,
10452         * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
10453         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
10454         * lib/autoconf/status.m4, lib/autoconf/types.m4,
10455         * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
10456         * tests/atspecific.m4, tests/base.at, tests/compile.at,
10457         * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
10458         * tests/tools.at, tests/torture.at:
10459         Whitespace clean up.
10460         Suggested by Jim Meyering.
10462 2003-05-22  Akim Demaille  <akim@epita.fr>
10464         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
10465         ' \t' as '\t ' so that Emacs' whitespace.el keep it.
10466         Reported by Jim Meyering.
10468 2003-05-22  Akim Demaille  <akim@epita.fr>
10470         * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
10471         Add AC_HELP_STRING  to the obsolete macros section.
10472         Typos.
10473         Use '@.' for sentences that ended in a capital letter.
10474         From Art Haas.
10476 2003-05-22  Akim Demaille  <akim@epita.fr>
10478         * config/config.guess, config/config.sub, config/elisp-comp,
10479         * config/install-sh, config/mdate-sh, config/mkinstalldirs,
10480         * config/texinfo.tex, doc/standards.texi: Update from masters.
10482 2003-05-21  Paolo Bonzini  <bonzini@gnu.org>
10484         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
10485         it to eval.
10487 2003-05-21  Akim Demaille  <akim@epita.fr>
10489         * bin/autoupdate.in ($m4): Fix quotation.
10490         Reported by Martin Mokrejs.
10492 2003-05-19  Paul Eggert  <eggert@twinsun.com>
10494         * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
10495         Remove non-ASCII characters.
10497 2003-05-18  Paolo Bonzini  <bonzini@gnu.org>
10499         * tests/semantics.at (AC_SEARCH_LIBS): New test.
10500         * tests/semantics.at (AC_CHECK_HEADERS_OLD,
10501         AC_CHECK_HEADERS_NEW): New tests.
10503 2003-05-17  Akim Demaille  <akim@epita.fr>
10505         * lib/autoconf/functions.m4: Use the default includes so that
10506         memcmp be declared before being tested.
10507         Reported by Sander Niemeijer.
10508         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
10509         * doc/autoconf.texi (Default Includes): Document
10510         AC_INCLUDES_DEFAULT.
10512 2003-05-17  Akim Demaille  <akim@epita.fr>
10514         * lib/autoconf/specific.m4: Include signal.h and unistd.h.
10515         * doc/autoconf.texi (Obsolete Macros): Adjust.
10516         Reported by Werner LEMBERG and Debian Bug 190886.
10518 2003-05-16  Akim Demaille  <akim@epita.fr>
10520         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
10521         user name space clashes.
10522         Reported by Bruno Haible.
10524 2003-05-16  Akim Demaille  <akim@epita.fr>
10526         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
10527         * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
10528         them uniform, and more robust to Perl special characters.
10529         Reported by Martin Mokrejs.
10531 2003-05-14  Akim Demaille  <akim@epita.fr>
10533         * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
10535 2003-05-14  Akim Demaille  <akim@epita.fr>
10537         * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
10538         linux/irda.h.
10540 2003-05-12  Akim Demaille  <akim@epita.fr>
10542         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
10543         message.
10544         From Matthias Andree.
10546 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
10548         * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
10549         and truncate.
10551 2003-05-06  Akim Demaille  <akim@epita.fr>
10553         Don't try to be smart with aclocal 1.8+ because (i) aclocal no
10554         longer updates aclocal.m4 if useless, (ii) if a file m4_included
10555         by aclocal.m4 is changed it might require the importing of another
10556         m4 extension file, i.e., aclocal must be run.
10558         * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
10559         (&parse_args): Use --force with aclocal if required and supported.
10560         (&autoreconf_current_directory): Use &run_aclocal.
10562 2003-05-06  Akim Demaille  <akim@epita.fr>
10564         Lock autom4te's cache.
10566         * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
10567         * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
10568         argument instead of a file name, so that the request file remains
10569         open during the whole autom4te run.
10570         ($icache_file): New.
10571         (&freeze): Lock the $icache_file.
10573 2003-04-29  Derek Price  <derek@ximbiot.com>
10575         * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
10576         seperator with m4_append_uniq().  It doesn't work.
10577         (AT_CLEANUP): Add `;' to end of at_help_all.
10578         (AT_INIT): Allow --keywords to be specified more than once.  When
10579         grepping $at_help_all for keywords, use the field and keyword
10580         seperators to ensure a complete keyword match.  Alter at_prev handling
10581         to support the new --keywords behavior.
10583 2003-04-27  Karl Berry  <karl@freefriends.org>
10585         * doc/autoconf.texi: Make the dir entries in the autoconf manual
10586         align better with others.  I also made some of the individual
10587         entries on one line, for brevity and to make it easier for me to
10588         sort my dir-example file in the Texinfo distribution :).
10590 2003-04-12  Jim Meyering  <jim@meyering.net>
10592         * NEWS: Mention the new macro.
10593         * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
10594         * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
10595         * tests/c.at: Test AC_C_RESTRICT.
10596         * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
10598 2003-04-08  Akim Demaille  <akim@epita.fr>
10600         * bin/ifnames.in: Skip C++ comments.
10601         From Jeremy Yallop.
10603 2003-04-08  Akim Demaille  <akim@epita.fr>
10605         * GNUmakefile (SHELL): Don't assume sh is in /bin/.
10606         From Ilya Zakharevich.
10608 2003-04-08  Akim Demaille  <akim@epita.fr>
10610         * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
10611         net/if.h, stdlib.h.
10613 2003-04-01  Derek Price  <derek@ximbiot.com>
10615         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
10616         from Akim's checkin of 2003-03-29.
10618 2003-04-01  Derek Price  <derek@ximbiot.com>
10620         * tests/torture.at (Configuring subdirectories): Add missing
10621         close-quote for Akim's change from 2003-03-28.
10623 2003-04-01  Akim Demaille  <akim@epita.fr>
10625         * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
10626         (AC, AT, MS): these.
10627         (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
10628         New.
10629         Use them.
10630         * doc/Makefile.am (CLEANFILES): Adjust.
10631         (TEXI2DVI): Make it --batch.
10633 2003-03-31  Derek Price  <derek@ximbiot.com>
10635         * lib/autotest/general.m4: Revert the checkin from 2003-03-27
10636         which removed the main loop.
10637         Thanks to Akim Demaille.
10639 2003-03-29  Akim Demaille  <akim@epita.fr>
10641         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
10642         that starts a GUI.
10643         From Ilya Zakharevich.
10645 2003-03-29  Akim Demaille  <akim@epita.fr>
10647         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
10648         documentation to read is Autoconf's.
10649         Suggested by Paul Eggert.
10651 2003-03-28  Akim Demaille  <akim@epita.fr>
10653         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
10654         reading the section "Present But Cannot Be Compiled" when the
10655         header causes problems.
10657 2003-03-28  Akim Demaille  <akim@epita.fr>
10659         * tests/torture.at (Configuring subdirectories): Require aclocal
10660         1.4, otherwise the test fails, as it does support configure.ac.
10661         This fixes the "test 40 failed" bug reports.
10663 2003-03-28  Akim Demaille  <akim@epita.fr>
10665         * doc/autoconf.texi (C Compiler): `#line' portability.
10666         From Paul Eggert and Nelson H. F. Beebe.
10668 2003-03-27  Derek Price  <derek@ximbiot.com>
10670         * lib/autotest/general.m4: Eliminate main loop and reorganize test
10671         layout in order to allow scripting around test groups.
10673 2003-03-27  Derek Price  <derek@ximbiot.com>
10675         * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
10676         HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
10677         use new diversions in preparation for accepting new arguments and
10678         allowing scripting around tests.
10679         (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
10681 2003-03-26  Derek Price  <derek@ximbiot.com>
10683         * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
10684         obsolete AC_HELP_STRING.
10685         (AC_HELP_STRING): AU_DEFUN to...
10686         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
10687         * tests/m4sh.at (AS_HELP_STRING): New test.
10689         * tests/acgeneral.at: Regenerated.
10691 2003-03-26  Derek Price  <derek@ximbiot.com>
10693         * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
10694         sense.  Verbosify the diversion definitions comment.
10696 2003-03-26  Derek Price  <derek@ximbiot.com>
10698         * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
10699         AS_PREPARE.
10701 2003-03-21  Eric Siegerman  <eric_97@pobox.com>
10703         * doc/autoconf.texi (Present But Cannot Be Compiled):
10704         Grammar fixes and minor rewording. (trivial change)
10706 2003-03-06  Paul Eggert  <eggert@twinsun.com>
10708         Work around a problem noted by Nelson H. F. Beebe with coreutils
10709         4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
10710         2002/05/09) rejects '#line 32768 "configure"' because the line
10711         number overflows.
10712         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
10713         #line directives.
10714         * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
10715         * doc/autoconf.texi (Generating Sources): Document this.
10717 2003-03-01  Richard Dawe  <rich@phekda.freeserve.co.uk>
10719         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
10720         file name for the m4 program, when it has an "exe" file extension.
10721         DJGPP's error messages include the error code in brackets -
10722         remove the error code during normalization.
10724 2003-02-28  Akim Demaille  <akim@epita.fr>
10726         * doc/autoconf.texi (Present But Cannot Be Compiled): New.
10728 2003-02-28  Alexandre Duret-Lutz  <adl@gnu.org>
10730         * doc/autoconf.texi (Limitations of Make): Remove the section
10731         about `$<' in inference rules, it was a bogus interpretation of
10732         an old Automake change.  Discuss NetBSD, FreeBSD, OpenBSD, and
10733         Tru64 make in the "target lookup" section.
10734         (Automake): Automake 1.5+ no longer requires special tools to be
10735         present on the developer's host.
10737 2003-02-26  Richard Dawe  <rich@phekda.freeserve.co.uk>
10739         * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
10740         to a shell that can handle redirection or quoting correctly.
10741         Override SHELL with the shell detected by configure.
10742         Use of $^O suggested by Tim van Holder.
10743         * bin/autom4te.in (BEGIN): Likewise.
10744         * bin/autoreconf.in (BEGIN): Likewise.
10745         * bin/autoscan.in (BEGIN): Likewise.
10746         * bin/autoupdate.in (BEGIN): Likewise.
10747         * bin/ifnames.in (BEGIN): Likewise.
10749         * bin/ifnames.in: Add final newline to help and version messages.
10751         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
10752         to cope with DOS-style absolute paths, when constructing
10753         ${ac_make}.
10755         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
10756         When constructing paths with IFS=:, quote the path. If we're
10757         constructing a DOS-style absolute path, we don't want to split it
10758         on the colon.
10760         * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
10761         in description.
10763 2003-02-25  Pavel Roskin  <proski@gnu.org>
10765         * bin/autoheader.in: Add missing newline when printing
10766         suggestion how change AC_DEFINE call.
10768 2003-02-24  Paul Eggert  <eggert@twinsun.com>
10770         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
10771         2002-09-01 patch by replacing "test -n" with "test -z".
10772         This fixes a bug found by Jeff Painter and reported by Tom Epperly in
10773         <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
10775         * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
10776         to fix a mismatch between example and discussion.
10778 2003-02-24  Kevin Ryde  <user42@zip.com.au>
10780         * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
10781         format starting with "-".
10783 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
10785         * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
10786         is not portable inside Makefile.
10788 2003-02-20  Akim Demaille  <akim@epita.fr>
10790         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
10791         compiler says yeah, but preproc says nope, compiler is right.
10792         Conversely, prompt the reader to send a bug report to the
10793         maintainers of the package, not of Autoconf.
10795 2003-02-20  Klee Dienes  <kdienes@apple.com>
10797         * bin/autoreconf.in (autoreconf_current_directory): Properly
10798         handle an empty aclocal.m4.
10800 2003-02-20  Akim Demaille  <akim@epita.fr>
10802         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
10803         $ac_prefix_program.
10804         From Larry Jones.
10806 2002-12-23  Paul Eggert  <eggert@twinsun.com>
10808         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
10809         innocuous variant befor including <limits.h> or <assert.h>.  This
10810         works around a bug reported by Albert Chin: HP-UX 11i
10811         (and earlier versions) have a <limits.h> that declares
10812         gettimeofday and many other functions.
10814 2002-12-03  Paul Eggert  <eggert@twinsun.com>
10816         Version 2.57.
10818         * NEWS, configure.ac: Update version.
10820         * doc/fdl.texi: Upgrade to FDL version 1.2.
10822         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
10823         nontrivially in main's body, so that f's external declaration is
10824         not optimized away in AIX.  This should fix the bug reported by
10825         Martin Frydl in
10826         <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
10828         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
10829         _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
10830         defined, to support freestanding compilers.  This should fix the
10831         bug reported by Momchil Velkov in
10832         <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
10834         * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
10835         arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
10836         obsolete AC_CHECK_TYPE.  The missing empty arg was reported
10837         by Simon Josefsson in
10838         <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
10840         * Makefile.maint (www-gnu): New macro.
10841         (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
10842         the location has moved.
10844 2002-12-02  Martin Frydl  <martin@systinet.com>
10846         * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
10847         \(.*\) match is too long and there is something more to be checked.
10848         <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
10850 2002-11-15  Akim Demaille  <akim@epita.fr>
10852         Version 2.56.
10854         * config/install-sh: chmod +x.
10855         From Paul Eggert.
10856         * config/move-if-change: Indenting changes.
10857         * Makefile.am (AUTOMAKE_OPTIONS): Move to...
10858         * configure.ac (AM_INIT_AUTOMAKE): here.
10859         Require 1.7.1.
10861 2002-11-14  Akim Demaille  <akim@epita.fr>
10863         Version 2.55.
10865         * config/config.guess, config/config.sub, config/install-sh:
10866         Update from masters.
10868 2002-11-14  Akim Demaille  <akim@epita.fr>
10870         * Makefile.maint: Sync with Bison, i.e.:
10871         (po-check): Scan .l and .y files instead of the
10872         .c and the .h files that they generate.  This fixes the bug
10873         reported by Tim Van Holder in:
10874         <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
10875         Look for N_ as well as for _.  Try to avoid matching #define for
10876         N_ and _.
10877         From Paul Eggert.
10879 2002-11-14  Akim Demaille  <akim@epita.fr>
10881         * doc/autoconf.texi (C Compiler): Compiling several files at once.
10882         From Paul Eggert and Albert Chin-A-Young.
10884 2002-11-14  Akim Demaille  <akim@epita.fr>
10886         * doc/autoconf.texi (C Compiler): Solitary backslashes.
10887         From Paul Eggert and Albert Chin-A-Young.
10889 2002-11-14  Kevin Ryde  <user42@zip.com.au>
10891         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
10892         than assigning in main, to avoid HP cc +O3 optimizing it away.
10894 2002-11-12  Peter Eisentraut  <peter_e@gmx.net>
10896         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
10897         option.  Process --recheck after parsing all options.  Pass -q
10898         option to configure on --recheck.
10899         (AC_OUTPUT): Pass -q from configure to config.status.
10900         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
10901         arguments to record.
10902         * doc/autoconf.texi (config.status Invocation): Document
10903         config.status -q option.
10905 2002-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
10907         * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
10908         Makefile.in if Makefile.am exists.
10909         (output): Strip `.am' from Makefiles.  Don't
10910         output AC_CONFIG_FILES if no Makefiles were found.
10912 2002-11-07  Akim Demaille  <akim@epita.fr>
10914         * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
10915         (local_updates): New.
10916         * Makefile.maint: Update, from CVS Bison.
10917         (local_updates): New.
10919 2002-11-06  Akim Demaille  <akim@epita.fr>
10921         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
10922         declaration in extern "C" too.
10923         Reported by Roberto Bagnara.
10925 2002-11-06  Akim Demaille  <akim@epita.fr>
10927         * tests/torture.at (Configuring subdirectories): Don't use grep
10928         -w.
10929         * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
10930         Reported by Ezra Peisach.
10932 2002-11-05  Akim Demaille  <akim@epita.fr>
10934         * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
10935         Remove.
10936         We _have_ to stop using the old compatibility scheme that tried to
10937         avoid useless backslashes because Libtool 1.4.3 contains a
10938         AC_DEFINE([error_t], [int],
10939         [Define to a type to use for \`error_t' if it is not
10940         otherwise available.])
10941         We _have_ to quote the single quote and backslashes with \.  The
10942         old compatibility scheme saw that ` was backslashed, and therefore
10943         did not quote the single quote.  Hence before this patch, Autoconf
10944         was not compatible with Libtool.
10946 2002-11-04  Paul Eggert  <eggert@twinsun.com>
10948         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
10949         too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
10950         LC_NAME, LC_PAPER, LC_TELEPHONE.
10951         * doc/autoconf.texi (Special Shell Variables): Mention those vars.
10953 2002-11-04  Akim Demaille  <akim@epita.fr>
10955         Version 2.54c.
10957         * Makefile.maint (update, cvs-update, po-update, do-po-update):
10958         New.
10959         * config/texinfo.tex: Update.
10961 2002-11-03  Akim Demaille  <akim@epita.fr>
10963         * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
10964         from...
10965         (&autoreconf): here.
10966         ($help, $make, &parse_args, &autoreconf_current_directory):
10967         Support -m/--make.
10968         * doc/autoconf.texi (autoreconf Invocation): Adjust.
10970 2002-10-31  Bruno Haible  <bruno@clisp.org>
10972         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
10973         Change name of cache variable to ac_cv_func_malloc_0_nonnull.
10974         (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
10975         (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
10976         to ac_cv_func_realloc_0_nonnull.
10977         (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
10979 2002-10-31  Akim Demaille  <akim@epita.fr>
10981         The test suite was no longer checking for trailing envvars and files.
10983         * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
10984         (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
10986 2002-10-31  Akim Demaille  <akim@epita.fr>
10988         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
10989         `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
10990         Make variable, not a shell variable.
10991         Suggested by Bruno Haible.
10993 2002-10-31  Akim Demaille  <akim@epita.fr>
10995         * bin/autom4te.in (load_configuration): Reject #args out of any
10996         language.
10998 2002-10-31  Akim Demaille  <akim@epita.fr>
11000         * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
11001         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
11002         (_AC_RUN_IFELSE): Use it.
11003         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
11004         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
11005         * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
11006         inline it.
11008 2002-10-30  Akim Demaille  <akim@epita.fr>
11010         * bin/autom4te.in (&parse_args, $help): Support --no-cache.
11011         * doc/autoconf.texi (autom4te Invocation): Adjust.
11012         Suggested by Tim van Holder.
11014 2002-10-29  Paul Eggert  <eggert@twinsun.com>
11016         * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
11017         AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
11018         Problem reported by Bruno Haible.
11020 2002-10-29  Akim Demaille  <akim@epita.fr>
11022         * doc/autoconf.texi (Header Templates): Put also in words what the
11023         pictures says to assist free style readers.
11024         (Customizing autom4te): s/--cache=/--cache /.
11026 2002-10-29  Akim Demaille  <akim@epita.fr>
11028         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
11029         sys/wait.h.
11030         sparc_address_test returns void.
11031         Use it with an argument, as prototyped.
11032         From Bruno Haible.
11034 2002-10-29  Akim Demaille  <akim@epita.fr>
11036         * doc/autoconf.texi (Subdirectories): Cygnus dirs have
11037         configure.in, not configure.ac.
11038         Reported by Bruno Haible.
11040 2002-10-29  Akim Demaille  <akim@epita.fr>
11042         * tests/torture.at (Deep Package): New test.
11043         (Configuring subdirectories): Don't use a testSubDir as Autotest
11044         now does it itself.
11046 2002-10-29  Akim Demaille  <akim@epita.fr>
11048         * bin/autoreconf.in (&parse_args, $help): Support --warnings.
11049         * doc/autoconf.texi (Invoking autom4te): Rename as...
11050         (autom4te Invocation): this, for consistency with the other nodes.
11052 2002-10-29  Akim Demaille  <akim@epita.fr>
11054         * lib/autom4te.in (Autoconf): s/automate/autom4te/.
11055         Reported by Ralf Corsepius.
11057 2002-10-29  Akim Demaille  <akim@epita.fr>
11059         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
11060         characters is a back as an `obsolete' warning now.
11061         Reported by Ralf Corsepius.
11063 2002-10-28  Akim Demaille  <akim@epita.fr>
11065         * configure.ac: Bump to 2.54c.
11067 2002-10-28  Akim Demaille  <akim@epita.fr>
11069         Version 2.54b.
11071         * tests/foreign.at (Libtool): Adjust to broken libtoolize.
11073 2002-10-28  Akim Demaille  <akim@epita.fr>
11075         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
11076         m4 executable names, and different GNU M4 version.
11077         Reported by Ezra Peisach and Paul Jarc.
11079 2002-10-27  Akim Demaille  <akim@epita.fr>
11081         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
11082         AC_RUN_IFELSE.
11084 2002-10-27  Akim Demaille  <akim@epita.fr>
11086         * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
11087         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
11088         Die when a simple Fortran program cannot be compiled.
11089         * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
11090         Issue a warning if no function is given.
11092 2002-10-27  Akim Demaille  <akim@epita.fr>
11094         * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
11095         Move the documentation of AC_TRY_RUN to...
11096         (Obsolete Macros): here.
11097         Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
11098         (autoconf Invocation): Remove the duplicates with `invoking
11099         autom4te'.
11100         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
11101         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
11103 2002-10-27  Akim Demaille  <akim@epita.fr>
11105         * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
11106         and AC_LANG_FUNC_LINK_TRY.
11107         (Examining Libraries): Rename as...
11108         (Running the Linker): this.
11109         Document AC_LINK_IFELSE.
11110         Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
11111         (Obsolete Macros): here.
11112         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
11113         AC_TRY_LINK_FUNC nor AC_TRY_LINK.
11114         * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
11115         * lib/autoconf/headers.m4 (AC_USG): Likewise.
11117 2002-10-27  Akim Demaille  <akim@epita.fr>
11119         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
11121         More `check config.log' messages.
11123         * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
11124         * doc/autoconf.texi (Printing Messages): Document it.
11125         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
11126         appropriate.
11127         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
11128         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
11129         (_AC_COMPILER_OBJEXT): Likewise.
11130         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
11131         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
11132         Likewise.
11133         * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
11134         Likewise.
11136         Deprecate macros with unusual interfaces.
11138         * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
11139         (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
11141         Document the new ones, and proper style.
11143         * doc/autoconf.texi (Generating Sources): New.
11144         Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
11145         (Examining Declarations): Rename as...
11146         (Running the Preprocessor): this.
11147         Document AC_PREPROC_IFELSE.
11148         (Examining Syntax): Rename as...
11149         (Running the Compiler): this.
11150         (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
11151         (Obsolete Macros): Move the definition of AC_TRY_CPP and
11152         AC_TRY_COMPILE here.
11154 2002-10-27  Akim Demaille  <akim@epita.fr>
11156         Move sections around.
11158         * doc/autoconf.texi (Customizing autom4te): Remove a lost
11159         sentence.
11160         Reported by Burno Haible.
11161         (Language Choice): Now the first section of...
11162         (Writing Tests): this section.
11163         Make the introduction less C-centric.
11164         (Guidelines, Test Functions): Move to...
11165         (Writing Test Programs): this new section.
11166         (Test Programs): Merge into...
11167         (Run Time): this.
11169 2002-10-27  Akim Demaille  <akim@epita.fr>
11171         * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
11172         autom4te.in that resulted in the need for two `make' runs.
11174 2002-10-27  Akim Demaille  <akim@epita.fr>
11176         * configure.ac: Bump to 2.54b.
11178 2002-10-25  Akim Demaille  <akim@epita.fr>
11180         Version 2.54a.
11182         * Makefile.maint: Update from the Coreutils.
11183         (AMTAR): Remove, obsolete.
11184         (automake_repo): Update to redhat.com.
11185         (cvs_file): New.
11186         Adjust to the fact that ansi2knr is now hosted by Automake.
11187         * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
11188         * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
11189         Update from masters.
11190         * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
11191         autoscan.pre is not to be installed, and autoscan.list is not to
11192         be shipped.
11193         (CLEANFILES): Add autoscan.list.
11194         (autoscan.list): Disable the cache.
11195         * bin/Makefile.am: Include freeze.mk.
11197 2002-10-25  Akim Demaille  <akim@epita.fr>
11199         * bin/autom4te.in (&load_configuration): Take the file as
11200         argument.
11201         (&parse_args): Handle -C, --cache.
11202         ($help): Adjust.
11203         (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
11204         * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
11205         * doc/autoconf.texi (Invoking autom4te): Document --cache.
11206         Now a subsection of...
11207         (Using autom4te): This new section.
11208         (Customizing autom4te): New.
11209         (autom4te.cache): Adjust.
11211 2002-10-25  Akim Demaille  <akim@epita.fr>
11213         * doc/autoconf.texi (Generic Headers): More information on how to
11214         use AC_CHECK_HEADERS.
11216 2002-10-25  Akim Demaille  <akim@epita.fr>
11218         * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
11219         Space changes.
11221 2002-10-25  Akim Demaille  <akim@epita.fr>
11223         * bin/autoscan.in (output): Output AC_PREREQ.
11224         (%needed_macros): Add AC_PREREQ so that configure.ac without one
11225         be reported.
11227 2002-10-23  Akim Demaille  <akim@epita.fr>
11229         * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
11230         document _Bool.
11232 2002-10-23  Akim Demaille  <akim@epita.fr>
11234         * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
11235         Reported by Peter Eisentraut.
11237 2002-10-23  Akim Demaille  <akim@epita.fr>
11239         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
11240         type _Bool.
11241         Fix a typo.
11242         * doc/autoconf.texi (Particular Headers): Adjust according to Paul
11243         Eggert's recommandations.
11245 2002-10-22  Akim Demaille  <akim@epita.fr>
11247         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
11248         Bison, by Paul Eggert.
11249         * doc/autoconf.texi (Particular Headers): Document it.
11251 2002-10-22  Aaron M. Ucko  <amu@alum.mit.edu>
11253         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
11254         `$ac_configure_args'.
11256 2002-10-22  Akim Demaille  <akim@epita.fr>
11258         * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
11259         (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
11260         From Art Haas.
11262 2002-10-22  Akim Demaille  <akim@epita.fr>
11264         Restore the 2002-10-11  Akim Demaille  <akim@epita.fr> patch:
11266         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
11267         (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
11268         (_AC_CHECK_HEADER_NEW): Rename as...
11269         (AC_CHECK_HEADER): this.
11271 2002-10-22  Akim Demaille  <akim@epita.fr>
11273         * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
11274         words about HP-UX cmp: it was actually a user-written cmp.
11276 2002-10-22  Akim Demaille  <akim@epita.fr>
11278         * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
11279         are a few warnings.
11280         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
11281         Quote for Perl '' strings, not "".
11282         * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
11283         strings.
11285 2002-10-22  Akim Demaille  <akim@epita.fr>
11287         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
11288         characters is a syntax warning now.
11289         (_AS_QUOTE): Accept $2 as list of characters to quote.
11290         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
11291         Quote for Perl, not sh.
11292         * bin/autoheader.in: When $debug, report the file which is
11293         `do'ne.
11294         * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
11295         `@', to tickle Perl's lists.
11296         Reported by Carlos Velasco.
11298 2002-10-18  Akim Demaille  <akim@epita.fr>
11300         * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
11301         missing included files _are_ errors.
11302         Thanks to Alexandre Duret-Lutz.
11303         * tests/tools.at (autom4te cache): Adjust.
11304         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
11305         (AT_CHECK_M4SUGAR): Use it.
11306         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
11307         Adjust.
11308         * tests/tools.at (autom4te): Now it does exit 1.
11310 2002-10-17  Akim Demaille  <akim@epita.fr>
11312         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
11313         Fixes the `AC_ARG_VAR' test failures.
11314         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
11315         * lib/freeze.mk (check-forbidden-patterns): New.
11316         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
11317         * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
11318         * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
11319         /dev/null.
11320         Reported months ago by H. Merijn Brand.
11322 2002-10-17  Akim Demaille  <akim@epita.fr>
11324         * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
11326 2002-10-16  Paul Eggert  <eggert@twinsun.com>
11328         * Makefile.maint (wget_files): Remove ansi2knr.c.
11329         (ansi2knr.c-url_prefix): Remove.
11331 2002-10-16  Akim Demaille  <akim@epita.fr>
11333         Because of caching, some files that no longer exist and are no
11334         longer required can still cause errors.
11335         Reported by Alexandre Duret-Lutz.
11337         * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
11338         to frozen files in @ARGV, as @ARGV must remain being a list of
11339         files.  Rather, at M4 call sites, use this...
11340         (&files_to_options): New function.
11341         (&freeze): Use &error.
11342         (&up_to_date): If a file that was included according to the cache
11343         is no longer there, then the output is out dated.
11344         (&main): Don't even check whether a file is up to date is anyway
11345         --force is given.
11346         * tests/tools.at (autom4te cache): New.
11348 2002-10-16  Akim Demaille  <akim@epita.fr>
11350         * bin/autoconf.as: Kill dead options.
11351         * bin/autoupdate.in (&parse_args): Kill old options.
11352         * bin/autoreconf.in (&parse_args): Remove dead options.
11353         Factor some code.
11354         (&autoreconf): Report the directories we enter *and leave*, so
11355         that error messages can be easily located, and use GNU Make
11356         format, so that Emacs' compile mode understands us.
11357         * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
11358         if some file was changed instead of `print'.
11359         * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
11360         (&parse_args): Remove the dead options.
11361         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
11362         autoheader's quiet mode.
11363         (AT_CHECK_AUTOUPDATE): Likewise.
11364         * tests/tools.at (autoupdate): Adjust.
11365         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
11367 2002-10-11  Akim Demaille  <akim@epita.fr>
11369         No longer use CPP to check for the existing of headers: use CC to
11370         check for compilability.
11372         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
11373         (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
11374         (_AC_CHECK_HEADER_NEW): Rename as...
11375         (AC_CHECK_HEADER): this.
11377         * lib/autotest/general.m4 (AT_INIT): Include the failed test
11378         numbers in the Subject suggestion.
11380 2002-10-11  Akim Demaille  <akim@epita.fr>
11382         * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
11383         Suggest using AC_CHECK_DECLS instead.
11385 2002-10-11  Akim Demaille  <akim@epita.fr>
11387         * tests/torture.at (AC_ARG_VAR): Have configure report the value
11388         of `precious'.
11390 2002-10-11  Akim Demaille  <akim@epita.fr>
11392         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
11393         file name to enable parallel executions.
11394         From Sam Varshavchik.
11396 2002-10-08  Akim Demaille  <akim@epita.fr>
11398         * bin/autoreconf.in (&autoreconf): Run autopoint before the first
11399         aclocal invocation, as Gettext macros might not be visible to
11400         aclocal.
11401         Instead of blindly running autopoint, scan configure.ac (not the
11402         traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
11403         Reported by Paul D. Smith.
11405 2002-10-08  Paul Eggert  <eggert@twinsun.com>
11407         Work around problems found when POSIXLY_CORRECT=1 is set.
11408         None of this seems to have anything to do with POSIX, really,
11409         but it's how Perl getopt works.
11410         * bin/autom4te.in (parse_args): Configure GetOpt with
11411         "permute", too.
11412         * doc/autoconf.texi (Invoking autom4te):
11413         --warning -> --warnings.
11414         * lib/autom4te.in: --warning -> --warnings.
11416 2002-09-28  Akim Demaille  <akim@epita.fr>
11418         * doc/autoconf.texi (autom4te.cache): New section.
11420 2002-09-28  Akim Demaille  <akim@epita.fr>
11422         * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
11423         (Automake-preselections): Update.
11424         * bin/autoreconf.in, bin/autoheader.in: Comment changes.
11426 2002-09-28  Akim Demaille  <akim@epita.fr>
11428         * lib/autoscan/autoscan.pre: Move all the remaining rules to...
11429         * lib/autoconf/c.m4, lib/autoconf/functions.m4,
11430         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
11431         * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
11433 2002-09-28  Akim Demaille  <akim@epita.fr>
11435         * tests/torture.at (Configuring subdirectories): Be robust to
11436         users who use config.site to require for a cache: in this case,
11437         the two last configure runs, using two different sets of
11438         arguments, trigger a legitimate error.
11440 2002-09-28  Akim Demaille  <akim@epita.fr>
11442         * tests/m4sh.at (Functions Support, Functions and return Support):
11443         New.
11445 2002-09-28  Akim Demaille  <akim@epita.fr>
11447         * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
11448         autoheader are Perl programs.
11449         (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
11450         (autom4te): Specify that the sources are in the $srcdir.
11451         * doc/autoconf.texi (Installation Directory Variables): Adjust.
11453 2002-09-28  Akim Demaille  <akim@epita.fr>
11455         * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
11456         (tm_zone): Move their rules to...
11457         * lib/autoconf/types.m4: here, using AN_ macros.
11458         * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
11459         (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
11460         (make, mawk, nawk, ranlib, yacc): Similarly, move to...
11461         * lib/autoconf/programs.m4: here.
11462         * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
11463         (ETAGS_FOR_AUTOCONF): New.
11464         Use it.
11466 2002-09-28  Akim Demaille  <akim@epita.fr>
11468         * lib/autoconf/autoscan.m4: New file.
11469         * lib/autoconf/autoconf.m4: Include it.
11470         * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
11471         that were listed in the original autoscan.list.
11472         * lib/autoconf/headers.m4: Similarly with headers.
11473         * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
11474         (.m4.m4f): Don't pass --prepend-include, since that's done by
11475         tests/autom4te itself.
11476         * lib/autoscan/Makefile.am: Include freeze.mk.
11477         (autoscan.list): New target --this file is no longer a source.
11478         (autoscan.pre): New file.
11480 2002-09-28  Akim Demaille  <akim@epita.fr>
11482         * bin/autoscan.in (@kinds): Make them singular.
11483         Adjust all uses.
11484         (&init_tables): When --debug, report the list of rules to ease
11485         tracking changes in autoscan.list.
11486         * lib/autoscan/autoscan.list (function): Strip comments, sort.
11488 2002-09-28  Akim Demaille  <akim@epita.fr>
11490         * lib/autoscan/functions, lib/autoscan/headers,
11491         * lib/autoscan/identifiers, lib/autoscan/makevars,
11492         * lib/autoscan/programs: Merge into...
11493         * lib/autoscan/autoscan.list: this.
11494         * bin/autoscan.in (&init_tables): Adjust.
11496 2002-09-28  Akim Demaille  <akim@epita.fr>
11498         * lib/autoscan/functions, lib/autoscan/headers,
11499         * lib/autoscan/identifiers, lib/autoscan/makevars,
11500         * lib/autoscan/programs: Make the `kind' explicit, i.e., each
11501         `functions' line is now prefixed with `function:'.
11502         * bin/autoscan.in (&init_tables): Adjust.
11504 2002-09-28  Akim Demaille  <akim@epita.fr>
11506         From now on, autoscan files must always map a macro name to a
11507         word: there is no `default' macro for autoscan.
11509         * bin/autoscan.in (&init_tables): Reject entries with no macro at
11510         all.
11511         * lib/autoscan/functions, lib/autoscan/headers: Make the macro
11512         explicit.
11514 2002-09-28  Akim Demaille  <akim@epita.fr>
11516         * bin/autoscan.in (%c_keywords): Remove.
11517         (&used): Keep only track of the words we might be interested in.
11518         (&output_kind): It is no longer needed to look for non active
11519         checks.
11521 2002-09-27  Akim Demaille  <akim@epita.fr>
11523         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
11524         jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
11525         * lib/autoscan/functions: Adjust.
11526         * doc/autoconf.texi (Particular Functions): Adjust.
11528 2002-09-27  Akim Demaille  <akim@epita.fr>
11530         * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
11531         from /tmp.
11532         Thanks to Bill Moseley and Paul Eggert.
11533         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
11534         the tmpdir must be created.
11535         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
11536         dir be in the build tree, instead of $TMPDIR.
11538 2002-09-27  Akim Demaille  <akim@epita.fr>
11540         * bin/autoscan.in: Improve the comments.
11541         (&parse_args): Drop obsolete undocumented options.
11542         (&output_kind): Output warnings.
11543         * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
11544         (getwd): Trigger a warning.
11546 2002-09-26  Akim Demaille  <akim@epita.fr>
11548         * bin/autoreconf.in: Clarify that -s is meaningless without -i.
11549         Reported by Ralf Corsepius.
11550         * doc/autoconf.texi (autoreconf Invocation): Likewise.
11552 2002-09-26  Akim Demaille  <akim@epita.fr>
11554         Single suffix rules and seperated dependencies are not portable.
11556         * doc/autoconf.texi (Installation Directory Variables): Update.
11557         (Limitations of Make): Some about `Single Suffix Rules and
11558         Separated Dependencies'.
11559         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
11560         (ifnames, autoscan, autom4te): Un-factor into several rules.
11562 2002-09-25  Paul Eggert  <eggert@twinsun.com>
11564         * BUGS (Interoperability bugs): New section.  Mention libtool
11565         1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
11567 2002-09-24  Paul Eggert  <eggert@twinsun.com>
11569         Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
11570         make handles suffix-rules differently from GNU make.
11572         * bin/Makefile.am (SUFFIXES, .in): Remove.
11573         (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
11574         Move the body of the old .in rule here.
11576 2002-09-16  Akim Demaille  <akim@epita.fr>
11578         i960 compilers create `b.out' files by default.
11579         Reported by Ralf Corsepius.
11581         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
11582         (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
11584 2002-09-13  Paul Eggert  <eggert@twinsun.com>
11586         * doc/autoconf.texi (Particular Headers): Remove obsolete
11587         reference to `struct timezone' in the description of
11588         AC_HEADER_TIME.
11590 2002-09-13  Akim Demaille  <akim@epita.fr>
11592         Version 2.54.
11594         * config/config.sub, config/config.guess: Update.
11595         * Makefile.maint: Update from bits of the Coreutils 4.5.1.
11596         * Makefile.am: Adjust.
11598 2002-09-13  Akim Demaille  <akim@epita.fr>
11600         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
11601         reading config.log when the compiler is rejected.
11602         Suggested by Guido Draheim.
11604 2002-09-13  Akim Demaille  <akim@epita.fr>
11606         * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
11607         (chdir_init) might hang when stat'ing mounted directories.
11608         Reported by Vance Shipley.
11610 2002-09-12  Akim Demaille  <akim@epita.fr>
11612         * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
11613         the lists.
11615 2002-09-12  Akim Demaille  <akim@epita.fr>
11617         * doc/autoconf.texi (Defining Symbols): Present two different
11618         prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
11619         difference between 1 argument calls, and 2-3 argument calls.
11621 2002-09-12  Peter Eisentraut  <peter_e@gmx.net>
11623         * doc/autoconf.texi: Review grammar and punctuation.
11625 2002-09-11  Paul Eggert  <eggert@twinsun.com>
11627         * doc/autoconf.texi: Fix minor formatting, spelling, and
11628         grammatical typos.
11629         (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
11630         AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
11631         is obsolescent.
11633 2002-09-11  Akim Demaille  <akim@epita.fr>
11635         * doc/autoconf.texi (Questions): Rename as...
11636         (FAQ): this.
11637         (Defining Directories): New.
11639 2002-09-09  Akim Demaille  <akim@epita.fr>
11641         * doc/autoconf.texi (Making testsuite Scripts): Update.
11642         Suggested by Nishio Futoshi.
11644 2002-09-09  Koji Arai  <JCA02266@nifty.ne.jp>
11646         * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
11647         plain `@' is wanted.
11649 2002-09-09  Akim Demaille  <akim@epita.fr>
11651         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
11652         `duplicates', since the algorithm was too naive and could keep
11653         `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
11654         keep `--prefix foo --prefix bar' as `--prefix foo bar'.
11655         Reported by Ralf Corsepius.
11656         * tests/torture.at (Configuring subdirectories): Exercise these
11657         cases.
11659 2002-09-09  Akim Demaille  <akim@epita.fr>
11661         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
11662         looking for a replacement file.
11663         * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
11664         directory is relative.
11665         * doc/autoconf.texi (Generic Functions): Clarify the replacement
11666         directory definition.
11667         Reported by Andreas Schwab and Jim Meyering.
11669 2002-09-06  Akim Demaille  <akim@epita.fr>
11671         * doc/autoconf.texi (Setting Output Variables): Clarify what
11672         precious variables are.
11673         Suggested by Pontus Skoeld.
11675 2002-09-05  Akim Demaille  <akim@epita.fr>
11677         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
11678         (ifnames, autoscan, autom4te): Since we don't only depend on
11679         configure.ac variables (such as VERSION etc.), but also on prefix
11680         and so forth, depend on Makefile, not configure.ac.
11681         Reported by Alexandre Duret-Lutz.
11682         * doc/autoconf.texi (Installation Directory Variables): Adjust.
11684 2002-09-05  Kevin Ryde  <user42@zip.com.au>
11686         * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
11687         doesn't seem to be confined to ia64, just say "some versions".
11689 2002-09-04  Akim Demaille  <akim@epita.fr>
11691         * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
11692         Automake 1.6c.
11693         * Makefile.am (maintainer-clean-local): Remove.
11694         (MAINTAINERCLEANFILES): Remove COPYING.
11696 2002-09-03  Paul Eggert  <eggert@twinsun.com>
11698         * doc/autoconf.texi (Configuration Commands): Remove obsolete
11699         example for AC_CONFIG_COMMANDS_PRE.  Problem reported by Marcus
11700         Brinkmann.
11702 2002-09-03  Akim Demaille  <akim@epita.fr>
11704         * configure.ac: Bump to 2.53d.
11705         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
11706         as of today, on Automake's team suggestion.
11708 2002-09-03  Akim Demaille  <akim@epita.fr>
11710         Version 2.53c.
11712 2002-09-02  Akim Demaille  <akim@epita.fr>
11714         * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
11715         SITE_MACRO_DIR.
11716         * configure.ac: Disable SITE_MACRO_DIR.
11718 2002-09-02  Jim Meyering  <meyering@lucent.com>
11720         * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
11721         i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
11722         Also, tweak grammar: s/make sure to/be sure to/.
11724 2002-09-02  Paul Eggert  <eggert@twinsun.com>
11726         * doc/autoconf.texi (Limitations of Builtins): Explain why logical
11727         directory names are generally preferable to physical names.
11729 2002-09-02  Akim Demaille  <akim@epita.fr>
11731         * lib/Autom4te/General.pm (&update_file): s/die/error/.
11732         Reported by Raja R. Harinath.
11733         * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
11734         * bin/autoupdate.in: Use error instead of die.
11736 2002-09-01  Paul Eggert  <eggert@twinsun.com>
11738         * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
11739         ordinary shell concatenation rather than echo+tr+sed command that
11740         runs afoul of a long-line-related sed bug in Solaris 8.
11742         * bin/autoheader.in (parse_args): --warning -> --warnings.
11744         * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
11745         stdout, as traditional "ls" does.
11746         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
11747         _AC_COMPILER_EXEEXT_O): Likewise.
11748         * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
11750         * bin/autoconf.as: Add --prepend-include option.  This patch was
11751         applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
11752         but bin/autoconf.in is generated automatically from bin/autoconf.as.
11754         * bin/autoconf.in, configure: Regenerate.
11756         * doc/autoconf.texi (Special Shell Variables): Mention
11757         ENV, MAIL, MAILPATH, PS1, PS2, PS4.  Index PWD.
11759         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
11760         MAILPATH and set PS1, PS2, PS4 to default values, to work
11761         around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
11762         For LC_ALL etc, first try to set to "C" as POSIX requires and as
11763         the Autoconf documentation specifies; fall back to "unset" only if
11764         this fails.  Use a shell for-loop for this rather than an m4 loop,
11765         to shorten the output script.
11767 2002-08-30  Paul Eggert  <eggert@twinsun.com>
11769         * doc/autoconf.texi (Special Shell Variables): Mention POSIX
11770         1003.1-2001's requirements for CDPATH.  Give a simpler workaround
11771         for the CDPATH problem.  Document PWD.
11772         (Limitations of Builtins): Document the problem that "cd $foo" and
11773         "ls $foo" may refer to different directories in shells conforming
11774         to POSIX 1003.1-2001.  Use PS1 rather than CDPATH for "unset"
11775         example, since the old example is now out of date.
11777         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
11778         FOO" and "ls FOO" talk about different directories; this catches
11779         problems when POSIX 1003.1-2001 "cd" fails due to symlink
11780         spaghetti.
11782         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
11783         of rolling our own unset.
11784         (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
11785         in practice we needn't worry about CDPATH if unset doesn't work.
11787         * Makefile.in, aclocal.m4, bin/Makefile.in,
11788         config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
11789         lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
11790         lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
11791         lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
11792         tests/Makefile.in: Regenerate with Automake 1.6.3.
11794         * config/config.guess, config/config.sub, config/mkinstalldirs:
11795         Update.
11797         * configure: Regenerate with self.
11799 2002-08-30  Kevin Ryde  <user42@zip.com.au>
11801         * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
11802         default output.
11804 2002-08-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11806         * bin/autom4te.in (Request::load): Correctly test for "do" read
11807         failure.
11809 2002-08-29  Akim Demaille  <akim@epita.fr>
11811         * lib/Autom4te/General.pm (&xqx): New.
11812         (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
11813         hand, which is not portable.
11814         (&error): New.
11815         * bin/autom4te.in: Use them.
11816         Use &error instead of die.
11817         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
11818         Adjust.
11820 2002-08-17  Paul Eggert  <eggert@twinsun.com>
11822         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
11823         default list of compilers to try, since it was long ago superseded
11824         by the ksh fc builtin.  Suggested by Steven G. Johnson.
11826 2002-07-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
11828         * doc/autoconf.texi (Invoking autom4te): End the option table,
11829         fixing a bug introduced by the previous patch.
11830         (Limitations of Make): Add a 'target lookup' subentry in the
11831         'VPATH' entry.  Rewrite all `make' occurences as `@command{make}'.
11833 2002-07-29  Mark D. Roth  <roth@feep.net>
11835         * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
11836         options and use $AUTOM4TE_PATH.
11837         * doc/autoconf.texi: Remove documentation of autom4te
11838         --include-envvar and --site-macro-subdir options and document
11839         use of $AUTOM4TE_PATH.
11840         * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
11841         arguments from each language section.
11843 2002-07-29  Paul Eggert  <eggert@twinsun.com>
11845         * doc/install.texi: Include copyright symbol in copyright notice.
11847         * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
11848         Replace with:
11849         (AM_MAKEINFOFLAGS): New macro.
11850         * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
11851         * Makefile.am (INSTALL): Use the new macros.
11852         Use -o rather than --output, since "missing" does not grok --output.
11854 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
11856         * doc/autoconf.texi (Limitations of Make): Escaped newlines in
11857         comments do not always work. Never trust the exit status of
11858         `make -k'.
11860 2002-07-24  Kevin Ryde  <user42@zip.com.au>
11862         * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
11863         Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
11865 2002-07-23  Paul Eggert  <eggert@twinsun.com>
11867         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
11868         Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
11869         apparently treats PATH="nonexistent" as if it contained ".".
11870         Bug reported by Stefan `Sec' Zehl.
11872 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
11874         * doc/autoconf.texi (Limitations of Make): Mention the special
11875         handling of the obj/ directory by BSD make.
11877 2002-07-20  Kevin Ryde  <user42@zip.com.au>
11879         * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
11880         backslashes.
11882 2002-07-19  Akim Demaille  <akim@epita.fr>
11884         * doc/autoconf.texi (Function Portability): `exit'.
11885         (Programming in M4sh): Ethymology of M4sh.
11887 2002-07-19  Akim Demaille  <akim@epita.fr>
11889         * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
11891 2002-07-18  Akim Demaille  <akim@epita.fr>
11893         Version 2.53b.
11895 2002-07-18  Akim Demaille  <akim@epita.fr>
11897         * config/config.guess, config/config.sub: Update.
11899 2002-07-18  Akim Demaille  <akim@epita.fr>
11901         Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
11902         Automake's parts.
11904         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
11905         * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
11906         * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
11908 2002-07-18  Akim Demaille  <akim@epita.fr>,
11909             Alexandre Duret-Lutz  <duret_g@epita.fr>
11911         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
11912         _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
11914 2002-07-17  Russ Allbery  <rra@stanford.edu>
11916         * doc/autoconf.texi (Initializing configure): Clarify the
11917         description of the tarname default.
11919 2002-07-17  Andreas Buening  <andreas.buening@nexgo.de>
11921         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
11922         ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
11923         latter was not run.
11925 2002-07-17  Akim Demaille  <akim@epita.fr>
11927         * lib/Autom4te/General.pm (find_file): Browse the directories in
11928         the order they are given.
11930 2002-07-17  Akim Demaille  <akim@epita.fr>
11932         * tests/wrapsh.as, tests/wrappl.as: Merge into...
11933         * tests/wrapper.as: this.
11934         * tests/Makefile.am, configure.ac: Adjust.
11936 2002-07-17  Mark D. Roth  <roth@feep.net>
11938         * configure.ac: Add --enable-site-macro-dir option.
11939         * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
11940         * bin/autom4te.in: Add --prepend-include, --include-envvar, and
11941         --site-macro-subdir options.
11942         * bin/autoconf.in: Add --prepend-include option.
11943         * bin/autoheader.in: Add --prepend-include option.
11944         * bin/autoreconf.in: Add --prepend-include option.
11945         * bin/autoscan.in: Add --prepend-include option.
11946         * bin/autoupdate.in: Add --prepend-include option.
11947         * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
11948         macro directory, remove note that include path directories are
11949         used in reverse order, and document --prepend-include option.
11950         * lib/autom4te.in: Use --prepend-include instead of --include.
11951         * tests/wrapsh.in: Use --prepend-include instead of --include.
11953 2002-07-17  Akim Demaille  <akim@epita.fr>
11955         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
11956         tarnames.
11957         * doc/autoconf.texi (Initializing configure): Adjust.
11959 2002-07-17  Akim Demaille  <akim@epita.fr>
11961         * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
11962         (_AC_FUNC_MALLOC): New.
11963         (AC_FUNC_MALLOC): Use the latter.
11964         Define HAVE_MALLOC to 0 if broken.
11965         * doc/autoconf.texi (Particular Functions): Adjust.
11967 2002-07-16  Akim Demaille  <akim@epita.fr>
11969         * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
11970         * doc/autoconf.texi (C Compiler): Adjust.
11972 2002-07-09  Akim Demaille  <akim@epita.fr>
11974         * doc/autoconf.texi: Properly set the ``header'' part.
11976 2002-07-09  Akim Demaille  <akim@epita.fr>
11978         * doc/autoconf.texi (Systemology): Some about Darwin.
11980 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
11982         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
11983         Don't use AC_REQUIRE in AU_DEFUN.
11985 2002-07-09  Art Haas  <ahaas@neosoft.com>
11987         * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
11989 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
11991         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
11992         bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
11993         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
11994         so that Emacs setups GNU style for perl-mode and cperl-mode.
11996 2002-06-27  Paul Eggert  <eggert@twinsun.com>
11998         * config/install-sh: Quote $src.  Prefer || to test's -o option,
11999         as per "Limitations of Builtins".
12000         * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
12001         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
12003         * tests/mktests.sh: Use grep instead of fgrep, as per
12004         "Limitations of Builtins".
12006 2002-06-15  Paul Eggert  <eggert@twinsun.com>
12008         * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
12009         autom4te_perllibdir): Set to top build dir or src dir as appropriate,
12010         so that we consistently test the just-built programs.
12011         * tests/wrappl.as: Likewise.
12013 2002-06-12  Paul Eggert  <eggert@twinsun.com>
12015         * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
12016         name, so that symlinks to 'autoconf' work properly.  Bug reported
12017         by Bruno Haible.
12018         * bin/autoheader.in (AUTOM4TE): Likewise.
12019         * bin/autoreconf.in (autoconf, autoheader): Likewise.
12020         * bin/autoscan.in (autom4te): Likewise.
12021         * bin/autoupdate.in (autom4te): Likewise.
12023         * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
12024         btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
12025         on Solaris 2.5.1.
12027 2002-06-11  Andreas Schwab  <schwab@suse.de>
12029         * doc/autoconf.texi: Add more dir entries.
12031 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
12033         * bin/autom4te.in ($cache): Don't define using `$me', the name
12034         of the cache should not depend on the name under which autom4te
12035         was installed.
12037 2002-06-07  Akim Demaille  <akim@epita.fr>
12039         * tests/tools.at (autoconf: forbidden tokens, basic)
12040         (autoconf: forbidden tokens, exceptions): Adjust to the change of
12041         words in autom4te.in.
12043 2002-06-07  Peter Eisentraut  <peter_e@gmx.net>
12045         * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
12046         _AC_LANG_PROGRAM_C_F77_HOOKS.
12048 2002-06-07  Akim Demaille  <akim@epita.fr>
12050         * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
12051         rename as...
12052         (AC_REPLACE_FNMATCH): this.
12053         * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
12054         AC_FUNC_FNMATCH_GNU.
12056 2002-06-07  Akim Demaille  <akim@epita.fr>
12058         * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
12059         Rosetta Stone for Unix.
12061 2002-06-07  Akim Demaille  <akim@epita.fr>
12063         * bin/autom4te.in (warn_forbidden): When rejecting a token,
12064         suggest m4_pattern_allow.
12065         Suggested by Adam J. Richter.
12067 2002-06-07  Akim Demaille  <akim@epita.fr>
12069         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
12070         ac_config_libobj_dir.
12071         (AC_CONFIG_LIBOBJ_DIR): New.
12072         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
12073         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
12074         Use ac_config_libobj_dir to find the replacement files.
12075         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
12076         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
12077         (AC_REPLACE_FNMATCH_GNU): these.
12078         (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
12079         * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
12080         * tests/mktests.sh (ac_exclude_list): Don't check
12081         AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
12083 2002-06-06  Paul Eggert  <eggert@twinsun.com>
12085         * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
12086         if ln doesn't work.
12087         * NEWS: Likewise.
12088         * doc/autoconf.texi (Configuration Links): Likewise.
12089         (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
12091 2002-06-05  Paul Eggert  <eggert@twinsun.com>
12093         * config/config.guess, config/config.sub, config/texinfo.tex:
12094         Update from masters.
12096 2002-05-29  Paul Eggert  <eggert@twinsun.com>
12098         * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
12099         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
12100         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
12101         Likewise.
12102         * lib/autoconf/Makefile.am (check-local): Likewise.
12103         * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
12104         * lib/autoconf/types.m4 (commentary only): Likewise.
12105         * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
12106         * lib/autotest/Makefile.am (check-local): Likewise.
12107         * lib/m4sugar/Makefile.am (check-local): Likewise.
12108         * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
12109         * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
12111         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
12112         * doc/autoconf.texi (Particular Programs): Document them.
12113         (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
12114         * NEWS: Likewise.
12116 2002-05-27  Paul Eggert  <eggert@twinsun.com>
12118         * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
12119         * NEWS, doc/autoconf.texi (Particular Types): Document it.
12120         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
12121         instead of AC_MBSTATE_T, which never existed.
12123 2002-05-23  Akim Demaille  <akim@epita.fr>
12125         * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
12126         version of Autoconf that is discussed.
12128 2002-05-22  Paul Eggert  <eggert@twinsun.com>
12130         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
12131         from the default list of compilers to try.  Suggested by
12132         Kate Hedstrom.
12133         * NEWS: Document the above.
12134         * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
12136 2002-05-17  Paul Eggert  <eggert@twinsun.com>
12138         * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
12139         the member is itself an aggregate.  Bug reported by Sergey Poznyakoff.
12140         This improves on an earlier suggestion by H. Peter Anvin.
12142 2002-05-16  Paul Eggert  <eggert@twinsun.com>
12144         AC_FUNC_FNMATCH now tests only for POSIX compatibility.
12145         AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
12146         Both macros now accept an optional source-dir arg.
12147         New macro AC_GNU_SOURCE to define _GNU_SOURCE.
12149         * NEWS: Document this.
12150         * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
12152         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
12153         (AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
12154         not for GNU extensions; this undoes part of the 2000-11-03 change,
12155         reverting to 2.13-compatible behavior.
12156         Add new optional argument DIR.
12157         (AC_FUNC_FNMATCH_GNU): New macro.
12159         * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
12161 2002-05-08  Paul Eggert  <eggert@twinsun.com>
12163         * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
12164         Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
12165         and it causes a 'test' syntax error if it fails.
12166         Bug reported by Stephen Gildea.
12168         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
12169         If prototypes are supported, use them to check this at compile-time,
12170         instead of trying to check it at run-time.  If we must do a run-time
12171         check, assume that setvbuf is standard when cross-compiling, as
12172         nonstandard setvbuf occurs only on ancient and unlikely hosts.
12173         Bug reported by Paul D. Smith.
12175         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
12176         argument specifying location of getloadavg.c.  This removes a
12177         FIXME.  This idea was taken from Jim Meyering's implementation in
12178         textutils.
12179         * doc/autoconf.texi (Particular Functions): Document this.
12180         Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
12181         that's what the code does; this fixes a bug reported by
12182         Paul D. Smith.
12184 2002-05-03  Akim Demaille  <akim@epita.fr>
12186         * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
12187         autopoint instead of gettextize.
12188         ($uses_alocal): Rename as...
12189         ($uses_aclocal): this.
12190         * doc/autoconf.texi (autoreconf Invocation): Adjust.
12191         Suggested by Bruno Haible.
12193 2002-05-03  Akim Demaille  <akim@epita.fr>
12195         * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
12197 2002-04-29  Paul Eggert  <eggert@twinsun.com>
12199         * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
12200         files to be 1 second older; just set them to be the same time.
12201         Also, sleep 1 second after the first aclocal, to work around
12202         problems with sub-second time stamps on the input files.
12204 2002-04-29  Thien-Thi Nguyen  <ttn@gnu.org>
12206         * doc/autoconf.texi: Mention "set -e -x" lossage
12207         under node "Limitations of Builtins".
12209 2002-04-29  Akim Demaille  <akim@epita.fr>
12211         * doc/install.texi: Better wording for setting variables when
12212         running configure.
12213         From Christian Cornelssen.
12215 2002-04-29  Akim Demaille  <akim@epita.fr>
12217         * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
12218         of lack of $LINENO support, then the test will compare the $LINENO
12219         in testsuite vs. the lineno in the test file.  This is wrong, of
12220         course.
12221         Be sure to protect it.
12222         Reported by Patrick Welche.
12224 2002-04-25  Akim Demaille  <akim@epita.fr>
12226         * doc/autoconf.texi (Obsolete Macros): Typo.
12227         Reported by Vladimir Volovich.
12229 2002-04-25  Akim Demaille  <akim@epita.fr>
12231         * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
12232         than some of the input files, hence, on the second run of aclocal,
12233         if some of its input are younger, make them older.
12234         Suggested by Paul Eggert.
12236 2002-04-25  Akim Demaille  <akim@epita.fr>
12238         * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
12239         Thanks to Paul Eggert.
12241 2002-04-25  Akim Demaille  <akim@epita.fr>
12243         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
12244         and ac_subst_vars be sh variables containing the list of
12245         AC_SUBST_FILES'ed and AC_SUBST'ed identifiers.  Output them in the
12246         DEFAULT diversion.
12247         (_AC_INIT_PREPARE): Use them to log them.
12248         (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
12249         (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
12250         _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
12251         _AC_SUBST_FILES and _AC_SUBST_VARS.
12252         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
12254 2002-04-24  Akim Demaille  <akim@epita.fr>
12256         * bin/autoreconf.in (autoreconf): Run automake after autoconf and
12257         autoheader, so that automake does not complain about a missing
12258         config.h.in that was to be created.
12260 2002-04-23  Akim Demaille  <akim@epita.fr>
12262         * bin/autoheader.in (parse_args): --warning takes an argument.
12263         Fixes PR/220.
12265 2002-04-22  Peter Eisentraut  <peter_e@gmx.net>
12267         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
12268         and bb.out when cleaning up.
12270 2002-04-22  Akim Demaille  <akim@epita.fr>
12272         Version 2.53a.
12274 2002-04-22  Akim Demaille  <akim@epita.fr>
12276         * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
12278 2002-04-22  Akim Demaille  <akim@epita.fr>
12280         * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
12281         comma.
12282         Reported by Gregory Giannoni.
12284 2002-04-22  Akim Demaille  <akim@epita.fr>
12286         * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
12287         Fixes false failures on Darwin.
12289 2002-04-21  Paul Eggert  <eggert@twinsun.com>
12291         * TODO, bin/autoupdate.in, doc/autoconf.texi,
12292         lib/autoconf/general.m4, lib/autoconf/libs.m4,
12293         lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
12294         tests/tools.at: Minor spelling and grammar fixes.
12296 2002-04-20  Paul Eggert  <eggert@twinsun.com>
12298         * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
12299         ZSH_VERSION fixes.  Bug reported by Raja R Harinath.
12300         * lib/autotest/general.m4 (AT_INIT): Likewise.
12301         * tests/atgeneral.m4 (AT_INIT): Likewise.
12303 2002-04-19  Paul Eggert  <eggert@twinsun.com>
12305         * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
12306         doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
12307         lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
12308         lib/autoconf/functions.m4, lib/autoconf/general.m4,
12309         lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
12310         lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
12311         tests/atspecific.m4, tests/semantics.at, tests/torture.at:
12312         Minor spelling and grammar fixes.
12314         * doc/autoconf.texi: Follow the outline suggested in the GNU
12315         Sample Texts sections of the Texinfo 4.2 manual.  Most
12316         importantly, this makes sure that the copyright notices appear in
12317         all output formats.  You probably need Texinfo 4.2 to generate
12318         the manual now.
12320         Fix some bugs when using "$@" when there might be zero positional
12321         arguments in cases where this matters.
12323         * bin/autoconf.as: Rewrite so that the problem does not come up.
12324         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
12325         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
12326         * lib/autotest/general.m4 (AT_INIT): Likewise.
12328         * bin/autoheader.in: Use 'case' statement to work around problem.
12329         * bin/auto4mte.in: Likewise.
12330         * bin/autoreconf.in: Likewise.
12331         * bin/autoscan.in: Likewise.
12332         * bin/autoupdate.in: Likewise.
12333         * bin/ifnames.in: Likewise.
12335         * doc/autoconf.texi (Shell Substitutions): Document the problem.
12337         * lib/autotest/general.m4 (AT_INIT):
12338         Use Zsh alias to work around problem.
12339         * tests/atgeneral.m4 (AT_INIT): Likewise.
12341         * tests/c.at: We can't have zero arguments, so remove workaround
12342         that is not portable to Zsh.
12344 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
12346         * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
12347         from aclocal.m4 too.
12349 2002-04-12  Akim Demaille  <akim@epita.fr>
12351         * tests/wrappl.as: New, M4sh precursor of wrappl.in.
12353 2002-04-10  Akim Demaille  <akim@epita.fr>
12355         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
12356         workaround for ${1+"$@"}.
12357         * doc/autoconf.texi (Shell Substitutions): Explain it.
12358         From Oliver Kiddle and Peter Stephenson.
12360         Have M4sh perform minimal shell sanitizing.
12362         * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
12363         part into...
12364         (_AS_PREPARE): this new macro.
12365         (AS_PREPARE): New.
12366         (AS_INIT): Invoke AS_SHELL_SANITIZE.
12367         * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
12369         Adjust Autoconf and Autotest.
12371         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
12372         AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
12373         * lib/autotest/general.m4 (AT_INIT): Likewise.
12374         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
12375         Invoke _AS_PREPARE (not AS_PREPARE) in addition to
12376         AS_SHELL_SANITIZE.
12378         Use this M4sh to generate Autoconf's shell scripts.
12380         * tests/wrapsh.as: New, precursor of wrapsh.in.
12381         * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
12382         on Autotest and M4sh.
12383         ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
12384         (wrapsh.in): New target.
12385         * bin/autoconf.as: New, precursor of autoconf.in.
12386         (autoconf.in): New target.
12388 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
12390         * doc/autoconf.texi (Limitations of Make): Mention the issue
12391         with indented comments in rules.
12393 2002-04-09  Andreas Schwab  <schwab@suse.de>
12395         * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
12396         ac_top_builddir when setting ac_abs_top_builddir.
12398 2002-04-06  Kevin Ryde  <user42@zip.com.au>
12400         * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
12401         (Portable Shell): Cross reference to Systemology.
12403 2002-04-05  Akim Demaille  <akim@epita.fr>
12405         * bin/autoreconf.in (autoreconf): Be sure to accumulate the
12406         directories when descending in a SUBDIRS.
12407         Reported by Ezra Peisach.
12409 2002-04-04  Andreas Schwab  <schwab@suse.de>
12411         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
12412         contains no literal separators.
12414 2002-04-03  Akim Demaille  <akim@epita.fr>
12416         * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
12417         (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
12418         Use dnl, not the KILL diversion.
12419         Extracted from...
12420         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
12421         (AC_CONFIG_LINKS): here.
12422         Adjust.
12423         Don't use the KILL diversion, as it kills spurious output, which
12424         results in failures being hidden.
12425         Use m4_defn where appropriate.
12426         (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
12427         after the second argument.
12428         Use m4_defn.
12429         * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
12430         syntax, as it is provided by M4sugar.
12431         * tests/torture.at (Multiple AC_CONFIG_FILES): New.
12433 2002-04-03  Andreas Schwab  <schwab@suse.de>
12435         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
12436         expanded if $# <= 2.
12438         * bin/autoreconf.in (autoreconf): Run automake after rerunning
12439         aclocal.
12441 2002-04-03  Akim Demaille  <akim@epita.fr>
12443         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
12444         (_AC_COMPILER_EXEEXT_REJECT): New.
12445         Also recognize *.bb and *.bbg as compilation byproducts.
12446         (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
12447         (_AC_COMPILER_OBJEXT): Use them.
12448         Fixes Debian #138666.
12450 2002-04-02  Peter Eisentraut  <peter_e@gmx.net>
12452         Integrate AC_PROG_CC_STDC into AC_PROG_CC.
12454         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
12455         AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
12456         (AC_PROG_CC): Call _AC_PROG_CC_STDC.
12457         (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
12458         (AC_C_CONST): Same.
12459         (AC_C_INLINE): Same.
12460         (AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
12461         * doc/autoconf.texi, NEWS: Document.
12462         * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
12463         AC_C_CROSS.
12465 2002-04-02  Akim Demaille  <akim@epita.fr>
12467         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
12468         _AS_MKDIR_P_PREPARE.
12470 2002-03-28  Kevin Ryde  <user42@zip.com.au>
12472         * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
12473         to avoid versions of HP C which don't allow that.
12475 2002-03-27  Paul Eggert  <eggert@twinsun.com>
12477         * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
12478         (AS_SHELL_SANITIZE): Invoke it.
12479         (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
12481 2002-03-26  Akim Demaille  <akim@epita.fr>
12483         * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
12485 2002-03-26  Akim Demaille  <akim@epita.fr>
12487         * doc/autoconf.texi (Introduction): The GNATS base moved.
12489 2002-03-25  Paul Eggert  <eggert@twinsun.com>
12491         * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
12492         as POSIX requires, as it doesn't work with Zsh.
12493         * doc/autoconf.texi (Assignments): Document the problem.
12495 2002-03-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
12497         * doc/autoconf.texi (Limitations of Make): Mention more issue
12498         about VPATH, overriding of macros in sub-makes, and handling of
12499         SHELL.
12501 2002-03-21  Paul Eggert  <eggert@twinsun.com>
12503         * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
12504         problem with here-document buffer boundaries.
12506         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
12507         when reinvoking the shell, to work around problems with installers
12508         who put strange things like "cd" commands in their environments.
12510 2002-03-19  Akim Demaille  <akim@epita.fr>
12512         * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
12513         From Aaron Ucko.
12515 2002-03-19  Akim Demaille  <akim@epita.fr>
12517         * bin/autoscan.in (scan_file): Specify the location in `&used'
12518         invocations.
12519         From Nicolas Joly.
12521 2002-03-19  Akim Demaille  <akim@epita.fr>
12523         * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
12524         From Nishio Futoshi.
12526 2002-03-19  Akim Demaille  <akim@epita.fr>
12528         * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
12530 2002-03-18  Paul Eggert  <eggert@twinsun.com>
12532         * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
12533         (Limitations of Usual Tools): Add mkdir section.
12535         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
12536         (AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
12537         back on AS_DIRNAME to compute prefixes otherwise; this is
12538         roughly what mkinstalldirs does.  That way, we need not have
12539         our own filename disassembler.  The old disassembler did not
12540         work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
12542         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
12543         Create at_test_all by a series of assignments,
12544         not by a single assignment of a long string.  The latter causes ksh
12545         version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
12546         presumably because of a buffer overrun.
12548 2002-03-14  Paul Eggert  <eggert@twinsun.com>
12550         * lib/autotest/general.m4 (at_times_skip):
12551         Renamed from at_times.  Now a boolean.
12552         ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
12553         says 'times: not found'.
12555 2002-03-14  Akim Demaille  <akim@epita.fr>
12557         * bin/autoreconf.in (&study_gettextize): New.
12558         (&autoreconf): Handle newest gettextize.
12559         Rerun aclocal if needed.
12560         Suggested by Andreas Schwab.
12562 2002-03-13  Akim Demaille  <akim@epita.fr>
12564         * doc/autoconf.texi (Special Shell Variables): More about IFS.
12566 2002-03-13  Akim Demaille  <akim@epita.fr>
12568         * doc/autoconf.texi (Header Portability): New.
12569         Add information about stdint.h and inttypes.h from Paul Eggert.
12571 2002-03-13  Akim Demaille  <akim@epita.fr>
12573         * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
12574         -p'.
12575         From Bob Proulx.
12577 2002-03-12  Akim Demaille  <akim@epita.fr>
12579         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
12580         m4_require.
12582 2002-03-11  Andreas Schwab  <schwab@suse.de>
12584         * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
12585         does not do it if --with-lispdir is given.
12587 2002-03-08  Akim Demaille  <akim@epita.fr>
12589         Version 2.53.
12591 2002-03-08  Akim Demaille  <akim@epita.fr>
12593         * doc/autoconf.texi (Subdirectories): Clarify that the
12594         subdirectory should exist.
12596 2002-03-08  Akim Demaille  <akim@epita.fr>
12598         * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
12600 2002-03-08  Akim Demaille  <akim@epita.fr>
12602         * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
12603         aliases the actual variables, and modifications of the former
12604         affect the latter.
12606 2002-03-08  Akim Demaille  <akim@epita.fr>
12608         * bin/autom4te.in (&handle_m4): Protect us from corrupted file
12609         because of C-c: have m4 output in tmp files, then mv them.
12611 2002-03-08  Akim Demaille  <akim@epita.fr>
12613         * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
12614         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
12615         * bin/ifnames.in: Copyright update.
12617 2002-03-08  Akim Demaille  <akim@epita.fr>
12619         * doc/autoconf.texi (Invoking autom4te): New.
12621 2002-03-05  Akim Demaille  <akim@epita.fr>
12623         * doc/autoconf.texi (Specifying Names): Clarification suggested by
12624         Kevin Ryde.
12626 2002-03-05  Akim Demaille  <akim@epita.fr>
12628         Version 2.52i.
12630 2002-03-04  Akim Demaille  <akim@epita.fr>
12632         * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
12633         * lib/autoconf/general.m4 (AC_INIT): More informative error
12634         message for LIBOBJ.
12636 2002-03-04  Akim Demaille  <akim@epita.fr>
12638         * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
12639         parallel builds.
12641 2002-03-04  Akim Demaille  <akim@epita.fr>
12643         * doc/autoconf.texi (Transforming Names): Equality between target
12644         and host is irrelevant.
12645         (Specifying Names, Canonicalizing): Remove all references to the
12646         backward compatibility hooks.  Rather, collect them all into...
12647         (Hosts and Cross-Compilation): this new section.
12648         * doc/install.texi (System Type): Ditto.
12649         * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
12650         that `--host' implies cross-compilation.
12652 2002-03-04  Akim Demaille  <akim@epita.fr>
12654         * doc/autoconf.texi (Evaluation Macros): New.
12655         * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
12656         useless.
12657         (_m4_foreach): Define the variant with immediate evaluation so
12658         that it contains exactly the items, not an expression which
12659         evaluation is the current item.
12660         (m4_re_string, m4_re_word): Don't over quote them.
12662 2002-03-04  Akim Demaille  <akim@epita.fr>
12664         Instead of having stacking `shift's evaluated at the end, let
12665         `foreach' loops immediately evaluate them.
12667         * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
12668         $*.  This is the n-th time I change my mind, but hopefully this is
12669         the last...
12670         (m4_lquote): New.
12671         (m4_text_wrap): Use m4_foreach, which is finally correct _and_
12672         efficient.
12673         (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
12674         it was only a hack for m4_text_wrap.
12675         (m4_car2): Remove, replaced by...
12676         (m4_cdr): New.
12677         (_m4_foreach): Adjust.
12678         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
12679         m4_bpatsubst for clarification.
12681 2002-03-04  Akim Demaille  <akim@epita.fr>
12683         * doc/autoconf.texi (Changequote is Evil): New.
12685 2002-03-03  Kevin Ryde  <user42@zip.com.au>
12687         * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
12688         on old systems like SunOS.
12690 2002-03-01  Peter Eisentraut  <peter_e@gmx.net>
12692         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
12693         lib/autoconf/functions.m4, lib/autoconf/general.m4,
12694         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
12695         lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
12696         of messages.
12698 2002-02-28  Akim Demaille  <akim@epita.fr>
12700         * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
12701         message to be sent.
12703 2002-02-28  Kevin Ryde  <user42@zip.com.au>
12705         * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
12707 2002-02-25  Akim Demaille  <akim@epita.fr>
12709         * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
12710         From Akinori Musha.
12712 2002-02-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
12714         * lib/Autom4te/XFile.pm (getline, getlines): New functions,
12715         translate \r\n to \n.
12717 2002-02-07  Akim Demaille  <akim@epita.fr>
12719         Version 2.52h.
12721 2002-02-07  Akim Demaille  <akim@epita.fr>
12723         Fix Autoconf PR/209.
12724         Also reported by Frank Denis.
12726         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
12728 2002-02-07  Akim Demaille  <akim@epita.fr>
12730         Fix Autoconf PR/207:
12731         AC_PREFIX_PROGRAM fails with dashed program names
12733         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
12734         variable when looking for the prefix program.
12735         Now it also works for shell variables.
12737 2002-02-07  Akim Demaille  <akim@epita.fr>
12739         * doc/autoconf.texi (Limitations of Builtins): More about
12740         case/esac.
12742 2002-02-06  Akim Demaille  <akim@epita.fr>
12744         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
12745         case/esac, some shells don't support it.
12746         Reported by Zack Weinberg.
12747         * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
12749 2002-02-06  Akim Demaille  <akim@epita.fr>
12751         * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
12752         sure not to introduce newlines in at_groups.
12753         * lib/autotest/Makefile.am (autotest.m4f): Typo.
12755 2002-02-06  Akim Demaille  <akim@epita.fr>
12757         * tests/torture.at (Configuring subdirectories): Skip if aclocal
12758         is not available.
12760 2002-02-05  Paul Eggert  <eggert@twinsun.com>
12762         * doc/autoconf.texi (Specific Compiler Characteristics):
12763         Describe HP-UX cc bug workaround more accurately.
12764         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
12765         not unsigned long.
12766         * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
12767         cross-compilers, too.  This undoes some of the most recent change
12768         to this file.
12770 2002-02-05  Akim Demaille  <akim@epita.fr>
12772         * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
12773         to make sure they are up to date when `check' is run.
12775 2002-02-05  Akim Demaille  <akim@epita.fr>
12777         * doc/autoconf.texi (Making testsuite Scripts): Document
12778         package.m4.
12780 2002-02-05  Akim Demaille  <akim@epita.fr>
12782         * lib/freeze.mk: New.
12784 2002-02-05  Akim Demaille  <akim@epita.fr>
12786         Implement `autom4te --freeze'.
12788         * bin/autom4te.in (&freeze): New.
12789         * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
12790         * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
12792 2002-02-05  Akim Demaille  <akim@epita.fr>
12794         * bin/autom4te.in (&parse_args): Implement `frozen files are
12795         optional are the sum of the previous files on the command line'.
12796         Also, pass `--reload-state=' on them, so...
12797         (handle_m4): don't.
12798         * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
12799         (M4sh): Rely on M4sugar.
12800         (Autotest, M4sh, M4sugar): Use frozen files.
12802 2002-01-31  Akim Demaille  <akim@epita.fr>
12804         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
12805         * doc/autoconf.texi (Initializing configure): Adjust.
12807 2002-01-30  Akim Demaille  <akim@epita.fr>
12809         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
12810         alphanumeric to `-' instead of `_'.
12812 2002-01-30  Akim Demaille  <akim@epita.fr>
12814         * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
12815         for plain code, the other for cross-compilation code.  The latter
12816         is now run with GCC only.
12817         * doc/autoconf.texi (Compilers and Preprocessors): New.
12819 2002-01-30  Akim Demaille  <akim@epita.fr>
12821         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
12822         values.
12823         * doc/autoconf.texi (Initializing configure): Explain how to
12824         change AC_INIT default values.
12826 2002-01-29  Akim Demaille  <akim@epita.fr>
12828         * tests/torture.at (Configuring subdirectories): Use configure.in,
12829         so that aclocal 1.4 works.
12830         Reported by Alexandre Duret-Lutz and Larry Schmitt.
12832 2002-01-28  Akim Demaille  <akim@epita.fr>
12834         * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
12835         needs an argument.
12837 2002-01-28  Akim Demaille  <akim@epita.fr>
12839         * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
12840         AUTOTEST_PATH *after* it was set.
12841         Don't put `.' in the PATH: the user should be precise and `./' if
12842         needed.  In addition, given that the test suite does some `cd', if
12843         `.' is in the path, the `tested programs' sections will report
12844         programs found in the test suite's directory, while during the
12845         tests (performed in their own directory), these programs are no
12846         longer visible.  In other words, the results is confusing and
12847         useless.
12848         * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
12850 2002-01-24  Akim Demaille  <akim@epita.fr>
12852         Version 2.52g.
12854 2002-01-24  Akim Demaille  <akim@epita.fr>
12856         * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
12857         * doc/autoconf.texi: Finally add Akim as an author.
12859 2002-01-24  Akim Demaille  <akim@epita.fr>
12861         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
12862         (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
12863         Bourne. Use /bin/sh.
12864         From Andreas Buening.
12866 2002-01-24  Akim Demaille  <akim@epita.fr>
12868         * config/config.guess, config/config.sub, config/texinfo.tex:
12869         Update from masters.
12871 2002-01-24  Akim Demaille  <akim@epita.fr>
12873         * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
12874         * config/auxdir.m4, config/cond.m4, config/depend.m4,
12875         * config/init.m4, config/install-sh.m4, config/lispdir.m4,
12876         * config/missing.m4, config/sanity.m4, config/select.m4,
12877         * config/strip.m4: Remove, to ease sync'ing with any version of
12878         Automake.
12880 2002-01-24  Akim Demaille  <akim@epita.fr>
12882         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
12883         (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
12884         Reported by Geir Ove Myhr.
12886 2002-01-21  Akim Demaille  <akim@epita.fr>
12888         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
12890 2002-01-21  Akim Demaille  <akim@epita.fr>
12892         * lib/Autom4te/General.pm (getopt): Use a more GNUish error
12893         message on invalid options.
12894         * bin/autom4te.in (parse_args): Don't use
12895         Autoconf::General::getopt with non valid options.
12897 2002-01-17  Jim Meyering  <meyering@lucent.com>
12899         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
12900         $ac_cv_exeext so we don't use an old, invalid, cached value.
12902 2002-01-11  Akim Demaille  <akim@epita.fr>
12904         * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
12905         Meyering.
12906         * doc/autoconf.texi (Function Portability): Document the strnlen
12907         limitation.
12908         (Particular Functions): Document AC_FUNC_STRNLEN.
12909         * lib/autoscan/functions: Adjust.
12911 2002-01-06  Akim Demaille  <akim@epita.fr>
12913         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
12914         package.m4, since is really depends upon configure.ac, not
12915         configure.
12916         * doc/autoconf.texi (testsuite Scripts): Adjust.
12917         * tests/Makefile.am (package.m4): New.
12918         EXTRA_DIST it since its a source.
12920 2002-01-06  Akim Demaille  <akim@epita.fr>
12922         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
12923         of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
12924         and PACKAGE_BUGREPORT from here...
12925         (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
12926         arguments.
12927         (_AC_INIT_PREPARE): AC_DEFINE these symbols.
12928         * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
12929         (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
12930         * tests/tools.at (autoheader): Adjust.
12931         * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
12933 2002-01-06  Akim Demaille  <akim@epita.fr>
12935         * bin/autoscan.in (scan_file): Use `&used'.
12937 2002-01-03  Akim Demaille  <akim@epita.fr>
12939         * doc/autoconf.texi (Output): Improved wording regarding use of
12940         AC_OUTPUT.
12941         From Olly Betts.
12943 2001-12-18  Kevin Ryde  <user42@zip.com.au>
12945         * doc/autoconf.texi (Function Portability): Add notes on sscanf
12946         sometimes needing writable input.
12948 2001-12-17  Jim Meyering  <meyering@lucent.com>
12950         * doc/autoconf.texi (New Macros): Tweak wording.
12952 2001-12-14  Akim Demaille  <akim@epita.fr>
12954         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
12955         trailing files, don't apply `-rf' to files which might not be
12956         created by configure (core, core.*, and *.core), but just `rm -f'.
12957         Suggested by Jonathan Kamens.
12959 2001-12-14  Aaron M. Ucko  <amu@alum.mit.edu>
12961         * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
12963 2001-12-14  Akim Demaille  <akim@epita.fr>
12965         * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
12967 2001-12-13  Peter Eisentraut  <peter_e@gmx.net>
12969         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
12970         abs_builddir, top_buildpath to abs_top_builddir, srcpath to
12971         abs_srcdir, top_srcpath to abs_top_srcdir.
12972         (_AC_OUTPUT_FILES): Adjust.
12973         * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
12974         * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
12975         * tests/wrappl.in, tests/wrapsh.in: Adjust.
12977 2001-12-12  Steven G. Johnson  <stevenj@alum.mit.edu>
12979         * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
12980         C/Fortran linking on HP/UX, by extracting the Fortran library
12981         search path from the LPATH line in the $F77 -v output.
12983 2001-12-12  Kevin Ryde  <user42@zip.com.au>
12985         * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
12986         forbidden file descriptors table.
12988 2001-11-26  Akim Demaille  <akim@epita.fr>
12990         * bin/autoscan.in (%c_keywords): Build it at top level.
12991         Map to 1 in order to simplify its uses.
12993 2001-11-26  Akim Demaille  <akim@epita.fr>
12995         * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
12996         Remove $filepath, useless.
12997         (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
12998         variables, they are really part of the tokens.
12999         Split the input line on spaces and then look for tokens.
13000         Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
13001         because of `lex$U.$(OBJEXT)'.
13002         (&scan_files): Use "@list" instead of join.
13003         * doc/Makefile.am (CLEANFILES): Add *.fns.
13005 2001-11-26  Akim Demaille  <akim@epita.fr>
13007         * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
13008         Remove, replaced by...
13009         * tests/wrappl.in: Be common for all the Perl executables.
13010         In particular autoscan and autoheader want -I.
13011         * configure.ac: Adjust.
13012         * lib/autoscan/headers: errno.h is portable.
13014 2001-11-26  Akim Demaille  <akim@epita.fr>
13016         * bin/autoscan.in (used): New.
13017         Use it.
13019 2001-11-26  Akim Demaille  <akim@epita.fr>
13021         * bin/autoscan.in (&scan_c_file): Better parsing of CPP
13022         directives.
13023         (&scan_sh_file): Remove a duplicate pattern.
13024         (&check_configure_ac): Use long options.
13025         * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
13027 2001-11-26  Akim Demaille  <akim@epita.fr>
13029         * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
13030         Before, having a line containing the opening of a multi line
13031         comment made the whole line be ignored.
13033 2001-11-26  Akim Demaille  <akim@epita.fr>
13035         * doc/autoconf.texi (Using an Autotest Test Suite): New.
13036         (testsuite Scripts): Be one of its subsection.
13037         (Autotest Logs): New.
13039 2001-11-26  Akim Demaille  <akim@epita.fr>
13041         Test groups are now run two directories deeper.
13043         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
13044         top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
13045         at_top_builddir.
13046         * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
13047         top_srcdir, builddir and top_builddir.
13048         Use `at_*dir' relatively to the directory containing the
13049         suite, use `*dir' when relatively to the current group dir.
13051 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
13053         * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
13054         lib/autoconf/functions.m4, lib/autoconf/headers.m4,
13055         tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
13056         spelling errors.
13058 2001-11-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
13060         * doc/autoconf.texi (Using System Type): Add an example of `case
13061         $host' usage so people quit using `case $target' everywhere.
13063 2001-11-22  Akim Demaille  <akim@epita.fr>
13065         * doc/autoconf.texi (Installation Directory Variables): Englishoes
13066         spotted by Jim Meyering.
13068 2001-11-16  Paul Eggert  <eggert@twinsun.com>
13070         This patch implements a `long double' suggestion by Oliver Kiddle.
13072         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
13073         static, to catch errors if the value isn't known at compile-time
13074         and the compiler supports dynamic arrays.  Change its name from
13075         `_array_' to `test_array' to avoid potential name clashes.
13076         (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
13077         test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
13078         better than double.  Catch a bug in GCC 2.95.2 x86.
13079         * doc/autoconf.texi (C Compiler): Document the above.
13080         * NEWS: Likewise.
13082 2001-11-13  Akim Demaille  <akim@epita.fr>
13084         * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
13085         hand.
13086         * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
13088 2001-11-13  Akim Demaille  <akim@epita.fr>
13090         * lib/autotest/general.m4 (AT_INIT): After having run the test
13091         group, go back to the initial directory, not to at_suite_dir.
13093 2001-11-13  Akim Demaille  <akim@epita.fr>
13095         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
13096         (AT_DATA_AUTOCONF):  Also protect @&t@ from autom4te.
13097         (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
13098         option.
13099         (AT_CHECK_CONFIGURE): Use absolute paths.
13100         (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
13101         The problem is still the old one: there is no means in M4 (that I
13102         know about) to create a defining macro, because there is no means
13103         to create `$1' etc., therefore, the defining macro ``swallows''
13104         all the arguments meant to the defined macro.
13106 2001-11-13  Akim Demaille  <akim@epita.fr>
13108         * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
13109         (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
13110         configure.ac.
13111         * tests/aclocal.m4: Remove, as it is no longer used.
13113 2001-11-13  Akim Demaille  <akim@epita.fr>
13115         * lib/autotest/general.m4: Change `tests?' into `groups?' in
13116         variable names when referring to a single test group, or to
13117         `suite' when referring to the whole test suite.
13118         `at_last_test' is removed: m4 compute at_format itself.
13119         (at_stdout, at_stder1, at_stderr): New variables.
13120         (AT_CHECK): Use them.
13122 2001-11-13  Akim Demaille  <akim@epita.fr>
13124         * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
13125         in PATH.
13126         Create `testsuite.dir/003/run' instead of `testsuite.003'.
13127         Do it as soon as a test fails, don't wait till the end of the test
13128         suite.
13129         Don't remove $as_me.[0-9]*, since these files no longer exist.
13131 2001-11-13  Akim Demaille  <akim@epita.fr>
13133         * tests/tools.at: Use absolute paths, since we are no longer run
13134         in place.
13136 2001-11-13  Akim Demaille  <akim@epita.fr>
13138         Now that tests are running in their own private dir, there is no
13139         need to list the files to remove at the end of tests groups.
13141         * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
13142         (AT_data_files, at_data_files): Remove.
13143         (AT_CLEANUP, AT_DATA): Simplify.
13144         (AT_INIT): Adjust.
13145         Remove the group dir if !debug && !failed.
13146         * tests/atspecific.m4: Adjust.
13148 2001-11-13  Akim Demaille  <akim@epita.fr>
13150         Start a new layout for Autotest: `testsuite' creates
13151         `testsuite.dir' in which the at-check-line etc. files are to be
13152         found, and `testsuite.dir/003' where the test group 3 is run.
13154         * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
13155         at_check_line_file, at_format, at_test_normalized, at_group_dir
13156         are new variables.
13157         Create the directories.
13158         Use absolute paths for at- files.
13159         (AT_CHECK): Adjust.
13161 2001-11-11  Michael Matz  <matz@kde.org>
13163         * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
13164         (m4_car2): New.
13165         (m4_car): Properly quote arguments.
13167 2001-11-13  Akim Demaille  <akim@epita.fr>
13169         * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
13170         with stricter rules on LIBOBJS.
13172 2001-11-12  Paul Eggert  <eggert@twinsun.com>
13174         * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
13175         * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
13176         __PROTOTYPES too.
13178 2001-11-12  Akim Demaille  <akim@epita.fr>
13180         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
13182 2001-11-12  Akim Demaille  <akim@epita.fr>
13184         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
13185         * lib/autoconf/functions.m4, lib/autoconf/general.m4,
13186         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
13187         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
13188         * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
13189         specify to what the macro should be defined (typically to 1).
13191 2001-11-12  Akim Demaille  <akim@epita.fr>
13193         * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
13194         From Jim Meyering.
13196 2001-11-12  Akim Demaille  <akim@epita.fr>
13198         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
13199         AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
13200         definition used by Automake where LEX is +/- "${missing} lex" and
13201         `missing' itself contains variables.
13203 2001-11-12  Akim Demaille  <akim@epita.fr>
13205         * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
13206         Now that M4sh pushes BODY, the comments were output at the end of
13207         the test suites.
13209 2001-11-08  Akim Demaille  <akim@epita.fr>
13211         * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
13212         that we can trace macros from aclocal.m4.
13213         Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
13214         obsoleted, and redirect to the former anyway.
13215         Reported by Ralf Corsepius.
13217 2001-11-08  Akim Demaille  <akim@epita.fr>
13219         * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
13220         processed only if present.
13221         * tests/torture.at (Configuring subdirectories): Use autoreconf
13222         instead of successive calls to autoconf.
13223         Add a nonexistent subdirectory to exercise the patch above.
13224         Reported by Ralf Corsepius.
13226 2001-11-08  Kevin Ryde  <user42@zip.com.au>
13228         * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
13229         doesn't accept .S files.
13231 2001-11-07  Akim Demaille  <akim@epita.fr>
13233         * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
13234         * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
13235         (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
13236         * bin/autom4te.in (warn_forbidden): New.
13237         (handle_output): Use it.
13238         Read m4_pattern_forbid with messages.
13240 2001-11-05  Akim Demaille  <akim@epita.fr>
13242         * bin/autom4te.in (--normalize): Remove.
13243         * lib/autom4te.in: Adjust.
13245 2001-11-05  Akim Demaille  <akim@epita.fr>
13247         * tests/Makefile.am (testsuite): Rename this target as...
13248         ($(TESTSUITE)): this.
13249         From Nicolas Joly.
13251 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
13253         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
13254         the --prefix option, also remove it's argument.
13256 2001-11-05  Akim Demaille  <akim@epita.fr>
13258         * doc/autoconf.texi (testsuite Invocation): Update.
13259         (Writing testsuite.at): Update.
13261 2001-11-03  Akim Demaille  <akim@epita.fr>
13263         * doc/autoconf.texi: s/@code/@command/ where appropriate.
13265 2001-11-03  Akim Demaille  <akim@epita.fr>
13267         * lib/Autom4te/General.pm: (&catfile, &canonfile)
13268         (&file_name_is_absolute): New, wrappers around routines from
13269         File::Spec.
13270         Use and export them.
13271         (&find_configure_ac): Optionally take a directory where to look at.
13272         * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
13273         the arguments.
13274         Default @ARGV to `.', not find_configure_ac.
13275         (&autoreconf): Argument is a directory.
13276         Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
13277         * doc/autoconf.texi (autoreconf Invocation): Update.
13279 2001-11-03  Akim Demaille  <akim@epita.fr>
13281         * lib/Autom4te/General.pm (@export_vars, @export_subs)
13282         (@export_forward_subs): New.
13283         Add basename, dirname, and fileparse.
13284         (@EXPORT): Adjust.
13285         * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
13286         Don't look for aclocal flags if we already know aclocal is not
13287         used.
13288         Move aclocal.m4t only if it exists.
13289         Reported by Ezra Peisach.
13291 2001-11-03  Akim Demaille  <akim@epita.fr>
13293         * bin/autoreconf.in (&parse_args): Work only on the configure.ac
13294         passed on command line, defaulting to ./configure.ac if present.
13295         (&maybe_autoreconf, File::Find): Remove, unused.
13296         (&autoreconf): If autoconf is not used, don't try to trace.
13298 2001-11-02  Akim Demaille  <akim@epita.fr>
13300         * configure.ac: Bump to 2.52g.
13302 2001-11-02  Akim Demaille  <akim@epita.fr>
13304         Version 2.52f.
13306 2001-11-02  Akim Demaille  <akim@epita.fr>
13308         * config/config.guess, config/config.sub, doc/standards.texi:
13309         * config/lispdir.m4: Update from masters.
13310         * configure.ac: Bump to 2.52f.
13312 2001-11-02  Akim Demaille  <akim@epita.fr>
13314         * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
13315         Don't run aclocal when aclocal.m4 is not from aclocal.
13316         From Ezra Peisach.
13317         Don't run libtoolize and gettextize if --install is not given.
13319 2001-11-01  Paul Eggert  <eggert@twinsun.com>
13321         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
13322         be invoked before _AS_LINENO_PREPARE.
13323         (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
13324         than character ranges.
13326         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
13327         invoking AS_BASENAME.  Set the locale variables to 'C' if
13328         possible, as POSIX requires this to get the traditional
13329         behavior.
13330         * doc/autoconf.texi (Special Shell Variables): Describe the above.
13332 2001-10-31  Paul Eggert  <eggert@twinsun.com>
13334         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
13335         with {}, as that triggers a bug in Bash 2.05.
13337         (_AS_LINENO_PREPARE): Use Sed rather than
13338         Awk.  Fix the sed prepass to work even if there are multiple
13339         instances of $LINENO on the same line.  Do not substitute for
13340         other variables like $LINENOT.  Do not check file dates; such a
13341         check is unreliable on sufficiently fast machines, and removing
13342         the check makes the code simpler and more reliable.  Check for
13343         output and chmod failures.
13345         * doc/autoconf.texi (Special Shell Variables): Document
13346         the above.
13348 2001-10-31  Akim Demaille  <akim@epita.fr>
13350         * tests/Makefile.am (atconfig): Remove this target, Automake
13351         handles it now.
13353 2001-10-31  Akim Demaille  <akim@epita.fr>
13355         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
13356         AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
13357         provided, while it is optional.
13358         * configure.ac: Adjust.
13360 2001-10-26  Paul Eggert  <eggert@twinsun.com>
13362         * NEWS, README, configure.ac, lib/Autom4te/General.pm,
13363           lib/Autom4te/Struct.pm:
13364         Require Perl 5.005_03 instead of just 5.005, as some tests fail
13365         with 5.005_02.
13367         * doc/autoconf.texi (Special Shell Variables): Document some
13368         more LINENO gotchas, particularly with respect to the Awk+Sed hack.
13370         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
13371         (_AS_LINENO_PREPARE): Use it instead of shell eval, since
13372         eval $LINENO is not portable in practice.
13374 2001-10-24  Akim Demaille  <akim@epita.fr>
13376         * lib/Autom4te/General.pm (backname): New.
13378 2001-10-24  Akim Demaille  <akim@epita.fr>
13380         * m4/: Remove, merged into...
13381         * config/: here.
13383 2001-10-23  Tim Van Holder  <tim.van.holder@pandora.be>
13385         * doc/autoconf.texi (Shellology): Mention the problems with bash
13386         2.05's use of ANSI quoting in its `set' builtin.
13388 2001-10-22  Paul Eggert  <eggert@twinsun.com>
13390         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
13391         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
13392         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
13393         POSIX decided to standardize on the int flavor of strerror_r.
13394         Always do char* test, as there's no reason not to.
13395         Assign to a char* var, to catch strerror_r that returns int*.
13397         * doc/autoconf.texi (Particular Functions):
13398         Document the above changes.  Also, document the fact that
13399         AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
13401         * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
13403 2001-10-20  Akim Demaille  <akim@epita.fr>
13405         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
13406         the executable was missing from the log.
13408 2001-10-20  Akim Demaille  <akim@epita.fr>
13410         * lib/Autom4te/General.pm (&update_file): If destination is
13411         unchanged, remove the source.
13412         (&up_to_date_p): Don't be verbose, be debug.
13413         * bin/autoreconf.in: No longer support --m4dir.
13414         (&autoreconf): Display the full path of the configure.ac we are
13415         studying.
13416         Trace it only once.
13417         Be sure to honor --force with gettextize.
13418         Always run aclocal.
13419         * doc/autoconf.texi: Adjust.
13421 2001-10-20  Akim Demaille  <akim@epita.fr>
13423         * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
13424         Remove, dead.
13425         * bin/autoreconf.in (&autoreconf): Do not run gettextize when
13426         `intl' is already present, as it refuses unless --force.
13427         (&parse_args): Use -I, --include instead of the old Autoconf
13428         options.
13429         ($localdir, $autoconf_dir): Remove.
13430         (@include): New.
13431         (&maybe_autoreconf): New, to preserve $_ for File::Find.
13433 2001-10-19  Jens Petersen  <petersen@redhat.com>
13435         * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
13436         * doc/autoconf.texi (Particular Programs): Likewise.
13438 2001-10-19  Akim Demaille  <akim@epita.fr>
13440         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
13441         file in @configure_input@.
13442         Don't mention `automatically' in addition to `generated'.
13443         * tests/torture.at (#define header templates): Adjust.
13445 2001-10-19  Akim Demaille  <akim@epita.fr>
13447         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
13448         comment, explain how to install automatic mode selection.
13449         From Russ Allbery.
13451 2001-10-19  Ezra Peisach  <epeisach@zif.mit.edu>
13453         * bin/autoreconf.in (autoreconf): Display the path to the
13454         configure.ac being studied.
13456 2001-10-18  Paul Eggert  <eggert@twinsun.com>
13458         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
13459         long, to work around a bug in the HP C compiler version HP92453-01
13460         B.11.11.23709.GP.
13462         * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
13463         (AS_BASENAME_EXPR): New macro.
13464         (AS_BASENAME_SED): Do not assume GNU sed semantics.
13465         (AS_BASENAME): Use 'basename' if that works; then try 'expr';
13466         and fall back on 'sed' only if the other two fail.  This makes
13467         AS_BASENAME act more like AS_DIRNAME.
13468         (as_me): Shell-quote the argument of AS_BASENAME, in case $0
13469         contains white space.
13470         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
13471         Use AS_DIRNAME, since I think it's now DOS-friendly.
13472         * tests/m4sh.at (DIRNAME_TEST): New arg $3.
13473         Allow "dirname //FOO" to return either / or //, as POSIX allows
13474         either behavior.
13476 2001-10-10  Akim Demaille  <akim@epita.fr>
13478         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
13479         `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
13480         From Eric Sharkey.
13482 2001-10-10  Akim Demaille  <akim@epita.fr>
13484         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
13485         m4_define, since...
13486         (_AS_ECHO_N): AS_REQUIREs it.
13488 2001-10-10  Akim Demaille  <akim@epita.fr>
13490         * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
13491         (AC_INCLUDES_DEFAULT): Move to...
13492         * lib/autoconf/headers.m4: here.
13493         * lib/autoconf/types.m4: Comment changes.
13494         * doc/autoconf.texi: Specify where the default includes are used
13495         in the macro prototypes.
13497 2001-10-09  Akim Demaille  <akim@epita.fr>
13499         * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
13500         transition code.
13502 2001-10-08  Akim Demaille  <akim@epita.fr>
13504         * bin/autoreconf.in (&autoreconf): Remove debugging code.
13505         (&parse_args): Pass verbosity/debugging options to subtools when
13506         --debug, not when --verbose.
13507         * lib/autom4te.in (Autoreconf-preselections): New.
13508         (Autoconf): Use it.
13510 2001-10-08  Akim Demaille  <akim@epita.fr>
13512         * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
13514 2001-10-08  Akim Demaille  <akim@epita.fr>
13516         * doc/autoconf.texi (autoreconf Invocation): Adjust.
13517         * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
13519 2001-10-08  Akim Demaille  <akim@epita.fr>
13521         * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
13522         (Syntax of the shell scripts): Don't.
13523         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
13524         bother with $force since...
13525         * lib/Autom4te/General.pm: does.
13527 2001-10-08  Akim Demaille  <akim@epita.fr>
13529         * bin/autoreconf.in: Rewrite in Perl.
13530         * configure.ac: Adjust.
13531         * lib/Autom4te/General.pm (&up_to_date_p): New.
13532         * bin/autom4te.in (&up_to_date_p): Use it.
13533         Rename as...
13534         (&up_to_date): this.
13536 2001-10-08  Akim Demaille  <akim@epita.fr>
13538         * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
13539         (m4_list_cmp): Use $0 to reinvoke yourself.
13540         (m4_patsubsts): New.
13541         (m4_strip, m4_version_unletter): Use it.
13542         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
13544 2001-10-08  Akim Demaille  <akim@epita.fr>
13546         * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
13547         * lib/autoconf/libs.m4, lib/autoconf/status.m4,
13548         * lib/autoconf/types.m4, lib/autotest/general.m4,
13549         * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
13550         * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
13551         m4_bregexp, m4_bpatsubst, and m4_bmatch.
13552         * doc/autoconf.texi (Redefined M4 Macros): Adjust.
13554 2001-10-08  Akim Demaille  <akim@epita.fr>
13556         * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
13558 2001-10-08  Akim Demaille  <akim@epita.fr>
13560         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
13561         * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
13562         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
13563         * tests/tools.at, tests/m4sh.at: Use it.
13564         * tests/m4sh.at: Don't rely on Autoconf macros.
13565         (DIRNAME_TEST): Also exercise the expr variant.
13566         * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
13567         preferred M4sugar extension is now `.4s'.
13568         * tests/README: Remove.
13570 2001-10-08  Akim Demaille  <akim@epita.fr>
13572         * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
13573         (m4_provide_if): this.
13574         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
13575         * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
13576         (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
13577         M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
13579 2001-10-08  Akim Demaille  <akim@epita.fr>
13581         Use `add-log-current-defun-function' for ChangeLog creation.
13582         Suggested by Tom Tromey.
13584         * lib/emacs/autotest-mode.el (autotest-mode-map): New.
13585         (autotest-mode): Adjust.
13586         * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
13587         'comment-region onto `C-c ;'.
13588         Comments are `#', not `dnl'.
13589         (autoconf-current-defun): New.
13590         (autoconf-font-lock-keywords): Recognize `m4_defun'.
13592 2001-10-08  Akim Demaille  <akim@epita.fr>
13594         * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
13595         * lib/m4sugar/m4sh.m4: here.
13596         (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
13597         * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
13598         (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
13599         include handle the m4_pattern_*, no longer push the
13600         BODY diversion nor set the /bin/sh line, AS_INIT does it.
13601         * lib/autotest/general.m4 (AT_INIT): Likewise.
13602         * tests/base.at: Adjust the tests to use AS_INIT.
13603         * tests/tools.at (AT_DATA_FORBIDDEN): New.
13604         (autoconf: forbidden tokens): Adjust to work on M4sh instead of
13605         Autoconf.
13607 2001-10-07  Paul Eggert  <eggert@twinsun.com>
13609         * doc/autoconf.texi (config.status Invocation):
13610         CONFIG_SHELL defaults to a shell that supports LINENO if available.
13612         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
13613         shell does not support LINENO, and if CONFIG_SHELL is unset or
13614         empty, and if we can find a shell that does support LINENO,
13615         then set CONFIG_SHELL to that shell and then re-execute
13616         ourselves with CONFIG_SHELL.
13618 2001-10-05  Paul Eggert  <eggert@twinsun.com>
13620         * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
13621         doesn't exist.  Remove *.tmp, as a .tmp file is created during the
13622         build of $(TESTSUITE).
13624 2001-10-05  Akim Demaille  <akim@epita.fr>
13626         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
13627         iff we are a bareword.
13628         Reported by Raja R Harinath.
13630 2001-10-05  Akim Demaille  <akim@epita.fr>
13632         * tests/m4sh.at (LINENO): New.
13633         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
13634         PATH_SEPARATOR before using it.
13635         Fix the absolute path case/esac pattern.
13636         Provide $0 as fallback for as_myself.
13637         Reported by Raja R Harinath.
13639 2001-10-05  Akim Demaille  <akim@epita.fr>
13641         * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
13642         * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
13644 2001-10-05  Akim Demaille  <akim@epita.fr>
13646         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
13647         (AS_SHELL_SANITIZE): here.  Use it.
13648         (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
13649         From Paul Eggert.
13651 2001-10-04  Akim Demaille  <akim@epita.fr>
13653         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
13654         combination of Awk and sed to replace $LINENO.
13656 2001-10-02  Paul Eggert  <eggert@twinsun.com>
13658         * doc/autoconf.texi (Limitations of Builtins): You can't use
13659         "source"; it's not portable.  Remove confusing and
13660         somewhat-incorrect example involving "." and "/".
13662         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
13663         compatibility with POSIX shells.
13665 2001-10-02  Akim Demaille  <akim@epita.fr>
13667         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
13668         instead of exec'ing to preserve $0 and $@.
13670 2001-10-01  Akim Demaille  <akim@epita.fr>
13672         * tests/testsuite (AT_INIT) <at_pass_list>: New.
13673         Don't run twice the same test.
13675 2001-10-01  Akim Demaille  <akim@epita.fr>
13677         * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
13678         No longer output the list of tests.
13679         <--list>: New option.
13680         <--full-help>: Remove.
13681         Complete the short/long options duality.
13682         Various small adjustments.
13684 2001-10-01  Akim Demaille  <akim@epita.fr>
13686         * doc/autoconf.texi: Use @kbd for user input.
13687         Always use `$' as shell prompt.
13689 2001-09-30  Paul Eggert  <eggert@twinsun.com>
13691         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
13692         Don't use nested parenthesization.  This patch was originally
13693         suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
13694         but somehow it didn't get incorporated then.
13695         * doc/autoconf.texi (Limitations of Usual Tools):
13696         Clarify remark about sed and nested parenthesization.
13698         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
13699         Report an error if the size cannot be determined even though
13700         the type exists.
13701         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
13702         Check for `expr' arithmetic overflow, and for compilation failure,
13703         and invoke a new argument $4 if either is discovered.
13704         This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
13705         (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
13707 2001-09-28  Akim Demaille  <akim@epita.fr>
13709         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
13710         * m4/lispdir.m4: New.
13711         * aclocal.m4, configure.ac: Adjust.
13713 2001-09-28  Akim Demaille  <akim@epita.fr>
13715         * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
13716         (AT_TESTED): this.
13717         (AT_INIT): More the wrapped section to where it will be expanded.
13718         Output `AT_tested' only when existing.
13719         Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
13721 2001-09-27  Akim Demaille  <akim@epita.fr>
13723         Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
13724         generates too many bug reports.
13726         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
13727         status when executing the ACTION-IF-FALSE.
13728         * tests/base.at (AC_TRY_*): Rename as...
13729         (AC_TRY_COMMAND): this.
13730         (AC_RUN_IFELSE): New.
13731         * tests/compile.at (Extensions, C keywords)
13732         (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
13733         (Broken/missing compilers, AC_PROG_CPP with warnings)
13734         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
13735         * tests/c.at (Extensions, C keywords)
13736         (Broken/missing compilers, AC_PROG_CPP with warnings)
13737         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
13738         (AC_PROG_CPP requires AC_PROG_CC): here and...
13739         * tests/fortran.at (GNU Fortran 77): there.
13740         * doc/autoconf.texi (autoconf Invocation): Fix the example:
13741         AC_TRY_RUN is about compilation, not shell commands.
13742         (Test Programs): AC_TRY_RUN works as used to be advertised.
13744 2001-09-27  Akim Demaille  <akim@epita.fr>
13746         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
13747         Raja R Harinath:
13748         Be sure to detect when $LINENO always returns the same value.
13749         Look for the original script, basename($0) is certainly not
13750         enough.
13751         Pass the CLI arguments to `$as_me.lineno'.
13753 2001-09-25  Akim Demaille  <akim@epita.fr>
13755         * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
13756         Be sure the close and reopen the LOG fd before and after using tee
13757         to extend the log.
13758         <at_tests_pattern>: Adjust to the new format of at_help_all.
13760 2001-09-23  Akim Demaille  <akim@epita.fr>
13762         * bin/autom4te.in (parse_args): There can be several invocations
13763         of --language now.
13765 2001-09-23  Akim Demaille  <akim@epita.fr>
13767         * doc/autoconf.texi (Top): Wrap in @ifnottex.
13769 2001-09-23  Akim Demaille  <akim@epita.fr>
13771         * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
13772         ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
13773         (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
13774         builddir, buildpath, top_builddir, and top_buildpath.
13775         (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
13776         the current directory.
13777         * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
13778         variables *before* changing the current directory.
13779         Skip nonexistent dirs.
13780         * doc/autoconf.texi (Preset Output Variables): Document these
13781         variables.
13783         * lib/autotest/general.m4: Do not reset AT_victims.
13784         Don't compute at_srcdir nor at_top_srcdir.
13786         * tests/tools.at: Hence use top_srcdir.
13788         * tests/Makefile.am, tests/autoconf, tests/autoheader,
13789         * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
13790         Remove.
13791         * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
13792         * tests/wrapsh.in, tests/autoupdate.in: New.
13793         * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
13794         * configure.ac: Build the position independent wrappers.
13796         * man/Makefile.am: Now that test wrappers are position
13797         independent, use them and drop dark envvar magic.
13799 2001-09-23  Akim Demaille  <akim@epita.fr>
13801         * doc/autoconf.texi (Common Shell Constructs): Rename as...
13802         (Programming in M4sh): this.
13803         Promote to @section.
13805 2001-09-23  Akim Demaille  <akim@epita.fr>
13807         * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
13808         Pass $at_debug_args to the rerun test suite.
13809         * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
13810         * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
13811         From Paul Eggert.
13813 2001-09-23  Akim Demaille  <akim@epita.fr>
13815         * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
13817 2001-09-23  Akim Demaille  <akim@epita.fr>
13819         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
13820         over-escaping.
13822 2001-09-23  Akim Demaille  <akim@epita.fr>
13824         * lib/Autom4te/General.pm (&debug): New.
13825         * bin/autom4te.in ($language): Move to...
13826         (parse_args): here.
13827         Handle --language in languages.
13828         * lib/autom4te.in (Automake-selections, Autoheader-selections)
13829         (Autoscan-selections): New.
13830         (Autoconf): Adjust.
13832 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
13834         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
13835         * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
13836         to match current versions from CVS Automake.
13838 2001-09-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
13840         * doc/autoconf.texi (Special Shell Variables): Add pdksh output
13841         for $LINENO.
13843 2001-09-22  Akim Demaille  <akim@epita.fr>
13845         * lib/autoconf/autotest.m4: Create `package.m4'.
13846         * tests/Makefile.am (package.m4): Remove.
13848 2001-09-22  Akim Demaille  <akim@epita.fr>
13850         Rely on `$LINENO' when possible instead of `__oline__'.
13852         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
13853         `$LINENO' support replacement when not supported.
13854         (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
13855         them explicitly to be sure they are not output before this section
13856         (via m4_require).  Cosmetic only.
13857         * lib/autoconf/c.m4, lib/autoconf/general.m4,
13858         * lib/autoconf/programs.m4: Replace all the occurrences of
13859         `__oline__' with `$LINENO'.
13860         * doc/autoconf.texi (Special Shell Variables): Document LINENO.
13862 2001-09-21  Tim Van Holder  <tim.van.holder@pandora.be>
13864         * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
13865         character (u: -> ue) in a code comment.
13866         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
13867         it works.
13869 2001-09-21  Akim Demaille  <akim@epita.fr>
13871         * Makefile.maint (AUTOM4TE): Neutralize autom4te.
13872         Suggested by Jim Meyering.
13874 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
13876         * lib/autoconf/programs.m4: Use extensions listed in
13877         $ac_executable_extensions when looking for programs.
13879 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
13881         * lib/autoconf/general.m4: Fix a small Englisho.
13882         * lib/autoconf/status.m4: Fix a small typo.  Handle DOS paths when
13883         setting up ac_dir_suffix and ac_top_builddir.
13884         * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
13886 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
13888         * doc/autoconf.texi (File System Conventions): Clarify the use of
13889         PATH_SEPARATOR.
13890         (Special Shell Variables[PATH_SEPARATOR]): Ditto.
13891         (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
13892         be used instead of ':'.
13893         * lib/autotest/general.m4: Replace occurrences of ':' in
13894         AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
13896 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
13898         * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
13899         arguments.  Fixed a typo.
13901 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
13903         * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
13904         $PATH.  Also set AUTOM4TE_CFG, so we can process autom4te properly.
13906 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
13908         * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
13909         * bin/autoupdate.in: Ditto.
13910         * bin/autoheader.in: Reworded a few comments.
13911         * bin/autoconf.in: Reworded help text for a few options.
13912         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
13913         * bin/autoscan.in, bin/autoupdate.in: Ditto.
13915 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
13917         * lib/Autom4te/XFile.pm (open): Simplified the error message (we
13918         already have $file).  Set output files to binary mode (helps avoid
13919         CR issues on DOSish systems).
13921 2001-09-19  Akim Demaille  <akim@epita.fr>
13923         * lib/autotest/general.m4: Englishoes.
13924         From Tim Van Holder and Alexey Mahotkin.
13926 2001-09-18  Paul Eggert  <eggert@twinsun.com>
13928         * doc/autoconf.texi (Common Shell Constructs): New node,
13929         documenting AS_DIRNAME.
13930         (Limitations of Usual Tools): Refer to it when discussing dirname.
13931         Also, update discussion of POSIX standard to reflect latest draft.
13933         * lib/autoconf/c.m4:
13934         (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
13936         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
13937         Do not pass a first argument with leading '-'
13938         to expr, by parenthesizing initial integers that might be negative.
13940         * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
13941         now merely checks whether it is an error to pass an argument
13942         to getpgrp.
13944         * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
13945         (AC_FUNC_GETPGRP): Don't bother with a runtime test.  Just check
13946         whether it is a (compile-time) error to pass an argument to
13947         getpgrp.  This simpler test supports the revised documentation,
13948         and is all that AC_FUNC_GETPGRP's users really need.
13950 2001-09-18  Akim Demaille  <akim@epita.fr>
13952         * doc/autoconf.texi (Limitations of Make) <$<>: New.
13954 2001-09-18  Akim Demaille  <akim@epita.fr>
13956         * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
13957         `{}'.
13958         * lib/autotest/general.m4 (AT_INIT): Adjust.
13960 2001-09-18  Paul Wagland  <paul@wagland.net>
13962         * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
13963         correctly.
13964         Add test for AS_BASENAME.
13965         * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
13966         added test. It now correctly handles /1/2/3/, returning '3' not ''.
13967         Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
13968         * tests/base.at: Fixed the expected responses. The old ones were
13969         one line out...
13970         * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
13971         the documentation claims it should (and how it behaved in 2.13).
13973 2001-09-18  Akim Demaille  <akim@epita.fr>
13975         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
13976         the AC_CONFIG_COMMANDS invocation.
13977         This also solves the name clash problems.
13978         Don't set the package's ID.
13979         * lib/m4sugar/Makefile.am (version.m4): Revamp.
13980         No longer to be shipped.
13981         (version.in): Remove.
13982         * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
13983         * lib/autoconf/status.m4: Adjust.
13984         Use `m4_PACKAGE_STRING'.
13985         * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
13986         the only optional argument is the name of the test suite.
13987         Expect `package.m4' to define the package signature.
13988         * lib/autom4te.in (Autotest): Add `package.m4?'.
13989         * tests/Makefile.am (package.m4): New.
13990         * tests/suite.at: ifnames is a victim.
13992 2001-09-18  Akim Demaille  <akim@epita.fr>
13994         * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
13995         AC_LIBSOURCE, AC_CONFIG_FILES.
13996         * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
13997         program version string doesn't match the package's.
13998         * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
13999         after `(cached)'.
14001 2001-09-17  Paul Eggert  <eggert@twinsun.com>
14003         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
14004         Allow expression to return any value that can fit into unsigned long
14005         (not int, as before).  Check for output errors.
14007 2001-09-17  Bruno Haible  <haible@ilog.fr>
14009         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
14010         Always include <stdio.h> and <stdlib.h>. Evaluate
14011         the expression in an extra function before these includes. Call
14012         fprintf "%d" only after ensuring the argument is of type 'int'.
14013         Reported by Wayne Chapeskie <waynec@spinnaker.com>.
14015 2001-09-17  Paul Eggert  <eggert@twinsun.com>
14017         Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
14018         or CFLAGS=-O5.  In that case, the linker has a relaxed view of
14019         fatal errors, and AC_CHECK_LIB causes it to include libraries even
14020         when they don't exist.
14022         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
14023         not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
14024         need it.
14026         * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
14027         version with the version used by fileutils 4.1, except use
14028         AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
14029         we don't need it.
14031         * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
14033 2001-09-13  Akim Demaille  <akim@epita.fr>
14035         * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
14036         _first_.
14037         Reported by Gerrit P. Haase.
14039 2001-09-13  Akim Demaille  <akim@epita.fr>
14041         * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
14042         m4_defn'ing is valid.
14044 2001-09-13  Akim Demaille  <akim@epita.fr>
14046         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
14047         * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
14048         Use it.
14050 2001-09-13  Akim Demaille  <akim@epita.fr>
14052         * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
14053         m4_match.
14054         (m4_re_escape): New.
14055         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
14056         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
14057         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
14058         Likewise.
14059         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
14060         (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
14061         * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
14062         AT_tests_all for consistency.
14063         Set at_victims.
14064         (AT_VICTIMS): Similar to AT_KEYWORDS.
14065         (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
14067 2001-09-13  Akim Demaille  <akim@epita.fr>
14069         * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
14071 2001-09-13  Akim Demaille  <akim@epita.fr>
14073         * lib/autotest/general.m4 (AT_INIT): Create and remove
14074         `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
14075         test suites can cohabit.
14077 2001-09-13  Akim Demaille  <akim@epita.fr>
14079         * tests/mktests.sh: Don't output banners for empty test files.
14081 2001-09-13  Akim Demaille  <akim@epita.fr>
14083         Test suites can be run independently of configure.
14085         * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
14086         * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
14087         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
14088         ECHO_N etc.
14089         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
14090         and at_c.
14091         * lib/autotest/general.m4: Use ECHO_*.
14093 2001-09-13  Akim Demaille  <akim@epita.fr>
14095         * bin/ifnames.in: Rewrite in Perl.
14096         * configure.ac: Don't look for AWK.
14097         * tests/tools.at (AWK portability): Remove.
14098         (Syntax of the shell scripts): Don't check ifnames.
14099         (AT_CHECK_PERL_SYNTAX): New.
14100         (Syntax of the Perl scripts): Check ifnames.
14101         * tests/ifnames: New.
14103 2001-09-13  Akim Demaille  <akim@epita.fr>
14105         * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
14106         test group titles.
14107         * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
14108         Remove all the other keywords.
14110 2001-09-10  Akim Demaille  <akim@epita.fr>
14112         * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
14113         SETUP: no longer used.
14114         Support -k, --keywords.
14115         <at_help>: Be `no', `short', or `long'.
14116         <at_help_all>: New variable.
14117         (AT_KEYWORDS): New.
14118         (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
14119         (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
14120         (_AT_CLEANUP_FILE_IF): Simplify the regexp.
14121         (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
14122         No longer fill the HELP diversion.
14123         (AT_CLEANUP): Use them.
14124         * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
14125         (m4_list_append): Remove.
14127         Spread a few keywords in the Autoconf test suite.
14129 2001-09-10  Akim Demaille  <akim@epita.fr>
14131         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
14132         PATH_SEPARATOR, let M4sh compute it.
14133         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
14134         * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
14135         Move to...
14136         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
14137         Simplify when the path is not a literal.
14138         (AS_UNAME): Use it to report PATH.
14139         * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
14140         (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
14141         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
14142         * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
14143         normalize the path, and to look for victims.
14144         * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
14145         (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
14147 2001-09-07  Akim Demaille  <akim@epita.fr>
14149         * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
14150         doesn't neutralize SIGINT, making autoconf etc. non interruptible.
14151         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
14152         related variables into `at_package_*'.
14153         * lib/autotest/general.m4 (AT_VICTIMS): New.
14154         (AT_INIT): Adjust for stand-alone/embedded test suites.
14155         (AS_MESSAGE_LOG_FD): Define and use it.
14156         * tests/suite.at (AT_VICTIMS): Use it.
14157         * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
14158         at_version.
14160 2001-09-07  Akim Demaille  <akim@epita.fr>
14162         Move toward possibly stand-alone test suites.
14164         * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
14165         in addition, it introduces useless differences in logs.
14166         (AT_INIT): Let atconfig and atlocal be both optional.
14167         Adjust PATH computation.
14168         * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
14170 2001-09-07  Akim Demaille  <akim@epita.fr>
14172         * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
14173         m4sugar/version.m4.
14175 2001-09-05  Akim Demaille  <akim@epita.fr>
14177         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
14178         to avoid GCC warnings.
14179         From Uwe Seimet.
14181 2001-09-05  Akim Demaille  <akim@epita.fr>
14183         * bin/autom4te.in: --language is -l, not -s.
14185 2001-09-05  Akim Demaille  <akim@epita.fr>
14187         Be ready to handle filenames as stupid as `dnl.at', for if even
14188         the maintainer is dumb enough to do that...
14190         * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
14191         excellence in M4 quotation: consider `__file__' is active.
14193         And BTW, when invoking m4, pass the --include in the right order:
14194         the wrong one.
14196         * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
14197         4m.
14199 2001-09-05  Akim Demaille  <akim@epita.fr>
14201         * lib/Autom4te/XFile.pm: New lib file.
14202         * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
14203         * bin/autoheader.in: Use it.
14205 2001-09-05  Akim Demaille  <akim@epita.fr>
14207         * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
14208         defined.
14210 2001-09-05  Akim Demaille  <akim@epita.fr>
14212         * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
14213         * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
14215         * bin/autoscan.in: Use `getopt' and `find_files' etc.
14216         Add -I, --include support.
14217         * doc/autoconf.texi (autoscan Invocation): Adjust.
14219 2001-09-05  Akim Demaille  <akim@epita.fr>
14221         CVS GNU M4 doesn't like `undefine(undefined)'.
14223         * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
14224         New, extracted from main.
14225         Use IO::File wherever possible.
14226         (input.m4): Be constant, use -I instead of hard coding $tmp.
14227         Therefore be a quoted heredoc.
14228         Don't invoke `_au_disable', since ac was not loaded, but just
14229         `unm4.m4'.
14231 2001-08-31  Akim Demaille  <akim@epita.fr>
14233         Version 2.52d.
14235 2001-08-31  Akim Demaille  <akim@epita.fr>
14237         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
14238         previous patch.
14239         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
14241 2001-08-31  Akim Demaille  <akim@epita.fr>
14243         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
14244         serious problems handling heredocs in heredocs.
14245         Reported by Nicolas Joly.
14247 2001-08-31  Akim Demaille  <akim@epita.fr>
14249         * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
14250         (Making testsuite Scripts): Update.
14252 2001-08-31  Akim Demaille  <akim@epita.fr>
14254         * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
14256 2001-08-31  Akim Demaille  <akim@epita.fr>
14258         * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
14259         (testsuite Scripts): There is no such thing as `atconfig.in'.
14260         And actually one diagram is missing: test suite runtime.
14262 2001-08-31  Akim Demaille  <akim@epita.fr>
14264         * lib/Autom4te/General.pm (&find_file): Browse the includes in the
14265         inverse order.
14267 2001-08-31  Akim Demaille  <akim@epita.fr>
14269         * bin/autoupdate.in (@include): `installcheck' revealed the path
14270         to m4sugar was lacking!
14272 2001-08-31  Akim Demaille  <akim@epita.fr>
14274         * man/Makefile.am (.x.1): We really have to pass
14275         autom4te_perllibdir.
14277 2001-08-31  Akim Demaille  <akim@epita.fr>
14279         * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
14280         debug scripts, in particular passing explicitly listed tests to
14281         run is stupid.
14283 2001-08-31  Akim Demaille  <akim@epita.fr>
14285         * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
14286         * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
14287         Use directly autom4te, not autoconf.
14288         * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
14290 2001-08-31  Akim Demaille  <akim@epita.fr>
14292         * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
14293         * bin/autoheader.in (%symbol): Strip arguments of macros.
14295 2001-08-31  Akim Demaille  <akim@epita.fr>
14297         * doc/autoconf.texi: Catch up -I, --include changes.
14299 2001-08-31  Akim Demaille  <akim@epita.fr>
14301         * bin/autom4te.in (&parse_args): Die on unknown languages.
14302         * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
14303         need for autoconf.
14304         Promote --include over --macrodir and other obsolete options.
14306 2001-08-31  Akim Demaille  <akim@epita.fr>
14308         * lib/Autom4te/General.pm ($version, $help, &getopt): New.
14309         * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
14310         * bin/autom4te.in ($autoconf): Pass --force.
14311         `print $out' doesn't print `$_' but `$out'.
14312         * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
14313         (autoheader): Pass --force since the test suite goes too fast for
14314         the time stamps.
14315         Adjust to the new autoheader messages.
14317 2001-08-31  Akim Demaille  <akim@epita.fr>
14319         * bin/autoheader.in: Handle the acconfig.h etc. junk files.
14320         Check the completeness of the #template.
14321         * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
14322         * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
14323         invocation.
14325 2001-08-31  Akim Demaille  <akim@epita.fr>
14327         * lib/Autom4te/General.pm (&find_file, &update_file): New.
14328         * bin/autoupdate.in, bin/autoheader.in: Adjust.
14329         Drop AC_MACRODIR dead for real.
14330         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
14331         `autoheader: `config.hin' is created'.
14332         * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
14334 2001-08-31  Akim Demaille  <akim@epita.fr>
14336         * bin/autoheader.in: Rewrite in Perl.
14337         * tests/autoheader: Adjust.
14339 2001-08-31  Akim Demaille  <akim@epita.fr>
14341         * bin/autoconf.in (--include, -I): New option.
14342         Map --localdir, --autoconf-dir onto it.
14343         Forward autom4te's options instead of interpreting them.
14344         * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
14345         There is no such envvar since the inception of autom4te.cfg.
14346         * bin/autom4te.in (&parse_args): Uniquify `@include'.
14347         * bin/autoupdate.in: Adjust, and perform more control.
14348         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
14349         * tests/autoconf: Dittowise.
14351 2001-08-31  Akim Demaille  <akim@epita.fr>
14353         * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
14354         * bin/autom4te.in (&find_file): Support `FILE?' standing for
14355         optionally `FILE'.
14356         Use -e, not -f, since /dev/null for instance is OK.
14357         (&parse_args): Adjust.
14358         * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
14360 2001-08-31  Akim Demaille  <akim@epita.fr>
14362         * configure.ac: Also find tested executables in bin.
14363         * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
14364         * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
14365         installed peer executables, only PATH is allowed to resolve it.
14366         Pass `autoconf_dir' via options, not via invisible envvars.
14367         * lib/Autom4te/General.pm (&find_peer): Remove.
14368         * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
14369         `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
14370         * man/Makefile.am: Let help2man rely on PATH instead of trying to
14371         find the executables for it.
14372         * tests/Makefile.am: Major cleanup.  Too lazy to document...
14373         * tests/atlocal.in: Remove all the obscure envvar manipulations.
14374         We only need PERL.
14375         * tests/atspecific.m4, tests/tools.at: Passing --localdir is
14376         indeed related to running the test suite, while passing
14377         --autoconf-dir and others is related to running non installed
14378         Autoconf executables.  So don't do that, leave it to...
14379         * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
14380         * tests/autoscan: New.
14381         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
14382         refer to library files: rely on --language.
14384 2001-08-29  Akim Demaille  <akim@epita.fr>
14386         * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
14387         s/--set/--language/.
14389 2001-08-29  Akim Demaille  <akim@epita.fr>
14391         * doc/autoconf.texi: Strip the @nodes.
14392         Suggested by Paul Eggert.
14393         (Initializing configure): Typo.
14395 2001-08-29  Akim Demaille  <akim@epita.fr>
14397         * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
14398         Suggested by Paul Eggert.
14400 2001-08-29  Akim Demaille  <akim@epita.fr>
14402         * Makefile.maint (do-po-update): Wget refuses to overwrite files:
14403         download in a tmp dir.
14405 2001-08-29  Akim Demaille  <akim@epita.fr>
14407         * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
14408         case insensitive OSes out there :(
14409         From Tim Van Holder.
14411 2001-08-29  Akim Demaille  <akim@epita.fr>
14413         * lib/autom4te.in: New.
14414         * lib/Makefile.am (edit, autom4te.cfg): New.
14415         * bin/autom4te.in (BEGIN): Simplify.
14416         Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
14417         (&load_configuration): New.  Use it.
14418         (&parse_args): Support --mode, --set, and --melt.
14419         * bin/autoconf.in: Simplify and adjust.
14420         * tests/Makefile.am (AUTOMAKE): Use --set.
14421         * tests/atlocal.in: Adjust.
14422         * BUGS: distcheck and check are weak.
14424 2001-08-29  Akim Demaille  <akim@epita.fr>
14426         * lib/autotest/general.m4: Use
14427                 foo=`(command) 2>/dev/null`
14428         not
14429                 foo=`command` 2>/dev/null
14430         (at-devnull): Rename as...
14431         (AT-devnull): this.
14432         (--clean): Remove AT-* files too.
14433         * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
14434         Reported by Nicolas Joly.
14436 2001-08-28  Akim Demaille  <akim@epita.fr>
14438         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
14439         quotes inside single quotes.
14440         Reported by Nicolas Joly.
14442 2001-08-28  Kevin Ryde  <user42@zip.com.au>
14444         * doc/autoconf.texi (Function Portability): Mention C right shifts.
14446 2001-08-27  Tim Van Holder  <tim.van.holder@pandora.be>
14448         * lib/autotest/general.m4: Reword some messages.
14449         (AT_INIT): Check for the `times' builtin before using it.
14450         Support test ranges as arguments to the testsuite.
14451         Have -e imply -d as the help text suggested.
14453 2001-08-27  Akim Demaille  <akim@epita.fr>
14455         * Makefile.maint: Formatting changes.
14456         (do-po-update, po-update, cvs-update, update): New targets.
14457         (AMTAR): Remove.
14459 2001-08-27  Akim Demaille  <akim@epita.fr>
14461         * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
14462         <at_cmd_line>: New.
14463         Pass it to debug-*.sh scripts.
14464         <AUTOTEST_PATH>: May contain absolute dir names.
14466 2001-08-27  Akim Demaille  <akim@epita.fr>
14468         * lib/autotest/general.m4 (AT_INIT): Log the command line.
14469         Support `VAR=VAL' as arguments.
14470         Compute PATH _after_ the options processing, so that AUTOTEST_PATH
14471         may be set via the command line.
14473 2001-08-27  Akim Demaille  <akim@epita.fr>
14475         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
14476         * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
14477         first the build dirs, then the src dirs.
14478         * configure.ac (AC_CONFIG_TESTDIR): Adjust.
14480 2001-08-27  Akim Demaille  <akim@epita.fr>
14482         * lib/autotest/general.m4 (AT_INIT): Output the definition of
14483         at_data_files earlier.
14484         (--clean, -c): New option.
14485         * tests/Makefile.am: Use this option.
14487 2001-08-27  Akim Demaille  <akim@epita.fr>
14489         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
14490         `ac_top_builddir' to mimic Automake's vocabulary, which much more
14491         readable.
14492         Adjust callers.
14493         * doc/autoconf.texi (Configuration Actions): Document the vars
14494         available in commands.
14495         Emphasize the risks of collisions in init-cmds.
14497 2001-08-27  Akim Demaille  <akim@epita.fr>
14499         * doc/autoconf.texi (Input) <AC_INIT>: Move to..
14500         (Initializing configure): this new node.
14502 2001-08-27  Akim Demaille  <akim@epita.fr>
14504         * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
14506 2001-08-27  Akim Demaille  <akim@epita.fr>
14508         * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
14509         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
14510         New file.
14511         * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
14513 2001-08-27  Akim Demaille  <akim@epita.fr>
14515         * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
14516         to...
14517         * lib/autoconf/autoheader.m4: this new file.
14518         * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
14519         (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
14520         Move to...
14521         * lib/autoconf/autoupdate.m4: this new file.
14523 2001-08-27  Akim Demaille  <akim@epita.fr>
14525         * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
14526         (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
14527         Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
14528         -> ac_dir).
14529         (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
14530         * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
14532 2001-08-27  Akim Demaille  <akim@epita.fr>
14534         * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
14535         (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
14536         (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
14537         (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
14538         (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
14539         (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
14540         (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
14541         (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
14542         (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
14543         (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
14544         (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
14545         (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
14546         (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
14547         (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
14548         (_AC_OUTPUT_SUBDIRS): Move to...
14549         * lib/autoconf/status.m4: this new file.
14550         * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
14551         * tests/Makefile.am, tests/suite.at: Adjust.
14553 2001-08-27  Akim Demaille  <akim@epita.fr>
14555         Automake 1.5.
14557         * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
14558         (AMTAR): Help automake define it.
14559         (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
14560         needed, 1.5 can have a macro and a target with the same name.
14561         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
14562         * m4/strip.m4: New.
14563         * m4/init.m4, m4/sanity.m4: Update.
14564         * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
14565         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
14566         * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
14567         * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
14569 2001-08-27  Akim Demaille  <akim@epita.fr>
14571         Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
14573         * lib/autoconf/version.in: Remove.
14574         * lib/m4sugar/version.in: New.
14575         * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
14576         Adjust callers.
14577         * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
14578         the name of the directory they're in, instead of the filename,
14579         since version.m4 is now in m4sugar, but m4_acversion must not be
14580         classified as an Autoconf macro.
14581         ($input_m4): Don't qualify the path to m4sugar.
14582         Rather, pass autoconf_dir to m4.
14583         * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
14584         * tests/suite.at: Require 2.52c.
14586 2001-08-27  Akim Demaille  <akim@epita.fr>
14588         testsuite.log should include config.log.
14590         * lib/autotest/autotest.m4: New.
14591         * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
14592         * tests/suite.at : Adjust.
14593         (AT_INIT): Log config.log.
14594         * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
14595         * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
14596         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
14597         (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
14598         of config.log on traps.
14599         (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
14600         Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
14601         for config.status'.
14602         Open the log as soon as possible.
14603         Use the same log introduction as configure's.
14605 2001-08-22  Paul Eggert  <eggert@twinsun.com>
14607         * doc/autoconf.texi (Indices): New node.
14608         Move indices out of the top level menu and into this submenu.
14610 2001-08-22  Akim Demaille  <akim@epita.fr>
14612         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
14613         AC_TRY_COMMAND.
14614         (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
14616 2001-08-22  Akim Demaille  <akim@epita.fr>
14618         * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
14619         (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
14620         (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
14621         * lib/autoconf/programs.m4: here.
14622         * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
14623         (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
14624         (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
14625         * lib/autoconf/programs.m4: here.
14626         (_AC_DECL_YYTEXT): Rename as...
14627         (_AC_PROG_LEX_YYTEXT_DECL): this.
14628         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
14629         * tests/Makefile.am, tests/suite.am: Adjust.
14631 2001-08-22  Akim Demaille  <akim@epita.fr>
14633         * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
14634         Move to...
14635         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
14636         here.
14637         * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
14638         * lib/autoconf/functions.m4: here.
14639         * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
14640         (AH_CHECK_LIB): Move to...
14641         * lib/autoconf/libs: this new file.
14642         * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
14643         (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
14644         * lib/autoconf/libs.m4: here.
14645         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
14647 2001-08-22  Akim Demaille  <akim@epita.fr>
14649         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
14650         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
14651         (AC_SITE_LOAD): Better logging of config.site.
14653 2001-08-20  Akim Demaille  <akim@epita.fr>
14655         * configure.ac (AT_CONFIG): Fix the path.
14656         * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
14657         can be used.
14659 2001-08-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
14661         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
14662         program with AC_LANG_PROGRAM before feeding it to
14663         AC_COMPILE_IFELSE.  Cleanup grep usage.
14665 2001-08-20  Akim Demaille  <akim@epita.fr>
14667         * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
14668         * NEWS, README, README-alpha, TODO, tests/README: This package is
14669         `Autoconf', not `autoconf' (the executable).
14671 2001-08-20  Akim Demaille  <akim@epita.fr>
14673         Info readers seem to need `Index' in the index node title :(
14675         * doc/autoconf.texi: Reverse the 2001-08-15 change which
14676         simplified index node names.
14678 2001-08-20  Akim Demaille  <akim@epita.fr>
14680         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
14681         arguments are not literals.
14682         * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
14683         Specify the output variables, and macros defined.
14685 2001-08-20  Akim Demaille  <akim@epita.fr>
14687         * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
14688         (Examining Syntax) <AC_TRY_COMPILE>
14689         (Examining Libraries) <AC_TRY_LINK>
14690         (Test Programs) <AC_TRY_RUN>: These macros double quote some of
14691         their arguments.
14692         Reported by Werner Lemberg.
14694 2001-08-20  Akim Demaille  <akim@epita.fr>
14696         * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
14697         top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
14698         Load atlocal late enough to dump it in the log.
14699         * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
14701 2001-08-20  Akim Demaille  <akim@epita.fr>
14703         * tests/torture.at (Configuring subdirectories): New test.
14704         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
14705         looking for.
14706         * m4/atconfig.m4: Be sure the let $[0] be expandable.
14707         (top_srcdir): Fix its computation.
14709 2001-08-20  Akim Demaille  <akim@epita.fr>
14711         * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
14712         * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
14713         test suite lives.
14714         Create `atconfig' automagically.
14715         Configure atlocal.in if present.
14716         * tests/atconfig.in: Remove.
14717         * tests/atlocal.in: New.
14718         * tests/Makefile.am: Adjust.
14720 2001-08-20  Akim Demaille  <akim@epita.fr>
14722         Huh!?!?!  There are still some user EOF tags used, which prevents
14723         their use in AC_CONFIG_COMMANDS for instance...
14725         * lib/autoconf/general.m4, lib/autoconf/specific.m4,
14726         * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
14727         `_CSEOF', or `_ATEOF', as appropriate.
14728         * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
14729         * lib/autotest/Makefile.am (check-local): Enforce this constraint.
14731 2001-08-20  Akim Demaille  <akim@epita.fr>
14733         * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
14734         * tests/semantics.at, tests/tools.at, tests/torture.at:
14735         s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
14737 2001-08-20  Akim Demaille  <akim@epita.fr>
14739         Autotest invokes M4sh's initialization.
14741         * lib/autotest/general.m4: Adjust the diversion names.
14742         (AT_INIT): Run AS_INIT.
14743         Use the BINSH diversion to invoke /bin/sh.
14744         * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
14745         * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
14747 2001-08-20  Akim Demaille  <akim@epita.fr>
14749         Let M4sh have its own diversions.
14751         * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
14752         (_m4_divert(NOTICE)): Rename as...
14753         * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
14754         (_m4_divert(HEADER-COMMENT)): these.
14755         (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
14756         (_m4_divert(NOTICE)): New, for Libtool.
14757         * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
14758         long ago with `_m4_divert(GROW)'.
14759         (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
14761 2001-08-20  Akim Demaille  <akim@epita.fr>
14763         * tests/base.at, tests/compile.at, tests/foreign.at,
14764         * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
14765         * tests/semantics.at, tests/suite.at, tests/tools.at,
14766         * tests/torture.at: Ask Autotest mode, not Autoconf mode.
14768 2001-08-20  Akim Demaille  <akim@epita.fr>
14770         * bin/autom4te.in (handle_output): Handle @__@.
14772 2001-08-20  Akim Demaille  <akim@epita.fr>
14774         * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
14775         * lib/autotest/general.m4: Adjust the license.
14777 2001-08-17  Paul Eggert  <eggert@twinsun.com>
14779         * doc/autoconf.texi (Function Portability): Mention snprintf,
14780         following up on a suggestion by Kevin Ryde.
14782 2001-08-17  Akim Demaille  <akim@epita.fr>
14784         * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
14785         `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
14787 2001-08-17  Akim Demaille  <akim@epita.fr>
14789         * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
14790         `$0.log' as for projects where testsuite is in src, we'd have
14791         testsuite.log created in src.
14793 2001-08-17  Akim Demaille  <akim@epita.fr>
14795         * bin/autom4te.in (&parse_args): Recognize --normalize.
14797 2001-08-17  Akim Demaille  <akim@epita.fr>
14799         Start implementing the AC_CHECK_HEADER transition scheme.
14801         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
14802         (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
14803         (AC_CHECK_HEADER): Use them.
14805 2001-08-17  Akim Demaille  <akim@epita.fr>
14807         * doc/autoconf.texi: Work around Texinfo buglets.
14808         (Transformation Rules): One example is enough, users are expected
14809         to have their brains on. And BTW, use DESTDIR.
14810         (dvar): New macro.  Use it.
14812 2001-08-17  Akim Demaille  <akim@epita.fr>
14814         * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
14815         * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
14816         looking for ChangeLogs.
14818 2001-08-17  Akim Demaille  <akim@epita.fr>
14820         * bin/autom4te.in: --normalize is a new option.
14821         * bin/autoconf.in: Use it.
14823 2001-08-17  Akim Demaille  <akim@epita.fr>
14825         * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
14826         * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
14828 2001-08-16  Paul Eggert  <eggert@twinsun.com>
14830         * doc/autoconf.texi, doc/install.texi: Put copyright notice at
14831         start, not at end.
14833 2001-08-15  Akim Demaille  <akim@epita.fr>
14835         * doc/Makefile.am (fu): New index, can't use fn because of defmac.
14836         Use it.
14838 2001-08-15  Akim Demaille  <akim@epita.fr>
14840         * doc/autoconf.texi (pr): New index.
14841         (prindex, findex): Use, merge, and output them.
14842         (Environment Variable Index, Output Variable Index)
14843         (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
14844         (Autotest Macro Index): Rename as...
14845         (Environment Variables, Output Variables,Preprocessor Symbols)
14846         (Autoconf Macros, M4 Macros, Autotest Macros): these.
14847         * doc/install.texi: Use @command.
14848         (Environment Variables): Rename as...
14849         (Defining Variables): this.
14851 2001-08-15  Akim Demaille  <akim@epita.fr>
14853         * doc/autoconf.texi (Function Portability): sprintf's return
14854         value.
14855         From Kevin Ryde.
14857 2001-08-15  Akim Demaille  <akim@epita.fr>
14859         * Makefile.maint (CVS): New.
14860         (local-check): Run changelog-check. last.
14861         (alpha): Don't depend upon local-check, since...
14862         (cvs-dist): depends upon it.
14864 2001-08-15  Tim Van Holder  <tim.van.holder@pandora.be>
14866         * tests/Makefile.am: Use a clean-local rule to remove
14867         autom4te.cache (it's a directory, not a file.
14868         * Makefile.am: Ditto (but maintainer-clean-local).
14870 2001-08-15  Akim Demaille  <akim@epita.fr>
14872         * bin/autom4te.in (@m4_warning): New.
14873         (&handle_m4): Use it.
14874         * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
14875         warnings are issued at each run.
14876         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
14877         is in the src tree.
14879 2001-08-15  Akim Demaille  <akim@epita.fr>
14881         * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
14882         don't waste time running `autoupdate --version' works.
14883         * tests/tools.at (autoupdating AC_PREREQ): Likewise.
14885 2001-08-13  Akim Demaille  <akim@epita.fr>
14887         * doc/autoconf.texi (ma): Rename this index as...
14888         (ac): this.
14890 2001-08-13  Akim Demaille  <akim@epita.fr>
14892         * Makefile.am: Remove dead code and dead comments.
14893         (pdf, html): New targets.
14894         * doc/autoconf.texi (Using Autotest): New chapter.
14895         * doc/Makefile.am (pdf): New targets.
14896         (CLEANFILES): Adjust.
14898 2001-08-13  Akim Demaille  <akim@epita.fr>
14900         * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
14901         duration of the test suite.
14903 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
14905         * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
14906         endianness for comparison instead of relying on AT_CHECK_ENV.
14908 2001-08-11  Paul Eggert  <eggert@twinsun.com>
14910         * doc/autoconf.texi, doc/install.texi: Add a copyright notice
14911         to the INSTALL file.
14913 2001-08-11  Paul Eggert  <eggert@twinsun.com>
14915         * NEWS: The autoconf manual now is distributed under the terms
14916         of the GNU Free Documentation License.
14918         * doc/autoconf.texi: Switch from old style copyright notice to FDL.
14919         Add an appendix "Copying This Manual" for the FDL.
14921         * doc/fdl.texi: New file, from
14922         <http://www.gnu.org/licenses/fdl.texi>.
14924         * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
14926 2001-08-10  Paul Eggert  <eggert@twinsun.com>
14928         * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
14929         ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
14930         README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
14931         m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
14932         m4/sanity.m4, tests/README, tests/aclocal.m4,
14933         tests/atspecific.m4, tests/base.at, tests/compile.at,
14934         tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
14935         tests/semantics.at, tests/suite.at, tests/tools.at,
14936         tests/torture.at: Add copyright notice.
14938         * tests/mktests.sh: Update year in copyright notice.
14940 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
14942         * tests/semantics.at (AC_C_BIGENDIAN): New test.
14944 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
14946         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
14947         ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
14948         * doc/autoconf.texi (C Compiler Characteristics): Update
14949         documentation for AC_C_BIGENDIAN.
14951 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
14953         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
14954         magic values from an object file when cross-compiling.
14955         Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
14957 2001-08-10  Akim Demaille  <akim@epita.fr>
14959         * bin/autom4te.in (&handle_output): Don't use `grep' with side
14960         effects.
14961         Suggested by Russ Allbery.
14963 2001-08-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
14965         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
14966         current $prefix to the sub-configures.
14968 2001-08-09  Tim Van Holder  <tim.van.holder@pandora.be>
14970         * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
14971         extension (needed on BeOS).  Reported by Guido van Rossum.
14973 2001-08-09  Akim Demaille  <akim@epita.fr>
14975         * bin/autom4te.in ($icache): Load it only if older than autom4te.
14977 2001-08-07  Akim Demaille  <akim@epita.fr>
14979         * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
14980         removed.
14981         (at-setup-line): Huh?  Be a variable `at_setup_line', not a file.
14982         No need to remove the files before and after the each test, before
14983         each test and at the end of the suite is enough.
14984         Display only the children `times', not the shell's.
14985         If the test failed or was skipped, at-times is not available.
14987 2001-08-07  Akim Demaille  <akim@epita.fr>
14989         Always produce testsuite.log, including when there are no
14990         failures.  This helps getting information on skipped tests, and
14991         duration of the tests.  Err, implement the latter btw.
14993         * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
14994         Dump information on the first run of each test.
14995         (AT_CLEANUP): Create `at-times' containing the duration of the
14996         test group.
14998 2001-08-07  Akim Demaille  <akim@epita.fr>
15000         The use of `dumpstat' revealed that `len' was used although it
15001         should not.  m4_text_wrap was using it, but in the Autoconf world
15002         where it is legal.  Hence (i) test M4sh in its own world, not
15003         Autoconf's, and (ii), ahem, fix the bug :)
15005         * lib/autotest/general.m4: Be sure the set good quotes, as tracing
15006         does not like `' instead of [].
15007         (AT_INIT): Forbid `^_?AT_'.
15008         And don't output such tokens.
15009         * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
15010         `script.as', and `autom4te.cache'.
15011         Remove `empty' and `macro' which are no longer used.
15012         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
15013         * tests/m4sugar.at: Use it.
15014         * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
15016 2001-08-07  Akim Demaille  <akim@epita.fr>
15018         * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
15020 2001-08-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
15022         * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
15024 2001-08-04  Akim Demaille  <akim@epita.fr>
15026         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
15027         (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
15028         AC_TRY_LINK.
15029         * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
15030         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
15031         (AC_F77_MAIN): Likewise.
15033 2001-08-04  Akim Demaille  <akim@epita.fr>
15035         Don't rely on M4sugar outputting the patterns in files, since we
15036         might process the output _without_ running m4, hence without these
15037         files.
15039         * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
15040         * bin/autom4te.in (@Request::includes): Remove, unused.
15041         (@Request::source): Rename as...
15042         (@Request::input): this.
15043         (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
15044         (&handle_output): Fetch the patterns from the traces.
15045         `$forbidden' and `$allowed' are constant: use m//o.
15046         (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
15047         (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
15049 2001-08-04  Akim Demaille  <akim@epita.fr>
15051         `autoconf && autoheader' is sped up.  Now, speed up `autoheader &&
15052         autoconf', i.e., in addition to caching traces, cache the output.
15054         * bin/autom4te.in (Request::cache): Rename as...
15055         (Request::id): this.
15056         ($cache, $icache, $tcache, $ocache): New.
15057         (&handle_m4): Save M4 output in the cache instead of $tmp.
15058         (&handle_output): Adjust.
15059         (&up_to_date_p): Check that the output cache is up to date too.
15060         (top level): Run `&handle_m4' iff force or the cache is invalid.
15061         Run `&handle_output' if the output cache is more recent.
15063 2001-08-04  Akim Demaille  <akim@epita.fr>
15065         * bin/autom4te.in ($force): New.
15066         (&parse_args, &print_usage): -f, --force is a new option.
15067         (&handle_output): CPP directives might have spaces after `#'.
15068         (&parse_args): The first file only can be frozen.
15070 2001-08-04  Akim Demaille  <akim@epita.fr>
15072         Don't let autom4te compute the `include' traces several times:
15073         first check that the trace cache file is up to date, and then
15074         compare its timestamp with that of the output.
15076         * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
15077         the preamble.  Don't require 5.005 as Autom4te::General does it,
15078         and better yet (use `use', not `require'!).
15079         * lib/Autom4te/Struct.pm: Rename the last occurrences of
15080         Class::Struct as Autom4te::Struct.
15081         * lib/Autom4te/General.pm (File::stat): Use it.
15082         (&mtime): New, export it.
15083         * bin/autom4te.in: Use it.
15084         Declare `$req' is invalid if it is outdated.
15085         Don't declare it valid before saving it if something went wrong.
15087 2001-08-04  Akim Demaille  <akim@epita.fr>
15089         Autom4te shall not encode Autoconf data, and preselecting traces
15090         must be proposed to the users.
15092         * bin/autom4te.in (@required_trace): Remove.
15093         (@preselect): New.
15094         (&parse_args, &print_usage): -p, --preselect is a new option.
15095         (&up_to_date_p): Adjust.
15096         * bin/autoconf.in: Preselect some Autoconf macros.
15098 2001-08-04  Akim Demaille  <akim@epita.fr>
15100         * tests/tools.at (autoconf --trace: user macros): Check traces on
15101         macros invoked without arguments, and macros invoked with multiple
15102         lines arguments.
15104 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
15106         * bin/autom4te.in (handle_traces): Fix rewriting of traces without
15107         arguments.
15109 2001-08-03  Akim Demaille  <akim@epita.fr>
15111         * bin/autoconf.in ($@): Work around the usual sh bug.
15112         From Nicolas Joly.
15114 2001-08-03  Akim Demaille  <akim@epita.fr>
15116         Clean up the handling of the M4 builtins tracing exception.
15118         * bin/autom4te.in (Request::request): Don't complete M4 builtins
15119         trace requests.
15120         (@m4_builtins): Rename as...
15121         (@m4_builtin): this.
15122         (%m4_builtin_alternate_name): New.
15123         (&parse_args): Complete the trace requests with alternate names.
15124         (&handle_traces): Hence no longer do it here.
15125         (&trace_requests): Remove, unused.
15127 2001-08-03  Akim Demaille  <akim@epita.fr>
15129         * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
15130         m4_if, and m4_wrap.
15132 2001-08-03  Akim Demaille  <akim@epita.fr>
15134         * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
15135         (m4_divert_pop): Dump the whole diversion stack when a diversion
15136         mismatch happens.
15137         * bin/autom4te.in (&handle_output): Remember of the first
15138         occurrence of a possibly undefined macro, not the last.
15139         Complain about the possibly undefined macros in the same order as
15140         the appear in the output.
15141         * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
15142         * tests/tools.at (autoconf: forbidden tokens, basic)
15143         (autoconf: forbidden tokens, exceptions): No longer sort
15144         autoconf's stderr, as it is now deterministic.
15145         Check that `dnl' is caught.
15147 2001-08-01  Akim Demaille  <akim@epita.fr>
15149         * configure.ac: Bump to 2.52c.
15151 2001-08-01  Akim Demaille  <akim@epita.fr>
15153         Version 2.52b.
15155         * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
15157 2001-08-01  Akim Demaille  <akim@epita.fr>
15159         Version 2.52a.
15161 2001-08-01  Akim Demaille  <akim@epita.fr>
15163         * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
15164         `die'.
15165         (&END): New.
15166         * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
15167         `END', as `Autom4te::General::END' will be triggered.
15168         * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
15169         * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
15170         system to run `mv', `rm', and `cmp'.
15172 2001-08-01  Akim Demaille  <akim@epita.fr>
15174         * lib/Autom4te/General.pm (&unique): New.
15175         * bin/autoscan.in (&output): Use it to issue trace requests once.
15177 2001-08-01  Akim Demaille  <akim@epita.fr>
15179         * lib/Autom4te/General.pm: New.
15180         * bin/autom4te.in (Autom4te::General): Use it.
15181         ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
15182         (&find_configure_ac, &find_slave): Remove.
15183         * bin/autoscan.in: Likewise.
15184         * bin/autoupdate.in: Likewise.
15186 2001-08-01  Akim Demaille  <akim@epita.fr>
15188         * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
15189         * autoheader.in, autoreconf.in, autoupdate.in: Move to...
15190         * bin: here, new directory.
15191         * lib/Autoconf: Rename as...
15192         * lib/Autom4te: this, to please case insensitive junkie OSes.
15194 2001-08-01  Akim Demaille  <akim@epita.fr>
15196         * autom4te.in ($m4): Handle the --nesting-limit.
15197         * autoconf.in (M4): Remove.
15199 2001-08-01  Akim Demaille  <akim@epita.fr>
15201         * autoconf.in ($AWK): Remove, no longer used.
15202         * test/tools.at: Use AT_CHECK_AUTOCONF.
15203         (AWK portability): Remove, for autoconf no longer uses AWK.
15204         (Syntax of the Perl scripts): New.
15205         * configure.ac: autoconf no longer needs an AWK with a good
15206         regexp engine.
15207         Use a static test on AC_PACKAGE_VERSION.
15208         * autom4te.in (&up_to_date_p): Output depends on the arguments.
15209         * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
15210         * tests/atconfig.in (PERL): New.
15212 2001-08-01  Akim Demaille  <akim@epita.fr>
15214         * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
15215         (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
15216         (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
15217         (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
15218         (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
15219         (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
15220         (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
15221         (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
15222         (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
15223         (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
15224         (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
15225         (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
15226         (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
15227         * lib/autoconf/c.m4: here, new file.
15229         * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
15230         (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
15231         (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
15232         (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
15233         (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
15234         (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
15235         (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
15236         (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
15237         (AC_F77_FUNC): Move to...
15238         * lib/autoconf/fortran.m4: here, new file.
15240 2001-08-01  Akim Demaille  <akim@epita.fr>
15242         * acfunctions.m4: Rename as...
15243         * lib/autoconf/functions.m4: this.
15244         * acgeneral.m4: Rename as...
15245         * lib/autoconf/general.m4: this.
15246         * acheaders.m4: Rename as...
15247         * lib/autoconf/headers.m4: this.
15248         * aclang.m4: Rename as...
15249         * lib/autoconf/lang.m4: this.
15250         * acoldnames.m4: Rename as...
15251         * lib/autoconf/oldnames.m4: this.
15252         * acspecific.m4: Rename as...
15253         * lib/autoconf/specific.m4: this.
15254         * actypes.m4: Rename as...
15255         * lib/autoconf/types.m4: this.
15256         * autoconf.m4: Rename as...
15257         * lib/autoconf/autoconf.m4: this.
15259         * m4sugar.m4: Rename as...
15260         * lib/m4sugar/m4sugar.m4: this.
15261         * m4sh.m4: Rename as...
15262         * lib/m4sugar/m4sh.m4: this.
15264         * tests/atgeneral.m4: Rename as...
15265         * lib/autotest/general.m4: this.
15267         * acfunctions: Rename as...
15268         * lib/autoscan/functions: this.
15269         * acheaders: Rename as...
15270         * lib/autoscan/headers: this.
15271         * acidentifiers: Rename as...
15272         * lib/autoscan/identifiers: this.
15273         * aclibraries: Rename as...
15274         * lib/autoscan/libraries: this.
15275         * acmakevars: Rename as...
15276         * lib/autoscan/makevars: this.
15277         * acprograms: Rename as...
15278         * lib/autoscan/programs: this.
15280 2001-08-01  Akim Demaille  <akim@epita.fr>
15282         * doc/autoconf.texi: Moving/deleting open files is not portable.
15283         Portability issues for `.' (source), and more information about sed.
15285 2001-07-25  Steven G. Johnson  <stevenj@alum.mit.edu>
15287         * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
15288         which has a special meaning and is not a reference to libibmil.a.
15289         Reported by Matteo Frigo.
15291 2001-07-25  Pavel Roskin  <proski@gnu.org>
15293         * autom4te.in (mktmpdir): Strip trailing newline from mktemp
15294         output.
15296 2001-07-25  Akim Demaille  <akim@epita.fr>
15298         * autoconf.in: Try to define the variables before using them.
15299         * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
15300         instead of `$perllibdir'.
15301         * tests/atconfig.in ($autom4te_perllibdir): Export it.
15303 2001-07-25  Akim Demaille  <akim@epita.fr>
15305         * autoconf.in (ac_LF_and_DOT): Remove, unused.
15307 2001-07-24  Akim Demaille  <akim@epita.fr>
15309         Let autoconf use autom4te for traces.
15311         * autoconf.in ($task, task trace): Remove, merely pass --trace to
15312         autom4te.
15313         * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
15314         (Because I found no way for autom4te to accept `-').
15315         * autom4te.in (&Request::request): Beware of M4 builtins.
15316         (END): Don't try to remove the content of an empty dir.
15317         (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
15318         (&handle_output): Set a default value to `$forbidden'.
15319         * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
15320         ($autoconf): Pass --debug and --verbose.
15321         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
15322         cache.
15324 2001-07-24  Akim Demaille  <akim@epita.fr>
15326         Let autoconf use autom4te to create configure.
15328         * autoconf.in ($automate): New var.
15329         (task script): Use autom4te.
15330         * autom4te.in (File::Spec): Use it.
15331         (&find_file): New.
15332         (&parse_args): --warning is -W, not -w.
15333         Find the top level files.
15334         (&handle_m4): Pass the warnings flags.
15335         Don't report verbosely m4's failures, unless requested.
15336         (&handle_output): Don't complain for forbidden tokens in comments.
15337         Be sure to report all the forbidden tokens within a single line.
15338         (&trace_format_to_m4): Preserve `$_'.
15339         (&handle_traces): Sort the output macros.
15340         (&up_to_date_p): Find the files before trying to get its time stamp.
15342 2001-07-24  Akim Demaille  <akim@epita.fr>
15344         * Makefile.am: Ship, build and install Autom4te.
15345         (SUBDIRS): Add lib.
15346         * lib/Autoconf/Struct.pm: New, from Automake 1.5.
15347         * configure.in: Require Perl.
15348         * man/autom4te.in: New.
15350 2001-07-19  Paul Eggert  <eggert@twinsun.com>
15352         * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
15353         example, rather than (exit 1); exit (which isn't portable).
15355 2001-07-18  Akim Demaille  <akim@epita.fr>
15357         Version 2.52.
15359 2001-07-18  Akim Demaille  <akim@epita.fr>
15361         The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
15362         was run, while they are needed also when it is expanded.
15363         Reported by Nicolas Joly.
15365         * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
15366         (AC_LANG_PROGRAM(C)): Use it instead of depending upon
15367         AC_F77_DUMMY_MAIN being expanded.
15369 2001-07-18  Akim Demaille  <akim@epita.fr>
15371         * configure.in: Bump to 2.51a.
15373 2001-07-17  Akim Demaille  <akim@epita.fr>
15375         Version 2.51.
15377 2001-07-17  Akim Demaille  <akim@epita.fr>
15379         * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
15380         Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
15382 2001-07-17  Akim Demaille  <akim@epita.fr>
15384         The runtime test for AC_FUNC_GETPGRP fails when prototypes are
15385         used.  Well, then use the prototypes when you can, and runtime as
15386         a last resort.
15387         Reported by Artur Frysiak
15389         * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
15390         (AC_FUNC_GETPGRP): Use it.
15391         First try to compile with 0-ary or 1-ary calls.
15393 2001-07-17  Akim Demaille  <akim@epita.fr>
15395         * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
15396         replacement type.
15397         From Paul Eggert.
15399 2001-07-17  Akim Demaille  <akim@epita.fr>
15401         * Makefile.maint: Sync. with cppi 1.10.
15403 2001-07-17  Akim Demaille  <akim@epita.fr>
15405         * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
15406         AC_F77_DUMMY_MAIN has been run.
15407         From Pavel Roskin and Steven G. Johnson.
15409 2001-07-17  Akim Demaille  <akim@epita.fr>
15411         * configure.in: Rename as...
15412         * configure.ac: this.
15414 2001-07-17  Akim Demaille  <akim@epita.fr>
15416         * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
15417         rules.
15418         From Marc Espie.
15419         * Makefile.maint (release-archive-dir): Rename as...
15420         (release_archive_dir): this, so that it can be specialized in
15421         Makefile.
15423 2001-07-14  Akim Demaille  <akim@epita.fr>
15425         * configure.in: Bump to 2.50d.
15427 2001-07-14  Akim Demaille  <akim@epita.fr>
15429         Version 2.50c.
15430         * Makefile.maint (alpha): Typo.
15432 2001-07-14  Akim Demaille  <akim@epita.fr>
15434         * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
15436 2001-07-14  Akim Demaille  <akim@epita.fr>
15438         * config/config.guess, config/config.sub, config/texinfo.tex
15439         * doc/standards.texi, doc/make-stds.texi: Update.
15441 2001-07-14  Akim Demaille  <akim@epita.fr>
15443         * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
15445 2001-07-14  Akim Demaille  <akim@epita.fr>
15447         * Makefile.maint (maintainer-check): Rename as...
15448         (maintainer-distcheck): this.
15449         (changelog-check, static-check): New.
15450         Use them.
15452 2001-07-14  Kevin Ryde  <user42@zip.com.au>
15454         * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
15455         for CXX is g++, not gcc.
15457 2001-07-14  Akim Demaille  <akim@epita.fr>
15459         * doc/autoconf.texi (Files): New subsection.
15461 2001-07-14  Akim Demaille  <akim@epita.fr>
15463         * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
15464         of...
15465         (Generic Compiler Characteristics): this.
15466         (C++ Compiler): New subsection.
15468 2001-07-14  Akim Demaille  <akim@epita.fr>
15470         * autoscan.in: Use IO::File.
15471         Adjust all the routines to use it.
15472         ($log): New file (autoscan.log).
15473         (output): Dump detailed logs into $log, and a shortened version to
15474         stderr.
15475         (&scan_makefile): Refine the regexp catching tokens in the code.
15476         * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
15477         and the `configure.ac' checking feature.
15479 2001-07-12  Akim Demaille  <akim@epita.fr>
15481         For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
15482         Reported by Michael Elizabeth Chastain.
15484         * autoconf.in: Refuse such AWK.
15485         * configure.in: Likewise.
15486         * Makefile.am (acversion.m4): Do not use move-if-change this file
15487         has dependencies.
15488         * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
15490 2001-07-10  Jens Petersen  <petersen@redhat.com>
15492         * autoscan.in (&scan_makefile): Improve programs regexp to parse
15493         things like "g++", "file.c" and "some-conf" as tokens.
15494         (&scan_file): Match C++ files extensions.
15495         If the filename extension is C++ then ask for c++.
15497 2001-07-05  Steven G. Johnson  <stevenj@alum.mit.edu>
15499         * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
15500         AC_TRY_LINK_FUNC, to check whether defining a dummy
15501         main-like routine is needed for linking with F77 libs.
15503 2001-07-05  Pavel Roskin  <proski@gnu.org>
15505         * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
15506         after using break.
15507         (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
15508         linking.
15510 2001-07-05  Akim Demaille  <akim@epita.fr>
15512         * Makefile.am (move_if_change): New.  Use it instead of `mv'.
15513         (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
15514         Makes' lives.
15515         Reported by Nicolas Joly.
15517 2001-07-04  Akim Demaille  <akim@epita.fr>
15519         * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
15520         up.
15521         * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
15522         warnings from compilers.
15523         * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
15524         for all the compilers, not only GNU.  Hence move from here...
15525         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
15527 2001-07-04  Akim Demaille  <akim@epita.fr>
15529         * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
15530         (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
15531         AC_COMPILE_IFELSE.
15533 2001-07-04  Akim Demaille  <akim@epita.fr>
15535         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
15536         the ``strings.h'' change claimed below.
15538 2001-07-04  Akim Demaille  <akim@epita.fr>
15540         * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
15542 2001-07-04  Akim Demaille  <akim@epita.fr>
15544         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
15545         strings.h if usable with string.h.
15546         Suggested by Paul Eggert.
15548 2001-07-04  Akim Demaille  <akim@epita.fr>
15550         * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
15551         From Jens Petersen.
15553 2001-07-03  Akim Demaille  <akim@epita.fr>
15555         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
15556         etc. in the log.
15558 2001-07-03  Akim Demaille  <akim@epita.fr>
15560         * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
15561         compiler, not the preprocessor.
15562         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
15563         dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
15564         the right thing.
15565         * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
15566         earlier if there are.
15568 2001-07-03  Akim Demaille  <akim@epita.fr>
15570         * autoscan.in ($initfile): Remove.
15571         (&find_file): Rename as...
15572         (&scan_file): this.
15573         Immediately scan the current file, instead of gathering them, and
15574         later having them handled by &scan_files.
15575         (&scan_files): Merely invoke Find::File.
15576         Adjust.
15578 2001-07-02  Akim Demaille  <akim@epita.fr>
15580         * autoscan.in: Formatting changes, matching the invocation order.
15581         (File::Find): Use it instead of Perl 4's `find.pl'.
15582         (&wanted): Rename as...
15583         (&find_file): this.
15585 2001-07-01  Pavel Roskin  <proski@gnu.org>
15587         * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
15588         break in the argument to AC_TRY_LINK_FUNC.
15589         (AC_F77_MAIN): Remove conftest* after using break in the
15590         argument to AC_TRY_LINK.
15592 2001-07-01  Steven G. Johnson  <stevenj@alum.mit.edu>
15594         Add alternate 'main' routine detection for linking C/C++ with Fortran,
15595         fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
15597         * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
15598         dummy alternate main is required even if the user provides her own
15599         'main'.
15600         (AC_F77_MAIN): New macro to detect whether it is possible to
15601         provide an alternate 'main' function name, using the 'main' from
15602         the Fortran libraries.
15603         (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
15604         cross-language link tests can be performed successfully.
15605         (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN.  Also put $FLIBS
15606         after $LIBS, for consistency; this should be the general rule since
15607         the user may want to link to Fortran libraries that require $FLIBS.
15608         * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
15610 2001-06-29  Pavel Roskin  <proski@gnu.org>
15612         * atgeneral.m4 (AT_CHECK): Add a newline to the end of
15613         at-stdout and at-stderr instead of removing the newline
15614         from the echo output, which is not guaranteed to work.
15616 2001-06-28  Jens Petersen  <petersen@redhat.com>
15618         * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
15619         confdefs.h when non-zero.
15621 2001-06-28  Akim Demaille  <akim@epita.fr>
15623         * configure.in: Bump to 2.50c.
15625 2001-06-26  Akim Demaille  <akim@epita.fr>
15627         Version 2.50b.
15629 2001-06-26  Akim Demaille  <akim@epita.fr>
15631         Version 2.50a.
15633 2001-06-25  Pavel Roskin  <proski@gnu.org>
15635         * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
15636         argument, AUTOCONF-FLAGS.
15637         * tests/mktests.sh (update_exclude_list): Add
15638         AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
15639         * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
15640         AC_FUNC_WAIT3 with "-W no-obsolete".
15642 2001-06-25  Akim Demaille  <akim@epita.fr>
15644         * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
15646 2001-06-25  Akim Demaille  <akim@epita.fr>
15648         * autoscan.in (%macro): Now maps from word to list of macros.
15649         (&init_tables): Die when a word which is already handled by
15650         explicit macros is mapped to the default macro.
15651         (&print_unique): Remove, inlined in...
15652         (&output_kind): here.
15653         (File::Basename): Use it.
15654         (&output): Sort the CONFIG_FILES.
15655         * acheaders: Normalize.
15656         * acfunctions: Likewise.
15658 2001-06-25  Akim Demaille  <akim@epita.fr>
15660         * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
15661         characteristics in the logs.
15662         Suggested by Mo DeJong.
15664 2001-06-24  Akim Demaille  <akim@epita.fr>
15666         * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
15667         (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
15668         * doc/autoconf.texi (Autoconf 2.13): New section.
15670 2001-06-24  Akim Demaille  <akim@epita.fr>
15672         * autoconf.in (Task traces): Separate the error messages from the
15673         traces to improve robustness.
15675 2001-06-23  Akim Demaille  <akim@epita.fr>
15677         * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
15678         three as failures are unlikely, and speed matters.
15680 2001-06-23  Akim Demaille  <akim@epita.fr>
15682         * doc/autoconf.texi (Redefined M4 Macros): New.
15684 2001-06-23  Akim Demaille  <akim@epita.fr>
15686         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
15687         inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
15688         5.3.
15690 2001-06-23  Paolo Bonzini  <bonzini@gnu.org>
15692         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
15693         config.status targets to after the evaluation of the INIT-CMDS.
15694         Double quote config.status targets (used to be single quoted).
15696 2001-06-23  Akim Demaille  <akim@epita.fr>
15698         * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
15699         Check the content of the created file.
15700         Check the ./config.status command line invocation.
15702 2001-06-23  Akim Demaille  <akim@epita.fr>
15704         * tests/foreign.at (Libtool): Reject prehistoric versions.
15706 2001-06-23  Akim Demaille  <akim@epita.fr>
15708         * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
15709         preexisting files matching a.*.
15711 2001-06-23  Akim Demaille  <akim@epita.fr>
15713         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
15714         stderr.
15715         * doc/autoconf.texi (AC_ARG_VAR): Update.
15717 2001-06-21  Akim Demaille  <akim@epita.fr>
15719         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
15720         precious variables have changed.
15721         * tests/torture.at (AC_ARG_VAR): Adjust.
15723 2001-06-21  Akim Demaille  <akim@epita.fr>
15725         ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
15726         but some sed choke on multiple `;', and other tools (e.g.,
15727         Automake), include the separator themselves.
15729         * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
15731 2001-06-19  Tim Van Holder  <tim.van.holder@pandora.be>
15733         * doc/autoconf.texi (Functions Portability): Rename as...
15734         (Function Portability): this.
15735         (Function Portability): Document potential problems with unlink().
15737 2001-06-19  Paul Eggert  <eggert@twinsun.com>
15739         * NEWS, doc/autoconf.texi: Document quadrigraphs.
15741 2001-06-18  Akim Demaille  <akim@epita.fr>
15743         * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
15745 2001-06-18  Ruediger Kuhlmann  <info@ruediger-kuhlmann.de>
15747         * acfunctions.m4: (AC_FUNC_VFORK) rename as...
15748         (_AC_FUNC_VFORK): this.
15749         Remove AC_DEFINEs and don't guess cross-compilation values.
15750         (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
15751         (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
15752         define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
15753         vfork doesn't work.
15754         Guess values if cross-compiling, but warn.
15755         * acfunctions: Add AC_FUNC_FORK.
15756         * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
15757         and vfork appropriately.
15759 2001-06-18  Akim Demaille  <akim@epita.fr>
15761         * doc/autoconf.texi (Functions Portability): New section.
15763 2001-06-18  Akim Demaille  <akim@epita.fr>
15765         * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
15766         in $M4.
15767         Suggested by Andreas Schwab.
15769 2001-06-18  Akim Demaille  <akim@epita.fr>
15771         * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
15772         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
15773         (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
15774         (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
15775         Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
15776         and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
15777         (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
15778         the converse).
15780 2001-06-18  Akim Demaille  <akim@epita.fr>
15782         * doc/autoconf.texi (ms): New index.
15783         (Macro Index): Rename as...
15784         (Autoconf Macro Index): this.
15785         (M4 Macro Index): New appendix.
15786         (Programming in M4): New chapter.
15787         Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
15788         (Quoting): Rename as...
15789         (M$ Quotation): this.
15790         Be part of `Programming in M4).
15792 2001-06-18  Nicolas Joly  <njoly@pasteur.fr>
15794         * tests/torture.at (AC_ARG_VAR): Set variables and export them
15795         in separate statements for compatibility with Tru64 v5.1.
15797 2001-06-17  Akim Demaille  <akim@epita.fr>
15799         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
15800         current values of the precious variables, not the previously
15801         cached values.
15802         Pass precious variables which are set to config.status.
15803         * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
15804         * tests/torture.at (AC_ARG_VAR): New.
15806 2001-06-15  Paul Eggert  <eggert@twinsun.com>
15808         * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
15809         AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
15810         and explain why and how to replace them.
15811         * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
15812         * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
15814 2001-06-15  Akim Demaille  <akim@epita.fr>
15816         `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
15817         Reported by Bruno Haible.
15819         * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
15820          (_AC_ARG_VAR_PRECIOUS): to here.
15822 2001-06-15  Pavel Roskin  <proski@gnu.org>
15824         * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
15825         an unused pointer use cast to this type and `if' statement to
15826         avoid warnings from the compiler.
15827         (AC_HEADER_TIME): Likewise.
15828         * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
15829         in `if' statement to avoid warnings from the compiler. Declare
15830         ac_aggr static to avoid the need to initialize it.
15832 2001-06-14  Akim Demaille  <akim@epita.fr>
15834         * doc/autoconf.texi (Portable Shell): Move to follow `Writing
15835         Macros'.
15837 2001-06-13  Akim Demaille  <akim@epita.fr>
15839         * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
15840         Suggested by Alexander Mai.
15842 2001-06-13  Akim Demaille  <akim@epita.fr>
15844         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
15845         sys/types.h and sys/stat.h, and check for them.
15847 2001-06-13  Akim Demaille  <akim@epita.fr>
15849         * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
15850         INCLUDES.
15852 2001-06-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
15854         * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
15855         succeeds and only try adding libdnet upon a failure.
15857 2001-06-12  Akim Demaille  <akim@epita.fr>
15859         * autoscan.in (&output_kind): Output the comment only if it exists.
15860         (%kind_comment): Add entry for `programs'.
15861         (&output_programs): Use &output_kind.
15862         (&output_functions, &output_identifiers, &output_headers)
15863         (&output_programs): Inline, and remove.
15865 2001-06-12  Akim Demaille  <akim@epita.fr>
15867         * autoscan.in (%kind_comment): New.
15868         (output_kind): New.
15869         (output_functions, output_identifiers, output_headers): Use it.
15871 2001-06-12  Akim Demaille  <akim@epita.fr>
15873         * autoscan.in (&print_unique): Take `$kind' and `$word' as
15874         arguments, to factor indirections into `%macro' and `%used'.
15875         (%generic_macro): Fix a typo.
15877 2001-06-12  Akim Demaille  <akim@epita.fr>
15879         * aclibraries: New.
15880         * autoscan.in (@kinds): Add `libraries'.
15881         Use `@kinds' instead of hard coded lists.
15882         (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
15883         Remove, replaced by...
15884         (%used): this.
15886 2001-06-12  Akim Demaille  <akim@epita.fr>
15888         * autoscan.in (%functions_macros %headers_macros)
15889         (%identifiers_macros %programs_macros %makevars_macros): Remove,
15890         replaced by...
15891         (%macro): New.
15893 2001-06-11  Raja R Harinath  <harinath@cs.umn.edu>
15895         * aclang.m4 (AC_NO_EXECUTABLES): Override
15896         _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
15898 2001-06-11  Akim Demaille  <akim@epita.fr>
15900         * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
15901         trailing new line.
15902         Reported by Andreas Schwab.
15904 2001-06-11  Akim Demaille  <akim@epita.fr>
15906         * Makefile.am, Makefile.maint: Typos.
15908 2001-06-09  Akim Demaille  <akim@epita.fr>
15910         * doc/autoconf.texi (Here-Documents): New section, gathering
15911         documentation about here-documents.
15912         Use `href', not `uref', and other changes.
15914 2001-06-09  Akim Demaille  <akim@epita.fr>
15916         * doc/autoconf.texi (Portable Shell Programming): Promoted as a
15917         chapter.
15919 2001-06-09  Akim Demaille  <akim@epita.fr>
15921         * doc/autoconf.texi (Limitations of Builtins): Complete the
15922         description of the here-docs penalties with Alexandre Oliva's
15923         explanations.
15925 2001-06-01  Paul Eggert  <eggert@twinsun.com>
15927         * doc/autoconf.texi: Talk about here documents and speedups.
15928         Do not use "echo" on arbitrary strings.
15929         Spell "here-documents" consistently with the standard.
15931 2001-06-09  Akim Demaille  <akim@epita.fr>
15933         * doc/autoconf.texi (Concept Index): Introduce it.
15934         Regenerate the menus.
15936 2001-06-09  Akim Demaille  <akim@epita.fr>
15938         * Makefile.maint, GNUmakefile: New, from Jim Meyering.
15939         * config/prev-version.txt: New.
15940         * config/move-if-change: New, for GNU libc.
15942 2001-06-06  Pavel Roskin  <proski@gnu.org>
15944         * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
15946 2001-06-06  Akim Demaille  <akim@epita.fr>
15948         * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
15949         properly when $1 is not a literal.
15950         Fixes PR Autoconf/187, reported by Bram Moolenaar.
15952 2001-06-06  Akim Demaille  <akim@epita.fr>
15954         Invoking AC_COPYRIGHT before AC_INIT fails.
15956         * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
15957         * acgeneral.m4 (_m4_divert(VERSION_FSF))
15958         (_m4_divert(VERSION_USER)): New.
15959         (AC_COPYRIGHT): $2 is the diversion to use.
15960         (_AC_INIT_COPYRIGHT): Use the FSF diversion.
15961         (AC_INIT): Remove dead comments as now it's commutative.
15963 2001-06-06  Akim Demaille  <akim@epita.fr>
15965         * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
15966         PR autoconf/187.
15968 2001-06-05  Akim Demaille  <akim@epita.fr>
15970         * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
15971         can be empty.
15972         `*dir' variables cannot be NONE.
15973         Reported by Mark Kettenis.
15975 2001-06-05  Paul Eggert  <eggert@twinsun.com>
15977         * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
15979 2001-06-04  Akim Demaille  <akim@epita.fr>
15981         * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
15982         (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
15983         (AC_TR_SH): Move as...
15984         * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
15985         (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
15986         (AS_TR_SH): these.
15987         (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
15988         (_AS_TR_SH_PREPARE): New.
15989         (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
15990         * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
15992 2001-06-02  Akim Demaille  <akim@epita.fr>
15994         * Makefile.am (.m4.m4f): Pass the options first.
15995         Fixes PR autoconf/182.
15997 2001-06-02  Nathan Sidwell  <nathan@codesourcery.com>
15999         GNU getopt, when POSIXLY_CORRECT does not permute options and
16000         arguments.  So pass the options first.
16001         Fixes PR autoconf/184.
16003         * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
16004         (run_m4): Remove files.
16005         (run_m4f): Remove.
16006         Update remainder of script to use them.
16007         (for warning in): Do not use a literal comma as it will not be
16008         split by IFS.
16010 2001-06-02  Christian Marquardt  <marq@gfz-potsdam.de>
16012         * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
16013         Fortran compilers to check.
16014         (_AC_PROG_F77_V): Add '-###' as a possible option to print
16015         information on library and object files.
16016         (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
16017         to check.
16019 2001-06-02  Akim Demaille  <akim@epita.fr>
16021         * autom4te.in (Request::@request): Declare with `vars', not `my',
16022         as it prevents updates via `do FILENAME'.
16024 2001-06-02  Akim Demaille  <akim@epita.fr>
16026         * configure.in (standards_texi): Remove, dead code.
16028 2001-06-02  Akim Demaille  <akim@epita.fr>
16030         * autom4te.in: New.
16032 2001-06-02  Pavel Roskin  <proski@gnu.org>
16034         * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
16035         for signals other than 0 - exit with code 1.
16036         * m4sh.m4 (AS_TMPDIR): Likewise.
16037         * autoconf.in: Likewise. Also don't rely on exit == exit $?.
16038         * autoheader.in: Likewise.
16039         * autoreconf.in: Likewise.
16040         * tests/torture.at (Signal handling): New test for the above.
16042 2001-06-01  Akim Demaille  <akim@epita.fr>
16044         * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
16045         message.
16047 2001-05-31  Akim Demaille  <akim@epita.fr>
16049         * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
16050         Add copyright and comments.
16051         * acheaders: Add stdint.h.
16052         Suggested by Paul Eggert.
16054 2001-05-31  Akim Demaille  <akim@epita.fr>
16056         * atgeneral.m4 (AT_INIT): Use $SHELL.
16057         * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
16059 2001-05-31  Akim Demaille  <akim@epita.fr>
16061         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
16062         stdint.h.
16063         From Paul Eggert and Lars Hecking.
16065 2001-05-31  Akim Demaille  <akim@epita.fr>
16067         * tests/base.at: Adjust line numbers in error messages.
16069 2001-05-31  Akim Demaille  <akim@epita.fr>
16071         * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
16072         to emit the bangshe line.
16073         Reported by David Carter.
16075 2001-05-30  Steven G. Johnson  <stevenj@alum.mit.edu>
16077         * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
16078         Fortran (95) compilers to check.
16080 2001-05-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
16082         * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
16083         Macro Archive URL.
16085 2001-05-23  Pavel Roskin  <proski@gnu.org>
16087         * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
16088         _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
16089         (AC_PROG_CXXCPP): Likewise.
16091 2001-05-22  Akim Demaille  <akim@epita.fr>
16093         * config: New directory.
16094         * configure.in: AC_CONFIG_AUX_DIR it.
16095         * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
16097 2001-05-22  Akim Demaille  <akim@epita.fr>
16099         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
16100         * autoupdate.in: Specify the Emacs mode.
16101         * acversion.m4.in: Rename as...
16102         * acversion.m4: this.
16103         * tests/Makefile.am (CLEANFILES): More garbage.
16105 2001-05-22  Akim Demaille  <akim@epita.fr>
16107         * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
16108         Rename as...
16109         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
16110         these.
16112 2001-05-21  Akim Demaille  <akim@epita.fr>
16114         * configure.in: Bump to 2.50a.
16117         -----
16119         Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free
16120         Software Foundation, Inc.
16122         Copying and distribution of this file, with or without
16123         modification, are permitted provided the copyright notice and this
16124         notice are preserved.