Avoid some autoreconf -Wall warnings.
[autoconf/ericb.git] / ChangeLog
blobb4ceb28c5c9643b9b513288be045c1f4e11bed8d
1 2008-04-05  Eric Blake  <ebb9@byu.net>
3         Avoid some autoreconf -Wall warnings.
4         * configure.ac: Use proper quoting, to be a good example.
5         (PACKAGE_NAME): Remove setting covered by autoconf.
6         (AM_INIT_AUTOMAKE): Bump automake requirement, for html rules.
7         * doc/Makefile.am (TEXI2DVI): Remove settings covered by
8         automake.
9         (html, autoconf_1.html, standards_1.html): Likewise.
10         (TEXI2HTML, TEXI2HTML_FLAGS): Remove unused macros.
11         * Makefile.am (html): Likewise.
12         * doc/autoconf.texi (Quoting and Parameters): Add missing section
13         name.
14         * tests/Makefile.am (AUTOMAKE_OPTIONS): Intentionally ignore
15         warning about our override, until Automake is fixed.
16         * README-hacking: Document minimum requirements for bootstrap.
18 2008-04-03  Eric Blake  <ebb9@byu.net>
20         Fix version number generation in man pages.
21         * Makefile.am (EXTRA_DIST): Distribute .version.
22         (.version): New rule.
23         * man/Makefile.am (common_dep): Depend on .version, not
24         configure.ac.
25         (.x.1): Use package name for version string.
26         * GNUmakefile [!_have-Makefile]: Sync from upstream, again.
27         * build-aux/git-version-gen: Sync from upstream.
29         More maintainer tweaks: pass 'make maintainer-distcheck'.
30         * GNUmakefile (_is-dist-target): Sync from upstream.
31         * build-aux/vc-list-files: Sync from upstream, yet again.
32         * tests/atlocal.in (unsupported_fs_chars): Always remove tdir.
33         * tests/Makefile.am (EXTRA_DIST): Don't distribute the built
34         package.m4.
35         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump year.
37         Fix VPATH 'make syntax-check'.
38         * maint.mk (VC_LIST, VC_LIST_EXCEPT, sc_changelog)
39         (sc_prohibit_jm_in_m4, makefile-check): Support VPATH.
40         (author_mark_check): Avoid error message.
41         * build-aux/vc-list-files: Sync from upstream again.
42         * build-aux/texinfo.tex: Likewise.
44         Sync files from upstream, and pass 'make syntax-check'.
45         * config/announce-gen: Move...
46         * build-aux/announce-gen: ...here, and sync from gnulib.
47         * Makefile.am (EXTRA_DIST): Adjust accordingly.
48         * cfg.mk (announce_gen): Likewise.
49         (prev_version_file): Delete, relying on default in maint.mk.
50         (gpg_key_ID): New macro.
51         (url_dir_list): Rewrite to match coreutils.
52         * config/prev-version.txt: Move...
53         * .prev-version: ...here, and adjust to 2.61.
54         * build-aux/vc-list-files: Sync from coreutils.
55         * maint.mk: Resynchronize with coreutils, where possible.
56         (ME): Remove $(srcdir) from definition.
57         (CVS): Delete.
58         (GIT, VC, VC-tag): New macros.
59         (CVS_LIST, CVS_LIST_EXCEPT): Rename...
60         (VC_LIST, VC_LIST_EXCEPT): ...to this.
61         (cvs-tag-check): Delete.
62         (cvs-diff-check): Rename...
63         (vc-diff-check): ...to this.
64         (sc_file_system): Allow FHS acronym.
65         * doc/autoconf.texi (Particular Functions): Recommend
66         unconditional <config.h>.
67         * build-aux/config.guess: Sync from upstream (manually).
68         * build-aux/config.sub: Likewise.
69         * build-aux/texinfo.tex: Likewise.
70         * doc/make-stds.texi: Likewise.
71         * doc/standards.texi: Likewise.
72         * .gitattributes: Ignore whitespace problems in upstream files.
74 2008-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76         * doc/autoconf.texi (Limitations of Usual Tools): Mention awk %u
77         bug on HP-UX/IA.
78         Report by Peter O'Gorman.
80 2008-04-02  Eric Blake  <ebb9@byu.net>
82         Recommend the just-released M4 1.4.11.
83         * NEWS: Update recommendation.
84         * README: Likewise.
85         * doc/autoconf.texi (Introduction): Likewise.
86         * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
88 2008-04-01  Eric Blake  <ebb9@byu.net>
90         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Bump
91         copyright year.
93 2008-03-28  Peter O'Gorman  <peter@pogma.com>
95         Find X11 on Mac OS X too.
96         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT,_AC_PATH_X_XMKMF):
97         Check for libX11 with extensions dylib la and dll too.
98         * THANKS: Update.
99         Reported by Martin Costabel.
101 2008-03-28  Eric Blake  <ebb9@byu.net>
103         Update TODO based on completed tasks.
104         * TODO (AC_PROG_INSTALL takes multiple files): Done.
105         (AC_GNU_SOURCE deprecation): Done, see AC_USE_SYSTEM_EXTENSIONS.
106         (AC_COMPILE_IFELSE documentation): Done.
107         (Tracing builtins): Done, now that we require M4 1.4.5.
108         (AC_PROG_CC_POSIX suggestion, providing header files)
109         (AC_TYPE_SIGNAL): Not needed; gnulib's approach is better.
110         (cache consistency): Done with precious variables.
112 2008-03-26  Eric Blake  <ebb9@byu.net>
114         Document --trace=macro:format in --help output.
115         * bin/autom4te.in (help): Mention optional trace format.
116         * bin/autoconf.as (usage): Likewise.
118         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Fix
119         typos in last patch.
120         Reported by Ralf Wildenhues.
122 2008-03-26  Jim Meyering  <meyering@redhat.com>
124         Fix texinfo syntax error.
125         * doc/autoconf.texi (Limitations of Usual Tools): s/@kbd {/@kbd{/
127 2008-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
129         Warn, not fail on whitespace-only precious variable differences.
130         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Output
131         precious variable differences less ambiguous with `ugly-quotes'.
132         If their settings differ only in whitespace, do not fail, but
133         reuse the old value.
134         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Extend macro to allow
135         an optional status and expected-warning argument.  Fix m4
136         quotation for initial value.
137         (AC_ARG_VAR): Also test for whitespace-only differences, and
138         that the old value is retained in this case.
139         * doc/autoconf.texi (Setting Output Variables): Document this.
140         * NEWS: Update.
141         Report and initial patch by Paolo Bonzini.
143 2008-03-26  Eric Blake  <ebb9@byu.net>
145         Document busybox sed bug.
146         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Mention
147         restrictions when using back-references.
148         Reported by Vincent Lefevre:
149         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13013>.
151         Document Automake interaction with AC_CONFIG_MACRO_DIR.
152         * doc/autoconf.texi (Input): Mention ACLOCAL_AMFLAGS for automake
153         users.
154         * THANKS: Update.
155         Reported by Chris Pickett.
157 2008-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
159         * tests/autotest.at (Using atlocal): Quote instances of `pwd`.
161         * tests/local.at (AT_CHECK_M4): Factorize warning output
162         normalization.
163         Suggested by Eric Blake.
165 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
167         Fix .exe-related test failure on MinGW.
168         * tests/local.at (AT_CHECK_M4): Normalize `/bin/m4.exe' correctly
169         for comparing warning output.
171         Fix Fortran testsuite failures with gfortran 4.3.
172         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): When scanning
173         verbose compiler output, skip lines that set variables; gfortran
174         4.3 sets LIBRARY_PATH, COMPILER_PATH, COLLECT_GCC_OPTIONS.
175         * THANKS: Update.
176         Report by Vincent Lefèvre.
178 2008-03-21  Eric Blake  <ebb9@byu.net>
180         * GNUmakefile: Resynchronize with gnulib.
182         Document more uses of $cross_compiling.
183         * doc/autoconf.texi (Runtime): Document that a temporary override
184         is permissible.
185         * THANKS: Update.
186         Reported by Ineiev, example by Ralf Wildenhues.
188         Don't swallow $1 in textual local variables.
189         * lib/m4sugar/m4sugar.m4 (m4_combine): Don't use overquoting and
190         expansion of text arguments, as that swallows $1.
191         (m4_text_wrap): Likewise, by splitting out...
192         (_m4_text_wrap): ...new helper macro.  Also, allow arbitrary
193         expression for width.
194         * tests/m4sugar.at (m4@&t@_text_wrap): Test this.
195         (m4@&t@_combine): Likewise.
197 2008-03-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
199         Avoid leftover files on Leopard.
200         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove a.out.dSYM
201         directory created on darwin.
202         (AC_NO_EXECUTABLES): Likewise; also remove objects which may be
203         left over from a broken link.
204         * tests/c.at (AC_NO_EXECUTABLES (working linker))
205         (AC_NO_EXECUTABLES (broken linker)): New tests.
206         Report by Gary V. Vaughan.
208         * lib/autom4te.in (Automake-preselections): Trace
209         _AM_COND_IF, _AM_COND_ELSE, _AM_COND_ENDIF.
211 2008-03-20  Eric Blake  <ebb9@byu.net>
213         Kill more CVS references.
214         * README-cvs: Delete.  See README-hacking instead.
215         * README-hacking: Update wording, based on older file.
216         * BUGS: Remove CVS mention.
218 2008-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
220         * tests/tools.at (autotools and whitespace in file names): Skip
221         if aclocal is not present.
223 2008-03-20  Eric Blake  <ebb9@byu.net>
225         Sync GNUmakefile with gnulib.
226         * GNUmakefile (Makefile.cfg): Rename...
227         (cfg.mk): ...to this, and make optional.
228         (GNUmakefile.cfg): Delete, redundant with cfg.mk.
229         (Makefile.maint): Rename...
230         (maint.mk): ...to this.
231         (all) [!_have-Makefile]: Rename...
232         (abort-due-to-no-makefile): ...to this, and invoke via
233         .DEFAULT_GOAL to pick up all targets.
234         * Makefile.cfg: Rename...
235         * cfg.mk: ...to this.
236         * Makefile.maint: Rename...
237         * maint.mk ...to this.
238         (ME): Reflect name change.
239         (makefile-check, m4-check, author_mark_check, msg): Use $(ME)
240         rather than hard-coded name.
241         * GNUmakefile.cfg: Delete; move rules into cfg.mk.
242         * Makefile.am (EXTRA_DIST): Reflect file name changes.
243         * .x-sc_prohibit_atoi_atof: Likewise.
244         * lib/freeze.mk: Likewise.
246 2008-03-19  Stepan Kasal  <kasal@ucw.cz>
248         * doc/autoconf.texi (Introduction): Improve the paraphrase of
249         Henry Spencer's quotation.
251 2008-03-19  Eric Blake  <ebb9@byu.net>
253         AC_CONFIG_HEADERS replaced AC_CONFIG_HEADER.
254         * bin/autoscan.in (output): Avoid obsolete spelling.
255         * tests/local.at (AC_STATE_SAVE): Update usage.
256         * THANKS: Update.
257         Reported by John Calcote.
259         Emphasize that ease of configure triumphs over ease of autoconf.
260         * doc/autoconf.texi (Introduction): Expand on primary
261         vs. secondary goal of autoconf.
262         * THANKS: Update.
263         Inspired by Paul Smith.
265 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
267         * lib/Autom4te/FileUtils.pm (handle_exec_errors): New argument
268         $hint, show if the executing program does not exist.
269         (xsystem_hint): New function, like xsystem but allows to pass
270         a hint.
271         * bin/autoreconf.in: Use xsystem_hint for spawning autopoint and
272         libtoolize.
273         Report by Bruce Korb.
275 2008-03-14  Stepan Kasal  <kasal@ucw.cz>
277         * lib/Autom4te/ChannelDefs.pm, tests/fortran.at,
278         tests/mktests.sh, tests/wrapper.as: Fix typos.
280 2008-03-12  Eric Blake  <ebb9@byu.net>
282         Fix yesterday's regression in m4_wrap([$1]).
283         * lib/m4sugar/m4sugar.m4 (_m4_wrap): Don't directly invoke wrapped
284         text, since it may contain text that looks like parameters.
285         * tests/m4sh.at (AS@&t@_INIT cleanup): Enhance test.
287 2008-03-11  Eric Blake  <ebb9@byu.net>
289         Improve error messages for common testsuite bugs.
290         * lib/autotest/general.m4 (_AT_DEFINE_INIT, _AT_DEFINE_SETUP): New
291         macros for defining order-enforced macros.
292         (AT_INIT, AT_SETUP, AT_CLEANUP, AT_BANNER, AT_XFAIL_IF)
293         (AT_CAPTURE_FILE, AT_DATA, AT_CHECK, AT_CHECK_NOESCAPE): Add error
294         messages when order violations are detected.
295         * tests/autotest.at (AT_CHECK_AT_SYNTAX): New helper macro.
296         (AT_SETUP without AT_INIT, AT_BANNER without AT_INIT)
297         (AT_CLEANUP without AT_INIT, Missing AT_CLEANUP)
298         (AT_CHECK without AT_SETUP, AT_DATA without AT_SETUP)
299         (AT_XFAIL_IF without AT_DATA, AT_KEYWORDS without AT_SETUP,
300         (AT_CLEANUP without AT_SETUP, AT_BANNER inside AT_SETUP)
301         (AT_SETUP inside AT_SETUP, Multiple AT_INIT)
302         (Banner-only test suite): New tests.
303         Reported by Christopher Hulbert.
305         Tweak m4_wrap to force FIFO or LIFO semantics.
306         * lib/m4sugar/m4sugar.m4 (m4_wrap): Override M4 implementation.
307         (m4_wrap_lifo, _m4_wrap): New macros.
308         * lib/m4sugar/m4sh.m4 (AS_INIT): Combine all cleanup into known
309         order, prior to m4sugar's.
310         (_AS_DETECT_BETTER_SHELL): Use cleanup parameter, rather than
311         m4_wrap.
312         * lib/autotest/general.m4 (AT_INIT): Combine all cleanup into
313         known order, prior to m4sh's.
314         * doc/autoconf.texi (Diagnostic Macros) <m4_fatal>: Document
315         argument.
316         (Redefined M4 Macros) <m4_wrap>: Rewrite documentation to match
317         new behavior.
318         * tests/m4sh.at (AS_INIT cleanup): New test.
319         * NEWS: Document the change.
321 2008-03-10  Eric Blake  <ebb9@byu.net>
323         Encode nested autotest data.
324         * tests/autotest.at (AT_CHECK_AT_PREP): Avoid raw AT_ in output.
325         (unusual file names): Likewise.
326         (m4_pattern_allow): Remove loophole, to make it easier to catch
327         poorly written tests.
329         Factor some autotest tests.
330         * tests/autotest.at (AT_CHECK_AT_PREP): New macro, to factor out
331         common initialization.
332         (AT_CHECK_AT, Banners, Keywords and ranges, srcdir propagation)
333         (whitespace in absolute testdir, unusual file names): Use it.
335 2008-03-06  Eric Blake  <ebb9@byu.net>
337         Minor documentation fix.
338         * doc/autoconf.texi (Evaluation Macros): Fix typo.
340 2008-03-04  Eric Blake  <ebb9@byu.net>
342         Make AT_CHECK act like a simple command.
343         * lib/autotest/general.m4 (_AT_CHECK): Wrap commands in {;}.
344         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Test it.
346 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
348         On MinGW, substitution of CR and 0xFF fails.
349         * tests/torture.at (Substitute and define special characters):
350         MinGW awk cannot handle 0xFF, and on MinGW, the test does the
351         wrong thing for CR.
353 2008-03-04  Eric Blake  <ebb9@byu.net>
355         Pull in recent maintainer improvements from coreutils.
356         * GNUmakefile (_is-dist-target): 'make distclean' should not
357         trigger autoreconf.
358         (_dummy): Change directories before removing autom4te.cache.
359         (check dist distcheck install) [!_have-Makefile]: Provide nicer
360         diagnostics.
361         * configure.ac (AC_CONFIG_LINKS): Copy GNUmakefile into VPATH
362         builds, after initial bootstrap.
363         * Makefile.am (distclean-local): Work around current automake bug.
364         * Makefile.maint (ME): Allow VPATH usage.
366         Use git-merge-changelog when available.
367         * .gitattributes: New file.
368         * README-hacking: Document use of git-merge-changelog.
370         Work around cygwin bug.
371         * tests/atlocal.in (unsupported_fs_chars): Avoid cygwin bug where
372         "touch 't\'" creates regular file 't'.
374         Ignore tests that require read-only directories under root.
375         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Skip
376         no-write portion if user has root-like privileges.
378 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
380         * lib/autotest/general.m4 (AT_INIT): Fix detection of '-C -'.
382 2008-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
384         autoreconf -m now honors $MAKE.
385         * bin/autoreconf.in ($run_make): Renamed from ...
386         ($make): ... this.  Use now as command to run `make',
387         overridden by $MAKE.  Document this in --help output.
388         * doc/autoconf.texi (autoreconf Invocation): Document
389         all environment variables honored by autoreconf.
390         * NEWS: Update.
391         Report by Paul Eggert.
393 2008-03-03  Eric Blake  <ebb9@byu.net>
395         Documentation improvements.
396         * doc/autoconf.texi (Looping constructs): s/recurses/repeats/.
397         (Evaluation Macros): Drop `1' suffix from metasyntax variable name
398         that preceeds @dots.  Improve wording.
399         (Text processing Macros): Drop `1' suffix from metasyntax variable
400         name that preceeds @dots.
401         (Number processing Macros): Drop `1' suffix from metasyntax
402         variable name that preceeds @dots.  Improve wording.
403         * lib/m4sugar/m4sugar.m4 (m4_cmp): Comment wording fix.
404         Suggested by Ralf Wildenhues.
406 2008-03-02  Jim Meyering  <meyering@redhat.com>
408         Don't infloop upon "make dist".
409         * GNUmakefile: Merge from coreutils.
410         * Makefile.am (dist-hook): Inject .tarball-version into tarball,
411         not .version.
412         * configure.ac (AC_INIT): Use .tarball-version, not .version.
413         * build-aux/git-version-gen: Update from gnulib.
415 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
417         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
418         Before using /dev/full, check that it is a writable character
419         special device.
420         Report by Benoit Sigoure and Eric Blake.
422         Actually test that @configure_input@ is expanded correctly.
423         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
424         Actually check generated file contents for the name of the
425         generated file, using AC_PROG_FGREP and $FGREP.
427 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
429         Be nice with file systems that don't handle unusual characters.
430         * tests/atlocal.in (func_sanitize_file_name)
431         (func_sanitize_dir_name): New shell functions.
432         * tests/tools.at (autom4te and whitespace in file names)
433         (autotools and whitespace in file names): Use them.
434         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
435         Cover more potentially problemtic file names.  Use the new
436         functions.
438         Properly handle funny file names for headers in config.status.
439         The test suite did not cover this bug because the code was not
440         quoting properly the arguments of `rm -f' (which "fails" silently)
441         as well as the arguments of `diff' (whose output was redirected to
442         /dev/null so we couldn't see its error message).
443         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Properly quote the
444         file names passed to `rm' and `diff'.
445         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
446         Add a regression test.
448 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
449         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
451         Properly expand @configure_input@ in config.status.
452         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_MAIN_LOOP):
453         Escape the backslashes and ampersands in $configure_input before
454         using it in the sed replacement string to expand @configure_input@.
455         Report by Eric Blake and Patrick Welche.
457 2008-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
459         Ignore errors from ./run on w32.
460         * tests/autotest.at (whitespace in absolute testdir):
461         Ignore stderr for `./run' which fails to remove the
462         busy test directory on w32.
464 2008-02-22  Eric Blake  <ebb9@byu.net>
466         Improve documentation for writing autotest suites.
467         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention that
468         checks must live inside a test group.
469         Reported by Christopher Hulbert.
471 2008-02-21  Eric Blake  <ebb9@byu.net>
473         Sync git-version-gen from upstream.
474         * build-aux/git-version-gen: Pull from gnulib.
475         * configure.ac (AC_INIT): Adjust to new calling convention.
477 2008-02-12  Eric Blake  <ebb9@byu.net>
479         Avoid trailing space in config.h with AC_DEFINE([var], []).
480         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Explicitly mark empty
481         defines with a comment.
483 2008-02-08  Eric Blake  <ebb9@byu.net>
485         Fix texinfo typos in previous patch.
486         * doc/autoconf.texi (Site Defaults): s/[{}]/@&/g.
487         Reported by Ralf Wildenhues.
489         Describe a config.site that can be used for FHS compliance.
490         * doc/autoconf.texi (Site Defaults): Fix typo.  Add new example
491         for FHS.
492         * THANKS: Update.
493         Reported by Jules Colding and Ralf Wildenhues.
495 2008-02-02  Eric Blake  <ebb9@byu.net>
497         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Fix typo.
499 2008-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
501         * lib/autotest/general.m4 (AT_INIT): Fix --clean to work
502         again, broken since introduction of `-C dir'.
503         * tests/autotest.at (Choosing where testsuite is run): Test it.
505 2008-01-30  Paul Eggert  <eggert@cs.ucla.edu>
507         * doc/autoconf.texi: Update Back-Cover text to reflect new GNU wording.
509 2008-01-29  Eric Blake  <ebb9@byu.net>
511         Fix more autotest regressions.
512         * lib/autotest/general.m4 (AT_LINE): Fix regression from
513         2007-10-04 when file name is `dnl'.
514         (AT_INIT) <PREPARE_TESTS>: Move command-line assignments...
515         <TESTS_BEGIN>: ...to this new diversion, to fix regression from
516         yesterday in libtool's testsuite.
517         (_AT_ARG_OPTION): Detect write failure.
518         * doc/autoconf.texi (Diversion support): Document PREPARE_TESTS to
519         make libtool's use kosher.  Document m4_init.
520         (Programming in M4sh): Document AS_INIT.
521         (Writing Testsuites): Document limitation of AT_DATA file name.
522         * tests/autotest.at (unusual file names): New test.
523         (Banners, Keywords and ranges): Use correct shell.
525         More corner cases in testsuite VAR=VALUE handling.
526         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS): Fix quoting
527         bug.
528         <PARSE_ARGS_END>: Also detect leading digits in assignments.
529         * tests/autotest.at (Using atlocal): Enhance test to catch last
530         bug.
532         * doc/autoconf.texi (Limitations of Builtins) <.>: Mention bash
533         bug.
535 2008-01-28  Eric Blake  <ebb9@byu.net>
537         Fix regression in handling VAR=VALUE arguments to testsuite.
538         * lib/autotest/general.m4 (AT_INIT) <PARSE_ARGS_END>: Detect
539         leading = as invalid.  Defer use of command-line variable
540         assignments...
541         <PREPARE_TESTS>: ...here, after atconfig has been sourced.  Fix
542         regression in sourcing files.
543         * tests/autotest.at (Using atlocal): New test to catch this.
544         (Debugging a successful test, Choosing where testsuite is run):
545         Use correct shell.
546         Reported by Ralf Wildenhues.
548         Document grep peculiarity.
549         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
550         BSD behavior on binary input.
552         Minor testsuite improvements.
553         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Use fewer
554         forks when sanitizing PATH.  Always output machine information,
555         not just when atconfig was located.
557         Add 'testsuite -C dir'.
558         * lib/autotest/general.m4 (_AT_ARG_OPTION): Move missing argument
559         detection...
560         (AT_INIT) <PARSE_ARGS_END>: ...here, since -k always takes
561         argument.
562         <DEFAULTS>: Delay computation of variables based on $at_dir...
563         <PREPARE_TESTS>: ...to here, since -C can change $at_dir.
564         <TESTS>: Re-invoke via absolute name, since -C may be in effect.
565         <PARSE_ARGS>: Parse new option.
566         <HELP_TUNING>: Document it.
567         * tests/autotest.at (Choosing where testsuite is run): New test
568         for this feature.
569         (Keywords and ranges): Add test for missing -k argument.
570         * NEWS: Document this.
571         * doc/autoconf.texi (testsuite Invocation): Likewise.
573 2008-01-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
575         * build-aux/config.guess, build-aux/config.sub,
576         build-aux/texinfo.tex: Sync from gnulib.
577         * doc/fdl.texi, doc/make-stds.texi, doc/standards.texi:
578         Likewise.
580 2008-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
582         * doc/autoconf.texi (Particular Programs): Do not mention the
583         Autoconf version in which the AC_PROG_INSTALL change was done.
584         Suggested by Paul Eggert.
586 2008-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
588         Fix --help=recursive with multiple AC_CONFIG_SUBDIRS.
589         * lib/autoconf/general.m4 (_AC_INIT_HELP): If, for recursive help
590         mode, we change to the source directory, also set $ac_pwd so we
591         do not go back to the build tree for the next config subdir.
592         * tests/torture.at (Deep Package): Extend test to contain two
593         config subdirs on the top level.
595         Fix parallel `maintainer-check'.
596         * Makefile.am (maintainer-check-tests): Depend on `all'.
597         Use `$(MAKE) $(AM_MAKEFLAGS)' instead of plain `make'.
598         * tests/Makefile.am (maintainer-check-c++, maintainer-check-posix):
599         Likewise.
600         (maintainer-check): Serialize the testsuite runs.
602         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE2): Accept `+'
603         in feature string for --enable/--with.  Convert to underscore
604         for variable name.
606         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Require that
607         `install -c file1 file2 dir' works.
608         * doc/autoconf.texi (Particular Programs): Document this.
609         * NEWS: Update.
611 2008-01-21  Eric Blake  <ebb9@byu.net>
613         Improve documentation about default include directives.
614         * doc/autoconf.texi (Generic Headers, Generic Declarations)
615         (Generic Structures, Generic Types)
616         (Generic Compiler Characteristics): Add links to
617         AC_INCLUDES_DEFAULT.
618         Reported by Reuben Thomas.
620 2008-01-15  Eric Blake  <ebb9@byu.net>
622         * lib/m4sugar/m4sugar.m4 (m4_qlen): Use fewer macros.
624 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
626         * tests/Makefile.am (noinst_SCRIPTS): Renamed from
627         check_SCRIPTS.  Building the wrappers for `all' allows help2man
628         to use them for the manpages.
629         Report by Benoit Sigoure.
631         * bin/autoreconf.in: Discard stderr for $autoconf/$aclocal --help.
633 2007-12-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
635         Fix some write failure cases in Autotest.
636         * lib/autotest/general.m4 (AT_INIT): Do not exit successfully
637         upon write failures for --help, --version, --list.
638         Guard against write failures for intermediate created scripts.
639         <at_func_create_debugging_script>: Do not make the debugging
640         script executable if it is not complete.
642 2007-12-12  Eric Blake  <ebb9@byu.net>
644         Fix thinko in earlier patch - m4_join isn't defined yet.
645         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
646         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
647         (m4_require): Use m4_do, not m4_join.
649         Fix some whitespace tests on cygwin.
650         * tests/tools.at (autom4te and whitespace in file names): Restore
651         font-lock.  Create $TMPDIR before it might be used.
653         Fix spurious testsuite failure with M4 1.4.11.
654         * tests/local.at (AT_CHECK_M4): Cater to new m4 error message.
656         Optimize AC_REQUIRE.
657         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
658         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
659         (m4_require): Avoid extra macro calls.
661 2007-12-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
663         * tests/torture.at (srcdir): Fix quoting.
665         Do not pass top_srcdir to configure scripts in testsuite.
666         * tests/autotest.at (srcdir propagation): Copy install-sh to
667         source tree.
668         (my only test): Drop setting of `top_srcdir'.
669         * tests/base.at (Input/Output): Likewise.
670         * tests/local.at (AT_CONFIGURE_AC): Copy install-sh,
671         config.guess, and config.sub to test source tree.
672         Drop AC_CONFIG_AUX_DIR setting.
673         (AT_CHECK_CONFIGURE): Drop setting of `top_srcdir'.
674         * tests/torture.at (Substitute a 2000-byte string): Drop
675         AC_CONFIG_AUX_DIR setting, copy install-sh to test source tree.
676         (Substitute a newline, datarootdir workaround): Likewise.
677         (Define a newline): Adjust for linenumber changes in configure.ac.
678         * tests/foreign.at (Libtool): Adjust comment to reflect changes.
680         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): Skip test
681         if `pwd` contains whitespace.
683         Quote $abs_top_srcdir in tests.
684         * tests/local.at (AT_CHECK_PERL_SYNTAX): Likewise.
685         * tests/tools.at (Syntax of the shell scripts): Likewise.
687         * tests/m4sh.at (LINENO): Quote $0.
689         Fix testsuite program wrapper for whitespace in `pwd`.
690         The problem here is that the usual mantra is that command
691         variables can contain arguments, thus we cannot just escape
692         $AUTOCONF, $AUTOM4TE etc.  The compromise is to put the
693         $top_builddir/tests directory early in $PATH, so that the
694         wrappers are found by their plain name.
695         * tests/wrapper.as: Put $testdir early in $PATH.
696         (AUTOCONF, AUTOHEADER, AUTOM4TE): Set to plain command names.
698         Proper config.status --file/--header and $srcdir escaping.
699         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Quote special
700         characters in $ac_file_inputs.
701         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER): eval $ac_file_inputs
702         accordingly.
703         * tests/torture.at (datarootdir workaround): Adjust.
704         (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): Extend test.
706         Fix Autotest for whitespace in `pwd`.
707         * lib/autotest/general.m4 (AT_INIT)
708         <at_func_create_debugging_script, Driver Loop>:
709         Quote $at_group_dir.
710         * tests/autotest.at (whitespace in absolute testdir): New test.
712         * lib/autom4te.in: Quote @datadir@.
714         Proper file name escaping in Autoconf programs and Perl modules.
715         This includes escaping of characters special to the shell
716         as well as special to Perl, e.g., leading `<' or `>'.
717         For example, when $file starts with `>', `open ">$file"'
718         wrongly tries to append to a different file.
719         * bin/autoconf.as: Fix quoting for autom4te options.
720         * lib/Autom4te/General.pm (shell_quote): New function, taken
721         from coreutils, written by Jim Meyering.
722         (mktmpdir): Use it.
723         * bin/autom4te.in (files_to_options, handle_m4): Use shell_quote
724         and open_quote.
725         * bin/autoreconf.in (parse_args): Likewise.
726         * bin/autoscan.in (main): Likewise.
727         * bin/autoupdate.in (main): Likewise.
728         * bin/autoheader.in: Likewise, fixing old insufficient escaping.
729         * bin/ifnames.in: Likewise, XFile usage fixes.
730         * tests/tools.at (autom4te and whitespace in file names): Extend
731         test.  Test twice, with special characters allowed on w32, and the
732         rest.  Test leading and trailing whitespace, for `open_quote'.
733         (autotools and whitespace in file names): New, analogous test.
734         Reported by Paul Eggert and Benoit Sigoure, additional suggestions
735         by Russ Allbery and Eric Blake.
737         Sync from Automake.
738         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
739         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Likewise.
740         * lib/Autom4te/FileUtils.pm (open_quote): New function.
741         (update_file, contents): Use it.
743         * Makefile.am (autom4te-update): Rewrite for git.
745 2007-12-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
747         * doc/autoconf.texi (autom4te Invocation, Autom4te Cache): Fix typos.
749         Fix copyright years.
750         * Makefile.am, doc/install.texi, lib/autoconf/fortran.m4,
751         lib/autoconf/lang.m4, lib/freeze.mk: Likewise.
753 2007-12-04  Eric Blake  <ebb9@byu.net>
755         Manually resync with gnulib, since 'make cvs-update' no longer works.
756         * build-aux/config.guess: New upstream version.
757         * build-aux/config.sub: Likewise.
759         When using older automake, don't downgrade build-aux/texinfo.tex.
760         * configure.ac (AM_INIT_AUTOMAKE): Add no-texinfo.tex option.
761         * doc/Makefile.am (TEXINFO_TEX): Add.
763 2007-11-27  Paul Eggert  <eggert@cs.ucla.edu>
765         Fix AC_C_BIGENDIAN bug caused by new awk method of substitution.
766         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Don't comment out the
767         #undef as this runs afoul of our new way of creating config.h.
768         Problem reported by Jim Meyering in
769         <http://lists.gnu.org/archive/html/autoconf-patches/2007-11/msg00164.html>.
771 2007-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
773         Fix autom4te for unusual characters in input file names.
774         * bin/autom4te.in (files_to_options): Quote active characters
775         for the shell.
776         * tests/tools.at (autom4te and white space in file names):
777         New test.
779         * doc/autoconf.texi (Limitations of Usual Tools) <awk>:
780         Document that Tru64 awk always splits $0.
782 2007-11-24  Stepan Kasal  <kasal@ucw.cz>
784         * lib/autotest/general.m4 (AT_INIT): Do not extract the
785         `#AT_STOP_...' line at the end of each test.
787 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
789         * lib/autotest/general.m4 (AT_INIT): For awk line number
790         extraction script, ensure `$at_group' has a defined value
791         even for the empty set, and properly quote its usage inside
792         the awk script.
794 2007-11-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
796         * doc/autoconf.texi (Shell Functions): New chapter.  Document
797         IRIX sh $0 issue in functions, move content from ...
798         (Portable Shell): ... here.
799         (Shell Script Compiler): Note that shell functions are not
800         totally unportable any more.
802 2007-11-22  Stepan Kasal  <kasal@ucw.cz>
803         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
805         * lib/autotest/general.m4 (AT_INIT): Exit awk script after
806         extracting the line numbers of the last needed test.
808 2007-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
810         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
811         Fix quoting.
813 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
815         Fix IRIX testsuite debugging failures: $0 in functions.
816         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
817         Do not use $0 inside a function, as IRIX sh will set that to the
818         function name rather than the script invocation name.
820 2007-11-19  Paolo Bonzini  <bonzini@gnu.org>
821         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
823         * lib/autotest/general.m4 (at_func_test): Use cached line numbers
824         to extract test scripts.
825         (AT_INIT): Extract and cache test script line numbers.
827 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
829         * lib/autotest/general.m4: Revert 2007-11-15 patch and
830         subsequent fixups; the awk -> here-document conversion trashes
831         performance too much with AIX sh.
833 2007-11-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
835         * tests/local.at: Do not test m4, perl with AT_TESTED.
837         Diagnose and guard against write errors dealing with config.status.
838         The general idea is this: all write failures from `configure'
839         writing `config.status' are indicated by $ac_write_error, which
840         is only checked at the end.  This is safe because config.status
841         code is not executed before the file is complete.  Other write
842         failures, be they inside config.status, or in sub shell/awk
843         scripts spawned from configure or config.status, typically need
844         earlier checking, as their results are used right afterwards.
845         * lib/autoconf/status.m4 (AC_OUTPUT): Initialize `ac_write_fail'
846         before writing config.status, check afterwards.
847         (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
848         (_AC_OUTPUT_HEADERS_PREPARE,_AC_OUTPUT_CONFIG_STATUS):
849         Set `ac_write_error' for write failures to config.status.  Barf
850         upon write failures to temporary files.
851         Adjust note about closing and reopening the here-document.
852         (_AC_OUTPUT_HEADER, _AC_OUTPUT_LINK, _AC_OUTPUT_COMMAND)
853         (_AC_OUTPUT_MAIN_LOOP): Likewise, adjust note about closing and
854         reopening the here-document.
855         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
856         Ensure `ac_write_error' does not escape into config.status.
857         Also, add a couple of code paths not yet exercised in the test
858         suite: a config file with input from stdin, and a config header
859         output to stdout.
860         Suggestion for catching write errors by Bruno Haible.
862 2007-11-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
864         Avoid error with Tru64 awk and testsuite lines with many words.
865         * lib/autotest/general.m4 (AT_INIT): In the awk script that
866         reads the testsuite, set the field separator to an unusual value,
867         in order to not run over the limit of 199 fields.  Tru64 4.0D awk
868         even splits the input if $i, i>0, was never accessed in the script.
870         Revert 2007-10-17 change.
871         * TODO: Multiline args in config files and headers mean something
872         different and are not fixed, see
873         <http://lists.gnu.org/archive/html/autoconf-patches/2007-05/msg00017.html>
874         Report by Stepan Kasal.
876         * doc/autoconf.texi (Generic Programs): Fix typo.
878 2007-11-16  Stepan Kasal  <kasal@ucw.cz>
880         AC_*_TOOL does not canonicalize the prefix
881         * doc/autoconf.texi (Generic Programs): Do not say that
882         the *_TOOL macros canonicalize, they simply use the `host_alias'.
884 2007-11-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
886         Diagnose write errors in config.status instantiations.
887         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE)
888         (_AC_OUTPUT_HEADER, _AC_OUTPUT_MAIN_LOOP): Bail out
889         on write errors.
890         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
891         Extend test to also check for some write error failures, using...
892         <AT_CHECK_CONFIG_CREATION_NOWRITE>: ...this new macro.
893         Report by Bruno Haible.
895         Indentation fixups.
896         * lib/autotest/general.m4 (AT_INIT) <at_func_log_failure>: Fix
897         indentation.
898         (_AT_CHECK): Use less indentation, to save space.
900 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
902         Add witness macro for @top_build_prefix@ substitution.
903         * lib/autoconf/status.m4 (_AC_HAVE_TOP_BUILD_PREFIX): New macro.
904         (_AC_OUTPUT_FILE): Mention it here.
906 2007-11-15  Paolo Bonzini  <bonzini@gnu.org>
907         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
909         * lib/autotest/general.m4 (at_func_test): Remove.
910         (AT_INIT): Pre-extract test groups into separate files.
911         (AT_CLEANUP): Source pre-extracted file instead of calling at_func_test.
912         Remove at-test-source files together with the $at_group_dir.
913         * tests/autotest.at (Long test source lines): New test.
915 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
917         Shell functions and variables may share a namespace.
918         * doc/autoconf.texi (Portable Shell): Mention Solaris sh
919         limitation.
921 2007-11-14  Paul Eggert  <eggert@cs.ucla.edu>
923         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Make comment match
924         gnulib.
926 2007-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
928         * lib/autoconf/status.m4: Fix a couple of comment typos.
930         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Use $as_me, not $me.
932 2007-11-13  Jim Meyering  <meyering@redhat.com>
934         Clean up the rule to create "expr".
935         * tests/Makefile.am (expr): Don't redirect directly to target.
936         Redirect just once, not for each echo statement.
937         Use $@, not literal "expr".
939 2007-11-13  Paul Eggert  <eggert@cs.ucla.edu>
941         Don't worry about preprocessor when testing long long.
942         See: http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00075.html
943         * doc/autoconf.texi (Preprocessor Arithmetic): New section.
944         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT):
945         These no longer check for preprocessor flaws.
946         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET):
947         Do not check for preprocessor flaws.
949 2007-11-13  Jim Meyering  <meyering@redhat.com>
951         Adapt dependencies, now that a version change doesn't modify configure.ac
952         * GNUmakefile: Remove "make clean" kludge.
953         * lib/m4sugar/Makefile.am (version.m4): Depend on Makefile, not
954         configure.ac.
955         Don't redirect directly to target.
956         Use $@, not literal "version.m4".
958 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
960         * doc/autoconf.texi (Making testsuite Scripts): Document
961         ":;{" shorthand as in previous patch.
963 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
965         * doc/autoconf.texi (Limitations of Builtins): Document problem
966         with { ... } a bit more clearly.  Suggest ":;{" as a shorthand
967         for the workaround.
968         * lib/m4sugar/Makefile.am (version.m4): Detect 'echo' failure.
969         Use ":;{" shorthand.
970         * tests/Makefile.am ($(srcdir)/package.m4): Likewise.
972 2007-11-12  Jim Meyering  <meyering@redhat.com>
974         Add more non-srcdir build support.
975         * GNUmakefile (dummy): Split a long line.
976         Add -v option to autoreconf invocation.
978         Remove the autoreconf-provided INSTALL, so that we regenerate it.
979         * GNUmakefile (dummy): Remove INSTALL.
981         Remove racy commands to build scripts in bin/ and tests/.
982         * man/Makefile.am (.x.1): Now that scripts in bin/ and tests/
983         are guaranteed to be built, remove the rules that tried to build
984         them.  Before, with a parallel build, these rules could lead to
985         two processes writing tests/wrapper.in concurrently.
987         Build in man/ only *after* building in bin/ and tests/.
988         * Makefile.am (SUBDIRS): The man-page-creation process runs $(MAKE)
989         in both bin/ and tests/.
991         Accommodate non-srcdir build-from-checkout.
992         * build-aux/git-version-gen: Require an additional parameter: $srcdir.
993         Use git's --git-dir=$srcdir/.git option.
994         Add quotes, in case tarball_version_file contains shell meta-characters.
995         * GNUmakefile (_curr-ver): Pass $(srcdir) to git-version-gen.
996         * configure.ac: Pass "." to git-version-gen.
998         Avoid spurious test failures due to version skew.
999         * GNUmakefile (dummy): Run $(MAKE) clean after autoreconf -i.
1001 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1003         Avoid warnings about conftest.dSYM directories on Mac OS X Leopard.
1004         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_RUN_IFELSE):
1005         Remove conftest.dSYM directory.
1006         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT)
1007         (_AC_LANG_PROGRAM_C_, _AC_FC_MAIN, __AC_FC_NAME_MANGLING):
1008         Remove `conftest.*' recursively.
1009         * lib/autoconf/lang.m4 (AC_LINK_IFELSE): Likewise.
1010         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
1011         Likewise.
1012         (_AC_COMPILER_OBJEXT_REJECT): Reject *.dSYM.
1013         * THANKS: Update.
1014         Report and analysis by Jeff Squyres and Peter O'Gorman.
1016 2007-11-12  Benoit Sigoure  <tsuna@lrde.epita.fr>
1018         Fix typos in variable names.
1019         * tests/semantics.at (test for AC_CHECK_LIB): s/at_m/ac_m/.
1021 2007-11-11  Benoit Sigoure  <tsuna@lrde.epita.fr>
1023         Document that $((expression)) is not portable.
1024         * doc/autoconf.texi (Shell Substitutions): Here.
1026 2007-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1028         Ignore configure --help* errors due to LINENO-impaired shells.
1029         * tests/torture.at (Configuring subdirectories, Deep Package):
1030         In the --help* tests in read-only trees, make `.' temporarily
1031         writable again for the `stderr' file, and ignore errors due to
1032         the attempt to write configure.lineno.
1033         Report by Patrick Welche.
1035 2007-11-10  Jim Meyering  <meyering@redhat.com>
1037         Generate package.m4 in build-dir, not srcdir.
1038         * tests/Makefile.am (package.m4): Adjust target.
1039         Don't redirect directly to $@.
1040         (CLEANFILES): Add package.m4.
1041         ($(TESTSUITE)): Depend on just-built package.m4, not the one
1042         in $(srcdir).
1043         When running $(AUTOTEST), search "." before searching $(srcdir).
1045         Avoid a race condition that would make parallel "distclean" fail.
1046         * tests/Makefile.am (distclean-generic): Replace the default,
1047         automake-provided rule with an identical one, but with an additional
1048         dependency on distclean-local.  Simply adding the dependency would
1049         cause automake not to emit the rule at all.
1050         * BUGS: Building with -jN works, now.
1052         Distribute git-version-gen.
1053         * Makefile.am (EXTRA_DIST): Add build-aux/git-version-gen,
1054         since GNUmakefile is distributed, and requires it for dist* rules.
1056         Remove two more generated files from version control.
1057         * INSTALL: Remove generated file.
1058         * lib/autoscan/autoscan.list: Remove generated file.
1060 2007-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1062         * GNUmakefile (PATH): Remove stray apostrophes; they become
1063         part of PATH, which isn't wanted here.
1065 2007-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1067         New config files output variable `top_build_prefix'.
1068         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Substitute
1069         `top_build_prefix'.
1070         * doc/autoconf.texi (Preset Output Variables): Document it.
1071         * NEWS: Update.
1072         Report by Bob Friesenhahn.
1074         Avoid expr for arithmetic evaluation if the shell accepts $((...)).
1075         * lib/autotest/general.m4 (AT_INIT) <at_func_arith>: New
1076         function, to parametrize arithmetic with expr vs. the shell.
1077         Use it where possible.
1078         Suggestion by Benoit Sigoure.
1080 2007-11-03  Benoit Sigoure  <tsuna@lrde.epita.fr>
1082         Adjust the documentation of autotest WRT atlocal.
1083         * doc/autoconf.texi (Making testsuite Scripts): It is not necessary,
1084         when using Automake, to write a rule to produce atlocal, since it's
1085         an AC_CONFIG_FILES.  Mention that atlocal.in needs to be
1086         distributed, not atconfig.in.
1088 2007-11-04  Eric Blake  <ebb9@byu.net>
1090         Update list information.
1091         * README: Mention new autoconf-commit list.
1092         * doc/autoconf.texi (Introduction): Mention autoconf-commit list.
1094 2007-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1096         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Fix comment typo.
1098         * lib/m4sugar/Makefile.am (version.m4): Another bash bug workaround.
1100         * build-aux/.gitignore: Ignore mkinstalldirs.
1102         * doc/autoconf.texi (autoreconf Invocation): Fix an underfull line.
1104 2007-11-03  Jim Meyering  <meyering@redhat.com>
1106         s/-/./ in snapshot version string: 2.61a-256-8b556 -> 2.61a.256-8b556
1107         * build-aux/git-version-gen: This syncs from coreutils.
1109         Adjust the build procedure so "make check" works reliably.
1110         * README-hacking: Include an extra step between "make" and
1111         "make check" to ensure that the latter passes.
1113         Use just-built tools, when possible.
1114         * GNUmakefile (PATH): Set and export here, ...
1115         (dummy): ... rather than here.
1117 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1118         and Andreas Schwab  <schwab@suse.de>
1120         * tests/Makefile.am ($(srcdir)/package.m4): Work around bash
1121         exit status bug.
1123 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1125         * configure.ac (AC_PREREQ): Require version 2.60, for
1126         AC_PROG_SED, AC_PROG_GREP.
1128 2007-11-02  Benoit Sigoure  <tsuna@lrde.epita.fr>
1129         and Jim Meyering  <meyering@redhat.com>
1130         and Andreas Schwab <schwab@suse.de>
1131         and Eric Blake  <ebb9@byu.net>
1133         Document a bug in GNU Bash with compound commands and redirections.
1134         * doc/autoconf.texi (Limitations of Builtins): Mention that GNU
1135         Bash doesn't properly set $? when `{ ... } >/bad' fails, and give
1136         workaround.
1138 2007-11-03  Eric Blake  <ebb9@byu.net>
1140         Support m4 1.4.5 in testsuite.
1141         * tests/torture.at (Define a newline): Exclude line numbers in
1142         error message.
1143         Reported by Ralf Wildenhues.
1145 2007-11-03  Jim Meyering  <meyering@redhat.com>
1147         Remove automake-provided files from version control.
1148         * build-aux/elisp-comp: Remove file.
1149         * build-aux/install-sh: Remove file.
1150         * build-aux/missing: Remove file.
1151         * build-aux/mdate-sh: Remove file.
1152         * build-aux/.gitignore: New file.
1153         Suggestion from Ralf Wildenhues.
1155 2007-11-03  Eric Blake  <ebb9@byu.net>
1157         Adjust version comparison to account for git snapshot numbers.
1158         * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Also treat - as a
1159         component separator.
1160         * doc/autoconf.texi (Number processing Macros)
1161         <m4_version_compare>: Document this change.
1162         * tests/m4sugar.at (m4@&t@_version_compare): Test it.
1164 2007-10-30  Bruno Haible  <bruno@clisp.org>
1166         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro,
1167         extracted from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
1168         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT): Use it.
1169         Fixes problem with Sun C 5.[0-8] in 32-bit mode, reported in
1170         <http://lists.gnu.org/archive/html/autoconf-patches/2007-10/msg00210.html>
1171         Suggested by Paul Eggert.
1173 2007-10-28  Jim Meyering  <meyering@redhat.com>
1175         * README-hacking: Autoconf, Automake, and Perl are required to build.
1176         List Gzip and Tar separately.  Suggested by Ralf Wildenhues.
1178 2007-10-28  Jim Meyering  <meyering@redhat.com>
1180         README-hacking: Recommend running autoreconf -vi.
1181         * GNUmakefile (dummy): Use autoreconf -i, with appropriate PATH,
1182         so that we use just-built tools when they're available.
1183         Suggestions from Ralf Wildenhues.
1185 2007-10-28  Jim Meyering  <meyering@redhat.com>
1187         Make inter-release --version output more useful.
1189         Now, each unofficial build has a version "number" like 2.61a-19-58dd,
1190         which indicates that it is built using the 19th change set
1191         (in _some_ repository) following the "v2.61a" tag, and that 58dd
1192         is a prefix of the commit SHA1.
1193         * build-aux/git-version-gen: New file.
1194         * configure.ac: Run it to set the version.
1195         (AM_INIT_AUTOMAKE): Don't check NEWS here.
1196         * Makefile.am (dist-hook): Arrange so that .version appears only
1197         in distribution tarballs, never in a checked-out repository.
1198         * .gitignore: Add .version here, too.  Just in case.
1199         * tests/Makefile.am ($(srcdir)/package.m4): Depend on Makefile,
1200         not configure.ac, now that the version number changes automatically.
1202         Ensure that $(VERSION) is up to date for dist-related targets.
1203         * GNUmakefile: Arrange to rerun autoconf, if the version reported by
1204         git-version-gen doesn't match $(VERSION), but only for dist targets.
1206 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1208         Fix `Deep Package' failure with a configure script early in PATH
1209         * tests/torture.at (Deep Package): Add `.' early in PATH.
1210         Report by Jim Meyering.
1212 2007-10-27  Jim Meyering  <meyering@redhat.com>
1214         Remove all generated files from version control.
1215         * aclocal.m4: Remove.
1216         * configure: Remove.
1217         * Makefile.in: Remove, along with all other Makefile.in in subdirs.
1218         * .gitignore: Add aclocal.m4, configure and Makefile.in.  Sort.
1219         * README-hacking: New file: how to build from just-checked-out sources.
1221 2007-10-23  Eric Blake  <ebb9@byu.net>
1223         Improve corner case of m4_expand.
1224         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Rewrite more
1225         efficiently.
1226         * tests/m4sh.at (AS@&t@_HELP_STRING): Test overquoted comma.
1227         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Update
1228         documentation.
1230 2007-10-23  Paul Eggert  <eggert@cs.ucla.edu>
1232         * doc/make-stds.texi: Update from gnulib.
1234 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
1235         and Eric Blake  <ebb9@byu.net>
1237         * lib/autoconf/c.m4 (AC_C_RESTRICT): Work around Sun C++ compatibility
1238         problem reported by Bruno Haible in
1239         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00027.html>.
1241 2007-10-22  Eric Blake  <ebb9@byu.net>
1243         * doc/autoconf.texi (Particular Types): Mention bug in HP-UX 11.00
1244         preprocessor.
1246 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
1248         Don't check for bug in HP-UX 11.00 cpp.
1249         * lib/autoconf/types.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
1250         Use -1ull rather than -1u, since that causes problems with gnulib; see
1251         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
1253 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1255         * tests/autotest.at (Backquote command substitution)
1256         (Multiline backquote command substitution)
1257         (Parenthetical command substitution)
1258         (Multiline parenthetical command substitution): Fix typos in
1259         test names.
1261 2007-10-21  Eric Blake  <ebb9@byu.net>
1263         * configure: Regenerate.
1265 2007-10-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1267         Fix config status generation with Tru64 ksh.
1268         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix
1269         escaping of backslash in here-documents.
1271         Fix `Deep Package' test failure on FreeBSD.
1272         * tests/torture.at (Deep Package): Do not add `.' to $PATH
1273         unnecessarily.  Do not try running `/bin/sh configure' with a
1274         configure script to be found in $PATH, if the shell does not do
1275         this resolution.  Fixes test failure on FreeBSD.
1277         Fix config header generation with AIX awk.
1278         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): In awk
1279         script, use helper array D_is_set, as `" 0"' does not evaluate
1280         to true for AIX awk.
1282 2007-10-21  Eric Blake  <ebb9@byu.net>
1284         * tests/autotest.at (Banners): Reinstate test, with typo
1285         corrected.
1287 2007-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1289         * lib/autotest/general.m4 (Defaults): Validate input ranges ...
1290         <at_func_validate_ranges>: ... using this new function.
1291         * tests/autotest.at (Keywords and ranges): Test invalid ranges.
1292         Test --list with ranges and keywords.
1293         (Banners): Remove one now-failing test.
1295 2007-10-20  Eric Blake  <ebb9@byu.net>
1297         Fix testsuite --list subset.
1298         * lib/autotest/general.m4 (AT_INIT) <at_list_p>: Swap newlines
1299         back to spaces, before listing subset of tests.
1300         Reported by Ralf Wildenhues.
1302 2007-10-19  Eric Blake  <ebb9@byu.net>
1304         s/parenthesis/parentheses/ where appropriate.
1305         * doc/autoconf.texi: Fix typos.
1306         * lib/m4sugar/m4sugar.m4: Likewise.
1307         Reported by Ralf Wildenhues.
1309         Document m4_expand limitation.
1310         * lib/m4sugar/m4sugar.m4 (m4_expand): Mention problem with
1311         unbalanced parse.
1312         * doc/autoconf.texi (Pretty Help Strings, Evaluation Macros)
1313         (Writing Testsuites): Mention limitations inherited from
1314         m4_expand.
1316         Improve AT_BANNER handling.
1317         * lib/autotest/general.m4 (BANNERS): New named diversion.
1318         (TESTS_END): Diversion no longer used.
1319         (AT_INIT) <at_func_banner, BANNERS>: Factor all banners into a
1320         shell function, which prints only as needed, using an associative
1321         array of banner text from a special diversion.
1322         <PARSE_ARGS_END>: No longer need awk to find banners.
1323         <TESTS>: Banners are no longer processed by main driver loop, so
1324         we no longer need case statement.
1325         (AT_BANNER): Rewrite to populate new diversion.
1326         (AT_SETUP): Each test invokes its own banner.  No output is needed
1327         to the TESTS diversion.
1328         * doc/autoconf.texi (Writing Testsuites): Document slight
1329         semantics change.
1330         * tests/autotest.at (AT_BANNERS): Enhance test.
1331         * NEWS: Document AT_BANNER.
1333         Document and test AT_BANNER.
1334         * doc/autoconf.texi (Writing Testsuites): Document AT_BANNER.
1335         * tests/autotest.at (AT_CHECK_EGREP): Share between tests.
1336         (AT_CHECK_BANNERS): New test.
1338         Doc touchups.
1339         * doc/autoconf.texi (Text processing Macros) <m4_strip>
1340         <m4_text_wrap>: Clarify and fix typos.
1342 2007-10-18  Eric Blake  <ebb9@byu.net>
1344         Ignore `make dist' changelogs in testsuite.log.
1345         * lib/autotest/general.m4 (AT_INIT) <ChangeLogs>: Prune
1346         directories matching AT_PACKAGE_TARNAME-*.
1348         Fix AT_TESTED, AT_KEYWORDS.
1349         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Warn if separator
1350         occurs in string, as duplicates may be added.
1351         (_m4_append_uniq): New helper macro.
1352         (m4_append_uniq_w): New macro.
1353         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Fix
1354         duplication bug by using new macro.
1355         (AT_INIT) <at_tested>: Restore newline separators.  Invoke tested
1356         programs with stdin redirected, so programs that don't
1357         understand --version won't try to behave interactively.
1358         * tests/autotest.at (Tested programs): Catch this bug.
1359         * tests/m4sugar.at (m4@&t@_append): Test new macro.
1360         * tests/local.at (AT_TESTED): Add m4, perl.
1361         * doc/autoconf.texi (Text processing Macros): Document
1362         m4_append_uniq_w, and update text on m4_append.
1363         * NEWS: Document the addition.
1365 2007-10-17  Eric Blake  <ebb9@byu.net>
1367         Function cleanup.
1368         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Convert
1369         from m4 macro...
1370         (AT_INIT) <at_func_create_debugging_script>: ...to shell
1371         function.
1372         (AT_INIT): Defer function declarations until after --help,
1373         --version.  Format functions consistently, trying to fit in 80
1374         columns.
1375         (TEST_FUNCTIONS): Based on recent changes, rename...
1376         (TEST_GROUPS): ...to this.
1378         Reject FreeBSD m4.
1379         * m4/m4.m4 (AC_PROG_GNU_M4): Also check for frozen file support.
1380         * configure: Regenerate.
1381         Reported by Bob Friesenhahn.
1383         Test recent additions.
1384         * tests/m4sugar.at (m4@&t@_map, m4@&t@_combine)
1385         (m4@&t_max and m4@&t_min): New tests.
1386         * doc/autoconf.texi (Evaluation Macros) <m4_apply>: Enhance
1387         description.
1389 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1391         * TODO: multiline args in config files and headers work now.
1393         Autotest: do not use shell functions for individual tests.
1394         * lib/autotest/general.m4 (AT_INIT) <at_func_test>: Merely
1395         extract the source test source, do not invoke it.
1396         (AT_SETUP, AT_CLEANUP): Source test code outside shell function.
1397         * tests/autotest.at (Fallacy): Actually let the inner suite fail,
1398         expect exit status of 1.
1399         * tests/autotest.at (Skip): New test, for bogus zsh exit status.
1401         * lib/autotest/general.m4 (at_func_test): Fix test extraction
1402         script.
1404 2007-10-17  Eric Blake  <ebb9@byu.net>
1406         Fix m4_combine for empty suffix list.
1407         * lib/m4sugar/m4sugar.m4 (m4_combine): Check for suffix list.
1408         * doc/autoconf.texi (Text processing Macros): Document this.
1410         Add m4_combine, based on Libtool's lt_combine.
1411         * lib/m4sugar/m4sugar.m4 (m4_combine): New macro.
1412         * doc/autoconf.texi (Text processing Macros): Document it.
1413         * NEWS: Likewise.
1415 2007-10-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1417         Fix `configure --help=recursive' in unconfigured/read-only trees.
1418         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Avoid errors when `.'
1419         is not writable, use 'cp -p' in this case, in the hope that it
1420         will not actually be needed.  Still try removing files, in case
1421         of other write errors.
1422         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): For ac_confdir,
1423         use $as_myself, not $0.
1424         (_AC_INIT_HELP): For --help=recursive, if the subdir does not
1425         exist, try again in the the source tree.  This change assumes
1426         that the subpackage configure script is capable of running
1427         --help=recursive in the source tree.
1428         * tests/torture.at (Configuring subdirectories, Deep Package):
1429         Adjust tests to expose both issues, also try invocation as
1430         `sh configure ...' and plain `configure ...' with PATH adjusted.
1431         * NEWS, THANKS: Update.
1432         Report by Hans Ulrich Niedermann.
1434 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1436         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
1437         Problem reported by H.Merijn Brand in
1438         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
1439         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
1440         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
1441         Check that preprocessor handles 64-bit ints, too.
1443 2007-10-16  Eric Blake  <ebb9@byu.net>
1445         m4_map is a looping construct.
1446         * lib/m4sugar/m4sugar.m4 (m4_map, _m4_map, m4_map_sep): Move.
1448         Fix m4_map, and add some more utility macros.
1449         * lib/m4sugar/m4sugar.m4 (m4_apply, m4_count, m4_dquote_elt)
1450         (m4_echo, m4_make_list): New documented macros.
1451         (_m4_quote, _m4_shift2): New helper macros.
1452         (m4_map): Change semantics to allow calling macro without
1453         arguments.
1454         (m4_map_sep): Likewise.  Also change semantics to quote separator,
1455         to match m4_join and m4_append.
1456         (m4_version_unletter): Fix use of m4_map.
1457         * doc/autoconf.texi (Evaluation Macros): Document m4_apply,
1458         m4_count, m4_dquote_elt, m4_echo, m4_make_list.
1459         (Text processing Macros): Mention m4_dquote as a faster
1460         alternative to joining with commas.
1461         (Looping constructs): Document m4_map, m4_map_sep.
1462         * NEWS: Mention new macros.
1464         A few more m4sugar improvements, to benefit libtool.
1465         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts, _m4_shiftn): Reduce size
1466         of expansion by avoiding extra uses of $@.
1467         (m4_shiftn): Avoid extra dnl, and forbid shifting by 0.
1468         (_m4_cdr): New helper macro.
1469         (_m4_map, m4_map_sep): Use it to reduce size of expansion.
1470         (_m4_shift3): New helper macro.
1471         (_m4_foreach): Swap argument order, and use new macro to reduce
1472         size of expansion.
1473         * doc/autoconf.texi (Looping constructs) <m4_shiftn>: Mention that
1474         count must be positive.
1476         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Fix typo.
1477         Reported by Ralf Wildenhues.
1479 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1481         * doc/autoconf.texi (Portable Shell): Improve description of zsh
1482         4.x function subshell bug with exit and trap.
1484 2007-10-15  Eric Blake  <ebb9@byu.net>
1486         Enhance AS_HELP_STRING.
1487         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't expand arguments,
1488         and reduce number of expansions.
1489         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Rework to use m4_expand,
1490         and to take indent and wrap column numbers.
1491         * tests/m4sh.at (AS@&t@_HELP_STRING): Update the test.
1492         * doc/autoconf.texi (Pretty Help Strings): Document details about
1493         arguments.
1494         (Text processing Macros): Minor tweaks.
1495         * NEWS: Document this change.
1497         Fix 2007-10-03 regression with AT_SETUP([a, b]).
1498         * lib/m4sugar/m4sugar.m4 (m4_expand): New macro.
1499         (m4_text_box): Use it.
1500         * lib/autotest/general.m4 (AT_SETUP): Use it.
1501         * lib/m4sugar/m4sh.m4 (_AS_RUN): Use it.
1502         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Test this.
1503         * NEWS: Revert caveat about semantics change on comma.
1504         * doc/autoconf.texi (Evaluation Macros): Document m4_expand.
1506 2007-10-13  Eric Blake  <ebb9@byu.net>
1508         Change m4_join to match libtool's ltsugar semantics.
1509         * lib/m4sugar/m4sugar.m4 (m4_join): Just define this, not defun.
1510         Ignore empty arguments, using...
1511         (_m4_join): ...this new helper.
1512         * tests/m4sugar.at (m4@&t@_join): New test.
1513         * doc/autoconf.texi (Text processing Macros): Document new
1514         semantics of m4_join.
1516         Make AC_PREREQ faster and more robust.
1517         * lib/m4sugar/m4sugar.m4 (m4_ignore, m4_unquote): New macros.
1518         (m4_version_prereq): Inline constant expansions.
1519         (m4_list_cmp): Reduce number of expansions, by avoiding m4_case.
1520         Rewrite in terms of [] list, not () list.
1521         (_m4_list_cmp, _m4_version_unletter): New helper macros.
1522         (m4_version_unletter): Write wrapper around new implementation to
1523         preserve old semantics.
1524         (m4_version_compare): Pass correct type of list, and avoid
1525         overhead of flattening expressions too early.
1526         (m4_do): Move to be near other quoting macros.
1527         (m4_max, m4_min): Always result in decimal output.
1528         * doc/autoconf.texi (Looping constructs): Add m4_car, m4_cdr.
1529         Move m4_do...
1530         (Evaluation Macros): ...here.  Add m4_ignore, m4_unquote.
1531         (Text processing Macros): Move m4_version_compare...
1532         (Number processing Macros): ...to this new node; document m4_cmp,
1533         m4_list_cmp, m4_sign, m4_max, m4_min.
1534         * tests/m4sugar.at (m4@&t@_version_compare): Enhance test, to pick
1535         up on bugs fixed by this patch.
1536         * NEWS: Document new macros.
1538 2007-10-12  Eric Blake  <ebb9@byu.net>
1540         * doc/autoconf.texi (Text processing Macros): Fix bad merge.
1541         (Reporting Messages): Fix underfull hbox.
1543         Some more m4sugar documentation.
1544         * lib/m4sugar/m4sugar.m4: Clean up macro order.
1545         * doc/autoconf.texi (Programming in M4): Lighten the warning on
1546         using m4sugar; it is stabilizing and useful.
1547         (Redefined M4 Macros): Touch up wording on M4 builtins; sort.  Add
1548         m4_divert, m4_undivert, __file__, __line__, __oline__.
1549         (Diagnostics): New node, documenting m4_assert, m4_errprintn,
1550         m4_fatal, m4_location, m4_warn.
1551         (Diversion support): New node, documenting m4_divert_push,
1552         m4_divert_pop, m4_divert_text, m4_divert_once.
1553         (Text processing Macros): Sort.  Add m4_flatten, m4_join,
1554         m4_newline, m4_strip, m4_text_box, m4_text_wrap.
1555         (Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
1556         as obsolescent.
1557         (Printing Messages): Change cross-reference.
1559         Document interaction of recent m4_append change with Libtool HEAD.
1560         * lib/m4sugar/m4sugar.m4 (m4_append): Document semantics change.
1561         (m4_append_uniq): Add new parameters, based on lt_append_uniq.
1562         * tests/m4sugar.at (m4@&t@_append): New test.
1563         * NEWS: Document semantics change.
1564         * doc/autoconf.texi (Text processing Macros): Likewise.
1566         s/AC_VERSION/AC_AUTOCONF_VERSION/.
1567         * doc/autoconf.texi (Versioning): Change the name.
1568         * NEWS: Likewise.
1569         * lib/autoconf/general.m4 (AC_AUTOCONF_VERSION): Likewise.
1570         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Likewise.
1571         Suggested by Ralf Wildenhues.
1573         Namespace cleanup.
1574         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE)
1575         (_AC_OUTPUT_HEADERS_PREPARE): Convert here-doc delimiters into
1576         autoconf namespace.
1577         * doc/autoconf.texi (Programming in M4sugar, Forbidden Patterns)
1578         (Programming in M4sh, Macro Names): Beef up description of
1579         namespaces reserved for autoconf.
1580         * configure: Regenerate.
1582 2007-10-12  Eric Blake  <ebb9@byu.net>
1583         and Paolo Bonzini  <bonzini@gnu.org>
1585         Speed up execution of subset of testsuite.
1586         * lib/autotest/general.m4 (TEST_FUNCTIONS): New diversion.
1587         (AT_INIT) <at_func_test>: New shell function.
1588         (AT_INIT) <at_myself>: New variable, set to absolute $as_myself.
1589         (AT_INIT) <at_test_source> New variable, names file that holds
1590         current test function definition.
1591         (AT_SETUP): Start the shell function at_func_test_#, into the
1592         TEST_FUNCTIONS diversion.
1593         (AT_CLEANUP): End the shell function.  Simplify the TESTS
1594         diversion to invoke the function.
1596 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1598         * .gitignore: Ignore tags and TAGS files.
1600 2007-10-11  Eric Blake  <ebb9@byu.net>
1602         Config header generation followup.
1603         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Check for raw newlines,
1604         which won't work with the preprocessor nor with the awk
1605         implementation.
1606         * tests/torture.at (Define a newline): Test raw newline detection,
1607         removing the XFAIL.
1608         * doc/autoconf.texi (Defining Symbols): Document recent change to
1609         allow backslash-newline.
1610         * THANKS: Update.
1612 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1614         * lib/autotest/general.m4: Put function braces in separate line.
1616 2007-10-10  Eric Blake  <ebb9@byu.net>
1618         Avoid some overhead from m4_defn and m4_popdef.
1619         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Only
1620         pass on first argument, since we are documented that way.
1621         (m4_for, m4_append_uniq, m4_text_wrap): Optimize out defined-ness
1622         check where it is safe to do so.
1623         (m4_append): Likewise, and quote the separator.
1624         (m4_text_box): Likewise, and avoid regex, also be robust to
1625         expansion and quadrigraphs.
1627         Another AC_DEFINE speedup.
1628         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Move parameter
1629         elision...
1630         (_AC_DEFINE_Q): ...here, and only do it once.
1631         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid overquoting.
1632         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix m4_defn overquoting
1633         introduced 2007-10-05.
1635         Whitespace cleanup.
1636         * lib/autoconf/general.m4: Use consistent indentation.
1637         * configure: Regenerate.
1639         * NEWS: Announce recent round of speed optimizations.
1641 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1643         * NEWS: Announce shell function usage in Autotest.
1645 2007-10-10  Eric Blake  <ebb9@byu.net>
1646         and Paul Eggert  <eggert@cs.ucla.edu>
1648         Reduce number of forks at startup.
1649         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Speed up NLS
1650         sanitization.
1651         * configure: Regenerate.
1653 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1654         and Paul Eggert  <eggert@cs.ucla.edu>
1656         Use awk for config header generation.
1657         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix comments.
1658         (_AC_OUTPUT_HEADERS_PREPARE): New macro.  Rewrite of the config
1659         header machinery for use with awk and placement outside the main
1660         config.status instantiation loop.  Retain multi-line defines
1661         through backslash-newline combinations, do not split the script
1662         any more.
1663         (_AC_OUTPUT_HEADER): Simplify accordingly, use $AWK.
1664         (_AC_OUTPUT_MAIN_LOOP): Call _AC_OUTPUT_HEADERS_PREPARE if
1665         needed.
1666         (AC_OUTPUT_MAKE_DEFS): Remove backslash-newline combinations
1667         from define values.
1668         * NEWS: Update.
1669         * tests/torture.at (#define header templates): Extend test by
1670         several more cases: white space before and after `#', macros
1671         with parameters in config.hin and as defines, multi-line macro
1672         values.
1673         (Torturing config.status): Use a define value twice the length
1674         in order to exercise the awk literal string limit.
1675         (Substitute and define special characters): Also try special
1676         delimiter, to exercise the special-case code.
1677         Suggestion by Eric Lemings.
1679 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1681         * tests/local.at (AT_COPYRIGHT): Bump copyright years.
1683 2007-10-09  Eric Blake  <ebb9@byu.net>
1685         Improve header of bin/autoconf.
1686         * lib/m4sugar/m4sh.m4 (AS_INIT): Add a 'generated from' notice.
1687         * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Override new notice
1688         from M4sh.
1689         * bin/autoconf.as: Put copyright up front in generated file.
1691         * bin/autoconf.as (exit_missing_arg): Font-lock tweak.
1693 2007-10-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1695         * doc/install.texi (Basic Installation): Document `uninstall'.
1696         * INSTALL: Regenerate.
1697         Suggestion by Roberto Bagnara.
1699 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1701         * doc/autoconf.texi (Limitations of Usual Tools): V7 awk had 'index'.
1703         Adjust doc. to match latest gnulib.
1704         * build-aux/texinfo.tex: Sync from gnulib.
1705         * doc/standards.texi: Likewise.
1706         * doc/autoconf.texi (Copying This Manual): Rename to "GNU Free
1707         Documentation License" and remove the subsection.  This simplifies
1708         the manual a bit and is more like what other GNU projects do
1709         nowadays.
1711 2007-10-08  Eric Blake  <ebb9@byu.net>
1713         Use recent changes.
1714         * configure: Regenerate.
1716         Fix regression in m4_text_wrap from 2007-10-05.
1717         * lib/m4sugar/m4sugar.m4 (m4_max, m4_min): New macros.
1718         (m4_sign): Sort.
1719         (m4_text_wrap): Fix off-by-one error in rewrite from m4_for to
1720         m4_format.
1721         * lib/autotest/general.m4 (AT_SETUP): Avoid negative width.
1722         * tests/autotest.at (Long test title, Longer test title): Test
1723         this fix, beyond what AS_HELP_STRING already tests.
1725         Avoid m4 warnings on bad m4_format usage.
1726         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Use %*s, in case width
1727         evaulates to 0.
1728         * lib/autotest/general.m4 (AT_SETUP): Likewise; also ensure that
1729         enough arguments are provided.
1731 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
1733         * doc/autoconf.texi (Shell portability): Document shell function
1734         portability.
1736 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
1738         * lib/autotest/general.m4 (AT_INIT): Add at_func_diff_devnull,
1739         at_func_check_skip, at_func_check_status, at_func_filter_trace,
1740         at_func_log_failure shell functions.  Use test -s to avoid
1741         useless diff invocations.
1742         (at_func_check_newline): Renamed from at_check_newline.
1743         (AT_SETUP): Define AT_captured_files to empty.
1744         (AT_DIFF_STDERR(*), AT_DIFF_STDOUT(*)): New, extracted from _AT_CHECK.
1745         (_AT_CHECK): Replace m4_case with m4_ifdef/m4_indir.  Use all
1746         the shell functions.
1748 2007-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1750         Don't assume "." is writeable, for commands like "autoconf --version".
1751         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use a
1752         different heuristic instead, one that doesn't rely on creating
1753         files.
1755         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle "///"
1756         correctly.
1758 2007-10-05  Jim Meyering  <meyering@redhat.com>
1760         Avoid makeinfo warnings.
1761         * doc/autoconf.texi (Redefined M4 Macros): Add a `,' after @xref.
1762         (Looping constructs): Add ` ' after @defmac'd name, m4_do.
1764 2007-10-05  Eric Blake  <ebb9@byu.net>
1766         Resolve Python issue 1676135 regarding configure directory args.
1767         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Strip trailing
1768         slashes from directory arguments.
1769         * tests/base.at (configure directories): New test.
1770         * doc/autoconf.texi (Installation Directory Variables): Document
1771         the change.
1772         * NEWS: Likewise.
1773         * THANKS: Update.
1774         Reported by Björn Lindqvist.
1776         Provide better short-circuiting operation.
1777         * lib/m4sugar/m4sugar.m4 (m4_cond, m4_newline): New macros.
1778         (m4_text_wrap): Use it.  Also avoid useless m4_for.
1779         * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE, AS_LITERAL_IF): Use
1780         new macro.
1781         (_AS_IDENTIFIER_IF): Likewise, and fix bug when $1 is [,].
1782         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Use new macros
1783         to avoid regexps.
1784         * doc/autoconf.texi (Redefined M4 Macros): Expand m4_if
1785         documentation.  Sort m4_mkstemp, m4_undefine.  Move m4_ifndef...
1786         (Conditional constructs): ...here, to new section.  Also document
1787         m4_cond, m4_ifval, m4_n, m4_ifvaln, m4_ifset, m4_case, m4_bmatch,
1788         m4_bpatsubsts, and m4_default.
1789         (Looping constructs): Document m4_shiftn, m4_shift2, m4_shift3,
1790         m4_do.
1792 2007-10-04  Eric Blake  <ebb9@byu.net>
1794         Fix recent testsuite failures.
1795         * lib/autotest/general.m4 (AT_INIT, AT_SETUP): Double-quote text
1796         that must not be re-expanded after AS_ESCAPE.
1797         * lib/m4sugar/m4sh.m4 (_AS_IDENTIFIER_IF): Don't expand $1 when
1798         checking if it is an identifier.
1800         Whitespace cleanup.
1801         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Avoid
1802         leading whitespace, as it caused space-tab in testsuite.
1803         (AT_INIT): Avoid trailing newlines in testsuite.
1805         One more round of m4_foreach_w speedups.
1806         * lib/m4sugar/m4sugar.m4 (m4_flatten): Only use regex if newline
1807         is present.
1808         (_m4_split): Avoid useless expansions inside definition.  Move
1809         argument defaulting...
1810         (m4_split): ...here.  Change alternate quote to something less
1811         likely to appear in $1.  Also, special case space as regexp...
1812         (m4_foreach_w): ...to avoid regexp on single-term list.
1813         (m4_default, m4_defn, m4_popdef, m4_undefine, _m4_foreach): Avoid
1814         useless expansions inside definition.
1815         * tests/m4sugar.at (m4@&t@_split): Add tests.
1817 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
1819         * general.m4 (AT_INIT): Add at_check_newline function.
1820         (_AT_DECIDE_TRACEABLE): Include at_traceon test, use shell function.
1821         (_AT_CHECK): Don't use at_trace_this.
1823 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
1825         Fix previous commit.
1826         * lib/autotest/general.m4 (AT_LINE): Fix regex.
1828 2007-10-04  Eric Blake  <ebb9@byu.net>
1830         Speed up building testsuites.
1831         * lib/autotest/general.m4 (AT_LINE): Only use regex when file
1832         changed since last time.  Use simpler regex.
1834 2007-10-03  Eric Blake  <ebb9@byu.net>
1836         Optimize checking for identifiers.
1837         * lib/m4sugar/m4sh.m4 (AS_IDENTIFIER_IF, _AS_IDENTIFIER_IF): New
1838         macros, more efficient than regex on m4_re_word.
1839         * lib/autoconf/general.m4 (AC_SUBST, AC_DEFINE_TRACE_LITERAL):
1840         Rewrite in terms of new macro.  As a side-effect, AC_DEFINE can
1841         now use @&t@.
1842         * configure: Regenerate.
1844         Remove some XFAILs, and make AT_SETUP output line up.
1845         * lib/autotest/general.m4 (AT_SETUP): Only expand description
1846         once; thereafter, use its expansion, properly quoted.
1847         * tests/autotest.at (AT_CHECK_AT_TITLE): Also check macro
1848         expansion with arguments, and check for aligned output.
1849         (AT_CHECK_AT_TITLE_CHAR): Remove XFAILs for tests that now pass.
1850         Add a test for macros with parameters.
1851         * NEWS: Document the semantics change.
1852         * tests/base.at: Fix test titles containing commas.
1853         * tests/compile.at: Likewise.
1854         * tests/tools.at: Likewise.
1855         * tests/torture.at: Likewise.
1857         Another round of regex avoidance.
1858         * lib/m4sugar/m4sugar.m4 (m4_cr_alnum, m4_cr_all)
1859         (_m4_define_cr_not, m4_cr_not_letters, m4_cr_not_LETTERS)
1860         (m4_cr_not_Letters, m4_cr_not_digits, m4_cr_not_alnum)
1861         (m4_cr_not_symbols1, m4_cr_not_symbols2): New macros, implementing
1862         character ranges useful in m4_translit.
1863         (m4_toupper, m4_tolower): Optimize the constant portion of
1864         definition.
1865         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Also reject @S|@ because it
1866         creates $, and reject [] thanks to AS_TR_SH rewrite.
1867         (AS_TR_SH, AS_TR_CPP): Use just translit, not bpatsubst.
1868         (AS_ESCAPE): Factor...
1869         (_AS_ESCAPE): ...into new macro, with second argument required.
1870         Avoid regex in common case.
1871         (_AS_QUOTE): Use new macro.
1873         Whitespace cleanup.
1874         * lib/autoconf/types.m4: Avoid space-tab.
1875         * lib/m4sugar/m4sh.m4: Use tab consistently.
1877 2007-10-03  Paul Eggert  <eggert@cs.ucla.edu>
1879         * lib/m4sugar/m4sugar.m4 (m4_shift2, m4_shift3): New macros.
1880         (m4_shiftn): Remove no-longer-needed optimization.  Perhaps we
1881         should remove m4_shiftn entirely?
1882         (m4_case, b4_bmatch, m4_map_sep, m4_bpatsubsts, m4_join):
1883         Prefer m4_shift2 and m4_shift3 to m4_shiftn.
1884         * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
1885         * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Likewise.
1886         * tests/autotest.at (AT_CHECK_AT_TEST): Likewise.
1888 2007-10-03  Eric Blake  <ebb9@byu.net>
1890         Comment touchups.
1891         * lib/m4sugar/m4sugar.m4: Grammar fixes in comments.
1893 2007-10-02  Eric Blake  <ebb9@byu.net>
1895         Optimize appending text.
1896         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Use index, not regular
1897         expressions.
1899         Optimize recursion.
1900         * lib/m4sugar/m4sugar.m4 (m4_shiftn): This macro is called in a
1901         lot of hot spots; optimize it for 2 and 3 shifts.
1903         Optimize AC_PREREQ and other m4sugar numerics.
1904         * lib/m4sugar/m4sugar.m4 (m4_sign): Write with m4_eval.
1905         (m4_cmp): Compare arbitrary expressions, without overflow.
1906         (m4_version_unletter): Also recognize capital letters.
1907         (m4_version_compare): Avoid regex when splitting version number
1908         string.
1910 2007-10-01  Eric Blake  <ebb9@byu.net>
1912         Once again, reject IRIX m4.
1913         * m4/m4.m4 (AC_PROG_GNU_M4): Use indir builtin to root out non-GNU
1914         implementations that ignore --trace.
1915         * configure: Regenerate.
1916         Reported by Ralf Wildenhues.
1918         Fix regression in AC_DEFINE([macro(with_arg)]).
1919         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't chop off close
1920         quotes with a careless m4_substr.
1922 2007-09-30  Eric Blake  <ebb9@byu.net>
1924         Allow nameless iteration.
1925         * lib/m4sugar/m4sugar.m4 (m4_for, _m4_for): Access variable
1926         indirectly.
1927         * tests/m4sugar.at (myvar): Test this.
1929 2007-09-29  Eric Blake  <ebb9@byu.net>
1931         Speed optimization: avoid m4 regex when other algorithms work.
1932         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Rewrite without regex.
1933         (_AS_QUOTE_IFELSE): Likewise.
1934         * lib/m4sugar/m4sugar.m4 (m4_strip): Reduce from 3 to 2 regex.
1935         (m4_bpatsubsts): Split...
1936         (_m4_bpatsubsts): ...so that recursion can avoid patsubst on empty
1937         regex.
1938         (_m4_divert()): Define, to avoid m4 warning on `m4_divert'.
1939         (m4_qlen): Optimize on short strings, to avoid regex.
1940         (m4_sign): Avoid regex, and fix bug with `01' and `-0'.
1941         * lib/autoconf/general.m4 (AC_CACHE_VAL): Rewrite without regex.
1942         (AC_DEFINE_TRACE): Likewise.
1944 2007-09-28  Eric Blake  <ebb9@byu.net>
1946         Oops - my earlier 'optimization' caused a regression.
1947         * tests/local.at (AT_CHECK_M4): Fix typo.
1949 2007-09-27  Eric Blake  <ebb9@byu.net>
1950         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1952         Catch even more common AC_CACHE_VAL mistakes.
1953         * lib/autoconf/general.m4 (AC_CACHE_VAL): Warn if cache variable
1954         lacks '_cv_', or if AC_SUBST appears in body.
1955         * tests/base.at (AC_CACHE_CHECK): Test this change.
1957 2007-09-27  Stepan Kasal  <kasal@ucw.cz>
1958         and Eric Blake  <ebb9@byu.net>
1960         Autotest no longer caters to Ultrix redirection limitation.
1961         * doc/autoconf.texi (Writing testsuite.at): Remove the
1962         limitation that the first parameter of AT_CHECK cannot
1963         contain redirection.
1964         (File Descriptors): Mention that Ultrix limitation is no longer a
1965         show-stopper in modern code.
1966         * tests/local.at (AT_CHECK_M4): Fix for cases when the fourth
1967         parameter is `stderr' or `experr'.  Optimize if it was `ignore'.
1968         * lib/autotest/general.m4 (AT_CHECK): Update comment.
1970 2007-09-27  Eric Blake  <ebb9@byu.net>
1972         Squelch changeword in m4sugar.
1973         * lib/m4sugar/m4sugar.m4 (changeword): Disable this experimental
1974         feature of m4 1.4.x.
1976         Configure whitespace touchups.
1977         * lib/autoconf/general.m4 (_AC_INIT_HELP): Fix alignment of
1978         installation directories, and avoid TAB, in configure --help
1979         output.
1980         * configure.ac: Avoid extra trailing newline.
1981         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Avoid space-tab.
1982         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid TAB in
1983         config.status --help output.
1984         * configure: Regenerate.
1986         Fix underquotation in AS_HELP_STRING.
1987         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Don't underquote lhs
1988         argument.
1989         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't underquote
1990         first-prefix argument.
1991         * tests/m4sh.at (AS@&t@_HELP_STRING): Test this fix.
1992         * NEWS: Document AS_HELP_STRING fix.
1994         Autotest formatting touchups.
1995         * lib/autotest/general.m4 (HELP_TUNING): Avoid TAB in terminal
1996         output.
1997         (PATH): Simplify computation of new PATH.
1999 2007-09-26  Eric Blake  <ebb9@byu.net>
2001         Fix testsuite breakage in last patch.
2002         * tests/autotest.at (AT_CHECK_AT_TITLE): Properly quote the
2003         font-lock fix.
2004         * tests/torture.at (@%:@define header templates): Rename, so that
2005         output lines up correctly.
2007         More font-lock happiness.
2008         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Clean up font
2009         confusion.
2011 2007-09-25  Eric Blake  <ebb9@byu.net>
2013         Typo fixes.
2014         * lib/autoconf/general.m4 (AC_SUBST): Fix typo in comment.
2015         * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Likewise.
2017         Improve documentation of M4 parameter expansion.
2018         * doc/autoconf.texi (Quoting and Parameters): New section.
2019         (Quotation and Nested Macros): Improve wording.
2021         Improve C99 detection.
2022         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and
2023         avoid deprecation warning with icc.
2024         * THANKS: Update.
2025         Reported by Ted Bullock.
2027 2007-09-24  Jim Meyering  <jim@meyering.net>
2029         Whenever possible, use the vertical bar as sed delimiter.
2030         * lib/autoconf/functions.m4 (GETLOADAVG_LIBS) [AC_FUNC_GETLOADAVG]:
2031         Use "|", not "!".
2032         * lib/autoconf/status.m4 (_AC_SRCDIRS) [ac_top_builddir_sub]:
2033         [ac_dir_suffix]: Use "|", not "," as sed delimiter.
2034         * tests/mktests.sh (as_me): Likewise.
2035         * lib/freeze.mk (check-forbidden-patterns): Likewise.
2036         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
2037         * configure: Regenerate.
2038         * doc/autoconf.texi (Shell Substitutions): Use "|", not "," in examples.
2039         * lib/autotest/general.m4 (AT_INIT): Use "|", not "&" as sed delimiter
2040         in the : -> $PATH_SEPARATOR transformation of $AUTOTEST_PATH.
2041         This is fine, as long as $PATH_SEPARATOR doesn't contain "|".
2043 2007-09-22  Jim Meyering  <jim@meyering.net>
2045         Add a comment.
2046         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Document the
2047         2004-05-31 change also with a comment in the code.
2049 2007-09-20  Eric Blake  <ebb9@byu.net>
2051         More contribution housekeeping.
2052         * THANKS: Sort.
2053         * AUTHORS: Sort, reflect recent assignment from Helge Deller.
2055         Ignore additional files, when copying cross-repository.
2056         * .gitignore: Ignore CVS directories, emacs edits.
2057         * .cvsignore: Ignore .git directory, emacs edits.
2059 2007-09-15  Eric Blake  <ebb9@byu.net>
2061         Provide AC_VERSION, not m4_AUTOCONF_VERSION.
2062         * doc/autoconf.texi (Text processing Macros): Remove mention of
2063         m4_AUTOCONF_VERSION, and leave m4_PACKAGE_VERSION undocumented
2064         once again.
2065         (Notices): Move AC_PREREQ...
2066         (Versioning): ...to this new section, alongside the new AC_VERSION
2067         alias for the undocumented m4_PACKAGE_VERSION.
2068         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): Revert change.
2069         * lib/autoconf/general.m4 (AC_VERSION): New macro.
2070         * NEWS: Update to match this rename.
2071         * tests/m4sugar.at (m4@&t@_version_compare): Remove tests of
2072         m4_PACKAGE_VERSION.
2073         * tests/tools.at (autoconf: AC_VERSION): New test.
2074         Suggested by Paolo Bonzini and Benoit Sigoure.
2076 2007-09-14  Eric Blake  <ebb9@byu.net>
2078         Prepare for conversion to git.
2079         * doc/.cvsignore: Avoid multiple listings on one line.
2080         * bin/.cvsignore: Likewise.
2081         * .gitignore, bin/.gitignore, config/.gitignore, doc/.gitignore,
2082         lib/.gitignore, lib/Autom4te/.gitignore, lib/autoconf/.gitignore,
2083         lib/autoscan/.gitignore, lib/autotest/.gitignore,
2084         lib/emacs/.gitignore, lib/m4sugar/.gitignore, man/.gitignore,
2085         tests/.gitignore: New files, identical to .cvsignore counterpart.
2087 2007-09-13  Eric Blake  <ebb9@byu.net>
2089         Editing eye-candy.
2090         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Restore
2091         font-lock balance.
2092         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Likewise.
2093         * lib/autoconf/general.m4 (_AC_DO_ECHO): Likewise.
2094         * configure: Regenerate.
2096         Clean up 'make dist' of previous patch.
2097         * tests/Makefile.am (EXTRA_DIST): Distribute mktests.stamp.
2098         (CLEANFILES): Don't clean the stamp, since we distribute the
2099         generated files pre-built.
2100         (MAINTAINERCLEANFILES): Clean it here instead.
2101         * tests/Makefile.in: Regenerate.
2103         Avoid parallel 'make check' issue.
2104         * tests/Makefile.am (mktests.stamp): New witness.
2105         (TESTSUITE_GENERATED_AT): Use it.
2106         (CLEANFILES): Clean the witness.
2107         * tests/.cvsignore (mktests.stamp): Ignore the witness.
2109         Document another awk pitfall.
2110         * doc/autoconf.texi (Limitations of Usual Tools) <awk>: Document
2111         limitation of field variables in END.
2112         Reported by Gary V. Vaughan.
2114         * AUTHORS: Add missing entries.
2116 2007-09-12  Eric Blake  <ebb9@byu.net>
2118         Publish m4_ifndef, m4_version_compare, m4_AUTOCONF_VERSION.
2119         * doc/autoconf.texi (Text processing Macros): Document
2120         m4_version_compare, m4_AUTOCONF_VERSION, m4_PACKAGE_VERSION.
2121         (Redefined M4 Macros): Document m4_ifndef.
2122         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): New macro; we
2123         can't obsolete m4_PACKAGE_VERSION at this time since Autoconf 1.10
2124         used it while it was undocumented.
2125         * NEWS: Document this change.
2126         * lib/m4sugar/Makefile.am (version.m4): Update copyright dates.
2127         * lib/m4sugar/Makefile.in: Regenerate.
2128         * tests/m4sugar.at (m4@&t@_version_compare): New test.
2129         Reported by Bruno Haible.
2131         * doc/autoconf.texi (Generic Compiler Characteristics): Add
2132         missing index entries.
2134 2007-09-11  Eric Blake  <ebb9@byu.net>
2136         Centralize all system extensions checks.
2137         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
2138         from AC_AIX, AC_GNU_SOURCE, AC_MINIX.  Add Interix support.
2139         (AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
2140         AC_USE_SYSTEM_EXTENSIONS.
2141         (AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
2142         (AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
2143         * doc/autoconf.texi (Posix Variants): Reword this section,
2144         emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
2145         rather than a series of system-specific checks.
2146         (Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
2147         AC_MINIX.
2148         * NEWS: Document this change.
2149         * THANKS: Update.
2150         Reported by Martin Koeppe.
2152 2007-09-08  Eric Blake  <ebb9@byu.net>
2154         Clean up obsolete macros references.
2155         * doc/autoconf.texi: Add anchors to support better
2156         cross-referencing.
2157         (Particular Structures): Move obsolete macros descriptions...
2158         (External Software): Likewise.
2159         (Package Options): Likewise.
2160         (Obsolete Macros): ...to here.  Add cross-references to
2161         documentation on replacements.
2162         * NEWS: Mention that these macros have been obsolete for a while
2163         now: AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_RDEV AC_WITH AC_ENABLE.
2165         Improve M4 path searching during configure.
2166         * lib/autoconf/programs.m4 (AC_PATH_PROGS_FEATURE_CHECK): New
2167         macro.
2168         (_AC_PATH_PROG_FEATURE_CHECK): Rename...
2169         (_AC_PATH_PROGS_FEATURE_CHECK): ...to this, add defaulted action
2170         parameter, and kill side effects.
2171         (_AC_PROG_GREP, AC_PROG_SED): Adjust callers.
2172         (_AC_FEATURE_CHECK_LENGTH): Kill extra whitespace.
2173         * m4/m4.m4 (AC_PROG_GNU_M4): Don't stop searching until working m4
2174         is found.
2175         (AC_PATH_PROGS_FEATURE_CHECK): Add backwards compatibility hack to
2176         allow bootstrapping with autoconf 2.61.
2177         * configure.ac (M4): AC_PROG_GNU_M4 now exits on failure.
2178         * configure: Regenerate.
2179         * doc/autoconf.texi (Generic Programs): Document new macro.
2180         * tests/mktests.sh (au_exclude_script): Exclude auto-testing new
2181         macro.
2182         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): New test.
2183         * NEWS: Document the change.
2184         * THANKS: Update.
2185         Reported by Hans Aberg.
2187         * doc/autoconf.texi (Generic Programs): Fix typo.
2189 2007-09-06  Eric Blake  <ebb9@byu.net>
2191         * doc/autoconf.texi (Generic Programs): Use $PATH_SEPARATOR, not
2192         :, and make it clear that optional @var{path} defaults to $PATH.
2193         (Erlang Compiler and Interpreter): Likewise.
2195         Texinfo cleanup.
2196         * doc/autoconf.texi: Avoid lines > 80 columns when possible.
2197         Reword some paragraphs to avoid overfull, underfull hbox
2198         warnings.  Add index entries to avoid overfull vbox warnings.
2200 2007-09-05  Eric Blake  <ebb9@byu.net>
2202         * NEWS: Adjust wording for AC_CONFIG_LINKS.
2203         Reported by Ralf Wildenhues.
2205 2007-09-03  Eric Blake  <ebb9@byu.net>
2207         * NEWS: Document fixes that have been applied since 2.61a.
2209         Housekeeping.
2210         * THANKS: Update, and convert to UTF-8 encoding.
2211         * AUTHORS: Likewise.
2213 2007-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2215         * lib/autoconf/general.m4 (AC_SITE_LOAD): Guard against file
2216         names beginning with `-' again.
2218 2007-08-22  Stepan Kasal  <kasal@ucw.cz>
2219             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2221         * doc/autoconf.texi (Defining Directories): Mention
2222         AM_CPPFLAGS, as the way to modify CPPFLAGS when using Automake.
2224 2007-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2226         * lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
2227         here, this macro is expanded by AC_INIT.  Fixes 2.60 regression.
2228         * tests/base.at (configure arguments): New test.
2229         * THANKS: Update.
2230         Report by Olaf Lenz.
2232         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Expand macro
2233         arguments in comment.
2234         Report by Vincent Torri <vtorri at univ minus evry dot fr>.
2236 2007-08-20  Benoit Sigoure  <tsuna@lrde.epita.fr>
2238         * doc/autoconf.texi (File System Conventions): Index the proper
2239         way of detecting absolute file names.
2241 2007-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2243         * build-aux/config.guess, build-aux/config.sub,
2244         build-aux/elisp-comp, build-aux/install-sh, build-aux/mdate-sh,
2245         build-aux/missing, build-aux/texinfo.tex, doc/fdl.texi,
2246         doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
2247         * doc/autoconf.texi (GNU Free Documentation License): Adjust for
2248         sectioning change in fdl.texi.
2250         * bin/autoconf.as: Update --version output to match current GCS.
2251         * bin/autoheader.in: Likewise.
2252         * bin/autom4te.in: Likewise.
2253         * bin/autoreconf.in: Likewise.
2254         * bin/autoscan.in: Likewise.
2255         * bin/autoupdate.in: Likewise.
2256         * bin/ifnames.in: Likewise.
2258 2007-08-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2260         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not try to link a
2261         file to itself if source and build trees coincide.
2262         * tests/torture.at (AC_CONFIG_LINKS and identical files): New
2263         test.
2264         Report by Sebastian Freundt <hroptatyr@gna.org>.
2266 2007-07-20  Paul Eggert  <eggert@cs.ucla.edu>
2268         Reword the copyright notices to match what's suggested in GPLv3.
2269         In ChangeLog files, use more-permissive notice rather than GPL, as
2270         per usual GNU standards these days.
2272 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
2274         * doc/autoconf.texi (autoreconf Invocation): Document ACLOCAL_AMFLAGS
2275         limitation reported by Leo Moisio in
2276         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432941>.
2278 2007-07-03  Paul Eggert  <eggert@cs.ucla.edu>
2280         * COPYING: Update to GPLv3.  All uses changed.
2282 2007-06-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2283         and Paul Eggert  <eggert@cs.ucla.edu>
2285         * doc/autoconf.texi (Limitations of Usual Tools): sed -e ''
2286         fails on AIX 5.3.
2288 2007-06-17  Noah Misch  <noah@cs.caltech.edu>
2290         * lib/autotest/general.m4 (AT_INIT): Handle absolute `srcdir'.
2291         * tests/autotest.at (srcdir propagation): Test absolute `srcdir' and
2292         `srcdir' as subdirectory of `builddir'.
2294 2007-06-13  Noah Misch  <noah@cs.caltech.edu>
2296         * lib/autotest/general.m4 (AT_INIT): Compute $srcdir correctly.
2297         * tests/autotest.at (srcdir propagation): New test.
2298         * THANKS: Update.
2299         Reported by Mike Frysinger.
2301 2007-06-13  Paul Eggert  <eggert@cs.ucla.edu>
2303         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Set FPATH too.
2304         Problem reported by Fred Kreek in
2305         <http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00009.html>.
2306         * doc/autoconf.texi (Special Shell Variables): Warn about FPATH.
2307         (Macro Names, Defining Directories): Don't mention PATH as a name
2308         for a fully qualified file name, as this usage violates the GNU
2309         coding standards and we shouldn't recommend it.
2311         * lib/autotest/general.m4 (AT_INIT): Don't set PATH to the empty
2312         string and then assume shell builtins like "test" will work.
2314 2007-06-12  Noah Misch  <noah@cs.caltech.edu>
2316         * lib/autoconf/general.m4 (AC_SUBST): Raise a fatal error if VARIABLE is
2317         not a valid shell variable name.
2318         * tests/mktests.sh (ac_exclude_list): Add AC_ARG_VAR.
2319         * tests/torture.at (AC_SUBST: variable name validation): New test.
2320         Reported by Andreas Schwab.
2322 2007-06-04  Noah Misch  <noah@cs.caltech.edu>
2324         * doc/autoconf.texi (AC_F77_MAIN): Give a specific usage example that
2325         works with both C and C++.
2327 2007-06-03  Noah Misch  <noah@cs.caltech.edu>,
2328             Bruno Haible  <bruno@clisp.org>
2330         * lib/autoconf/c.m4 (AC_OPENMP): Use a simple loop instead of compiler
2331         brand tests.
2333 2007-05-31  Paul Eggert  <eggert@cs.ucla.edu>
2335         * doc/autoconf.texi (Particular Types): Give example of use for
2336         AC_TYPE_INT8_T etc.
2338 2007-05-29  Stepan Kasal  <kasal@ucw.cz>
2340         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Fix a typo.
2342 2007-05-28  Paul Eggert  <eggert@cs.ucla.edu>
2344         * doc/autoconf.texi (Particular Types): AC_TYPE_INT8_T does not
2345         define HAVE_INT8_T, and likewise for similar macros.
2346         Problem reported by Patrick Welche in
2347         <http://lists.gnu.org/archive/html/autoconf/2007-05/msg00062.html>.
2349 2007-05-25  Noah Misch  <noah@cs.caltech.edu>
2351         * bin/Makefile.am ($(top_builddir)/bin/autom4te): New dependency.
2353 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
2355         * lib/autoconf/c.m4 (AC_OPENMP): Don't echo --enable-openmp
2356         choice, since that's what we do with --enable-largefile etc.
2357         Redo indenting and assignments to simplify things a bit, and make
2358         the parens work with Emacs.
2360         * doc/autoconf.texi (Generic Compiler Characteristics): Fix typo
2361         in my previous change: AC_C_OPENMP -> AC_OPENMP.  Reported by Bruno
2362         Haible.
2364 2007-05-21  Noah Misch  <noah@cs.caltech.edu>
2366         * lib/autoconf/c.m4 (AC_OPENMP): Simplify use of AC_ARG_ENABLE.
2367         * tests/local.at (AT_CHECK_ENV): Exempt OPENMP_CFLAGS.
2369 2007-05-21  Bruno Haible  <bruno@clisp.org>
2371         * NEWS: Rename AC_C_OPENMP to AC_OPENMP.
2372         * lib/autoconf/c.m4 (AC_OPENMP): Renamed from AC_C_OPENMP.
2373         * doc/autoconf.texi (Generic Compiler Characteristics): Move
2374         renamed AC_OPENMP documentation here, from "C compiler".
2375         Mention C++ and Fortran.
2377 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
2379         * doc/autoconf.texi (C Compiler): Tweak OpenMP documentation a bit.
2381 2007-05-21  Bruno Haible  <bruno@clisp.org>
2383         * NEWS: Mention AC_C_OPENMP.
2384         * lib/autoconf/c.m4 (AC_C_OPENMP): New macro.
2385         * doc/autoconf.texi (C Compiler): Document AC_C_OPENMP.
2386         Based in part on Steven G. Johnson's investigations for the AX_OPENMP
2387         macro in the Autoconf macro archive.
2389 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2391         * bin/autom4te.in: Fix typos.
2393 2007-05-16  Noah Misch  <noah@cs.caltech.edu>
2395         * bin/autoconf.as: Handle `-' just like other input files.
2396         * bin/autom4te.in (parse_args): Pass `-' through.
2397         (handle_output): Skip the forbidden token search if we read from stdin.
2398         (up_to_date): Always treat stdin as out of date.
2399         * tests/tools.at (autoconf: input from stdin): New test.
2400         (autoconf: forbidden tokens, basic): Check a second `autoconf' run.
2402 2007-05-16  Stepan Kasal  <kasal@ucw.cz>
2404         * tests/foreign.at tests/semantics.at, tests/tools.at: Remove
2405         parameters for AT_CLEANUP.
2406         * tests/local.at (AT_CHECK_AU_MACRO): Likewise.
2408 2007-05-14  Paul Eggert  <eggert@cs.ucla.edu>
2410         * NEWS: Document that AC_C_RESTRICT checks 'restrict' last.
2411         * doc/autoconf.texi (C Compiler): Likewise.
2413 2007-05-14  Noah Misch  <noah@cs.caltech.edu>
2415         * lib/autoconf/c.m4 (AC_C_RESTRICT): Check `restrict' last.
2417 2007-05-09  Stepan Kasal  <kasal@ucw.cz>
2419         * doc/autoconf.texi: Direntry for "autoconf Invocation"
2420         renamed to "autoconf-invocation"
2422         * doc/autoconf.texi (Caching Results): The CACHE-ID variable
2423         in the examples should not use the internal "ac_" prefix.
2425 2007-05-05  Noah Misch  <noah@cs.caltech.edu>
2427         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): Use `eval'.
2428         * doc/autoconf.texi ($@, case): Document Zsh limitations.
2430 2007-05-03  Stepan Kasal  <kasal@ucw.cz>
2432         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
2433         Reorganize the comments before and in the macro.
2435 2007-05-02  Stepan Kasal  <kasal@ucw.cz>
2437         * lib/autoconf/lang.m4, lib/autoconf/c.m4,
2438         lib/autoconf/fortran.m4, lib/autoconf/erlang.m4: Cleanup of
2439         section titles and other comments; no code change.
2441 2007-05-01  Kevin Ryde  <user42@zip.com.au>
2443         * doc/autoconf.texi (Particular Programs): Typo
2444         @acindex{AC_PROG_MKDIR_P} shouldn't have "AC" in that call.
2446 2007-04-30  Paul Eggert  <eggert@cs.ucla.edu>
2448         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Don't imply that
2449         'configure' will fail if the shell lacks proper support for shell
2450         functions.  Suggested by RMS.
2452 2007-04-29  Paul Eggert  <eggert@cs.ucla.edu>
2454         * doc/autoconf.texi (Limitations of Builtins): Correct the warning
2455         about Solaris /bin/printf '%010000x' 123.  Problem reported by
2456         Bruno Haible.
2458 2007-04-28  Paul Eggert  <eggert@cs.ucla.edu>
2460         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look
2461         for a.* when searching for executables, as this prevents users
2462         from having files like a.c.  Problem reported by Ralf Wildenhues in:
2463         http://lists.gnu.org/archive/html/autoconf-patches/2007-04/msg00029.html
2464         This fixes a problem introduced on 2000-12-19.
2466 2007-04-26  Paul Eggert  <eggert@cs.ucla.edu>
2468         * doc/autoconf.texi (Limitations of Builtins): Warn about Solaris
2469         /bin/printf '%010000x' 123.  Problem reported by Arto C. Nirkko
2470         via Bruno Haible.
2472 2007-04-12  Paul Eggert  <eggert@cs.ucla.edu>
2474         * NEWS: Document recent changes to AC_CHECK_ALIGNOF, AC_CHECK_SIZEOF,
2475         AC_CHECK_TYPE, AC_CHECK_TYPES.
2476         * doc/autoconf.texi (Generic types): C types must be type-names
2477         (the C terminology), not type-ids (the C++ term).  C++ types
2478         must not be anonymous.
2479         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Remove special case
2480         for C++; this drops support for anonymous struct and union types,
2481         which were problematic anyway.
2482         * tests/semantics.at (AC_CHECK_HEADERS_NEW): Adjust test to work even
2483         for C++.
2485 2007-04-12  Jim Meyering  <jim@meyering.net>
2487         * doc/autoconf.texi (Libraries): Typo fix: insert missing "in".
2489 2007-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2491         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Fix AC_CONFIG_LINKS
2492         to prefer a link source from the build tree, if it exists.
2493         Report by Pallav Gupta <pallavgupta@gmail.com>.
2495 2007-04-11  Paul Eggert  <eggert@cs.ucla.edu>
2497         * doc/autoconf.texi (Generic Types): Document the restrictions
2498         on types imposed by AC_CHECK_TYPE, AC_CHECK_TYPES.
2499         (Generic Compiler Characteristics): AC_CHECK_SIZEOF now works
2500         with objects too.  Document the restrictions on its use.
2501         Document the restrictions on AC_CHECK_ALIGNOF's type argument.
2502         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW):
2503         For C, just try sizeof (TYPE) and sizeof ((TYPE)); if the former
2504         works but the latter doesn't, then it's a valid type.
2505         This lets people use function types and so forth.
2506         For C++ there doesn't seem to be a simple solution, so leave it alone.
2507         (AC_CHECK_SIZEOF): Allow argument to be a variable.
2508         (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Don't bother to invoke
2509         AC_CHECK_TYPE; that wasn't documented or necessary.
2511 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
2513         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Skip AS_TEST_X
2514         when cross-compiling.
2516 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
2518         * doc/autoconf.texi (External Software): Fix a typo in the
2519         previous change.
2521 2007-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2523         * doc/autoconf.texi (External Software, Package Options):
2524         Fix ambiguous wording.  Report by Reuben Thomas <rrt@sc3d.org>.
2526 2007-04-06  Paul Eggert  <eggert@cs.ucla.edu>
2528         * doc/autoconf.texi (Particular Types): AC_C_LONG_DOUBLE is now
2529         obsolescent.  Suggested by Bruno Haible.
2530         * NEWS: Document this.
2532 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
2534         * doc/autoconf.texi (Here-Documents, Limitations of Builtins):
2535         (Limitations of Usual Tools): Don't say "older" if Solaris 10 by
2536         default still has the problem.  Problem reported by Bruce Korb.
2538 2007-03-28  Stepan Kasal  <kasal@ucw.cz>
2539         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2541         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix a
2542         comment in the generated config.status.
2544 2007-03-27  Stepan Kasal  <kasal@ucw.cz>
2546         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Update comment.
2548 2007-03-26  Paul Eggert  <eggert@cs.ucla.edu>
2550         * doc/autoconf.texi (Shellology): Rework treatment of the 'test'
2551         command and case statements to make it a bit clearer and describe
2552         more pitfalls.
2554 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
2556         * doc/autoconf.texi (C Compiler): Mention that AC_PROG_CC_C99 also
2557         checks for unsigned long long int.
2559 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2561         * doc/autoconf.texi (Limitations of Usual Tools): Warn about other
2562         nonstandard grep R.E. escape sequences.
2564 2007-03-17  Jim Meyering  <jim@meyering.net>
2566         * doc/autoconf.texi: Adjust grammar around use of "heuristics".
2567         (Limitations of Usual Tools): Also list \< and \>, and mention that
2568         HP-UX's grep, like the one from Solaris, does not support that syntax.
2570 2007-03-09  Stepan Kasal  <kasal@ucw.cz>
2572         * doc/autoconf.texi (Specifying Names): `--host' does not
2573         change the build type.
2575 2007-03-05  Paul Eggert  <eggert@cs.ucla.edu>
2577         * doc/autoconf.texi (C Compiler): Warn that AC_C_BIGENDIAN
2578         suggests AC_CONFIG_HEADERS.
2579         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Warn if not using
2580         AC_CONFIG_HEADERS.  Problem reported by
2581         Peter O'Gorman.
2583 2007-02-28  Paul Eggert  <eggert@cs.ucla.edu>
2585         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Fix typo "__LITLE_ENDIAN__".
2586         Problem reported by Paolo Bonzini in:
2587         http://lists.gnu.org/archive/html/autoconf-patches/2007-02/msg00024.html
2588         * tests/semantics.at (AC_C_BIGENDIAN): Don't reject hosts that have
2589         universal binaries.  Problem reported by Elias Pipping.
2591 2007-02-27  Paul Eggert  <eggert@cs.ucla.edu>
2593         * NEWS: AC_C_BIGENDIAN now supports universal binaries a la Mac OS X.
2594         * doc/autoconf.texi (C Compiler): Document this.  There is a new
2595         extra argument ACTION-IF-UNIVERSAL.
2596         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Implement this.
2597         Add support for Solaris-style _LITTLE_ENDIAN and _BIG_ENDIAN.
2598         Reindent for sanity's sake.
2600 2007-02-24  Eric Blake  <ebb9@byu.net>
2602         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
2603         copyright.
2604         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
2605         * lib/autotest/general.m4 (AT_INIT): Likewise.
2606         (_AT_DECIDE_TRACEABLE): Fix syntax highlighting.
2608 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2610         * lib/autotest/general.m4 (AT_INIT): With --clean, return exit
2611         status of rm so we know when it failed.
2612         If cleaning of test dir failed before running the test, warn.
2613         Output the line separator in verbose mode before the warning
2614         to make clear the warning belongs to the following test.
2616 2007-02-08  Paul Eggert  <eggert@cs.ucla.edu>
2618         * doc/autoconf.texi (Parentheses): Mention problem with (( in
2619         shells.
2621 2007-02-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2622         and Paul Eggert  <eggert@cs.ucla.edu>
2624         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix quoting
2625         errors introduced in last change.
2627 2007-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2629         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer \r to
2630         an actual carriage return.  Use "ac_cr" to contain the actual
2631         carriage return.
2632         * doc/autoconf.texi (Limitations of Usual Tools): Document problem
2633         with traditional Awk and begin.
2634         * tests/torture.at (Limitations of Builtins): Document the problem
2635         with Bash 2.03 printf.
2636         (Substitute and define special characters):
2637         Remove trailing white space.  Work around a bug in Solaris 8 /bin/bash.
2639 2007-02-06  Ralf Menzel  <menzel@ls6.cs.uni-dortmund.de>  (tiny change)
2641         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Redirect
2642         input from /dev/null in awk test, so even Solaris /usr/bin/awk
2643         will not wait for input with a script containing only a BEGIN
2644         rule.
2646 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
2648         * doc/autoconf.texi (Introduction, Why GNU M4): Clarify M4 version
2649         requirements.
2650         * README: Likewise.
2652 2007-02-02  Eric Blake  <ebb9@byu.net>
2654         * NEWS: Update copyright.
2656         * m4/m4.m4 (AC_PROG_GNU_M4): Reject M4 1.4 through 1.4.4 as
2657         broken.
2658         * configure.ac: Update error message.
2659         * NEWS: Note that M4 1.4.5 or later is now a hard dependency.
2660         Reported by Gary Vaughan and Jim Meyering, and problem analyzed
2661         by Stepan Kasal:
2662         http://lists.gnu.org/archive/html/bug-autoconf/2006-11/msg00025.html
2664 2007-01-31  Eric Blake  <ebb9@byu.net>
2666         * THANKS (people): Update.
2668 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
2670         * doc/autoconf.texi (Shellology): pdksh 5.2.14 is still the
2671         latest version.
2672         (Shell Substitutions): Note problems with @{var:=value} etc.
2673         Add a new section for problems with @{#var} etc.  Problem noted
2674         by Ralf Wildenhues.  See:
2675         http://lists.gnu.org/archive/html/libtool-patches/2005-01/msg00157.html
2677 2007-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2679         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Also
2680         AC_SUBST([MKDIR_P]), so that Automake < 1.10 will pick up its
2681         trace, if a package uses AC_PROG_MKDIR_P explicitly.  The actual
2682         substitution will still be done by the special code.
2683         Report by Jim Meyering.
2685         * doc/autoconf.texi (File System Conventions): Mention that
2686         $PATH_SEPARATOR is for the build system only.
2687         Report by Keith Marshall.
2689 2007-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2691         * doc/autoconf.texi (Setting Output Variables): Mention that
2692         all non-NUL characters are ok in substituted values.
2693         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Fix comment typo.
2694         (_AC_OUTPUT_FILES_PREPARE): Test and use backslash escaping of
2695         carriage return for $AWK, needed for BSD awk.
2696         * tests/torture.at (Substitute and define special characters):
2697         Test all 8 bit non-NUL characters.
2698         Report against Automake by Patrick Welche.
2700 2007-01-15  Stepan Kasal  <kasal@ucw.cz>
2702         * doc/autoconf.texi: Direntry for "autoconf Invocation" renamed.
2704 2007-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2706         * lib/autoconf/programs.m4 (AC_PROG_SED): When closing a pipe
2707         early on the reader side, drop stderr of the input to avoid
2708         `broken pipe' error output; this may happen even with shell
2709         builtin `echo' of some bash versions.  Reports by Ian Macdonald
2710         <iamacdo@telkomsa.net> and Sam Sexton <Sam.Sexton@reuters.com>.
2712 2007-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2714         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Use newlines to
2715         separate items of `ac_user_opts', to avoid long lines.
2716         (_AC_INIT_PARSE_ENABLE2, _AC_ENABLE_IF_ACTION): Adjust.
2718 2007-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2720         * doc/autoconf.texi: Fix some typos.
2722 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
2724         Fix some wording problems noted by Paolo Bonzini in:
2725         http://lists.gnu.org/archive/html/autoconf-patches/2007-01/msg00077.html
2726         * doc/autoconf.texi (Signed Overflow Examples): Give more
2727         discussion about the allow_superuser_privileges example,
2728         and change it a bit to make things clearer.
2729         (Optimization and Wraparound): Clarify whether the compiler
2730         will generate an infinite loop for the example derived from
2731         Autoconf's mktime test.
2732         (Signed Overflow Advice): Say that -ftrapv is meant for debugging.
2733         Also, clarify unsigned multiplication overflow.
2735 2007-01-04  Eric Blake  <ebb9@byu.net>
2737         * bin/Makefile.am (RELEASE_YEAR): New macro.
2738         (edit): Use it to supply correct copyright year to scripts.
2739         * bin/autoconf.as (version): Use it.
2740         * bin/autoheader.in ($version): Likewise.
2741         * bin/autom4te.in ($version): Likewise.
2742         * bin/autoreconf.in ($version): Likewise.
2743         * bin/autoscan.in ($version): Likewise.
2744         * bin/autoupdate.in ($version): Likewise.
2745         * bin/ifnames.in ($version): Likewise.
2747 2007-01-02  Paul Eggert  <eggert@cs.ucla.edu>
2749         * doc/autoconf.texi (Integer Overflow): Revised based on today's
2750         feedback.  The most important changes document what happens when
2751         you convert an out-of-range value to a signed integer type, and
2752         say that (sum < a) != (b < 0) reliably detects overflow when sum =
2753         a + b.
2755         * doc/autoconf.texi (Integer Overflow): Greatly expand and
2756         rewrite, taking notions from the recent discussion on the gcc and
2757         autoconf mailing lists; please see
2758         http://lists.gnu.org/archive/html/autoconf-patches/2006-12/msg00091.html
2759         and follow the many links.
2760         (Integer Overflow Basics, Signed Overflow Examples):
2761         (Optimization and Wraparound, Signed Overflow Advice):
2762         (Signed Integer Division): New sections.
2764 2006-12-28  Steven G. Johnson  <stevenj@alum.mit.edu>
2766         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't include
2767         preprocessor macro arguments in traced name.
2768         * doc/autoconf.texi (Defining symbols): Document longstanding
2769         support for AC_DEFINE-ing macros with arguments, and document
2770         behavior when the same variable has multiple AC_DEFINEs.
2771         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Revert to the
2772         old implementation which AC_DEFINEs the FC_FUNC and FC_FUNC_
2773         macros directly, giving much shorter and simpler code.
2775 2006-12-28  Malcolm Purvis <malcolmp@xemacs.org>  (trivial change)
2777         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Insert a
2778         space before "$ac_configure_args" to prevent a 'config.status
2779         --recheck' failure if ac_configure_args doesn't contain a leading
2780         space.  This works around a problem with the XEmacs configure.ac,
2781         which uses the (undocumented) ac_configure_args variable
2782         inconsistently with Autoconf.
2784 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2786         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):
2787         Include <limits.h>, and use its INT_MAX to rewrite the
2788         j loop so that it does not overflow 'int'.  Problem reported by
2789         Ralf Wildenhues in
2790         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
2791         Play it safe by shifting left by 1 rather than multiplying by 2,
2792         as GCC is less likely to optimize this away when the value
2793         is signed (when it assumes overflow leads to undefined behavior).
2794         Also, don't assume time_t uses two's complement.
2796 2006-12-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2798         * tests/torture.at (Substitute a 2000-byte string): Avoid using
2799         a 10kB long (multi-line) string literal, OpenServer 5.0.7 ksh
2800         dumps core on it.  Report by Tim Rice.
2802 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
2804         * lib/autoconf/general.m4 (AC_ARG_ENABLE): Print help about
2805         --disable-option-checking to --help output even when
2806         AC_PRESERVE_HELP_ORDER is not used.
2807         (_AC_INIT_PARSE_ENABLE2): Print warnings using actual --enable or
2808         --with argument, rather than argument with [-.] replaced by
2809         underscores.
2810         * NEWS: Fix typo in previous change; the news was in the
2811         wrong section.
2813 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2815         * NEWS: Warnings are now generated by default for unknown
2816         --enable-* and --with-* options.
2817         * doc/autoconf.texi (Option Checking): Renamed from
2818         (Configure Option Checking).  Tighten up the wording a bit.
2819         (External Software, Package Options): Cross-reference to Option
2820         Checking, and use this to shorten our section.
2821         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Prefer test -n
2822         "$x" to test "x$foo" != x.
2823         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
2824         Don't warn if $enable_option_checking is "no".
2825         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Initialize
2826         ac_unrecognized_opts to the empty string.
2827         Don't echo the unrecognized opts, as this might mishandle
2828         backslashes or leading -.
2829         (AC_PRESERVE_HELP_ORDER): Put the --disable-option-checking
2830         usage next to the other --disable-FEATURE options in the
2831         help string.
2833 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
2835         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, _AC_INIT_PARSE_ARGS):
2836         (_AC_INIT_PARSE_ENABLE2, _AC_INIT_HELP, _AC_ENABLE_IF):
2837         Print warning for unrecognized --with and --enable options
2838         (AC_DISABLE_OPTION_CHECKING): New macro to disable warnings.
2839         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS):
2840         Disable option checking when subdirs are configured.
2841         (AC_OUTPUT): If warnings are enabled, print warning about
2842         unrecognized --with and --enable options at the end of
2843         the configure output (as well as at the beginning).
2844         * doc/autoconf.texi (Option Checking): New node.
2845         Document new option warning functionality.
2847 2006-12-16  Eric Blake  <ebb9@byu.net>
2849         * configure.ac (AC_INIT): Bump version, since 2.61a is released.
2850         * NEWS: Start news for current version.
2852 2006-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2854         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
2855         Define HAVE_GETMNTENT to 1, not to the empty string.
2856         Problem originally reported by Jochen Friedrich in
2857         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403243>.
2859         This change prompted by a problem report by Andrey Simonenko in
2860         <http://lists.gnu.org/archive/html/bug-autoconf/2006-12/msg00026.html>.
2861         * doc/autoconf.texi (Defining Symbols): AC_DEFINE works for
2862         object-like macros only, in the traditional portable character
2863         set.
2864         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL):
2865         Warn about attempts to define things that are not identifiers.
2866         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Rewrite to avoid
2867         awful hack that AC_DEFINEd macro names containing parentheses.
2869 2006-12-12  Paul Eggert  <eggert@cs.ucla.edu>
2871         * doc/autoconf.texi: Undo some of the 2006-12-10 change.  It was
2872         too drastic, even if Texinfo in theory requires it for info mode.
2874         (config.status Invocation): Renamed back from Recreating a
2875         Configuration).
2876         (Obsolete config.status Use): Renamed back from Obsolete Recreation.
2877         (Autoconf 2.13): Renamed back from 20th-century Autoconf 2.
2879 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2881         * NEWS: Version 2.61a.
2883 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2884         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2886         * NEWS: Document changes with echo and printf, and the lack
2887         of limits on the total size of multi-line values of substituted
2888         variables, and the AC_FUNC_FSEEKO fix.
2890 2006-12-10  Paul Eggert  <eggert@cs.ucla.edu>
2892         * doc/autoconf.texi (Writing Autoconf Input): Renamed from
2893         Writing configure.ac.
2894         (Autoconf Input Layout): Renamed from configure.ac Layout.
2895         (Recreating a Configuration): Renamed from config.status Invocation.
2896         (Obsolete Recreation): Renamed from Obsolete config.status Use.
2897         (acconfig Header): Renamed from acconfig.h.
2898         (20th-century Autoconf 2): Renamed from Autoconf 2.13.
2899         (Writing Testsuites): Renamed from Writing testsuite.at.
2900         (Autom4te Cache): Renamed from autom4te.cache.
2902         * BUGS: Remove mention of VPATH problem, since it's now documented
2903         not to be a bug in the Autoconf build procedure itself, but rather
2904         a problem with the proprietary `make' programs.
2906         * doc/autoconf.texi (Build Directories): Add a cross reference
2907         to VPATH and Make.
2909         * build-aux/config.guess, build-aux/config.sub, build-aux/texinfo.tex:
2910         * doc/standards.texi: Sync from gnulib.
2912         * man/autoconf.1, man/autoheader.1, man/autom4te.1, man/autoreconf.1:
2913         * man/autoscan.1, man/autoupdate.1, man/config.guess.1:
2914         * man/config.sub.1, man/ifnames.1: Remove from CVS, since they're
2915         generated automatically.
2917 2006-12-06  Paul Eggert  <eggert@cs.ucla.edu>
2919         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Also try -xc99=all, for Sun
2920         C 5.8 on Solaris 10.  Using -xc99=all rather than -xc99 bypasses
2921         the buggy -xc99 option of Forte Developer 7 C on Solaris 9.
2923 2006-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2925         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the
2926         `CEOF$ac_eof' special marker, the awk script cannot contain a
2927         line matching `^CEOF', so this is not needed any more.
2928         * tests/torture.at (Substitute a newline): Expose the `%!_!# '
2929         special marker in the test.
2931 2006-12-06  Stepan Kasal  <kasal@ucw.cz>
2933         * tests/tools.at (autom4te preselections): Use `find -newer';
2934         remove one of the sleeps.
2936         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Make it
2937         more readable, using ...
2938         (_AC_INIT_PARSE_ENABLE2): ... this new helper macro.
2940         * doc/autoconf.texi (autoheader Invocation): Do not double-
2941         quote the parameter of `AH_BOTTOM' in the example.
2943 2006-12-05  Stepan Kasal  <kasal@ucw.cz>
2945         * doc/autoconf.texi (Configuration Headers): Remove the
2946         example with multiple input files.
2947         (autoheader Invocation): Encourage `AH_BOTTOM', discouraging
2948         multiple input files.
2950 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2952         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When
2953         creating the awk substitution script, handle one input line at a
2954         time, so that the maximum length of a substituted (multi-line)
2955         value is not limited by the size of the sed pattern space.
2956         The trade-off is a slightly repetitive sed script.
2957         * doc/autoconf.texi (Limitations of Usual Tools): Branch labels
2958         can only have up to 7 characters, due to Solaris 10 /bin/sed.
2959         * tests/torture.at (Substitute a 2000-byte string): Increase the
2960         test with several long lines, they should not be caught by sed
2961         limits any more.
2963         * tests/tools.at (autom4te preselections): New test, to flag
2964         entries missing from autom4te.cfg.
2965         Report by David Byron <dbyron@hheld.com>.
2967         * tests/torture.at (Substitute a 2000-byte string): Actually use
2968         AC_PROG_AWK, so the last change works as intended.
2969         (Substitute and define special characters): Likewise.
2970         (Substitute a newline): Likewise.
2972         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use `$AWK'
2973         instead of `awk' consistently.
2974         (_AC_OUTPUT_CONFIG_STATUS): Initialize $AWK.
2975         * tests/torture.at (Torturing config.status): Test both the
2976         result of AC_PROG_AWK and plain awk.
2977         (Substitute a 2000-byte string): Likewise.
2978         (Substitute and define special characters): Likewise.
2979         (Substitute a newline): Likewise.
2981 2006-12-04  Paul Eggert  <eggert@cs.ucla.edu>
2983         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko
2984         can be assigned to a function pointer.  Problem reported by
2985         Peter Palfrader in <http://bugs.debian.org/401377>.  Based on
2986         part of a patch by Ralf Wildenhues in that same bug report.
2988 2006-12-01  Paul Eggert  <eggert@cs.ucla.edu>
2990         * tests/mktests.sh (ac_exclude_list): Exclude AC_FUNC_SETVBUF_REVERSED.
2991         * tests/semantics.at (AC_FUNC_SETVBUF_REVERSED): New test.
2993 2006-12-01  Eric Blake  <ebb9@byu.net>
2995         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in
2996         cross-compiling from cygwin to mingw.
2997         Reported by Bob Rossi.  This resurrects the 2000-11-30 patch to
2998         aclang.m4, which was mistakenly removed in the 2001-09-17 patch
2999         to lib/autoconf/c.m4.
3001 2006-12-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3003         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Use a longer test
3004         string for more reliable failure.  Wrap the entire test that
3005         causes the broken Solaris printf to dump core, in a subshell,
3006         so the segmentation fault message is reliably suppressed.
3007         Fix shell expansion errors by using /usr/ucb/echo always;
3008         avoid an error on systems without it by another subshell.
3009         Avoid m4 expansion of `$1'.  Set the zeroth argument of the
3010         subshell-$as_echo to `as_echo', for better error message.
3012 2006-11-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3014         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): If `BASH_ARGV' or
3015         `BASH_SOURCE' contain a newline, set them to empty, as they may
3016         not be unset.
3018 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
3020         Turn AC_FUNC_SETVBUF_REVERSED into a noop.  It's been obsolete for
3021         years and is too hard to maintain now.  The last straw was
3022         reported by Jerker Baeck in
3023         <http://lists.gnu.org/archive/html/autoconf/2006-11/msg00102.html>.
3024         * NEWS: AC_FUNC_SETVBUF_REVERSED is now obsolete.
3025         * doc/autoconf.texi (Particular Functions): Move
3026         AC_FUNC_SETVBUF_REVERSED from here...
3027         (Obsolete Macros): ... to here.  Say that it does nothing now.
3028         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
3029         Turn into (almost) a no-op.
3031         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL, AC_C_CONST):
3032         (AC_C_VOLATILE):
3033         Do not recommend via AN_FUNCTION, AN_IDENTIFIER, or AN_HEADER.
3034         These macros are obsolescent and new applications shouldn't need them.
3035         * lib/autoconf/functions.m4 (AC_FUNC_CLOSEDIR_VOID, AC_REPLACE_FNMATCH):
3036         (AC_FUNC_GETLOADAVG, AC_FUNC_GETPGRP, AC_FUNC_MEMCMP):
3037         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP, AC_FUNC_STAT, AC_FUNC_LSTAT):
3038         (AC_FUNC_STRFTIME, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
3039         (AC_FUNC_VPRINTF): Likewise.
3040         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT, AC_HEADER_STAT):
3041         (AC_HEADER_STDC, AC_HEADER_SYS_WAIT, AC_HEADER_TIME): Likewise.
3042         * lib/autoconf/types.m4 (AC_STRUCT_TM): Likewise.
3044         * doc/autoconf.texi (Setting Output Variables): Mention that
3045         @VAR1@VAR2 has unspecified behavior.  Problem reported by
3046         Ralf Wildenhues.
3047         * NEWS: Mention this.
3049         * Makefile.am: Put only a single '#' into the copyright notice,
3050         so that it's also present in the output file.  Standardize wording
3051         in makefile copyright notices to match GNU coding standards.
3052         * bin/Makefile.am: Likewise.
3053         * doc/Makefile.am: Likewise.
3054         * lib/Makefile.am: Likewise.
3055         * lib/freeze.mk: Likewise.
3056         * lib/autoconf/Makefile.am: Likewise.
3057         * lib/autoscan/Makefile.am: Likewise.
3058         * lib/autotest/Makefile.am: Likewise.
3059         * lib/m4sugar/Makefile.am: Likewise.
3060         * man/Makefile.am: Likewise.
3061         * tests/Makefile.am: Likewise.
3062         * lib/emacs/Makefile.am: Remove copyright notice; it's just a
3063         one-line file.
3065 2006-11-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3067         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix error
3068         in the sed script that mangles the awk script: delete up to the
3069         first exclamation mark only.
3070         * tests/torture.at (Substitute and define special characters):
3071         Test '!' too.
3073 2006-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3075         Rewrite config files generation: avoid quadratic growth in
3076         the number of substituted variables by using awk instead of sed
3077         for the bulk of the substitutions.
3078         * NEWS: Mention this.
3079         * doc/autoconf.texi (Setting Output Variables): `|#_!!_#|' is also
3080         forbidden in the output (and thus input) file.
3081         * lib/autoconf/status.m4 (_AC_AWK_LITERAL_LIMIT): New macro.
3082         (_AC_OUTPUT_FILES_PREPARE): Instead of several sed scripts,
3083         generate just one large awk script for substitutions,
3084         eliminating much of the earlier complexity, while adding some
3085         new complexity.  Only expand the substitution templates at
3086         configure time, for smaller configure script size.  If
3087         _AC_SUBST_FILES are used, test 'awk' for working getline support
3088         at config.status time.  If absent, interpolate through the
3089         shell.  The awk script was written with much help
3090         from Paolo Bonzini and Paul Eggert.
3091         (_AC_SED_CMD_NUM, _AC_SED_DELIM_NUM, _AC_SED_FRAG): Removed.
3092         (_AC_SED_FRAG_NUM): Likewise.
3093         (_AC_SUBST_CMDS): Renamed from...
3094         (_AC_SED_CMDS): ...this.
3095         (_AC_OUTPUT_FILE): Use _AC_SUBST_CMDS.
3096         * tests/torture.at (Substitute a 2000-byte string): Also
3097         substitute a line with 1000 words, and a variable with several
3098         long lines.
3099         (Substitute and define special characters): Test awk special
3100         characters, and put substitution input strings `@foo@' in the
3101         output, to test that no recursion happens; test several other
3102         combinations from Paolo Bonzini.
3104 2006-11-25  Paul Eggert  <eggert@cs.ucla.edu>
3106         * lib/autotest/general.m4 (AT_INIT): Undo recent changes
3107         that replaced echo with AS_ECHO where this wasn't necessary.
3108         Problem reportd by Ralf Wildenhues.
3109         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Port to Solaris 7,
3110         where "/usr/bin/printf '%s\n' S" dumps core if S is long.
3111         This is Sun bug 4206210.  Problem reportd by Ralf Wildenhues.
3113 2006-11-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3115         * lib/freeze.mk (GREP): Removed, no need to initialize this.
3117 2006-11-21  Paul Eggert  <eggert@cs.ucla.edu>
3119         * doc/autoconf.texi (Limitations of Usual Tools): Don't claim
3120         that traditional Awk lacks 3-arg "split".  It has it.
3121         Mention that FS must be a single character, and a few other
3122         99-byte limits of traditional Awk.
3123         Mention that if (i in a) doesn't work with traditional Awk.
3125 2006-11-18  Paul Eggert  <eggert@cs.ucla.edu>
3127         * tests/autotest.at (BSx641-newline in command):
3128         (BS-BS-newline in command, BSx640-newline in command):
3129         (Newline-CODE-BS-newline in command):
3130         (Single-quote-BS-newline in command):
3131         (Single-quote-newline-BS-newline in command):
3132         Use printf '%s\n' instead of echo, for portability to hosts
3133         where echo interprets backslashes.  This will break on hosts
3134         that lack printf, but for now let's assume all such hosts
3135         are dead (if not, we should get reports of test failures).
3137 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
3139         'echo' has some portability problems, when given a first argument
3140         with a leading '-', or when given any argument containing '\'.
3141         Avoid using 'echo' in these cases.
3142         * bin/Makefile.am $(bin_SCRIPTS): Rewrite to avoid 'echo' entirely.
3143         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Likewise.
3144         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
3145         * lib/autotest/general.m4 (AT_INIT): Likewise.
3146         * bin/autoconf.as: Use AS_ECHO rather than plain echo, when the
3147         argument might be unportable.
3148         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Likewise.
3149         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Likewise.
3150         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT):
3151         (_AC_FC_LIBRARY_LDFLAGS): Likewise.
3152         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Likewise.
3153         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE, _AC_INIT_PREPARE):
3154         (_AC_ARG_VAR_VALIDATE, AC_ARG_PROGRAM, _AC_MSG_LOG_CONFTEST):
3155         (AC_RUN_LOG, _AC_RUN_IFELSE, _AC_LIBOBJS_NORMALIZE): Likewise.
3156         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
3157         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Likewise.
3158         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
3159         (AC_PROG_MAKE_SET): Likewise.
3160         * lib/autoconf/status.m4 (_AC_SRCDIRS, _AC_OUTPUT_HEADER):
3161         (_AC_OUTPUT_SUBDIRS, _AC_OUTPUT_CONFIG_STATUS): Likewise.
3162         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT, AT_INIT):
3163         (AT_CLEANUP, _AT_DECIDE_TRACEABLE, _AT_CHECK): Likewise.
3164         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE, _AS_ECHO_UNQUOTED):
3165         (_AS_BASENAME_SED, _AS_DIRNAME_SED, AS_MKDIR_P, AS_TMPDIR, AS_UNAME):
3166         (AS_TR_SH, AS_TR_CPP, AS_VAR_GET): Likewise.
3167         * bin/autoconf.as: Redo verbose flag implementation, as the old
3168         scheme wouldn't work with AS_ECHO.
3169         * lib/autotest/general.m4 (AT_INIT): Likewise.
3170         * lib/autoconf/general.m4 (AC_MSG_RESULT, AC_MSG_RESULT_UNQUOTED):
3171         Don't use ECHO_T, since ECHO_N is now reliable.
3172         * lib/autotest/general.m4 (AT_INIT): Likewise.
3173         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use sed "$script"
3174         rather than using a here-document to put the script into a file.
3175         (_AC_DO_ECHO): Hoist the eval out of the echo, so that we can
3176         use AS_ECHO.
3177         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Likewise.
3178         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Use
3179         AS_ECHO_N rather than ECHO_N and ECHO_C.  This doesn't fix any
3180         bug, but we might as well stop using ECHO_N and ECHO_C internally.
3181         * lib/autotest/general.m4 (AT_SETUP): Likewise.
3182         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N): Likewise.
3183         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
3184         (_AC_OUTPUT_MAIN_LOOP): Rework echo so that it has just one
3185         operand, as AS_ECHO requires.  Avoid double file name expansion.
3186         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke _AS_ECHO_PREPARE.
3187         Don't set as_nl, since _AS_ECHO_PREPARE does that now.
3188         (_AS_PREPARE): Comment that _AS_ECHO_N_PREPARE is just for user code.
3189         (AS_ECHO, AS_ECHO_N, _AS_ECHO_PREPARE): New macros.
3190         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
3191         Double-quote strings that would otherwise contain M4 comments.
3192         * tests/m4sh.at (AS_ECHO and AS_ECHO_N): New test.
3194         * configure.ac (AC_INIT): Bump to 2.61a.
3195         * NEWS: Likewise.
3197 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
3199         Version 2.61.
3201         * configure.ac (AC_INIT): Bump to 2.61.
3202         * NEWS: Likewise.
3204         * tests/autotest.at (Macro with backslash in a test title):
3205         Comment out for now, as this tests neither fails nor passes
3206         reliably.  Problem reported by Ralf Wildenhues.
3208 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
3210         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos
3211         in previous change, which caused test failures.
3213 2006-11-16  Stepan Kasal  <kasal@ucw.cz>
3215         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Factor out
3216         code for --enable, --disable, --with, and --without to...
3217         (_AC_INIT_PARSE_ENABLE): ... a new macro.
3218         * doc/autoconf.texi (Package Options):
3219         * NEWS: Document that AC_ARG_ENABLE allows dots, too.
3221 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
3223         Import these changes from config via gnulib:
3225         2006-11-15  Ben Elliston  <bje@gnu.org>
3227         From Josselin Mouette <joss@debian.org>:
3228         * build-aux/config.guess (SX-8:SUPER-UX:*:*): New.
3230         2006-11-08  Ben Elliston  <bje@gnu.org>
3232         * build-aux/config.guess (authenticamd:Interix*:[3456]*): Another AMD64.
3234         2006-11-07  Steve Woodford  <scw@NetBSD.org>
3235                     Ben Elliston  <bje@gnu.org>
3237         * build-aux/config.guess (*:NetBSD:*:*): Handle sh5el arch.
3238         * build-aux/config.sub (sh5el): New basic_machine.
3241         Import this change from coreutils:
3243         2006-02-13  Jim Meyering  <jim@meyering.net>
3245         * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
3248         Import this change from gnustandards via gnulib:
3250         2006-11-15  Karl Berry  <karl@gnu.org>
3252         * standards.texi: core -> memory, throughout.
3253         (CPU Portability): show correct example of calling write
3254         on a char value; thanks to Paul Eggert for the code.
3255         Both of these suggestions from Eugene Y. Vasserman.
3258         Import these changes from texinfo via gnulib:
3260         2006-11-08  Karl Berry  <karl@gnu.org>
3262         * build-aux/texinfo.tex (\dopdfimage): look for png, jpg/jpeg/JPG, and
3263           as well as pdf images, since they are supported in pdftex with
3264           no further ado.
3266         2006-11-05  Karl Berry  <karl@gnu.org>
3268         * doc/texinfo.tex (Image Syntax): don't mention GIF any more.
3270 2006-11-13  Paul Eggert  <eggert@cs.ucla.edu>
3272         * NEWS: Document the AC_ARG_WITH change.
3274 2006-11-13  Bruno Haible  <bruno@clisp.org>
3276         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): For --with, --without
3277         options, transliterate also dots to underscores.
3278         (_AC_ENABLE_IF): Transliterate also dots to underscores.
3279         * doc/autoconf.texi (External Software): Document that AC_ARG_WITH's
3280         first argument may also contain dots.
3282 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
3284         * tests/mktests.sh (ac_exclude_list): Exclude AC_PROG_CXX_C_O, for
3285         benefit of platforms like Solaris+GCC where it is common to have a
3286         non-working g++ installation.
3288 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3289         and Joel E. Denny  <jdenny@ces.clemson.edu>
3290         and Paul Eggert  <eggert@cs.ucla.edu>
3292         * tests/autotest.at (AT_CHECK_AT_TITLE): Fix shell quoting bugs
3293         and non-portable sed scripts, and use $CONFIG_SHELL when invoking
3294         ./micro-suite.
3296 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
3298         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Set
3299         ac_cv_type_long_long_int to 'yes' instead of 'cross-compiling'.
3300         Imported from a similar patch to gnulib by Bruno Haible.
3302 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
3304         * NEWS: New macros AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS.
3305         * doc/autoconf.texi (C Compiler): Document them.
3306         * lib/autoconf/c.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS):
3307         New macros, taken from gnulib.
3309 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
3311         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
3312         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
3313         Matthew Woehlke.
3315 2006-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3317         * tests/torture.at (Configuring subdirectories): Do not skip
3318         Automake 1.10 nor future Automake 11.1 (sic).
3320 2006-10-26  Joel E. Denny  <jdenny@ces.clemson.edu>
3321         and Stepan Kasal  <kasal@ucw.cz>
3323         Handle special characters in test case titles correctly.
3324         * lib/autotest/general.m4 (AT_INIT): M4-quote and AS_ESCAPE AT_help_all
3325         properly.
3326         (AT_SETUP): M4-quote and AS_ESCAPE the title properly everywhere.
3327         * tests/autotest.at (AT_CHECK_AT_TITLE): Add EXPANDED-TITLE-TO-TEST
3328         argument.  Extend to check titles printed by ./micro-suite and
3329         ./micro-suite -l and the title in micro-suite.log.
3330         (Backquote in a test title,
3331         Single-quote in a test title,
3332         Double-quote in a test title): Don't expect failure anymore.
3333         (Backslash in a test title): Put a non-whitespace character after the
3334         backslash so that Bourne shells might actually see it as an escape
3335         sequence.
3336         (Brackets in a test title,
3337         Pound in a test title,
3338         Comma in a test title,
3339         Quoted Macro in a test title,
3340         Macro in a test title,
3341         Macro with single-quote in a test title): New tests.
3342         (Macro with backquote in a test title,
3343         Macro with double-quote in a test title,
3344         Macro with backslash in a test title): New tests expected to fail.
3345         * tests/torture.at (#define header templates): M4-quote this title in
3346         AT_SETUP call so that no M4 code is commented inadvertently somewhere.
3347         The visible effect was a stray [] in the testsuite output.
3349 2006-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3351         * doc/autoconf.texi (Limitations of Builtins): Do not invoke
3352         `trap ... 0' inside a function, for AIX sh.
3354 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
3356         * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0,
3357         since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build
3358         5363) simply issues a warning when dividing by zero at compile
3359         time.  Problem reported by Elias Pipping.
3361 2006-10-26  Eric Blake  <ebb9@byu.net>
3363         * THANKS: Update.
3364         * doc/autoconf.texi (Evaluation Macros): Improve the example to
3365         show effect on macros that expand with commas.
3366         Reported by Joel E. Denny.
3368         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
3369         Also work with M4 1.4.8.
3371 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
3373         * doc/autoconf.texi (Slashes): Document Tru64 4.0 bug reported by
3374         Jim Meyering.
3376 2006-10-25  Stepan Kasal  <kasal@ucw.cz>
3378         * tests/tools.at (autom4te --force): New test, verifies that
3379         `--force' always rewrites the output file.
3381 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
3383         * doc/autoconf.texi (Limitations of Usual Tools): Document that rm
3384         needs operands on NetBSD 2.0.2.  Problem reported by Bruno Haible.
3386 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
3388         * tools/trace.at (autoconf --trace: user macros): Test `$%'.
3390 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
3392         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
3393         If FUNCTION-BODY is nonempty, use AC_LINK_IFELSE rather than
3394         AC_COMPILE_IFELSE, to work around problem with OSF/1 4.0F fseeko
3395         reported by Nelson H. F. Beebe for Coreutils 6.4.
3397         * tests/tools.at (autoconf --trace: user macros): Remove test
3398         for tracing multiline macros, since m4 1.4.7a uses a different
3399         way to number lines.  Problem reported by Ralf Wildenhues.
3401 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
3403         * bin/autom4te.in (handle_m4): Do not redirect stdin to
3404         /dev/null since the heuristics for interactive behaviour was
3405         fixed in CVS m4.
3407         * bin/autom4te.in: With --force, always refresh the output
3408         file.  Problem reported by Greg Schafer <gschafer@zip.com.au>.
3410         * bin/autoconf.as: Fix the verbose message at the end.
3412 2006-10-23  Paul Eggert  <eggert@cs.ucla.edu>
3414         * configure.ac (AC_INIT): Bump to 2.60c.
3415         * NEWS: Likewise.
3417 2006-10-22  Paul Eggert  <eggert@cs.ucla.edu>
3419         * NEWS: Version 2.60b.
3421         Import this change from Texinfo:
3422         2006-10-15  Karl Berry  <karl@gnu.org>
3423         * build-aux/texinfo.tex: automake 1.10
3425         * NEWS: Remove AC_CACHE_CHECK_INT.
3426         * doc/autoconf.texi (Caching Results): Likewise.
3427         * lib/autoconf/general.m4 (_AC_CACHE_CHECK_INT): Renamed from
3428         AC_CACHE_CHECK_INT, since it's no longer public.
3429         * lib/autoconf/types.m4: All uses of AC_CACHE_CHECK_INT changed.
3430         * tests/base.at (AC_COMPUTE_INT): Test this, not AC_CACHE_CHECK_INT.
3432 2006-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3434         * doc/autoconf.texi (Limitations of Usual Tools): Fix two typos.
3436 2006-10-19  Eric Blake  <ebb9@byu.net>
3438         * lib/m4sugar/m4sugar.m4 (m4_mkstemp): New macro.
3439         (m4_maketemp): Avoid warnings with M4 1.9a.
3440         * lib/emacs/autoconf-mode.el (autoconf-font-lock-keywords): Color
3441         m4_mkstemp.
3442         * doc/autoconf.texi (Redefined M4 Macros): Document m4_mkstemp.
3443         * NEWS: Likewise.
3445 2006-10-16  Eric Blake  <ebb9@byu.net>
3447         * doc/autoconf.texi (Setting Output Variables): Fix typo.
3449         * bin/autoconf.as (version): Reword to match GNU Coding
3450         Standards.
3451         * bin/autoheader.in (version): Likewise.
3452         * bin/autom4te.in (version): Likewise.
3453         * bin/autoreconf.in (version): Likewise.
3454         * bin/autoscan.in (version): Likewise.
3455         * bin/autoupdate.in (version): Likewise.
3456         * bin/ifnames.in (version): Likewise.
3458 2006-10-14  Stepan Kasal  <kasal@ucw.cz>
3460         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Expand $1 before
3461         looking for special shell characters.
3462         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Do not expand the
3463         macro defined by AS_VAR_PUSHDEF before passing it as a
3464         parameter.
3465         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
3466         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB):
3467         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
3468         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL):
3469         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_DIRENT):
3470         Likewise.
3471         * lib/autotest/general.m4 (AT_INIT): Quote parameters of
3472         AS_VAR_* properly.
3473         * tests/m4sh.at (AS_LITERAL_IF): New test.
3475 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3477         (Imported from Automake.)
3478         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
3479         which incorrectly sets the mode of an existing destination
3480         directory.  In some cases the unpatched install-sh could do the
3481         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
3482         system.  We hope this is rare in practice, but it's clearly worth
3483         fixing.  Problem reported by Alex Unleashed in
3484         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
3485         Also, don't bother to check for -m bugs unless we're using -m;
3486         suggested by Stepan Kasal.
3488 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3490         Import this change from Automake:
3492         2006-08-23  Alexandre Duret-Lutz  <adl@gnu.org>
3493         * lib/Autom4te/ChannelDefs.pm (usage): Mention that -Wportability
3494         is enabled by default with gnu and gnits strictness.
3495         Report from Bruno Haible.
3497         2006-03-10  Alexandre Duret-Lutz  <adl@gnu.org>
3498         * lib/Autom4te/ChannelDefs.pm: Make -Wportability the default in
3499         gnu and gnits modes.
3501         Import this change from Config:
3503         2006-09-20  Ben Elliston  <bje@gnu.org>
3504         * build-aux/config.sub (score, score-*): New.
3506         Import this change from Gnulib:
3508         2006-09-16  Karl Berry  <karl@gnu.org>
3509         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
3510         to avoid sectioning errors.
3512         Import these changes from Texinfo:
3514         2006-10-04  Karl Berry  <karl@gnu.org>
3515         * build-aux/texinfo.tex (\singlequotechar): rename to \codequoteright.
3516         (\quoteexpand): rename to \rquoteexpand.
3517         (\codequoteleft): new def, to look for @set codequotebacktick.
3518         (\lquoteexpand, \quoteexpand): new defs.
3519         (\lquoteChar, \rquoteChar, \dashChar, \underChar: new \chardef's.
3520         (\code): must use new \...Char values, since now ` is active.
3522         2006-08-26  Karl Berry  <karl@gnu.org>
3523         * build-aux/texinfo.tex (\textdegree): New command.
3525         2006-08-12  Karl Berry  <karl@gnu.org>
3526         * build-aux/texinfo.tex (error \box0): smaller font.
3528 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3530         * doc/autoconf.texi (Autoheader Macros): Fix syntax error.
3532 2006-10-13  Stepan Kasal  <kasal@ucw.cz>
3534         * doc/autoconf.texi (Autoheader Macros): Warn that the text
3535         added to the template can get mangled.
3537 2006-10-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3539         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): In the test,
3540         include the default headers, and redefine obstack_chunk_alloc
3541         and obstack_chunk_free.  Fixes false failure with glibc.
3543 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3545         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Set as_executable_p,
3546         for backward compatibility with Libtool 1.5.22.  Problem reported
3547         by Ralf Wildenhues.
3549 2006-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3551         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL): Require
3552         AC_PROG_CC.
3553         Report by IOhannes m zmoelnig <zmoelnig@iem.at>.
3555 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3557         * NEWS: AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for
3558         the NonStop platform.
3559         * doc/autoconf.texi (Posix Variants): Likewise.
3560         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
3562         * lib/m4sugar/m4sh.m4 (AS_TEST_X): New macro.
3563         (AS_EXECUTABLE_P): Use as_test_x rather than as_executable_p.
3564         (_AS_TEST_PREPARE): Set as_test_x rather than as_executable_p.
3565         Use a better substitute, by inspecting the output of "ls"
3566         rather than just using ":".
3567         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Use AS_TEST_X
3568         rather than AS_EXECUTABLE_P, since we needn't worry about
3569         non-regular files here.
3571         * NEWS: Autoconf-generated shell scripts no longer export BIN_SH,
3572         due to configuration hassles with this.  See Tonya Underwood's report
3573         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00003.html>.
3574         * doc/autoconf.texi (Special Shell Variables): Likewise.
3576 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3577             Stepan Kasal  <kasal@ucw.cz>
3579         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Don't set BIN_SH.
3580         (_AS_DETECT_BETTER_SHELL): Don't look in /usr/bin/posix.
3582 2006-10-11  Stepan Kasal  <kasal@ucw.cz>
3584         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Move the
3585           initialization which is not inherited through the environment
3586         (_AS_BOURNE_COMPATIBLE): ... to this new macro.
3587         (_AS_RUN): Call _AS_BOURNE_COMPATIBLE, not AS_BOURNE_COMPATIBLE.
3589 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
3591         * doc/autoconf.texi (Limitations of Usual Tools): Describe
3592         problems with mkdir -p -m.
3594 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
3596         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Remove
3597         comment about ac_cpp_err; it was incorrect, and anyway
3598         ac_cpp_err is being removed below.
3599         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE): Don't
3600         set ac_cpp_err to 'yesyes' if preproc_warn_flag and werror_flag
3601         are both 'yes'.  In fact, don't bother setting ac_cpp_err at all;
3602         nobody uses it.
3603         (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't log our funky tests
3604         with werror_flag and conftest.err and so forth.  This is more
3605         compatible with how _AC_PROG_PREPROC_WORKS_IFELSE behaves,
3606         and anyway the user shouldn't normally want to see this gorp logged.
3607         Problem reported by Ralf Wildenhues.
3608         * lib/autoconf/lang.m4 (AC_LANG_WERROR): werror_flag's default is
3609         empty, not 'no', since the rest of the code uses 'test -z'.
3611 2006-10-04  Paul Eggert  <eggert@cs.ucla.edu>
3613         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
3614         Use a single call to AC_DO_TOKENS rather than multiple, for
3615         efficiency.
3616         (_AC_LINK_IFELSE): Test that resulting file is executable.
3617         Problem reported by mwoehlke in
3618         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00048.html>.
3620         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Use "test -x /" rather
3621         than creating a file to use with test -x; this is much faster.
3623 2006-10-02  Bruno Haible  <bruno@clisp.org>
3625         * lib/autom4te.in (Automake-preselections): Add
3626         AM_GNU_GETTEXT_INTL_SUBDIR, for automake 1.10.
3628 2006-09-27  Stepan Kasal  <kasal@ucw.cz>
3630         * doc/autoconf.texi (Writing testsuite.at): Fix a typo: for
3631         standard error, `experr' should be used, not `expout'.
3633 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3635         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Don't compile the
3636         fseeko testing program twice; just use the earlier result.
3637         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
3638         Set cache var to 'unknown' (not 'no') if leaving the macro unset
3639         still doesn't let the program compile.
3640         (AC_SYS_LARGEFILE): Test for _LARGE_FILES only if earlier tests
3641         failed.
3643         * lib/autoconf/functions.m4: Fix problems reported by Ralf Wildenhues.
3644         (AC_FUNC_ERROR_AT_LINE): Don't bother to check for error.h.  Just
3645         include it, without including anything else.
3646         (AC_FUNC_FSEEKO): Avoid gcc -Wall warnings about constant
3647         expressions.
3648         (AC_FUNC_STRNLEN): Require AC_USE_SYSTEM_EXTENSIONS.
3650 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3652         * lib/autoconf/functions.m4 (AC_FUNC_ERROR_AT_LINE): Check for
3653         `error.h', and include it, for a `error_at_line' prototype.
3654         Use a nonempty format string in the link test.
3655         * lib/autoconf/functions.m4 (AC_FUNC_WAIT3): Include <sys/wait.h>,
3656         for a declaration of wait3.
3658 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3660         * NEWS: AC_CHECK_DECL now also works with aggregate objects.
3661         * doc/autoconf.texi (Generic Declarations): Clarify that AC_CHECK_DECL
3662         can apply to constants too, and that it checks for macro defns.
3663         * lib/autoconf/general.m4 (AC_CHECK_DECL): Assume C89 or better,
3664         and simply cast the identifier to void.  This handles structure
3665         values.  Problem reported by Ralf Wildenhues.
3666         * tests/semantics.at (AC_CHECK_DECLS): Also check enums.
3668 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3670         * tests/semantics.at (AC_CHECK_DECLS): Also check macros,
3671         structure, and function symbols.
3673 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3675         * tests/semantics.at (AC_CHECK_MEMBERS): Also test with a struct
3676         member.
3678 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
3680         * NEWS: Recommend M4 1.4.7 instead of 1.4.6.
3681         * README: Likewise.
3682         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
3684 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
3685         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3687         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): Avoid `gcc -Wall'
3688         warnings (uninitialized value).
3689         (AC_FUNC_UTIME_NULL): Likewise, test for and include <utime.h> if
3690         present.
3691         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Likewise, add
3692         parentheses.
3693         (AC_STRUCT_TM): Likewise, avoid unused variables.
3695 2006-09-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3697         * lib/autoconf/c.m4 (_AC_ARG_VAR_LDFLAGS): Update comment.
3698         (_AC_ARG_VAR_LIBS): New macro: let LIBS be precious.
3699         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Call _AC_ARG_VAR_LIBS.
3700         * lib/autoconf/fortran.m4 (AC_PROG_F77, AC_PROG_FC): Likewise.
3701         Report by Olly Betts.
3703 2006-09-19  Eric Blake  <ebb9@byu.net>
3705         * m4/m4.m4: Change copyright.
3706         * configure: Regenerate.
3707         * Makefile.in: Likewise.
3708         * bin/Makefile.in: Likewise.
3709         * doc/Makefile.in: Likewise.
3710         * lib/Makefile.in: Likewise.
3711         * lib/Autom4te/Makefile.in: Likewise.
3712         * lib/autoconf/Makefile.in: Likewise.
3713         * lib/autoscan/Makefile.in: Likewise.
3714         * lib/autotest/Makefile.in: Likewise.
3715         * lib/emacs/Makefile.in: Likewise.
3716         * lib/m4sugar/Makefile.in: Likewise.
3717         * man/Makefile.in: Likewise.
3718         * tests/Makefile.in: Likewise.
3720         * m4/m4.m4 (AC_PROG_GNU_M4): Check for m4 --debugfile support.
3721         * bin/Makefile.am (edit): Substitute M4_DEBUGFILE.
3722         * bin/autom4te.in (handle_m4): Favor --debugfile over misnamed
3723         --error-output, to avoid warnings with M4 2.0.
3725 2006-09-19  Stepan Kasal  <kasal@ucw.cz>
3727         * lib/autoconf/libs.m4 (AH_CHECK_LIB): Fix quoting, to be
3728           consistent with _AH_CHECK_FUNCS and _AH_CHECK_HEADERS.
3729         * lib/autoconf/headers.m4 (AH_CHECK_HEADERS_DIRENT): Likewise.
3731 2006-09-15  Stepan Kasal  <kasal@ucw.cz>
3733         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Eliminate the
3734         expansion of AC_CHECK_FUNCS.
3736 2006-09-14  Stepan Kasal  <kasal@ucw.cz>
3738         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Remove a
3739         mistaken comment: the path has to be relative; do not use
3740         the path at runtime.
3742 2006-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3744         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote the
3745         argument to `--prefix' for sub-configure scripts.
3746         Pass `--silent' to sub-configure scripts.
3747         * tests/torture.at (Configuring subdirectories): Add tests
3748         for both changes.
3749         * doc/autoconf.texi (Setting Output Variables): Fix example to
3750         not show `--silent' being passed to a `configure' re-run.
3752 2006-09-12  Paul Eggert  <eggert@cs.ucla.edu>
3754         * doc/autoconf.texi (Input): Clarify role of AC_CONFIG_MACRO_DIR.
3755         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Do not check
3756         for the existence of the directory at configure-time.  That's
3757         too late, anyway.  Problem reported by Stefan Seefeld.
3759         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Avoid bug in UnixWare
3760         7.1.4 /usr/bin/posix/sh described by Tim Rice in
3761         <http://lists.gnu.org/archive/html/bug-autoconf/2006-09/msg00017.html>.
3763 2006-09-11  Stepan Kasal  <kasal@ucw.cz>
3765         * tests/local.at (AT_CHECK_M4): Fix this so that the testsuite
3766         works with GNU M4 1.4.3 again; make the normalized form
3767         match the current m4 message; fix the description.
3768         * test/tools.at (autom4te cache): Adapt to the change.
3770 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
3772         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):  Add year_2050_test
3773         to catch glibc bug 2821
3774         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
3776         Merge from gnulib as follows: Use AC_CHECK_HEADERS_ONCE instead of
3777         AC_CHECK_HEADERS, and likewise for AC_CHECK_FUNCS_ONCE and
3778         AC_CHECK_FUNCS.  Don't check for stdlib.h, since we now
3779         assume C89.
3781 2006-09-08  Stepan Kasal  <kasal@ucw.cz>
3783         * lib/autom4te.in (Autoconf-without-aclocal-m4): Move the
3784         preselections ...
3785         (Autoconf): ... here.
3786         (Autoscan-preselections): Delete.
3788 2006-09-07  Stepan Kasal  <kasal@ucw.cz>
3790         * lib/autom4te.in (Automake-preselections): Preselect
3791         AM_ENABLE_MULTILIB.
3793 2006-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3795         * doc/autoconf.texi (Preset Output Variables): srcdir and
3796         top_srcdir are not necessarily relative.  Problem reported
3797         by Dries Kimpe.
3799 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3801         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Prefer xlf90/xlf95 over
3802         f90/f95 because the latter drivers of AIX Fortran 9.1 do not
3803         accept files with extension `.f'.  For consistency, also prefer
3804         xlf over f77.
3805         * doc/autoconf.texi (Fortran Compiler): Remove mention of bug
3806         from last patch.
3808 2006-09-05  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
3810         * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB): Added substitution
3811         of ERLANG_LIB_VER_* variables.
3812         * doc/autoconf.texi (Erlang Libraries): Document ERLANG_LIB_VER_*
3813         variables.
3815 2006-09-03  Paul Eggert  <eggert@cs.ucla.edu>
3816         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3818         * doc/autoconf.texi (Limitations of Builtins): Document 'unset'
3819         bugs of Bash 2.01 and 2.05a.
3820         (Fortran Compiler): Document that AC_PROG_CC should be called
3821         before AC_PROG_FC, due to a bug in Autoconf.
3823 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3825         * NEWS: New macro AC_CACHE_CHECK_INT.  It replaces the
3826         old AC_COMPUTE_INT, which now behaves like _AC_COMPUTE_INT
3827         except the first two arguments are reversed.
3828         * doc/autoconf.texi (Caching Results): New macro AC_CACHE_CHECK_INT.
3829         (Generic Compiler Characteristics): AC_COMPUTE_INT no longer
3830         caches nor outputs a diagnostic.  Suggested by Bruno Haible.
3831         * lib/autoconf/general.m4 (AC_CACHE_CHECK_INT): New macro,
3832         equivalent to the old AC_COMPUTE_INT.
3833         (AC_COMPUTE_INT): No longer caches or reports.  New signature.
3834         All uses changed to AC_CACHE_CHECK_INT.
3835         * tests/base.at (AC_CACHE_CHECK_INT): New test.
3836         * tests/mktests.sh (ac_exclude_list): Add AC_CACHE_CHECK_INT.
3838 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
3840         * NEWS: AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_FUNC_GETLOADVG,
3841         and AC_REPLACE_FNMATCH are now obsolescent in Autoconf.  New
3842         programs should use their Gnulib counterparts.
3843         * doc/autoconf.texi (Particular Functions): Likewise.
3844         (Macro Names, testsuite Invocation): Replace uses of these
3845         obsolete macros with uses of non-obsolete macros.
3847 2006-08-29  Eric Blake  <ebb9@byu.net>
3849         * configure.ac (AC_INIT): Bump to 2.60b.
3850         * NEWS: Update.
3852 2006-08-28  Eric Blake  <ebb9@byu.net>
3854         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Fix logic that was
3855         mistakenly swapped on 2006-08-15.
3857 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
3859         * NEWS: Version 2.60a.
3861 2006-08-25  Stepan Kasal  <kasal@ucw.cz>
3863         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Remove the IPA/IPO
3864         file created by the PGI compiler.
3866 2006-08-25  Noah Misch  <noah@cs.caltech.edu>
3868         * lib/Autom4te/General.pm (END): Use `File::Path::rmtree' to
3869         simplify the code.
3871 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
3873         Fix Lex library problem reported to us by Julio Garvia.
3874         * doc/autoconf.texi (Particular Programs): YYTEXT_POINTER is
3875         for the default, which the user can override.
3876         * lib/autoconf/programs.m4 (AC_PROG_LEX): Let _AC_PROG_LEX_YYTEXT_DECL
3877         deal with LEXLIB.
3878         (_AC_PROG_LEX_YYTEXT_DECL): Handle caching correctly; the old code
3879         didn't work if some values were cached but not others.  Test for
3880         broken lex libraries like native ia64-hp-hpux11.22; see
3881         <http://sources.redhat.com/ml/binutils/2003-12/msg00337.html>, and
3882         work around the problem by preferring an empty LEXLIB to -lfl or
3883         -ll.  Let the user set LEXLIB='' to indicate no library needed.
3885         * NEWS: Recommend M4 1.4.6 instead of 1.4.5.
3886         * README: Likewise.
3887         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
3889 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3891         Rework to use more-modern build style.
3892         Many files are renamed; all uses of their names were changed.
3893         * .x-sc_trailing_blank: Renamed from .x-sc_trailing_space.
3894         * .x-sc_useless_cpp_parens: New file.
3895         * build-aux/config.guess: Renamed from config/config.guess.  Update.
3896         * build-aux/config.sub: Renamed from config/config.sub.  Update.
3897         * build-aux/elisp-comp: Renamed from config/elisp-comp.
3898         * build-aux/install-sh: Renamed from config/install-sh.  Update.
3899         * build-aux/mdate-sh: Renamed from config/mdate-sh.
3900         * build-aux/missing: Renamed from config/missing.
3901         * build-aux/texinfo.tex: Renamed from config/texinfo.tex.  Update.
3902         * build-aux/vc-list-files: Renamed from config/vc-list-files.
3903         * config/Makefile.am: Removed.
3904         * config/mkinstalldirs: Removed.
3905         * config/move-if-change: Removed.
3906         * m4/m4.m4: Renamed from config/m4.m4.  Add (C) to copyright notice.
3907         * Makefile.am (SUBDIRS): Remove config.
3908         (ACLOCAL_AMFLAGS): Include from m4, not config.
3909         (EXTRA_DIST): Add config/announce-gen, config/prev-version.txt.
3910         (WGET, WGETFLAGS): New macros, since Makefile.maint no longer does this.
3911         (autom4te-update): Rewrite with a loop.  Get from gnulib, not automake.
3912         Fail if there's an error.
3913         * Makefile.cfg (move_if_change): Remove.
3914         (wget_files): Remove.
3915         (cvs_executable_files): New macro.
3916         (cvs_files): Use it.  Remove mkinstalldirs.  Add fdl.texi.
3917         (executable-update): Use $(cvs_executable_files).
3918         (local-checks-to-skip): Remove.
3919         * Makefile.maint: Merge from coreutils, plus add our own changes
3920         (gzip_rsyncable): New macro.
3921         (GZIP_ENV): Use it.
3922         (CVS_LIST): Use build-aux/vc-list-files.
3923         (VERSION_REGEXP): New macro.
3924         (local-checks-available): Add patch-check, $(syntax-check-rules),
3925         check-AUTHORS.
3926         (syntax-check-rules): Compute dynamically.
3927         (sc_cast_of_x_alloc_return_value): Work even if no source files.
3928         (sc_cast_of_alloca_return_value): Likewise.
3929         (sc_prohibit_atoi_atof): Simplify regexp.
3930         (sc_no_if_have_config_h, sc_require_config_h):
3931         (sc_prohibit_assert_without_use,
3932         (sc_obsolete_symbols): Check for O_NDELAY.
3933         (sc_texi_notab): Remove.
3934         (sc-changelog): Don't make an exception for '----' lines.
3935         (.re-list): Remove, so we don't have a junk file behind.
3936         (sc_system_h_headers): Remove the need for .re-list.
3937         (sc_the_the):  New rule.
3938         (sc_tight_scope): Simplify.
3939         (sc_trailing_blank): Renamed from sc_trailing_space.
3940         (longopt_re): New macro.
3941         (sc_two_space_separator_in_usage): New rule.
3942         (sc_unmarked_diagnostics): Look at all files under CVS.
3943         (sc_useless_cpp_parens, patch-check, check-AUTHORS): New rules.
3944         (news-date-check, changelog-check): Version is OK.
3945         (po-check): Look for lib files even if not in CVS.
3946         (copyright-check): Use $() not ``.
3947         (maintainer-distcheck): Do not depend on changelog-check.
3948         (my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz).
3949         Also check for -Wpointer-arith.
3950         (WGET, WGETFLAGS, tgz-md5, tgz-sha1, bz2-md5, bz2-sha1):
3951         (xdelta-md5, xdelta-sha1, tgz-size, bz2-size, xd-size, rel-check):
3952         Remove.
3953         (announcement): Add --gpg-key-id arg.
3954         (cvs-sv): Remove.
3955         (move_if_change): Just use mv.
3956         (local_updates: Remove wget-update, po-update.
3957         (po_repo, do-po-update, po-update, wget_files, get-targets): Remove.
3958         (config.guess-url_prefix, config.sub-url_prefix): Remove.
3959         (ansi2knr.c-url_prefix, texinfo.tex-url_prefix):
3960         (standards.texi-url_prefix, make-stds.texi-url_prefix, target, url):
3961         ($(get-targets)): Remove.
3962         (cvs_files): Remove missing, mkinstalldirs, ansi2knr.c.
3963         (gnulib_repo): Renamed from automake_repo.  Get from gnulib now.
3964         (cvs-update): Get from gnulib.
3965         (emut_upload_commands): gnupload is in build-aux now.
3966         (alpha beta major): Add changelog-check.  Check version.
3967         * configure.ac (AC_CONFIG_AUX_DIR): Renamed from config to build-aux.
3968         (AC_CONFIG_FILES): Remove.
3969         * bin/autoconf.as: Add spaces to avoid distcheck warning.
3970         * config/announce-gen: Sync from coreutils.
3971         * doc/make-stds.texi: Sync from gnulib.
3972         * doc/standards.texi: Likewise.
3973         * man/Makefile.am: Adjust for config -> build-aux renaming.
3974         * tests/Makefile.am: Prefer $(FOO) to @FOO@.
3975         * tests/local.at: Adjust from config -> build-aux renaming.
3976         * tests/tools.at: Likewise.
3977         * tests/torture.at: Likewise.
3979         * NEWS: The C99 check now tests for vararg macros and 64-bit
3980         preprocessor ints.
3981         * doc/autoconf.texi (C Compiler): Document // comments, va_copy.
3982         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Test varargs macros and
3983         64-bit preprocessor ints.  Check for static initialization of
3984         long long.  Remove unnecessary casts.
3986 2006-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3988         * doc/autoconf.texi (Particular Programs): Mention that
3989         @INSTALL@ and @MKDIR_P@ may vary for different output files.
3990         Reported by Alexandre Duret-Lutz.
3992 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3994         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
3995         -lgcc?* and -lSystem, for Darwin/MacOS X.  Problem reported by
3996         Bill Northcott in
3997         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00083.html>.
3999 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
4001         * lib/autoconf/c.m4 (AC_C_CONST): Don't used shadowed vars, to
4002         pacify insanely picky compilers.  Problem reported by Eric Blake.
4004         * doc/autoconf.texi (Posix Variants): INTERACTIVE Unix is no
4005         longer supported by Sun.
4007 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4009         * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
4010         rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
4011         -Wundef -Werror".  Problem reported by David Fang in
4012         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
4013         * doc/autoconf.texi (Header Templates, Default Includes):
4014         (Particular Functions, Generic Functions, Header Portability):
4015         (Particular Headers, Generic Headers, Generic Declarations, Guidelines):
4016         (Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
4017         (Present But Cannot Be Compiled, Preprocessor Symbol Index):
4018         Prefer #ifdef to #if.
4019         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
4020         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
4021         (AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
4022         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
4023         Likewise.
4024         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
4025         (AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
4026         * lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
4027         (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
4028         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
4029         S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
4030         this.
4032 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
4034         * doc/autoconf.texi (Limitations of Usual Tools): Document sed
4035         problems with arg script text that doesn't end in newline, and
4036         with '-e a...'.  Problems reported by Ralf Wildenhues.
4038 2006-08-12  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
4040         * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
4041         check for libXt by a check for libX11.
4043 2006-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4045         * doc/autoconf.texi (config.status Invocation): Adjust according
4046         to last change.
4048 2006-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4050         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
4051         --help' should mention that `--version' outputs configuration
4052         settings.  Report by Bruno Haible.
4054 2006-08-06  Paul Eggert  <eggert@cs.ucla.edu>
4056         Fix test suite failures reported by Pierre in
4057         <http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
4058         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
4059         the compiler created a file "b.out" when it didn't create anything
4060         at all.
4061         * lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
4062         Discard stderr too, when invoking the test script.
4064 2006-08-05  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
4066         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
4067         in the restoring of the werror flag.
4069 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4071         * doc/autoconf.texi (Volatile Objects): Be even a little
4072         less skeptical about "volatile", after discussion with
4073         Bruno Haible on bug-gnulib.
4074         (Limitations of Usual Tools): Warn about sed stripping
4075         leading white space from text.  From Bruno Haible.
4077 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
4079         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
4080         compiler complains about it, even if things works after the
4081         complaint.  Problem reported by Peter O'Gorman.
4083         * doc/autoconf.texi (Preset Output Variables): Document CFLAGS,
4084         CPPFLAGS, and LDFLAGS better.  Problem reported by Bruno Haible.
4085         Similarly for CXXFLAGS, OBJCFLAGS, ERLCFLAGS.
4087 2006-07-17  Paul Eggert  <eggert@cs.ucla.edu>
4089         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space
4090         after -R regardless of host.  Patrick Welche reports that this
4091         fixes things on NetBSD 3.99.
4093         * NEWS: Recommend M4 1.4.5.
4094         * README: Likewise.
4095         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
4096         * tests/tools.at (autom4te cache): Update wording of diagnostic
4097         to match M4 1.4.5.
4099 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
4101         * doc/autoconf.texi (C Compiler): Add a ref to Volatile Objects
4102         under AC_C_VOLATILE.
4103         (Volatile Objects): Be a little less skeptical about what
4104         "volatile" means.  Derived from thoughts by Ben Pfaff in
4105         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00092.html>.
4107 2006-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4109         * doc/autoconf.texi: Fix some typos.
4111 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
4113         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
4114         more globally, since the 2006-06-30 patch didn't suffice.  Problem
4115         reported by Keith Marshall.  Also, don't bother with builddir2,
4116         since it shouldn't be needed any more.
4118 2006-07-07  Paolo Bonzini  <bonzini@gnu.org>
4120         * doc/autoconf.texi (Generic compiler characteristics):
4121         Document AC_COMPUTE_INT.  Fix wrong statements on Default
4122         Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.
4124         * lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
4125         (_AC_COMPUTE_INT): Add obsoletion warnings.
4126         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
4127         AC_COMPUTE_INT.
4129         * NEWS: Document change.
4131 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4133         * doc/autoconf.texi (Volatile Objects): New section.
4135         * NEWS: Document previous change.
4137 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
4139         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
4140         Require that long long int be at least 64 bits wide.  C99 requires
4141         this and enough programs depend on it so we should check for it.
4142         Bruno Haible reports in
4143         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00286.html>
4144         that long long int is 32 bits wide with some nonstandard compilers.
4145         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
4147 2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
4149         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
4150         to a nonexistent file, so that we don't have to worry about
4151         a local site configuration that doesn't use /usr/local.
4152         Problem reported by Keith Marshall in
4153         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00133.html>.
4155 2006-06-28  Paul Eggert  <eggert@cs.ucla.edu>
4157         * doc/autoconf.texi: Be more consistent about using @acronym with
4158         "HP" and "HP-UX".  Remove mention of OSF; the old version wasn't
4159         quite right (it talked about "OSF/Tru64", even though the
4160         operating systems were called OSF/1, Digital UNIX, and Tru64 UNIX,
4161         and it even mentioned "OSF 4"!) and at this point there's little
4162         reason to talk about OSF any more, since it died in 1994.
4163         (Specific Compiler Characteristics): Simplify example of
4164         negative-size array.
4165         (File Descriptors): Reorder to make the text flow better.
4166         Remove joke about "appreciate the various levels"; I didn't get it.
4167         Add remark about HP-UX sh -x bug with stderr noted by Bob Proulx in
4168         <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00225.html>.
4169         (File Descriptors, Limitations of Usual Tools):
4170         Tone down the advice against renaming or removing open files.
4171         (Limitations of Usual Tools): Add a new section, on 'rm'.
4173 2006-06-26  Stepan Kasal  <kasal@ucw.cz>
4175         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
4176         -lXt in LIBS, idea from Karsten Hopp; this was due since
4177         this change:
4179         2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4180         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
4181         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
4182         (which belong to Xt, not X itself).  See Debian bug 327655.
4184 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4186         * configure.ac (AC_INIT): Bump to 2.60a.
4187         * NEWS: Update.
4189 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4191         Version 2.60.
4193         * configure.ac, NEWS: Update.
4195 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4197         * config/texinfo.tex: Sync from upstream.
4199         * bin/autom4te.in (handle_traces): Transform the `@S|@'
4200         quadrigraph correctly in traces.
4202         * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
4203         Fix typos.
4205         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
4206         datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
4207         not defined.
4208         * doc/autoconf.texi (Changed Directory Variables): New node,
4209         to document the whole `datarootdir' business a bit better.
4210         * NEWS: Update.
4211         * tests/torture.at (datarootdir workaround): Extend test.
4212         Prompted by report by Alexandre Julliard.
4214 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
4216         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
4217         when using default mode of IBM C 6 for AIX.  Problem and two-line
4218         fix reported by Larry Jones.
4220 2006-06-22  Alexandre Julliard <julliard@winehq.org>
4222         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
4223         about literal '${datarootdir}' if a definition is found in the
4224         output file.
4226 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4228         * NEWS: Use "M4" rather than "m4" when appropriate.
4229         Problem reported by Eric Blake.
4230         * doc/autoconf.texi: Likewise.
4231         Use @acronym around BSD, GCC, and GNU when appropriate.
4232         (Why GNU M4): Renamed from "Why GNU m4".
4233         (Redefined M4 Macros): Mention that Posix
4234         m4wrap takes only 1 argument, but GNU M4 1.4.x takes more.
4235         (Buffer Overruns): Mention size_t and ptrdiff_t as alternatives
4236         to int.
4238 2006-06-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4240         * bin/autom4te.in (handle_output): Do not forbid the empty
4241         pattern.
4242         * tests/tools.at (autoconf: the empty token): New test.
4244 2006-06-20  Stepan Kasal  <kasal@ucw.cz>
4246         * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
4247         calls, so that we do not care whether they are LIFO or FIFO;
4248         in the m4_wrap, do not check which diversion is the topmost
4249         one, just check that the stack is balanced at the end.
4250         * lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
4251         base diversion forever--pop the previous diversion before
4252         opening the new one; consequently, remove the m4_wrap call.
4253         * lib/autotest/general.m4 (AT_INIT): Likewise.
4254         * tests/m4sugar.at: Do not use
4255         m4_wrap([m4_diversion_pop([..])]), for educational purposes.
4257 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
4258         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4260         * NEWS: Document that m4wrap/m4_wrap might not be LIFO.
4261         * doc/autoconf.texi (Redefined M4 Macros): Likewise.
4262         Rework example of m4wrap token-pasting trouble so that it doesn't
4263         care whether it's LIFO or FIFO.
4264         Fix some "contrary to"s that are awkward in English.
4266 2006-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4268         * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
4269         to `yes' instead of `int$1_t' if the type is found, for more
4270         consistent configure output (where $1 is the number of bits).
4271         (_AC_TYPE_UINT): Likewise for `uint$1_t'.
4272         Suggested by Bruno Haible.
4274         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
4275         needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
4276         with system headers.  Report by Bruno Haible.
4278 2006-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4280         * config/config.guess, config/config.sub: Sync from upstream.
4282         * bin/Makefile.am (autoconf.in): Use `--melt' for autom4te,
4283         in order to avoid picking up an older installed frozen m4sh.m4f.
4284         Besides an outdated shell startup, this could have been created
4285         by an earlier M4 version with incompatible frozen file format.
4287 2006-06-16  Paul Eggert  <eggert@cs.ucla.edu>
4289         * README: Recommend m4 1.4.4 instead of 1.4.3..
4290         * doc/autoconf.texi: Likewise.
4291         (Special Chars in Names): Say that $(.FOO) is portable, as
4292         suggested by Stepan Kasal.
4293         (Installation Directory Variables, Build Directories):
4294         (Automatic Remaking, Subdirectories, Fortran Compiler):
4295         (Making testsuite Scripts, Defining Directories):
4296         Quote variable usages better.
4297         (Making testsuite Scripts): Add clean-local rule to makefile
4298         snippet, by Eric Blake.
4299         (Installation Directory Variables): Fix table item font.
4300         Reword slightly to clarify.  Generalize advice about
4301         not using special characters to include all file-related
4302         vars, not just VPATH.
4303         (Special Chars in Variables): Warn about special characters in
4304         $(srcdir) too.
4305         (Assignments): Clarify default-value example as suggested by
4306         Ralf Wildenhues in
4307         <http://lists.gnu.org/archive/html/autoconf-patches/2006-06/msg00072.html>.
4308         (Special Shell Variables): Note leading ./ or ../, as suggested
4309         by Eric Blake.
4310         (Limitations of Builtins): Under cd, warn about CDPATH.
4311         (The Make Macro MAKEFLAGS): Untabify.  Problem reported by
4312         Ralf Wildenhues.
4314 2006-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4316         * doc/autoconf.texi (Configuration Actions): Remove duplicate
4317         `@var', for texi2html.
4318         (Systemology): Some more word wrapping, for DVI output.
4319         (autom4te Invocation): The short option for `--melt' is `-M',
4320         not `-m'.
4322 2006-06-15  Paul Eggert  <eggert@cs.ucla.edu>
4324         * doc/autoconf.texi: More formatting and English tweaks,
4325         many suggested by Ralf Wildenhues.
4326         Reword to avoid "@code{...}'s" and the like, since it's ugly
4327         with Emacs info mode.  discontents -> woes.
4328         Put a few "will"s back.  time stamp -> timestamp.
4329         side-effect -> side effect.
4331 2006-06-14  Paul Eggert  <eggert@cs.ucla.edu>
4333         * doc/autoconf.texi (Initializing configure, Shell Substitutions):
4334         Warn about $@ not persisting.  Problem reported by Julien Danjou in
4335         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372179>.
4336         (Special Chars in Names): Renamed from Leading _ in Macro Names.
4337         Mention other special chars, too.
4339 2006-06-14  Eric Blake  <ebb9@byu.net>
4341         * doc/autoconf.texi (The Make Macro MAKEFLAGS): New node.
4343 2006-06-13  Paul Eggert  <eggert@cs.ucla.edu>
4345         * doc/autoconf.texi: Some systematic minor improvements, as
4346         follows.  Use "makefile" when talking about makefiles
4347         generally (which might be named "makefile" or "Makefile" or even
4348         "foo.mk"), "Makefile" when talking about a specific makefile
4349         called "Makefile".  This unclutters the text from weird quotes
4350         (e.g., "`Makefile's" in info mode).  Similarly, use "@var{foo}
4351         values" rather than "@var{foo}s" and similar constructs containing
4352         "}s".  Use "Make rules" rather than "Makefile rules".  Minor
4353         English-language improvements.  Change the prefix "sub-" to "sub"
4354         and "re-" to "re".
4355         Put blank lines around examples more consistently.
4356         Avoid "rather" and "very" as intensifiers.
4357         Avoid "will" as an auxiliary.
4358         (Limitations of Make): Split this node into....
4359         (Portable Make, $< in Ordinary Make Rules, Failure in Make Rules):
4360         (Leading _ in Macro Names, Backslash-Newline-Newline):
4361         (Backslash-Newline Comments, Long Lines in Makefiles):
4362         (Macros and Submakes, The Make Macro SHELL, Comments in Make Rules):
4363         (obj/ and Make, make -k Status, VPATH and Make):
4364         (VPATH and Double-colon, $< in Explicit Rules):
4365         (Automatic Rule Rewriting, OSF/Tru64 Directory Magic):
4366         (Make Target Lookup, Single Suffix Rules, Timestamps and Make):
4367         New nodes, resulting from splitup of Limitations of Make.
4368         All cross-references changed.  Raise the top node from
4369         a section to a chapter, and all subnodes accordingly.
4370         Redo the introductory wording to match the new organization.
4371         (Installation Directory Variables): Use an example that is
4372         closer to what Autoconf actually does.  Mention that VPATH's
4373         value should not contain metacharacters or white space.
4374         (Fortran Compiler): Fix a VPATH bug in an example.
4375         (Leading _ in Macro Names): Mention that this problem is no longer
4376         of practical concern.
4377         (VPATH and Make): Reword the advice to make it clearer
4378         that Autoconf and Automake support VPATH in non-GNU make, but
4379         many packages have bugs in this area.
4380         ($< in Explicit Rules): Refer to Build Directories rather
4381         than using a (non-VPATH-safe) example.
4382         (Automatic Rule Rewriting): Mention the sort of disaster that
4383         can ensue with Solaris-style rule rewriting with VPATH.
4385 2006-06-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4387         * doc/install.texi (Compilers and Options): Weaken the
4388         suggestion to use GNU make for VPATH builds.
4390         * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
4391         AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
4393         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
4394         in regular expression.
4396 2006-06-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4398         * doc/autoconf.texi (Installation Directory Variables):
4399         Drop extra @samp from `@table @samp' item.
4400         (Limitations of Usual Tools): Comment fix.
4401         Do not nest @samp just to point to other table items.
4402         (Writing testsuite.at) <AT_CHECK>: The second argument to
4403         `@dvar' is already @samp'ed.
4404         (Making testsuite Scripts) <AC_CONFIG_TESTDIR>: Likewise,
4405         do not use @var in the second argument.
4407 2006-06-07  Paul Eggert  <eggert@cs.ucla.edu>
4409         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
4410         $as_shell.exe too.  Problem reported by Andreas Buening in
4411         <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
4413 2006-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4415         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
4416         `unused variable' compiler warning, for `-Wall -Werror'.
4417         Reported by Jaap Haitsma in
4418         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00012.html>.
4420 2006-06-06  Paul Eggert  <eggert@cs.ucla.edu>
4422         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
4423         case the compiler dumps core.  Problem reported for
4424         OpenServer 5.0.7 by Tim Rice in
4425         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
4426         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
4427         Likewise.
4429 2006-06-06  Tim Rice <tim@multitalents.net>.
4431         * lib/freeze.mk: Quiet check-forbidden-patterns so the string
4432         "ERROR" only shows up in "make check" output if there is an
4433         error.
4435 2006-06-06  Eric Blake  <ebb9@byu.net>
4437         * tests/tools.at (automatically allowed tokens): Fix typo.
4439 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
4441         * NEWS: Don't blame non-GNU VPATH compatibility issues on Automake.
4443         * doc/autoconf.texi (Integer Overflow): Mention that INT_MIN % -1
4444         typically overflows on x86 CPUs, even though the C standard
4445         requires otherwise.
4447 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4449         * configure.ac (AC_INIT): Bump to 2.59e.
4450         * NEWS: Update.
4452 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4454         Version 2.59d.
4456         * config/texinfo.tex: Sync from upstream.
4458         * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
4459         seen, invoke libtoolize with `--ltdl' argument.
4460         * lib/autom4te.in (Autoreconf-preselections): Adjust.
4461         * NEWS: Update.
4462         Suggested by Eric Blake.
4464 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
4466         * NEWS: Whoops!  AC_FUNC_STRNLEN isn't obsolescent.  Problem
4467         reported by Ralf Wildenhues.
4468         * doc/autoconf.texi (AC_FUNC_STRNLEN): Likewise.
4470 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4472         * THANKS: Update.
4474 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
4476         * doc/autoconf.texi: Modernize some of the references to Solaris.
4478 2006-06-05  Stepan Kasal  <kasal@ucw.cz>
4480         * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
4481         message issued by AC_REQUIRE.
4482         * tests/m4sugar.at: Check m4_require's error message.
4483         * tests/base.at: Check AC_REQUIRE's error message.
4484         * tests/local.at (AT_CHECK_M4): New macro, almost identical
4485         to...
4486         (AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
4487         AT_CHECK_M4.
4488         (AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
4489         `expout' as the last parameter.
4490         * tests/tools.at: Adapt to the above change.
4492 2006-06-04  Stepan Kasal  <kasal@ucw.cz>
4494         * doc/autoconf.texi (Limitations of Usual Tools): Correct
4495         information about race-free implementations of mkdir.
4497 2006-06-04  Eric Blake  <ebb9@byu.net>
4499         * bin/autoreconf.in (help): Document M4 environment variable.
4500         * bin/autoconf.as (Usage): Likewise.
4501         * bin/autom4te.in (help): Likewise.
4502         * doc/autoconf.texi (autom4te Invocation): Likewise.
4504 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
4506         * NEWS: GNU make now recommended for VPATH builds.
4507         Mention that some macros are now documented to be obsolescent.
4508         * doc/autoconf.texi:
4509         Prefer "current" to "modern" to describe
4510         currently-used (albeit perhaps old-fashioned) hosts.
4511         Mention which ancient features no longer need to be worried about.
4512         setgid -> set-group-ID
4513         setuid -> set-user-ID (these are the Posix terms)
4514         Fix some misuses of "only".
4515         (AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
4516         (AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
4517         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
4518         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
4519         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
4520         (AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
4521         (AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
4522         (AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
4523         (AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
4524         Mention that these macros are obsolescent.
4525         (Installation Directory Variables): shall -> should
4526         (File Descriptors): Mention that 0, 1, 2 might get reopened.
4527         Mention that it's now safe to use 3 and 4.
4528         (Limitations of Usual Tools): cp -r is now specified by Posix.
4529         Omit longwinded and obsolescent discussion of cp -f.
4530         Modernize discussion of expr, ls.
4531         (Limitations of Make): Modernize discussion of VPATH builds.
4532         Mention $? as a workaround in some cases.
4533         * doc/install.texi (Basic Installation):
4534         Mention "./configure; make; make install" first.  Be more
4535         specific about why this file is generic.  Remove unnecessary
4536         parens.  Remove misleading "only".  Remove obsolete advice
4537         about csh.  Don't say "configure" takes awhile; say it
4538         might take a while.  Suggest CFLAGS=-g rather than CFLAGS=-O2,
4539         and CC=c99 rather than CC=c89, as these are blessed by current
4540         Posix.  Recommend GNU make if doing a VPATH build.
4542 2006-06-03  Paul Eggert  <eggert@cs.ucla.edu>
4544         * doc/autoconf.texi: Use a consistent style "$ @kbd{...}" for
4545         examples involving shell prompts.
4547 2006-06-02  Stepan Kasal  <kasal@ucw.cz>
4548         and Paul Eggert  <eggert@cs.ucla.edu>
4550         * doc/autoconf.texi (Here-Documents): Add details about the
4551         pre-ksh93g bug.  Reword slightly to make it clearer.  Consistently
4552         use "here-documents" instead of "here documents".
4554 2006-06-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4556         * config/texinfo.tex, doc/standards.texi: Sync from upstream.
4558 2006-06-01  Paul Eggert  <eggert@cs.ucla.edu>
4560         * doc/autoconf.texi (File System Conventions): Warn about ":"
4561         anywhere in directory names.
4563 2006-05-31  Paul Eggert  <eggert@cs.ucla.edu>
4565         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be even more conservative
4566         about quoting the case statement, just in case.
4567         * doc/autoconf.texi (Here-Documents): Mention that the ksh bug
4568         was fixed in ksh93g; reported by Ralf Wildenhues.
4570 2006-05-31  Stepan Kasal  <kasal@ucw.cz>
4572         * doc/autoconf.texi (System Services): Do not document
4573         overriding EXEEXT via ac_cv_exeext=ext.
4574         (Particular Programs) <AC_PROG_MKDIR_P>:
4575         Document that ${MKDIR_P} understands --.
4576         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Improve the
4577         comment.
4579 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4581         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Guard against test
4582         argument with leading hyphen.  Problem reported by Paul Eggert.
4584 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
4586         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be more conservative
4587         about quoting ac_try: quote all of it, if any of it seems suspicious.
4588         This means we don't have to worry about ${ or sed any more.
4589         Also, double-quote the case statement, to work around misuses via
4590         underquoting as reported by Ralf Wildenhues in
4591         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00169.html>.
4592         (_AC_EVAL_STDERR): Revert, since evidently some packages rely on this
4593         undocumented and dangerous macro.
4594         Problem reported by Ralf Wildenhues in
4595         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00168.html>.
4597 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4599         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Check whether
4600         `dirname -- /' returns `/', for SunOS dirname scripts that escaped.
4601         Report by Sam Sirlin <sam@kalessin.jpl.nasa.gov>.
4603 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
4605         * lib/autoconf/general.m4: Revert AC_TRY_EVAL and AC_TRY_COMMAND,
4606         since evidently some packages rely on the old, broken behavior.
4607         Problem reported by Ralf Wildenhues in
4608         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00160.html>.
4609         (AC_TRY_EVAL, AC_TRY_COMMAND, _AC_EVAL): Go back to the
4610         pre-2006-05-26 definitions, but leave in the comments that
4611         these macros are dangerous and should not be used.
4612         (_AC_DO_ECHO): Renamed from _AC_EVAL_ECHO.  All callers changed.
4613         (_AC_DO): Renamed from _AC_EVAL.  All callers changed.
4614         (_AC_DO_STDERR): Renamed from _AC_EVAL_STDERR.  All callers changed.
4615         (_AC_DO_VAR): Renamed from AC_TRY_EVAL.
4616         (_AC_DO_TOKENS): Renamed from AC_TRY_COMMAND.
4618 2006-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4620         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
4621         the use of 'tr', since this is our only use of 'tr'.
4623 2006-05-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4624         and Paul Eggert  <eggert@cs.ucla.edu>
4626         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
4627         Don't assume 'grep' works on long lines, since AIX grep doesn't.
4629 2005-05-28  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4631         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on
4632         the output file in the `${datarootdir}' test.
4634 2005-05-28  Stepan Kasal  <kasal@ucw.cz>
4635         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4637         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If we have not seen
4638         mention of `datarootdir' in the input file(s), but literal
4639         `${datarootdir}' in the output file, and we haven't warned yet,
4640         then warn as well: the user may have (erroneously) used
4641         `AC_SUBST([mydatadir], [$datadir/my])' instead of the correct
4642         `AC_SUBST([mydatadir], ['${datadir}/my'])'.
4643         * tests/torture.at (datarootdir workaround): Extend this test.
4644         * NEWS: Update.
4646 2006-05-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4647         and Paul Eggert  <eggert@cs.ucla.edu>
4649         * doc/autoconf.texi (autoheader Invocation): The first argument to
4650         `AC_DEFINE_UNQUOTED' need not be a literal.  Mention the
4651         alternatives and clear up the language a bit.
4653 2006-05-27  Paul Eggert  <eggert@cs.ucla.edu>
4655         * NEWS: Reword notice for AC_TRY_COMMAND, AC_TRY_EVAL,
4656         ac_config_guess, ac_config_sub, ac_configure.
4657         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
4658         Fix typo that prevented an unnecessary space from being removed.
4659         Problems reported by Ralf Wildenhues in:
4660         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00143.html
4662 2006-05-26  Paul Eggert  <eggert@cs.ucla.edu>
4664         * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
4665         Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
4666         Don't use the term "thread-safe" to talk about mkdir race
4667         conditions, since the problem is more a process than a thread
4668         issue.  Problem reported by Stepan Kasal in:
4669         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
4670         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
4671         the test for 'install' more closely.  Look at MKDIR_P first.
4672         Look in the PATH, and at /opt/sfw/bin.
4673         Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
4674         Don't bother to try mkdir -p, since we already check mkdir --version;
4675         just look at the version number.  (There's no easy way to check
4676         for race-free implementations.)
4677         * tests/tools.at (autoconf: subdirectories): Adjust to above
4678         changes, since MKDIR_P now might end in "/mkdir -p".
4680         * doc/autoconf.texi (autoheader Invocation): Mention that the
4681         first arg of AC_DEFINE_UNQUOTED must be a literal.
4682         Problem reported by Ben Pfaff in
4683         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00090.html>.
4685         * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
4686         * doc/autoconf.texi (Special Chars in Variables): New section.
4687         (Preset Output Variables): Warn about special chars in CPPFLAGS.
4688         (Installation Directory Variables): Quote $(datadir) better.
4689         (Limitations of Builtins): Describe some of eval's trickiness.
4691         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
4692         * lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
4693         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
4694         in front of every arg, not just trailing args.  Quote apostrophes.
4695         (_AC_EVAL_ECHO): New macro.
4696         (_AC_EVAL, AC_EVAL_STDERR): Use it.  Quote arg of eval.
4697         (AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
4698         removed.
4699         (_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
4700         exposed by quoting of eval argument.  Put the command on line line
4701         so it logs better.
4702         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
4703         (_AC_PATH_X, AC_PATH_X): Quote more safely.
4704         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
4705         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
4706         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
4707         Handle special chars in prefix, ac_srcdir, ac_aux_dir.
4708         Use eval more safely.
4709         (_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
4710         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
4711         to be replaced.
4712         * tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
4713         lines, exposed by quoting of eval argument.
4715 2006-05-26  Stepan Kasal  <kasal@ucw.cz>
4716         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4718         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
4719         initialization of `ac_cv_exeext', do not override it if it was
4720         already set, unless it was set to `no', for compatibility with
4721         Autoconf-2.13, and comment this.
4722         Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
4723         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
4724         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
4725         * doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
4726         Document that this test may be overridden by setting
4727         `ac_cv_exeext'.
4729 2006-05-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4731         Revert these two patches:
4733         2006-04-06  Eric Blake  <ebb9@byu.net>
4734         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
4735         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
4736         2006-04-01.
4738         2006-04-01  Stepan Kasal  <kasal@ucw.cz>
4739         Clean up _AC_COMPILER_EXEEXT* macros.
4740         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
4741           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
4742           ac_file to the name of the default output file and call
4743           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
4744           initial `rm' of the candidate files...
4745         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
4746           the same list in subsequent `rm' calls, and for the temporary
4747           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
4748           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
4749         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
4750         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
4751           no longer needed) by libtool.  Make it a cache check.
4752         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
4753           copied here by mistake.
4754         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
4755           _AC_COMPILER_EXEEXT.
4756         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
4757           _AC_COMPILER_OBJEXT directly.
4758         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
4760 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4762         * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
4763         Fix description of how the buggy `sed' works.
4765 2006-05-25  Noah Misch  <noah@cs.caltech.edu>
4767         Sync from Automake:
4769         * lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
4770         ENOLCK.  Only mention `make -j' when applicable.  Only raise
4771         fatal errors when `make -j' is involved.  Improve error message.
4773 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4775         * doc/autoconf.texi (Here-Documents): We now know more about
4776         the variable expansion in here documents bug.
4777         Thanks to Tim Rice and Stepan Kasal.
4779         * doc/autoconf.texi (Making testsuite Scripts): Add an example
4780         how to use TESTSUITEFLAGS.  Suggested by Eric Blake.
4782 2006-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4784         * tests/autotest.at (Multiline command from M4 expansion):
4785         No failure to be expected if the shell quotes newlines in
4786         commands in the `set -x' output.  Report by Tim Rice.
4787         * THANKS: Update.
4789 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4791         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
4792         expansion in the here-documents used by config.status, as that
4793         runs afoul of the Korn shell version M-12/28/93d bug described in
4794         the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
4795         fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
4796         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
4798 2006-05-23  Jim Meyering  <jim@meyering.net>
4800         * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4801         Fix typo introduced with 2006-04-02 change.  It reversed the sense
4802         of the test.
4804 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4806         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
4807         ac_dB slightly, to save bytes in the script.
4808         Max out at 50 lines, rather than 96; this is more likely
4809         (though not guaranteed) to avoid obscure 'sed' failures.
4811 2006-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4813         * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
4814         `tr -d -' as bad option argument.  Work around this by deleting
4815         an unrelated character.
4816         Report by Tim Rice <tim@multitalents.net>.
4818 2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>,
4819             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
4820             Stepan Kasal  <kasal@ucw.cz>
4822         * doc/autoconf.texi (Particular Programs): Do not promise that
4823         we always prefer the GNU version of the program, and that we
4824         search according to PATH; both rules can have exceptions.
4825         Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
4826         AC_PROG_SED.  Move descriptions of limitations
4827         to the Limitations of Usual Tools section.
4828         (Limitations of Usual Tools) <sed>: Mention script length
4829         limitations with Solaris /usr/ucb/sed.
4830         <grep>: Fix wording for empty alternative.  Mention that -c and
4831         -l should not be combined, and that -E and -F should not be
4832         combined.
4834 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
4835         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4837         * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
4838         limits in Solaris 8 /usr/ucb/sed by testing a long script.
4840 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
4842         * doc/autoconf.texi (Defining Symbols): Literal parameter of
4843         AC_DEFINE is now passed to m4_pattern_allow.
4844         * NEWS: Mention that; likewise for AC_SUBST.
4845         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
4846         the parameter to m4_pattern_allow.
4847         * tests/tools.at: Add a check for that.
4849 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
4851         * lib/autoconf/status.m4: Fix typos.
4853 2006-05-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4855         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
4856         only the files that this macro generates.
4858 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
4860         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
4861         the HP-UX sed limitation of 99 commands, labels do not count.
4862         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
4863         in the comment.
4864         (_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
4866 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
4868         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
4869         Import the following fix from coreutils:
4871         2006-01-13  Jim Meyering  <jim@meyering.net>
4873         Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
4874         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
4875         not double-quote uses of that variable, to accommodate the rare
4876         case in which getmntent is available in none of the libraries
4877         checked.  This happens at least on FreeBSD 5.0.
4879 2006-05-20  Paul Eggert  <eggert@cs.ucla.edu>
4881         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
4882         ac_config_guess, ac_config_sub, and ac_configure, since evidently
4883         some other programs unwisely rely on these undocumented vars.
4884         But put in warning comments about them.
4885         Problem reported by Ralf Wildenhues in
4886         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
4887         * NEWS: Document that these variables are intended to go away.
4889 2006-05-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4891         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
4892         and set the language to C++ (analogous to the equivalent Fortran
4893         tests).
4895         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
4896         * doc/autoconf.texi (C++ Compiler): Document it.
4897         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
4898         * NEWS: Update.
4900 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4902         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
4903         that caused config.status to generate 100-command sed scripts; the
4904         portable limit is 99.
4906 2006-05-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4908         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
4909         variable `ac_d' instead of `d' to avoid infringing namespace.
4910         Report by Ralf Menzel.
4912 2006-05-18  Paul Eggert  <eggert@cs.ucla.edu>
4914         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
4915         $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
4916         * tests/tools.at (autoconf: subdirectories): New test, taken from
4917         the corresponding problem report by Ralf Wildenhues in:
4918         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
4920         * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
4921         Quote some uses of shell variables if they might suffer unexpected
4922         globbing.  This doesn't fix all instances of quoting problems that
4923         I found, just the easy ones that look safe.
4924         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
4925         (AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
4926         (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
4927         (AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
4928         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
4929         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
4930         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
4931         Likewise.
4932         * lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
4933         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
4935 2006-05-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4937         * bin/autoreconf.in ($help): Reword according to the manual.
4938         Suggested by Olly Betts.
4940 2006-05-17  Olly Betts  <olly@survex.com>  (tiny change)
4941         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4943         * bin/autoreconf.in: Pass the directory argument to
4944         `require_configure_ac'.  Fix comment.
4945         * tests/torture.at (Configuring subdirectories): Expose this.
4946         Reported by Olly Betts.
4948 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4950         * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
4951         lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
4952         Automake as follows:
4954         * lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
4955         `$configure_in' instead of `configure.in', to preserve
4956         directory component.
4958 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4960         * config/config.guess, config/config.sub, config/texinfo.tex,
4961         doc/make-stds.texi, doc/standards.texi: Sync from upstream.
4963 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
4965         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
4966         test for C99 conformance; (bool) 0.5 is an integer constant
4967         expression, but (bool) -0.5 is not.  Problem reported by Fedor
4968         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
4970 2006-05-13  Paul Eggert  <eggert@cs.ucla.edu>
4972         * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
4973         sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
4974         Warn about obsolete install-sh files.  Remove stray sentence
4975         fragment and fix cross reference.
4976         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
4977         install -d; this undoes the 2006-05-10 change.
4978         (MKDIR_P): Mark with AN_MAKEVAR.
4979         (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
4980         that we don't require $INSTALL to be thread-safe.  Move comments
4981         out of generated code.  Require AC_CONFIG_AUX_DIR_DEFAULT instead
4982         of AC_PROG_INSTALL.  Output a message saying that we're checking
4983         mkdir -p.  Set MKDIR_P rather than mkdir_p.  Do special magic for
4984         MKDIR_P instead of AC_SUBST.
4985         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
4986         Special magic for MKDIR_P, too.
4987         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
4988         a dnl.
4989         * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
4991 2006-05-11  Paul Eggert  <eggert@cs.ucla.edu>
4993         Sync from Automake, as follows:
4995         2006-05-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4996         * config/install-sh: Initialize IFS, so field splitting isn't
4997         turned off later.
4998         * config/mkinstalldirs: Likewise.
4999         * config/missing: Remove superfluous quotes.  Replace all uses of
5000         `[' by `test', for consistency, and for..
5001         * config/missing (sed_minuso, sed_output): New variables.
5002         (autom4te, help2man, makeinfo): Use them.  Unifies detection of
5003         `-o FILE', `--output FILE', `--output=FILE', stricter regex.
5004         Fixes `missing' to detect `--output' for help2man.  Fixes
5005         PR automake/483.  Report by Dennis J. Linse.
5006         (autom4te): Document in `missing --help'.
5008 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5010         * NEWS: New macro AC_PROG_MKDIR_P.  AS_MKDIR_P is now more robust.
5011         * config/install-sh: Don't use 'path' to talk about file names,
5012         as per GNU coding standards.  Close a race condition reported by Ralf
5013         Wildenhues and Stepan Kasal.  There is still a race condition
5014         on hosts that predate Posix 1003.1-1992, but we can't help this.
5015         Don't mishandle weird characters like space on pre-Posix hosts.
5016         Invoke mkdir at most once per dir arg on pre-Posix hosts.
5017         * doc/autoconf.texi (Programming in M4sh): Cross-reference to
5018         AC_PROG_MKDIR_P from AS_MKDIR_P.
5019         (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
5020         from mkdir.  Mention that Autoconf 2.60 install-sh is safe but
5021         earlier editions are not (including Automake 1.8.3).
5022         Do not suggest mkinstalldirs for thread-safety.
5023         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
5024         that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
5025         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
5026         presence of special characters and race conditions.
5027         * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
5028         in Autoconf's name space.
5030 2006-05-10  Bruno Haible  <bruno@clisp.org>
5031         and Paul Eggert  <eggert@cs.ucla.edu>
5033         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
5034         from Automake with minor changes.
5035         * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
5037 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5039         * config/install-sh: Update to Automake CVS version, as follows:
5040         2006-04-25  Stepan Kasal  <kasal@ucw.cz>
5041         * lib/install-sh: Simplify the expr implementation of dirname.
5042         2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
5043         * lib/install-sh: Handle --, and diagnose unknown options.
5045 2006-05-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5047         * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
5048         `./autom4te' to create `./testsuite', since the `all' target
5049         will ensure its presence, but `installcheck' should not create
5050         the uninstalled wrappers.
5052         * tests/torture.at (Unusual Automake input files): Skip if we
5053         detect automake < 1.8.
5055 2006-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5057         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
5058         is set to `no', then that overrides and sets ac_cv_prog_cc_c89
5059         and ac_cv_prog_cc_c99 to `no', for backward compatibility.
5060         * NEWS: Update.
5062 2006-05-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5064         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
5065         munge (multiple) white space and other oddities.
5066         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
5067         single quotes in variable assignment.
5068         (AC_ARG_VAR, configure invocation): Adjust tests to expose this
5069         and similar failures by adding multiple spaces, tabs, and other
5070         special characters.
5071         Report and different test suggested by Francesco Romani
5072         <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
5074         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
5075         single quotes, we only need to search for single quotes; this
5076         both simplifies the search pattern, and makes us less
5077         susceptible to `echo' variations for arguments not containing
5078         single quotes.
5079         (_AC_ARG_VAR_VALIDATE): Likewise.
5081 2006-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5083         * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
5084         `$*' and IFS concatenation issue with traditional shells and
5085         bash-2.04.  Report by Seanster@Seanster.com.
5087 2006-05-03  Bruno Haible  <bruno@clisp.org>
5089         * doc/autoconf.texi (Limitations of Usual Tools): Identify more
5090         precisely which Mac OS X versions have the od problem.
5092 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
5094         * doc/autoconf.texi: Use @option systematically.
5096 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
5097         and Bruno Haible  <bruno@clisp.org>
5099         * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
5100         about 'od'.
5101         (Integer Overflow): Mention the special case of integer division
5102         overflow.
5104 2006-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5106         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
5107         traditional shells like the Solaris one that do not use the
5108         first IFS character for assembling `$*'.
5109         Prompted by a related report from autoconf_bug@nro.ca.
5111 2006-05-01  Paul Eggert  <eggert@cs.ucla.edu>
5112         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5114         * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
5115         Mention more problems with the -e option.
5117 2006-04-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5119         * NEWS: Typo.
5120         * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
5122         * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
5123         in URLs to improve DVI formatted output (requires texinfo 4.6).
5124         (System Services, Systemology, Shellology): Likewise.
5125         (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
5126         output.
5128         * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
5129         continuous text.
5130         (Runtime): Fix macro argument names to match description:
5131         `action-if-found' -> `action-if-true' and similarly.
5132         (Obsolete Macros): Likewise.
5133         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
5134         (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
5135         (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
5137 2006-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5139         * doc/autoconf.texi (Limitations of Make): Clean up markup.
5141         * ChangeLog: Typo.
5142         * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
5143         DVI output.
5145 2006-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5147         * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
5148         /bin/sh set unsorted output.
5149         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
5150         * tests/local.at: Likewise.
5152 2006-04-26  Paul Eggert  <eggert@cs.ucla.edu>
5154         * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
5155         (Integer Overflow, Null Pointers, Buffer Overruns):
5156         (Floating Point Portability, Exiting Portably): New sections.
5157         (Writing Test Programs): Fix some langauge.  Recommend exiting
5158         with status 1, not merely nonzero.  Clarify exit declaration.
5159         (Run Time): Move C exit status stuff to new Exiting Portably section.
5160         (Systemology): Mention Posix and levenez.  Update v7 reference.
5161         (Portable Shell): Mention the Posix shell.
5163 2006-04-25  Stepan Kasal  <kasal@ucw.cz>
5165         * bin/autoconf.as (me): Replace by as_me.
5167 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
5169         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
5170         since as_me isn't set yet.
5172 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
5174         Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
5175         a few minor bugs in this area.
5177         * doc/autoconf.texi (Programming in M4sh): Comment out the
5178         documentation of AS_BASENAME, for now.
5179         (Shell Substitutions): Do not use AS_DIRNAME in an example.
5180         (Limitations of Builtins) <basename>: Do not refer to
5181         AS_BASENAME.
5182         * bin/autoconf.as (me): Don't use AS_BASENAME.
5183         (dir): Remove the unused variable.
5184         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
5185         AS_DETECT_REQUIRED.  All uses changed.
5186         (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
5187         All uses changed.
5188         (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
5189         (AS_BASENAME): Use "basename --" to protect against leading "-".
5190         (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR.  All uses changed.
5191         (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED.  All uses changed.
5192         (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
5193         (_AS_DIRNAME_PREPARE): Likewise.
5194         (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR.  All uses changed.
5195         (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED.  All uses changed.
5196         (AS_DIRNAME): Use "dirname --".
5198 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
5200         * doc/autoconf.texi (Runtime): Renamed from "Run Time".  All uses
5201         of "run time" and "run-time" changed to "runtime", for consistency.
5202         * lib/autoconf/fortran.m4: Likewise (in comment).
5203         * lib/autoconf/functions.m4: Likewise.
5204         * lib/autoconf/general.m4: Likewise.
5205         * lib/autoconf/headers.m4: Likewise.
5207         * doc/autoconf.texi (Run Time): Document the exit status situation
5208         with more accuracy and detail.
5210 2006-04-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5212         * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
5213         Archive is not officially `GNU' any more.  Update URL.
5214         (Defining Directories): Likewise
5215         * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
5217 2006-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5219         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
5220         newline from the `trap' code to finish `config.log'; the NetBSD
5221         /bin/sh resets the exit status after an empty command, as
5222         documented in doc/autoconf.texi.
5223         Reported by Dalibor Topic <robilad@kaffe.org>.
5225 2006-04-19  Paul Eggert  <eggert@cs.ucla.edu>
5227         * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
5228         Suggested by Bruno Haible.
5230 2006-04-18  Paul Eggert  <eggert@cs.ucla.edu>
5232         * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
5233         some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
5234         Instead, just list the shells that we know work.
5235         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg.  All uses
5236         changed.  Be more cautious about the _cv_ variable.
5237         * tests/tools.at (Syntax of the shell scripts): Check the
5238         _cv_ variable once, at first, to avoid an internal autoconf error
5239         when sh -n does not work.
5241 2006-04-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5243         * lib/Autom4te/FileUtils.pm: Sync from Automake.
5245 2006-04-16  Paul Eggert  <eggert@cs.ucla.edu>
5247         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
5248         use ">&-" since we're only 99.999% sure that this is portable,
5249         and since the MinGW bug is fixed in a different way.
5250         * lib/autotest/general.m4 (AT_INIT): Likewise.
5252 2006-04-16  Stepan Kasal  <kasal@ucw.cz>
5254         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
5255         before opening config.log, to avoid hitting a bug on MinGW.
5257 2006-04-14  Paul Eggert  <eggert@cs.ucla.edu>
5259         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
5260         AS_MESSAGE_LOG_FD before reopening it onto the log file.
5261         This works around a MinGW bug reported by Eric Paire.
5262         Make sure that all writes to the log file append to it,
5263         rather than possibly losing data.
5264         * lib/autotest/general.m4 (AT_INIT): Likewise.
5266 2006-04-14  Stepan Kasal  <kasal@ucw.cz>
5268         * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
5269         description.
5271 2006-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5273         * NEWS: Update.
5275         * configure.ac (AC_INIT): Bump to 2.59d.
5277 2006-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5279         Version 2.59c.
5281         * Makefile.maint (news-date-check): Do not require a leading `*'
5282         before the release date in NEWS.
5284 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
5285         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5287         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
5288         the instantiated file do not contain the string 'datarootdir'
5289         but contain @datadir@, @docdir@, @infodir@, @localedir@, or
5290         @mandir@, replace the reference '${datarootdir}' by the value.
5291         * tests/torture.at (datarootdir workaround): New test.
5292         * NEWS: Advertise this temporary fixup.
5293         Based on a patch by Bruno Haible, reported and analyzed by
5294         Paul Eggert and Noah Misch.
5296 2006-04-12  Eric Blake  <ebb9@byu.net>
5298         * tests/autotest.at (Debugging a failed test): Fix comment.
5300 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
5302         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
5303         all the changes since 2006-04-07.
5305 2006-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5307         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
5308         succeeded, but `ln -s file dir' failed, take care to remove the
5309         leftover target before the next test, to prevent its spurious
5310         failure; also make sure `ln file dir' works before selecting it.
5311         Thanks to Keith Marshall for pointing this out.
5312         * THANKS: Update.
5314         * lib/autotest/general.m4 (AT_INIT): Store quoted variable
5315         assignments in `at_debug_args', so that we put them correctly
5316         in the `run' script.
5317         * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
5318         Reported by Eric Blake.
5320 2006-04-11  Eric Blake  <ebb9@byu.net>
5322         * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
5323         top-level tests after micro-suite has been run.   Used in...
5324         (Debugging a successful test, Debugging script and environment),
5325         (Debugging a failed test): ...these new tests.  The first of these
5326         is fixed by...
5327         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
5328         macro, split out from...
5329         (AT_INIT): ...here, so that using -d also generates a run script.
5330         Document that -d inhibits top-level logging.
5331         * doc/autoconf.texi (testsuite Invocation): Document that -d only
5332         inhibits top-level logging; debug scripts are created.
5334         * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
5335         check.
5336         * tests/autotest.at (Empty test, Empty check): New test to check it.
5338         * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
5339         from gcc.
5341 2006-04-10  Stepan Kasal  <kasal@ucw.cz>
5343         * tests/mktests.sh: Use "trap '' 0", not "trap 0".  Do not touch
5344         the files if a problem appears.  Make the empty *.at files
5345         read-only, too.  Proposed by Ralf Wildenhues.
5347 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5349         * config/Makefile.am: Add comment to force updated Makefile.in.
5351         * lib/freeze.mk: Fix typo in comment.  Unlike the last, white
5352         space only patch to this file, this patch causes the Makefile.in
5353         files that include freeze.mk to be updated, and thus have a
5354         newer time stamp again, which in turn makes a pristine CVS
5355         checkout have correct time stamps.
5357         * Makefile.maint (cvs-sv): New macro, to be used..
5358         (config.guess-url_prefix, config.sub-url_prefix)
5359         (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
5360         point to CVS text checkout of Gnulib files.
5361         (copyright-check): Bump current year.
5362         (announcement): Do not hard-wire `./announce-gen'.
5363         (cvs-update): Propagate failures of `cvs' and `move-if-change'
5364         correctly.
5365         * Makefile.cfg (executable-update): Use `chmod a+x' instead of
5366         `chmod +x'.
5367         (wget_files): Update config.guess, config.sub, texinfo.tex by
5368         `wget-update', now that their URLs work again.
5370 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
5372         * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
5373         Problem noted by Paul D. Smith.
5375 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5377         * doc/autoconf.texi: Remove unused words from word list.
5378         * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
5379         .x-sc_trailing_space: New files.
5381         * doc/standards.texi: Sync from gnulib.
5383         * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
5384         `LIBOBJDIR' as experimental.
5386         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
5387         with a target directory; it's internally implemented as `cp'
5388         anyway, but since Autoconf advertises the possibility to use
5389         a target directory when LN_S is `ln -s', we need to find out.
5390         Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
5391         analyzed by Keith Marshall <keith.marshall@total.com>.
5393         * THANKS: Update.
5395 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
5397         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
5398         confdefs.h as-is.  In general, if it has backslash-newline or the
5399         like, then it doesn't work either to sort or to remove empty
5400         lines.
5402 2006-04-09  Stepan Kasal  <kasal@ucw.cz>
5404         * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
5406 2006-04-09  Alexandre Duret-Lutz  <adl@gnu.org>
5408         * lib/autom4te.in (Automake-preselections): Preselect
5409         _AM_SUBST_NOTMAKE.
5411 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
5413         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
5414         apostrophe within a single-quoted string, as this is the usual
5415         tradition and is easier to read than '"'"'.  Don't rely on the
5416         shell treating "$/" like '$/'.  Use a more-consistent indenting
5417         style for the trap.
5419 2006-04-09  Eric Blake  <ebb9@byu.net>
5421         * tests/autotest.at (Backquote command substitution),
5422         (Multiline backquote command substitution): Remove mistaken
5423         AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
5424         applied...
5425         (Parenthetical command substitution, Multiline parenthetical
5426         command substitution): here.
5428 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
5430         Import macros from gnulib (often changing their name).
5432         * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
5433         New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
5434         AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
5435         AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
5436         AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
5437         AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
5438         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
5439         AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
5440         AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
5441         AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
5442         The manual mentions Gnulib more prominently.
5443         * doc/autoconf.texi (Gnulib): New node.
5444         (Pointers): Add Gnulib URL.
5445         (Particular Functions): Alphabetize.  Add AC_FUNC_STRTOLD.
5446         (Generic Functions): Add AC_CHECK_FUNCS_ONCE.  Refer to new
5447         Gnulib section.
5448         (Particular Headers): Add AC_HEADER_ASSERT.  For stdbool.h,
5449         suggest a #define rather than a typedef for _Bool, and mention
5450         Gnulib rather than trying to substitute stdbool code.
5451         (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
5452         (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
5453         (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
5454         AC_STRUCT_DIRENT_D_TYPE.
5455         (Particular Types): Mention stdint.h and inttypes.h as standard
5456         headers too.
5457         Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
5458         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
5459         AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
5460         AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
5461         AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
5462         (C Compiler): Move AC_C_LONG_DOUBLE to ...
5463         (Obsolete Macros): here.  Under AC_LONG_DOUBLE, mention
5464         AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
5465         (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
5466         (Coding Style).  Don't mention m4_expand_once.
5467         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
5468         AC_TYPE_LONG_DOUBLE_WIDER.  Now obsolete.
5469         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
5470         (AC_CHECK_FUNCS): Use it.
5471         (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
5472         (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
5473         * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
5474         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
5475         (AC_HEADER_ASSERT): New macro.
5476         (AC_HEADER_STDBOOL): Don't assume "#error" works.
5477         Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
5478         Catch a bug in an HP-UX C compiler.
5479         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
5480         * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
5481         (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
5482         (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
5483         (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
5484         (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
5485         New macros.
5487         * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
5488         use /^foo|bar$/, it does not mean /^(foo|bar)$/.
5490 2006-04-08  Stepan Kasal  <kasal@ucw.cz>
5492         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
5493         of the warning introduced by the 2001-08-28 change.
5495 2006-04-08  Stepan Kasal  <kasal@ucw.cz>,
5496             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5498         * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
5499         variables shall be overriden by the cache.
5500         * tests/torture.at (AC_ARG_VAR): Test also with a first value
5501         that contains braces.
5503 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
5505         Revert the patch from 2006-04-01 and only improve
5506         _AS_DETECT_BETTER_SHELL:
5508         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
5509         skip nonexistent directories.
5510         (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
5511         only shell candidates which exist.
5512         (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
5513         * lib/autotest/general.m4 (AT_INIT): No need to give three
5514         parameters to _AS_PATH_WALK.
5516 2006-04-07  Stepan Kasal  <kasal@ucw.cz>,
5517             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5519         * bin/autoupdate.in (handle_autoconf_patches): Change the way we
5520         distinguish m4sugar macros.
5521         * tests/tools.at (autoupdating with aclocal and m4_include):
5522         New test.  Bug reported by Gary V. Vaughan <gary@gnu.org>,
5523         test case by Noah Misch <noah@cs.caltech.edu>.
5525 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
5527         Revert my change from 2006-03-17, in other words:
5528         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
5529           and DUALCASE=1.
5530         (AS_SHELL_SANITIZE): Remove DUALCASE=1.
5531         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
5532           it is set.
5534 2006-04-07  Eric Blake  <ebb9@byu.net>
5536         * doc/autoconf.texi (Programming in M4sh): Document that
5537         AS_MKDIR_P exits the script on failure.
5538         * lib/autotest/general.m4: Remove redundant AS_ERROR.
5540 2006-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5542         * config/elisp-comp, config/install-sh, config/mdate-sh,
5543         config/missing, config/mkinstalldirs: Sync from Automake.
5545         * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
5546         from Automake.
5548         * doc/make-stds.texi: Sync from gnulib.
5550 2006-04-06  Eric Blake  <ebb9@byu.net>
5552         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
5553         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
5554         2006-04-01.
5556 2006-04-06  Stepan Kasal  <kasal@ucw.cz>,
5557             Eric Blake  <ebb9@byu.net>,
5558             Paul Eggert  <eggert@cs.ucla.edu>,
5559             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5561         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
5562         whether `set' quotes correctly: redirect stderr of the tested
5563         `set', and use a subshell, for Ultrix; use `sed' instead of
5564         `grep' for zsh `set' which may write binary output; match only
5565         at the beginning of a line, to avoid false positives.
5566         In order to avoid false positives by unrelated variables with
5567         multiline content, put the dump algorithm in a subshell and
5568         unset all variables containing newlines (except some which are
5569         special to the shell).  Warn about cache variables that are
5570         unset.
5572 2006-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5574         * config/config.guess, config/config.sub, config/texinfo.tex:
5575         Sync from upstream.
5577         * tests/mktests.sh: Reword comments.
5579         * tests/mktests.sh: Only skip internal macros starting with
5580         `_AC_' or `__AC_'.  Noted by Stepan Kasal.
5581         Update exclusion lists for the test suite to this end:
5582         (AC_ARG_VAR): Do test this now.
5583         (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
5584         (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
5585         (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
5586         (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
5588         * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
5589         shell issue with double-quoted command substitutions of native
5590         commands.
5591         Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
5592         Marshall.
5594         * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
5595         no file matches the glob, discard the warning, set `nullglob'.
5596         (syntax-check): Likewise.
5597         (sc_cast_of_x_alloc_return_value): Likewise.
5598         (sc_cast_of_alloca_return_value, sc_error_exit_success)
5599         (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
5600         (m4-check): Likewise.
5601         (sc_system_h_headers): Do not print rule on execution.
5602         (sc_tight_scope): Do not fail for non-existing `src' directory.
5603         (sc_changelog): Skip the Copyright footer.
5604         * lib/autoconf/lang.m4: Remove trailing space.
5606         * lib/autoconf/status.m4: More replacements to
5607         <tab><space> where this makes sense.
5609 2006-04-06  Stepan Kasal  <kasal@ucw.cz>
5611         * tests/Makefile.am (maintainer-check-posix):
5612           s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
5614         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
5615           ac_config_<foo>s again, sometimes normalized, sometimes not.
5616         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
5617         (AC_CONFIG_COMMANDS): Do not do so here.
5618         (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
5619           and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
5620           2005-07-25 rewrite.  Noticed by Noah Misch.
5622         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
5623           _AC_PRESERVE_HELP_ORDER, ...
5624         (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
5626         * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
5627           inside m4_expand_once; it is redundant.
5629         * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
5630           for --help from Cygnus `configure.'
5632 2006-04-06  Paul Eggert  <eggert@cs.ucla.edu>
5634         * doc/autoconf.texi (C Compiler): Warn about #error.  Follows up
5635         on a patch proposed by Ralf Wildenhues.
5637 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
5639         * lib/autoconf/status.m4: Replace <space>''<tab> with
5640         <tab><space> where this makes sense.
5642 2006-04-05  Howard Chu  <hyc@highlandsun.com>  (trivial change)
5643             Noah Misch  <noah@cs.caltech.edu>
5645         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
5646         (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
5647         * doc/autoconf.texi (Help Formatting): New node.
5648         * NEWS: Announce AC_PRESERVE_HELP_ORDER.
5650 2006-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5652         * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
5653         lib/autoconf/specific.m4, lib/autoconf/status.m4,
5654         lib/autoconf/types.m4, lib/autotest/general.m4,
5655         tests/mktests.sh, tests/torture.at: White space cleanup:
5656         remove some SPACE before TAB, or add quoting ('' or @&t@).
5658         * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
5660         * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
5662 2006-04-05  Eric Blake  <ebb9@byu.net>
5664         * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
5665         empty test suite works.
5666         * tests/autotest.at (Empty test suite): Remove xfail.
5668 2006-04-05  Noah Misch  <noah@cs.caltech.edu>
5670         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
5671         TAGS to ac_config_<foo>s.
5672         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
5673         (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
5674         normalizing it, consistent it with previous releases.
5675         * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
5677 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
5679         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
5680         Use simplified args that Eric Blake originally suggested.
5682 2006-04-04  Paul Eggert  <eggert@cs.ucla.edu>
5684         * tests/mktests.sh: Don't use 'cat'; just read the files directly.
5685         Prefer 'sort -u' to 'sort | uniq'.  Filter data before sorting it.
5686         Use 'comm' rather than N instances of grep; this also fixes a bug
5687         whereby substrings were incorrectly matched, causing us to not
5688         generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
5689         (exclude_list): Exclude empty macros.
5690         (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
5692         Use awk rather than grep -E or egrep, to avoid
5693         portability problems with regular expressions containing newlines.
5694         (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
5695         Switch from grep to awk syntax.
5696         (ac_exclude_script): Renamed from ac_exclude_egrep.
5697         (au_exclude_script): Renamed from au_exclude_egrep.
5699 2006-04-04  Noah Misch  <noah@cs.caltech.edu>
5701         * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
5702         a subdirectory subject to Cygnus `configure'.
5703         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
5705         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
5706         report request when we have no AC_PACKAGE_BUGREPORT.
5708 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5710         * THANKS: Update.
5712         * tests/mktests.sh: Update copyright year in the header of the
5713         generated files.
5715         * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
5716         (AC_C_RESTRICT): Likewise.  Furthermore, add a function with a
5717         typedef'ed restricted pointer, to catch a compiler bug on
5718         HP-UX 11.x, and fix warnings so it passes with -Werror.
5719         (_AC_PROG_CC_C99): Likewise.
5720         Reported by Albert Chin <china@thewrittenword.com>.
5721         * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
5723 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
5725         * bin/autoscan.in (subdirs): New global.
5726         (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
5727         (output): Emit AC_CONFIG_SUBDIRS as needed.
5728         * tests/autoscan.at (autoscan): Remove XFAIL.
5730 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
5732         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
5734 2006-04-03  Eric Blake  <ebb9@byu.net>
5736         * THANKS: Add myself.
5738 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5740         * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
5741         to log, point to testsuite output tree.
5743 2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
5745         * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
5746         * doc/autoconf.texi (Function Portability): Mention that C++
5747         has trouble with 'exit'.
5748         (Guidelines): Test programs shouldn't use 'exit'.
5749         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
5750         Remove; all uses removed.
5751         (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
5752         Return from 'main' instead of calling 'exit'.
5753         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
5754         (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
5755         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
5756         (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
5757         (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
5758         (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
5759         (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
5760         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
5761         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
5762         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
5763         * tests/compile.at: Likewise.
5765 2006-04-02  Pavel Roskin  <proski@gnu.org>
5767         * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
5769 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
5771         Clean up _AC_COMPILER_EXEEXT* macros.
5773         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
5774           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
5775           ac_file to the name of the default output file and call
5776           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
5777           initial `rm' of the candidate files...
5778         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
5779           the same list in subsequent `rm' calls, and for the temporary
5780           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
5781           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
5782         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
5783         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
5784           no longer needed) by libtool.  Make it a cache check.
5785         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
5786           copied here by mistake.
5787         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
5788           _AC_COMPILER_EXEEXT.
5789         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
5790           _AC_COMPILER_OBJEXT directly.
5791         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
5793 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
5795         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
5796         (AS_DIRNAME): Use it.
5797         (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
5799         * tests/*.at: Remove the generated ones.
5801 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
5803         * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
5805 2006-04-01  Eric Blake  <ebb9@byu.net>
5807         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
5808         directories, unless optional third argument supplied.
5809         (AS_UNAME): Don't optimize PATH walk.
5811         * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
5813 2006-04-01  Eric Blake  <ebb9@byu.net>
5814         and Stepan Kasal  <kasal@ucw.cz>
5816         * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
5817         and fix some typos.
5819 2006-04-01  Noah Misch  <noah@cs.caltech.edu>
5821         * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
5822         Autoconf version number despite a zero- or one-argument AC_INIT.
5824         * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
5825         subordinate tools.
5826         * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
5827         * doc/autoconf.texi (autoreconf Invocation): Document it.
5829         * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
5830         Append LocalWords so ispell-buffer passes cleanly.  Spelling fixes.
5832 2006-04-01  Eric Blake  <ebb9@byu.net>
5834         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
5835         * lib/autotest/general.m4: Be tolerant of existing directory when
5836           rm failed to remove it.
5838 2006-04-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5840         * bin/autoupdate.in: Redefine m4_location so that warnings print
5841         the correct lines of the input file by subtracting..
5842         (_au__first_line): ..this new definition.
5844         * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
5845         AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
5846         Remove stray newline in output.
5847         (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
5848         AC_DEFUN this for autoconf, including the obsoletion diagnose.
5849         Fixes autoupdating of code where the replacement output contains
5850         m4sugar macros.
5851         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
5852         * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
5853          (au_exclude_list): Add AC_LANG_SAVE.
5854         * tests/tools.at: Several new tests for all of this.
5855         * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
5856         hairy details.
5857         The AC_LANG_SAVE issue was reported against Libtool by
5858         Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
5859         Kristian Kvilekval <kris@cs.ucsb.edu>.
5861 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
5863         * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
5864           switch all of them on and of when necessary.  Fixes the bug when
5865           m4sugar macros (e.g., m4_define) were expanded after the first
5866           automatic update (e.g., after AC_PREREQ or AC_INIT).
5868 2006-03-31  Paul Eggert  <eggert@cs.ucla.edu>
5870         * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
5871         of AS_BASENAME and AS_DIRNAME.  Reported by Stepan Kasal.
5873         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
5874         correctly.  Problem reported by Eric Blake.
5875         (_AS_EXPR_PREPARE): Detect Tru64 expr bug.  Problem reported by
5876         Ralf Wildenhues.
5878 2006-03-30  Paul Eggert  <eggert@cs.ucla.edu>
5880         * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
5881         Tighten up the basename/dirname wording.
5883 2006-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5885         * Makefile.maint (sc_texi_notab): New check: do not use TABs
5886         in texinfo files outside of verbatim environments.
5887         (syntax-check-rules): Update.
5888         * doc/autoconf.texi (Configuration Headers): Conform to it.
5890 2006-03-30  Chris Pickett <cpicke@cs.mcgill.ca>  (tiny change)
5892         * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
5893           aclocal cannot be given on the command line.
5895 2006-03-29  Paul Eggert  <eggert@cs.ucla.edu>
5897         * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
5898         Give an example for AS_DIRNAME instead of referring to Posix..
5899         (File System Conventions): Put discussion of // versus / here, and
5900         modernize it a bit.
5901         (Limitations of Usual Tools): Add basename.  Remove verbiage
5902         after dirname, since it got moved to the above sections.
5903         All this was inspired by a patch proposed earlier by Eric Blake.
5905 2006-03-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5907         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
5908         `$0' to protect against spaces.
5909         * lib/autotest/general.m4 (AT_INIT): Likewise.
5910         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
5911         `$0', $as_me.
5913 2006-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5915         * bin/autoscan.in: The value of find_configure_ac should be
5916         checked for existence, so we don't barf over a nonexisting
5917         configure.ac.  Reported by Laurence Darby <ldarby@tuffmail.com>.
5919 2006-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5921         * bin/autoupdate.in: Fix some typos.
5923 2006-03-21  Stepan Kasal  <kasal@ucw.cz>
5925         * doc/autoconf.texi (Installation Directory Variables): Fix typo.
5927         * lib/autoscan/autoscan.list: Refreshed.
5929 2006-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5931         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
5932         and Erlang related variables.
5934         * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
5935         (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
5936         (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
5937         (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
5938         (AC_LANG_BOOL_COMPILE_TRY(Objective C))
5939         (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
5940         (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
5941         (_AC_PROG_OBJC_G): New macros.
5942         (_AC_ARG_VAR_CPPFLAGS): Adjusted.
5943         * doc/autoconf.texi (Objective C Compiler): New node.
5944         (Preset Output Variables): Document OBJCFLAGS.
5945         (Language Choice): Document `Objective C' language.
5946         (Fortran Compiler): Fix typo.
5947         * NEWS: Updated.
5948         Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
5950 2006-03-20  Stepan Kasal  <kasal@ucw.cz>
5952         * doc/autoconf.texi (Default Includes): Fix typo
5953           s/AC_HEADERS_STDC/AC_HEADER_STDC/
5954         (Limitations of Usual Tools): s/unwriteable/unwritable/
5955         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
5956           Fix typos in the comments.
5958 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
5960         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
5961           Factor out the warning to...
5962         (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
5963         * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
5964         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
5966         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
5967           case `ac_delim' when writing the sed script.
5969         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
5970           moved DUALCASE=1 ...
5971         (AS_SHELL_SANITIZE): ... here.
5972         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
5973           that it is set.
5975         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
5976           AC_SUBST.
5977         (_AC_PATH_PROG): Store the result to VARIABLE.
5978         (AC_PATH_PROG): No need to set VARIABLE again.
5980         * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
5981           the first one is usual AT_CHECK_MACRO test, the second one checks
5982           that the same works when cross-compiling.
5983         * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
5984         (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
5986 2006-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5988         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
5989         the directory `/usr/bin/posix' in the shell search, to prefer
5990         the Posix shell not only in subsequent spawns as with `$BIN_SH'
5991         on Tru64.
5993         * doc/autoconf.texi (contents): To fix texi2html output, hide
5994         `@setcontentsaftertitlepage' for HTML.
5995         (Writing Autoconf Macros): Likewise, insert space after `@c'.
5996         (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
5997         `@,{c}'.
5999 2006-03-16  Stepan Kasal  <kasal@ucw.cz>
6001         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
6002           sanitizing...
6003         (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
6004         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
6005           why IFS is restored so late; thank you, Ralf, for reminding us.
6007 2006-03-15  Stepan Kasal  <kasal@ucw.cz>
6009         * doc/autoconf.texi (Pretty Help Strings): No need to use cached
6010           variables in the examples.
6012 2006-03-14  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
6014         * doc/autoconf.texi (several sections): Cleaned up documentation for
6015         macros in erlang.m4.
6017 2006-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6019         * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
6020         failure condition for `$(cmd)' style command substitutions.
6021         (Parenthetical command substitution, Multiline parenthetical
6022         command substitution): Use it.
6024         * doc/autoconf.texi (Special Shell Variables): Missing word.
6025         Reported by Keith Marshall <keith.marshall@total.com>.
6027         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
6028         IFS even in case of empty `$PATH'.
6030 2006-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6032         * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
6033         `expr' away if there is nothing to do.
6034         < --keywords >: Simplify and robustify argument handling.
6035         Revert erroneous comment from 2005-08-23.  Extend to allow
6036         keyword negation with `!'.
6037         Update help message.  Remove broken code to prevent running
6038         tests multiple times.
6039         * doc/autoconf.texi (testsuite Invocation) < --keywords >:
6040         Update and fix the documentation accordingly.
6041         * tests/autotest.at (Keywords): Renamed to..
6042         (Keywords and ranges): .. this.  Extended to make sure negated
6043         keywords, keywords taken from AT_SETUP arguments, and numeric
6044         test ranges work, and that matching is case-insensitive.
6046 2006-03-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6048         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
6049         allow to pass unnamed structs even in C++.
6050         (AC_CHECK_SIZEOF):  Likewise.
6051         Also fix quoting error in `AC_MSG_FAILURE' arguments.
6052         * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
6053         struct): New tests for unnamed structs, each both native and
6054         cross-compiling.
6056         * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
6057         a structure inside a cast, for C++ conformance.
6058         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
6059         Also fix quoting error in `AC_MSG_FAILURE' arguments.
6061         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
6062         nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
6063         trying to execute the command `no'.
6065         * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
6066         m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
6067         expanded outside.
6069         * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
6070         example.  Do not emphasize `$%', it is hardly new and special.
6071         Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
6073         * doc/autoconf.texi (Limitations of Usual Tools): Document
6074         OpenBSD and traditional `grep' failure to handle multiple
6075         patterns separated by newlines.
6077 2006-03-10  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
6079         * doc/autoconf.texi (several sections): Add documentation for macros
6080         in erlang.m4.
6082 2006-03-10  Eric Blake  <ebb9@byu.net>
6084         * doc/autoconf.texi (Obsolete Macros): Fix wording of
6085         AC_TRY_LINK_FUNC.
6087 2006-03-10  Paul Eggert  <eggert@cs.ucla.edu>
6089         * doc/autoconf.texi: Use @acronym more consistently for acronyms
6090         like BSD, GPL, LGPL.  Fix minor English typos.
6091         (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
6092         Mention that these macros are becoming obsolete.
6093         (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
6094         Use more modern terminology for which standard is what.
6095         (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
6096         and to ansi2knr.
6097         (AC_PROG_CXX): Likewise.
6098         (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
6099         Remove obsolete discussion about how to port to K&R.
6100         (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
6101         the obsolescent AC_HEADER_STDC.
6102         (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
6103         can't rely on it.
6105 2006-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6107         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
6108         Remove stdin redirection from /dev/null to allow pipe to work.
6110 2006-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6112         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
6113         Require that /lib/cpp include stdio.h correctly.  Solaris 10's
6114         doesn't.  Problem reported by D'Arcy A MacIsaac and diagnosed by
6115         Ralf Wildenhues.
6117 2006-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6119         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
6120         HP-UX sed is 99 commands, not 100.
6121         (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
6122         _AC_SUBST_FILES fragment.  Separate `{' and `r' commands by
6123         newline for portability.
6124         * tests/torture.at (Torturing config.status): Also test 100
6125         AC_SUBST_FILE invocations.  Fix test to actually verify the
6126         AC_CONFIG_FILES output.
6127         * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
6128         command, label, and read-file `r' limits.  Unify HP-UX spelling.
6130         * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
6131         non-suffix rule.
6132         ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
6133         non-GNU make.
6134         (autoconfdir, $(AUTOCONF_FILES)): Likewise.
6135         * tests/mktests.sh: Small shell portability fixes.
6137 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6139         * doc/autoconf.texi (Caching Results): Fix the examples to use a
6140         recommended quoting style and discard unwanted output.
6142 2006-03-05  Paul Eggert  <eggert@cs.ucla.edu>
6144         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
6145         (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
6146         cases, and to work around Tru64 expr bug.
6148 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6150         * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
6151         expr bug that turns the result of a regex match into a number if
6152         possible.
6154 2006-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6156         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
6157         HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
6158         in section `Specific Compiler Characteristics'.
6160 2006-03-04  Eric Blake  <ebb9@byu.net>
6162         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
6163         variable warning.
6165 2006-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6167         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
6168         order of variable initialization, so even the Solaris 2.6 shell
6169         can create a config header correctly.  Fixes lots of test suite
6170         failures.
6172 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6174         * doc/autoconf.texi (Text processing Macros): New node to
6175         document the m4sugar macros m4_re_escape, m4_tolower,
6176         m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
6178 2006-02-22  Paul Eggert  <eggert@cs.ucla.edu>
6180         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
6181         XrmInitialize (0) -> XrmInitialize ().
6182         Reported by Toshio Kuratomi.
6184 2006-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6186         * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
6187         test, as in `if tests; then cmd1; elif ...; else ...; fi'.
6188         * doc/autoconf.texi (Programming in M4sh): Adjusted.
6189         * tests/m4sh.at (AS_IF and AS_CASE): Test this.  Also make sure
6190         both macros are defun'ed so that required macros are evaluated
6191         outside.
6193         * doc/autoconf.texi (Prerequisite Macros): State more precisely
6194         where a required macro will be expanded.
6195         (Coding Style): Another reason not to use `m4_define'.
6197 2006-02-21  Eric Blake  <ebb9@byu.net>
6199         * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
6201 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6203         * doc/autoconf.texi (Looping constructs): New node, to
6204         document m4_for, m4_foreach, m4_foreach_w, and mention
6205         obsolete AC_FOREACH.
6206         (Obsolete Macros): Document AC_FOREACH.
6207         * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
6208         (m4_for): Fix to never loop (almost) endlessly, work correctly
6209         with arithmetic expressions in arguments, a step of zero or
6210         non-integer multiple of the interval, and avoid integer
6211         overflow.
6212         * tests/m4sugar.at: New test for m4_for, m4_foreach, and
6213         m4_foreach_w.
6215 2006-02-20  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
6217         Add basic support for Erlang, both for configuring Erlang/OTP
6218         tools, and Erlang as a conf test language.
6219         * lib/autoconf/erlang.m4: New file.
6220         * lib/autoconf/autoconf.m4: Add erlang.m4.
6221         * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
6222         * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
6223         * NEWS: Add short description of new macros.
6224         * THANKS: Add Romain Lenglet.
6226 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6228         * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
6229         native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
6231 2006-02-15  Eric Blake  <ebb9@byu.net>
6233         * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
6234         warning.
6236 2006-02-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6238         * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
6239         (_AS_CASE): Private helper macro.
6240         * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
6241         * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
6242         Fix syntax of AS_IF description
6243         (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
6244         for the AC_REQUIRE mess.
6245         * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
6246         AS_SHELL_SANITIZE.
6248 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
6250         * doc/autoconf.texi: Minor style cleanup.
6251         Be consistent about spaces after commas.
6252         Insert [] where empty args look a bit funny.
6253         Fix some "i.e." and "e.g." usages.
6254         Try to avoid "X/Y" usages.
6255         Don't be pedantic about "ISO C99"; just say C99.
6256         Prefer GNU style for spaces in front of parens.
6257         (Function Portability): Comment about C89 versus C99
6258         signed integer division.
6259         (Particular Headers): Use current gnulib style for dirent
6260         includes.
6262 2006-02-14  Stepan Kasal  <kasal@ucw.cz>
6263         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6265         * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
6266         macros without parameters.
6267         * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
6268         * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
6269         * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
6270         `$#' bug.
6271         (autoupdate): Updated to match AU_ALIAS fix.
6273 2006-02-13 Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6274         and Paul Eggert  <eggert@cs.ucla.edu>
6276         * doc/autoconf.texi (Programming in M4sh): Document
6277         AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
6279 2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6281         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
6282         (AS_BOURNE_COMPATIBLE): ..this.
6283         (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
6285 2006-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6287         * doc/install.texi (Defining Variables): Tighten up the
6288         CONFIG_SHELL wording.
6290 2006-02-12 Paul Eggert  <eggert@cs.ucla.edu>
6291         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6293         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
6294         of (set -o) rather than testing whether (set -o posix) succeeds,
6295         to work around a bug in the AIX 5.3 shell.  Problem originally
6296         reportd by Howard Chu for libtool.
6298 2006-02-10  J.T. Conklin  <jtc@acorntoolworks.com>
6300         * doc/autoconf.texi (Running the Compiler, Running the Linker):
6301         Changes the macro arguments in summaries to match the
6302         descriptions.
6304 2006-02-04  Stepan Kasal  <kasal@ucw.cz>
6306         * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
6307         hint as ``a workaround for a bug.''
6309 2006-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6311         * bin/autoreconf.in: New option `--no-recursive'.
6312         Improve wording for subpackages a bit.
6313         * doc/autoconf.texi (autoreconf Invocation): Updated.
6314         * NEWS: Updated.
6316         * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
6317         in environment of `configure', not the command line.
6318         Reported by Howard Chu <hyc@highlandsun.com>.
6320 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
6322         * doc/autoconf.texi (Limitations of Builtins): Document the
6323         problem with "trap -".
6325 2006-01-23  Steven G. Johnson  <stevenj@fftw.org>
6327         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
6328         (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
6329         messages to differentiate Fortran and Fortran 77 tests.
6330         (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
6331         AC_LANG_ASSERT, to allow use in mixed-language projects.
6333 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6335         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
6336         FOO" to "defined (FOO)".
6337         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
6338         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
6339         * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
6340         * tests/tools.at (ifnames): Likewise.
6342 2006-01-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6344         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
6345         * lib/Autom4te/General.pm (mktmpdir): Likewise.
6346         (END): Improve error message a bit.
6347         Reported by Bruce Korb <bkorb@gnu.org>.
6349 2006-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6351         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
6352         `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
6354 2006-01-11  Stepan Kasal  <kasal@ucw.cz>
6356         * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
6357         requires sys/stream.h.  Reported by Oliver Kiddle.
6359 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6360             Stepan Kasal  <kasal@ucw.cz>
6362         * lib/autotest/general.m4 (AT_INIT): When ensuring writability
6363         before the removals of test dirs, use `find' to avoid modification
6364         of symlinked directories.
6366 2006-01-11  Steven G. Johnson  <stevenj@alum.mit.edu>
6368         * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
6369         Don't ignore the macro arguments.
6371 2006-01-11  David Thompson  <dthompsn@vizsolutions.com>
6373         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
6374         declaration that works for MSVC.
6376 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6378         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
6379         Add `*.map' and `.inf' for Green Hills compiler.
6380         Reported by Stefan Seefeld <stefan@codesourcery.com>.
6382         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
6383         correctly: pad with spaces after FIRST_PREFIX if necessary,
6384         and compute string lenghts with `m4_qlen' instead of `m4_len'.
6385         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
6386         * tests/m4sh.at (AS_HELP_STRING): Test extended.
6387         * NEWS: Updated.
6388         Reported by numerous people, numerous times.
6390 2006-01-05  Paul Eggert  <eggert@cs.ucla.edu>
6392         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
6393         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
6394         * lib/autoconf/general.m4, lib/autoconf/status.m4:
6395         * lib/autotest/general.m4, tests/local.at:
6396         Update copyright year to 2006.
6398         * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
6399         sed substitutions.
6400         * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
6401         for file names, again.  Reported by Noah Misch.
6402         (Coding Style): Explain that s|a|b| is preferred for file names.
6403         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
6404         (AC_OUTPUT_MAKE_DEFS): Likewise.
6405         * lib/autotest/general.m4 (AT_INIT): Likewise.
6406         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
6407         * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
6409         Fix Posix-conformance bugs re use of { command in sed scripts,
6410         and improve the sed-related documentation a bit.
6411         * doc/autoconf.texi (Installation Directory Variables): Use
6412         our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
6413         rather than "sed" when talking about Sed in general.
6414         (Particular Programs): Likewise.
6415         (Coding Style): y is like s with respect to / and ,.
6416         (Limitations of Usual Tools): Document the weird restrictions
6417         that Posix has about { }.  Use better quoting.
6418         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
6419         Rewrite to conform to Posix rules about { } in sed scripts.
6420         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
6421         * tests/foreign.at (Libtool): Likewise.
6422         * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
6423         Use our own style advice re 's,a,b,' versus 's|a|b|'.
6425 2006-01-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6427         * lib/autoconf/status.m4: Fix typo.
6429         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
6430         singly- or doubly-quoted arguments to `-cmdline', `-ignore',
6431         `-def', for the benefit of Portland `pgf90 -Mipa'.
6432         Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
6434 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
6436         * doc/autoconf.texi: Update copyright (and other) dates to 2006.
6437         * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
6438         shell from zsh to bash.
6440 2005-12-31  Stepan Kasal  <kasal@ucw.cz>
6442         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
6443           ":" caused problems on OS/2-EMX.  Suggested by Andrew Belov.
6445 2005-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6447         * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
6448         parentheses in $(...).  Problem reported by Eric Blake.
6450 2005-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6452         * doc/autoconf.texi (Limitations of Usual Tools):
6453         Mention which characters can be escaped with \ in portable regular
6454         expressions used in grep, sed, expr.  Mention the leading ^ problem
6455         with expr.  Clean up some confusing wording.  Mention which
6456         grep options are portable.
6458 2005-12-09  Stepan Kasal  <kasal@ucw.cz>
6460         * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
6462 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
6464         * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
6465         patch, noted by Ralf Wildenhues.
6467 2005-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6469         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
6470         posix' unconditionally, for pdksh in `native sh' emulation.
6472 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
6474         * doc/autoconf.texi (Shellology): Document eval $? problem
6475         with ash.
6476         (Limitations of Builtins): Likewise.
6478 2005-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6480         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
6481         CONFIG_SHELL in the environment of the configure rerun.
6482         * doc/autoconf.texi (Here-Documents, config.status Invocation):
6483         Suggest passing CONFIG_SHELL absolute, and in the environment
6484         rather than as option.
6486 2005-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6488         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
6489         Fix quoting of output line (triggered for many AC_SUBST_FILEs).
6490         Fix macro quoting.  Fix output for n * 98 substituted variables.
6492 2005-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6494         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
6495         `tmp' to avoid file removal race.
6497 2005-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6499         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
6500         ac_clean_files and LIBOBJS.
6502 2005-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6504         * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
6505         Factor functionality to..
6506         (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
6507         `AC_SUBST($1)' in the public version.
6508         (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
6509         (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
6510         ac_pt_* variables.
6512 2005-11-01  Stepan Kasal  <kasal@ucw.cz>
6514         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
6515         filesystems.
6517 2005-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6519         * NEWS: Move AH_HEADER mention to right place.
6521 2005-10-27  Stepan Kasal  <kasal@ucw.cz>
6523         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
6524         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
6526 2005-10-25  Stepan Kasal  <kasal@ucw.cz>
6528         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
6529         conftst2.$ac_objext.
6530         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
6532 2005-10-24  Stepan Kasal  <kasal@ucw.cz>
6534         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
6535         conftest.o, to see whether the compiler really obeys; rm the object
6536         file before and after the test and register it with ac_clean_files.
6537         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
6539 2005-10-21  Stepan Kasal  <kasal@ucw.cz>
6541         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
6542         the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
6543         code so that the most common case requires less forks.
6545 2005-10-20  Stepan Kasal  <kasal@ucw.cz>
6547         * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
6548         not portable; thanks to Paul Eggert and Alexandre.
6550         * NEWS: Fix an old typo.
6552 2005-10-20  Jim Meyering  <jim@meyering.net>
6554         * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
6555         the latter'', in two places.
6557 2005-10-19  Paul Eggert  <eggert@cs.ucla.edu>
6559         * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
6560         AC_LANG_PROGRAM, fixing a typo.  Don't give details about
6561         the inner workings of AC_LANG_FUNC_LINK_TRY.
6562         * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
6563         AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
6564         by the function rather than ignoring it.
6565         (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
6566         comparing its address.  Intel's interprocedural optimization was
6567         outsmarting the old heuristic.  Problem reported by
6568         Mikulas Patocka.
6570 2005-10-19  Stepan Kasal  <kasal@ucw.cz>
6572         * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
6574 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
6576         * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
6577         (m4_map, m4_map_sep): Use it.  Handle the empty list correctly.
6579 2005-10-04  Stepan Kasal  <kasal@ucw.cz>
6581         * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
6582         before removing it (chmod -R u+rwx); there are three instances of this.
6584 2005-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6585             Stepan Kasal  <kasal@ucw.cz>
6587         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
6588         * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
6589         make its content writable before removing it.  Remove an errorneous
6590         comment from the end, where the logs of the failed tests are copied
6591         to the main log file.
6593 2005-09-27  Stepan Kasal  <kasal@ucw.cz>
6595         * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
6596           in case the computer is too quick.  Double quote the configure.ac
6597           snippets.
6599         * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
6600           problems if the testsuite were running too fast.
6602 2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
6604         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
6605         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
6606         (which belong to Xt, not X itself).  See Debian bug 327655.
6607         * NEWS: Mention this.
6609 2005-09-07  Stepan Kasal  <kasal@ucw.cz>
6611         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
6613 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
6615         * config/move-if-change: Don't output "$2 is unchanged";
6616         suggested by Ben Elliston.  Handle weird characters correctly.
6618 2005-09-06  Stepan Kasal  <kasal@ucw.cz>
6620         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
6621           calls, so that the final expansion of this macro is shorter.
6622           Create the conftest.$ac_ext outside the `for' loop, to speed the run.
6623           Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
6624           the cleanup there.  Use AS_VAR_* macros, to be more general.
6625         * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
6627         * lib/autoconf/general.m4: Use AS_IF where appropriate.
6629         * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
6631 2005-09-01  Stepan Kasal  <kasal@ucw.cz>
6633         * doc/autoconf.texi (Configuration Headers): Add an index entry
6634           for AH_HEADER.
6636 2005-08-26  Pavel Roskin  <proski@gnu.org>
6638         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
6639         XMKMF to locate xmkmf.  Make XMKMF precious.  Export CC when
6640         running xmkmf.
6642 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
6644         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
6645         The previous patch didn't work, so try a better one.
6647 2005-08-26  Stepan Kasal  <kasal@ucw.cz>
6649         * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
6650         in the example.  Reported by Bruno Haible.
6651         <AS_TR_SH>: Likewise.  Also modify the example to be more convincing:
6652         "if $undefined_var;" succeeds with my shell.
6654         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
6655         AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
6656         but change the m4_divert_text to m4_divert_once.
6658 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
6660         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
6661         Work around bug in Solaris /usr/xpg4/bin/awk.
6662         The bug is present in at least Solaris 8 through 10.
6664 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
6666         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
6667         some evil values and relying on the fact that $* concatenates the
6668         parameters by the first character from IFS.
6670 2005-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
6671             Stepan Kasal  <kasal@ucw.cz>
6673         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
6674         first header appears, define AH_HEADER.
6675         * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
6676         Update limitations about when to call AC_CONFIG_HEADERS.
6677         (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
6678         parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
6679         that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
6680         ``Configuration Actions''; fix their index entries.
6682         * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
6683         options correctly.  Process N-M as M-N if M is smaller than N.
6684         Process ranges correctly so that N-N will run only N.
6685         Sort and uniquify the tests that will be run.  If there is more
6686         than one test, reinsert the banners for the tests.
6687         * tests/autotest.at (Keywords): Unmark XFAIL.
6689 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
6691         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
6692           before passing the macro name to AH_TEMPLATE.
6694         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
6695           now opens log after option processing; in particular, --version
6696           and --help do not touch config.log.
6698         * Makefile.maint: Revert the change from 2005-08-12.
6700 2005-08-22  Stepan Kasal  <kasal@ucw.cz>
6702         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
6703           common code to...
6704         (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
6706 2005-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6708         * doc/autoconf.texi (Using Autotest, testsuite Scripts)
6709         (Autotest Logs, Writing testsuite.at, testsuite Invocation):
6710         Language cleanup.
6712         * doc/autoconf.texi (Defining Symbols, Changed Results):
6713         Prepend to LIBS, not append, in examples.
6715 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
6717         When building in place, set srcdir="."; suggested by Tim Van Holder.
6719         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
6720           build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
6721         (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
6722         * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
6723           does not mean "no --srcdir option".
6725 2005-08-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6727         * tests/autoscan.at (autoscan): New file.
6728         * tests/suite.at: Use it.
6729         * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
6730         Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
6732         * tests/autotest.at (Keywords): Test keywords combinations.
6734 2005-08-12  Stepan Kasal  <kasal@ucw.cz>
6736         * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
6737           add "2>&1"; gzip 1.2.4 prints help on stderr.
6739 2005-07-27  Stepan Kasal  <kasal@ucw.cz>
6741         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
6742         was pushdef'ed twice while popped only once.  Push it only once.
6743         (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
6745 2005-07-26  Stepan Kasal  <kasal@ucw.cz>
6747         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
6748         prefixed by mere "===", not "configure: === ".
6750 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6752         * Makefile.maint: Update from Bison.
6754         * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
6755         "<tab>" in comment, so that the point is understandable.
6757 2005-07-25  Stepan Kasal  <kasal@ucw.cz>
6759         Rewrite substantial part of lib/autoconf/status.m4.
6760         The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
6761         and CONFIG_COMMANDS are not processed in four separate loops.
6762         Instead, there is one main loop.  This alows that the common code
6763         is expanded only once, thus config.status (and configure) is smaller.
6765         The registration mechnism in AC_CONFIG_FILES and cousins also changed;
6766         the AC_LIST_FILES and cousins macros are no longer used.
6768         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
6769         _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
6770         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
6771         _AC_OUTPUT_COMMAND): ..., respectively.  These macros no longer
6772         contain the initialization, nor the for loop, nor the associated
6773         commands; all these go to ...
6774         (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
6775         _AC_OUTPUT_CONFIG_STATUS.
6776         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
6777         Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
6778         (_AC_OUTPUT_FILE): The creation of the sed script ...
6779         (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
6780         (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
6781         _AC_OUTPUT_MAIN_LOOP.
6782         (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
6783         _AC_CONFIG_COMMANDS): Use ...
6784         (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
6785         (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
6786         (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
6787         _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
6788         (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
6789         (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
6790         ... new macros.
6791         (_AC_CONFIG_UNIQUE): Update.
6792         (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
6793         Replaced by this ...
6794         (_AC_LIST_TAGS): ... new common macro.
6795         (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
6796         AC_LIST_COMMAND_COMMANDS): Replaced by this ...
6797         (_AC_LIST_TAG_COMMANDS): ... new common macro.
6798         (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
6799         this didn't belong to the `config commands' section.
6800         (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
6801         (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
6802         AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
6803         to the `config commands' section either.
6804         (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
6805         (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
6807         ... and many changes to the comments nearby.
6809         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
6810         set ac_subdirs_all='_AC_LIST_SUBDIRS'.
6811         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
6812         AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
6813         (#define header templates): The comment at the top of the generated
6814         header now includes the name(s) of the source file(s).
6816         Several unrelated small changes:
6818         * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
6819         parameter to AC_DIAGNOSE.
6820         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
6821         (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
6822         with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
6823         (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
6824         with AU::AC_OUTPUT.
6825         (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
6826         in AC_OUTPUT doesn't double-quote it either.
6827         * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
6828         parameters.
6830 2005-07-10  Stepan Kasal  <kasal@ucw.cz>
6832         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
6833         versions of Portland Group compiler produce single- and double-quoted
6834         -cmdline argument.  Reported by Steven G. Johnson <stevenj@fftw.org>
6835         and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
6837 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
6839         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
6840         This is a corrected version of yesterday's patch.
6842 2005-07-07  Stepan Kasal  <kasal@ucw.cz>
6844         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
6845         path, too; insert a "===" to emphasize the line.
6847         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
6848           ac_cv_build_alias to ac_build_alias.
6849         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
6851         On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
6852         change eliminates it.  Problem reported by Alexandre Duret-Lutz.
6853         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
6854         (AC_ARG_VAR): ... here.
6855         (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
6856           target_alias.
6858         Keep a list of all precious variables and process them with one simple
6859         for loop, instead of expanding all commands, or, OTOH, complicated
6860         processing of output of "set".
6861         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
6862         variable names in new macro...
6863         (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
6864         (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
6865           a loop to assign all ac_env_* and ac_cv_env_* variables.
6866         (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
6867           to INIT_PREPARE.
6868         (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
6869           its value to shell variable ac_precious_vars and call
6870           _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
6871         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
6872           _AC_ARG_VAR_VALIDATE.
6874         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
6875           and the AC_SUBSTs ...
6876         (AC_INIT): ... here.
6878         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
6879           the ac_subst_files section in config.log.
6881         * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
6883 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6885         * NEWS: New macro AC_C_TYPEOF.
6886         * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
6887         * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
6888         * tests/c.at (C keywords): Test AC_C_TYPEOF.
6890         Fix problems reported by Nicolas Joly.
6891         * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
6892         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
6893         They are generated by the Tru64 v5.1B shell.
6895 2005-07-05  Stepan Kasal  <kasal@ucw.cz>
6897         Fix my changes from 2005-07-01; reported by Noah Misch.
6898         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
6899         description, the macro now accepts only a single tag.
6900         (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
6902         Fix cases when the varsions of Autoconf and Autotest don't match.
6903         Reported by Noah Misch.
6904         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
6905         at_top_builddir, for compatibility with older autotest.
6906         * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
6907         is not set, use at_top_builddir, for compatibility with older
6908         versions of autoconf.
6910 2005-07-04  Paul Eggert  <eggert@cs.ucla.edu>
6912         * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
6913         Problem reported by Patrick Welche.
6915 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
6917         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
6918         sed substitution command, so that we allow | in program prefixes
6919         and program suffixes.  (& is a problem anyway; we're not fixing
6920         that here.)
6921         * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
6922         configure_input, top_builddir, srcdir, etc.
6923         * lib/autotest/general.m4 (AT_INIT): Likewise, for
6924         PATH_SEPARATOR in AUTOTEST_PATH.
6926 2005-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
6928         * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
6929         for loop over config.site files using `set', to allow
6930         directory names containing IFS characters.
6932 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
6934         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
6935         directories with weird names.  Apparently some people like living
6936         on the edge.  However, improve the test that "pwd" actually does
6937         report a name for the working directory.
6938         * NEWS: Remove the claim that we test for funny chars in dir names.
6940 2005-07-01  Stepan Kasal  <kasal@ucw.cz>
6942         * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
6943         replaced ...
6944         * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
6945         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
6946         Now accept a single tag, not whitespace separated list.
6947         (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
6949 2005-06-30  Stepan Kasal  <kasal@ucw.cz>
6951         * doc/autoconf.texi (Configuration Headers): Change the explanation
6952         about #include <config.h>.
6953         (Generic Functions): Mention the Gnulib project.
6954         (Limitations of Usual Tools) <sed>: Another minor rephrasing.
6956         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
6957         document to output the default config_* lists to config.status.
6958         Don't recognize option --file, if the functionality is not there.
6959         Likewise for --header; moreover, recognize --he and --h as shortcuts
6960         for --help in that case.
6962         * lib/autoconf/status.m4: Fix the order of the "sections", so that it
6963         matches the order of execution.  No code changed.
6965 2005-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6967         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
6968         single-quoted -cmdline argument in Portland Group compiler.
6969         Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
6971 2005-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
6973         * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
6975 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
6977         * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
6978         descriptors to child processes; reported by Norman Gray.
6980 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
6982         * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
6984         * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
6985         instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
6986         (AC_SUBST): Call it.
6987         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
6988         the directory specific variables; but don't call it for configure_input.
6990 2005-06-28  Derek Price  <derek@ximbiot.com>
6992         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
6993         addition.
6995 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
6997         * NEWS: Don't worry about spaces in bindir etc.  Only srcdir and working
6998         directory have inherent problems with special characters like spaces,
6999         due to limitations in Make syntax.  Problem reported by Alexandre
7000         Duret-Lutz.
7001         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
7002         Also, fix Tru64 porting problem with shell patterns,
7003         reported by Ralf Wildenhues.
7005 2005-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7007         * doc/autoconf.texi (Subdirectories): Fix markup typos.
7009 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
7011         * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
7013         Fix some more shell quoting problems.  Prompted by a bug report
7014         from Justace Clutter.
7015         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
7016         variable into diagnostic.  Make the diagnostic an error, not a warning,
7017         because we really don't support spaces and suchlike in dir names.
7018         (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
7019         Don't worry about backslashes in srcdir; it can't happen now.
7020         (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
7021         Simplify ac_optarg handling.
7022         (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
7024 2005-06-22  Stepan Kasal  <kasal@ucw.cz>
7026         Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
7027         * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
7028         * tests/atlocal.in: Propagate $EGREP and $SED.
7029         * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
7030         (AT_CONFIG_CMP): Use sed instead of grep plumbing.
7032         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
7033         that '\|' is not allowed in BREs; recommend using newline separated
7034         list of patterns instead of multiple -e options.
7036         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
7038         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
7040 2005-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7042         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
7044 2005-06-21  Stepan Kasal  <kasal@ucw.cz>
7046         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
7047         b, t, r, w commands require single space, while : cannot have any.
7048         (Special Shell Variables): Fix sed code this in the example.
7049         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
7050         * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
7052         * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
7053         expand to the empty list.  Don't use two pairs of m4_changequote,
7054         it's not necessary.
7056 2005-06-20  Derek Price  <derek@ximbiot.com>
7058         * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
7060 2005-06-17  Paul Eggert  <eggert@cs.ucla.edu>
7062         * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
7063         * doc/autoconf.texi:
7064         Don't mention Solaris versions so much, if a
7065         problem is common to all extant versions of Solaris.  Say "SunOS
7066         4" instead of "SunOS" for SunOS 4.
7067         (awk): Mention more of the limitations of traditional Awk.
7068         (cat): Don't talk about cat -v.
7070 2005-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7072         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
7073         (AS_VERSION_COMPARE): New macro.  The API is taken from CVS,
7074         but the implementation is entirely different and is designed
7075         to be compatible with glibc strverscmp.
7076         * tests/m4sh.at (AS_VERSION_COMPARE): New test.
7078         * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
7079         on Mac OS X 10.4 reported by Peter O'Gorman in:
7080         http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
7081         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
7082         Use shell builtins rather than 'expr', to work around expr bug.
7084 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
7086         * doc/autoconf.texi: "filesystem" -> "file system".
7087         "behaviour" -> "behavior".
7088         Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
7089         * lib/autoconf/general.m4: Omit blank after ":" sed command,
7090         as per POSIX.
7091         * lib/m4sugar/m4sh.m4: Likewise.
7092         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
7093         with Solaris sed.  Fix by Ralf Menzel and Stepan Kasal.
7095         * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
7096         (.x.1): Ignore the time stamp in the .TH line when deciding whether
7097         to update the man page.  That way, we don't have to check in new
7098         man pages every month.
7100         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
7101         quotes and backslashes.  Patch from Derek Price.
7103 2005-06-10  Derek Price  <derek@ximbiot.com>
7105         * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
7106         AS_TR_SH.
7108 2005-06-08  Paul Eggert  <eggert@cs.ucla.edu>
7110         * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
7111         -u, since it outputs chatter if the input files are the same.
7112         Problem reported by Ralf Menzel.
7114 2005-06-08  Derek Price  <derek@ximbiot.com>
7116         * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
7117         renaming them since they are about to be redefined anyhow.
7119 2005-06-08  Derek Price  <derek@ximbiot.com>
7121         * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
7122         redefined M4 macros to this node.  Document m4_include & m4_sinclude.
7123         Move m4_undefine to alphabetical order.
7125 2005-06-07  Paul Eggert  <eggert@cs.ucla.edu>
7127         * README: Recommend GNU M4 1.4.3 or later.
7128         * doc/autoconf.texi (Introduction): Likewise.
7129         Reword to avoid some formatting glitches.
7130         Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
7131         Clarify explanation of HP compiler bug.
7132         Redo example output tp match current CVS snapshot.
7133         Use @example.org in email addresses when the examples
7134         might get inadvertently cut-and-pasted into user code.
7135         Remove example of autom4te usage that doesn't seem to work now.
7136         Use modern AC_INIT (except when the example is meant to be
7137         shown with Autoconf 2.13).
7138         Update ksh info for Solaris 9 and later.
7139         KB -> kB.
7140         Modernize description of Automake versions a bit.
7141         Don't claim a future version of Autoconf is near.
7142         * doc/install.texi: Reword to avoid some formatting glitches.
7144 2005-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7146         * doc/autoconf.texi: Add [] to examples, so that the manual
7147         follows its own advice about quoting better.
7148         Reword to avoid some formatting glitches.
7149         * doc/installt.exi: Reword to avoid some formatting glitches.
7151         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
7152         Tru64 ksh pattern matching bug.  Reported against Libtool by
7153         Albert Chin <libtool@mlists.thewrittenword.com> and
7154         Nicolas Joly <njoly@pasteur.fr>.
7156 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
7158         m4_cdr of one-member list was [[]] (one-member list containing an
7159         empty string) instead of [] (an empty list.  Callers were skewed to
7160         match this misbehaviour.  As a consequence of this:
7161          - m4_foreach([x], [], [foo]) expanded to `foo', while
7162          - the expansion of m4_foreach([x], [[]], [foo]) was empty.
7163         This bug has been fixed:
7165         * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
7166           expand to an empty string; print error msg if called without
7167           an argument list.
7168         (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
7169           misbehaviour; handle [] and [[]] correctly.
7171 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
7173         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
7174         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
7175           scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
7177 2005-06-06  Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>  (trivial change)
7179         * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
7180           swallow records with more than 99 fields.
7181         * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
7182           parse the long line.
7184 2005-06-04  Stepan Kasal  <kasal@ucw.cz>
7186         * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
7187           swallow literals longer than 399.  Reported by Ralf Wildenhues.
7188         * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
7189           to workaround this limitation.
7191 2005-06-03  Steven G. Johnson  <stevenj@alum.mit.edu>
7193         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
7194         to gfortran, and make these the first two compiler names
7195         checked (following the general autoconf preference for gcc).
7197 2005-06-03  Stepan Kasal  <kasal@ucw.cz>
7199         * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
7200         (DISTCLEANFILES): Remove $(check_SCRIPTS).
7201         (testsuite): Make sure autotest.m4f is up-to-date before using it.
7203 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
7205         * lib/autotest/general.m4 (AT_INIT): Don't create a regular
7206         expression of unbounded size when processing the --list
7207         option.  This runs afoul of a limit of 399 bytes per regular
7208         expression on AIX.  Problem reported by Ralf Wildenhues.
7210 2005-06-01  Paul Eggert  <eggert@cs.ucla.edu>
7212         * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
7213         * doc/autoconf.texi (Particular Headers): Reword example
7214         for multiline stdbool replacement.
7215         (Setting Output Variables): Reword text a bit.  Don't
7216         give all the details about |#_!!_#|.
7217         Reword description of line replacement.
7219 2005-05-31  Dan Manthey  <dan_manthey@partech.com>
7221         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
7222         now contain newlines, and substituted files must be referenced on
7223         a line alone; the sed scripts to substitute them are now very
7224         different.
7225         (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
7226         commands can be put in a sed script portably.
7227         * doc/autoconf.texi (Setting Output Variables): Document above
7228         changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
7229         use of multiline substitution.
7230         * tests/torture.at: No longer expect substitution of newline to fail.
7232 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
7234         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
7235         From Ralf Menzel (trivial change).
7237 2005-05-25  Paul Eggert  <eggert@cs.ucla.edu>
7239         * tests/local.at: Don't attempt to check for negated character
7240         classes in shell scripts.  The test was too brittle.
7242 2005-05-25  Stepan Kasal  <kasal@ucw.cz>
7244         * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
7245         * doc/autoconf.texi (Limitations of Builtins): Document this
7246           limitation.
7248 2005-05-24  Stepan Kasal  <kasal@ucw.cz>
7250         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
7251           common code; used in many places in the tree.
7252         (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
7253         (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
7255         * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
7257         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
7258           messages when ac_unique_file is not found.
7259         (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
7260         (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
7261           commands, for consistency with AC_MSG_ERROR and such.
7263         * bin/autoconf.as: Make more use of "shift 2" in option processing.
7265         * bin/Makefile.am: Merge the two rules for creating scripts.
7267 2005-05-23  Stepan Kasal  <kasal@ucw.cz>
7269         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
7270         obsolete; it was never documented.
7271         (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
7273 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
7275         * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
7276         * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
7277         (ac_top_builddir): ... this ...
7278         (ac_top_build_prefix): ... to this; the old name is also kept, for
7279           backward compatibility.
7280         (ac_top_builddir_sub): New variable, without the trailing slash,
7281           always nonempty.
7282         (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
7283         * doc/autoconf.texi (Configuration Actions): Rename
7284           ac_top_builddir to ac_top_build_prefix.
7285         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
7286           at_top_builddir to at_top_build_prefix.
7287         * lib/autotest/general.m4 (AT_INIT): Likewise.
7289 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
7291         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
7292           of confdefs.h .
7294 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
7296         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
7297           argument to m4_foreach.  I guess it was necessary in the past,
7298           but I think it's a no-op now.
7300 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
7302         * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
7303           ``cat <<_ACEOF'' commands to one.
7304         (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
7305         * lib/autoconf/status.m4: On various places, use expr instead of
7306           ``echo|sed.''
7307         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
7308         (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
7309         * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
7310           a range.
7311         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
7312           the wrong patterns between ``case'' and ``esac.''  The previous
7313           code had false positives.
7315 2005-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
7317         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
7318         as on 2005-05-02.
7319         * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
7320         Mention LIBOBJDIR.
7322 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
7324         * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
7325         ChangeLog.2, GNUmakefile, Makefile.am, Makefile.cfg,
7326         Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
7327         bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
7328         bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
7329         bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
7330         config/config.guess, config/config.sub, config/elisp-comp,
7331         config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
7332         doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
7333         lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
7334         lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
7335         lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
7336         lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
7337         lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
7338         lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
7339         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
7340         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
7341         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
7342         lib/autoconf/general.m4, lib/autoconf/headers.m4,
7343         lib/autoconf/lang.m4, lib/autoconf/libs.m4,
7344         lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
7345         lib/autoconf/specific.m4, lib/autoconf/status.m4,
7346         lib/autoconf/types.m4, lib/autoscan/Makefile.am,
7347         lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
7348         lib/autotest/Makefile.am, lib/autotest/autotest.m4,
7349         lib/autotest/general.m4, lib/emacs/Makefile.am,
7350         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
7351         lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
7352         lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
7353         tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
7354         tests/compile.at, tests/foreign.at, tests/fortran.at,
7355         tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
7356         tests/semantics.at, tests/suite.at, tests/tools.at,
7357         tests/torture.at, tests/wrapper.as:
7358         Update FSF postal mail address.
7360 2005-05-13  Stepan Kasal  <kasal@ucw.cz>
7362         * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
7363           check.
7364         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
7365           enough arguments, similarly as in m4_bpatsubsts.
7367 2005-05-12  Stepan Kasal  <kasal@ucw.cz>
7369         * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
7370           of absolute paths.
7372 2005-05-11  Stepan Kasal  <kasal@ucw.cz>
7374         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
7375           for absolute directory names in one loop.
7376         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
7377           abbreviations of --version and --debug.
7379 2005-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7381         * doc/autoconf.texi (Autoconf Language): Be more precise about
7382         quoting rules.  Problems noted by Stepan Kasal.
7383         Also, throughout this document, be more careful about white space.
7384         "blank", "white space", and "space" all have different meanings
7385         and we should be careful to say what we mean.
7387 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7389         Fix C++ related problems reported by Werner Lemberg.
7390         * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
7391         * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
7392         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
7393         avoid problems with C++ and throw.
7394         * tests/compile.at: .cpp, not .cc.
7396         * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
7398 2005-05-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7400         * doc/autoconf.texi (Generic Functions): Typos.
7402 2005-05-02  Gary V. Vaughan  <gary@gnu.org>
7404         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
7405         object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
7406         set by latest automake.
7408 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
7410         * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
7411         outputs 0 on GNU/Linux these days.
7413 2005-04-29  Paul Eggert  <eggert@cs.ucla.edu>
7415         * doc/autoconf.texi (Autoconf Language): Add more description
7416         about quoting heuristics.
7417         (Limitations of Builtins): Describe "set -" problems.
7419 2005-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7421         * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
7422         not newline.
7424         * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
7425         by AC_DEFINE; it was a mistake.
7426         From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
7428 2005-04-25  Stepan Kasal  <kasal@ucw.cz>
7430         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
7432 2005-04-22  Stepan Kasal  <kasal@ucw.cz>
7434         * doc/autoconf.texi (External Software): Quadrigraphs are not
7435           processed correctly in AS_HELP_STRING; avoid this in the examples.
7436         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
7437         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
7438           comment and reduce m4_default([foo], []) to [foo].
7439         (m4_strip): Update the explanation.
7441 2005-04-19  Paul Eggert  <eggert@cs.ucla.edu>
7443         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
7444         Remove core.conftest.* too; it's generated by Tru64 5.1.
7445         Problem reported by Jennis Pruett.
7446         * lib/autoconf/functions.m4
7447         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
7448         Don't bother to remove core files; AC_RUN_IFELSE should do that
7449         for you.
7451 2005-04-19  Stepan Kasal  <kasal@ucw.cz>
7453         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
7455 2005-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
7457         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
7458         Report from Horst Wente.
7460 2005-04-15  Stepan Kasal  <kasal@ucw.cz>
7462         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
7463           the comment.
7465 2005-04-14  Gregorio Guidi  <greg_g@gentoo.org>
7467         * doc/autoconf.texi (External Software, Package Options): Add
7468           examples showing how to implement --with-* and --enable-* options.
7470 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
7472         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
7473         as well as configure.in.  Problem reported by Gregorio Guidi.
7475 2005-04-10  Paul Eggert  <eggert@cs.ucla.edu>
7477         * doc/autoconf.texi (Particular Functions): Use gnulib's current
7478         pattern for alloca snippet.
7480 2005-04-04  Stepan Kasal  <kasal@ucw.cz>
7482         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
7484 2005-04-01  Stepan Kasal  <kasal@ucw.cz>
7486         * doc/autoconf.texi (Generic Programs): Fix a typo.
7488 2005-04-01  Paul Eggert  <eggert@cs.ucla.edu>
7490         * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
7491         fails if %s isn't supported.  Problem reported by Ralf Wildenhues.
7493 2005-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7495         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
7496         Merge `-z option' as well for the benefit of Solaris link flags.  Pass
7497         whole-archive (-zallextract, -zdefaultextract) options in the hope of
7498         unique libraries, for the Sun Fortran 95 8.0 compiler.  Bug reported
7499         against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
7501 2005-03-22  Paul Eggert  <eggert@cs.ucla.edu>
7503         * NEWS: The configure command now warns you if you attempt to use
7504         a directory whose name contains a special character like space,
7505         newline, or "\".
7506         * doc/autoconf.texi (Installation Directory Variables): Allow
7507         "," in file names.  Do not use \@; it's not a portable regexp.
7508         * bin/Makefile.am (edit): Likewise.
7509         * lib/Makefile.am (edit): Likewise.
7510         * tests/Makefile.am (edit): Likewise.
7511         * tests/semantics.at: Likewise.
7512         * tests/torture.at: Likewise.
7513         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
7514         * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
7515         * doc/autoconf.texi (File System Conventions): Warn about
7516         unportable file names.
7517         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
7518         (AC_INIT): Use it.
7519         (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
7520         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
7521         ac_pwd, and quote srcdir.
7522         * lib/autotest/general.m4 (AT_INIT): Quote file name args.
7524         * doc/autoconf.texi: Fix some systematic formatting problems.
7525         ".)"  needs a following @: if not at the end of a sentence, and
7526         similarly for "!)".  "etc." should be preceded by a comma.
7527         "n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
7529 2005-03-22  Bruno Haible  <bruno@clisp.org>
7531         * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
7532         argument is often called 'build-aux'.
7534 2005-03-07  Stepan Kasal  <kasal@ucw.cz>
7536         * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
7537           macro AC_TRY_LINK is obsolete.
7538         (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
7539           `AC_CONFIG_FILES'.
7541 2005-02-24  Stepan Kasal  <kasal@ucw.cz>
7543         * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
7544           `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
7545           from a Common Lisp's `cl'.
7546         (AC_PROG_CXX): Behave according to the documentation: don't
7547           search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
7548           make the variable CCC precious; use `cl.exe', not `cl'.
7550 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
7551             Alexandre Duret-Lutz  <adl@gnu.org>
7553         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
7554         /dev/null, as "configure" shouldn't read stdin, and this insulates
7555         us from problems (e.g., when testing for "cl").  Also, do this
7556         redirection before invoking "hostname" or "uname", and keep the
7557         original input stream available via...
7558         (AS_ORIGINAL_STDIN_FD): ... this new macro.
7559         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
7560         bother with "</dev/null" since it's now done at the top of
7561         'configure'.
7562         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
7563         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
7564         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
7565         * doc/autoconf.texi (File Descriptor Macros): New section.
7566         (Printing Messages): Mention it.
7567         * tests/base.at (Input/Output): New test.
7569 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
7571         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
7572         newline if neither \c nor -n work, as that would output two
7573         newlines.  Prefer -n to \c.  Reported by Stepan Kasal.
7575 2005-02-12  Stepan Kasal  <kasal@ucw.cz>
7577         * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
7578         This causes that any required macros inside will get before the if.
7579         * doc/autoconf.texi (autom4te.cache): A typo.
7581 2005-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7583         Undo previous change, except keep the change to
7584         lib/autoconf/programs.m4 that replaced grep with shell
7585         pattern-matching.  This is because net-snmp configure reads stdin.
7586         Reported by Noah Misch.
7588 2005-02-11  Paul Eggert  <eggert@cs.ucla.edu>
7590         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
7591         from /dev/null, as "configure" shouldn't read stdin, and this
7592         insulates us from problems (e.g., when testing for "cl").
7593         Suggested by Alexandre Duret-Lutz.  Also, do this redirection
7594         before invoking "hostname" or "uname".
7595         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
7596         _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
7597         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
7598         "</dev/null" since it's now done at the top of 'configure'.
7599         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
7600         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
7601         Also, replace grep with shell pattern-matching, to save a process.
7603 2005-02-10  Paul Eggert  <eggert@cs.ucla.edu>
7605         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
7606         _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
7607         avoid thinking that Allegro Common Lisp's "cl" command is a C++
7608         compiler.
7610 2005-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7612         * doc/autoconf.texi (Limitations of Usual Tools): Document that
7613         grep -q isn't portable.  Improve grep -s explanation.
7614         Problem reported by Dan Manthey.
7616 2005-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7618         * doc/autoconf.texi (Special Shell Variables): Clarify
7619         PATH_SEPARATOR wording; fix typo in IFS.  Reported by Gary V. Vaughan.
7621 2005-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7623         * doc/autoconf.texi: Use @acronym for DJGPP.
7624         Fix some @code's that should have been @env's, and vice versa.
7625         Sort environment variable names.
7626         Mention that shells no longer inherit IFS.
7627         Don't recommend PATH_SEPARATOR=';' so strongly.
7628         Mention that $RANDOM might expand to the empty string.
7629         "symlink" and "soft link" -> "symbolic link".
7630         Improve mktemp description (reported by Bruno Haible).
7632 2005-02-05  Paul Eggert  <eggert@cs.ucla.edu>
7634         * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
7635         * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
7636         Likewise.
7637         * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
7638         Likewise.
7640 2005-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7642         * NEWS: Mention AT_COPYRIGHT.
7644         * tests/local.at (AT_CMP): Use diff directly on input files rather
7645         than copying them.
7647         * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
7648         /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
7650 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
7651         and Paul Eggert  <eggert@cs.ucla.edu>
7653         * tests/autotest.at (Empty test suite): New test.
7654         * tests/torture.at (Substitute and define special characters)
7655         (Substitute a 2000-byte string, Define to a 2000-byte string)
7656         (Substitute a newline, Define a newline): New tests.
7658 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
7660         * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
7661         * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
7662         (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
7663         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
7664         (Standard regular expressions): New test.
7665         (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
7666         excess test name quoting.
7667         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
7668         CPPFLAGS to `configure' instead of setting it in `configure'.
7670         * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
7671         any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
7672         on some platforms.
7674         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
7675         s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
7677         * tests/local.at (AT_CMP): New macro.
7678         (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
7679         (AC_SAVE_STATE): Move environment grep...
7680         (AT_CHECK_ENV): to here.  Filter out `'$''.  Use AT_CMP.
7681         (AT_CONFIG_CMP): New macro.
7682         (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
7683         * tests/c.at (Extensions): Do not exit early.
7684         * tests/atlocal.in: Inherit $GREP.
7686         * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
7687         (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
7689         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
7690         (AC_COPYRIGHT): Factor header comment portion out and move into...
7691         * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
7692         * lib/autotest/general.at (AT_COPYRIGHT): New macro.
7693         (AT_INIT): Add Autotest copyright notice.  Display copyright notices in
7694         --version output.
7695         * tests/local.at: Add Autoconf test suite copyright notice.
7696         * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
7698 2005-02-04  Bruno Haible  <bruno@clisp.org>
7699         and Paul Eggert  <eggert@cs.ucla.edu>
7701         * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
7703 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
7705         * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
7706         this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
7708         Try not to generated lines of unlimited length, as POSIX places a
7709         2047-byte limit on line length of portable text files.
7710         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
7711         Use newline as a separator, not space.
7712         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
7713         (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
7714         space.
7716 2005-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7718         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
7719         as_func_*.  Add test to check whether positional parameters
7720         are restored after function return.
7722 2005-02-02  Paul Eggert  <eggert@cs.ucla.edu>
7724         * doc/autoconf.texi (Special Shell Variables): Mention _,
7725         BIN_SH, DUALCASE.  Say that variables other than "status" are safe
7726         if they contain a lower-case letter.  The DUALCASE problem was
7727         reported by Ralf Wildenhues.
7729         * bin/autoconf.as: Don't exit with status 0 after write failure
7730         with --help or --version.
7731         * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
7732         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
7734 2005-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7736         * doc/autoconf.texi (Limitations of Usual Tools):
7737         Unicos 9 sed limitations.
7738         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
7739         to get the option-enhanced interface on older Crays.  Try ftn for
7740         Fortran 95 (newer Crays).
7742 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
7744         * man/Makefile.am (.x.1): Go back to the simple solution, but take
7745         care to echo the commands, so the user knows what's going on.
7746         Modified from a suggestion by Stepan Kasal.
7748         * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
7749         with a cross reference.  Derived from a suggestion by Bruce Korb.
7751 2005-01-31  Paul Eggert  <eggert@cs.ucla.edu>
7753         * doc/autoconf.texi (config.status Invocation): Warn about
7754         discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
7755         * doc/install.texi (Defining Variables): Likewise.
7756         Based on a proposed patch by Ralf Wildenhues.
7758         * man/Makefile.am (.x.1): Make sure the required generated files
7759         are up to date.  Problem and original solution proposed by Stepan Kasal.
7760         $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
7761         implicit-man-prerequisites): New rules, used by the above.
7763         * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
7764         * config/config.guess, config/config.sub, config/install-sh: Likewise.
7765         * config/missing, config/texinfo.tex: Likewise.
7767 2005-01-29  Stepan Kasal  <kasal@ucw.cz>
7769         Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
7770         Update the long comment explaining it.
7772         m4_require no longer writes an ``is required by'' line to the
7773         execution stack.  It contains only one bit of non-redundant
7774         information: that the macro was required, not called.  And even
7775         this bit is useless in most situations: have you ever met a macro
7776         which both calls and requires the same macro?
7778         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
7779         (_m4_defun_pro_outer): ... only via this macro, for the outermost
7780           macro.
7781         (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
7782         (m4_expansion_stack_pop): Remove the misplaced comment.
7783         (m4_require): Don't put the ``is required by'' line to the
7784           execution stack; slightly improve the out-of-a-defun error message.
7785         (_m4_divert_grow): New macro, counter for the temporary diversions.
7786         (_m4_require_call): Use it.
7787         * tests/m4sugar.at (m4_require): Expect output without the
7788           ``is required by'' messages.
7790 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7792         * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
7793         rather than x for expr.
7795         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
7796         this is safe.
7797         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
7798         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
7799         * lib/autotest/general.m4 (AT_INIT): Likewise.
7800         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
7801         * tests/mktests.sh: Likewise.
7803 2005-01-27  Akim Demaille  <akim@epita.fr>
7805         Have autoheader honor --force.
7807         * doc/make-stds.texi, doc/standards.texi: Update from masters.
7808         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
7809         * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
7810         from masters, so that FileUtils.pm's update_file provide --force
7811         support.
7812         * bin/autoheader.in: Pass $force to update_file so that
7813         config.h.in is always recreated when --force.
7815 2005-01-24  Stepan Kasal  <kasal@ucw.cz>
7817         * doc/autoconf.texi (Introduction): Update Peter Simons' address.
7819 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
7821         * doc/autoconf.texi (Limitations of Builtins): Clarify that
7822         "if test ! -d foo; ..." is portable.  Suggested by Stepan Kasal.
7824 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
7826         * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
7827         Warn about newline stripping in `` and $().  Update Solaris
7828         version to 9.
7829         (Limitations of Builtins): Use expr "X...", not expr "x...", as
7830         X insulates us from future changes to Posix.
7831         (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
7832         stripping.
7834 2005-01-19  Stepan Kasal  <kasal@ucw.cz>
7836         * doc/autoconf.texi (Defining Symbols): Delete the false comment that
7837           you cannot use AC_DEFINE to define macros containing `[' or `]'.
7839 2005-01-13  Paul Eggert  <eggert@cs.ucla.edu>
7841         * doc/autoconf.texi (Limitations of Usual Tools): Document bug
7842         in Solaris 8 join.  Problem reported by Tomohiro Suzuki on
7843         bug-tar mailing list.
7845 2005-01-05  Stepan Kasal  <kasal@ucw.cz>
7847         * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
7849 2005-01-05  Paul Eggert  <eggert@cs.ucla.edu>
7851         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
7852         ulongval to be static, to avoid unwanted GCC warning.  Problem
7853         reported by Michael Jennings via Daniel Reed; see
7854         <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
7856 2005-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
7858         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
7859         docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
7860         datadir, infodir, and mandir.  Adjust argument parsing code.
7861         (_AC_INIT_HELP): Update help text.
7862         * doc/autoconf.texi (Installation Directory Variables): Document
7863         new variables.
7865 2005-01-04  Noah Misch  <noah@cs.caltech.edu>
7867         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
7868         not seem to work, assume it does set $(MAKE).
7869         * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
7871 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
7873         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
7875 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
7877         A cleanup of the diversion support in m4sugar.
7879         * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
7880         (_m4_divert_n_stack): New macro; the expansion is
7881           <newline>m4_divert_stack, if m4_divert_stack is defined, and void
7882           otherwise.
7883         (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
7884         (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
7885           stored in _m4_divert_diversion or _m4_divert_dump.
7886         (m4_divert_pop): When the parameter is given, compare the symbolic
7887           name with the last diversion pushed on the stack.  Previously, the
7888           current diversion was compared with the numeric value of the
7889           diversion given as the parameter.
7890         (m4_require): If the macro hasn't been expanded yet, call ...
7891         (_m4_require_call): this new macro.
7893 2005-01-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7895         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
7896         Workarounds for documented `case' limitations.
7898 2005-01-03  Paul Eggert  <eggert@cs.ucla.edu>
7900         * doc/autoconf.texi (Limitations of Usual Tools): Warn about
7901         sed 'command1;command2'.  Problem reported by Ralf Wildenhues.
7903 2005-01-02  Paul Eggert  <eggert@cs.ucla.edu>
7905         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
7906         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
7907         bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
7909         Patch from Roger Leigh (with some minor changes) as follows:
7910         * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
7911         Resurrect AC_PROG_CC_STDC.
7912         * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
7913         AC_PROG_CC_C89, AC_PROG_CC_C99.
7914         (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
7915         * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
7916         AC_PROG_CC_C99): New macros.
7917         (AC_PROG_CC_STDC): Use them.
7918         (_AC_PROG_CC_STDC): Remove.
7919         (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
7920         * THANKS: Add Roger Leigh.
7922 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
7924         * bin/autoreconf.in (autoreconf_current_directory):  AM_INIT_AUTOMAKE
7925         signals that the package uses Automake; a `Makefile.am' is typical but
7926         not essential.  Reported by Magnus Therning.
7927         * tests/torture.at (autoreconf.): New banner.
7928         (autoreconf and non-AC configure): Rename to `Non-Autoconf
7929         AC_CONFIG_SUBDIRS'.
7930         (autoreconf an empty directory): Rename to `Empty directory'.
7931         (Unusual Automake input files): New test.
7933 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
7935         * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
7936         (AT_SETUP): Clear AT_capture_files.
7937         (_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
7938         (AT_KEYWORDS): Fix comment typo.
7939         * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
7940         * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
7941         * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
7943 2004-12-29  Albert Chin-A-Young  <china@thewrittenword.com>
7945         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
7946         If the variable to set is already set, set ac_cv_path_$1
7947         to the preset value so caller can assume ac_cv_path_$1
7948         is available.  (trivial change)
7950 2004-12-27  Noah Misch  <noah@cs.caltech.edu>
7952         * BUGS (Minor Problems): Warn about makefile limitations.
7953         * Makefile.am: Find and update `INSTALL' in $(srcdir).
7954         * man/Makefile.am: Find and update manual pages in $(srcdir).
7956 2004-12-24  Eric Blake  <ebb9@byu.net>
7958         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
7959         shells in subshell, to avoid noise from ash.  (trivial change)
7961 2004-12-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7963         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
7964         problems with SunOS ksh and backslash escaping, Bourne shells and
7965         closing brackets (both within character classes).  Bug reported
7966         against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
7967         <read>: New entry.  Mention non-availability of -r.
7969 2004-12-21  Akim Demaille  <akim@epita.fr>
7971         * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
7972         avoid cluttering displayed messages.  Rather, prepend srcdir where
7973         AT_LINE is used for log files.
7975 2004-12-21  Stepan Kasal  <kasal@ucw.cz>
7977         * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
7978         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
7979           no longer part of the macro, quote the occurrence of ``$tmp''.
7980         * doc/autoconf.texi (Forbidden Patterns): Typo.
7982 2004-12-21  Akim Demaille  <akim@epita.fr>
7984         * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
7985         separated from the test title by forcing a white space.
7987 2004-12-21  Akim Demaille  <akim@epita.fr>
7989         Enable Emacs navigation within testsuite.log files.
7991         * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
7992         use the compilation mode.
7993         (AT_LINE): Point to the srcdir.
7995 2004-12-19  Noah Misch  <noah@cs.caltech.edu>
7997         * tests/Makefile.am (installcheck-local): Use $(bindir).
7998         (check-local, installcheck-local): Pass TESTSUITEFLAGS.
7999         * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
8000         Makefile.am scheme Autoconf now uses.
8002 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
8004         * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
8005         * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
8007 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
8009         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
8010         (_AT_CHECK): Use it.
8011         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
8012         (AS_ESCAPE): Fix comment.
8013         * tests/autotest.at: Adjust section banner comments.
8014         (AT_CHECK_AT): Accept STATUS and STDERR.
8015         (AT_CHECK_AT_TEST): Likewise.
8016         (Invalid brace-enclosed parameter expansion)
8017         (Multiline command from M4 expansion)
8018         (Double-M4-quoted command): New tests.
8020 2004-12-17  Paul Eggert  <eggert@cs.ucla.edu>
8022         * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
8024 2004-12-17  Akim Demaille  <akim@epita.fr>
8026         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
8027         m4_pattern_allow.
8028         Suggested by Alexandre Duret-Lutz.
8029         * doc/autoconf.texi (Setting Output Variables): Catch up.
8031 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
8033         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
8035 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
8037         * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
8038           remove the comment which said we cannot.
8040 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
8042         Add a specialized check for resolv.h.  Thanks to Gerrit P. Haase,
8043         Reini Urban and Paul Eggert for reporting the dependencies.
8045         * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
8046         * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
8047         (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
8049 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
8051         * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
8052           so that eg. ``autoscan --help'' doesn't truncate it.
8054 2004-12-15  Nicolas Joly  <njoly@pasteur.fr>
8056         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
8057         generated conftest files.
8059 2004-12-13  Noah Misch  <noah@cs.caltech.edu>
8061         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
8062         tracing on commands with possibly-escaped newlines.
8063         * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
8064         discontinued behavior and its implications.
8065         * tests/autotest.at (BS-newline in command, ^BS-newline in command)
8066         (BSx641-newline in command, BS-BS-newline in command)
8067         (BSx640-newline in command, Newline-CODE-BS-newline in command)
8068         (Single-quote-BS-newline in command)
8069         (Single-quote-newline-BS-newline in command): New tests.
8071 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
8073         * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
8074           on platforms where it works.
8075         (_AS_TEST_PREPARE): Test for ``test -x''.
8076         (_AS_BROKEN_TEST_PREPARE): Nuke.
8078 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
8080         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
8081         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
8082           give only 4-letter prefix to AS_TMPDIR, comment fixed.
8083         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
8084           create the temporary directory.
8085         (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
8087 2004-12-12  Kelley Cook  <kcook@gcc.gnu.org>
8089         * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
8090         (trivial change)
8092 2004-12-12  Alexandre Duret-Lutz  <adl@gnu.org>
8094         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
8096 2004-12-11  Noah Misch  <noah@cs.caltech.edu>
8098         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
8099         to avoid using a negated character class.  Reported by Nicolas Joly.
8100         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
8102 2004-12-10  Paul Eggert  <eggert@cs.ucla.edu>
8104         * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
8105         autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
8106         Don't depend on .x file explicitly, since "make" does that for us.
8107         Suggested by Stepan Kasal.
8109         * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
8110         Add *.tmp.
8111         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
8112         ifnames): Factor common code.  And they said it couldn't be done!
8114 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
8116         * bin/.cvsignore: Add autoconf.in.
8117         * tests/.cvsignore: Add wrapper.in.
8118         * lib/autotest/general.m4: Escape '$' in case pattern.
8120 2004-12-09  Noah Misch  <noah@cs.caltech.edu>
8122         * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
8124         * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
8126         * tests/autotest.at: New file.
8127         * tests/suite.at: Include it.
8128         * tests/Makefile.am: Distribute it.
8130         * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
8131           shell tracing on a command that could contain multiple lines.
8132         * doc/autoconf.text: Document that fact and its implications.
8133         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
8134         * tests/autotest.at (Multiline backquote command substitution,
8135           Multiline parameter expansion, Literal multiline command,
8136           Multiline parenthetical command substitution): Remove XFAIL.
8138 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
8140         * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
8141         and suggest AC_SEARCH_LIBS.  Suggested by Noah Misch and Stepan Kasal.
8143 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
8145         * configure.ac (test suite): Cease to generate wrapper scripts.
8146         * configure: Regenerate.
8147         * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
8148         (m4f_dependencies): Adjust accordingly.
8149         * tests/Makefile.am (Wrappers): Generate wrapper scripts.
8150         (wrapper.in): Generate it in the build directory.
8151         (MAINTAINERCLEANFILES): Delete wrapper.in.
8152         (CLEANFILES): Add wrapper.in.
8153         * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
8154         the output.  Replace each $as_me with a @wrap_program@.
8155         * tests/wrapper.in: Delete it; we always build it.
8157         * bin/Makefile.am (autoconf.in): Generate it in the build directory.
8158         (EXTRA_DIST): Remove autoconf.in.
8159         (CLEANFILES): Add autoconf.in.
8160         (autoconf): Find autoconf.in in the build directory.
8161         * bin/autoconf.in: Delete it; we always build it.
8163 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
8165         * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'.  Join
8166         PATH members so as to not prepend an empty element.  Move a comment.
8167         * Makefile.am (SUBDIRS): Build in `tests' last.
8168         * tests/Makefile.am (installcheck-local): Add check-local dependencies.
8170 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
8172         * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
8173         the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
8174         <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
8175         Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
8177 2004-12-07  Stepan Kasal  <kasal@ucw.cz>
8179         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
8180         patch: extra "-l"s.
8182 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
8184         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
8185         looking elsewhere for getmntent.  Problem reported by Mark D. Baushke.
8186         * doc/autoconf.texi (Particular Functions): Mention new behavior.
8188 2004-12-03  Stepan Kasal  <kasal@ucw.cz>
8190         * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
8191           out the common code to ...
8192         (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
8193           value of the #define--default to 1, iff the macro was called
8194           with exactly one parameter.
8196 2004-12-02  Paul Eggert  <eggert@cs.ucla.edu>
8198         * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
8199         "char c = '\200';" rather than "char c = 0x80;" as the
8200         latter doesn't conform to the strict C standard due to
8201         overflow on signed char hosts.
8203         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
8204         to -qlanglvl=ansi.  We don't want to disable extensions.
8206 2004-11-29  Paul Eggert  <eggert@cs.ucla.edu>
8208         * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
8209         (Using Autotest, testsuite Scripts, Writing testsuite.at):
8210         Reword slightly to avoid some English-language problems noted
8211         by Ralf Wildenhues in:
8212         http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
8214 2004-11-29  Stepan Kasal  <kasal@ucw.cz>
8216         * NEWS: Add ^L above each release.
8218 2004-11-28  Paul Eggert  <eggert@cs.ucla.edu>
8220         Fix documentation problems reported by Russ Boylan in
8221         <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
8222         along with some nearby cruft.
8223         * doc/autoconf.texi (Libtool): Libtool can be used without
8224         Automake (not without Autoconf).
8225         (Introduction): Mention lists.gnu.org.
8226         * BUGS: Don't mention bugs.gnu.org.
8227         Remove mention of ancient libtool compatibility problem.
8228         * NEWS: Mention that bugs.gnu.org is kaput.
8229         * README: Likewise.  Mention where mailing list archives can be found.
8231 2004-11-28  Stepan Kasal  <kasal@ucw.cz>
8233         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
8235 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
8237         * doc/autoconf.texi (Pretty Help Strings): Go back to
8238         single-quoting assignments to cache variables.
8240 2004-11-23  Stepan Kasal  <kasal@ucw.cz>
8242         * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
8243         with the examples; fix the bug in MY_ARG_WITH example reported
8244         by Alexandre Duret-Lutz.
8245         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
8246         expansion of $1 in the comment emitted to configure.
8248 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
8250         * doc/autoconf.texi (Pretty Help Strings): Fix typo
8251         in my editing of the previous patch.  Problem reported
8252         by Alexandre Duret-Lutz.
8254 2004-11-22  Stepan Kasal  <kasal@ucw.cz>
8256         * doc/autoconf.texi (Autoconf Language): Explain that
8257         ``descriptions'' may not be double quotes.
8258         (Quotation Rule Of Thumb): Likewise.
8259         (Pretty Help Strings): Likewise; remove the wrong comment;
8260         simplify the examples and improve their quoting.
8262 2004-11-13  Stepan Kasal  <kasal@ucw.cz>
8264         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
8265         the $1_found variable, don't test whether the file is executable;
8266         Both things are checked ...
8267         (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
8268         the former ``test -f''.
8269         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
8271 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
8273         * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
8274         use cp -R instead.
8276 2004-11-10  Derek R. Price  <derek@ximbiot.com>
8278         * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
8279         limitations.  Reorder paragraphs for clarity.
8281 2004-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8283         * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
8284         to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
8285         variants", "Unix", and some related minor wording fixups.
8287         (Shellology, Special Shell Variables): Document that the Zsh
8288         problem with NULLCMD was fixed in zsh 3.1.6-dev-18.  Thanks
8289         to Alexandre Duret-Lutz for this info.
8291 2004-10-10  Alexandre Duret-Lutz  <adl@gnu.org>
8293         * doc/autoconf.texi (One-Shot Macros): New node.
8295 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
8297         * doc/autoconf.texi (Function Portability): Fix misdescription
8298         of putenv.  Problem reported by Michael Wardle.
8300 2004-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8302         * doc/autoconf.texi (auindex): New macro.
8303         (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
8304         Problem reported by Stepan Kasal.
8306 2004-09-05  Paul Eggert  <eggert@cs.ucla.edu>
8308         Fix problems reported by Andreas Buening in:
8309         http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
8310         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
8311         in test makefile.
8312         * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
8313         readable; it's not true in OS/2-emx.
8315 2004-09-04  Paul Eggert  <eggert@cs.ucla.edu>
8317         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
8318         "/usr/include", clear ac_x_includes instead of leaving it as "no"
8319         (trivial change).  Problem and patch reported by Andrew Church in:
8320         http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
8322 2004-09-03  Paul Eggert  <eggert@cs.ucla.edu>
8324         * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
8325         three args in examples.  Problem reported by Frederik Fouvry in:
8326         http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
8327         Also, fix some minor spacing and punctuation bugs.
8329 2004-09-02  Akim Demaille  <akim@epita.fr>
8331         * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
8332         "case" to restore ordering.
8333         Reported by Stepan Kasal.
8335 2004-08-26  Akim Demaille  <akim@epita.fr>
8337         * doc/autoconf.texi: Minor typos and stylos.
8339 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
8341         * configure.ac (AC_INIT): Bump to 2.59c.
8343 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
8345         Version 2.59b.
8347         * README: Add advice about m4 1.4.2.
8349         * Makefile.cfg (wget_files): Remove config.guess, config.sub,
8350         texinfo.tex for now (done by hand now).
8351         * Makefile.maint (wget_files, cvs_files):
8352         Remove ansi2knr.c; nobody uses it.
8353         (ansi2knr.c-url_prefix): Remove.
8354         (cvs-update): Fix test for failure.  I don't know why it ever
8355         worked...
8357         * doc/autoconf.texi: Update URLs, some of which went stale.
8358         Use @uref rather than @href.
8360         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
8361         handle "--" as per POSIX.  Suggested by Paul Pogonyshev.
8363         * config/config.guess, config/config.sub, config/elisp-comp,
8364         config/install-sh, config/mkinstalldirs, config/texinfo.tex,
8365         doc/fdl.texi, doc/standards.texi: Sync with master copy.
8367         * NEWS, TODO, configure.ac, bin/autoscan.in,
8368         bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
8369         doc/install.texi, lib/Autom4te/Configure_ac.pm,
8370         lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
8371         lib/autoconf/programs.m4, lib/autoconf/status.m4,
8372         lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
8373         lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
8374         tests/tools.at, tests/torture.at:
8375         Use "file name" rather than "filename" or "path",
8376         to be consistent with the terminology of the GNU coding standards.
8378 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
8380         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
8381         AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
8382         HP-UX 11.23 cc/aCC or Tru64 4.0 cc.  Problem reported by Noah Misch in
8383         <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
8385         More fixes to support spaces in the name of the build directory.
8386         This isn't a complete fix but it's an improvement.
8388         * bin/autoconf.as (autom4te_options): New var.
8389         Use it instead of appending to AUTOM4TE, so that we can allow
8390         spaces in the build directory's absolute name.
8391         * bin/autoheader.in ($autoconf): Allow spaces in file names.
8392         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
8393         AT_CHECK_NOESCAPE): Likewise.
8394         * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
8395         main program): Likewise.
8397 2004-08-18  Paul Eggert  <eggert@cs.ucla.edu>
8399         * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
8400         From Ralf Corsepius in:
8401         http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
8403 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
8405         * doc/autoconf.texi (Function Portability): Document isinf and
8406         and isnan.  From a suggestion by Kevin Ryde.
8408         * lib/Autom4te/General.pm (END): Return correct exit status even
8409         if unlink succeeds and sets $?.  Needed with Solaris 8's perl 5.00503.
8411 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
8413         * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
8414         for compatibility with Automake 1.4.  Reported by J C Fitzgerald in
8415         <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
8417 2004-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
8419         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
8420         (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
8421         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
8422         * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
8423         * lib/autom4te.in (Automake-preselections): Preselect
8424         AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
8426 2004-08-02  Alexandre Duret-Lutz  <adl@gnu.org>
8428         * lib/autom4te.in (Automake-preselections): Preselect
8429         AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
8430         trace them.
8432 2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
8434         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
8435         Tru64.
8436         * doc/autoconf.texi (Shellology): Mention BIN_SH.
8437         Document problem with "`""`" in pdksh POSIX mode.
8439 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
8441         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
8442         with pdksh, too.  Problem reported by Patrick Welche via
8443         Gary V. Vaughan.
8444         * doc/autoconf.texi (Shellology): Note that set -o posix is
8445         useful for pkdsh, too.
8447 2004-06-24  Paul Eggert  <eggert@cs.ucla.edu>
8449         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
8450         _AS_UNSET_PREPARE, so that we can use $as_unset directly.
8451         Don't fail if ENV or BASH_ENV is readonly.
8452         (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
8453         etc. are read only.  Problem reported by Ludovic Courtes.
8455 2004-06-23  Noah Misch  <noah@cs.caltech.edu>
8457         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
8458         zsh, disable GLOB_SUBST to avoid backslash handling problems.
8459         (trivial change)
8461 2004-06-04  Paul Eggert  <eggert@cs.ucla.edu>
8463         * doc/autoconf.texi (File System Conventions): Warn about
8464         names like "aux".  Problem reported by Eric Blake.
8466         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
8467         by zero instead of array size, so that we can use any arithmetic
8468         constant expression (instead of requiring an integer constant
8469         expression).  This allows us to test expressions like DBL_MAX <
8470         LDBL_MAX, which didn't conform to the C standard using the old
8471         method.
8472         (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
8473         now that we can do floating-point tests at compile time.
8475 2004-06-02  Paul Eggert  <eggert@cs.ucla.edu>
8477         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
8478         and LDBL_EPSILON, as the resulting expression isn't an
8479         integer constant expression and violates the C standard.
8480         Problem reported by Nelson H. F. Beebe.  Also, check
8481         for "L" suffix, and check that long double doesn't have
8482         worse range or precision than double, that mixed-mode
8483         arithmetic doesn't generate a diagnostic, that double
8484         constants fit in long double.
8486 2004-06-03  Kevin Ryde  <user42@zip.com.au>
8488         * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
8489         malloc(0) and realloc(NULL,size).
8491         * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
8492         Bob Proulx.
8494 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
8496         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
8497         in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].  Problem reported
8498         by Jim Meyering.
8500 2004-05-26  Paul Eggert  <eggert@cs.ucla.edu>
8502         * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
8503         can be rewritten using if-then-else.  Suggested by Bruno Haible.
8505 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
8507         * doc/autoconf.texi (testsuite Scripts): Fix typo.
8508         Problem reported by Stepan Kasal.
8510 2004-05-24  Paul Eggert  <eggert@cs.ucla.edu>
8512         * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
8513         change).  Patch reported by Ralf Wildenhues in
8514         <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
8516         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
8517         function F exists if the compiler and linker let you compile an
8518         expression like (F != 0).  Recent versions of GCC optimize away
8519         the reference to F in that case, since every function address must
8520         be nonzero, so the link succeeds even if F does not exist.
8521         Problem reported by Manu in
8522         <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
8524         * doc/autoconf.texi (Systemology): Standardize on the spelling of
8525         "Unix".  Many uses changed.
8526         (Limitations of Builtins): Explain better why the ! command isn't
8527         portable.
8529 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
8531         * lib/autom4te.in (Automake-preselections): Preselect
8532         LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
8534 2004-05-19  Kevin Ryde  <user42@zip.com.au>
8536         * doc/autoconf.texi (Function Portability): Add strerror_r, cross
8537         referencing AC_FUNC_STRERROR_R.
8539         * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
8540         note pessimistic assumption when cross compiling.
8542 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
8544         * doc/autoconf.texi (Limitations of Make): Note that BSD make
8545         (until 2004) invoked subcommands with sh -e, contra POSIX.
8546         Reported by Kevin Ryde.
8548 2004-05-10  Eric Sunshine  <sunshine@sunshineco.com>
8550         * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
8551         _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
8552         "        $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
8553         `test -f "        /usr/bin/grep"', which _always_ failed.
8554         (AC_PROG_SED): Ditto bogus PATH fix.
8555         * autoconf.texi (AC_PROG_GREP): Properly document that this macro
8556         requires that grep correctly supports _multiple_ `-e' options, rather
8557         than stating only that grep should accept `-e'.
8559 2004-05-03  Paul Eggert  <eggert@cs.ucla.edu>
8561         Port to C99, which requires that 'exit' be declared.
8563         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
8564         to ensure that stdlib.h is included.
8565         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
8566         AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
8567         _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
8568         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
8569         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
8570         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
8571         when using 'exit' in a test; C99 requires that 'exit' be declared.
8573 2004-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8575         * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
8576         now prefers 'grep' implementations that accept -e.
8577         (Limitations of Usual Tools): Describe problems of traditional
8578         egrep and fgrep with long input lines, and of traditional grep
8579         with -e.
8580         * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
8581         (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
8582         All callers changed.  Append /usr/xpg4/bin to the PATH, for
8583         Solaris.
8584         (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
8585         the user with complaints about multiple -e options.
8586         * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
8587         Define it with AC_PROG_GREP.
8588         * configure.ac (AC_PROG_GREP): Add.
8589         * lib/freeze.mk (GREP): New macro.
8591 2004-05-02  Eric Sunshine  <sunshine@sunshineco.com>
8593         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
8594         a possible candidate only after all others fail, rather than
8595         consulting it first.  This improves backward compatibility by
8596         better reflecting the way shell selection occurred in previous
8597         versions of Autoconf, and should help to avoid triggering latent
8598         problems in other packages, such as the one in Automake where zsh
8599         is not handled robustly:
8600         http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
8601         Although it is not Autoconf's responsibility to work around
8602         problems in Automake, it nevertheless makes sense to avoid
8603         introducing unnecessary incompatibilites.
8605 2004-04-22  Albert Chin-A-Young  <china@thewrittenword.com>,
8606             Gary V. Vaughan  <gary@gnu.org>
8608         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
8609         how deeply nested we are when a suitable tool is found, set the
8610         ac_path_TOOL_found flag.
8611         (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
8612         nested we are in this macro.  Break out of all 3 nested loops if
8613         ac_path_TOOL_found is set.
8615 2004-04-21  Gary V. Vaughan  <gary@gnu.org>
8617         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
8618         of the _AS_PATH_WALK loop too if GNU flavor is found.
8620 2004-04-21  Alexandre Duret-Lutz  <adl@gnu.org>
8622         * doc/autoconf.texi (Limitations of Make): Update documentation
8623         for `$<'.  New entry `Long lines', based on a report from Simon
8624         Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
8625         paragraph about DJGPP, based on a mail from Richard Dawe.
8627 2004-04-20  Paul Eggert  <eggert@twinsun.com>
8629         * tests/c.at (C keywords): Don't assume that GCC supports
8630         "restrict" and "inline", as sufficiently-old GCC versions do not
8631         (also, GCC configured to be in pedantic C89 mode does not).
8632         Problem reported by Sumit Pandya in:
8633         http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
8635         * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
8636         consider -g to work if it generates warnings when plain compiles
8637         don't.  Problem reported by Braden McDaniel in:
8638         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
8640         * doc/autoconf.texi (Slashes): New section, to document a problem
8641         reported by Jim Meyering in:
8642         http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
8644         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
8645         linker output files before linking, to work around IRIX 6 linker bug.
8646         Problem reported by Rainer Orth in:
8647         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
8649 2004-04-20  Gary V. Vaughan  <gary@gnu.org>
8651         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
8652         best tool so far counter rely on the tool path variable name to
8653         avoid checks for one tool being affected by the results of running
8654         the length check on a previous tool.
8656         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
8657         match expression argument, as different greps have different
8658         regular expression flavours.
8659         (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
8660         literals.
8661         (AC_PROG_EGREP): Pass 'EGREP$'.
8662         (AC_PROG_GREP): Pass 'GREP$'.
8664 2004-04-20  Albert Chin-A-Young  <china@thewrittenword.com>
8666         * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
8667         is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
8669 2004-03-29  Paul Eggert  <eggert@twinsun.com>
8671         * doc/autoconf.texi (Particular Headers, Particular Types, Generic
8672         Types, Specific Compiler Characteristics, System Services,
8673         Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
8674         etc. consistently instead of 'long', 'short', 'unsigned' etc.
8675         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
8676         * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
8677         Likewise.
8678         * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
8679         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
8680         AC_TYPE_OFF_T): Likewise.
8681         * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
8682         Likewise.
8684         * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
8685         pacify libtool 1.5.2.  Fix quoting problems in sed command.
8687 2004-03-28  Paul Eggert  <eggert@twinsun.com>
8689         * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
8690         now defines HAVE_DECL_TZNAME if it is declared, when
8691         HAVE_STRUCT_TM_TM_ZONE is not defined.
8692         * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
8693         Do not assume atoi.  Rely on HAVE_DECL_TZNAME when testing
8694         for HAVE_TZNAME.
8696 2004-03-28  Steven G. Johnson  <stevenj@fftw.org>
8698         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
8699         superfluous backslashing of quotes (") in sed expressions;
8700         thanks to Paul Eggert.
8702 2004-03-26  Steven G. Johnson  <stevenj@alum.mit.edu>
8704         * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
8705         Fortran compiler is ifort, also added pghpf; thanks to Nelson
8706         H. F. Beebe for the bug report.
8708 2004-03-26  Steven G. Johnson  <stevenj@fftw.org>
8710         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
8711         quoted -cmdline argument in Portland Group compiler (bug
8712         reported by Jeffrey J. Barteet).
8714 2004-03-25  Kevin Ryde  <user42@zip.com.au>
8716         * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
8717         (Run Time): ... here, where it's now mentioned.
8719 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
8721         * doc/autoconf.texi (autom4te Invocation): Language Autoconf
8722         inherits from language Autoconf-without-aclocal-m4.
8723         (Customizing autom4te): Adjust example; the cache must now be
8724         disabled for language Autoconf-without-aclocal-m4.
8726 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
8727             Nathanael Nerode  <neroden@twcny.rr.com>
8729         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
8730         AC_CHECK_TOOLS): Warn if a cross-tool is found without
8731         a prefix.
8732         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
8733         AC_CHECK_TARGET_TOOLS): New macros.
8734         * doc/autoconf.texi (Generic Programs): Document
8735         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
8736         AC_CHECK_TARGET_TOOLS, and warn for future changes
8737         in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
8738         AC_CHECK_TOOLS.
8739         (Specifying Names): Document the reason for these future
8740         behavioral changes.
8741         * tests/mktests.sh: Do not generate tests for the
8742         new macros.
8743         * NEWS: Document these changes.
8745         * doc/autoconf.texi: Avoid macros with unbraced arguments,
8746         they make TeX hang up.
8748 2004-03-15  Paul Eggert  <eggert@bogus.example.com>
8750         * NEWS: New macro AC_CHECK_ALIGNOF.
8751         * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
8752         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
8753         int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
8754         vowel.
8755         (AC_CHECK_ALIGNOF): New macro.
8756         * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
8757         * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
8758         those for sizeof.
8760 2004-03-03  Paul Eggert  <eggert@twinsun.com>
8762         * bin/Makefile.am (edit): Don't use $< in a context where
8763         POSIX doesn't require support for it.  Use $@.in instead.
8764         Problem reported by Anthony N. Frasso in
8765         <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
8766         * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
8768 2004-02-23  Gary V. Vaughan  <gary@gnu.org>
8770         * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
8771         from the next generation of Libtool.
8772         * lib/autom4te.in (Autoreconf-preselections): Ditto.
8774 2004-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
8776         * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
8777         is not always thread-safe.  Report from Nathanael Nerode.
8779 2004-02-18  Paul Eggert  <eggert@twinsun.com>
8781         Fix a dependencies problem, stemming from a Autoconf 2.59 build
8782         problem on QNX reported by Stephen Rasku in
8783         <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
8785         * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
8786         $(m4sh_m4f_dependencies); this removes a FIXME.
8787         * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
8788         (MAINTAINERCLEANFILES): Split into pieces,
8789         one per related section.  Add $(srcdir)/wrapper.in.
8791 2004-02-09  Paul Eggert  <eggert@twinsun.com>
8793         * doc/autoconf.texi (Setting Output Variables): Emphasize that
8794         AC_SUBST provides no portable way to escape literal newlines.
8796         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
8797         flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
8798         Darwin uses -lcrt2.o and there's little point to cataloging all
8799         the system variants.  Partial fix reported by Andreas Waechter in:
8800         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
8801         for bug reported by Nelson H. F. Beebe in:
8802         http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
8804 2004-02-04  Paolo Bonzini  <bonzini@gnu.org>
8806         * doc/autoconf.texi (AU_DEFUN): Fix English,
8807         suggested by Paul Eggert.
8808         * lib/autoconf/autoupdate.m4: Correct reference to
8809         acobsolete.m4, suggested by Alexandre Duret-Lutz.
8811 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
8813         * bin/autoupdate.in: Define __file__ so that warnings
8814         refer to the correct file.
8815         * doc/autoconf.texi (AU_DEFUN): Describe more correctly
8816         the behavior of the third argument.
8817         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
8818         correctly the behavior of the third argument.  Document
8819         what the three macros that AU_DEFUN defines do.  Fix
8820         warning message when the third argument includes $0
8821         (reported by Alexandre Duret-Lutz).
8823 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
8824             Eric Sunshine  <sunshine@sunshineco.com>
8825             Paul Eggert  <eggert@twinsun.com>
8827         * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
8828         (AS_INIT): Output shell initialization there. Removed optional
8829         parameter. Expand _AS_SHELL_FN_SPY.
8830         (AS_INIT_WITH_SHELL_FN): Removed.
8831         (_AS_SHELL_FN_SPY): New macro.
8832         (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
8833         macros.
8834         (AS_SHELL_SANITIZE): Remove loop to find better shell
8835         and documentation for the parameter.
8836         (_AS_DETECT_BETTER_SHELL): Move it here.
8837         (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
8838         (_AS_RUN): Move it here, support testing with eval.
8839         (AS_REQUIRE_SHELL_FN): Require shell functions when
8840         it is used.
8841         (_AS_LINENO_WORKS): Put around braces, we do not
8842         trigger the bash bug anymore.
8843         * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
8844         use AS_INIT_WITH_SHELL_FN.
8845         * bin/autoconf.in, tests/wrapper.in: Regenerated.
8847 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
8849         * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
8850         * doc/autoconf.texi: Don't say that the third parameter
8851         is broken.
8852         * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
8853         (AU_DEFUN): Honor the third parameter, create autoupdate
8854         macros with AU_DEFINE.
8855         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
8856         AC_DIR_HEADER): Use AU_DEFUN's third parameter.
8857         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
8858         * lib/autoconf/programs.m4 (AC_RSH): Likewise.
8859         * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
8860         AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
8861         AC_XENIX_DIR): Likewise.
8862         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
8863         AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
8864         * lib/autoconf/status.m4: Remove FIXME.
8865         * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
8866         that the macro is not present anymore in the updated
8867         configure.ac.
8868         * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
8869         of autoupdate.
8871 2004-01-28  Paul Eggert  <eggert@twinsun.com>
8873         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
8874         copyright years.
8875         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
8876         2003 (except 1997) to the list of copyright years.  This undoes
8877         the 2003-05-22 change, which removed the older years from the list.
8878         * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
8880 2004-01-27  Gary V. Vaughan  <gary@gnu.org>
8881             Albert Chin-A-Young  <china@thewrittenword.com>
8883         * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
8884         grep or ggrep program in PATH that accepts as long lines as
8885         possible.
8886         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
8887         AC_PROG_GREP.
8888         (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
8889         egrep and fgrep respectively if $GREP -E/-F don't work.
8890         (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
8891         _AC_PROG_GREP, and AC_PROG_SED.
8892         (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
8893         longest input length accepted by a command.
8894         (AC_PROG_SED): Use it.
8895         * doc/autoconf.texi (Particular Programs): Document the changes.
8896         * NEWS: Updated.
8898 2004-01-27  Paul Eggert  <eggert@twinsun.com>
8900         * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
8901         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
8902         bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
8903         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
8905         * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
8906         bin/autoconf.in, config/Makefile.in, config/config.guess,
8907         config/config.sub, config/install-sh, config/mdate-sh,
8908         config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
8909         lib/Makefile.in, lib/Autom4te/Makefile.in,
8910         lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
8911         lib/autotest/Makefile.in, lib/emacs/Makefile.in,
8912         lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
8913         man/autoheader.1, man/autom4te.1, man/autoreconf.1,
8914         man/autoscan.1, man/autoupdate.1, man/config.guess.1,
8915         man/config.sub.1, man/ifnames.1, tests/Makefile.in,
8916         tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
8917         tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
8918         tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
8919         tests/actypes.at: Regenerate and/or sync with original
8920         sources.
8922 2004-01-26  Paul Eggert  <eggert@twinsun.com>
8924         * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
8925         HAVE_INTTYPES_H is defined.  This is needed on Tru64 5.1b with
8926         Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
8927         not <inttypes.h>.  Problem reported by Tim Mooney in
8928         <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
8929         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
8930         Likewise.
8932         * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
8933         otherwise "make check" fails because it forbids cmp (I guess
8934         because cmp treats files as binary on DOS-like systems).
8936         * tests/mktests.sh: Update copyright date to 2004, since some tests
8937         have changed in 2004.
8939 2004-01-23  Gary V. Vaughan  <gary@gnu.org>
8941         * lib/autoconf/programs.m4 (AC_PROG_SED):  New macro to test for a
8942         non-truncating sed or gsed program in PATH.
8943         * tests/acprograms.at: Add it.
8944         * doc/autoconf.texi (Particular Programs): Document it.
8945         * NEWS: Updated.
8947 2004-01-15  Paul Eggert  <eggert@twinsun.com>
8949         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
8950         -std1 disables some useful extensions on Tru64.  Problem reported
8951         by N. Lichtmaier in
8952         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
8954 2004-01-14  Paul Eggert  <eggert@twinsun.com>
8956         * doc/autoconf.texi (Programming in M4sh): Document that
8957         AS_MKDIR_P succeeds if the destination is a symbolic link
8958         to an existing directory.
8959         (Limitations of Usual Tools): Note that mkdir -p might not
8960         succeed on symlinks to directories.
8962 2004-01-13  Paul Hilfinger  <hilfinger@CS.Berkeley.EDU>
8964         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
8965         * bin/autoheader.in: Grammar fix in message.
8966         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
8967         Test for dir before calling mkdir -p.  (trivial changes)
8969 2004-01-13  Eric Blake  <ebb9@byu.net>
8971         * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
8972         AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
8974 2004-01-10  Jim Meyering  <jim@meyering.net>
8976         * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
8978 2004-01-09  Paul Eggert  <eggert@twinsun.com>
8980         * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
8981         with `autoconf -Wall,error'.  Bug reported by Eric Blake in:
8982         http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
8983         (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
8984         AC_COMPILE_IFELSE, since we now assume our caller invokes
8985         AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
8986         (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
8987         of AC_RUN_IFELSE; this avoids the warning mentioned above.
8988         (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
8990 2004-01-07  Paul Eggert  <eggert@twinsun.com>
8992         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
8993         `"'...'"`, as it's confusing (and I suspect it may not work on
8994         some platforms).  The code was incorrect anyway, as it assumed
8995         that \$ evaluated to itself in that context.  Reported by
8996         Alexandre Duret-Lutz.
8998 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
9000         * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
9001         and _LT_AC_TAGCONFIG.
9003 2004-01-06  Paul Eggert  <eggert@twinsun.com>
9005         * doc/autoconf.texi (One Macro Call): Fix an incorrect
9006         example, and add more examples.  Reported by Eric Sunshine.
9008 2004-01-05  Paul Eggert  <eggert@twinsun.com>
9010         * doc/autoconf.texi (Limitations of Usual Tools):
9011         Remove warning against "rm -fr" introduced yesterday; it
9012         was a false alarm.
9014         * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
9015         autoscan, autoupdate, ifnames): Don't use chmod -w.
9016         * lib/Makefile.am (autom4te.cfg): Likewise.
9017         * doc/autoconf.texi (Limitations of Usual Tools): Warn against
9018         "chmod -w".
9020 2004-01-04  Paul Eggert  <eggert@twinsun.com>
9021             Paolo Bonzini  <bonzini@gnu.org>
9023         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
9024         by doing lineno substitution only on lines containing "$LINENO".
9026 2004-01-04  Paul Eggert  <eggert@twinsun.com>
9028         * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
9029         Use "rm -f" to remove conftest.sed, not plain "rm".
9030         Bug reported by David Relson in
9031         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
9033         * Makefile.am (autom4te-update):
9034         Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
9035         * Makefile.maint (my-distcheck, do-po-update): Likewise.
9036         * doc/autoconf.texi (Guidelines): Likewise.
9037         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
9038         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
9039         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
9040         * lib/autotest/general.m4 (AT_INIT): Likewise.
9041         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
9042         * tests/Makefile.am (clean-local): Likewise.
9043         * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
9044         srcdir): Likewise.
9045         * doc/autoconf.texi (Limitations of Usual Tools):
9046         Warn against "rm -fr".
9048 2004-01-03  Paul Eggert  <eggert@twinsun.com>
9050         * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
9051         -c -o might not work.  From a suggestion by Kevin Ryde.
9052         (C Compiler, Generating Sources, Limitations
9053         of Usual Tools, Limitations of Make, Making testsuite Scripts):
9054         Don't put '-o' after non-options, as POSIX doesn't allow this.
9055         Mention that cc's name might be gcc or c89 or whatever.
9057 2004-01-04  Kevin Ryde  <user42@zip.com.au>
9059         * doc/autoconf.texi: Add various further index entries.
9061 2003-12-29  Paul Eggert  <eggert@twinsun.com>
9063         * bin/autoreconf.in (autoreconf_current_directory):
9064         Fix typo: mkdir without umask arg.
9066 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
9068         * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
9069         Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
9070         `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
9071         explanation clearer.
9073 2003-12-24  Andreas Schwab  <schwab@suse.de>
9075         * doc/autoconf.texi (Default Includes): Fix misspelling of
9076         AC_INCLUDES_DEFAULT.
9078 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
9080         * configure.ac: Test if sh -n works.
9081         * configure: Regenerate.
9082         * tests/atlocal.in: Store the result here.
9083         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
9084         tools.at, looking in atlocal's ac_cv_sh_n_works instead
9085         of explicitly testing.
9086         (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
9087         (AT_CHECK_AUTOCONF): Test for the configure script syntax.
9088         * tests/tools.at (Syntax of the shell scripts): Simplify
9089         using AT_CHECK_SHELL_SYNTAX.
9090         (Syntax of the Perl scripts): Remove definition of
9091         AT_CHECK_PERL_SYNTAX.
9093 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
9095         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
9096         stderr to /dev/null.
9097         * bin/autoconf.in: Regenerate.
9098         * bin/wrapper.in: Regenerate.
9100 2003-11-26  Paolo Bonzini  <bonzini@gnu.org>
9102         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
9103         Extracted from AS_SHELL_SANITIZE.
9104         (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
9105         macros.
9106         (AS_SHELL_SANITIZE): Move reinvocation code from
9107         _AS_LINENO_WORKS, use it to find out if shell
9108         functions work.
9109         (_AS_LINENO_WORKS): Don't find another shell if $LINENO
9110         does not work.
9111         (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
9112         (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
9113         was called.
9114         * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
9115         * bin/autoconf.in: Regenerate.
9116         * tests/wrapper.in: Regenerate.
9117         * tests/tools.at: Test the syntax of tests/autoconf
9118         and tests/testsuite.
9120 2003-11-24  Akim Demaille  <akim@epita.fr>
9122         * config/announce-gen (&print_locations, &print_signatures)
9123         (&sizes): New.
9124         Use them.
9125         No longer rely on Gnus to inline the list of signatures: compute
9126         them on the fly.
9128 2003-11-24  Akim Demaille  <akim@epita.fr>
9130         * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
9131         override some files.
9132         (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
9133         From Debian Autoconf 2.58.
9135 2003-11-24  Akim Demaille  <akim@epita.fr>
9137         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
9138         uses.
9139         From Debian Autoconf 2.58.
9141 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
9143         * TODO: Remove already done things.  Update the part about finding
9144         tools for the target.
9146 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
9148         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
9149         Make wording more consistent.
9150         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
9151         Explain the transition better.
9152         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
9153         the transition better.
9155 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
9157         * doc/autoconf.texi (Obsoleting Macros): Don't document the third
9158         parameter of AU_DEFUN.
9159         * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
9160         (AU_DEFUN): Remove the third parameter, it was not used.
9161         Use AC_DEFUN directly, not AU_DEFINE.
9162         * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
9163         the expanded body, consistently with other macros such as AC_USG.
9165 2003-11-17  Paul Eggert  <eggert@twinsun.com>
9167         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
9168         into the initial confdefs.h, to work around a bug in NextStep 3.3
9169         patch 3 reported by Eric Sunshine.
9171 2003-11-15  Kevin Ryde  <user42@zip.com.au>
9173         * doc/autoconf.texi (Using System Type): Revise, showing $host rather
9174         than $target since the latter is not usual, add guidelines on when to
9175         use or not use the system type.
9177 2003-11-12  Derek Price  <derek@ximbiot.com>
9179         * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
9180         typo misrepaired by an auto-spellcheck.
9182 2003-11-12  Akim Demaille  <akim@epita.fr>
9184         * bin/autoreconf.in (&parse_args): Don't call automake with
9185         --force-missing unless it actually supports it.
9186         From Debian #219336.
9188 2003-11-12  Akim Demaille  <akim@epita.fr>
9190         * configure.ac: Bump to 2.59a.
9191         Require 2.59.
9193 2003-11-06  Akim Demaille  <akim@epita.fr>
9195         Version 2.59.
9197 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
9199         * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
9200         so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
9201         and ac_abs_top_srcdir are absolute paths.
9202         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
9204 2003-11-05  Akim Demaille  <akim@epita.fr>
9206         * configure.ac: Bump to 2.58a.
9208 2003-11-05  Kevin Ryde  <user42@zip.com.au>
9210         * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
9211         it provokes a warning from makeinfo about looking like a cross
9212         reference in info output.
9214         * doc/autoconf.texi (Function Portability): Add notes on signal
9215         handler return type, as per AC_TYPE_SIGNAL.
9217 2003-11-04  Akim Demaille  <akim@epita.fr>
9219         Version 2.58.
9220         * doc/standards.texi: Update from master.
9222         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
9224 2003-11-04  Akim Demaille  <akim@epita.fr>
9226         AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
9227         computing the absolute path to d1 in the source hierarchy: it may
9228         not exist at all.  So don't cd into it.
9229         From Alexandre Duret-Lutz.
9230         http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
9232         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
9233         From Paul Eggert, but named after Perl's IO::Spec->catfile.
9234         * doc/autoconf.texi (Programming in M4sh): Document.
9235         * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
9237 2003-11-03  Pavel Roskin  <proski@gnu.org>
9239         * doc/autoconf.texi (Generic Structure Checks): Describe
9240         action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
9242 2003-10-31  Akim Demaille  <akim@epita.fr>
9244         * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
9245         (GNU Fortran): New.
9246         * doc/autoconf.texi (Language Choice): Document.
9247         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
9248         the current language is Fortran.
9250 2003-10-31  Akim Demaille  <akim@epita.fr>
9252         * bin/autom4te.in (&freeze): Use a less likely warning separator
9253         than `\n\n', so that `\n\n\n' is valid in warnings.
9254         Reported by Steve Huston.
9256 2003-10-28  Akim Demaille  <akim@epita.fr>
9258         * Makefile.cfg (local_updates, executable-update): Tweak to be
9259         robust to parallel makes.
9260         Suggested by Alexandre Duret-Lutz.
9262 2003-10-27  Akim Demaille  <akim@epita.fr>
9264         * Makefile.cfg (executable-update): New.
9265         (local_updates): Call it.
9267 2003-10-27  Akim Demaille  <akim@epita.fr>
9269         * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
9270         Don't remove core.* as it may remove valid user files.
9271         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
9272         (AC_FUNC_UTIME_NULL): Likewise.
9274 2003-10-23  Akim Demaille  <akim@epita.fr>
9276         Version 2.57g.
9277         * config/config.guess, config/config.sub: Upgrade from masters.
9279 2003-10-23  Akim Demaille  <akim@epita.fr>
9281         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
9282         AC_COMPILE_IFELSE that use break skip the clean up.  So do it by
9283         hand...
9285 2003-10-23  Akim Demaille  <akim@epita.fr>
9287         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
9288         Don't forget to remove conftest.err.
9290 2003-10-23  Akim Demaille  <akim@epita.fr>
9292         * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
9293         same object file in $LIBOBJS.
9294         Reported by Alexandre Duret-Lutz & Derek Robert Price.
9295         * doc/autoconf.texi (Generic Functions): Adjust.
9297 2003-10-20  Paul Eggert  <eggert@twinsun.com>
9299         * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
9300         Use 'eval', so that the resulting configure scripts work even if
9301         the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
9303 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
9305         * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
9306         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
9307         (_AC_LINK_IFELSE): Check the werror flag.
9308         * doc/autoconf.texi (Generic Compiler Characteristics): Document
9309         AC_LANG_WERROR.
9310         * NEWS: Mention it.
9312 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
9314         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
9315         _AC_COMPILER_EXEEXT to attempt a link.  If linking fails,
9316         override AC_LINK_IFELSE.
9318 2003-10-15  Paul Eggert  <eggert@twinsun.com>
9320         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
9321         pdksh 5.2.14.  Bug reported by Ralf Corsepius.
9322         * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
9323         Mention /usr/dt/bin/dtksh on Solaris.
9324         (Shell Substitutions): Warn about $((...)).
9325         (Parentheses): New section.
9327 2003-10-15  Kevin Ryde  <user42@zip.com.au>
9329         * doc/autoconf.texi (Function Portability): Add @prindex for exit.
9330         Add putenv and unsetenv.  Add sysconf _SC_PAGE_SIZE.
9332 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
9334         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
9335         cross test.
9337 2003-10-11  Steven G. Johnson  <stevenj@alum.mit.edu>
9339         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
9340         name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
9342 2003-10-10  Andreas Schwab  <schwab@suse.de>
9344         * bin/autoheader.in: Avoid empty first line in --version and
9345         --help output.
9346         * bin/ifnames.in: Likewise.
9348 2003-10-09  Paul Eggert  <eggert@twinsun.com>
9350         * lib/Autom4te/XFile.pm: Don't assume -j is solo.
9351         Issue a more-informative diagnostic.
9352         Problems reported by Eric Sunshine.
9354 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
9356         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
9357         -mGLOB_options_string stuff for Intel ifc, which can cause
9358         _AC_FC_LIBRARY_LDFLAGS to fail.  Use (faster) case for
9359         pattern-matching instead of grep.
9361 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
9363         * doc/autoconf.texi: Document new FC Fortran macros.
9365 2003-10-08  Gary V. Vaughan  <gary@gnu.org>
9367         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
9368         that future autopoint/aclocal/automake/autoreconf will be able
9369         to trace to find where to install local m4 macros.
9370         * doc/autoconf.texi (Input): Document it.
9371         * NEWS: Updated.
9373 2003-10-06  Gary V. Vaughan  <gary@gnu.org>
9375         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
9376         -lcrtbegin.o to list of ignored flags and fix underquoting of
9377         -lcrt[01].o.
9379 2003-10-04  Steven G. Johnson  <stevenj@ab-initio.mit.edu>
9381         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
9382         cache variable instead of $G77 to decide whether to include -O2,
9383         since $G77 is specific to Fortran 77.
9385 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
9387         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
9388         free" flag.  Re-order flags tested into rough order of popularity.
9390 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
9392         * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
9393         arguments so that it can be used with syntax identical to
9394         AC_PROG_F77, and so that we can more easily decide to
9395         remove/deprecate the DIALECT optional argument in the future if it
9396         proves troublesome.
9397         (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
9398         non-freeform-supporting compilers.  Document freeform flags.
9400 2003-10-03  Akim Demaille  <akim@epita.fr>
9402         * configure.ac: Look for emacs, not macs.
9403         Reported by Eric Sunshine.
9405 2003-10-03  Akim Demaille  <akim@epita.fr>
9407         * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
9408         * bin/autoreconf.in (autoreconf_current_directory): Create the
9409         AUX_DIR if needed, for sake of automake --add-missing etc.
9410         Suggested by Alexandre Duret-Lutz.
9412 2003-10-03  Akim Demaille  <akim@epita.fr>
9414         * configure.ac: Quotation and formatting changes.
9415         (EMACS): Don't set it if it is not recent enough to support
9416         autoconf-mode.el.
9417         From Eric Sunshine.
9419 2003-10-02  Akim Demaille  <akim@epita.fr>
9421         * bin/ifnames.in (&scan_file): Skip C++ comments.
9422         From Jeremy Yallop.
9424 2003-10-01  Pavel Roskin  <proski@gnu.org>
9426         * doc/autoconf.texi (Particular Structure Checks):
9427         Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
9429 2003-10-01  Akim Demaille  <akim@epita.fr>
9431         Version 2.57f.
9433 2003-09-30  Paul Eggert  <eggert@twinsun.com>
9435         * lib/Autom4te/XFile.pm: Use Errno.
9436         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
9437         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
9439 2003-09-30  Akim Demaille  <akim@epita.fr>
9441         * config/announce-gen (&print_news_deltas): Extracted from...
9442         (&print_changelog_deltas): here.
9443         (&news_file): Rename as...
9444         (@news_file): this.
9446 2003-09-30  Nicolas Joly  <njoly@pasteur.fr>
9448         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
9449         have been created when invoking the compiler.
9450         * tests/fortran.at (GNU Fortran 77): Quote $G77.
9452 2003-09-29  Akim Demaille  <akim@epita.fr>
9454         Version 2.57e.
9456         * config/mkinstalldirs: Upgrade.
9458 2003-09-28  Paul Eggert  <eggert@twinsun.com>
9460         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
9461         Problem reported by Lars J. Aas in
9462         <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
9463         (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
9464         "test -d ./-p && rmdir ./-p".  Suggested by Andreas Schwab in:
9465         http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
9467 2003-09-26  Akim Demaille  <akim@epita.fr>
9469         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
9470         directory for AC_CONFIG_COMMANDS' first argument exists.
9471         This makes valid the invocation of _AC_SRCPATH that follows.
9472         Reported by Eric Sunshine.
9473         * doc/autoconf.texi (Configuration Commands): Adjust.
9475 2003-09-26  Akim Demaille  <akim@epita.fr>
9477         * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
9478         Reported by Ralf Corsepius.
9480 2003-09-26  Akim Demaille  <akim@epita.fr>
9482         * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
9483         arguments.
9484         Actually, use AU_ALIAS.
9485         From Bruno Haible.
9487 2003-09-26  Paul Eggert  <eggert@twinsun.com>
9489         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
9490         rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
9491         Problem reported by Eric Sunshine in:
9492         http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
9494 2003-09-26  Akim Demaille  <akim@epita.fr>
9496         The test suite are sometimes assigning timings incorrectly.
9497         Reported by Henk Krus.
9498         Diagnosed by Nicolas Joly.
9500         * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
9501         AT_help_all.
9502         Instead of making AT_help a sequence of assignments to grow
9503         $at_help_all, just make AT_help_all be the growing contents of
9504         $at_help_all, and make a single assignment in...
9505         (AT_INIT): here.
9506         (at_times_skip): Flip the meaning and rename as...
9507         (at_times_p): this.
9508         (AT_INIT): When summarizing the test that ran, remove
9509         $at_times_file after use, and check it is present before trying to
9510         use it.
9512 2003-09-25  Akim Demaille  <akim@epita.fr>
9514         Version 2.57d.
9516         * bin/Makefile.am (edit): Handle '@configure_input@'.
9517         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
9518         (ifnames): chmod -w.
9519         * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
9520         executables, not bin/ executables!  Otherwise all the magic needed
9521         to find non installed files is turned off.  This caused a failure
9522         of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
9523         as found in its environment (sent by tests/autoreconf): pointing
9524         to bin/autom4te that could not find its files.
9525         * tests/mktests.sh: Force the replacement of generated files, for
9526         the sake of "mv" program that are interactive when overwriting a
9527         -w file.
9528         * config/install-sh: Upgrade from CVS Automake.
9530 2003-09-23  Paul Eggert  <eggert@twinsun.com>
9532         * doc/autoconf.texi (Limitations of Builtins): Document test -h
9533         versus test -L issues.
9535 2003-09-23  Daniel Jacobowitz  <drow@mvista.com> and
9536             Paul Eggert  <eggert@twinsun.com>
9538         Trivial change to support GCC's configuration procedure.
9539         * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
9540         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
9541         about inconsistency if the preprocessor is set to give errors for
9542         any warning.
9543         * doc/autoconf.texi (C Compiler Characteristics): Document this.
9545 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
9547         * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
9548         and XFile.pm from Automake.
9549         * lib/Autom4te/XFile.pm: Update from Automake.
9551 2003-09-12  Akim Demaille  <akim@epita.fr>
9553         Version 2.57c.
9555 2003-09-12  Akim Demaille  <akim@epita.fr>
9557         * config/config.guess, config/config.sub, config/missing,
9558         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
9559         from masters.
9561 2003-09-12  Akim Demaille  <akim@epita.fr>
9563         * doc/autoconf.texi (Header Portability): Promote linux/types.h,
9564         not asm/types.h.
9566 2003-09-11  Akim Demaille  <akim@epita.fr>
9568         * doc/autoconf.texi (Header Portability): linux/random.h.
9569         From Peter Hendrickson.
9571 2003-09-10  Akim Demaille  <akim@epita.fr>
9573         * tests/mktests.sh (au_exclude_egrep): Make it harder to be
9574         willing to edit the output files.
9576 2003-09-10  Akim Demaille  <akim@epita.fr>
9578         * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
9579         and AC_FC_FREEFORM.
9580         * tests/mktests.sh: Skip AC_FC_SRCEXT.
9581         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
9583 2003-09-09  Akim Demaille  <akim@epita.fr>
9585         * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
9586         Reported by Gary Vaughan.
9587         * bin/autom4te.in (handle_m4): Likewise.
9589 2003-09-09  Akim Demaille  <akim@epita.fr>
9591         * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
9592         trailing files.
9594 2003-09-07  Paul Eggert  <eggert@twinsun.com>
9596         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
9597         Improve the accuracy of the wording about obsolescence.
9598         From a suggestion by Ian Lance Taylor in
9599         <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
9601 2003-09-05  Paul Eggert  <eggert@twinsun.com>
9603         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
9604         for the benefit of g77 3.2.  Fix suggested by Steven G. Johnson.
9606 2003-09-04  Akim Demaille  <akim@epita.fr>
9608         * tests/mktests.sh (ac_exclude_list): Fix the filtering of
9609         AC_FUNC_WAIT3.
9611 2003-09-04  Akim Demaille  <akim@epita.fr>
9613         * bin/autom4te.in: Use &fatal where more appropriate than &error.
9614         (freeze): When exiting, use $exit_code.
9615         * lib/autoconf/fortran.m4: Comment changes.
9617 2003-09-04  Akim Demaille  <akim@epita.fr>
9619         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
9621 2003-09-02  Steven G. Johnson  <stevenj@alum.mit.edu>
9623         Add support for newer Fortran dialects.  The F77 interface is
9624         unchanged, and continues to support Fortran 77.  New FC macros
9625         correspond to all the old F77 macros, with output variables FC,
9626         FCFLAGS, and FCLIBS.  AC_PROG_FC defaults to picking the newest
9627         available dialect, but older dialects can be specified.  There are
9628         new macros AC_FC_SRCEXT to set the source extension, and
9629         AC_FC_FREEFORM to accept free-form source files.
9631         * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
9632         New macros.
9633         (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
9634         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
9635         _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
9636         _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
9637         AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
9638         AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
9639         _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
9640         _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
9641         AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
9642         _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
9643         AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
9644         _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
9645         AC_FC_SRCEXT, AC_FC_FREEFORM):
9646         New macros.
9647         (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
9648         AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
9649         AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
9650         Rewrite in terms of the above.
9651         (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
9652         * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
9653         * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
9654         AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
9656 2003-09-02  Paul Eggert  <eggert@twinsun.com>
9658         * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
9659         Document problems with timestamp resolution that 'make', 'cp -p', and
9660         'touch -r' have.
9662 2003-08-27  Akim Demaille  <akim@epita.fr>
9664         * tests/m4sugar.at (cross_warning): Make sure to enable the
9665         output, so that we can track spurious m4sugar output.
9666         * tests/local.at: Require 2.57.
9667         (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
9668         are defaulted by AT_CHECK anyway.
9669         Use AT_CHECK_AUTOM4TE.
9670         * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
9671         missing dnl.
9673 2003-08-27  Akim Demaille  <akim@epita.fr>
9675         * bin/autoheader.in: Issue the "Using auxiliary..." message only
9676         when -Wobsolete is set.
9677         Set it on by default.
9678         Suggested by Klee Dienes.
9680 2003-08-27  Akim Demaille  <akim@epita.fr>
9682         * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
9683         documentation.
9684         From Guido Draheim.
9686 2003-08-26  Akim Demaille  <akim@epita.fr>
9688         * doc/autoconf.texi (Output): Make clear that one can run code
9689         after AC_OUTPUT.
9691 2003-08-25  Akim Demaille  <akim@epita.fr>
9693         * config/announce-gen, GNUmakefile, Makefile.maint: Update from
9694         CVS Bison.
9696 2003-08-25  Alexandre Duret-Lutz  <adl@gnu.org>
9698         * bin/autoreconf.in (parse_args): Do not pass --no-force to
9699         Automake versions prior to 1.8.
9701 2003-08-25  Akim Demaille  <akim@epita.fr>
9703         * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
9704         From Ville Karaila.
9706 2003-08-24  Akim Demaille  <akim@epita.fr>
9708         * configure.ac: Bump to 2.57c.
9710 2003-08-22  Akim Demaille  <akim@epita.fr>
9712         Version 2.57b.
9714         * Makefile.cfg (local-checks-to-skip): New.
9715         * Makefile.maint (local-check): Rename as...
9716         (local-checks-available): this.
9717         (local-check): New.
9719         * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
9720         * configure.ac: Require Automake 1.7.6.
9722 2003-08-22  Akim Demaille  <akim@epita.fr>
9724         Output stack traces in warnings.
9726         * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
9727         Replace the former...
9728         (m4_warn): Pass the call stack to _m4_warn.
9729         * bin/autom4te.in: Adjust to output the call stack.
9730         * tests/m4sugar.at (m4@&t@_warn): Adjust.
9732 2003-08-22  Akim Demaille  <akim@epita.fr>
9734         * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
9735         * bin/autom4te.in: Adjust.
9737 2003-08-21  Akim Demaille  <akim@epita.fr>
9739         * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
9740         (&verbose): Remove.
9741         (&getopt): Adjust the note and verb channels, depending upon
9742         --verbose.
9743         * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
9744         * bin/autoupdate.in: Adjust.
9745         Use &verb, not &verbose.
9747 2003-08-21  Akim Demaille  <akim@epita.fr>
9749         * bin/autoheader.in (&parse_args): Use &parse_warnings and
9750         &parse_WARNINGS.
9751         ($help): Use Autom4te::ChannelDefs::usage.
9752         * bin/autoscan.in: Use Autom4te::ChannelDefs.
9753         * lib/Autom4te/General.pm: Don't export error: you don't own it.
9755 2003-08-21  Akim Demaille  <akim@epita.fr>
9757         First stab at preserving warnings between calls to autom4te,
9758         including when the cache is used.
9760         There are still several issues: (i) there are too many runs of m4
9761         (one for include, one for warnings, and some more), (ii) warnings
9762         spreading on several lines are not handled gracefully, (iii) the
9763         code meant to have the call stack display for errors does not work
9764         (its handling should move from m4 to autom4te).
9766         * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
9767         Use them.
9768         (@preselect): Add m4_warn.
9769         ($exit_status): Remove, use $exit_code.
9770         ($help): Use Autom4te::ChannelDefs::usage.
9771         (&handle_m4): No longer define the m4_warnings.
9772         At each run, extract and report the warnings.
9773         Always cache the result, including if the exit status is on
9774         failure, since if nothing changes, we should result in the same
9775         failure, hence we can use the cache.
9776         * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
9777         (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
9778         Remove.
9779         (m4_warn): Redefine as a do-nothing: it is its invocation that
9780         matters, as warnings are now reported via traces.
9781         * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
9782         the contents of m4_warn: make it _call_ m4_warn, so that tracing
9783         the latter reveals calls to the former.
9785         Adjust the tests.
9787         * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
9789 2003-08-21  Akim Demaille  <akim@epita.fr>
9791         * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
9792         Use them.
9794 2003-08-21  Akim Demaille  <akim@epita.fr>
9796         * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
9797         forward order.
9798         * lib/Autom4te/ChannelDefs.pm: Doc typos.
9799         (&parse_warnings): Accept a list of warning requests.
9800         (&usage): Return a string, not a side effect.
9801         (cross): New warning category.
9803 2003-08-21  Akim Demaille  <akim@epita.fr>
9805         * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
9806         (&require_configure_ac): Accept an optional directory argument.
9807         ($configure_ac): Remove.
9808         * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
9809         (&catfile): Remove.
9810         * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
9811         * bin/autoscan.in: Adjust.
9813 2003-08-20  Akim Demaille  <akim@epita.fr>
9815         * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
9816         Reported by Alexandre Duret-Lutz.
9818 2003-08-20  Akim Demaille  <akim@epita.fr>
9820         * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
9821         * bin/autom4te: Adjust.
9822         In particular, be Autoconf tools are really silent when properly
9823         working, bind the verbosity of the 'note' channel to $verbose.
9824         * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
9825         (&xsystem, &contents): Remove, since they are exported by...
9826         * lib/Autom4te/FileUtils.pm: this.
9827         More perldoc.
9828         * lib/Autom4te/General.pm (&up_to_date_p): Move to...
9829         * lib/Autom4te/FileUtils.pm: here.
9831 2003-08-20  Akim Demaille  <akim@epita.fr>
9833         * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
9834         * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
9835         from CVS Automake.
9837 2003-08-20  Akim Demaille  <akim@epita.fr>
9839         * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
9840         (autom4te-update): New.
9841         * Makefile.cfg (update): Bind autom4te-update.
9843 2003-08-19  Derek Price  <derek@ximbiot.com>
9845         * lib/autotest/general.m4: Comment various HELP_* diversions.
9846         (PARSE_ARGS_BEGIN): New section for option parsing related
9847         initialization.
9848         (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
9849         package specific options and associated help.
9851 2003-08-19  Akim Demaille  <akim@epita.fr>
9853         * config/announce-gen, Makefile.cfg: New.
9854         * Makefile.am: Adjust.
9855         * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
9857 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
9859         * lib/autom4te.in (Automake-preselections): Preselect
9860         AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
9861         and m4_sinclude.
9863 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
9865         * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
9866         (Autoconf-without-aclocal-m4): ... this new language.
9867         * doc/autoconf.texi (autom4te Invocation): Mention
9868         Autoconf-without-aclocal-m4.
9870 2003-08-18  Derek Price  <derek@ximbiot.com>
9872         * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
9873         RUN-IF-PASS optional arguments.
9875 2003-08-18  Derek Price  <derek@ximbiot.com>
9877         * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
9879 2003-08-16  Derek Price  <derek@ximbiot.com>
9881         * doc/autoconf.texi (Writing testsuite.at): Document defaults for
9882         STDOUT & STDERR arguments.
9884 2003-08-14  Derek Price  <derek@ximbiot.com>
9886         * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
9887         DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
9888         shorter column three.  Add DESCRIPTION to log file content.
9890 2003-08-13  Derek Price  <derek@ximbiot.com>
9892         * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
9893         output.
9895 2003-08-12  Derek Price  <derek@ximbiot.com>
9897         * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
9898         (AT_CHECK_NOESCAPE): Move core functionality to...
9899         (_AT_CHECK): ...this new macro.
9901 2003-08-07  Derek Price  <derek@ximbiot.com>
9903         * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
9904         (AT_CHECK_NOESCAPE): ...to this new macro.
9906 2003-07-31  Paul Eggert  <eggert@twinsun.com>
9908         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
9909         in Bash 2.01.  Problem reported by Brian Gough in
9910         <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
9912 2003-07-25  John W. Eaton  <jwe@bevo.che.wisc.edu>
9914         * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
9915         -lcrt1.o, for OS X.  (trivial change)
9917 2003-07-07  Paul Eggert  <eggert@twinsun.com>
9919         * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
9920         inside '#ifndef __cplusplus'.  Problem reported by
9921         Bob Friesenhahn.
9923 2003-07-06  Bill Clarke  <llib@computer.org>
9925         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
9926         'long', not 'int', for benefit of Sun's recent C++ compilers
9927         (trivial change).  See:
9928         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
9929         (This really should be 'intptr_t', not 'long', but that would
9930         take more work.)
9932 2003-06-25  Akim Demaille  <akim@epita.fr>
9934         * lib/Makefile.am (autom4te.cfg): Make it read only.
9935         Depend on Makefile since it contains substitutions.
9936         From Paolo Bonzini.
9937         * lib/autom4te.in (args): Add local.at? for Autotest args.
9938         This change was made on autom4te.cfg which is generated.
9939         Reported by Raja R. Harinath.
9941 2003-06-25  Akim Demaille  <akim@epita.fr>
9943         * doc/autoconf.texi (Header Portability): sys/mount.h.
9944         From Gareth McCaughan.
9946 2003-06-23  Akim Demaille  <akim@epita.fr>
9948         * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
9949         not all of them.  This fixes 1. the fact that when testing
9950         Autoconf there are many many config.log, 2. the incorrect use of
9951         top_srcdir to find config.log.
9952         Don't mix the detailed output of failed test with the summary of
9953         failures.  Rather, append detailed log afterwards.
9955 2003-06-23  Akim Demaille  <akim@epita.fr>
9957         * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
9958         always run: output config.log on $at_group_log.
9960 2003-06-23  Akim Demaille  <akim@epita.fr>
9962         * tests/torture.at (#define header templates): Don't use quotes in
9963         C++ comments as it puzzles Emacs' sh font-lock-mode.
9965 2003-06-23  Akim Demaille  <akim@epita.fr>
9967         * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
9968         * lib/autom4te.cfg (args): Add local.at? for Autotest args.
9969         * tests/atspecific.m4: Rename as...
9970         * tests/local.at: This.
9971         * tests/suite.at: Move the globals into...
9972         * tests/local.at: here.
9973         * tests/Makefile.am: Adjust.
9974         * doc/autoconf.texi (testsuite Scripts): Adjust.
9976 2003-06-21  Kevin Ryde  <user42@zip.com.au>
9978         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
9979         error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
9980         ensuring we add -std1 for full-ANSI.
9982         * doc/autoconf.texi (hdrindex): New macro.
9983         Add index entries for portability of various standard header files.
9985 2003-06-20  Akim Demaille  <akim@epita.fr>
9987         * configure.ac: Bump to 2.57b.
9989 2003-06-20  Akim Demaille  <akim@epita.fr>
9991         Version 2.57a.
9993 2003-06-20  Akim Demaille  <akim@epita.fr>
9995         * bin/autom4te.in: Don't rely on $HOME being defined.
9996         Reported by Marc Espie as PR/233.
9998 2003-06-20  Akim Demaille  <akim@epita.fr>
10000         * lib/autotest/general.m4: Use at_times_file only if used.
10001         From Nicolas Joly.
10003 2003-06-20  Akim Demaille  <akim@epita.fr>
10005         * config/config.guess, config/config.sub, config/elisp-comp,
10006         * config/install-sh, config/mkinstalldirs, doc/standards.texi:
10007         Update from masters.
10009 2003-06-11  Paolo Bonzini  <bonzini@gnu.org>
10011         * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
10012         * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
10013         (TEST_SCRIPT): New diversion.
10014         (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
10015         (AT_CLEANUP): ...to here.  Undivert TEST_SCRIPT.
10016         (AT_INIT): Support for expected failures.
10018 2003-06-02  Akim Demaille  <akim@epita.fr>
10020         * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
10021         changes.
10022         * lib/Autom4te/General.pm (&backname): Remove, no longer used by
10023         Autoconf nor Automake.
10024         (&contents): New, from Automake.
10025         PODify.
10027 2003-05-28  Paul Eggert  <eggert@twinsun.com>
10029         * NEWS, doc/autoconf.texi (Particular Functions),
10030         lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
10031         is the inverse of localtime.
10033 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
10035         * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
10036         (handle_exec_errors): New function.  Work around $! being
10037         altered by WEXITSTATUS.
10038         (xqx, xsystem): Use handle_exec_errors.
10040 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
10042         * lib/Autom4te/General.pm (END): Rewrite exit code processing.
10043         Do not call `_exit()', simply modify `$?'.
10044         (xsystem): Reset $! before running system, and check it afterward.
10045         * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
10046         63 for version mismatches.
10048 2003-05-23  Akim Demaille  <akim@epita.fr>
10050         * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
10051         Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
10052         the middle of a line).
10053         * lib/m4sugar/m4sugar.m4: Likewise.
10054         Remove useless spaces in comments.
10056 2003-05-23  Akim Demaille  <akim@epita.fr>
10058         * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
10059         exit 63, so that we (or Automake's "missing") can tell the
10060         difference with a plain failure.
10061         * doc/autoconf.texi (Notices): Adjust.
10063 2003-05-23  Akim Demaille  <akim@epita.fr>
10065         * Makefile.am, bin/Makefile.am, config/Makefile.am,
10066         * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
10067         White spaces cleanup.
10069 2003-05-22  Jim Meyering  <jim@meyering.net>
10070             Paul Eggert  <eggert@twinsun.com>
10072         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
10073         Remove `#include <stdlib.h>' from the list; we should never
10074         make confdefs.h include <stdlib.h> or <cstdlib>, because the
10075         resulting namespace pollution would cause other tests to fail.
10076         Configure scripts run with some older versions of g++ and HP's
10077         aCC would fail due to such an #include.  Problems reported by
10078         Matthew Mueller in <http://bugs.debian.org/120704> and by
10079         Keith Bostic in
10080         <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
10081         In the test, use the test declaration before including <stdlib.h>,
10082         as that's closer to how it'll be used.
10084 2003-05-23  Akim Demaille  <akim@epita.fr>
10086         * doc/autoconf.texi (Header Portability): ucred.h.
10087         From Ian Redfern.
10089 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
10091         Overhaul Autotest's logging: generate separate log files
10092         in testsuite.dir/NNN/testsuite.log, and append them to
10093         testsuite.log instead of re-running the test verbosely.
10095         * lib/autotest/general.m4 (AT_INIT): Use a single redirected
10096         file descriptor, write 0 to at_status_file instead of setting
10097         at_status=0, initialize some new variables (at_status_file,
10098         at_group_log, at_suite_log, at_tee_pipe).  Remove the cruft
10099         to rerun the tests, instead append the at_group_log to the
10100         at_suite_log when a test fails.
10101         (AT_SETUP): pipe the test case's output into at_tee_pipe,
10102         with the AS_MESSAGE_LOG_FD redirected to stdout.
10103         (AT_CLEANUP): save the output status in $at_status_file
10104         and restore it, redirect the AS_MESSAGE_LOG_FD back to
10105         its original place.
10106         (AT_CHECK): since tests are run with a redirected stdout,
10107         and used to be re-run in verbose mode, turn some $at_verbose
10108         into echo, and don't redirect the output of testing stdout
10109         and stderr.
10111         * lib/autotest/autoconf.texi (testsuite Scripts): Update
10112         the name of the debugging directory and information about
10113         its contents.
10115 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
10117         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
10118         parameter.
10120 2003-05-22  Akim Demaille  <akim@epita.fr>
10122         * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
10123         * lib/autoconf/fortran.m4 lib/autoconf/general.m4
10124         * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
10125         * lib/autoconf/status.m4: Fix and adjust copyright notices.
10127 2003-05-22  Akim Demaille  <akim@epita.fr>
10129         * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
10130         * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
10131         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
10132         * lib/autoconf/general.m4, lib/autoconf/headers.m4,
10133         * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
10134         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
10135         * lib/autoconf/status.m4, lib/autoconf/types.m4,
10136         * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
10137         * tests/atspecific.m4, tests/base.at, tests/compile.at,
10138         * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
10139         * tests/tools.at, tests/torture.at:
10140         Whitespace clean up.
10141         Suggested by Jim Meyering.
10143 2003-05-22  Akim Demaille  <akim@epita.fr>
10145         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
10146         ' \t' as '\t ' so that Emacs' whitespace.el keep it.
10147         Reported by Jim Meyering.
10149 2003-05-22  Akim Demaille  <akim@epita.fr>
10151         * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
10152         Add AC_HELP_STRING  to the obsolete macros section.
10153         Typos.
10154         Use '@.' for sentences that ended in a capital letter.
10155         From Art Haas.
10157 2003-05-22  Akim Demaille  <akim@epita.fr>
10159         * config/config.guess, config/config.sub, config/elisp-comp,
10160         * config/install-sh, config/mdate-sh, config/mkinstalldirs,
10161         * config/texinfo.tex, doc/standards.texi: Update from masters.
10163 2003-05-21  Paolo Bonzini  <bonzini@gnu.org>
10165         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
10166         it to eval.
10168 2003-05-21  Akim Demaille  <akim@epita.fr>
10170         * bin/autoupdate.in ($m4): Fix quotation.
10171         Reported by Martin Mokrejs.
10173 2003-05-19  Paul Eggert  <eggert@twinsun.com>
10175         * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
10176         Remove non-ASCII characters.
10178 2003-05-18  Paolo Bonzini  <bonzini@gnu.org>
10180         * tests/semantics.at (AC_SEARCH_LIBS): New test.
10181         * tests/semantics.at (AC_CHECK_HEADERS_OLD,
10182         AC_CHECK_HEADERS_NEW): New tests.
10184 2003-05-17  Akim Demaille  <akim@epita.fr>
10186         * lib/autoconf/functions.m4: Use the default includes so that
10187         memcmp be declared before being tested.
10188         Reported by Sander Niemeijer.
10189         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
10190         * doc/autoconf.texi (Default Includes): Document
10191         AC_INCLUDES_DEFAULT.
10193 2003-05-17  Akim Demaille  <akim@epita.fr>
10195         * lib/autoconf/specific.m4: Include signal.h and unistd.h.
10196         * doc/autoconf.texi (Obsolete Macros): Adjust.
10197         Reported by Werner LEMBERG and Debian Bug 190886.
10199 2003-05-16  Akim Demaille  <akim@epita.fr>
10201         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
10202         user name space clashes.
10203         Reported by Bruno Haible.
10205 2003-05-16  Akim Demaille  <akim@epita.fr>
10207         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
10208         * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
10209         them uniform, and more robust to Perl special characters.
10210         Reported by Martin Mokrejs.
10212 2003-05-14  Akim Demaille  <akim@epita.fr>
10214         * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
10216 2003-05-14  Akim Demaille  <akim@epita.fr>
10218         * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
10219         linux/irda.h.
10221 2003-05-12  Akim Demaille  <akim@epita.fr>
10223         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
10224         message.
10225         From Matthias Andree.
10227 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
10229         * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
10230         and truncate.
10232 2003-05-06  Akim Demaille  <akim@epita.fr>
10234         Don't try to be smart with aclocal 1.8+ because (i) aclocal no
10235         longer updates aclocal.m4 if useless, (ii) if a file m4_included
10236         by aclocal.m4 is changed it might require the importing of another
10237         m4 extension file, i.e., aclocal must be run.
10239         * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
10240         (&parse_args): Use --force with aclocal if required and supported.
10241         (&autoreconf_current_directory): Use &run_aclocal.
10243 2003-05-06  Akim Demaille  <akim@epita.fr>
10245         Lock autom4te's cache.
10247         * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
10248         * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
10249         argument instead of a file name, so that the request file remains
10250         open during the whole autom4te run.
10251         ($icache_file): New.
10252         (&freeze): Lock the $icache_file.
10254 2003-04-29  Derek Price  <derek@ximbiot.com>
10256         * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
10257         seperator with m4_append_uniq().  It doesn't work.
10258         (AT_CLEANUP): Add `;' to end of at_help_all.
10259         (AT_INIT): Allow --keywords to be specified more than once.  When
10260         grepping $at_help_all for keywords, use the field and keyword
10261         seperators to ensure a complete keyword match.  Alter at_prev handling
10262         to support the new --keywords behavior.
10264 2003-04-27  Karl Berry  <karl@freefriends.org>
10266         * doc/autoconf.texi: Make the dir entries in the autoconf manual
10267         align better with others.  I also made some of the individual
10268         entries on one line, for brevity and to make it easier for me to
10269         sort my dir-example file in the Texinfo distribution :).
10271 2003-04-12  Jim Meyering  <jim@meyering.net>
10273         * NEWS: Mention the new macro.
10274         * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
10275         * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
10276         * tests/c.at: Test AC_C_RESTRICT.
10277         * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
10279 2003-04-08  Akim Demaille  <akim@epita.fr>
10281         * bin/ifnames.in: Skip C++ comments.
10282         From Jeremy Yallop.
10284 2003-04-08  Akim Demaille  <akim@epita.fr>
10286         * GNUmakefile (SHELL): Don't assume sh is in /bin/.
10287         From Ilya Zakharevich.
10289 2003-04-08  Akim Demaille  <akim@epita.fr>
10291         * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
10292         net/if.h, stdlib.h.
10294 2003-04-01  Derek Price  <derek@ximbiot.com>
10296         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
10297         from Akim's checkin of 2003-03-29.
10299 2003-04-01  Derek Price  <derek@ximbiot.com>
10301         * tests/torture.at (Configuring subdirectories): Add missing
10302         close-quote for Akim's change from 2003-03-28.
10304 2003-04-01  Akim Demaille  <akim@epita.fr>
10306         * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
10307         (AC, AT, MS): these.
10308         (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
10309         New.
10310         Use them.
10311         * doc/Makefile.am (CLEANFILES): Adjust.
10312         (TEXI2DVI): Make it --batch.
10314 2003-03-31  Derek Price  <derek@ximbiot.com>
10316         * lib/autotest/general.m4: Revert the checkin from 2003-03-27
10317         which removed the main loop.
10318         Thanks to Akim Demaille.
10320 2003-03-29  Akim Demaille  <akim@epita.fr>
10322         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
10323         that starts a GUI.
10324         From Ilya Zakharevich.
10326 2003-03-29  Akim Demaille  <akim@epita.fr>
10328         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
10329         documentation to read is Autoconf's.
10330         Suggested by Paul Eggert.
10332 2003-03-28  Akim Demaille  <akim@epita.fr>
10334         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
10335         reading the section "Present But Cannot Be Compiled" when the
10336         header causes problems.
10338 2003-03-28  Akim Demaille  <akim@epita.fr>
10340         * tests/torture.at (Configuring subdirectories): Require aclocal
10341         1.4, otherwise the test fails, as it does support configure.ac.
10342         This fixes the "test 40 failed" bug reports.
10344 2003-03-28  Akim Demaille  <akim@epita.fr>
10346         * doc/autoconf.texi (C Compiler): `#line' portability.
10347         From Paul Eggert and Nelson H. F. Beebe.
10349 2003-03-27  Derek Price  <derek@ximbiot.com>
10351         * lib/autotest/general.m4: Eliminate main loop and reorganize test
10352         layout in order to allow scripting around test groups.
10354 2003-03-27  Derek Price  <derek@ximbiot.com>
10356         * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
10357         HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
10358         use new diversions in preparation for accepting new arguments and
10359         allowing scripting around tests.
10360         (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
10362 2003-03-26  Derek Price  <derek@ximbiot.com>
10364         * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
10365         obsolete AC_HELP_STRING.
10366         (AC_HELP_STRING): AU_DEFUN to...
10367         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
10368         * tests/m4sh.at (AS_HELP_STRING): New test.
10370         * tests/acgeneral.at: Regenerated.
10372 2003-03-26  Derek Price  <derek@ximbiot.com>
10374         * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
10375         sense.  Verbosify the diversion definitions comment.
10377 2003-03-26  Derek Price  <derek@ximbiot.com>
10379         * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
10380         AS_PREPARE.
10382 2003-03-21  Eric Siegerman  <eric_97@pobox.com>
10384         * doc/autoconf.texi (Present But Cannot Be Compiled):
10385         Grammar fixes and minor rewording. (trivial change)
10387 2003-03-06  Paul Eggert  <eggert@twinsun.com>
10389         Work around a problem noted by Nelson H. F. Beebe with coreutils
10390         4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
10391         2002/05/09) rejects '#line 32768 "configure"' because the line
10392         number overflows.
10393         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
10394         #line directives.
10395         * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
10396         * doc/autoconf.texi (Generating Sources): Document this.
10398 2003-03-01  Richard Dawe  <rich@phekda.freeserve.co.uk>
10400         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
10401         file name for the m4 program, when it has an "exe" file extension.
10402         DJGPP's error messages include the error code in brackets -
10403         remove the error code during normalization.
10405 2003-02-28  Akim Demaille  <akim@epita.fr>
10407         * doc/autoconf.texi (Present But Cannot Be Compiled): New.
10409 2003-02-28  Alexandre Duret-Lutz  <adl@gnu.org>
10411         * doc/autoconf.texi (Limitations of Make): Remove the section
10412         about `$<' in inference rules, it was a bogus interpretation of
10413         an old Automake change.  Discuss NetBSD, FreeBSD, OpenBSD, and
10414         Tru64 make in the "target lookup" section.
10415         (Automake): Automake 1.5+ no longer requires special tools to be
10416         present on the developer's host.
10418 2003-02-26  Richard Dawe  <rich@phekda.freeserve.co.uk>
10420         * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
10421         to a shell that can handle redirection or quoting correctly.
10422         Override SHELL with the shell detected by configure.
10423         Use of $^O suggested by Tim van Holder.
10424         * bin/autom4te.in (BEGIN): Likewise.
10425         * bin/autoreconf.in (BEGIN): Likewise.
10426         * bin/autoscan.in (BEGIN): Likewise.
10427         * bin/autoupdate.in (BEGIN): Likewise.
10428         * bin/ifnames.in (BEGIN): Likewise.
10430         * bin/ifnames.in: Add final newline to help and version messages.
10432         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
10433         to cope with DOS-style absolute paths, when constructing
10434         ${ac_make}.
10436         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
10437         When constructing paths with IFS=:, quote the path. If we're
10438         constructing a DOS-style absolute path, we don't want to split it
10439         on the colon.
10441         * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
10442         in description.
10444 2003-02-25  Pavel Roskin  <proski@gnu.org>
10446         * bin/autoheader.in: Add missing newline when printing
10447         suggestion how change AC_DEFINE call.
10449 2003-02-24  Paul Eggert  <eggert@twinsun.com>
10451         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
10452         2002-09-01 patch by replacing "test -n" with "test -z".
10453         This fixes a bug found by Jeff Painter and reported by Tom Epperly in
10454         <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
10456         * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
10457         to fix a mismatch between example and discussion.
10459 2003-02-24  Kevin Ryde  <user42@zip.com.au>
10461         * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
10462         format starting with "-".
10464 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
10466         * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
10467         is not portable inside Makefile.
10469 2003-02-20  Akim Demaille  <akim@epita.fr>
10471         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
10472         compiler says yeah, but preproc says nope, compiler is right.
10473         Conversely, prompt the reader to send a bug report to the
10474         maintainers of the package, not of Autoconf.
10476 2003-02-20  Klee Dienes  <kdienes@apple.com>
10478         * bin/autoreconf.in (autoreconf_current_directory): Properly
10479         handle an empty aclocal.m4.
10481 2003-02-20  Akim Demaille  <akim@epita.fr>
10483         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
10484         $ac_prefix_program.
10485         From Larry Jones.
10487 2002-12-23  Paul Eggert  <eggert@twinsun.com>
10489         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
10490         innocuous variant befor including <limits.h> or <assert.h>.  This
10491         works around a bug reported by Albert Chin: HP-UX 11i
10492         (and earlier versions) have a <limits.h> that declares
10493         gettimeofday and many other functions.
10495 2002-12-03  Paul Eggert  <eggert@twinsun.com>
10497         Version 2.57.
10499         * NEWS, configure.ac: Update version.
10501         * doc/fdl.texi: Upgrade to FDL version 1.2.
10503         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
10504         nontrivially in main's body, so that f's external declaration is
10505         not optimized away in AIX.  This should fix the bug reported by
10506         Martin Frydl in
10507         <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
10509         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
10510         _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
10511         defined, to support freestanding compilers.  This should fix the
10512         bug reported by Momchil Velkov in
10513         <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
10515         * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
10516         arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
10517         obsolete AC_CHECK_TYPE.  The missing empty arg was reported
10518         by Simon Josefsson in
10519         <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
10521         * Makefile.maint (www-gnu): New macro.
10522         (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
10523         the location has moved.
10525 2002-12-02  Martin Frydl  <martin@systinet.com>
10527         * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
10528         \(.*\) match is too long and there is something more to be checked.
10529         <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
10531 2002-11-15  Akim Demaille  <akim@epita.fr>
10533         Version 2.56.
10535         * config/install-sh: chmod +x.
10536         From Paul Eggert.
10537         * config/move-if-change: Indenting changes.
10538         * Makefile.am (AUTOMAKE_OPTIONS): Move to...
10539         * configure.ac (AM_INIT_AUTOMAKE): here.
10540         Require 1.7.1.
10542 2002-11-14  Akim Demaille  <akim@epita.fr>
10544         Version 2.55.
10546         * config/config.guess, config/config.sub, config/install-sh:
10547         Update from masters.
10549 2002-11-14  Akim Demaille  <akim@epita.fr>
10551         * Makefile.maint: Sync with Bison, i.e.:
10552         (po-check): Scan .l and .y files instead of the
10553         .c and the .h files that they generate.  This fixes the bug
10554         reported by Tim Van Holder in:
10555         <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
10556         Look for N_ as well as for _.  Try to avoid matching #define for
10557         N_ and _.
10558         From Paul Eggert.
10560 2002-11-14  Akim Demaille  <akim@epita.fr>
10562         * doc/autoconf.texi (C Compiler): Compiling several files at once.
10563         From Paul Eggert and Albert Chin-A-Young.
10565 2002-11-14  Akim Demaille  <akim@epita.fr>
10567         * doc/autoconf.texi (C Compiler): Solitary backslashes.
10568         From Paul Eggert and Albert Chin-A-Young.
10570 2002-11-14  Kevin Ryde  <user42@zip.com.au>
10572         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
10573         than assigning in main, to avoid HP cc +O3 optimizing it away.
10575 2002-11-12  Peter Eisentraut  <peter_e@gmx.net>
10577         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
10578         option.  Process --recheck after parsing all options.  Pass -q
10579         option to configure on --recheck.
10580         (AC_OUTPUT): Pass -q from configure to config.status.
10581         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
10582         arguments to record.
10583         * doc/autoconf.texi (config.status Invocation): Document
10584         config.status -q option.
10586 2002-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
10588         * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
10589         Makefile.in if Makefile.am exists.
10590         (output): Strip `.am' from Makefiles.  Don't
10591         output AC_CONFIG_FILES if no Makefiles were found.
10593 2002-11-07  Akim Demaille  <akim@epita.fr>
10595         * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
10596         (local_updates): New.
10597         * Makefile.maint: Update, from CVS Bison.
10598         (local_updates): New.
10600 2002-11-06  Akim Demaille  <akim@epita.fr>
10602         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
10603         declaration in extern "C" too.
10604         Reported by Roberto Bagnara.
10606 2002-11-06  Akim Demaille  <akim@epita.fr>
10608         * tests/torture.at (Configuring subdirectories): Don't use grep
10609         -w.
10610         * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
10611         Reported by Ezra Peisach.
10613 2002-11-05  Akim Demaille  <akim@epita.fr>
10615         * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
10616         Remove.
10617         We _have_ to stop using the old compatibility scheme that tried to
10618         avoid useless backslashes because Libtool 1.4.3 contains a
10619         AC_DEFINE([error_t], [int],
10620         [Define to a type to use for \`error_t' if it is not
10621         otherwise available.])
10622         We _have_ to quote the single quote and backslashes with \.  The
10623         old compatibility scheme saw that ` was backslashed, and therefore
10624         did not quote the single quote.  Hence before this patch, Autoconf
10625         was not compatible with Libtool.
10627 2002-11-04  Paul Eggert  <eggert@twinsun.com>
10629         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
10630         too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
10631         LC_NAME, LC_PAPER, LC_TELEPHONE.
10632         * doc/autoconf.texi (Special Shell Variables): Mention those vars.
10634 2002-11-04  Akim Demaille  <akim@epita.fr>
10636         Version 2.54c.
10638         * Makefile.maint (update, cvs-update, po-update, do-po-update):
10639         New.
10640         * config/texinfo.tex: Update.
10642 2002-11-03  Akim Demaille  <akim@epita.fr>
10644         * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
10645         from...
10646         (&autoreconf): here.
10647         ($help, $make, &parse_args, &autoreconf_current_directory):
10648         Support -m/--make.
10649         * doc/autoconf.texi (autoreconf Invocation): Adjust.
10651 2002-10-31  Bruno Haible  <bruno@clisp.org>
10653         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
10654         Change name of cache variable to ac_cv_func_malloc_0_nonnull.
10655         (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
10656         (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
10657         to ac_cv_func_realloc_0_nonnull.
10658         (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
10660 2002-10-31  Akim Demaille  <akim@epita.fr>
10662         The test suite was no longer checking for trailing envvars and files.
10664         * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
10665         (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
10667 2002-10-31  Akim Demaille  <akim@epita.fr>
10669         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
10670         `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
10671         Make variable, not a shell variable.
10672         Suggested by Bruno Haible.
10674 2002-10-31  Akim Demaille  <akim@epita.fr>
10676         * bin/autom4te.in (load_configuration): Reject #args out of any
10677         language.
10679 2002-10-31  Akim Demaille  <akim@epita.fr>
10681         * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
10682         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
10683         (_AC_RUN_IFELSE): Use it.
10684         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
10685         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
10686         * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
10687         inline it.
10689 2002-10-30  Akim Demaille  <akim@epita.fr>
10691         * bin/autom4te.in (&parse_args, $help): Support --no-cache.
10692         * doc/autoconf.texi (autom4te Invocation): Adjust.
10693         Suggested by Tim van Holder.
10695 2002-10-29  Paul Eggert  <eggert@twinsun.com>
10697         * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
10698         AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
10699         Problem reported by Bruno Haible.
10701 2002-10-29  Akim Demaille  <akim@epita.fr>
10703         * doc/autoconf.texi (Header Templates): Put also in words what the
10704         pictures says to assist free style readers.
10705         (Customizing autom4te): s/--cache=/--cache /.
10707 2002-10-29  Akim Demaille  <akim@epita.fr>
10709         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
10710         sys/wait.h.
10711         sparc_address_test returns void.
10712         Use it with an argument, as prototyped.
10713         From Bruno Haible.
10715 2002-10-29  Akim Demaille  <akim@epita.fr>
10717         * doc/autoconf.texi (Subdirectories): Cygnus dirs have
10718         configure.in, not configure.ac.
10719         Reported by Bruno Haible.
10721 2002-10-29  Akim Demaille  <akim@epita.fr>
10723         * tests/torture.at (Deep Package): New test.
10724         (Configuring subdirectories): Don't use a testSubDir as Autotest
10725         now does it itself.
10727 2002-10-29  Akim Demaille  <akim@epita.fr>
10729         * bin/autoreconf.in (&parse_args, $help): Support --warnings.
10730         * doc/autoconf.texi (Invoking autom4te): Rename as...
10731         (autom4te Invocation): this, for consistency with the other nodes.
10733 2002-10-29  Akim Demaille  <akim@epita.fr>
10735         * lib/autom4te.in (Autoconf): s/automate/autom4te/.
10736         Reported by Ralf Corsepius.
10738 2002-10-29  Akim Demaille  <akim@epita.fr>
10740         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
10741         characters is a back as an `obsolete' warning now.
10742         Reported by Ralf Corsepius.
10744 2002-10-28  Akim Demaille  <akim@epita.fr>
10746         * configure.ac: Bump to 2.54c.
10748 2002-10-28  Akim Demaille  <akim@epita.fr>
10750         Version 2.54b.
10752         * tests/foreign.at (Libtool): Adjust to broken libtoolize.
10754 2002-10-28  Akim Demaille  <akim@epita.fr>
10756         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
10757         m4 executable names, and different GNU M4 version.
10758         Reported by Ezra Peisach and Paul Jarc.
10760 2002-10-27  Akim Demaille  <akim@epita.fr>
10762         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
10763         AC_RUN_IFELSE.
10765 2002-10-27  Akim Demaille  <akim@epita.fr>
10767         * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
10768         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
10769         Die when a simple Fortran program cannot be compiled.
10770         * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
10771         Issue a warning if no function is given.
10773 2002-10-27  Akim Demaille  <akim@epita.fr>
10775         * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
10776         Move the documentation of AC_TRY_RUN to...
10777         (Obsolete Macros): here.
10778         Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
10779         (autoconf Invocation): Remove the duplicates with `invoking
10780         autom4te'.
10781         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
10782         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
10784 2002-10-27  Akim Demaille  <akim@epita.fr>
10786         * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
10787         and AC_LANG_FUNC_LINK_TRY.
10788         (Examining Libraries): Rename as...
10789         (Running the Linker): this.
10790         Document AC_LINK_IFELSE.
10791         Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
10792         (Obsolete Macros): here.
10793         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
10794         AC_TRY_LINK_FUNC nor AC_TRY_LINK.
10795         * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
10796         * lib/autoconf/headers.m4 (AC_USG): Likewise.
10798 2002-10-27  Akim Demaille  <akim@epita.fr>
10800         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
10802         More `check config.log' messages.
10804         * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
10805         * doc/autoconf.texi (Printing Messages): Document it.
10806         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
10807         appropriate.
10808         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
10809         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
10810         (_AC_COMPILER_OBJEXT): Likewise.
10811         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
10812         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
10813         Likewise.
10814         * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
10815         Likewise.
10817         Deprecate macros with unusual interfaces.
10819         * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
10820         (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
10822         Document the new ones, and proper style.
10824         * doc/autoconf.texi (Generating Sources): New.
10825         Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
10826         (Examining Declarations): Rename as...
10827         (Running the Preprocessor): this.
10828         Document AC_PREPROC_IFELSE.
10829         (Examining Syntax): Rename as...
10830         (Running the Compiler): this.
10831         (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
10832         (Obsolete Macros): Move the definition of AC_TRY_CPP and
10833         AC_TRY_COMPILE here.
10835 2002-10-27  Akim Demaille  <akim@epita.fr>
10837         Move sections around.
10839         * doc/autoconf.texi (Customizing autom4te): Remove a lost
10840         sentence.
10841         Reported by Burno Haible.
10842         (Language Choice): Now the first section of...
10843         (Writing Tests): this section.
10844         Make the introduction less C-centric.
10845         (Guidelines, Test Functions): Move to...
10846         (Writing Test Programs): this new section.
10847         (Test Programs): Merge into...
10848         (Run Time): this.
10850 2002-10-27  Akim Demaille  <akim@epita.fr>
10852         * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
10853         autom4te.in that resulted in the need for two `make' runs.
10855 2002-10-27  Akim Demaille  <akim@epita.fr>
10857         * configure.ac: Bump to 2.54b.
10859 2002-10-25  Akim Demaille  <akim@epita.fr>
10861         Version 2.54a.
10863         * Makefile.maint: Update from the Coreutils.
10864         (AMTAR): Remove, obsolete.
10865         (automake_repo): Update to redhat.com.
10866         (cvs_file): New.
10867         Adjust to the fact that ansi2knr is now hosted by Automake.
10868         * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
10869         * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
10870         Update from masters.
10871         * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
10872         autoscan.pre is not to be installed, and autoscan.list is not to
10873         be shipped.
10874         (CLEANFILES): Add autoscan.list.
10875         (autoscan.list): Disable the cache.
10876         * bin/Makefile.am: Include freeze.mk.
10878 2002-10-25  Akim Demaille  <akim@epita.fr>
10880         * bin/autom4te.in (&load_configuration): Take the file as
10881         argument.
10882         (&parse_args): Handle -C, --cache.
10883         ($help): Adjust.
10884         (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
10885         * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
10886         * doc/autoconf.texi (Invoking autom4te): Document --cache.
10887         Now a subsection of...
10888         (Using autom4te): This new section.
10889         (Customizing autom4te): New.
10890         (autom4te.cache): Adjust.
10892 2002-10-25  Akim Demaille  <akim@epita.fr>
10894         * doc/autoconf.texi (Generic Headers): More information on how to
10895         use AC_CHECK_HEADERS.
10897 2002-10-25  Akim Demaille  <akim@epita.fr>
10899         * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
10900         Space changes.
10902 2002-10-25  Akim Demaille  <akim@epita.fr>
10904         * bin/autoscan.in (output): Output AC_PREREQ.
10905         (%needed_macros): Add AC_PREREQ so that configure.ac without one
10906         be reported.
10908 2002-10-23  Akim Demaille  <akim@epita.fr>
10910         * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
10911         document _Bool.
10913 2002-10-23  Akim Demaille  <akim@epita.fr>
10915         * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
10916         Reported by Peter Eisentraut.
10918 2002-10-23  Akim Demaille  <akim@epita.fr>
10920         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
10921         type _Bool.
10922         Fix a typo.
10923         * doc/autoconf.texi (Particular Headers): Adjust according to Paul
10924         Eggert's recommandations.
10926 2002-10-22  Akim Demaille  <akim@epita.fr>
10928         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
10929         Bison, by Paul Eggert.
10930         * doc/autoconf.texi (Particular Headers): Document it.
10932 2002-10-22  Aaron M. Ucko  <amu@alum.mit.edu>
10934         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
10935         `$ac_configure_args'.
10937 2002-10-22  Akim Demaille  <akim@epita.fr>
10939         * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
10940         (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
10941         From Art Haas.
10943 2002-10-22  Akim Demaille  <akim@epita.fr>
10945         Restore the 2002-10-11  Akim Demaille  <akim@epita.fr> patch:
10947         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
10948         (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
10949         (_AC_CHECK_HEADER_NEW): Rename as...
10950         (AC_CHECK_HEADER): this.
10952 2002-10-22  Akim Demaille  <akim@epita.fr>
10954         * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
10955         words about HP-UX cmp: it was actually a user-written cmp.
10957 2002-10-22  Akim Demaille  <akim@epita.fr>
10959         * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
10960         are a few warnings.
10961         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
10962         Quote for Perl '' strings, not "".
10963         * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
10964         strings.
10966 2002-10-22  Akim Demaille  <akim@epita.fr>
10968         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
10969         characters is a syntax warning now.
10970         (_AS_QUOTE): Accept $2 as list of characters to quote.
10971         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
10972         Quote for Perl, not sh.
10973         * bin/autoheader.in: When $debug, report the file which is
10974         `do'ne.
10975         * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
10976         `@', to tickle Perl's lists.
10977         Reported by Carlos Velasco.
10979 2002-10-18  Akim Demaille  <akim@epita.fr>
10981         * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
10982         missing included files _are_ errors.
10983         Thanks to Alexandre Duret-Lutz.
10984         * tests/tools.at (autom4te cache): Adjust.
10985         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
10986         (AT_CHECK_M4SUGAR): Use it.
10987         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
10988         Adjust.
10989         * tests/tools.at (autom4te): Now it does exit 1.
10991 2002-10-17  Akim Demaille  <akim@epita.fr>
10993         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
10994         Fixes the `AC_ARG_VAR' test failures.
10995         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
10996         * lib/freeze.mk (check-forbidden-patterns): New.
10997         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
10998         * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
10999         * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
11000         /dev/null.
11001         Reported months ago by H. Merijn Brand.
11003 2002-10-17  Akim Demaille  <akim@epita.fr>
11005         * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
11007 2002-10-16  Paul Eggert  <eggert@twinsun.com>
11009         * Makefile.maint (wget_files): Remove ansi2knr.c.
11010         (ansi2knr.c-url_prefix): Remove.
11012 2002-10-16  Akim Demaille  <akim@epita.fr>
11014         Because of caching, some files that no longer exist and are no
11015         longer required can still cause errors.
11016         Reported by Alexandre Duret-Lutz.
11018         * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
11019         to frozen files in @ARGV, as @ARGV must remain being a list of
11020         files.  Rather, at M4 call sites, use this...
11021         (&files_to_options): New function.
11022         (&freeze): Use &error.
11023         (&up_to_date): If a file that was included according to the cache
11024         is no longer there, then the output is out dated.
11025         (&main): Don't even check whether a file is up to date is anyway
11026         --force is given.
11027         * tests/tools.at (autom4te cache): New.
11029 2002-10-16  Akim Demaille  <akim@epita.fr>
11031         * bin/autoconf.as: Kill dead options.
11032         * bin/autoupdate.in (&parse_args): Kill old options.
11033         * bin/autoreconf.in (&parse_args): Remove dead options.
11034         Factor some code.
11035         (&autoreconf): Report the directories we enter *and leave*, so
11036         that error messages can be easily located, and use GNU Make
11037         format, so that Emacs' compile mode understands us.
11038         * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
11039         if some file was changed instead of `print'.
11040         * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
11041         (&parse_args): Remove the dead options.
11042         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
11043         autoheader's quiet mode.
11044         (AT_CHECK_AUTOUPDATE): Likewise.
11045         * tests/tools.at (autoupdate): Adjust.
11046         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
11048 2002-10-11  Akim Demaille  <akim@epita.fr>
11050         No longer use CPP to check for the existing of headers: use CC to
11051         check for compilability.
11053         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
11054         (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
11055         (_AC_CHECK_HEADER_NEW): Rename as...
11056         (AC_CHECK_HEADER): this.
11058         * lib/autotest/general.m4 (AT_INIT): Include the failed test
11059         numbers in the Subject suggestion.
11061 2002-10-11  Akim Demaille  <akim@epita.fr>
11063         * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
11064         Suggest using AC_CHECK_DECLS instead.
11066 2002-10-11  Akim Demaille  <akim@epita.fr>
11068         * tests/torture.at (AC_ARG_VAR): Have configure report the value
11069         of `precious'.
11071 2002-10-11  Akim Demaille  <akim@epita.fr>
11073         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
11074         file name to enable parallel executions.
11075         From Sam Varshavchik.
11077 2002-10-08  Akim Demaille  <akim@epita.fr>
11079         * bin/autoreconf.in (&autoreconf): Run autopoint before the first
11080         aclocal invocation, as Gettext macros might not be visible to
11081         aclocal.
11082         Instead of blindly running autopoint, scan configure.ac (not the
11083         traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
11084         Reported by Paul D. Smith.
11086 2002-10-08  Paul Eggert  <eggert@twinsun.com>
11088         Work around problems found when POSIXLY_CORRECT=1 is set.
11089         None of this seems to have anything to do with POSIX, really,
11090         but it's how Perl getopt works.
11091         * bin/autom4te.in (parse_args): Configure GetOpt with
11092         "permute", too.
11093         * doc/autoconf.texi (Invoking autom4te):
11094         --warning -> --warnings.
11095         * lib/autom4te.in: --warning -> --warnings.
11097 2002-09-28  Akim Demaille  <akim@epita.fr>
11099         * doc/autoconf.texi (autom4te.cache): New section.
11101 2002-09-28  Akim Demaille  <akim@epita.fr>
11103         * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
11104         (Automake-preselections): Update.
11105         * bin/autoreconf.in, bin/autoheader.in: Comment changes.
11107 2002-09-28  Akim Demaille  <akim@epita.fr>
11109         * lib/autoscan/autoscan.pre: Move all the remaining rules to...
11110         * lib/autoconf/c.m4, lib/autoconf/functions.m4,
11111         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
11112         * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
11114 2002-09-28  Akim Demaille  <akim@epita.fr>
11116         * tests/torture.at (Configuring subdirectories): Be robust to
11117         users who use config.site to require for a cache: in this case,
11118         the two last configure runs, using two different sets of
11119         arguments, trigger a legitimate error.
11121 2002-09-28  Akim Demaille  <akim@epita.fr>
11123         * tests/m4sh.at (Functions Support, Functions and return Support):
11124         New.
11126 2002-09-28  Akim Demaille  <akim@epita.fr>
11128         * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
11129         autoheader are Perl programs.
11130         (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
11131         (autom4te): Specify that the sources are in the $srcdir.
11132         * doc/autoconf.texi (Installation Directory Variables): Adjust.
11134 2002-09-28  Akim Demaille  <akim@epita.fr>
11136         * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
11137         (tm_zone): Move their rules to...
11138         * lib/autoconf/types.m4: here, using AN_ macros.
11139         * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
11140         (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
11141         (make, mawk, nawk, ranlib, yacc): Similarly, move to...
11142         * lib/autoconf/programs.m4: here.
11143         * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
11144         (ETAGS_FOR_AUTOCONF): New.
11145         Use it.
11147 2002-09-28  Akim Demaille  <akim@epita.fr>
11149         * lib/autoconf/autoscan.m4: New file.
11150         * lib/autoconf/autoconf.m4: Include it.
11151         * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
11152         that were listed in the original autoscan.list.
11153         * lib/autoconf/headers.m4: Similarly with headers.
11154         * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
11155         (.m4.m4f): Don't pass --prepend-include, since that's done by
11156         tests/autom4te itself.
11157         * lib/autoscan/Makefile.am: Include freeze.mk.
11158         (autoscan.list): New target --this file is no longer a source.
11159         (autoscan.pre): New file.
11161 2002-09-28  Akim Demaille  <akim@epita.fr>
11163         * bin/autoscan.in (@kinds): Make them singular.
11164         Adjust all uses.
11165         (&init_tables): When --debug, report the list of rules to ease
11166         tracking changes in autoscan.list.
11167         * lib/autoscan/autoscan.list (function): Strip comments, sort.
11169 2002-09-28  Akim Demaille  <akim@epita.fr>
11171         * lib/autoscan/functions, lib/autoscan/headers,
11172         * lib/autoscan/identifiers, lib/autoscan/makevars,
11173         * lib/autoscan/programs: Merge into...
11174         * lib/autoscan/autoscan.list: this.
11175         * bin/autoscan.in (&init_tables): Adjust.
11177 2002-09-28  Akim Demaille  <akim@epita.fr>
11179         * lib/autoscan/functions, lib/autoscan/headers,
11180         * lib/autoscan/identifiers, lib/autoscan/makevars,
11181         * lib/autoscan/programs: Make the `kind' explicit, i.e., each
11182         `functions' line is now prefixed with `function:'.
11183         * bin/autoscan.in (&init_tables): Adjust.
11185 2002-09-28  Akim Demaille  <akim@epita.fr>
11187         From now on, autoscan files must always map a macro name to a
11188         word: there is no `default' macro for autoscan.
11190         * bin/autoscan.in (&init_tables): Reject entries with no macro at
11191         all.
11192         * lib/autoscan/functions, lib/autoscan/headers: Make the macro
11193         explicit.
11195 2002-09-28  Akim Demaille  <akim@epita.fr>
11197         * bin/autoscan.in (%c_keywords): Remove.
11198         (&used): Keep only track of the words we might be interested in.
11199         (&output_kind): It is no longer needed to look for non active
11200         checks.
11202 2002-09-27  Akim Demaille  <akim@epita.fr>
11204         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
11205         jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
11206         * lib/autoscan/functions: Adjust.
11207         * doc/autoconf.texi (Particular Functions): Adjust.
11209 2002-09-27  Akim Demaille  <akim@epita.fr>
11211         * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
11212         from /tmp.
11213         Thanks to Bill Moseley and Paul Eggert.
11214         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
11215         the tmpdir must be created.
11216         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
11217         dir be in the build tree, instead of $TMPDIR.
11219 2002-09-27  Akim Demaille  <akim@epita.fr>
11221         * bin/autoscan.in: Improve the comments.
11222         (&parse_args): Drop obsolete undocumented options.
11223         (&output_kind): Output warnings.
11224         * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
11225         (getwd): Trigger a warning.
11227 2002-09-26  Akim Demaille  <akim@epita.fr>
11229         * bin/autoreconf.in: Clarify that -s is meaningless without -i.
11230         Reported by Ralf Corsepius.
11231         * doc/autoconf.texi (autoreconf Invocation): Likewise.
11233 2002-09-26  Akim Demaille  <akim@epita.fr>
11235         Single suffix rules and seperated dependencies are not portable.
11237         * doc/autoconf.texi (Installation Directory Variables): Update.
11238         (Limitations of Make): Some about `Single Suffix Rules and
11239         Separated Dependencies'.
11240         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
11241         (ifnames, autoscan, autom4te): Un-factor into several rules.
11243 2002-09-25  Paul Eggert  <eggert@twinsun.com>
11245         * BUGS (Interoperability bugs): New section.  Mention libtool
11246         1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
11248 2002-09-24  Paul Eggert  <eggert@twinsun.com>
11250         Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
11251         make handles suffix-rules differently from GNU make.
11253         * bin/Makefile.am (SUFFIXES, .in): Remove.
11254         (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
11255         Move the body of the old .in rule here.
11257 2002-09-16  Akim Demaille  <akim@epita.fr>
11259         i960 compilers create `b.out' files by default.
11260         Reported by Ralf Corsepius.
11262         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
11263         (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
11265 2002-09-13  Paul Eggert  <eggert@twinsun.com>
11267         * doc/autoconf.texi (Particular Headers): Remove obsolete
11268         reference to `struct timezone' in the description of
11269         AC_HEADER_TIME.
11271 2002-09-13  Akim Demaille  <akim@epita.fr>
11273         Version 2.54.
11275         * config/config.sub, config/config.guess: Update.
11276         * Makefile.maint: Update from bits of the Coreutils 4.5.1.
11277         * Makefile.am: Adjust.
11279 2002-09-13  Akim Demaille  <akim@epita.fr>
11281         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
11282         reading config.log when the compiler is rejected.
11283         Suggested by Guido Draheim.
11285 2002-09-13  Akim Demaille  <akim@epita.fr>
11287         * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
11288         (chdir_init) might hang when stat'ing mounted directories.
11289         Reported by Vance Shipley.
11291 2002-09-12  Akim Demaille  <akim@epita.fr>
11293         * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
11294         the lists.
11296 2002-09-12  Akim Demaille  <akim@epita.fr>
11298         * doc/autoconf.texi (Defining Symbols): Present two different
11299         prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
11300         difference between 1 argument calls, and 2-3 argument calls.
11302 2002-09-12  Peter Eisentraut  <peter_e@gmx.net>
11304         * doc/autoconf.texi: Review grammar and punctuation.
11306 2002-09-11  Paul Eggert  <eggert@twinsun.com>
11308         * doc/autoconf.texi: Fix minor formatting, spelling, and
11309         grammatical typos.
11310         (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
11311         AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
11312         is obsolescent.
11314 2002-09-11  Akim Demaille  <akim@epita.fr>
11316         * doc/autoconf.texi (Questions): Rename as...
11317         (FAQ): this.
11318         (Defining Directories): New.
11320 2002-09-09  Akim Demaille  <akim@epita.fr>
11322         * doc/autoconf.texi (Making testsuite Scripts): Update.
11323         Suggested by Nishio Futoshi.
11325 2002-09-09  Koji Arai  <JCA02266@nifty.ne.jp>
11327         * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
11328         plain `@' is wanted.
11330 2002-09-09  Akim Demaille  <akim@epita.fr>
11332         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
11333         `duplicates', since the algorithm was too naive and could keep
11334         `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
11335         keep `--prefix foo --prefix bar' as `--prefix foo bar'.
11336         Reported by Ralf Corsepius.
11337         * tests/torture.at (Configuring subdirectories): Exercise these
11338         cases.
11340 2002-09-09  Akim Demaille  <akim@epita.fr>
11342         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
11343         looking for a replacement file.
11344         * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
11345         directory is relative.
11346         * doc/autoconf.texi (Generic Functions): Clarify the replacement
11347         directory definition.
11348         Reported by Andreas Schwab and Jim Meyering.
11350 2002-09-06  Akim Demaille  <akim@epita.fr>
11352         * doc/autoconf.texi (Setting Output Variables): Clarify what
11353         precious variables are.
11354         Suggested by Pontus Skoeld.
11356 2002-09-05  Akim Demaille  <akim@epita.fr>
11358         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
11359         (ifnames, autoscan, autom4te): Since we don't only depend on
11360         configure.ac variables (such as VERSION etc.), but also on prefix
11361         and so forth, depend on Makefile, not configure.ac.
11362         Reported by Alexandre Duret-Lutz.
11363         * doc/autoconf.texi (Installation Directory Variables): Adjust.
11365 2002-09-05  Kevin Ryde  <user42@zip.com.au>
11367         * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
11368         doesn't seem to be confined to ia64, just say "some versions".
11370 2002-09-04  Akim Demaille  <akim@epita.fr>
11372         * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
11373         Automake 1.6c.
11374         * Makefile.am (maintainer-clean-local): Remove.
11375         (MAINTAINERCLEANFILES): Remove COPYING.
11377 2002-09-03  Paul Eggert  <eggert@twinsun.com>
11379         * doc/autoconf.texi (Configuration Commands): Remove obsolete
11380         example for AC_CONFIG_COMMANDS_PRE.  Problem reported by Marcus
11381         Brinkmann.
11383 2002-09-03  Akim Demaille  <akim@epita.fr>
11385         * configure.ac: Bump to 2.53d.
11386         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
11387         as of today, on Automake's team suggestion.
11389 2002-09-03  Akim Demaille  <akim@epita.fr>
11391         Version 2.53c.
11393 2002-09-02  Akim Demaille  <akim@epita.fr>
11395         * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
11396         SITE_MACRO_DIR.
11397         * configure.ac: Disable SITE_MACRO_DIR.
11399 2002-09-02  Jim Meyering  <meyering@lucent.com>
11401         * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
11402         i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
11403         Also, tweak grammar: s/make sure to/be sure to/.
11405 2002-09-02  Paul Eggert  <eggert@twinsun.com>
11407         * doc/autoconf.texi (Limitations of Builtins): Explain why logical
11408         directory names are generally preferable to physical names.
11410 2002-09-02  Akim Demaille  <akim@epita.fr>
11412         * lib/Autom4te/General.pm (&update_file): s/die/error/.
11413         Reported by Raja R. Harinath.
11414         * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
11415         * bin/autoupdate.in: Use error instead of die.
11417 2002-09-01  Paul Eggert  <eggert@twinsun.com>
11419         * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
11420         ordinary shell concatenation rather than echo+tr+sed command that
11421         runs afoul of a long-line-related sed bug in Solaris 8.
11423         * bin/autoheader.in (parse_args): --warning -> --warnings.
11425         * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
11426         stdout, as traditional "ls" does.
11427         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
11428         _AC_COMPILER_EXEEXT_O): Likewise.
11429         * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
11431         * bin/autoconf.as: Add --prepend-include option.  This patch was
11432         applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
11433         but bin/autoconf.in is generated automatically from bin/autoconf.as.
11435         * bin/autoconf.in, configure: Regenerate.
11437         * doc/autoconf.texi (Special Shell Variables): Mention
11438         ENV, MAIL, MAILPATH, PS1, PS2, PS4.  Index PWD.
11440         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
11441         MAILPATH and set PS1, PS2, PS4 to default values, to work
11442         around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
11443         For LC_ALL etc, first try to set to "C" as POSIX requires and as
11444         the Autoconf documentation specifies; fall back to "unset" only if
11445         this fails.  Use a shell for-loop for this rather than an m4 loop,
11446         to shorten the output script.
11448 2002-08-30  Paul Eggert  <eggert@twinsun.com>
11450         * doc/autoconf.texi (Special Shell Variables): Mention POSIX
11451         1003.1-2001's requirements for CDPATH.  Give a simpler workaround
11452         for the CDPATH problem.  Document PWD.
11453         (Limitations of Builtins): Document the problem that "cd $foo" and
11454         "ls $foo" may refer to different directories in shells conforming
11455         to POSIX 1003.1-2001.  Use PS1 rather than CDPATH for "unset"
11456         example, since the old example is now out of date.
11458         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
11459         FOO" and "ls FOO" talk about different directories; this catches
11460         problems when POSIX 1003.1-2001 "cd" fails due to symlink
11461         spaghetti.
11463         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
11464         of rolling our own unset.
11465         (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
11466         in practice we needn't worry about CDPATH if unset doesn't work.
11468         * Makefile.in, aclocal.m4, bin/Makefile.in,
11469         config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
11470         lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
11471         lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
11472         lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
11473         tests/Makefile.in: Regenerate with Automake 1.6.3.
11475         * config/config.guess, config/config.sub, config/mkinstalldirs:
11476         Update.
11478         * configure: Regenerate with self.
11480 2002-08-30  Kevin Ryde  <user42@zip.com.au>
11482         * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
11483         default output.
11485 2002-08-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11487         * bin/autom4te.in (Request::load): Correctly test for "do" read
11488         failure.
11490 2002-08-29  Akim Demaille  <akim@epita.fr>
11492         * lib/Autom4te/General.pm (&xqx): New.
11493         (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
11494         hand, which is not portable.
11495         (&error): New.
11496         * bin/autom4te.in: Use them.
11497         Use &error instead of die.
11498         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
11499         Adjust.
11501 2002-08-17  Paul Eggert  <eggert@twinsun.com>
11503         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
11504         default list of compilers to try, since it was long ago superseded
11505         by the ksh fc builtin.  Suggested by Steven G. Johnson.
11507 2002-07-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
11509         * doc/autoconf.texi (Invoking autom4te): End the option table,
11510         fixing a bug introduced by the previous patch.
11511         (Limitations of Make): Add a 'target lookup' subentry in the
11512         'VPATH' entry.  Rewrite all `make' occurences as `@command{make}'.
11514 2002-07-29  Mark D. Roth  <roth@feep.net>
11516         * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
11517         options and use $AUTOM4TE_PATH.
11518         * doc/autoconf.texi: Remove documentation of autom4te
11519         --include-envvar and --site-macro-subdir options and document
11520         use of $AUTOM4TE_PATH.
11521         * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
11522         arguments from each language section.
11524 2002-07-29  Paul Eggert  <eggert@twinsun.com>
11526         * doc/install.texi: Include copyright symbol in copyright notice.
11528         * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
11529         Replace with:
11530         (AM_MAKEINFOFLAGS): New macro.
11531         * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
11532         * Makefile.am (INSTALL): Use the new macros.
11533         Use -o rather than --output, since "missing" does not grok --output.
11535 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
11537         * doc/autoconf.texi (Limitations of Make): Escaped newlines in
11538         comments do not always work. Never trust the exit status of
11539         `make -k'.
11541 2002-07-24  Kevin Ryde  <user42@zip.com.au>
11543         * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
11544         Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
11546 2002-07-23  Paul Eggert  <eggert@twinsun.com>
11548         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
11549         Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
11550         apparently treats PATH="nonexistent" as if it contained ".".
11551         Bug reported by Stefan `Sec' Zehl.
11553 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
11555         * doc/autoconf.texi (Limitations of Make): Mention the special
11556         handling of the obj/ directory by BSD make.
11558 2002-07-20  Kevin Ryde  <user42@zip.com.au>
11560         * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
11561         backslashes.
11563 2002-07-19  Akim Demaille  <akim@epita.fr>
11565         * doc/autoconf.texi (Function Portability): `exit'.
11566         (Programming in M4sh): Ethymology of M4sh.
11568 2002-07-19  Akim Demaille  <akim@epita.fr>
11570         * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
11572 2002-07-18  Akim Demaille  <akim@epita.fr>
11574         Version 2.53b.
11576 2002-07-18  Akim Demaille  <akim@epita.fr>
11578         * config/config.guess, config/config.sub: Update.
11580 2002-07-18  Akim Demaille  <akim@epita.fr>
11582         Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
11583         Automake's parts.
11585         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
11586         * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
11587         * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
11589 2002-07-18  Akim Demaille  <akim@epita.fr>,
11590             Alexandre Duret-Lutz  <duret_g@epita.fr>
11592         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
11593         _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
11595 2002-07-17  Russ Allbery  <rra@stanford.edu>
11597         * doc/autoconf.texi (Initializing configure): Clarify the
11598         description of the tarname default.
11600 2002-07-17  Andreas Buening  <andreas.buening@nexgo.de>
11602         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
11603         ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
11604         latter was not run.
11606 2002-07-17  Akim Demaille  <akim@epita.fr>
11608         * lib/Autom4te/General.pm (find_file): Browse the directories in
11609         the order they are given.
11611 2002-07-17  Akim Demaille  <akim@epita.fr>
11613         * tests/wrapsh.as, tests/wrappl.as: Merge into...
11614         * tests/wrapper.as: this.
11615         * tests/Makefile.am, configure.ac: Adjust.
11617 2002-07-17  Mark D. Roth  <roth@feep.net>
11619         * configure.ac: Add --enable-site-macro-dir option.
11620         * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
11621         * bin/autom4te.in: Add --prepend-include, --include-envvar, and
11622         --site-macro-subdir options.
11623         * bin/autoconf.in: Add --prepend-include option.
11624         * bin/autoheader.in: Add --prepend-include option.
11625         * bin/autoreconf.in: Add --prepend-include option.
11626         * bin/autoscan.in: Add --prepend-include option.
11627         * bin/autoupdate.in: Add --prepend-include option.
11628         * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
11629         macro directory, remove note that include path directories are
11630         used in reverse order, and document --prepend-include option.
11631         * lib/autom4te.in: Use --prepend-include instead of --include.
11632         * tests/wrapsh.in: Use --prepend-include instead of --include.
11634 2002-07-17  Akim Demaille  <akim@epita.fr>
11636         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
11637         tarnames.
11638         * doc/autoconf.texi (Initializing configure): Adjust.
11640 2002-07-17  Akim Demaille  <akim@epita.fr>
11642         * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
11643         (_AC_FUNC_MALLOC): New.
11644         (AC_FUNC_MALLOC): Use the latter.
11645         Define HAVE_MALLOC to 0 if broken.
11646         * doc/autoconf.texi (Particular Functions): Adjust.
11648 2002-07-16  Akim Demaille  <akim@epita.fr>
11650         * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
11651         * doc/autoconf.texi (C Compiler): Adjust.
11653 2002-07-09  Akim Demaille  <akim@epita.fr>
11655         * doc/autoconf.texi: Properly set the ``header'' part.
11657 2002-07-09  Akim Demaille  <akim@epita.fr>
11659         * doc/autoconf.texi (Systemology): Some about Darwin.
11661 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
11663         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
11664         Don't use AC_REQUIRE in AU_DEFUN.
11666 2002-07-09  Art Haas  <ahaas@neosoft.com>
11668         * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
11670 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
11672         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
11673         bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
11674         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
11675         so that Emacs setups GNU style for perl-mode and cperl-mode.
11677 2002-06-27  Paul Eggert  <eggert@twinsun.com>
11679         * config/install-sh: Quote $src.  Prefer || to test's -o option,
11680         as per "Limitations of Builtins".
11681         * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
11682         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
11684         * tests/mktests.sh: Use grep instead of fgrep, as per
11685         "Limitations of Builtins".
11687 2002-06-15  Paul Eggert  <eggert@twinsun.com>
11689         * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
11690         autom4te_perllibdir): Set to top build dir or src dir as appropriate,
11691         so that we consistently test the just-built programs.
11692         * tests/wrappl.as: Likewise.
11694 2002-06-12  Paul Eggert  <eggert@twinsun.com>
11696         * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
11697         name, so that symlinks to 'autoconf' work properly.  Bug reported
11698         by Bruno Haible.
11699         * bin/autoheader.in (AUTOM4TE): Likewise.
11700         * bin/autoreconf.in (autoconf, autoheader): Likewise.
11701         * bin/autoscan.in (autom4te): Likewise.
11702         * bin/autoupdate.in (autom4te): Likewise.
11704         * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
11705         btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
11706         on Solaris 2.5.1.
11708 2002-06-11  Andreas Schwab  <schwab@suse.de>
11710         * doc/autoconf.texi: Add more dir entries.
11712 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
11714         * bin/autom4te.in ($cache): Don't define using `$me', the name
11715         of the cache should not depend on the name under which autom4te
11716         was installed.
11718 2002-06-07  Akim Demaille  <akim@epita.fr>
11720         * tests/tools.at (autoconf: forbidden tokens, basic)
11721         (autoconf: forbidden tokens, exceptions): Adjust to the change of
11722         words in autom4te.in.
11724 2002-06-07  Peter Eisentraut  <peter_e@gmx.net>
11726         * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
11727         _AC_LANG_PROGRAM_C_F77_HOOKS.
11729 2002-06-07  Akim Demaille  <akim@epita.fr>
11731         * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
11732         rename as...
11733         (AC_REPLACE_FNMATCH): this.
11734         * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
11735         AC_FUNC_FNMATCH_GNU.
11737 2002-06-07  Akim Demaille  <akim@epita.fr>
11739         * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
11740         Rosetta Stone for Unix.
11742 2002-06-07  Akim Demaille  <akim@epita.fr>
11744         * bin/autom4te.in (warn_forbidden): When rejecting a token,
11745         suggest m4_pattern_allow.
11746         Suggested by Adam J. Richter.
11748 2002-06-07  Akim Demaille  <akim@epita.fr>
11750         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
11751         ac_config_libobj_dir.
11752         (AC_CONFIG_LIBOBJ_DIR): New.
11753         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
11754         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
11755         Use ac_config_libobj_dir to find the replacement files.
11756         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
11757         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
11758         (AC_REPLACE_FNMATCH_GNU): these.
11759         (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
11760         * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
11761         * tests/mktests.sh (ac_exclude_list): Don't check
11762         AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
11764 2002-06-06  Paul Eggert  <eggert@twinsun.com>
11766         * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
11767         if ln doesn't work.
11768         * NEWS: Likewise.
11769         * doc/autoconf.texi (Configuration Links): Likewise.
11770         (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
11772 2002-06-05  Paul Eggert  <eggert@twinsun.com>
11774         * config/config.guess, config/config.sub, config/texinfo.tex:
11775         Update from masters.
11777 2002-05-29  Paul Eggert  <eggert@twinsun.com>
11779         * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
11780         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
11781         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
11782         Likewise.
11783         * lib/autoconf/Makefile.am (check-local): Likewise.
11784         * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
11785         * lib/autoconf/types.m4 (commentary only): Likewise.
11786         * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
11787         * lib/autotest/Makefile.am (check-local): Likewise.
11788         * lib/m4sugar/Makefile.am (check-local): Likewise.
11789         * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
11790         * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
11792         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
11793         * doc/autoconf.texi (Particular Programs): Document them.
11794         (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
11795         * NEWS: Likewise.
11797 2002-05-27  Paul Eggert  <eggert@twinsun.com>
11799         * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
11800         * NEWS, doc/autoconf.texi (Particular Types): Document it.
11801         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
11802         instead of AC_MBSTATE_T, which never existed.
11804 2002-05-23  Akim Demaille  <akim@epita.fr>
11806         * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
11807         version of Autoconf that is discussed.
11809 2002-05-22  Paul Eggert  <eggert@twinsun.com>
11811         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
11812         from the default list of compilers to try.  Suggested by
11813         Kate Hedstrom.
11814         * NEWS: Document the above.
11815         * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
11817 2002-05-17  Paul Eggert  <eggert@twinsun.com>
11819         * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
11820         the member is itself an aggregate.  Bug reported by Sergey Poznyakoff.
11821         This improves on an earlier suggestion by H. Peter Anvin.
11823 2002-05-16  Paul Eggert  <eggert@twinsun.com>
11825         AC_FUNC_FNMATCH now tests only for POSIX compatibility.
11826         AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
11827         Both macros now accept an optional source-dir arg.
11828         New macro AC_GNU_SOURCE to define _GNU_SOURCE.
11830         * NEWS: Document this.
11831         * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
11833         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
11834         (AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
11835         not for GNU extensions; this undoes part of the 2000-11-03 change,
11836         reverting to 2.13-compatible behavior.
11837         Add new optional argument DIR.
11838         (AC_FUNC_FNMATCH_GNU): New macro.
11840         * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
11842 2002-05-08  Paul Eggert  <eggert@twinsun.com>
11844         * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
11845         Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
11846         and it causes a 'test' syntax error if it fails.
11847         Bug reported by Stephen Gildea.
11849         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
11850         If prototypes are supported, use them to check this at compile-time,
11851         instead of trying to check it at run-time.  If we must do a run-time
11852         check, assume that setvbuf is standard when cross-compiling, as
11853         nonstandard setvbuf occurs only on ancient and unlikely hosts.
11854         Bug reported by Paul D. Smith.
11856         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
11857         argument specifying location of getloadavg.c.  This removes a
11858         FIXME.  This idea was taken from Jim Meyering's implementation in
11859         textutils.
11860         * doc/autoconf.texi (Particular Functions): Document this.
11861         Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
11862         that's what the code does; this fixes a bug reported by
11863         Paul D. Smith.
11865 2002-05-03  Akim Demaille  <akim@epita.fr>
11867         * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
11868         autopoint instead of gettextize.
11869         ($uses_alocal): Rename as...
11870         ($uses_aclocal): this.
11871         * doc/autoconf.texi (autoreconf Invocation): Adjust.
11872         Suggested by Bruno Haible.
11874 2002-05-03  Akim Demaille  <akim@epita.fr>
11876         * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
11878 2002-04-29  Paul Eggert  <eggert@twinsun.com>
11880         * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
11881         files to be 1 second older; just set them to be the same time.
11882         Also, sleep 1 second after the first aclocal, to work around
11883         problems with sub-second time stamps on the input files.
11885 2002-04-29  Thien-Thi Nguyen  <ttn@gnu.org>
11887         * doc/autoconf.texi: Mention "set -e -x" lossage
11888         under node "Limitations of Builtins".
11890 2002-04-29  Akim Demaille  <akim@epita.fr>
11892         * doc/install.texi: Better wording for setting variables when
11893         running configure.
11894         From Christian Cornelssen.
11896 2002-04-29  Akim Demaille  <akim@epita.fr>
11898         * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
11899         of lack of $LINENO support, then the test will compare the $LINENO
11900         in testsuite vs. the lineno in the test file.  This is wrong, of
11901         course.
11902         Be sure to protect it.
11903         Reported by Patrick Welche.
11905 2002-04-25  Akim Demaille  <akim@epita.fr>
11907         * doc/autoconf.texi (Obsolete Macros): Typo.
11908         Reported by Vladimir Volovich.
11910 2002-04-25  Akim Demaille  <akim@epita.fr>
11912         * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
11913         than some of the input files, hence, on the second run of aclocal,
11914         if some of its input are younger, make them older.
11915         Suggested by Paul Eggert.
11917 2002-04-25  Akim Demaille  <akim@epita.fr>
11919         * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
11920         Thanks to Paul Eggert.
11922 2002-04-25  Akim Demaille  <akim@epita.fr>
11924         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
11925         and ac_subst_vars be sh variables containing the list of
11926         AC_SUBST_FILES'ed and AC_SUBST'ed identifiers.  Output them in the
11927         DEFAULT diversion.
11928         (_AC_INIT_PREPARE): Use them to log them.
11929         (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
11930         (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
11931         _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
11932         _AC_SUBST_FILES and _AC_SUBST_VARS.
11933         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
11935 2002-04-24  Akim Demaille  <akim@epita.fr>
11937         * bin/autoreconf.in (autoreconf): Run automake after autoconf and
11938         autoheader, so that automake does not complain about a missing
11939         config.h.in that was to be created.
11941 2002-04-23  Akim Demaille  <akim@epita.fr>
11943         * bin/autoheader.in (parse_args): --warning takes an argument.
11944         Fixes PR/220.
11946 2002-04-22  Peter Eisentraut  <peter_e@gmx.net>
11948         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
11949         and bb.out when cleaning up.
11951 2002-04-22  Akim Demaille  <akim@epita.fr>
11953         Version 2.53a.
11955 2002-04-22  Akim Demaille  <akim@epita.fr>
11957         * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
11959 2002-04-22  Akim Demaille  <akim@epita.fr>
11961         * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
11962         comma.
11963         Reported by Gregory Giannoni.
11965 2002-04-22  Akim Demaille  <akim@epita.fr>
11967         * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
11968         Fixes false failures on Darwin.
11970 2002-04-21  Paul Eggert  <eggert@twinsun.com>
11972         * TODO, bin/autoupdate.in, doc/autoconf.texi,
11973         lib/autoconf/general.m4, lib/autoconf/libs.m4,
11974         lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
11975         tests/tools.at: Minor spelling and grammar fixes.
11977 2002-04-20  Paul Eggert  <eggert@twinsun.com>
11979         * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
11980         ZSH_VERSION fixes.  Bug reported by Raja R Harinath.
11981         * lib/autotest/general.m4 (AT_INIT): Likewise.
11982         * tests/atgeneral.m4 (AT_INIT): Likewise.
11984 2002-04-19  Paul Eggert  <eggert@twinsun.com>
11986         * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
11987         doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
11988         lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
11989         lib/autoconf/functions.m4, lib/autoconf/general.m4,
11990         lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
11991         lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
11992         tests/atspecific.m4, tests/semantics.at, tests/torture.at:
11993         Minor spelling and grammar fixes.
11995         * doc/autoconf.texi: Follow the outline suggested in the GNU
11996         Sample Texts sections of the Texinfo 4.2 manual.  Most
11997         importantly, this makes sure that the copyright notices appear in
11998         all output formats.  You probably need Texinfo 4.2 to generate
11999         the manual now.
12001         Fix some bugs when using "$@" when there might be zero positional
12002         arguments in cases where this matters.
12004         * bin/autoconf.as: Rewrite so that the problem does not come up.
12005         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
12006         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
12007         * lib/autotest/general.m4 (AT_INIT): Likewise.
12009         * bin/autoheader.in: Use 'case' statement to work around problem.
12010         * bin/auto4mte.in: Likewise.
12011         * bin/autoreconf.in: Likewise.
12012         * bin/autoscan.in: Likewise.
12013         * bin/autoupdate.in: Likewise.
12014         * bin/ifnames.in: Likewise.
12016         * doc/autoconf.texi (Shell Substitutions): Document the problem.
12018         * lib/autotest/general.m4 (AT_INIT):
12019         Use Zsh alias to work around problem.
12020         * tests/atgeneral.m4 (AT_INIT): Likewise.
12022         * tests/c.at: We can't have zero arguments, so remove workaround
12023         that is not portable to Zsh.
12025 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
12027         * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
12028         from aclocal.m4 too.
12030 2002-04-12  Akim Demaille  <akim@epita.fr>
12032         * tests/wrappl.as: New, M4sh precursor of wrappl.in.
12034 2002-04-10  Akim Demaille  <akim@epita.fr>
12036         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
12037         workaround for ${1+"$@"}.
12038         * doc/autoconf.texi (Shell Substitutions): Explain it.
12039         From Oliver Kiddle and Peter Stephenson.
12041         Have M4sh perform minimal shell sanitizing.
12043         * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
12044         part into...
12045         (_AS_PREPARE): this new macro.
12046         (AS_PREPARE): New.
12047         (AS_INIT): Invoke AS_SHELL_SANITIZE.
12048         * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
12050         Adjust Autoconf and Autotest.
12052         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
12053         AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
12054         * lib/autotest/general.m4 (AT_INIT): Likewise.
12055         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
12056         Invoke _AS_PREPARE (not AS_PREPARE) in addition to
12057         AS_SHELL_SANITIZE.
12059         Use this M4sh to generate Autoconf's shell scripts.
12061         * tests/wrapsh.as: New, precursor of wrapsh.in.
12062         * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
12063         on Autotest and M4sh.
12064         ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
12065         (wrapsh.in): New target.
12066         * bin/autoconf.as: New, precursor of autoconf.in.
12067         (autoconf.in): New target.
12069 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
12071         * doc/autoconf.texi (Limitations of Make): Mention the issue
12072         with indented comments in rules.
12074 2002-04-09  Andreas Schwab  <schwab@suse.de>
12076         * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
12077         ac_top_builddir when setting ac_abs_top_builddir.
12079 2002-04-06  Kevin Ryde  <user42@zip.com.au>
12081         * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
12082         (Portable Shell): Cross reference to Systemology.
12084 2002-04-05  Akim Demaille  <akim@epita.fr>
12086         * bin/autoreconf.in (autoreconf): Be sure to accumulate the
12087         directories when descending in a SUBDIRS.
12088         Reported by Ezra Peisach.
12090 2002-04-04  Andreas Schwab  <schwab@suse.de>
12092         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
12093         contains no literal separators.
12095 2002-04-03  Akim Demaille  <akim@epita.fr>
12097         * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
12098         (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
12099         Use dnl, not the KILL diversion.
12100         Extracted from...
12101         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
12102         (AC_CONFIG_LINKS): here.
12103         Adjust.
12104         Don't use the KILL diversion, as it kills spurious output, which
12105         results in failures being hidden.
12106         Use m4_defn where appropriate.
12107         (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
12108         after the second argument.
12109         Use m4_defn.
12110         * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
12111         syntax, as it is provided by M4sugar.
12112         * tests/torture.at (Multiple AC_CONFIG_FILES): New.
12114 2002-04-03  Andreas Schwab  <schwab@suse.de>
12116         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
12117         expanded if $# <= 2.
12119         * bin/autoreconf.in (autoreconf): Run automake after rerunning
12120         aclocal.
12122 2002-04-03  Akim Demaille  <akim@epita.fr>
12124         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
12125         (_AC_COMPILER_EXEEXT_REJECT): New.
12126         Also recognize *.bb and *.bbg as compilation byproducts.
12127         (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
12128         (_AC_COMPILER_OBJEXT): Use them.
12129         Fixes Debian #138666.
12131 2002-04-02  Peter Eisentraut  <peter_e@gmx.net>
12133         Integrate AC_PROG_CC_STDC into AC_PROG_CC.
12135         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
12136         AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
12137         (AC_PROG_CC): Call _AC_PROG_CC_STDC.
12138         (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
12139         (AC_C_CONST): Same.
12140         (AC_C_INLINE): Same.
12141         (AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
12142         * doc/autoconf.texi, NEWS: Document.
12143         * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
12144         AC_C_CROSS.
12146 2002-04-02  Akim Demaille  <akim@epita.fr>
12148         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
12149         _AS_MKDIR_P_PREPARE.
12151 2002-03-28  Kevin Ryde  <user42@zip.com.au>
12153         * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
12154         to avoid versions of HP C which don't allow that.
12156 2002-03-27  Paul Eggert  <eggert@twinsun.com>
12158         * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
12159         (AS_SHELL_SANITIZE): Invoke it.
12160         (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
12162 2002-03-26  Akim Demaille  <akim@epita.fr>
12164         * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
12166 2002-03-26  Akim Demaille  <akim@epita.fr>
12168         * doc/autoconf.texi (Introduction): The GNATS base moved.
12170 2002-03-25  Paul Eggert  <eggert@twinsun.com>
12172         * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
12173         as POSIX requires, as it doesn't work with Zsh.
12174         * doc/autoconf.texi (Assignments): Document the problem.
12176 2002-03-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
12178         * doc/autoconf.texi (Limitations of Make): Mention more issue
12179         about VPATH, overriding of macros in sub-makes, and handling of
12180         SHELL.
12182 2002-03-21  Paul Eggert  <eggert@twinsun.com>
12184         * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
12185         problem with here-document buffer boundaries.
12187         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
12188         when reinvoking the shell, to work around problems with installers
12189         who put strange things like "cd" commands in their environments.
12191 2002-03-19  Akim Demaille  <akim@epita.fr>
12193         * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
12194         From Aaron Ucko.
12196 2002-03-19  Akim Demaille  <akim@epita.fr>
12198         * bin/autoscan.in (scan_file): Specify the location in `&used'
12199         invocations.
12200         From Nicolas Joly.
12202 2002-03-19  Akim Demaille  <akim@epita.fr>
12204         * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
12205         From Nishio Futoshi.
12207 2002-03-19  Akim Demaille  <akim@epita.fr>
12209         * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
12211 2002-03-18  Paul Eggert  <eggert@twinsun.com>
12213         * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
12214         (Limitations of Usual Tools): Add mkdir section.
12216         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
12217         (AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
12218         back on AS_DIRNAME to compute prefixes otherwise; this is
12219         roughly what mkinstalldirs does.  That way, we need not have
12220         our own filename disassembler.  The old disassembler did not
12221         work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
12223         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
12224         Create at_test_all by a series of assignments,
12225         not by a single assignment of a long string.  The latter causes ksh
12226         version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
12227         presumably because of a buffer overrun.
12229 2002-03-14  Paul Eggert  <eggert@twinsun.com>
12231         * lib/autotest/general.m4 (at_times_skip):
12232         Renamed from at_times.  Now a boolean.
12233         ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
12234         says 'times: not found'.
12236 2002-03-14  Akim Demaille  <akim@epita.fr>
12238         * bin/autoreconf.in (&study_gettextize): New.
12239         (&autoreconf): Handle newest gettextize.
12240         Rerun aclocal if needed.
12241         Suggested by Andreas Schwab.
12243 2002-03-13  Akim Demaille  <akim@epita.fr>
12245         * doc/autoconf.texi (Special Shell Variables): More about IFS.
12247 2002-03-13  Akim Demaille  <akim@epita.fr>
12249         * doc/autoconf.texi (Header Portability): New.
12250         Add information about stdint.h and inttypes.h from Paul Eggert.
12252 2002-03-13  Akim Demaille  <akim@epita.fr>
12254         * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
12255         -p'.
12256         From Bob Proulx.
12258 2002-03-12  Akim Demaille  <akim@epita.fr>
12260         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
12261         m4_require.
12263 2002-03-11  Andreas Schwab  <schwab@suse.de>
12265         * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
12266         does not do it if --with-lispdir is given.
12268 2002-03-08  Akim Demaille  <akim@epita.fr>
12270         Version 2.53.
12272 2002-03-08  Akim Demaille  <akim@epita.fr>
12274         * doc/autoconf.texi (Subdirectories): Clarify that the
12275         subdirectory should exist.
12277 2002-03-08  Akim Demaille  <akim@epita.fr>
12279         * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
12281 2002-03-08  Akim Demaille  <akim@epita.fr>
12283         * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
12284         aliases the actual variables, and modifications of the former
12285         affect the latter.
12287 2002-03-08  Akim Demaille  <akim@epita.fr>
12289         * bin/autom4te.in (&handle_m4): Protect us from corrupted file
12290         because of C-c: have m4 output in tmp files, then mv them.
12292 2002-03-08  Akim Demaille  <akim@epita.fr>
12294         * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
12295         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
12296         * bin/ifnames.in: Copyright update.
12298 2002-03-08  Akim Demaille  <akim@epita.fr>
12300         * doc/autoconf.texi (Invoking autom4te): New.
12302 2002-03-05  Akim Demaille  <akim@epita.fr>
12304         * doc/autoconf.texi (Specifying Names): Clarification suggested by
12305         Kevin Ryde.
12307 2002-03-05  Akim Demaille  <akim@epita.fr>
12309         Version 2.52i.
12311 2002-03-04  Akim Demaille  <akim@epita.fr>
12313         * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
12314         * lib/autoconf/general.m4 (AC_INIT): More informative error
12315         message for LIBOBJ.
12317 2002-03-04  Akim Demaille  <akim@epita.fr>
12319         * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
12320         parallel builds.
12322 2002-03-04  Akim Demaille  <akim@epita.fr>
12324         * doc/autoconf.texi (Transforming Names): Equality between target
12325         and host is irrelevant.
12326         (Specifying Names, Canonicalizing): Remove all references to the
12327         backward compatibility hooks.  Rather, collect them all into...
12328         (Hosts and Cross-Compilation): this new section.
12329         * doc/install.texi (System Type): Ditto.
12330         * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
12331         that `--host' implies cross-compilation.
12333 2002-03-04  Akim Demaille  <akim@epita.fr>
12335         * doc/autoconf.texi (Evaluation Macros): New.
12336         * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
12337         useless.
12338         (_m4_foreach): Define the variant with immediate evaluation so
12339         that it contains exactly the items, not an expression which
12340         evaluation is the current item.
12341         (m4_re_string, m4_re_word): Don't over quote them.
12343 2002-03-04  Akim Demaille  <akim@epita.fr>
12345         Instead of having stacking `shift's evaluated at the end, let
12346         `foreach' loops immediately evaluate them.
12348         * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
12349         $*.  This is the n-th time I change my mind, but hopefully this is
12350         the last...
12351         (m4_lquote): New.
12352         (m4_text_wrap): Use m4_foreach, which is finally correct _and_
12353         efficient.
12354         (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
12355         it was only a hack for m4_text_wrap.
12356         (m4_car2): Remove, replaced by...
12357         (m4_cdr): New.
12358         (_m4_foreach): Adjust.
12359         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
12360         m4_bpatsubst for clarification.
12362 2002-03-04  Akim Demaille  <akim@epita.fr>
12364         * doc/autoconf.texi (Changequote is Evil): New.
12366 2002-03-03  Kevin Ryde  <user42@zip.com.au>
12368         * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
12369         on old systems like SunOS.
12371 2002-03-01  Peter Eisentraut  <peter_e@gmx.net>
12373         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
12374         lib/autoconf/functions.m4, lib/autoconf/general.m4,
12375         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
12376         lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
12377         of messages.
12379 2002-02-28  Akim Demaille  <akim@epita.fr>
12381         * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
12382         message to be sent.
12384 2002-02-28  Kevin Ryde  <user42@zip.com.au>
12386         * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
12388 2002-02-25  Akim Demaille  <akim@epita.fr>
12390         * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
12391         From Akinori Musha.
12393 2002-02-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
12395         * lib/Autom4te/XFile.pm (getline, getlines): New functions,
12396         translate \r\n to \n.
12398 2002-02-07  Akim Demaille  <akim@epita.fr>
12400         Version 2.52h.
12402 2002-02-07  Akim Demaille  <akim@epita.fr>
12404         Fix Autoconf PR/209.
12405         Also reported by Frank Denis.
12407         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
12409 2002-02-07  Akim Demaille  <akim@epita.fr>
12411         Fix Autoconf PR/207:
12412         AC_PREFIX_PROGRAM fails with dashed program names
12414         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
12415         variable when looking for the prefix program.
12416         Now it also works for shell variables.
12418 2002-02-07  Akim Demaille  <akim@epita.fr>
12420         * doc/autoconf.texi (Limitations of Builtins): More about
12421         case/esac.
12423 2002-02-06  Akim Demaille  <akim@epita.fr>
12425         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
12426         case/esac, some shells don't support it.
12427         Reported by Zack Weinberg.
12428         * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
12430 2002-02-06  Akim Demaille  <akim@epita.fr>
12432         * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
12433         sure not to introduce newlines in at_groups.
12434         * lib/autotest/Makefile.am (autotest.m4f): Typo.
12436 2002-02-06  Akim Demaille  <akim@epita.fr>
12438         * tests/torture.at (Configuring subdirectories): Skip if aclocal
12439         is not available.
12441 2002-02-05  Paul Eggert  <eggert@twinsun.com>
12443         * doc/autoconf.texi (Specific Compiler Characteristics):
12444         Describe HP-UX cc bug workaround more accurately.
12445         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
12446         not unsigned long.
12447         * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
12448         cross-compilers, too.  This undoes some of the most recent change
12449         to this file.
12451 2002-02-05  Akim Demaille  <akim@epita.fr>
12453         * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
12454         to make sure they are up to date when `check' is run.
12456 2002-02-05  Akim Demaille  <akim@epita.fr>
12458         * doc/autoconf.texi (Making testsuite Scripts): Document
12459         package.m4.
12461 2002-02-05  Akim Demaille  <akim@epita.fr>
12463         * lib/freeze.mk: New.
12465 2002-02-05  Akim Demaille  <akim@epita.fr>
12467         Implement `autom4te --freeze'.
12469         * bin/autom4te.in (&freeze): New.
12470         * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
12471         * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
12473 2002-02-05  Akim Demaille  <akim@epita.fr>
12475         * bin/autom4te.in (&parse_args): Implement `frozen files are
12476         optional are the sum of the previous files on the command line'.
12477         Also, pass `--reload-state=' on them, so...
12478         (handle_m4): don't.
12479         * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
12480         (M4sh): Rely on M4sugar.
12481         (Autotest, M4sh, M4sugar): Use frozen files.
12483 2002-01-31  Akim Demaille  <akim@epita.fr>
12485         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
12486         * doc/autoconf.texi (Initializing configure): Adjust.
12488 2002-01-30  Akim Demaille  <akim@epita.fr>
12490         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
12491         alphanumeric to `-' instead of `_'.
12493 2002-01-30  Akim Demaille  <akim@epita.fr>
12495         * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
12496         for plain code, the other for cross-compilation code.  The latter
12497         is now run with GCC only.
12498         * doc/autoconf.texi (Compilers and Preprocessors): New.
12500 2002-01-30  Akim Demaille  <akim@epita.fr>
12502         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
12503         values.
12504         * doc/autoconf.texi (Initializing configure): Explain how to
12505         change AC_INIT default values.
12507 2002-01-29  Akim Demaille  <akim@epita.fr>
12509         * tests/torture.at (Configuring subdirectories): Use configure.in,
12510         so that aclocal 1.4 works.
12511         Reported by Alexandre Duret-Lutz and Larry Schmitt.
12513 2002-01-28  Akim Demaille  <akim@epita.fr>
12515         * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
12516         needs an argument.
12518 2002-01-28  Akim Demaille  <akim@epita.fr>
12520         * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
12521         AUTOTEST_PATH *after* it was set.
12522         Don't put `.' in the PATH: the user should be precise and `./' if
12523         needed.  In addition, given that the test suite does some `cd', if
12524         `.' is in the path, the `tested programs' sections will report
12525         programs found in the test suite's directory, while during the
12526         tests (performed in their own directory), these programs are no
12527         longer visible.  In other words, the results is confusing and
12528         useless.
12529         * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
12531 2002-01-24  Akim Demaille  <akim@epita.fr>
12533         Version 2.52g.
12535 2002-01-24  Akim Demaille  <akim@epita.fr>
12537         * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
12538         * doc/autoconf.texi: Finally add Akim as an author.
12540 2002-01-24  Akim Demaille  <akim@epita.fr>
12542         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
12543         (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
12544         Bourne. Use /bin/sh.
12545         From Andreas Buening.
12547 2002-01-24  Akim Demaille  <akim@epita.fr>
12549         * config/config.guess, config/config.sub, config/texinfo.tex:
12550         Update from masters.
12552 2002-01-24  Akim Demaille  <akim@epita.fr>
12554         * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
12555         * config/auxdir.m4, config/cond.m4, config/depend.m4,
12556         * config/init.m4, config/install-sh.m4, config/lispdir.m4,
12557         * config/missing.m4, config/sanity.m4, config/select.m4,
12558         * config/strip.m4: Remove, to ease sync'ing with any version of
12559         Automake.
12561 2002-01-24  Akim Demaille  <akim@epita.fr>
12563         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
12564         (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
12565         Reported by Geir Ove Myhr.
12567 2002-01-21  Akim Demaille  <akim@epita.fr>
12569         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
12571 2002-01-21  Akim Demaille  <akim@epita.fr>
12573         * lib/Autom4te/General.pm (getopt): Use a more GNUish error
12574         message on invalid options.
12575         * bin/autom4te.in (parse_args): Don't use
12576         Autoconf::General::getopt with non valid options.
12578 2002-01-17  Jim Meyering  <meyering@lucent.com>
12580         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
12581         $ac_cv_exeext so we don't use an old, invalid, cached value.
12583 2002-01-11  Akim Demaille  <akim@epita.fr>
12585         * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
12586         Meyering.
12587         * doc/autoconf.texi (Function Portability): Document the strnlen
12588         limitation.
12589         (Particular Functions): Document AC_FUNC_STRNLEN.
12590         * lib/autoscan/functions: Adjust.
12592 2002-01-06  Akim Demaille  <akim@epita.fr>
12594         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
12595         package.m4, since is really depends upon configure.ac, not
12596         configure.
12597         * doc/autoconf.texi (testsuite Scripts): Adjust.
12598         * tests/Makefile.am (package.m4): New.
12599         EXTRA_DIST it since its a source.
12601 2002-01-06  Akim Demaille  <akim@epita.fr>
12603         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
12604         of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
12605         and PACKAGE_BUGREPORT from here...
12606         (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
12607         arguments.
12608         (_AC_INIT_PREPARE): AC_DEFINE these symbols.
12609         * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
12610         (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
12611         * tests/tools.at (autoheader): Adjust.
12612         * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
12614 2002-01-06  Akim Demaille  <akim@epita.fr>
12616         * bin/autoscan.in (scan_file): Use `&used'.
12618 2002-01-03  Akim Demaille  <akim@epita.fr>
12620         * doc/autoconf.texi (Output): Improved wording regarding use of
12621         AC_OUTPUT.
12622         From Olly Betts.
12624 2001-12-18  Kevin Ryde  <user42@zip.com.au>
12626         * doc/autoconf.texi (Function Portability): Add notes on sscanf
12627         sometimes needing writable input.
12629 2001-12-17  Jim Meyering  <meyering@lucent.com>
12631         * doc/autoconf.texi (New Macros): Tweak wording.
12633 2001-12-14  Akim Demaille  <akim@epita.fr>
12635         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
12636         trailing files, don't apply `-rf' to files which might not be
12637         created by configure (core, core.*, and *.core), but just `rm -f'.
12638         Suggested by Jonathan Kamens.
12640 2001-12-14  Aaron M. Ucko  <amu@alum.mit.edu>
12642         * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
12644 2001-12-14  Akim Demaille  <akim@epita.fr>
12646         * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
12648 2001-12-13  Peter Eisentraut  <peter_e@gmx.net>
12650         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
12651         abs_builddir, top_buildpath to abs_top_builddir, srcpath to
12652         abs_srcdir, top_srcpath to abs_top_srcdir.
12653         (_AC_OUTPUT_FILES): Adjust.
12654         * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
12655         * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
12656         * tests/wrappl.in, tests/wrapsh.in: Adjust.
12658 2001-12-12  Steven G. Johnson  <stevenj@alum.mit.edu>
12660         * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
12661         C/Fortran linking on HP/UX, by extracting the Fortran library
12662         search path from the LPATH line in the $F77 -v output.
12664 2001-12-12  Kevin Ryde  <user42@zip.com.au>
12666         * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
12667         forbidden file descriptors table.
12669 2001-11-26  Akim Demaille  <akim@epita.fr>
12671         * bin/autoscan.in (%c_keywords): Build it at top level.
12672         Map to 1 in order to simplify its uses.
12674 2001-11-26  Akim Demaille  <akim@epita.fr>
12676         * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
12677         Remove $filepath, useless.
12678         (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
12679         variables, they are really part of the tokens.
12680         Split the input line on spaces and then look for tokens.
12681         Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
12682         because of `lex$U.$(OBJEXT)'.
12683         (&scan_files): Use "@list" instead of join.
12684         * doc/Makefile.am (CLEANFILES): Add *.fns.
12686 2001-11-26  Akim Demaille  <akim@epita.fr>
12688         * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
12689         Remove, replaced by...
12690         * tests/wrappl.in: Be common for all the Perl executables.
12691         In particular autoscan and autoheader want -I.
12692         * configure.ac: Adjust.
12693         * lib/autoscan/headers: errno.h is portable.
12695 2001-11-26  Akim Demaille  <akim@epita.fr>
12697         * bin/autoscan.in (used): New.
12698         Use it.
12700 2001-11-26  Akim Demaille  <akim@epita.fr>
12702         * bin/autoscan.in (&scan_c_file): Better parsing of CPP
12703         directives.
12704         (&scan_sh_file): Remove a duplicate pattern.
12705         (&check_configure_ac): Use long options.
12706         * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
12708 2001-11-26  Akim Demaille  <akim@epita.fr>
12710         * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
12711         Before, having a line containing the opening of a multi line
12712         comment made the whole line be ignored.
12714 2001-11-26  Akim Demaille  <akim@epita.fr>
12716         * doc/autoconf.texi (Using an Autotest Test Suite): New.
12717         (testsuite Scripts): Be one of its subsection.
12718         (Autotest Logs): New.
12720 2001-11-26  Akim Demaille  <akim@epita.fr>
12722         Test groups are now run two directories deeper.
12724         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
12725         top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
12726         at_top_builddir.
12727         * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
12728         top_srcdir, builddir and top_builddir.
12729         Use `at_*dir' relatively to the directory containing the
12730         suite, use `*dir' when relatively to the current group dir.
12732 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
12734         * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
12735         lib/autoconf/functions.m4, lib/autoconf/headers.m4,
12736         tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
12737         spelling errors.
12739 2001-11-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
12741         * doc/autoconf.texi (Using System Type): Add an example of `case
12742         $host' usage so people quit using `case $target' everywhere.
12744 2001-11-22  Akim Demaille  <akim@epita.fr>
12746         * doc/autoconf.texi (Installation Directory Variables): Englishoes
12747         spotted by Jim Meyering.
12749 2001-11-16  Paul Eggert  <eggert@twinsun.com>
12751         This patch implements a `long double' suggestion by Oliver Kiddle.
12753         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
12754         static, to catch errors if the value isn't known at compile-time
12755         and the compiler supports dynamic arrays.  Change its name from
12756         `_array_' to `test_array' to avoid potential name clashes.
12757         (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
12758         test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
12759         better than double.  Catch a bug in GCC 2.95.2 x86.
12760         * doc/autoconf.texi (C Compiler): Document the above.
12761         * NEWS: Likewise.
12763 2001-11-13  Akim Demaille  <akim@epita.fr>
12765         * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
12766         hand.
12767         * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
12769 2001-11-13  Akim Demaille  <akim@epita.fr>
12771         * lib/autotest/general.m4 (AT_INIT): After having run the test
12772         group, go back to the initial directory, not to at_suite_dir.
12774 2001-11-13  Akim Demaille  <akim@epita.fr>
12776         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
12777         (AT_DATA_AUTOCONF):  Also protect @&t@ from autom4te.
12778         (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
12779         option.
12780         (AT_CHECK_CONFIGURE): Use absolute paths.
12781         (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
12782         The problem is still the old one: there is no means in M4 (that I
12783         know about) to create a defining macro, because there is no means
12784         to create `$1' etc., therefore, the defining macro ``swallows''
12785         all the arguments meant to the defined macro.
12787 2001-11-13  Akim Demaille  <akim@epita.fr>
12789         * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
12790         (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
12791         configure.ac.
12792         * tests/aclocal.m4: Remove, as it is no longer used.
12794 2001-11-13  Akim Demaille  <akim@epita.fr>
12796         * lib/autotest/general.m4: Change `tests?' into `groups?' in
12797         variable names when referring to a single test group, or to
12798         `suite' when referring to the whole test suite.
12799         `at_last_test' is removed: m4 compute at_format itself.
12800         (at_stdout, at_stder1, at_stderr): New variables.
12801         (AT_CHECK): Use them.
12803 2001-11-13  Akim Demaille  <akim@epita.fr>
12805         * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
12806         in PATH.
12807         Create `testsuite.dir/003/run' instead of `testsuite.003'.
12808         Do it as soon as a test fails, don't wait till the end of the test
12809         suite.
12810         Don't remove $as_me.[0-9]*, since these files no longer exist.
12812 2001-11-13  Akim Demaille  <akim@epita.fr>
12814         * tests/tools.at: Use absolute paths, since we are no longer run
12815         in place.
12817 2001-11-13  Akim Demaille  <akim@epita.fr>
12819         Now that tests are running in their own private dir, there is no
12820         need to list the files to remove at the end of tests groups.
12822         * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
12823         (AT_data_files, at_data_files): Remove.
12824         (AT_CLEANUP, AT_DATA): Simplify.
12825         (AT_INIT): Adjust.
12826         Remove the group dir if !debug && !failed.
12827         * tests/atspecific.m4: Adjust.
12829 2001-11-13  Akim Demaille  <akim@epita.fr>
12831         Start a new layout for Autotest: `testsuite' creates
12832         `testsuite.dir' in which the at-check-line etc. files are to be
12833         found, and `testsuite.dir/003' where the test group 3 is run.
12835         * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
12836         at_check_line_file, at_format, at_test_normalized, at_group_dir
12837         are new variables.
12838         Create the directories.
12839         Use absolute paths for at- files.
12840         (AT_CHECK): Adjust.
12842 2001-11-11  Michael Matz  <matz@kde.org>
12844         * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
12845         (m4_car2): New.
12846         (m4_car): Properly quote arguments.
12848 2001-11-13  Akim Demaille  <akim@epita.fr>
12850         * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
12851         with stricter rules on LIBOBJS.
12853 2001-11-12  Paul Eggert  <eggert@twinsun.com>
12855         * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
12856         * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
12857         __PROTOTYPES too.
12859 2001-11-12  Akim Demaille  <akim@epita.fr>
12861         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
12863 2001-11-12  Akim Demaille  <akim@epita.fr>
12865         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
12866         * lib/autoconf/functions.m4, lib/autoconf/general.m4,
12867         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
12868         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
12869         * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
12870         specify to what the macro should be defined (typically to 1).
12872 2001-11-12  Akim Demaille  <akim@epita.fr>
12874         * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
12875         From Jim Meyering.
12877 2001-11-12  Akim Demaille  <akim@epita.fr>
12879         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
12880         AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
12881         definition used by Automake where LEX is +/- "${missing} lex" and
12882         `missing' itself contains variables.
12884 2001-11-12  Akim Demaille  <akim@epita.fr>
12886         * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
12887         Now that M4sh pushes BODY, the comments were output at the end of
12888         the test suites.
12890 2001-11-08  Akim Demaille  <akim@epita.fr>
12892         * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
12893         that we can trace macros from aclocal.m4.
12894         Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
12895         obsoleted, and redirect to the former anyway.
12896         Reported by Ralf Corsepius.
12898 2001-11-08  Akim Demaille  <akim@epita.fr>
12900         * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
12901         processed only if present.
12902         * tests/torture.at (Configuring subdirectories): Use autoreconf
12903         instead of successive calls to autoconf.
12904         Add a nonexistent subdirectory to exercise the patch above.
12905         Reported by Ralf Corsepius.
12907 2001-11-08  Kevin Ryde  <user42@zip.com.au>
12909         * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
12910         doesn't accept .S files.
12912 2001-11-07  Akim Demaille  <akim@epita.fr>
12914         * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
12915         * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
12916         (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
12917         * bin/autom4te.in (warn_forbidden): New.
12918         (handle_output): Use it.
12919         Read m4_pattern_forbid with messages.
12921 2001-11-05  Akim Demaille  <akim@epita.fr>
12923         * bin/autom4te.in (--normalize): Remove.
12924         * lib/autom4te.in: Adjust.
12926 2001-11-05  Akim Demaille  <akim@epita.fr>
12928         * tests/Makefile.am (testsuite): Rename this target as...
12929         ($(TESTSUITE)): this.
12930         From Nicolas Joly.
12932 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
12934         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
12935         the --prefix option, also remove it's argument.
12937 2001-11-05  Akim Demaille  <akim@epita.fr>
12939         * doc/autoconf.texi (testsuite Invocation): Update.
12940         (Writing testsuite.at): Update.
12942 2001-11-03  Akim Demaille  <akim@epita.fr>
12944         * doc/autoconf.texi: s/@code/@command/ where appropriate.
12946 2001-11-03  Akim Demaille  <akim@epita.fr>
12948         * lib/Autom4te/General.pm: (&catfile, &canonfile)
12949         (&file_name_is_absolute): New, wrappers around routines from
12950         File::Spec.
12951         Use and export them.
12952         (&find_configure_ac): Optionally take a directory where to look at.
12953         * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
12954         the arguments.
12955         Default @ARGV to `.', not find_configure_ac.
12956         (&autoreconf): Argument is a directory.
12957         Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
12958         * doc/autoconf.texi (autoreconf Invocation): Update.
12960 2001-11-03  Akim Demaille  <akim@epita.fr>
12962         * lib/Autom4te/General.pm (@export_vars, @export_subs)
12963         (@export_forward_subs): New.
12964         Add basename, dirname, and fileparse.
12965         (@EXPORT): Adjust.
12966         * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
12967         Don't look for aclocal flags if we already know aclocal is not
12968         used.
12969         Move aclocal.m4t only if it exists.
12970         Reported by Ezra Peisach.
12972 2001-11-03  Akim Demaille  <akim@epita.fr>
12974         * bin/autoreconf.in (&parse_args): Work only on the configure.ac
12975         passed on command line, defaulting to ./configure.ac if present.
12976         (&maybe_autoreconf, File::Find): Remove, unused.
12977         (&autoreconf): If autoconf is not used, don't try to trace.
12979 2001-11-02  Akim Demaille  <akim@epita.fr>
12981         * configure.ac: Bump to 2.52g.
12983 2001-11-02  Akim Demaille  <akim@epita.fr>
12985         Version 2.52f.
12987 2001-11-02  Akim Demaille  <akim@epita.fr>
12989         * config/config.guess, config/config.sub, doc/standards.texi:
12990         * config/lispdir.m4: Update from masters.
12991         * configure.ac: Bump to 2.52f.
12993 2001-11-02  Akim Demaille  <akim@epita.fr>
12995         * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
12996         Don't run aclocal when aclocal.m4 is not from aclocal.
12997         From Ezra Peisach.
12998         Don't run libtoolize and gettextize if --install is not given.
13000 2001-11-01  Paul Eggert  <eggert@twinsun.com>
13002         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
13003         be invoked before _AS_LINENO_PREPARE.
13004         (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
13005         than character ranges.
13007         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
13008         invoking AS_BASENAME.  Set the locale variables to 'C' if
13009         possible, as POSIX requires this to get the traditional
13010         behavior.
13011         * doc/autoconf.texi (Special Shell Variables): Describe the above.
13013 2001-10-31  Paul Eggert  <eggert@twinsun.com>
13015         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
13016         with {}, as that triggers a bug in Bash 2.05.
13018         (_AS_LINENO_PREPARE): Use Sed rather than
13019         Awk.  Fix the sed prepass to work even if there are multiple
13020         instances of $LINENO on the same line.  Do not substitute for
13021         other variables like $LINENOT.  Do not check file dates; such a
13022         check is unreliable on sufficiently fast machines, and removing
13023         the check makes the code simpler and more reliable.  Check for
13024         output and chmod failures.
13026         * doc/autoconf.texi (Special Shell Variables): Document
13027         the above.
13029 2001-10-31  Akim Demaille  <akim@epita.fr>
13031         * tests/Makefile.am (atconfig): Remove this target, Automake
13032         handles it now.
13034 2001-10-31  Akim Demaille  <akim@epita.fr>
13036         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
13037         AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
13038         provided, while it is optional.
13039         * configure.ac: Adjust.
13041 2001-10-26  Paul Eggert  <eggert@twinsun.com>
13043         * NEWS, README, configure.ac, lib/Autom4te/General.pm,
13044           lib/Autom4te/Struct.pm:
13045         Require Perl 5.005_03 instead of just 5.005, as some tests fail
13046         with 5.005_02.
13048         * doc/autoconf.texi (Special Shell Variables): Document some
13049         more LINENO gotchas, particularly with respect to the Awk+Sed hack.
13051         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
13052         (_AS_LINENO_PREPARE): Use it instead of shell eval, since
13053         eval $LINENO is not portable in practice.
13055 2001-10-24  Akim Demaille  <akim@epita.fr>
13057         * lib/Autom4te/General.pm (backname): New.
13059 2001-10-24  Akim Demaille  <akim@epita.fr>
13061         * m4/: Remove, merged into...
13062         * config/: here.
13064 2001-10-23  Tim Van Holder  <tim.van.holder@pandora.be>
13066         * doc/autoconf.texi (Shellology): Mention the problems with bash
13067         2.05's use of ANSI quoting in its `set' builtin.
13069 2001-10-22  Paul Eggert  <eggert@twinsun.com>
13071         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
13072         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
13073         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
13074         POSIX decided to standardize on the int flavor of strerror_r.
13075         Always do char* test, as there's no reason not to.
13076         Assign to a char* var, to catch strerror_r that returns int*.
13078         * doc/autoconf.texi (Particular Functions):
13079         Document the above changes.  Also, document the fact that
13080         AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
13082         * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
13084 2001-10-20  Akim Demaille  <akim@epita.fr>
13086         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
13087         the executable was missing from the log.
13089 2001-10-20  Akim Demaille  <akim@epita.fr>
13091         * lib/Autom4te/General.pm (&update_file): If destination is
13092         unchanged, remove the source.
13093         (&up_to_date_p): Don't be verbose, be debug.
13094         * bin/autoreconf.in: No longer support --m4dir.
13095         (&autoreconf): Display the full path of the configure.ac we are
13096         studying.
13097         Trace it only once.
13098         Be sure to honor --force with gettextize.
13099         Always run aclocal.
13100         * doc/autoconf.texi: Adjust.
13102 2001-10-20  Akim Demaille  <akim@epita.fr>
13104         * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
13105         Remove, dead.
13106         * bin/autoreconf.in (&autoreconf): Do not run gettextize when
13107         `intl' is already present, as it refuses unless --force.
13108         (&parse_args): Use -I, --include instead of the old Autoconf
13109         options.
13110         ($localdir, $autoconf_dir): Remove.
13111         (@include): New.
13112         (&maybe_autoreconf): New, to preserve $_ for File::Find.
13114 2001-10-19  Jens Petersen  <petersen@redhat.com>
13116         * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
13117         * doc/autoconf.texi (Particular Programs): Likewise.
13119 2001-10-19  Akim Demaille  <akim@epita.fr>
13121         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
13122         file in @configure_input@.
13123         Don't mention `automatically' in addition to `generated'.
13124         * tests/torture.at (#define header templates): Adjust.
13126 2001-10-19  Akim Demaille  <akim@epita.fr>
13128         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
13129         comment, explain how to install automatic mode selection.
13130         From Russ Allbery.
13132 2001-10-19  Ezra Peisach  <epeisach@zif.mit.edu>
13134         * bin/autoreconf.in (autoreconf): Display the path to the
13135         configure.ac being studied.
13137 2001-10-18  Paul Eggert  <eggert@twinsun.com>
13139         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
13140         long, to work around a bug in the HP C compiler version HP92453-01
13141         B.11.11.23709.GP.
13143         * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
13144         (AS_BASENAME_EXPR): New macro.
13145         (AS_BASENAME_SED): Do not assume GNU sed semantics.
13146         (AS_BASENAME): Use 'basename' if that works; then try 'expr';
13147         and fall back on 'sed' only if the other two fail.  This makes
13148         AS_BASENAME act more like AS_DIRNAME.
13149         (as_me): Shell-quote the argument of AS_BASENAME, in case $0
13150         contains white space.
13151         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
13152         Use AS_DIRNAME, since I think it's now DOS-friendly.
13153         * tests/m4sh.at (DIRNAME_TEST): New arg $3.
13154         Allow "dirname //FOO" to return either / or //, as POSIX allows
13155         either behavior.
13157 2001-10-10  Akim Demaille  <akim@epita.fr>
13159         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
13160         `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
13161         From Eric Sharkey.
13163 2001-10-10  Akim Demaille  <akim@epita.fr>
13165         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
13166         m4_define, since...
13167         (_AS_ECHO_N): AS_REQUIREs it.
13169 2001-10-10  Akim Demaille  <akim@epita.fr>
13171         * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
13172         (AC_INCLUDES_DEFAULT): Move to...
13173         * lib/autoconf/headers.m4: here.
13174         * lib/autoconf/types.m4: Comment changes.
13175         * doc/autoconf.texi: Specify where the default includes are used
13176         in the macro prototypes.
13178 2001-10-09  Akim Demaille  <akim@epita.fr>
13180         * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
13181         transition code.
13183 2001-10-08  Akim Demaille  <akim@epita.fr>
13185         * bin/autoreconf.in (&autoreconf): Remove debugging code.
13186         (&parse_args): Pass verbosity/debugging options to subtools when
13187         --debug, not when --verbose.
13188         * lib/autom4te.in (Autoreconf-preselections): New.
13189         (Autoconf): Use it.
13191 2001-10-08  Akim Demaille  <akim@epita.fr>
13193         * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
13195 2001-10-08  Akim Demaille  <akim@epita.fr>
13197         * doc/autoconf.texi (autoreconf Invocation): Adjust.
13198         * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
13200 2001-10-08  Akim Demaille  <akim@epita.fr>
13202         * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
13203         (Syntax of the shell scripts): Don't.
13204         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
13205         bother with $force since...
13206         * lib/Autom4te/General.pm: does.
13208 2001-10-08  Akim Demaille  <akim@epita.fr>
13210         * bin/autoreconf.in: Rewrite in Perl.
13211         * configure.ac: Adjust.
13212         * lib/Autom4te/General.pm (&up_to_date_p): New.
13213         * bin/autom4te.in (&up_to_date_p): Use it.
13214         Rename as...
13215         (&up_to_date): this.
13217 2001-10-08  Akim Demaille  <akim@epita.fr>
13219         * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
13220         (m4_list_cmp): Use $0 to reinvoke yourself.
13221         (m4_patsubsts): New.
13222         (m4_strip, m4_version_unletter): Use it.
13223         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
13225 2001-10-08  Akim Demaille  <akim@epita.fr>
13227         * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
13228         * lib/autoconf/libs.m4, lib/autoconf/status.m4,
13229         * lib/autoconf/types.m4, lib/autotest/general.m4,
13230         * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
13231         * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
13232         m4_bregexp, m4_bpatsubst, and m4_bmatch.
13233         * doc/autoconf.texi (Redefined M4 Macros): Adjust.
13235 2001-10-08  Akim Demaille  <akim@epita.fr>
13237         * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
13239 2001-10-08  Akim Demaille  <akim@epita.fr>
13241         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
13242         * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
13243         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
13244         * tests/tools.at, tests/m4sh.at: Use it.
13245         * tests/m4sh.at: Don't rely on Autoconf macros.
13246         (DIRNAME_TEST): Also exercise the expr variant.
13247         * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
13248         preferred M4sugar extension is now `.4s'.
13249         * tests/README: Remove.
13251 2001-10-08  Akim Demaille  <akim@epita.fr>
13253         * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
13254         (m4_provide_if): this.
13255         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
13256         * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
13257         (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
13258         M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
13260 2001-10-08  Akim Demaille  <akim@epita.fr>
13262         Use `add-log-current-defun-function' for ChangeLog creation.
13263         Suggested by Tom Tromey.
13265         * lib/emacs/autotest-mode.el (autotest-mode-map): New.
13266         (autotest-mode): Adjust.
13267         * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
13268         'comment-region onto `C-c ;'.
13269         Comments are `#', not `dnl'.
13270         (autoconf-current-defun): New.
13271         (autoconf-font-lock-keywords): Recognize `m4_defun'.
13273 2001-10-08  Akim Demaille  <akim@epita.fr>
13275         * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
13276         * lib/m4sugar/m4sh.m4: here.
13277         (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
13278         * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
13279         (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
13280         include handle the m4_pattern_*, no longer push the
13281         BODY diversion nor set the /bin/sh line, AS_INIT does it.
13282         * lib/autotest/general.m4 (AT_INIT): Likewise.
13283         * tests/base.at: Adjust the tests to use AS_INIT.
13284         * tests/tools.at (AT_DATA_FORBIDDEN): New.
13285         (autoconf: forbidden tokens): Adjust to work on M4sh instead of
13286         Autoconf.
13288 2001-10-07  Paul Eggert  <eggert@twinsun.com>
13290         * doc/autoconf.texi (config.status Invocation):
13291         CONFIG_SHELL defaults to a shell that supports LINENO if available.
13293         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
13294         shell does not support LINENO, and if CONFIG_SHELL is unset or
13295         empty, and if we can find a shell that does support LINENO,
13296         then set CONFIG_SHELL to that shell and then re-execute
13297         ourselves with CONFIG_SHELL.
13299 2001-10-05  Paul Eggert  <eggert@twinsun.com>
13301         * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
13302         doesn't exist.  Remove *.tmp, as a .tmp file is created during the
13303         build of $(TESTSUITE).
13305 2001-10-05  Akim Demaille  <akim@epita.fr>
13307         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
13308         iff we are a bareword.
13309         Reported by Raja R Harinath.
13311 2001-10-05  Akim Demaille  <akim@epita.fr>
13313         * tests/m4sh.at (LINENO): New.
13314         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
13315         PATH_SEPARATOR before using it.
13316         Fix the absolute path case/esac pattern.
13317         Provide $0 as fallback for as_myself.
13318         Reported by Raja R Harinath.
13320 2001-10-05  Akim Demaille  <akim@epita.fr>
13322         * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
13323         * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
13325 2001-10-05  Akim Demaille  <akim@epita.fr>
13327         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
13328         (AS_SHELL_SANITIZE): here.  Use it.
13329         (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
13330         From Paul Eggert.
13332 2001-10-04  Akim Demaille  <akim@epita.fr>
13334         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
13335         combination of Awk and sed to replace $LINENO.
13337 2001-10-02  Paul Eggert  <eggert@twinsun.com>
13339         * doc/autoconf.texi (Limitations of Builtins): You can't use
13340         "source"; it's not portable.  Remove confusing and
13341         somewhat-incorrect example involving "." and "/".
13343         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
13344         compatibility with POSIX shells.
13346 2001-10-02  Akim Demaille  <akim@epita.fr>
13348         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
13349         instead of exec'ing to preserve $0 and $@.
13351 2001-10-01  Akim Demaille  <akim@epita.fr>
13353         * tests/testsuite (AT_INIT) <at_pass_list>: New.
13354         Don't run twice the same test.
13356 2001-10-01  Akim Demaille  <akim@epita.fr>
13358         * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
13359         No longer output the list of tests.
13360         <--list>: New option.
13361         <--full-help>: Remove.
13362         Complete the short/long options duality.
13363         Various small adjustments.
13365 2001-10-01  Akim Demaille  <akim@epita.fr>
13367         * doc/autoconf.texi: Use @kbd for user input.
13368         Always use `$' as shell prompt.
13370 2001-09-30  Paul Eggert  <eggert@twinsun.com>
13372         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
13373         Don't use nested parenthesization.  This patch was originally
13374         suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
13375         but somehow it didn't get incorporated then.
13376         * doc/autoconf.texi (Limitations of Usual Tools):
13377         Clarify remark about sed and nested parenthesization.
13379         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
13380         Report an error if the size cannot be determined even though
13381         the type exists.
13382         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
13383         Check for `expr' arithmetic overflow, and for compilation failure,
13384         and invoke a new argument $4 if either is discovered.
13385         This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
13386         (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
13388 2001-09-28  Akim Demaille  <akim@epita.fr>
13390         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
13391         * m4/lispdir.m4: New.
13392         * aclocal.m4, configure.ac: Adjust.
13394 2001-09-28  Akim Demaille  <akim@epita.fr>
13396         * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
13397         (AT_TESTED): this.
13398         (AT_INIT): More the wrapped section to where it will be expanded.
13399         Output `AT_tested' only when existing.
13400         Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
13402 2001-09-27  Akim Demaille  <akim@epita.fr>
13404         Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
13405         generates too many bug reports.
13407         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
13408         status when executing the ACTION-IF-FALSE.
13409         * tests/base.at (AC_TRY_*): Rename as...
13410         (AC_TRY_COMMAND): this.
13411         (AC_RUN_IFELSE): New.
13412         * tests/compile.at (Extensions, C keywords)
13413         (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
13414         (Broken/missing compilers, AC_PROG_CPP with warnings)
13415         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
13416         * tests/c.at (Extensions, C keywords)
13417         (Broken/missing compilers, AC_PROG_CPP with warnings)
13418         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
13419         (AC_PROG_CPP requires AC_PROG_CC): here and...
13420         * tests/fortran.at (GNU Fortran 77): there.
13421         * doc/autoconf.texi (autoconf Invocation): Fix the example:
13422         AC_TRY_RUN is about compilation, not shell commands.
13423         (Test Programs): AC_TRY_RUN works as used to be advertised.
13425 2001-09-27  Akim Demaille  <akim@epita.fr>
13427         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
13428         Raja R Harinath:
13429         Be sure to detect when $LINENO always returns the same value.
13430         Look for the original script, basename($0) is certainly not
13431         enough.
13432         Pass the CLI arguments to `$as_me.lineno'.
13434 2001-09-25  Akim Demaille  <akim@epita.fr>
13436         * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
13437         Be sure the close and reopen the LOG fd before and after using tee
13438         to extend the log.
13439         <at_tests_pattern>: Adjust to the new format of at_help_all.
13441 2001-09-23  Akim Demaille  <akim@epita.fr>
13443         * bin/autom4te.in (parse_args): There can be several invocations
13444         of --language now.
13446 2001-09-23  Akim Demaille  <akim@epita.fr>
13448         * doc/autoconf.texi (Top): Wrap in @ifnottex.
13450 2001-09-23  Akim Demaille  <akim@epita.fr>
13452         * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
13453         ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
13454         (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
13455         builddir, buildpath, top_builddir, and top_buildpath.
13456         (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
13457         the current directory.
13458         * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
13459         variables *before* changing the current directory.
13460         Skip nonexistent dirs.
13461         * doc/autoconf.texi (Preset Output Variables): Document these
13462         variables.
13464         * lib/autotest/general.m4: Do not reset AT_victims.
13465         Don't compute at_srcdir nor at_top_srcdir.
13467         * tests/tools.at: Hence use top_srcdir.
13469         * tests/Makefile.am, tests/autoconf, tests/autoheader,
13470         * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
13471         Remove.
13472         * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
13473         * tests/wrapsh.in, tests/autoupdate.in: New.
13474         * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
13475         * configure.ac: Build the position independent wrappers.
13477         * man/Makefile.am: Now that test wrappers are position
13478         independent, use them and drop dark envvar magic.
13480 2001-09-23  Akim Demaille  <akim@epita.fr>
13482         * doc/autoconf.texi (Common Shell Constructs): Rename as...
13483         (Programming in M4sh): this.
13484         Promote to @section.
13486 2001-09-23  Akim Demaille  <akim@epita.fr>
13488         * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
13489         Pass $at_debug_args to the rerun test suite.
13490         * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
13491         * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
13492         From Paul Eggert.
13494 2001-09-23  Akim Demaille  <akim@epita.fr>
13496         * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
13498 2001-09-23  Akim Demaille  <akim@epita.fr>
13500         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
13501         over-escaping.
13503 2001-09-23  Akim Demaille  <akim@epita.fr>
13505         * lib/Autom4te/General.pm (&debug): New.
13506         * bin/autom4te.in ($language): Move to...
13507         (parse_args): here.
13508         Handle --language in languages.
13509         * lib/autom4te.in (Automake-selections, Autoheader-selections)
13510         (Autoscan-selections): New.
13511         (Autoconf): Adjust.
13513 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
13515         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
13516         * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
13517         to match current versions from CVS Automake.
13519 2001-09-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
13521         * doc/autoconf.texi (Special Shell Variables): Add pdksh output
13522         for $LINENO.
13524 2001-09-22  Akim Demaille  <akim@epita.fr>
13526         * lib/autoconf/autotest.m4: Create `package.m4'.
13527         * tests/Makefile.am (package.m4): Remove.
13529 2001-09-22  Akim Demaille  <akim@epita.fr>
13531         Rely on `$LINENO' when possible instead of `__oline__'.
13533         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
13534         `$LINENO' support replacement when not supported.
13535         (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
13536         them explicitly to be sure they are not output before this section
13537         (via m4_require).  Cosmetic only.
13538         * lib/autoconf/c.m4, lib/autoconf/general.m4,
13539         * lib/autoconf/programs.m4: Replace all the occurrences of
13540         `__oline__' with `$LINENO'.
13541         * doc/autoconf.texi (Special Shell Variables): Document LINENO.
13543 2001-09-21  Tim Van Holder  <tim.van.holder@pandora.be>
13545         * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
13546         character (u: -> ue) in a code comment.
13547         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
13548         it works.
13550 2001-09-21  Akim Demaille  <akim@epita.fr>
13552         * Makefile.maint (AUTOM4TE): Neutralize autom4te.
13553         Suggested by Jim Meyering.
13555 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
13557         * lib/autoconf/programs.m4: Use extensions listed in
13558         $ac_executable_extensions when looking for programs.
13560 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
13562         * lib/autoconf/general.m4: Fix a small Englisho.
13563         * lib/autoconf/status.m4: Fix a small typo.  Handle DOS paths when
13564         setting up ac_dir_suffix and ac_top_builddir.
13565         * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
13567 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
13569         * doc/autoconf.texi (File System Conventions): Clarify the use of
13570         PATH_SEPARATOR.
13571         (Special Shell Variables[PATH_SEPARATOR]): Ditto.
13572         (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
13573         be used instead of ':'.
13574         * lib/autotest/general.m4: Replace occurrences of ':' in
13575         AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
13577 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
13579         * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
13580         arguments.  Fixed a typo.
13582 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
13584         * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
13585         $PATH.  Also set AUTOM4TE_CFG, so we can process autom4te properly.
13587 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
13589         * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
13590         * bin/autoupdate.in: Ditto.
13591         * bin/autoheader.in: Reworded a few comments.
13592         * bin/autoconf.in: Reworded help text for a few options.
13593         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
13594         * bin/autoscan.in, bin/autoupdate.in: Ditto.
13596 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
13598         * lib/Autom4te/XFile.pm (open): Simplified the error message (we
13599         already have $file).  Set output files to binary mode (helps avoid
13600         CR issues on DOSish systems).
13602 2001-09-19  Akim Demaille  <akim@epita.fr>
13604         * lib/autotest/general.m4: Englishoes.
13605         From Tim Van Holder and Alexey Mahotkin.
13607 2001-09-18  Paul Eggert  <eggert@twinsun.com>
13609         * doc/autoconf.texi (Common Shell Constructs): New node,
13610         documenting AS_DIRNAME.
13611         (Limitations of Usual Tools): Refer to it when discussing dirname.
13612         Also, update discussion of POSIX standard to reflect latest draft.
13614         * lib/autoconf/c.m4:
13615         (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
13617         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
13618         Do not pass a first argument with leading '-'
13619         to expr, by parenthesizing initial integers that might be negative.
13621         * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
13622         now merely checks whether it is an error to pass an argument
13623         to getpgrp.
13625         * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
13626         (AC_FUNC_GETPGRP): Don't bother with a runtime test.  Just check
13627         whether it is a (compile-time) error to pass an argument to
13628         getpgrp.  This simpler test supports the revised documentation,
13629         and is all that AC_FUNC_GETPGRP's users really need.
13631 2001-09-18  Akim Demaille  <akim@epita.fr>
13633         * doc/autoconf.texi (Limitations of Make) <$<>: New.
13635 2001-09-18  Akim Demaille  <akim@epita.fr>
13637         * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
13638         `{}'.
13639         * lib/autotest/general.m4 (AT_INIT): Adjust.
13641 2001-09-18  Paul Wagland  <paul@wagland.net>
13643         * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
13644         correctly.
13645         Add test for AS_BASENAME.
13646         * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
13647         added test. It now correctly handles /1/2/3/, returning '3' not ''.
13648         Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
13649         * tests/base.at: Fixed the expected responses. The old ones were
13650         one line out...
13651         * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
13652         the documentation claims it should (and how it behaved in 2.13).
13654 2001-09-18  Akim Demaille  <akim@epita.fr>
13656         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
13657         the AC_CONFIG_COMMANDS invocation.
13658         This also solves the name clash problems.
13659         Don't set the package's ID.
13660         * lib/m4sugar/Makefile.am (version.m4): Revamp.
13661         No longer to be shipped.
13662         (version.in): Remove.
13663         * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
13664         * lib/autoconf/status.m4: Adjust.
13665         Use `m4_PACKAGE_STRING'.
13666         * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
13667         the only optional argument is the name of the test suite.
13668         Expect `package.m4' to define the package signature.
13669         * lib/autom4te.in (Autotest): Add `package.m4?'.
13670         * tests/Makefile.am (package.m4): New.
13671         * tests/suite.at: ifnames is a victim.
13673 2001-09-18  Akim Demaille  <akim@epita.fr>
13675         * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
13676         AC_LIBSOURCE, AC_CONFIG_FILES.
13677         * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
13678         program version string doesn't match the package's.
13679         * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
13680         after `(cached)'.
13682 2001-09-17  Paul Eggert  <eggert@twinsun.com>
13684         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
13685         Allow expression to return any value that can fit into unsigned long
13686         (not int, as before).  Check for output errors.
13688 2001-09-17  Bruno Haible  <haible@ilog.fr>
13690         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
13691         Always include <stdio.h> and <stdlib.h>. Evaluate
13692         the expression in an extra function before these includes. Call
13693         fprintf "%d" only after ensuring the argument is of type 'int'.
13694         Reported by Wayne Chapeskie <waynec@spinnaker.com>.
13696 2001-09-17  Paul Eggert  <eggert@twinsun.com>
13698         Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
13699         or CFLAGS=-O5.  In that case, the linker has a relaxed view of
13700         fatal errors, and AC_CHECK_LIB causes it to include libraries even
13701         when they don't exist.
13703         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
13704         not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
13705         need it.
13707         * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
13708         version with the version used by fileutils 4.1, except use
13709         AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
13710         we don't need it.
13712         * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
13714 2001-09-13  Akim Demaille  <akim@epita.fr>
13716         * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
13717         _first_.
13718         Reported by Gerrit P. Haase.
13720 2001-09-13  Akim Demaille  <akim@epita.fr>
13722         * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
13723         m4_defn'ing is valid.
13725 2001-09-13  Akim Demaille  <akim@epita.fr>
13727         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
13728         * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
13729         Use it.
13731 2001-09-13  Akim Demaille  <akim@epita.fr>
13733         * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
13734         m4_match.
13735         (m4_re_escape): New.
13736         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
13737         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
13738         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
13739         Likewise.
13740         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
13741         (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
13742         * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
13743         AT_tests_all for consistency.
13744         Set at_victims.
13745         (AT_VICTIMS): Similar to AT_KEYWORDS.
13746         (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
13748 2001-09-13  Akim Demaille  <akim@epita.fr>
13750         * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
13752 2001-09-13  Akim Demaille  <akim@epita.fr>
13754         * lib/autotest/general.m4 (AT_INIT): Create and remove
13755         `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
13756         test suites can cohabit.
13758 2001-09-13  Akim Demaille  <akim@epita.fr>
13760         * tests/mktests.sh: Don't output banners for empty test files.
13762 2001-09-13  Akim Demaille  <akim@epita.fr>
13764         Test suites can be run independently of configure.
13766         * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
13767         * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
13768         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
13769         ECHO_N etc.
13770         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
13771         and at_c.
13772         * lib/autotest/general.m4: Use ECHO_*.
13774 2001-09-13  Akim Demaille  <akim@epita.fr>
13776         * bin/ifnames.in: Rewrite in Perl.
13777         * configure.ac: Don't look for AWK.
13778         * tests/tools.at (AWK portability): Remove.
13779         (Syntax of the shell scripts): Don't check ifnames.
13780         (AT_CHECK_PERL_SYNTAX): New.
13781         (Syntax of the Perl scripts): Check ifnames.
13782         * tests/ifnames: New.
13784 2001-09-13  Akim Demaille  <akim@epita.fr>
13786         * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
13787         test group titles.
13788         * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
13789         Remove all the other keywords.
13791 2001-09-10  Akim Demaille  <akim@epita.fr>
13793         * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
13794         SETUP: no longer used.
13795         Support -k, --keywords.
13796         <at_help>: Be `no', `short', or `long'.
13797         <at_help_all>: New variable.
13798         (AT_KEYWORDS): New.
13799         (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
13800         (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
13801         (_AT_CLEANUP_FILE_IF): Simplify the regexp.
13802         (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
13803         No longer fill the HELP diversion.
13804         (AT_CLEANUP): Use them.
13805         * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
13806         (m4_list_append): Remove.
13808         Spread a few keywords in the Autoconf test suite.
13810 2001-09-10  Akim Demaille  <akim@epita.fr>
13812         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
13813         PATH_SEPARATOR, let M4sh compute it.
13814         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
13815         * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
13816         Move to...
13817         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
13818         Simplify when the path is not a literal.
13819         (AS_UNAME): Use it to report PATH.
13820         * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
13821         (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
13822         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
13823         * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
13824         normalize the path, and to look for victims.
13825         * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
13826         (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
13828 2001-09-07  Akim Demaille  <akim@epita.fr>
13830         * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
13831         doesn't neutralize SIGINT, making autoconf etc. non interruptible.
13832         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
13833         related variables into `at_package_*'.
13834         * lib/autotest/general.m4 (AT_VICTIMS): New.
13835         (AT_INIT): Adjust for stand-alone/embedded test suites.
13836         (AS_MESSAGE_LOG_FD): Define and use it.
13837         * tests/suite.at (AT_VICTIMS): Use it.
13838         * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
13839         at_version.
13841 2001-09-07  Akim Demaille  <akim@epita.fr>
13843         Move toward possibly stand-alone test suites.
13845         * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
13846         in addition, it introduces useless differences in logs.
13847         (AT_INIT): Let atconfig and atlocal be both optional.
13848         Adjust PATH computation.
13849         * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
13851 2001-09-07  Akim Demaille  <akim@epita.fr>
13853         * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
13854         m4sugar/version.m4.
13856 2001-09-05  Akim Demaille  <akim@epita.fr>
13858         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
13859         to avoid GCC warnings.
13860         From Uwe Seimet.
13862 2001-09-05  Akim Demaille  <akim@epita.fr>
13864         * bin/autom4te.in: --language is -l, not -s.
13866 2001-09-05  Akim Demaille  <akim@epita.fr>
13868         Be ready to handle filenames as stupid as `dnl.at', for if even
13869         the maintainer is dumb enough to do that...
13871         * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
13872         excellence in M4 quotation: consider `__file__' is active.
13874         And BTW, when invoking m4, pass the --include in the right order:
13875         the wrong one.
13877         * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
13878         4m.
13880 2001-09-05  Akim Demaille  <akim@epita.fr>
13882         * lib/Autom4te/XFile.pm: New lib file.
13883         * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
13884         * bin/autoheader.in: Use it.
13886 2001-09-05  Akim Demaille  <akim@epita.fr>
13888         * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
13889         defined.
13891 2001-09-05  Akim Demaille  <akim@epita.fr>
13893         * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
13894         * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
13896         * bin/autoscan.in: Use `getopt' and `find_files' etc.
13897         Add -I, --include support.
13898         * doc/autoconf.texi (autoscan Invocation): Adjust.
13900 2001-09-05  Akim Demaille  <akim@epita.fr>
13902         CVS GNU M4 doesn't like `undefine(undefined)'.
13904         * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
13905         New, extracted from main.
13906         Use IO::File wherever possible.
13907         (input.m4): Be constant, use -I instead of hard coding $tmp.
13908         Therefore be a quoted heredoc.
13909         Don't invoke `_au_disable', since ac was not loaded, but just
13910         `unm4.m4'.
13912 2001-08-31  Akim Demaille  <akim@epita.fr>
13914         Version 2.52d.
13916 2001-08-31  Akim Demaille  <akim@epita.fr>
13918         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
13919         previous patch.
13920         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
13922 2001-08-31  Akim Demaille  <akim@epita.fr>
13924         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
13925         serious problems handling heredocs in heredocs.
13926         Reported by Nicolas Joly.
13928 2001-08-31  Akim Demaille  <akim@epita.fr>
13930         * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
13931         (Making testsuite Scripts): Update.
13933 2001-08-31  Akim Demaille  <akim@epita.fr>
13935         * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
13937 2001-08-31  Akim Demaille  <akim@epita.fr>
13939         * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
13940         (testsuite Scripts): There is no such thing as `atconfig.in'.
13941         And actually one diagram is missing: test suite runtime.
13943 2001-08-31  Akim Demaille  <akim@epita.fr>
13945         * lib/Autom4te/General.pm (&find_file): Browse the includes in the
13946         inverse order.
13948 2001-08-31  Akim Demaille  <akim@epita.fr>
13950         * bin/autoupdate.in (@include): `installcheck' revealed the path
13951         to m4sugar was lacking!
13953 2001-08-31  Akim Demaille  <akim@epita.fr>
13955         * man/Makefile.am (.x.1): We really have to pass
13956         autom4te_perllibdir.
13958 2001-08-31  Akim Demaille  <akim@epita.fr>
13960         * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
13961         debug scripts, in particular passing explicitly listed tests to
13962         run is stupid.
13964 2001-08-31  Akim Demaille  <akim@epita.fr>
13966         * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
13967         * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
13968         Use directly autom4te, not autoconf.
13969         * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
13971 2001-08-31  Akim Demaille  <akim@epita.fr>
13973         * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
13974         * bin/autoheader.in (%symbol): Strip arguments of macros.
13976 2001-08-31  Akim Demaille  <akim@epita.fr>
13978         * doc/autoconf.texi: Catch up -I, --include changes.
13980 2001-08-31  Akim Demaille  <akim@epita.fr>
13982         * bin/autom4te.in (&parse_args): Die on unknown languages.
13983         * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
13984         need for autoconf.
13985         Promote --include over --macrodir and other obsolete options.
13987 2001-08-31  Akim Demaille  <akim@epita.fr>
13989         * lib/Autom4te/General.pm ($version, $help, &getopt): New.
13990         * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
13991         * bin/autom4te.in ($autoconf): Pass --force.
13992         `print $out' doesn't print `$_' but `$out'.
13993         * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
13994         (autoheader): Pass --force since the test suite goes too fast for
13995         the time stamps.
13996         Adjust to the new autoheader messages.
13998 2001-08-31  Akim Demaille  <akim@epita.fr>
14000         * bin/autoheader.in: Handle the acconfig.h etc. junk files.
14001         Check the completeness of the #template.
14002         * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
14003         * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
14004         invocation.
14006 2001-08-31  Akim Demaille  <akim@epita.fr>
14008         * lib/Autom4te/General.pm (&find_file, &update_file): New.
14009         * bin/autoupdate.in, bin/autoheader.in: Adjust.
14010         Drop AC_MACRODIR dead for real.
14011         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
14012         `autoheader: `config.hin' is created'.
14013         * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
14015 2001-08-31  Akim Demaille  <akim@epita.fr>
14017         * bin/autoheader.in: Rewrite in Perl.
14018         * tests/autoheader: Adjust.
14020 2001-08-31  Akim Demaille  <akim@epita.fr>
14022         * bin/autoconf.in (--include, -I): New option.
14023         Map --localdir, --autoconf-dir onto it.
14024         Forward autom4te's options instead of interpreting them.
14025         * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
14026         There is no such envvar since the inception of autom4te.cfg.
14027         * bin/autom4te.in (&parse_args): Uniquify `@include'.
14028         * bin/autoupdate.in: Adjust, and perform more control.
14029         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
14030         * tests/autoconf: Dittowise.
14032 2001-08-31  Akim Demaille  <akim@epita.fr>
14034         * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
14035         * bin/autom4te.in (&find_file): Support `FILE?' standing for
14036         optionally `FILE'.
14037         Use -e, not -f, since /dev/null for instance is OK.
14038         (&parse_args): Adjust.
14039         * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
14041 2001-08-31  Akim Demaille  <akim@epita.fr>
14043         * configure.ac: Also find tested executables in bin.
14044         * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
14045         * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
14046         installed peer executables, only PATH is allowed to resolve it.
14047         Pass `autoconf_dir' via options, not via invisible envvars.
14048         * lib/Autom4te/General.pm (&find_peer): Remove.
14049         * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
14050         `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
14051         * man/Makefile.am: Let help2man rely on PATH instead of trying to
14052         find the executables for it.
14053         * tests/Makefile.am: Major cleanup.  Too lazy to document...
14054         * tests/atlocal.in: Remove all the obscure envvar manipulations.
14055         We only need PERL.
14056         * tests/atspecific.m4, tests/tools.at: Passing --localdir is
14057         indeed related to running the test suite, while passing
14058         --autoconf-dir and others is related to running non installed
14059         Autoconf executables.  So don't do that, leave it to...
14060         * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
14061         * tests/autoscan: New.
14062         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
14063         refer to library files: rely on --language.
14065 2001-08-29  Akim Demaille  <akim@epita.fr>
14067         * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
14068         s/--set/--language/.
14070 2001-08-29  Akim Demaille  <akim@epita.fr>
14072         * doc/autoconf.texi: Strip the @nodes.
14073         Suggested by Paul Eggert.
14074         (Initializing configure): Typo.
14076 2001-08-29  Akim Demaille  <akim@epita.fr>
14078         * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
14079         Suggested by Paul Eggert.
14081 2001-08-29  Akim Demaille  <akim@epita.fr>
14083         * Makefile.maint (do-po-update): Wget refuses to overwrite files:
14084         download in a tmp dir.
14086 2001-08-29  Akim Demaille  <akim@epita.fr>
14088         * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
14089         case insensitive OSes out there :(
14090         From Tim Van Holder.
14092 2001-08-29  Akim Demaille  <akim@epita.fr>
14094         * lib/autom4te.in: New.
14095         * lib/Makefile.am (edit, autom4te.cfg): New.
14096         * bin/autom4te.in (BEGIN): Simplify.
14097         Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
14098         (&load_configuration): New.  Use it.
14099         (&parse_args): Support --mode, --set, and --melt.
14100         * bin/autoconf.in: Simplify and adjust.
14101         * tests/Makefile.am (AUTOMAKE): Use --set.
14102         * tests/atlocal.in: Adjust.
14103         * BUGS: distcheck and check are weak.
14105 2001-08-29  Akim Demaille  <akim@epita.fr>
14107         * lib/autotest/general.m4: Use
14108                 foo=`(command) 2>/dev/null`
14109         not
14110                 foo=`command` 2>/dev/null
14111         (at-devnull): Rename as...
14112         (AT-devnull): this.
14113         (--clean): Remove AT-* files too.
14114         * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
14115         Reported by Nicolas Joly.
14117 2001-08-28  Akim Demaille  <akim@epita.fr>
14119         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
14120         quotes inside single quotes.
14121         Reported by Nicolas Joly.
14123 2001-08-28  Kevin Ryde  <user42@zip.com.au>
14125         * doc/autoconf.texi (Function Portability): Mention C right shifts.
14127 2001-08-27  Tim Van Holder  <tim.van.holder@pandora.be>
14129         * lib/autotest/general.m4: Reword some messages.
14130         (AT_INIT): Check for the `times' builtin before using it.
14131         Support test ranges as arguments to the testsuite.
14132         Have -e imply -d as the help text suggested.
14134 2001-08-27  Akim Demaille  <akim@epita.fr>
14136         * Makefile.maint: Formatting changes.
14137         (do-po-update, po-update, cvs-update, update): New targets.
14138         (AMTAR): Remove.
14140 2001-08-27  Akim Demaille  <akim@epita.fr>
14142         * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
14143         <at_cmd_line>: New.
14144         Pass it to debug-*.sh scripts.
14145         <AUTOTEST_PATH>: May contain absolute dir names.
14147 2001-08-27  Akim Demaille  <akim@epita.fr>
14149         * lib/autotest/general.m4 (AT_INIT): Log the command line.
14150         Support `VAR=VAL' as arguments.
14151         Compute PATH _after_ the options processing, so that AUTOTEST_PATH
14152         may be set via the command line.
14154 2001-08-27  Akim Demaille  <akim@epita.fr>
14156         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
14157         * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
14158         first the build dirs, then the src dirs.
14159         * configure.ac (AC_CONFIG_TESTDIR): Adjust.
14161 2001-08-27  Akim Demaille  <akim@epita.fr>
14163         * lib/autotest/general.m4 (AT_INIT): Output the definition of
14164         at_data_files earlier.
14165         (--clean, -c): New option.
14166         * tests/Makefile.am: Use this option.
14168 2001-08-27  Akim Demaille  <akim@epita.fr>
14170         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
14171         `ac_top_builddir' to mimic Automake's vocabulary, which much more
14172         readable.
14173         Adjust callers.
14174         * doc/autoconf.texi (Configuration Actions): Document the vars
14175         available in commands.
14176         Emphasize the risks of collisions in init-cmds.
14178 2001-08-27  Akim Demaille  <akim@epita.fr>
14180         * doc/autoconf.texi (Input) <AC_INIT>: Move to..
14181         (Initializing configure): this new node.
14183 2001-08-27  Akim Demaille  <akim@epita.fr>
14185         * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
14187 2001-08-27  Akim Demaille  <akim@epita.fr>
14189         * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
14190         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
14191         New file.
14192         * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
14194 2001-08-27  Akim Demaille  <akim@epita.fr>
14196         * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
14197         to...
14198         * lib/autoconf/autoheader.m4: this new file.
14199         * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
14200         (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
14201         Move to...
14202         * lib/autoconf/autoupdate.m4: this new file.
14204 2001-08-27  Akim Demaille  <akim@epita.fr>
14206         * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
14207         (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
14208         Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
14209         -> ac_dir).
14210         (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
14211         * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
14213 2001-08-27  Akim Demaille  <akim@epita.fr>
14215         * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
14216         (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
14217         (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
14218         (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
14219         (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
14220         (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
14221         (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
14222         (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
14223         (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
14224         (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
14225         (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
14226         (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
14227         (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
14228         (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
14229         (_AC_OUTPUT_SUBDIRS): Move to...
14230         * lib/autoconf/status.m4: this new file.
14231         * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
14232         * tests/Makefile.am, tests/suite.at: Adjust.
14234 2001-08-27  Akim Demaille  <akim@epita.fr>
14236         Automake 1.5.
14238         * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
14239         (AMTAR): Help automake define it.
14240         (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
14241         needed, 1.5 can have a macro and a target with the same name.
14242         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
14243         * m4/strip.m4: New.
14244         * m4/init.m4, m4/sanity.m4: Update.
14245         * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
14246         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
14247         * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
14248         * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
14250 2001-08-27  Akim Demaille  <akim@epita.fr>
14252         Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
14254         * lib/autoconf/version.in: Remove.
14255         * lib/m4sugar/version.in: New.
14256         * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
14257         Adjust callers.
14258         * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
14259         the name of the directory they're in, instead of the filename,
14260         since version.m4 is now in m4sugar, but m4_acversion must not be
14261         classified as an Autoconf macro.
14262         ($input_m4): Don't qualify the path to m4sugar.
14263         Rather, pass autoconf_dir to m4.
14264         * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
14265         * tests/suite.at: Require 2.52c.
14267 2001-08-27  Akim Demaille  <akim@epita.fr>
14269         testsuite.log should include config.log.
14271         * lib/autotest/autotest.m4: New.
14272         * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
14273         * tests/suite.at : Adjust.
14274         (AT_INIT): Log config.log.
14275         * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
14276         * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
14277         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
14278         (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
14279         of config.log on traps.
14280         (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
14281         Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
14282         for config.status'.
14283         Open the log as soon as possible.
14284         Use the same log introduction as configure's.
14286 2001-08-22  Paul Eggert  <eggert@twinsun.com>
14288         * doc/autoconf.texi (Indices): New node.
14289         Move indices out of the top level menu and into this submenu.
14291 2001-08-22  Akim Demaille  <akim@epita.fr>
14293         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
14294         AC_TRY_COMMAND.
14295         (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
14297 2001-08-22  Akim Demaille  <akim@epita.fr>
14299         * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
14300         (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
14301         (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
14302         * lib/autoconf/programs.m4: here.
14303         * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
14304         (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
14305         (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
14306         * lib/autoconf/programs.m4: here.
14307         (_AC_DECL_YYTEXT): Rename as...
14308         (_AC_PROG_LEX_YYTEXT_DECL): this.
14309         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
14310         * tests/Makefile.am, tests/suite.am: Adjust.
14312 2001-08-22  Akim Demaille  <akim@epita.fr>
14314         * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
14315         Move to...
14316         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
14317         here.
14318         * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
14319         * lib/autoconf/functions.m4: here.
14320         * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
14321         (AH_CHECK_LIB): Move to...
14322         * lib/autoconf/libs: this new file.
14323         * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
14324         (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
14325         * lib/autoconf/libs.m4: here.
14326         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
14328 2001-08-22  Akim Demaille  <akim@epita.fr>
14330         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
14331         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
14332         (AC_SITE_LOAD): Better logging of config.site.
14334 2001-08-20  Akim Demaille  <akim@epita.fr>
14336         * configure.ac (AT_CONFIG): Fix the path.
14337         * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
14338         can be used.
14340 2001-08-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
14342         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
14343         program with AC_LANG_PROGRAM before feeding it to
14344         AC_COMPILE_IFELSE.  Cleanup grep usage.
14346 2001-08-20  Akim Demaille  <akim@epita.fr>
14348         * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
14349         * NEWS, README, README-alpha, TODO, tests/README: This package is
14350         `Autoconf', not `autoconf' (the executable).
14352 2001-08-20  Akim Demaille  <akim@epita.fr>
14354         Info readers seem to need `Index' in the index node title :(
14356         * doc/autoconf.texi: Reverse the 2001-08-15 change which
14357         simplified index node names.
14359 2001-08-20  Akim Demaille  <akim@epita.fr>
14361         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
14362         arguments are not literals.
14363         * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
14364         Specify the output variables, and macros defined.
14366 2001-08-20  Akim Demaille  <akim@epita.fr>
14368         * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
14369         (Examining Syntax) <AC_TRY_COMPILE>
14370         (Examining Libraries) <AC_TRY_LINK>
14371         (Test Programs) <AC_TRY_RUN>: These macros double quote some of
14372         their arguments.
14373         Reported by Werner Lemberg.
14375 2001-08-20  Akim Demaille  <akim@epita.fr>
14377         * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
14378         top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
14379         Load atlocal late enough to dump it in the log.
14380         * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
14382 2001-08-20  Akim Demaille  <akim@epita.fr>
14384         * tests/torture.at (Configuring subdirectories): New test.
14385         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
14386         looking for.
14387         * m4/atconfig.m4: Be sure the let $[0] be expandable.
14388         (top_srcdir): Fix its computation.
14390 2001-08-20  Akim Demaille  <akim@epita.fr>
14392         * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
14393         * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
14394         test suite lives.
14395         Create `atconfig' automagically.
14396         Configure atlocal.in if present.
14397         * tests/atconfig.in: Remove.
14398         * tests/atlocal.in: New.
14399         * tests/Makefile.am: Adjust.
14401 2001-08-20  Akim Demaille  <akim@epita.fr>
14403         Huh!?!?!  There are still some user EOF tags used, which prevents
14404         their use in AC_CONFIG_COMMANDS for instance...
14406         * lib/autoconf/general.m4, lib/autoconf/specific.m4,
14407         * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
14408         `_CSEOF', or `_ATEOF', as appropriate.
14409         * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
14410         * lib/autotest/Makefile.am (check-local): Enforce this constraint.
14412 2001-08-20  Akim Demaille  <akim@epita.fr>
14414         * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
14415         * tests/semantics.at, tests/tools.at, tests/torture.at:
14416         s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
14418 2001-08-20  Akim Demaille  <akim@epita.fr>
14420         Autotest invokes M4sh's initialization.
14422         * lib/autotest/general.m4: Adjust the diversion names.
14423         (AT_INIT): Run AS_INIT.
14424         Use the BINSH diversion to invoke /bin/sh.
14425         * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
14426         * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
14428 2001-08-20  Akim Demaille  <akim@epita.fr>
14430         Let M4sh have its own diversions.
14432         * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
14433         (_m4_divert(NOTICE)): Rename as...
14434         * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
14435         (_m4_divert(HEADER-COMMENT)): these.
14436         (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
14437         (_m4_divert(NOTICE)): New, for Libtool.
14438         * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
14439         long ago with `_m4_divert(GROW)'.
14440         (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
14442 2001-08-20  Akim Demaille  <akim@epita.fr>
14444         * tests/base.at, tests/compile.at, tests/foreign.at,
14445         * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
14446         * tests/semantics.at, tests/suite.at, tests/tools.at,
14447         * tests/torture.at: Ask Autotest mode, not Autoconf mode.
14449 2001-08-20  Akim Demaille  <akim@epita.fr>
14451         * bin/autom4te.in (handle_output): Handle @__@.
14453 2001-08-20  Akim Demaille  <akim@epita.fr>
14455         * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
14456         * lib/autotest/general.m4: Adjust the license.
14458 2001-08-17  Paul Eggert  <eggert@twinsun.com>
14460         * doc/autoconf.texi (Function Portability): Mention snprintf,
14461         following up on a suggestion by Kevin Ryde.
14463 2001-08-17  Akim Demaille  <akim@epita.fr>
14465         * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
14466         `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
14468 2001-08-17  Akim Demaille  <akim@epita.fr>
14470         * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
14471         `$0.log' as for projects where testsuite is in src, we'd have
14472         testsuite.log created in src.
14474 2001-08-17  Akim Demaille  <akim@epita.fr>
14476         * bin/autom4te.in (&parse_args): Recognize --normalize.
14478 2001-08-17  Akim Demaille  <akim@epita.fr>
14480         Start implementing the AC_CHECK_HEADER transition scheme.
14482         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
14483         (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
14484         (AC_CHECK_HEADER): Use them.
14486 2001-08-17  Akim Demaille  <akim@epita.fr>
14488         * doc/autoconf.texi: Work around Texinfo buglets.
14489         (Transformation Rules): One example is enough, users are expected
14490         to have their brains on. And BTW, use DESTDIR.
14491         (dvar): New macro.  Use it.
14493 2001-08-17  Akim Demaille  <akim@epita.fr>
14495         * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
14496         * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
14497         looking for ChangeLogs.
14499 2001-08-17  Akim Demaille  <akim@epita.fr>
14501         * bin/autom4te.in: --normalize is a new option.
14502         * bin/autoconf.in: Use it.
14504 2001-08-17  Akim Demaille  <akim@epita.fr>
14506         * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
14507         * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
14509 2001-08-16  Paul Eggert  <eggert@twinsun.com>
14511         * doc/autoconf.texi, doc/install.texi: Put copyright notice at
14512         start, not at end.
14514 2001-08-15  Akim Demaille  <akim@epita.fr>
14516         * doc/Makefile.am (fu): New index, can't use fn because of defmac.
14517         Use it.
14519 2001-08-15  Akim Demaille  <akim@epita.fr>
14521         * doc/autoconf.texi (pr): New index.
14522         (prindex, findex): Use, merge, and output them.
14523         (Environment Variable Index, Output Variable Index)
14524         (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
14525         (Autotest Macro Index): Rename as...
14526         (Environment Variables, Output Variables,Preprocessor Symbols)
14527         (Autoconf Macros, M4 Macros, Autotest Macros): these.
14528         * doc/install.texi: Use @command.
14529         (Environment Variables): Rename as...
14530         (Defining Variables): this.
14532 2001-08-15  Akim Demaille  <akim@epita.fr>
14534         * doc/autoconf.texi (Function Portability): sprintf's return
14535         value.
14536         From Kevin Ryde.
14538 2001-08-15  Akim Demaille  <akim@epita.fr>
14540         * Makefile.maint (CVS): New.
14541         (local-check): Run changelog-check. last.
14542         (alpha): Don't depend upon local-check, since...
14543         (cvs-dist): depends upon it.
14545 2001-08-15  Tim Van Holder  <tim.van.holder@pandora.be>
14547         * tests/Makefile.am: Use a clean-local rule to remove
14548         autom4te.cache (it's a directory, not a file.
14549         * Makefile.am: Ditto (but maintainer-clean-local).
14551 2001-08-15  Akim Demaille  <akim@epita.fr>
14553         * bin/autom4te.in (@m4_warning): New.
14554         (&handle_m4): Use it.
14555         * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
14556         warnings are issued at each run.
14557         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
14558         is in the src tree.
14560 2001-08-15  Akim Demaille  <akim@epita.fr>
14562         * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
14563         don't waste time running `autoupdate --version' works.
14564         * tests/tools.at (autoupdating AC_PREREQ): Likewise.
14566 2001-08-13  Akim Demaille  <akim@epita.fr>
14568         * doc/autoconf.texi (ma): Rename this index as...
14569         (ac): this.
14571 2001-08-13  Akim Demaille  <akim@epita.fr>
14573         * Makefile.am: Remove dead code and dead comments.
14574         (pdf, html): New targets.
14575         * doc/autoconf.texi (Using Autotest): New chapter.
14576         * doc/Makefile.am (pdf): New targets.
14577         (CLEANFILES): Adjust.
14579 2001-08-13  Akim Demaille  <akim@epita.fr>
14581         * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
14582         duration of the test suite.
14584 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
14586         * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
14587         endianness for comparison instead of relying on AT_CHECK_ENV.
14589 2001-08-11  Paul Eggert  <eggert@twinsun.com>
14591         * doc/autoconf.texi, doc/install.texi: Add a copyright notice
14592         to the INSTALL file.
14594 2001-08-11  Paul Eggert  <eggert@twinsun.com>
14596         * NEWS: The autoconf manual now is distributed under the terms
14597         of the GNU Free Documentation License.
14599         * doc/autoconf.texi: Switch from old style copyright notice to FDL.
14600         Add an appendix "Copying This Manual" for the FDL.
14602         * doc/fdl.texi: New file, from
14603         <http://www.gnu.org/licenses/fdl.texi>.
14605         * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
14607 2001-08-10  Paul Eggert  <eggert@twinsun.com>
14609         * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
14610         ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
14611         README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
14612         m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
14613         m4/sanity.m4, tests/README, tests/aclocal.m4,
14614         tests/atspecific.m4, tests/base.at, tests/compile.at,
14615         tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
14616         tests/semantics.at, tests/suite.at, tests/tools.at,
14617         tests/torture.at: Add copyright notice.
14619         * tests/mktests.sh: Update year in copyright notice.
14621 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
14623         * tests/semantics.at (AC_C_BIGENDIAN): New test.
14625 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
14627         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
14628         ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
14629         * doc/autoconf.texi (C Compiler Characteristics): Update
14630         documentation for AC_C_BIGENDIAN.
14632 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
14634         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
14635         magic values from an object file when cross-compiling.
14636         Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
14638 2001-08-10  Akim Demaille  <akim@epita.fr>
14640         * bin/autom4te.in (&handle_output): Don't use `grep' with side
14641         effects.
14642         Suggested by Russ Allbery.
14644 2001-08-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
14646         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
14647         current $prefix to the sub-configures.
14649 2001-08-09  Tim Van Holder  <tim.van.holder@pandora.be>
14651         * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
14652         extension (needed on BeOS).  Reported by Guido van Rossum.
14654 2001-08-09  Akim Demaille  <akim@epita.fr>
14656         * bin/autom4te.in ($icache): Load it only if older than autom4te.
14658 2001-08-07  Akim Demaille  <akim@epita.fr>
14660         * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
14661         removed.
14662         (at-setup-line): Huh?  Be a variable `at_setup_line', not a file.
14663         No need to remove the files before and after the each test, before
14664         each test and at the end of the suite is enough.
14665         Display only the children `times', not the shell's.
14666         If the test failed or was skipped, at-times is not available.
14668 2001-08-07  Akim Demaille  <akim@epita.fr>
14670         Always produce testsuite.log, including when there are no
14671         failures.  This helps getting information on skipped tests, and
14672         duration of the tests.  Err, implement the latter btw.
14674         * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
14675         Dump information on the first run of each test.
14676         (AT_CLEANUP): Create `at-times' containing the duration of the
14677         test group.
14679 2001-08-07  Akim Demaille  <akim@epita.fr>
14681         The use of `dumpstat' revealed that `len' was used although it
14682         should not.  m4_text_wrap was using it, but in the Autoconf world
14683         where it is legal.  Hence (i) test M4sh in its own world, not
14684         Autoconf's, and (ii), ahem, fix the bug :)
14686         * lib/autotest/general.m4: Be sure the set good quotes, as tracing
14687         does not like `' instead of [].
14688         (AT_INIT): Forbid `^_?AT_'.
14689         And don't output such tokens.
14690         * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
14691         `script.as', and `autom4te.cache'.
14692         Remove `empty' and `macro' which are no longer used.
14693         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
14694         * tests/m4sugar.at: Use it.
14695         * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
14697 2001-08-07  Akim Demaille  <akim@epita.fr>
14699         * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
14701 2001-08-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
14703         * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
14705 2001-08-04  Akim Demaille  <akim@epita.fr>
14707         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
14708         (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
14709         AC_TRY_LINK.
14710         * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
14711         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
14712         (AC_F77_MAIN): Likewise.
14714 2001-08-04  Akim Demaille  <akim@epita.fr>
14716         Don't rely on M4sugar outputting the patterns in files, since we
14717         might process the output _without_ running m4, hence without these
14718         files.
14720         * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
14721         * bin/autom4te.in (@Request::includes): Remove, unused.
14722         (@Request::source): Rename as...
14723         (@Request::input): this.
14724         (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
14725         (&handle_output): Fetch the patterns from the traces.
14726         `$forbidden' and `$allowed' are constant: use m//o.
14727         (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
14728         (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
14730 2001-08-04  Akim Demaille  <akim@epita.fr>
14732         `autoconf && autoheader' is sped up.  Now, speed up `autoheader &&
14733         autoconf', i.e., in addition to caching traces, cache the output.
14735         * bin/autom4te.in (Request::cache): Rename as...
14736         (Request::id): this.
14737         ($cache, $icache, $tcache, $ocache): New.
14738         (&handle_m4): Save M4 output in the cache instead of $tmp.
14739         (&handle_output): Adjust.
14740         (&up_to_date_p): Check that the output cache is up to date too.
14741         (top level): Run `&handle_m4' iff force or the cache is invalid.
14742         Run `&handle_output' if the output cache is more recent.
14744 2001-08-04  Akim Demaille  <akim@epita.fr>
14746         * bin/autom4te.in ($force): New.
14747         (&parse_args, &print_usage): -f, --force is a new option.
14748         (&handle_output): CPP directives might have spaces after `#'.
14749         (&parse_args): The first file only can be frozen.
14751 2001-08-04  Akim Demaille  <akim@epita.fr>
14753         Don't let autom4te compute the `include' traces several times:
14754         first check that the trace cache file is up to date, and then
14755         compare its timestamp with that of the output.
14757         * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
14758         the preamble.  Don't require 5.005 as Autom4te::General does it,
14759         and better yet (use `use', not `require'!).
14760         * lib/Autom4te/Struct.pm: Rename the last occurrences of
14761         Class::Struct as Autom4te::Struct.
14762         * lib/Autom4te/General.pm (File::stat): Use it.
14763         (&mtime): New, export it.
14764         * bin/autom4te.in: Use it.
14765         Declare `$req' is invalid if it is outdated.
14766         Don't declare it valid before saving it if something went wrong.
14768 2001-08-04  Akim Demaille  <akim@epita.fr>
14770         Autom4te shall not encode Autoconf data, and preselecting traces
14771         must be proposed to the users.
14773         * bin/autom4te.in (@required_trace): Remove.
14774         (@preselect): New.
14775         (&parse_args, &print_usage): -p, --preselect is a new option.
14776         (&up_to_date_p): Adjust.
14777         * bin/autoconf.in: Preselect some Autoconf macros.
14779 2001-08-04  Akim Demaille  <akim@epita.fr>
14781         * tests/tools.at (autoconf --trace: user macros): Check traces on
14782         macros invoked without arguments, and macros invoked with multiple
14783         lines arguments.
14785 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
14787         * bin/autom4te.in (handle_traces): Fix rewriting of traces without
14788         arguments.
14790 2001-08-03  Akim Demaille  <akim@epita.fr>
14792         * bin/autoconf.in ($@): Work around the usual sh bug.
14793         From Nicolas Joly.
14795 2001-08-03  Akim Demaille  <akim@epita.fr>
14797         Clean up the handling of the M4 builtins tracing exception.
14799         * bin/autom4te.in (Request::request): Don't complete M4 builtins
14800         trace requests.
14801         (@m4_builtins): Rename as...
14802         (@m4_builtin): this.
14803         (%m4_builtin_alternate_name): New.
14804         (&parse_args): Complete the trace requests with alternate names.
14805         (&handle_traces): Hence no longer do it here.
14806         (&trace_requests): Remove, unused.
14808 2001-08-03  Akim Demaille  <akim@epita.fr>
14810         * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
14811         m4_if, and m4_wrap.
14813 2001-08-03  Akim Demaille  <akim@epita.fr>
14815         * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
14816         (m4_divert_pop): Dump the whole diversion stack when a diversion
14817         mismatch happens.
14818         * bin/autom4te.in (&handle_output): Remember of the first
14819         occurrence of a possibly undefined macro, not the last.
14820         Complain about the possibly undefined macros in the same order as
14821         the appear in the output.
14822         * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
14823         * tests/tools.at (autoconf: forbidden tokens, basic)
14824         (autoconf: forbidden tokens, exceptions): No longer sort
14825         autoconf's stderr, as it is now deterministic.
14826         Check that `dnl' is caught.
14828 2001-08-01  Akim Demaille  <akim@epita.fr>
14830         * configure.ac: Bump to 2.52c.
14832 2001-08-01  Akim Demaille  <akim@epita.fr>
14834         Version 2.52b.
14836         * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
14838 2001-08-01  Akim Demaille  <akim@epita.fr>
14840         Version 2.52a.
14842 2001-08-01  Akim Demaille  <akim@epita.fr>
14844         * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
14845         `die'.
14846         (&END): New.
14847         * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
14848         `END', as `Autom4te::General::END' will be triggered.
14849         * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
14850         * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
14851         system to run `mv', `rm', and `cmp'.
14853 2001-08-01  Akim Demaille  <akim@epita.fr>
14855         * lib/Autom4te/General.pm (&unique): New.
14856         * bin/autoscan.in (&output): Use it to issue trace requests once.
14858 2001-08-01  Akim Demaille  <akim@epita.fr>
14860         * lib/Autom4te/General.pm: New.
14861         * bin/autom4te.in (Autom4te::General): Use it.
14862         ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
14863         (&find_configure_ac, &find_slave): Remove.
14864         * bin/autoscan.in: Likewise.
14865         * bin/autoupdate.in: Likewise.
14867 2001-08-01  Akim Demaille  <akim@epita.fr>
14869         * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
14870         * autoheader.in, autoreconf.in, autoupdate.in: Move to...
14871         * bin: here, new directory.
14872         * lib/Autoconf: Rename as...
14873         * lib/Autom4te: this, to please case insensitive junkie OSes.
14875 2001-08-01  Akim Demaille  <akim@epita.fr>
14877         * autom4te.in ($m4): Handle the --nesting-limit.
14878         * autoconf.in (M4): Remove.
14880 2001-08-01  Akim Demaille  <akim@epita.fr>
14882         * autoconf.in ($AWK): Remove, no longer used.
14883         * test/tools.at: Use AT_CHECK_AUTOCONF.
14884         (AWK portability): Remove, for autoconf no longer uses AWK.
14885         (Syntax of the Perl scripts): New.
14886         * configure.ac: autoconf no longer needs an AWK with a good
14887         regexp engine.
14888         Use a static test on AC_PACKAGE_VERSION.
14889         * autom4te.in (&up_to_date_p): Output depends on the arguments.
14890         * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
14891         * tests/atconfig.in (PERL): New.
14893 2001-08-01  Akim Demaille  <akim@epita.fr>
14895         * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
14896         (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
14897         (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
14898         (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
14899         (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
14900         (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
14901         (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
14902         (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
14903         (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
14904         (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
14905         (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
14906         (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
14907         (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
14908         * lib/autoconf/c.m4: here, new file.
14910         * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
14911         (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
14912         (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
14913         (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
14914         (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
14915         (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
14916         (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
14917         (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
14918         (AC_F77_FUNC): Move to...
14919         * lib/autoconf/fortran.m4: here, new file.
14921 2001-08-01  Akim Demaille  <akim@epita.fr>
14923         * acfunctions.m4: Rename as...
14924         * lib/autoconf/functions.m4: this.
14925         * acgeneral.m4: Rename as...
14926         * lib/autoconf/general.m4: this.
14927         * acheaders.m4: Rename as...
14928         * lib/autoconf/headers.m4: this.
14929         * aclang.m4: Rename as...
14930         * lib/autoconf/lang.m4: this.
14931         * acoldnames.m4: Rename as...
14932         * lib/autoconf/oldnames.m4: this.
14933         * acspecific.m4: Rename as...
14934         * lib/autoconf/specific.m4: this.
14935         * actypes.m4: Rename as...
14936         * lib/autoconf/types.m4: this.
14937         * autoconf.m4: Rename as...
14938         * lib/autoconf/autoconf.m4: this.
14940         * m4sugar.m4: Rename as...
14941         * lib/m4sugar/m4sugar.m4: this.
14942         * m4sh.m4: Rename as...
14943         * lib/m4sugar/m4sh.m4: this.
14945         * tests/atgeneral.m4: Rename as...
14946         * lib/autotest/general.m4: this.
14948         * acfunctions: Rename as...
14949         * lib/autoscan/functions: this.
14950         * acheaders: Rename as...
14951         * lib/autoscan/headers: this.
14952         * acidentifiers: Rename as...
14953         * lib/autoscan/identifiers: this.
14954         * aclibraries: Rename as...
14955         * lib/autoscan/libraries: this.
14956         * acmakevars: Rename as...
14957         * lib/autoscan/makevars: this.
14958         * acprograms: Rename as...
14959         * lib/autoscan/programs: this.
14961 2001-08-01  Akim Demaille  <akim@epita.fr>
14963         * doc/autoconf.texi: Moving/deleting open files is not portable.
14964         Portability issues for `.' (source), and more information about sed.
14966 2001-07-25  Steven G. Johnson  <stevenj@alum.mit.edu>
14968         * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
14969         which has a special meaning and is not a reference to libibmil.a.
14970         Reported by Matteo Frigo.
14972 2001-07-25  Pavel Roskin  <proski@gnu.org>
14974         * autom4te.in (mktmpdir): Strip trailing newline from mktemp
14975         output.
14977 2001-07-25  Akim Demaille  <akim@epita.fr>
14979         * autoconf.in: Try to define the variables before using them.
14980         * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
14981         instead of `$perllibdir'.
14982         * tests/atconfig.in ($autom4te_perllibdir): Export it.
14984 2001-07-25  Akim Demaille  <akim@epita.fr>
14986         * autoconf.in (ac_LF_and_DOT): Remove, unused.
14988 2001-07-24  Akim Demaille  <akim@epita.fr>
14990         Let autoconf use autom4te for traces.
14992         * autoconf.in ($task, task trace): Remove, merely pass --trace to
14993         autom4te.
14994         * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
14995         (Because I found no way for autom4te to accept `-').
14996         * autom4te.in (&Request::request): Beware of M4 builtins.
14997         (END): Don't try to remove the content of an empty dir.
14998         (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
14999         (&handle_output): Set a default value to `$forbidden'.
15000         * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
15001         ($autoconf): Pass --debug and --verbose.
15002         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
15003         cache.
15005 2001-07-24  Akim Demaille  <akim@epita.fr>
15007         Let autoconf use autom4te to create configure.
15009         * autoconf.in ($automate): New var.
15010         (task script): Use autom4te.
15011         * autom4te.in (File::Spec): Use it.
15012         (&find_file): New.
15013         (&parse_args): --warning is -W, not -w.
15014         Find the top level files.
15015         (&handle_m4): Pass the warnings flags.
15016         Don't report verbosely m4's failures, unless requested.
15017         (&handle_output): Don't complain for forbidden tokens in comments.
15018         Be sure to report all the forbidden tokens within a single line.
15019         (&trace_format_to_m4): Preserve `$_'.
15020         (&handle_traces): Sort the output macros.
15021         (&up_to_date_p): Find the files before trying to get its time stamp.
15023 2001-07-24  Akim Demaille  <akim@epita.fr>
15025         * Makefile.am: Ship, build and install Autom4te.
15026         (SUBDIRS): Add lib.
15027         * lib/Autoconf/Struct.pm: New, from Automake 1.5.
15028         * configure.in: Require Perl.
15029         * man/autom4te.in: New.
15031 2001-07-19  Paul Eggert  <eggert@twinsun.com>
15033         * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
15034         example, rather than (exit 1); exit (which isn't portable).
15036 2001-07-18  Akim Demaille  <akim@epita.fr>
15038         Version 2.52.
15040 2001-07-18  Akim Demaille  <akim@epita.fr>
15042         The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
15043         was run, while they are needed also when it is expanded.
15044         Reported by Nicolas Joly.
15046         * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
15047         (AC_LANG_PROGRAM(C)): Use it instead of depending upon
15048         AC_F77_DUMMY_MAIN being expanded.
15050 2001-07-18  Akim Demaille  <akim@epita.fr>
15052         * configure.in: Bump to 2.51a.
15054 2001-07-17  Akim Demaille  <akim@epita.fr>
15056         Version 2.51.
15058 2001-07-17  Akim Demaille  <akim@epita.fr>
15060         * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
15061         Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
15063 2001-07-17  Akim Demaille  <akim@epita.fr>
15065         The runtime test for AC_FUNC_GETPGRP fails when prototypes are
15066         used.  Well, then use the prototypes when you can, and runtime as
15067         a last resort.
15068         Reported by Artur Frysiak
15070         * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
15071         (AC_FUNC_GETPGRP): Use it.
15072         First try to compile with 0-ary or 1-ary calls.
15074 2001-07-17  Akim Demaille  <akim@epita.fr>
15076         * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
15077         replacement type.
15078         From Paul Eggert.
15080 2001-07-17  Akim Demaille  <akim@epita.fr>
15082         * Makefile.maint: Sync. with cppi 1.10.
15084 2001-07-17  Akim Demaille  <akim@epita.fr>
15086         * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
15087         AC_F77_DUMMY_MAIN has been run.
15088         From Pavel Roskin and Steven G. Johnson.
15090 2001-07-17  Akim Demaille  <akim@epita.fr>
15092         * configure.in: Rename as...
15093         * configure.ac: this.
15095 2001-07-17  Akim Demaille  <akim@epita.fr>
15097         * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
15098         rules.
15099         From Marc Espie.
15100         * Makefile.maint (release-archive-dir): Rename as...
15101         (release_archive_dir): this, so that it can be specialized in
15102         Makefile.
15104 2001-07-14  Akim Demaille  <akim@epita.fr>
15106         * configure.in: Bump to 2.50d.
15108 2001-07-14  Akim Demaille  <akim@epita.fr>
15110         Version 2.50c.
15111         * Makefile.maint (alpha): Typo.
15113 2001-07-14  Akim Demaille  <akim@epita.fr>
15115         * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
15117 2001-07-14  Akim Demaille  <akim@epita.fr>
15119         * config/config.guess, config/config.sub, config/texinfo.tex
15120         * doc/standards.texi, doc/make-stds.texi: Update.
15122 2001-07-14  Akim Demaille  <akim@epita.fr>
15124         * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
15126 2001-07-14  Akim Demaille  <akim@epita.fr>
15128         * Makefile.maint (maintainer-check): Rename as...
15129         (maintainer-distcheck): this.
15130         (changelog-check, static-check): New.
15131         Use them.
15133 2001-07-14  Kevin Ryde  <user42@zip.com.au>
15135         * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
15136         for CXX is g++, not gcc.
15138 2001-07-14  Akim Demaille  <akim@epita.fr>
15140         * doc/autoconf.texi (Files): New subsection.
15142 2001-07-14  Akim Demaille  <akim@epita.fr>
15144         * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
15145         of...
15146         (Generic Compiler Characteristics): this.
15147         (C++ Compiler): New subsection.
15149 2001-07-14  Akim Demaille  <akim@epita.fr>
15151         * autoscan.in: Use IO::File.
15152         Adjust all the routines to use it.
15153         ($log): New file (autoscan.log).
15154         (output): Dump detailed logs into $log, and a shortened version to
15155         stderr.
15156         (&scan_makefile): Refine the regexp catching tokens in the code.
15157         * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
15158         and the `configure.ac' checking feature.
15160 2001-07-12  Akim Demaille  <akim@epita.fr>
15162         For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
15163         Reported by Michael Elizabeth Chastain.
15165         * autoconf.in: Refuse such AWK.
15166         * configure.in: Likewise.
15167         * Makefile.am (acversion.m4): Do not use move-if-change this file
15168         has dependencies.
15169         * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
15171 2001-07-10  Jens Petersen  <petersen@redhat.com>
15173         * autoscan.in (&scan_makefile): Improve programs regexp to parse
15174         things like "g++", "file.c" and "some-conf" as tokens.
15175         (&scan_file): Match C++ files extensions.
15176         If the filename extension is C++ then ask for c++.
15178 2001-07-05  Steven G. Johnson  <stevenj@alum.mit.edu>
15180         * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
15181         AC_TRY_LINK_FUNC, to check whether defining a dummy
15182         main-like routine is needed for linking with F77 libs.
15184 2001-07-05  Pavel Roskin  <proski@gnu.org>
15186         * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
15187         after using break.
15188         (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
15189         linking.
15191 2001-07-05  Akim Demaille  <akim@epita.fr>
15193         * Makefile.am (move_if_change): New.  Use it instead of `mv'.
15194         (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
15195         Makes' lives.
15196         Reported by Nicolas Joly.
15198 2001-07-04  Akim Demaille  <akim@epita.fr>
15200         * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
15201         up.
15202         * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
15203         warnings from compilers.
15204         * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
15205         for all the compilers, not only GNU.  Hence move from here...
15206         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
15208 2001-07-04  Akim Demaille  <akim@epita.fr>
15210         * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
15211         (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
15212         AC_COMPILE_IFELSE.
15214 2001-07-04  Akim Demaille  <akim@epita.fr>
15216         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
15217         the ``strings.h'' change claimed below.
15219 2001-07-04  Akim Demaille  <akim@epita.fr>
15221         * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
15223 2001-07-04  Akim Demaille  <akim@epita.fr>
15225         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
15226         strings.h if usable with string.h.
15227         Suggested by Paul Eggert.
15229 2001-07-04  Akim Demaille  <akim@epita.fr>
15231         * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
15232         From Jens Petersen.
15234 2001-07-03  Akim Demaille  <akim@epita.fr>
15236         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
15237         etc. in the log.
15239 2001-07-03  Akim Demaille  <akim@epita.fr>
15241         * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
15242         compiler, not the preprocessor.
15243         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
15244         dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
15245         the right thing.
15246         * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
15247         earlier if there are.
15249 2001-07-03  Akim Demaille  <akim@epita.fr>
15251         * autoscan.in ($initfile): Remove.
15252         (&find_file): Rename as...
15253         (&scan_file): this.
15254         Immediately scan the current file, instead of gathering them, and
15255         later having them handled by &scan_files.
15256         (&scan_files): Merely invoke Find::File.
15257         Adjust.
15259 2001-07-02  Akim Demaille  <akim@epita.fr>
15261         * autoscan.in: Formatting changes, matching the invocation order.
15262         (File::Find): Use it instead of Perl 4's `find.pl'.
15263         (&wanted): Rename as...
15264         (&find_file): this.
15266 2001-07-01  Pavel Roskin  <proski@gnu.org>
15268         * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
15269         break in the argument to AC_TRY_LINK_FUNC.
15270         (AC_F77_MAIN): Remove conftest* after using break in the
15271         argument to AC_TRY_LINK.
15273 2001-07-01  Steven G. Johnson  <stevenj@alum.mit.edu>
15275         Add alternate 'main' routine detection for linking C/C++ with Fortran,
15276         fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
15278         * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
15279         dummy alternate main is required even if the user provides her own
15280         'main'.
15281         (AC_F77_MAIN): New macro to detect whether it is possible to
15282         provide an alternate 'main' function name, using the 'main' from
15283         the Fortran libraries.
15284         (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
15285         cross-language link tests can be performed successfully.
15286         (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN.  Also put $FLIBS
15287         after $LIBS, for consistency; this should be the general rule since
15288         the user may want to link to Fortran libraries that require $FLIBS.
15289         * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
15291 2001-06-29  Pavel Roskin  <proski@gnu.org>
15293         * atgeneral.m4 (AT_CHECK): Add a newline to the end of
15294         at-stdout and at-stderr instead of removing the newline
15295         from the echo output, which is not guaranteed to work.
15297 2001-06-28  Jens Petersen  <petersen@redhat.com>
15299         * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
15300         confdefs.h when non-zero.
15302 2001-06-28  Akim Demaille  <akim@epita.fr>
15304         * configure.in: Bump to 2.50c.
15306 2001-06-26  Akim Demaille  <akim@epita.fr>
15308         Version 2.50b.
15310 2001-06-26  Akim Demaille  <akim@epita.fr>
15312         Version 2.50a.
15314 2001-06-25  Pavel Roskin  <proski@gnu.org>
15316         * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
15317         argument, AUTOCONF-FLAGS.
15318         * tests/mktests.sh (update_exclude_list): Add
15319         AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
15320         * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
15321         AC_FUNC_WAIT3 with "-W no-obsolete".
15323 2001-06-25  Akim Demaille  <akim@epita.fr>
15325         * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
15327 2001-06-25  Akim Demaille  <akim@epita.fr>
15329         * autoscan.in (%macro): Now maps from word to list of macros.
15330         (&init_tables): Die when a word which is already handled by
15331         explicit macros is mapped to the default macro.
15332         (&print_unique): Remove, inlined in...
15333         (&output_kind): here.
15334         (File::Basename): Use it.
15335         (&output): Sort the CONFIG_FILES.
15336         * acheaders: Normalize.
15337         * acfunctions: Likewise.
15339 2001-06-25  Akim Demaille  <akim@epita.fr>
15341         * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
15342         characteristics in the logs.
15343         Suggested by Mo DeJong.
15345 2001-06-24  Akim Demaille  <akim@epita.fr>
15347         * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
15348         (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
15349         * doc/autoconf.texi (Autoconf 2.13): New section.
15351 2001-06-24  Akim Demaille  <akim@epita.fr>
15353         * autoconf.in (Task traces): Separate the error messages from the
15354         traces to improve robustness.
15356 2001-06-23  Akim Demaille  <akim@epita.fr>
15358         * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
15359         three as failures are unlikely, and speed matters.
15361 2001-06-23  Akim Demaille  <akim@epita.fr>
15363         * doc/autoconf.texi (Redefined M4 Macros): New.
15365 2001-06-23  Akim Demaille  <akim@epita.fr>
15367         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
15368         inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
15369         5.3.
15371 2001-06-23  Paolo Bonzini  <bonzini@gnu.org>
15373         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
15374         config.status targets to after the evaluation of the INIT-CMDS.
15375         Double quote config.status targets (used to be single quoted).
15377 2001-06-23  Akim Demaille  <akim@epita.fr>
15379         * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
15380         Check the content of the created file.
15381         Check the ./config.status command line invocation.
15383 2001-06-23  Akim Demaille  <akim@epita.fr>
15385         * tests/foreign.at (Libtool): Reject prehistoric versions.
15387 2001-06-23  Akim Demaille  <akim@epita.fr>
15389         * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
15390         preexisting files matching a.*.
15392 2001-06-23  Akim Demaille  <akim@epita.fr>
15394         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
15395         stderr.
15396         * doc/autoconf.texi (AC_ARG_VAR): Update.
15398 2001-06-21  Akim Demaille  <akim@epita.fr>
15400         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
15401         precious variables have changed.
15402         * tests/torture.at (AC_ARG_VAR): Adjust.
15404 2001-06-21  Akim Demaille  <akim@epita.fr>
15406         ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
15407         but some sed choke on multiple `;', and other tools (e.g.,
15408         Automake), include the separator themselves.
15410         * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
15412 2001-06-19  Tim Van Holder  <tim.van.holder@pandora.be>
15414         * doc/autoconf.texi (Functions Portability): Rename as...
15415         (Function Portability): this.
15416         (Function Portability): Document potential problems with unlink().
15418 2001-06-19  Paul Eggert  <eggert@twinsun.com>
15420         * NEWS, doc/autoconf.texi: Document quadrigraphs.
15422 2001-06-18  Akim Demaille  <akim@epita.fr>
15424         * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
15426 2001-06-18  Ruediger Kuhlmann  <info@ruediger-kuhlmann.de>
15428         * acfunctions.m4: (AC_FUNC_VFORK) rename as...
15429         (_AC_FUNC_VFORK): this.
15430         Remove AC_DEFINEs and don't guess cross-compilation values.
15431         (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
15432         (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
15433         define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
15434         vfork doesn't work.
15435         Guess values if cross-compiling, but warn.
15436         * acfunctions: Add AC_FUNC_FORK.
15437         * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
15438         and vfork appropriately.
15440 2001-06-18  Akim Demaille  <akim@epita.fr>
15442         * doc/autoconf.texi (Functions Portability): New section.
15444 2001-06-18  Akim Demaille  <akim@epita.fr>
15446         * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
15447         in $M4.
15448         Suggested by Andreas Schwab.
15450 2001-06-18  Akim Demaille  <akim@epita.fr>
15452         * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
15453         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
15454         (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
15455         (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
15456         Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
15457         and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
15458         (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
15459         the converse).
15461 2001-06-18  Akim Demaille  <akim@epita.fr>
15463         * doc/autoconf.texi (ms): New index.
15464         (Macro Index): Rename as...
15465         (Autoconf Macro Index): this.
15466         (M4 Macro Index): New appendix.
15467         (Programming in M4): New chapter.
15468         Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
15469         (Quoting): Rename as...
15470         (M$ Quotation): this.
15471         Be part of `Programming in M4).
15473 2001-06-18  Nicolas Joly  <njoly@pasteur.fr>
15475         * tests/torture.at (AC_ARG_VAR): Set variables and export them
15476         in separate statements for compatibility with Tru64 v5.1.
15478 2001-06-17  Akim Demaille  <akim@epita.fr>
15480         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
15481         current values of the precious variables, not the previously
15482         cached values.
15483         Pass precious variables which are set to config.status.
15484         * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
15485         * tests/torture.at (AC_ARG_VAR): New.
15487 2001-06-15  Paul Eggert  <eggert@twinsun.com>
15489         * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
15490         AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
15491         and explain why and how to replace them.
15492         * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
15493         * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
15495 2001-06-15  Akim Demaille  <akim@epita.fr>
15497         `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
15498         Reported by Bruno Haible.
15500         * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
15501          (_AC_ARG_VAR_PRECIOUS): to here.
15503 2001-06-15  Pavel Roskin  <proski@gnu.org>
15505         * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
15506         an unused pointer use cast to this type and `if' statement to
15507         avoid warnings from the compiler.
15508         (AC_HEADER_TIME): Likewise.
15509         * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
15510         in `if' statement to avoid warnings from the compiler. Declare
15511         ac_aggr static to avoid the need to initialize it.
15513 2001-06-14  Akim Demaille  <akim@epita.fr>
15515         * doc/autoconf.texi (Portable Shell): Move to follow `Writing
15516         Macros'.
15518 2001-06-13  Akim Demaille  <akim@epita.fr>
15520         * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
15521         Suggested by Alexander Mai.
15523 2001-06-13  Akim Demaille  <akim@epita.fr>
15525         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
15526         sys/types.h and sys/stat.h, and check for them.
15528 2001-06-13  Akim Demaille  <akim@epita.fr>
15530         * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
15531         INCLUDES.
15533 2001-06-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
15535         * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
15536         succeeds and only try adding libdnet upon a failure.
15538 2001-06-12  Akim Demaille  <akim@epita.fr>
15540         * autoscan.in (&output_kind): Output the comment only if it exists.
15541         (%kind_comment): Add entry for `programs'.
15542         (&output_programs): Use &output_kind.
15543         (&output_functions, &output_identifiers, &output_headers)
15544         (&output_programs): Inline, and remove.
15546 2001-06-12  Akim Demaille  <akim@epita.fr>
15548         * autoscan.in (%kind_comment): New.
15549         (output_kind): New.
15550         (output_functions, output_identifiers, output_headers): Use it.
15552 2001-06-12  Akim Demaille  <akim@epita.fr>
15554         * autoscan.in (&print_unique): Take `$kind' and `$word' as
15555         arguments, to factor indirections into `%macro' and `%used'.
15556         (%generic_macro): Fix a typo.
15558 2001-06-12  Akim Demaille  <akim@epita.fr>
15560         * aclibraries: New.
15561         * autoscan.in (@kinds): Add `libraries'.
15562         Use `@kinds' instead of hard coded lists.
15563         (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
15564         Remove, replaced by...
15565         (%used): this.
15567 2001-06-12  Akim Demaille  <akim@epita.fr>
15569         * autoscan.in (%functions_macros %headers_macros)
15570         (%identifiers_macros %programs_macros %makevars_macros): Remove,
15571         replaced by...
15572         (%macro): New.
15574 2001-06-11  Raja R Harinath  <harinath@cs.umn.edu>
15576         * aclang.m4 (AC_NO_EXECUTABLES): Override
15577         _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
15579 2001-06-11  Akim Demaille  <akim@epita.fr>
15581         * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
15582         trailing new line.
15583         Reported by Andreas Schwab.
15585 2001-06-11  Akim Demaille  <akim@epita.fr>
15587         * Makefile.am, Makefile.maint: Typos.
15589 2001-06-09  Akim Demaille  <akim@epita.fr>
15591         * doc/autoconf.texi (Here-Documents): New section, gathering
15592         documentation about here-documents.
15593         Use `href', not `uref', and other changes.
15595 2001-06-09  Akim Demaille  <akim@epita.fr>
15597         * doc/autoconf.texi (Portable Shell Programming): Promoted as a
15598         chapter.
15600 2001-06-09  Akim Demaille  <akim@epita.fr>
15602         * doc/autoconf.texi (Limitations of Builtins): Complete the
15603         description of the here-docs penalties with Alexandre Oliva's
15604         explanations.
15606 2001-06-01  Paul Eggert  <eggert@twinsun.com>
15608         * doc/autoconf.texi: Talk about here documents and speedups.
15609         Do not use "echo" on arbitrary strings.
15610         Spell "here-documents" consistently with the standard.
15612 2001-06-09  Akim Demaille  <akim@epita.fr>
15614         * doc/autoconf.texi (Concept Index): Introduce it.
15615         Regenerate the menus.
15617 2001-06-09  Akim Demaille  <akim@epita.fr>
15619         * Makefile.maint, GNUmakefile: New, from Jim Meyering.
15620         * config/prev-version.txt: New.
15621         * config/move-if-change: New, for GNU libc.
15623 2001-06-06  Pavel Roskin  <proski@gnu.org>
15625         * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
15627 2001-06-06  Akim Demaille  <akim@epita.fr>
15629         * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
15630         properly when $1 is not a literal.
15631         Fixes PR Autoconf/187, reported by Bram Moolenaar.
15633 2001-06-06  Akim Demaille  <akim@epita.fr>
15635         Invoking AC_COPYRIGHT before AC_INIT fails.
15637         * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
15638         * acgeneral.m4 (_m4_divert(VERSION_FSF))
15639         (_m4_divert(VERSION_USER)): New.
15640         (AC_COPYRIGHT): $2 is the diversion to use.
15641         (_AC_INIT_COPYRIGHT): Use the FSF diversion.
15642         (AC_INIT): Remove dead comments as now it's commutative.
15644 2001-06-06  Akim Demaille  <akim@epita.fr>
15646         * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
15647         PR autoconf/187.
15649 2001-06-05  Akim Demaille  <akim@epita.fr>
15651         * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
15652         can be empty.
15653         `*dir' variables cannot be NONE.
15654         Reported by Mark Kettenis.
15656 2001-06-05  Paul Eggert  <eggert@twinsun.com>
15658         * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
15660 2001-06-04  Akim Demaille  <akim@epita.fr>
15662         * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
15663         (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
15664         (AC_TR_SH): Move as...
15665         * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
15666         (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
15667         (AS_TR_SH): these.
15668         (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
15669         (_AS_TR_SH_PREPARE): New.
15670         (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
15671         * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
15673 2001-06-02  Akim Demaille  <akim@epita.fr>
15675         * Makefile.am (.m4.m4f): Pass the options first.
15676         Fixes PR autoconf/182.
15678 2001-06-02  Nathan Sidwell  <nathan@codesourcery.com>
15680         GNU getopt, when POSIXLY_CORRECT does not permute options and
15681         arguments.  So pass the options first.
15682         Fixes PR autoconf/184.
15684         * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
15685         (run_m4): Remove files.
15686         (run_m4f): Remove.
15687         Update remainder of script to use them.
15688         (for warning in): Do not use a literal comma as it will not be
15689         split by IFS.
15691 2001-06-02  Christian Marquardt  <marq@gfz-potsdam.de>
15693         * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
15694         Fortran compilers to check.
15695         (_AC_PROG_F77_V): Add '-###' as a possible option to print
15696         information on library and object files.
15697         (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
15698         to check.
15700 2001-06-02  Akim Demaille  <akim@epita.fr>
15702         * autom4te.in (Request::@request): Declare with `vars', not `my',
15703         as it prevents updates via `do FILENAME'.
15705 2001-06-02  Akim Demaille  <akim@epita.fr>
15707         * configure.in (standards_texi): Remove, dead code.
15709 2001-06-02  Akim Demaille  <akim@epita.fr>
15711         * autom4te.in: New.
15713 2001-06-02  Pavel Roskin  <proski@gnu.org>
15715         * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
15716         for signals other than 0 - exit with code 1.
15717         * m4sh.m4 (AS_TMPDIR): Likewise.
15718         * autoconf.in: Likewise. Also don't rely on exit == exit $?.
15719         * autoheader.in: Likewise.
15720         * autoreconf.in: Likewise.
15721         * tests/torture.at (Signal handling): New test for the above.
15723 2001-06-01  Akim Demaille  <akim@epita.fr>
15725         * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
15726         message.
15728 2001-05-31  Akim Demaille  <akim@epita.fr>
15730         * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
15731         Add copyright and comments.
15732         * acheaders: Add stdint.h.
15733         Suggested by Paul Eggert.
15735 2001-05-31  Akim Demaille  <akim@epita.fr>
15737         * atgeneral.m4 (AT_INIT): Use $SHELL.
15738         * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
15740 2001-05-31  Akim Demaille  <akim@epita.fr>
15742         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
15743         stdint.h.
15744         From Paul Eggert and Lars Hecking.
15746 2001-05-31  Akim Demaille  <akim@epita.fr>
15748         * tests/base.at: Adjust line numbers in error messages.
15750 2001-05-31  Akim Demaille  <akim@epita.fr>
15752         * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
15753         to emit the bangshe line.
15754         Reported by David Carter.
15756 2001-05-30  Steven G. Johnson  <stevenj@alum.mit.edu>
15758         * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
15759         Fortran (95) compilers to check.
15761 2001-05-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
15763         * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
15764         Macro Archive URL.
15766 2001-05-23  Pavel Roskin  <proski@gnu.org>
15768         * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
15769         _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
15770         (AC_PROG_CXXCPP): Likewise.
15772 2001-05-22  Akim Demaille  <akim@epita.fr>
15774         * config: New directory.
15775         * configure.in: AC_CONFIG_AUX_DIR it.
15776         * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
15778 2001-05-22  Akim Demaille  <akim@epita.fr>
15780         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
15781         * autoupdate.in: Specify the Emacs mode.
15782         * acversion.m4.in: Rename as...
15783         * acversion.m4: this.
15784         * tests/Makefile.am (CLEANFILES): More garbage.
15786 2001-05-22  Akim Demaille  <akim@epita.fr>
15788         * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
15789         Rename as...
15790         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
15791         these.
15793 2001-05-21  Akim Demaille  <akim@epita.fr>
15795         * configure.in: Bump to 2.50a.
15798         -----
15800         Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free
15801         Software Foundation, Inc.
15803         Copying and distribution of this file, with or without
15804         modification, are permitted provided the copyright notice and this
15805         notice are preserved.