Allow comments before functions emitted by m4sh.
[autoconf.git] / ChangeLog
blob1ba968661872a6eae0156b0175230d1c31d788fc
1 2008-10-16  Eric Blake  <ebb9@byu.net>
3         Allow comments before functions emitted by m4sh.
4         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Add comment
5         argument.  Supply closing comment, to ease readability.
6         (_AS_MKDIR_P_PREPARE): Adjust caller.
7         (_AS_UNSET_PREPARE): Add comment.
9         Add AS_FUNCTION_DESCRIBE.
10         * lib/m4sugar/m4sh.m4 (AS_FUNCTION_DESCRIBE): New macro.
11         * lib/autotest/general.m4 (AT_INIT): Use it.
13 2008-10-16  Eric Blake  <ebb9@byu.net>
15         Speed up m4_qlen with caching.
16         * lib/m4sugar/m4sugar.m4 (_m4_qlen): Renamed from old m4_qlen.
17         (m4_qlen): Cache results for speed.
19 2008-10-16  Paolo Bonzini  <bonzini@gnu.org>
21         Add a testcase using more then one language.
22         * tests/compile.at (Multiple languages): New test.
24 2008-10-16  Paolo Bonzini  <bonzini@gnu.org>
26         Fix Libtool's config.lt test.
27         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Disable AS_REQUIRE while
28         expanding it.
30 2008-10-15  Eric Blake  <ebb9@byu.net>
32         Break circular require chain in _AS_LINENO_PREPARE.
33         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Ensure that logging is
34         disabled when reporting LINENO failure, since logging requires
35         LINENO.
36         * doc/autoconf.texi (Initialization Macros): Recommend m4_pushdef,
37         not m4_rename, since the latter is undocumented.
38         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid
39         m4_rename, as it does not yet handle pushdef stacks.
40         Reported by Ralf Wildenhues.
42 2008-10-15  Eric Blake  <ebb9@byu.net>
44         Cleanups to previous patches.
45         * doc/autoconf.texi (Portable Shell): Minor edits.
46         (Limitations of Builtins): Touch up wording.
47         * lib/m4sugar/m4sh.m4 (AS_LINENO_PUSH): Nuke trailing whitespace.
48         (_AS_SHELL_SANITIZE): Wrap comments less than 80 columns.
50 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
52         Updates to shell portability documentation.
53         * doc/autoconf.texi: Updates all references to "Portable Shell" and
54         "Limitations of Builtins" to use three-argument commands.
55         (Programming in M4sh): Document AS_ECHO, AS_ECHO_N, AS_UNSET.
56         (Portable Shell): Move here discussion about "Where is the POSIX
57         shell?"  Mention that M4sh provides a SVR2 shell and takes care
58         of unsetting variables if necessary.  Talk about M4sh and not only
59         Autoconf-generated scripts.
60         (Special Shell Variables): Talk about M4sh and not only
61         Autoconf-generated scripts.  Don't talk about things that Autoconf
62         does not do.  Mention problems of $LINENO with shell functions.
63         (Limitations of Builtins).  Mention AS_ECHO and AS_ECHO_N.  Move
64         discussion of eval bugs before discussion on proper use of eval.
65         Mention AS_IF.  Reword why not to use "shift N".  Mention "foo=;
66         unset foo" trick.  Include M4sh code that unsets MAIL for Bash 2.01.
67         * NEWS: Update list of documented M4sh macros.
69 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
71         Assume a (possibly buggy) `unset' is present after a
72         `better shell' was found.
73         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Use AS_UNSET.
74         * lib/autoconf/programs.m4 (AC_PROG_SED): Use AS_UNSET.
75         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Provide $as_unset as an
76         alias for AS_UNSET, for backwards compatibility.
77         (_AS_DETECT_BETTER_SHELL): Set BASH_ENV and ENV to /dev/null in case
78         the shell does not support unset.
79         (_AS_SHELL_SANITIZE): Work around Bash 2.01 bugs.  Unset BASH_ENV.
80         (AS_INIT, _AS_PREPARE, AS_PREPARE): Call it.
81         (AS_UNSET): Assume it is there but it might fail if the variable is
82         not set.  Use it throughout instead of $as_unset.
84 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
86         Turn AS_SHELL_SANITIZE into a for-Libtool-only wrapper.
87         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED): Remove
88         m4_require of _AS_DETECT_BETTER_SHELL.
89         (_AS_CLEANUP): Add it here.
90         (_AS_DETECT_BETTER_SHELL): Just expand the test instead of appending it
91         to _AS_CLEANUP.
92         (_AS_SHELL_SANITIZE): New name of the old AS_SHELL_SANITIZE macro.
93         (AS_SHELL_SANITIZE): New macro hacking around Libtool misuse.
94         (AS_PREPARE): Use _AS_SHELL_SANITIZE.
95         (AS_INIT): Add m4_provide of itself.
97 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
99         Use "test x$foo = xyes" to avoid upsetting Libtool's sh.test.
100         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_SHELL_FN_WORK): Use
101         "test x$foo = xyes".
103 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
105         Trim down the size of the better-shell test.
106         * lib/m4sugar/m4sh.at (_AT_DETECT_BETTER_SHELL): Store the common
107         snippets into shell variables.
108         (_AS_RUN): Rewrite.
110 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
112         Support a stack of LINENO values for AS_MESSAGE.
113         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): If defined, use $as_lineno as
114         the line number emitted to the log file.
115         (AS_LINENO_PUSH, AS_LINENO_POP): New.
116         * tests/m4sh.at (LINENO Stack): New test.
118 2008-10-14  Eric Blake  <ebb9@byu.net>
120         Correct previous patch.
121         * doc/autoconf.texi (Shell Functions): Bash obeys Posix, after
122         all.
124         Document shell function environment pitfall.
125         * doc/autoconf.texi (Shell Functions): Document bugs in bash,
126         Solaris /bin/sh.
128 2008-10-14  Paolo Bonzini  <bonzini@gnu.org>
130         Use m4_require to implement AS_REQUIRE.
131         * lib/m4sugar/m4sugar.m4 (_m4_require_call): Accept a third argument.
132         (m4_require): Pass it.
133         (m4_divert_require): New.
134         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Rewrite using m4_divert_require.
135         Remove comment about differences with m4_require.
136         * tests/m4sh.at (AS_REQUIRE_SHELL_FN and m4_require): Update to test
137         the expected behavior.
138         (Nested AS_REQUIRE_SHELL_FN): New test.
140 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
142         Test AS_LINENO_PREPARE.
143         * tests/m4sh.at: Use documented AS_LINENO_PREPARE.
145 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
147         Test AS_ME_PREPARE.
148         * tests/m4sh.at (as_me): New test.
150 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
152         Add and document AS_INIT_GENERATED.
153         * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): New.
154         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use it.
155         * doc/autoconf.texi (Initialization macros): Document it.
157 2008-10-13  Eric Blake  <ebb9@byu.net>
159         Use consistent shell function style.
160         * lib/m4sugar/m4sh.m4 (_AS_PREPARE, AS_REQUIRE_SHELL_FN)
161         (_AS_SHELL_FN_WORK): Imitate GNU Coding Standards for C
162         functions.
164 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
166         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Place names of
167         contributors under m4 rather than shell comments.
169 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
171         * lib/m4sugar/m4sh.m4 (AS_ME_PREPARE, AS_LINENO_PREPARE): New.
172         * doc/autoconf.texi (Initialization macros): Document them.
173         (Portable Shell): Refer to AS_LINENO_PREPARE.
174         * NEWS: Mention them.
176         * bin/autoconf.as: Invoke AS_ME_PREPARE.
177         * lib/autotest/general.m4: Likewise.
179 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
181         * doc/autoconf.texi (Programming in M4sh): Make its own chapter.
183 2008-10-10  Eric Blake  <ebb9@byu.net>
185         Fix _AS_MKDIR_P usage.
186         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P): Correct documentation to
187         match implementation.
188         (_AS_PREPARE, _AS_MKDIR_P_PREPARE): Adjust callers.
189         * doc/autoconf.texi (Programming in M4sh) <AS_MKDIR_P>: Tweak
190         wording to better match behavior.
192 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
194         * doc/autoconf.texi: Be less wary of shell functions.
195         * NEWS: Document the increased use of shell functions.
197 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
199         * m4sugar/m4sh.m4 (_AS_MKDIR_P): New, from AS_MKDIR_P.  Adjust
200         meaning of as_mkdir_p to be `false' or a full `mkdir -p' command.
201         (AS_MKDIR_P): Just dispatch to as_func_mkdir_p.
202         (_AS_PREPARE): Define shell functions.
203         (_AS_MKDIR_P_PREPARE): Set as_mkdir_p according to the above change.
204         Define shell functions.
206 2008-10-09  Eric Blake  <ebb9@byu.net>
208         Only prepare $as_me if it will be used.
209         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Avoid unconditional
210         preparation.
211         (_AS_ECHO_LOG): Depend on $LINENO preparation.
212         (AS_MESSAGE): Depend on $as_me preparation.
213         (AS_TMPDIR): Use AS_ERROR, rather than a hand-rolled copy.
215 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
217         * m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Delay setting as_me
218         until the M4SH-INIT diversion using _AS_ME_PREPARE.
219         (_AS_PREPARE): Invoke _AS_EXPR_PREPARE before _AS_BASENAME_PREPARE
220         and _AS_DIRNAME_PREPARE, and _AS_BASENAME_PREPARE and _AS_ME_PREPARE
221         before _AS_LINENO_PREPARE.
222         (AS_PREPARE): Include all the AS_REQUIREs manually.
223         (_AS_ME_PREPARE): New.
224         (_AS_LINENO_PREPARE): Use m4_defun.
226 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
228         * m4sugar/m4sh.m4 (_AS_BASENAME_EXPR, _AS_DIRNAME_EXPR): Do not
229         require _AS_EXPR_PREPARE.
230         (_AS_BASENAME_PREPARE, _AS_DIRNAME_PREPARE): Do it here.
231         (_AS_PREPARE): Add _AS_BASENAME_PREPARE.
233 2008-10-08  Eric Blake  <ebb9@byu.net>
235         Resync from gnulib.
236         * cfg.mk (cvs_executable_files, cvs_files): Rewrite...
237         (fetch): ...into new target.
238         (executable-update): Delete, now that it is unused.
239         * maint.mk (update, local_updates, cvs_files, gnulib_repo)
240         (wget-update, cvs-update): Likewise.
241         * HACKING (Update the foreign files): Document new procedure.
242         * GNUmakefile: Resync from upstream, via new 'make fetch'.
243         * build-aux/config.guess: Likewise.
245 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
247         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Remove.
248         (AS_INIT): Do not call it.
250 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
252         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Expand
253         _AS_UNSET_PREPARE in M4SH-SANITIZE.
255 2008-10-08  Eric Blake  <ebb9@byu.net>
257         Avoid repeating required shell tests in suggested set.
258         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED):
259         Use m4_set, rather than m4_expand_once/m4_append.
260         (_AS_DETECT_SUGGESTED): Adjust to new storage layout, and filter
261         required tests out of suggested tests.
262         Reported by Paolo Bonzini.
264 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
266         Add m4sh keyword to all m4sh.at tests.
267         * tests/m4sh.at: Add m4sh keyword to all tests.  Fix comment
268         pastos.
270 2008-10-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
272         Document AS_VERSION_COMPARE.
273         * doc/autoconf.texi (Programming in M4sh): Document
274         AS_VERSION_COMPARE.
275         * NEWS: Update.
277         Do not write to testsuite log fd before initialization.
278         * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD, AT_JOB_FIFO_FD):
279         Define fds only when initializing the log fd so early error
280         messages do not try to write to it.
281         * tests/autotest.at (Startup error messages): New test.
282         * NEWS: Document this 2.63 regression.
284 2008-10-07  Eric Blake  <ebb9@byu.net>
286         Ensure _AS_CLEANUP is defined.
287         * lib/m4sugar/m4sh.m4 (_AS_CLEANUP): Give initial definition.
288         * tests/m4sh.at (AS@&t@_INIT cleanup): Expose the need for this.
290         Improve m4sh maintainability.
291         * lib/m4sugar/m4sh.m4: Sort macros for sanitizing the shell; no
292         code change.
294         Fix m4 quoting in previous patch.
295         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Determine diversion
296         name prior to invoking AS_REQUIRE.
297         Reported by Ralf Wildenhues.
299 2008-09-18  Paolo Bonzini  <bonzini@gnu.org>
300         and Eric Blake  <ebb9@byu.net>
302         Add a separate diversion for shell functions.
303         * lib/m4sugar/m4sh.m4 (M4SH-INIT-FN): New diversion.
304         (AS_REQUIRE): Accept diversion parameter.
305         (AS_REQUIRE_SHELL_FN): Use it.
307 2008-10-06  Eric Blake  <ebb9@byu.net>
309         Add m4_default_quoted.
310         * lib/m4sugar/m4sugar.m4 (m4_default_quoted): New macro.
311         (m4_for, m4_expand_once, m4_text_wrap, m4_text_box): Use it.
312         * doc/autoconf.texi (Conditional constructs): Document it.
313         * NEWS: Likewise.
315         Fix build with case-insensitive make, again.
316         * Makefile.am (pkgdata_DATA): Protect by MAKE_CASE_SENSITIVE.
317         Reported via Keith Marshall, originally by newthinker in
318         <http://thread.gmane.org/gmane.comp.gnu.mingw.user/27725>.
320 2008-10-06  Bruno Haible  <bruno@clisp.org>
322         Warn about /usr/ucb on Solaris.
323         * doc/install.texi (Particular Systems): Recommend putting
324         /usr/ucb late in PATH, if at all.
326 2008-10-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
328         Fix more testsuite hang corner cases.
329         * lib/autotest/general.m4: Use the serial code path if no test
330         is to be run.
331         * tests/autotest.at (parallel test execution): Test -j and -jN
332         with `-k notmatched'.
334 2008-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
336         Fix hang with `testsuite -k notmatched'.
337         * lib/autotest/general.m4: Do not reset $at_jobs if it is equal
338         to one.  Fixes hang with `-k notmatched'.
340 2008-10-02  Eric Blake  <ebb9@byu.net>
342         Document more binary file portability traps.
343         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Remind
344         reader that NUL and sed don't always mix.
345         <tr>: Mention Solaris /usr/ucb/tr bug with \0.
347 2008-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
349         Implement parallel Autotest test execution: testsuite --jobs.
350         * lib/autotest/general.m4 (AT_JOB_FIFO_FD): New macro.
351         (AT_INIT): <at_jobs>: New variable.
352         Accept -j, -jN, --jobs[=N], document them in --help output.
353         Implement parallel driver loop using a FIFO, enabled with --jobs
354         and if mkfifo works; otherwise, fall back to sequential loop.
355         (AT_SETUP): Store, do not output summary progress line if
356         parallel.
357         * tests/autotest.at (parallel test execution, parallel truth)
358         (parallel fallacy, parallel skip): New tests.
359         * doc/autoconf.texi (testsuite Invocation): Document -j, --jobs,
360         the mkfifo requirement, and that --errexit may cause concurrent
361         jobs to finish.
362         * NEWS: Update.
364 2008-09-20  Eric Blake  <ebb9@byu.net>
366         Fix sample isinf definition.
367         * doc/autoconf.texi (Function Portability) <isinf>: Filter out NaN
368         first.
369         * THANKS: Update.
370         Reported by David Cournapeau.
372 2008-09-16  Eric Blake  <ebb9@byu.net>
374         Fix Erlang regression, introduced 2006-11-17.
375         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Avoid M4 comment
376         caused by underquoting.
377         * NEWS: Mention this fix.
378         * THANKS: Update.
379         Reported by BJ Terry.
381 2008-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
383         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Improve a bit.
385         Mention Solaris sh ':' redirection bug.
386         * doc/autoconf.texi (File Descriptors): Redirecting ':'
387         in a loop causes bogus optimization with Solaris sh.
389 2008-09-10  Eric Blake  <ebb9@byu.net>
391         Avoid testsuite bug when autom4te cache is disabled by user.
392         * tests/tools.at (autoconf: forbidden tokens, basic): Enable
393         cache, even if user normally disabled it.
394         Reported by Bruno Haible.
396         Avoid testsuite bug in presence of verbose config.site.
397         * tests/base.at (Input/Output): Nullify config.site during test.
398         Reported by Bob Friesenhahn.
400 2008-09-09  Eric Blake  <ebb9@byu.net>
402         Release Version 2.63.
403         * NEWS: Mention the release.
405         Formatting tweaks to the manual.
406         * doc/autoconf.texi (Introduction, Systemology)
407         (File System Conventions, Portable C and C++)
408         (Floating Point Portability): Allow URLs to split as needed.
409         (Indices): Add entries, to work around texinfo bug on indices that
410         start too close to a page break.
411         (Particular Functions): Mention ftello.
412         (Introduction, Language Choice): Use @enddots at sentence end.
414         Resync from gnulib.
415         * cfg.mk (cvs_executable_files, cvs_files): Update list of files,
416         although for now, they are still manually sync'd.
417         * build-aux/gnupload: Update.
418         * build-aux/config.sub: Likewise.
419         * GNUmakefile: Likewise.
421 2008-09-06  Eric Blake  <ebb9@byu.net>
423         Mention that Automake already supports VPATH.
424         * doc/autoconf.texi (Build Directories): Details in this section
425         only apply to users avoiding automake.
426         * THANKS: Update.
427         Reported by Matej Tyc.
429         Relax tone when warning about cross-compiler names.
430         * lib/autoconf/programs.m4 (_AC_TOOL_WARN): Support cross-compiles
431         with poorly named tools; the issue has been reported too many
432         times in the last four years to pull support.
433         * doc/autoconf.texi (Specifying Names, Generic Programs): Update
434         documentation accordingly.
435         * THANKS: Update.
436         Reported by Josef Tran and others, wording suggested by Ralf
437         Wildenhues.
439 2008-09-01  Eric Blake  <ebb9@byu.net>
441         Improve AC_C_BIGENDIAN.
442         * doc/autoconf.texi (C Compiler) <AC_C_BIGENDIAN>: Mention that
443         universal builds require a config header.
444         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Enhance comments.  Check
445         AH_HEADER at the last possible moment, so that users can use
446         AC_CONFIG_HEADER after this macro.
447         Reported by Stepan Kasal.
449         Fix manual date information.
450         * doc/autoconf.tex: UPDATED refers to the day the manual was
451         built, not the release date of Autoconf.
452         Based on a bison patch by Akim Demaille.
454 2008-08-27  Eric Blake  <ebb9@byu.net>
456         Fix off-by-one bug in _m4_shiftn.
457         * lib/m4sugar/foreach.m4 (_m4_shiftn): Handle case when shifting
458         all arguments.
459         * tests/m4sugar.at (M4 loops): Test it.
460         Reported by Akim Demaille.
462 2008-08-26  Eric Blake  <ebb9@byu.net>
464         Improve INSTALL formatting.
465         * doc/install.texi [!autoconf]: Ensure first paragraphs are
466         indented like all others in a plain text rendering.
467         * Makefile.am ($(srcdir)/INSTALL): Ensure plaintext formatting.
468         Reported by Bruno Haible.
470 2008-08-26  Stepan Kasal  <skasal@redhat.com>
472         Check for case sensitive make.
473         * m4/make-check.m4 (AC_PROG_MAKE_CASE_SENSITIVE): New macro,...
474         * configure.ac: ... called here.
475         * Makefile.am ($(abs_srcdir)/INSTALL, INSTALL): Return to...
476         ($(srcdir)/INSTALL): ...this, but enclose the rule in
477         "if MAKE_CASE_SENSITIVE".
479 2008-08-26  Eric Blake  <ebb9@byu.net>
481         Update invocation documentation.
482         * doc/autoconf.texi (autoscan Invocation): Mention --debug.
483         (autoreconf Invocation): Mention -v.
484         (autom4te Invocation): Tie --freeze to -F, not -f.
485         (autoupdate Invocation): Mention --prepend-include.
486         * doc/install.texi (configure Invocation): Mention --help=short,
487         --help=recursive, -n/--no-create, --prefix.  Avoid TABs.
488         * bin/autoscan.in ($help): Omit space before `...'.
489         * bin/ifnames.in ($help): Likewise.
490         * bin/autoconf.as (Usage): Likewise.
491         * bin/autoreconf.in ($help): Likewise.
492         * bin/autoheader.in ($help): Likewise.
493         * bin/autom4te.in ($help): Likewise.
494         * bin/autoupdate.in ($help): Likewise.
495         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use
496         `[OPTION]...', rather than `[OPTIONS]'.  Mention --silent.  Indent
497         --file correctly.
499         Don't let frozen __m4_version__ break downgrade to m4 1.4.x.
500         * bin/autom4te.in: Adjust comments, now that we rely on 1.4.5+.
501         (files_to_options): Avoid inheriting __m4_version__ from frozen
502         file if current M4 does not support it.
504 2008-08-25  Eric Blake  <ebb9@byu.net>
506         Adjust to recent m4 1.6 change to support m4_debugmode(d).
507         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Move
508         freeze-time decision of using faster 1.6 implementation...
509         (m4_init): ...to a runtime decision, and add use of new debugmode
510         flag.
512 2008-08-22  Peter O'Gorman  <pogma@thewrittenword.com>
514         Limit AC_C_BIGENDIAN univeral checks to Mac OS X.
515         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Limit the check to
516         __APPLE_CC__ with possible -arch flags.
517         * NEWS: Document it.
519 2008-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
521         * NEWS: Fix typo.
523 2008-08-22  Eric Blake  <ebb9@byu.net>
525         * TODO: Add an item for additional m4sugar looping constructs.
526         Suggested by Ralf Wildenhues.
528         Add reminder to keep dual implementations in sync.
529         * lib/m4sugar/m4sugar.m4: Add comments.
530         * lib/m4sugar/foreach.m4: Likewise.
531         Suggested by Ralf Wildenhues.
533 2008-08-22  Peter Eisentraut  <peter_e@gmx.net>  (tiny change)
535         Format warning and error messages to match GCS.
536         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK)
537         (_AC_INIT_PARSE_ARGS, _AC_CACHE_DUMP): Start warning and error
538         messages with a lowercase letter, end them without punctuation.
539         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Likewise.
540         * lib/autoconf/libs.m4 (AC_PATH_X): Likewise.
541         * lib/autoconf/status.m4 (AC_OUTPUT, _AC_OUTPUT_MAIN_LOOP):
542         Likewise.
543         * tests/fortran.at (GNU Fortran): Likewise.
544         * tests/torture.at (Deep Package): Likewise.
546 2008-08-21  Eric Blake  <ebb9@byu.net>
548         Avoid extra side effects in m4sugar list expansion.
549         * lib/m4sugar/m4sugar.m4 (m4_mapall_sep, m4_list_cmp): Wrap
550         around...
551         (_m4_mapall_sep, _m4_list_cmp_raw): ...new helpers, to avoid
552         duplicate side effects.
553         (m4_version_compare): Adjust caller.
554         * lib/m4sugar/foreach.m4 (m4_list_cmp): Rename...
555         (_m4_list_cmp_raw): ...to match m4sugar.
556         * doc/autoconf.texi (Looping constructs): Document the behavior of
557         side effects.
558         * tests/m4sugar.at (M4 loops, m4@&t@_map, m4@&t@_version_compare):
559         Ensure only one side effect.
560         (recursion): Fix test typo.
561         Reported by Ralf Wildenhues.
563 2008-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
565         * TODO: Add item for compiler default flags.
566         Suggested by Bruno Haible.
568         * tests/m4sh.at (AS_IF and AS_CASE): Set the expansion limit
569         back to 1000.
571 2008-08-21  Eric Blake  <ebb9@byu.net>
573         Formatting improvements.
574         * doc/autoconf.texi: Use @file and @command, rather than @code,
575         where appropriate.
577         Document another make bug.
578         * doc/autoconf.texi (The Make Macro SHELL): Mention bug in BSD
579         make, GNU make <= 3.80.
581         Tweak wording about SHELL in Makefile.
582         * doc/autoconf.texi (The Make Macro SHELL): Stronger wording on
583         the importance of proper SHELL settings.
584         Reported by Bruno Haible, in
585         http://lists.gnu.org/archive/html/bug-libtool/2008-04/msg00029.html.
587 2008-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
589         Avoid timestamp races for updated input.
590         * tests/m4sh.at (AS_IF and AS_CASE): Use `autom4te --force' for
591         second script.
592         * tests/tools.at (autotools and whitespace in file names): Add
593         --force for repeated invocations.
595 2008-08-20  Bruno Haible  <bruno@clisp.org>
597         Add section to INSTALL about particular systems.
598         * doc/install.texi (Particular systems): New node.
599         * doc/autoconf.texi: Adjust menus.
601 2008-08-19  Bruno Haible  <bruno@clisp.org>
602         and Peter O'Gorman  <peter@pogma.com>
604         Mention universal binaries in INSTALL.
605         * doc/install.texi (Compiling For Multiple Architectures): Explain
606         how to create universal binaries on MacOS X.
608 2008-08-19  Jim Meyering  <jim@meyering.net>
609             Eric Blake  <ebb9@byu.net>
610             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
612         Avoid shell parse errors after interrupt due to empty ``.
613         * doc/autoconf.texi (Shell Substitutions): Document the issue.
614         * lib/m4sugar/m4sh.m4 (AS_VAR_IF): New function.
615         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Use it in place of
616         "test AS_VAR_GET([...]) = yes"
617         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL): Likewise.
618         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Likewise.
619         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD): Likewise.
620         (_AC_CHECK_HEADER_DIRENT): Likewise.
621         * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
622         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
623         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use
624         temporary variable to work around the issue.
625         * tests/foreign.at (Libtool): Quote result of command
626         substitution.
628 2008-08-18  Eric Blake  <ebb9@byu.net>
630         Test m4_transform without tickling shell bugs.
631         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Relax test to
632         something more manageable.
633         * tests/m4sugar.at (recursion): Move stress test of
634         m4_transform_pair here.
635         Reported by Ralf Wildenhues.
637         Let 'git diff' give better context for doc updates.
638         * .gitattributes (*.texi*): Add new entry.
639         * README-hacking: Mention how to use it.
640         Inspired by a coreutils patch by Jim Meyering.
642 2008-08-15  Eric Blake  <ebb9@byu.net>
644         Fix m4_map regression from 2007-10-16.
645         * lib/m4sugar/m4sugar.m4 (_m4_apply): New macro.
646         (m4_map): Ignore empty sublists.  For a list consisting of only an
647         empty sublist, this restores 2.61 behavior of being a no-op.
648         (m4_map_sep): Likewise, and expand separator.
649         (m4_mapall, m4_mapall_sep): New macros, to regain 2.62 behavior.
650         (_m4_map): Rewrite, to be common base for all four variants.
651         * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new prototype.
652         * tests/m4sugar.at (m4@&t@_map): Add tests.
653         * doc/autoconf.texi (Looping constructs) <m4_map>: Document new
654         macros, and mention ramifications of expanded separator.
655         * NEWS: Mention the change.
657 2008-08-14  Eric Blake  <ebb9@byu.net>
659         Implement m4_transform_pair, to speed up AS_IF.
660         * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair): New
661         macros, undocumented for now.
662         * lib/m4sugar/foreach.m4 (m4_transform, m4_transform_pair): Also
663         the m4 1.4.x counterparts.
664         * lib/m4sugar/m4sh.m4 (AS_IF, AS_CASE): Use it.
665         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Test it.
667 2008-08-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
669         * lib/autoconf/programs.m4 (AC_PATH_TARGET_TOOL)
670         (AC_CHECK_TARGET_TOOL, AC_CHECK_TARGET_TOOLS): Require, do not
671         warn about previous AC_CANONICAL_TARGET.
672         (AC_CHECK_TARGET_TOOL): Add missing `$' making the macro
673         unusable in the non-cross-compiling case.
674         * NEWS, THANKS: Update.
675         Report by Dave Erickson.
677 2008-08-12  Eric Blake  <ebb9@byu.net>
679         Optimize m4_bmatch.
680         * lib/m4sugar/foreach.m4 (m4_bmatch): Provide linear
681         implementation for m4 1.4.x.
682         * tests/m4sugar.at (m4@&t@_bmatch): New test.
683         (recursion): Test the linear nature.
684         * NEWS: Document the fix.
686         Fix m4_cond corner case.
687         * lib/m4sugar/foreach.m4 (_m4_cond): Ensure alternate
688         implementation allows concatenation with subsequent text.
689         * tests/m4sugar.at (m4@&t@_cond): Enhance test.
691         Add test for m4_cond.
692         * tests/m4sugar.at (m4@&t@_cond): New test.
693         Reported by Ralf Wildenhues.
695 2008-08-06  Eric Blake  <ebb9@byu.net>
697         Fix autoheader 2.62 regression on AC_DEFINE([__EXTENSIONS__]).
698         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Use a
699         unique key for the AH_VERBATIM.
700         * tests/c.at (AC_USE_SYSTEM_EXTENSIONS): New test.
701         * NEWS: Mention the fix.
702         Reported by Andreas Schwab, analyzed by Stepan Kasal.
704         Add linear m4_cond for m4 1.4.x.
705         * lib/m4sugar/m4sugar.m4 (m4_cond): Split into...
706         (_m4_cond): ...this, for fewer macros per iteration.
707         * lib/m4sugar/foreach.m4 (_m4_cond): New implementation.
708         * tests/m4sugar.at (recursion): Test it.
709         * NEWS: Document the linear guarantee.
711         Speed up diversion handling.
712         * lib/m4sugar/m4sugar.m4 (m4_divert, m4_divert_push)
713         (m4_divert_pop, m4_divert_text): Avoid dnl for fewer macro
714         expansions.
716         AC_C_CHAR_UNSIGNED is not strictly necessary.
717         * doc/autoconf.texi (C Compiler) <AC_C_CHAR_UNSIGNED>: Mention a
718         portable alternative to this macro.
719         * THANKS: Update.
720         Reported by Hallvard B Furuseth.
722         Update some files from upstream.
723         * GNUmakefile: Update.
724         * build-aux/announce-gen: Likewise.
725         * build-aux/config.guess: Likewise.
726         * build-aux/config.sub: Likewise.
727         * build-aux/git-version-gen: Likewise.
728         * build-aux/texinfo.tex: Likewise.
729         * build-aux/vc-list-files: Likewise.
730         * doc/make-stds.texi: Likewise.
731         * doc/standards.texi: Likewise.
733 2008-08-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
735         Fix AC_CONFIG_FILES([$var]) 2.62 regression.
736         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Flatten
737         whitespace in $ac_config_files and $ac_config_headers.
738         * tests/torture.at (Parameterized AC_CONFIG_FILES): New test.
739         Report by Andreas Schwab and Per Ã˜yvind Karlsen.
740         * THANKS: Update.
742 2008-07-30  Eric Blake  <ebb9@byu.net>
744         Fix bugs in previous version of m4_bpatsubsts.
745         * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): Don't expand $1, and
746         allow concatenation with subsequent text.
747         * tests/m4sugar.at (m4@&t@_bpatsubsts): Enhance test.
749 2008-07-29  Eric Blake  <ebb9@byu.net>
751         Add linear m4_bpatsubsts for m4 1.4.x.
752         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Match documentation
753         about anchors, even for only one substitution.
754         * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): New implementation.
755         * doc/autoconf.texi (Conditional constructs) <m4_bpatsubsts>:
756         Clarify behavior with regard to quoting.
757         * tests/m4sugar.at (recursion): Test scaling of m4_bpatsubsts.
758         (m4@&t@_bpatsubsts): New test.
759         * NEWS: Document the linear guarantee.
761         Tweak m4_do semantics.
762         * lib/m4sugar/m4sugar.m4 (m4_do): Don't concat final argument with
763         subsequent text.
764         * lib/m4sugar/foreach.m4 (m4_do): Don't concat intermediate
765         arguments, and avoid infinite loop.
766         * doc/autoconf.texi (Evaluation Macros) <m4_do>: Document the
767         behavior.
768         * tests/m4sugar.at (m4@&t@_do): New test.
770         Optimize m4_for.
771         * lib/m4sugar/m4sugar.m4 (m4_for): Use fewer macros.
772         (_m4_for): Take additional parameter, for fewer m4_indir calls.
773         * lib/m4sugar/foreach.m4 (_m4_foreach, _m4_shiftn, m4_do)
774         (m4_reverse, _m4_list_pad, _m4_list_cmp): Adjust all callers.
775         * doc/autoconf.texi (Looping constructs) <m4_for>: Document subtle
776         semantic change caused by the optimization.
777         * tests/m4sugar.at (M4 loops): Test the new semantics.
779         One more m4_list_cmp tweak.
780         * lib/m4sugar/m4sugar.m4 (_m4_list_cmp_1): Don't defer shift.
781         * lib/m4sugar/foreach.m4 (m4_list_cmp): Fix comment.
782         * tests/m4sugar.at (recursion): Test both directions of list
783         disparity.
785         Add m4_reverse, and improve m4_list_cmp.
786         * lib/m4sugar/m4sugar.m4 (m4_reverse): New macro.
787         (m4_list_cmp): Rewrite to give linear behavior with M4 1.6 on an
788         m4_reverse'd list.
789         * lib/m4sugar/foreach.m4 (m4_reverse): Add the M4 1.4.x
790         counterpart.
791         * tests/m4sugar.at (recursion): Test it.
792         * doc/autoconf.texi (Evaluation Macros) <m4_reverse>: Document
793         it.
794         (Text processing Macros) <m4_append>: Cross-reference to m4_set.
795         * NEWS: Mention new macro.
797 2008-07-28  Eric Blake  <ebb9@byu.net>
799         Avoid _m4_shiftn for m4 1.6 speedup.
800         * lib/m4sugar/m4sugar.m4 (m4_foreach, _m4_foreach, m4_map)
801         (_m4_map, m4_map_sep): Rewrite recursion to use one less m4_if.
802         * lib/m4sugar/foreach.m4 (_m4_map): Accomodate changed signature.
804         Implement O(n) unique element set creation.
805         * lib/m4sugar/m4sugar.m4 (m4_set_add, m4_set_add_all)
806         (m4_set_contains, m4_set_contents, m4_set_delete)
807         (m4_set_difference, m4_set_dump, m4_set_empty, m4_set_foreach)
808         (m4_set_intersection, m4_set_list, m4_set_listc, m4_set_remove)
809         (m4_set_size, m4_set_union): New macros.
810         * lib/m4sugar/foreach.m4 (m4_set_add_all): Add O(n) fallback for
811         m4 1.4.x.
812         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, AC_SUBST): Use
813         new m4_set API for the set most likely to be large.
814         * doc/autoconf.texi (Set manipulation Macros): New node.
815         * NEWS: Mention new macros.
816         * tests/m4sugar.at (m4@&t@_set): New test.
818 2008-07-25  Eric Blake  <ebb9@byu.net>
820         Avoid infinite aclocal loop.
821         * lib/m4sugar/m4sugar.m4 (m4_init): Bypass m4_include tracing, so
822         that aclocal doesn't insist on finding m4sugar/foreach.m4.
824         Provide O(n) replacement macros for M4 1.4.x.
825         * lib/m4sugar/foreach.m4: New file.
826         (m4_foreach, m4_case, _m4_shiftn, m4_do, m4_dquote_elt, _m4_map)
827         (m4_join, m4_joinall, m4_list_cmp, _m4_minmax): Replace m4sugar
828         macros based on $@ recursion [fast on M4 1.6, but quadratic on M4
829         1.4.x] with versions based on m4_for/m4_foreach [slow on 1.6, but
830         linear on 1.4.x].
831         * lib/m4sugar/m4sugar.m4 (m4_init): Dynamically load new file if
832         older M4 is assumed.
833         (m4_map_sep): Optimize.
834         (m4_max, m4_min): Refactor, by adding...
835         (_m4_max, _m4_min, _m4_minmax): ...more efficient helpers.
836         (m4_defn, m4_popdef, m4_undefine): Use foreach recursion.
837         * lib/m4sugar/Makefile.am (dist_m4sugarlib_DATA): Distribute new
838         file.
839         * tests/m4sugar.at (M4 loops): Add a stress test that takes
840         forever if m4_foreach and friends are quadratic.
841         * NEWS: Mention this.
843 2008-07-21  Eric Blake  <ebb9@byu.net>
845         Ignore undefined macros, necessary with m4 1.6.
846         * bin/autoupdate.in (_au___undefine): New macro,...
847         (_au__undefine): ...wrapped by ifdef to silence m4 warnings.
848         Reported by Ralf Wildenhues.
850         Resync with gnulib.
851         * GNUmakefile: Grab from upstream, to fix issue where 'make
852         install' would allow installation of stale version string.
854 2008-07-19  Eric Blake  <ebb9@byu.net>
856         Support multiple arguments to m4_defn, m4_popdef, and m4_undefine.
857         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Loop
858         through all variables, per POSIX and newer m4.
859         (_m4_text_wrap): Exploit the looping capabilities.
860         * tests/m4sugar.at (m4@&t@_defn): Test this.
861         * NEWS: Document it.
862         * doc/autoconf.texi (Redefined M4 Macros) <m4_defn, m4_popdef>
863         <m4_undefine>: Likewise.
865         Reduce overhead of m4_builtin([defn]).
866         * lib/m4sugar/m4sugar.m4 (_m4_defn, _m4_popdef, _m4_undefine): New
867         internal macros, which are slightly more efficient than
868         m4_builtin([defn]) and company.
869         (m4_defn, m4_popdef, m4_undefine, m4_warn, m4_ifset)
870         (_m4_dumpdefs_up, _m4_dumpdefs_down, _m4_wrap, m4_for)
871         (_m4_divert_n_stack, m4_divert_pop, m4_expansion_stack_push)
872         (m4_expansion_stack_dump, _m4_defun_pro, _m4_defun_epi)
873         (_m4_defun_epi_outer, _m4_require_call, m4_combine, m4_append)
874         (_m4_append_uniq, m4_append_uniq_w, _m4_text_wrap, m4_text_box)
875         (m4_version_prereq): Use them.
877         Use warnings from m4 when available.
878         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Don't
879         define slower wrapper if m4 will warn on our behalf; key off of
880         __m4_version__, added alongside the new warnings in m4 1.6.
881         * tests/m4sugar.at (m4@&t@_defn): New test.
883 2008-07-18  Eric Blake  <ebb9@byu.net>
885         Add m4_joinall.
886         * lib/m4sugar/m4sugar.m4 (m4_joinall, _m4_joinall): New macros.
887         * tests/m4sugar.at (m4@&t@_join): Test them.
888         * doc/autoconf.texi (Text processing Macros) <m4_join>: Document
889         m4_joinall.
890         * NEWS: Likewise.
892 2008-07-17  Stepan Kasal  <skasal@redhat.com>
893         and Eric Blake  <ebb9@byu.net>
895         Improve documentation of config.h.in template rules.
896         * doc/autoconf.texi (Header Templates): Mention rules on comments
897         and whitespace, and that the user cannot rely on #undef to survive
898         through config.status.
900 2008-07-16  Eric Blake  <ebb9@byu.net>
902         Revert m4_prepend; it is less efficient, and unused by bison.
903         * lib/m4sugar/m4sugar.m4 (m4_prepend, m4_prepend_uniq)
904         (m4_prepend_uniq_w): Delete addition from 2008-07-11.
905         (_m4_grow_uniq_1): Rename back...
906         (_m4_append_uniq): ...to this.
907         * NEWS: Revert NEWS blurb.
908         * doc/autoconf.texi (Text processing Macros) <m4_prepend>: Delete.
909         * tests/m4sugar.at (m4@&t@_prepend): Delete.
911 2008-07-15  Eric Blake  <ebb9@byu.net>
913         Avoid failure if version.m4 is omitted but m4_PACKAGE_* unused.
914         * lib/m4sugar/m4sugar.m4 (m4_version_compare): Provide alternate
915         definition for non-Autoconf clients of m4sugar.
917 2008-07-14  Eric Blake  <ebb9@byu.net>
919         Tighten bound of potential speed of m4_append.
920         * doc/autoconf.texi (Text processing Macros) <m4_append>
921         <m4_prepend>: If m4 is fixed, m4_append can be linear rather than
922         O(n log n).
923         * lib/m4sugar/m4sugar.m4 (m4_append, m4_append_uniq): Fix comments.
924         Analysis by Bruno Haible.
926 2008-07-11  Eric Blake  <ebb9@byu.net>
928         Inherit improvements from bison's fork of m4sugar.
929         * lib/m4sugar/m4sugar.m4 (m4_PACKAGE_VERSION): Ignore failure to
930         find version.texi, since bison does not provide it.
931         (m4_prepend): Add new macro, from bison.
932         (m4_prepend_uniq, m4_prepend_uniq_w): Add new macros, for
933         completeness.
934         (_m4_append_uniq): Rename...
935         (_m4_grow_uniq_1): ...to this to share implementation, and
936         optimize initial assignment.
937         (m4_append_uniq_w): Adjust caller.
938         * NEWS: Document new macros.
939         * doc/autoconf.texi (Text processing Macros) <m4_append>: Mention
940         speed consideration.
941         <m4_prepend>: Document the new prepend variants.
942         * tests/m4sugar.at (m4@&t@_prepend): New test.
944         Work around M4 1.6 warning on undefined macros.
945         * lib/m4sugar/m4sugar.m4 (changeword, symbols): Don't rename if
946         not already available as builtins.
948 2008-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
950         * doc/autoconf.texi (@dvar): Remove trailing newline.
951         (@ovar): Likewise.  Fix macro documentation.
953 2008-07-02  Stepan Kasal  <skasal@redhat.com>
955         Add quotes to the header of autoscan-generated source.
956         * bin/autoscan.in: Add quotes to AC_PREREQ and AC_INIT.
958 2008-06-28  Andreas Schwab  <schwab@suse.de>
960         * doc/autoconf.texi (autoscan Invocation): Fix spacing.
961         (autoconf Invocation): Likewise.
962         (autoreconf Invocation): Likewise.
963         (autoheader Invocation): Likewise.
964         (autom4te Invocation): Likewise.
966 2008-06-19  Eric Blake  <ebb9@byu.net>
968         Add comment explaining recent patch.
969         * lib/autotest/general.m4 (AT_INIT) <at_pass_list>: Explain choice
970         of * vs. ? globbing.
972 2008-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
974         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not warn when not
975         linking a file to itself.
976         Report by Bruno Haible.
978 2008-06-19  Eric Blake  <ebb9@byu.net>
980         Resync with gnulib.
981         * GNUmakefile: Grab from upstream, to fix VPATH 'make dist' bug.
982         Reported by Stepan Kasal.
984 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
986         Reorganize autotest files, factorize for parallel execution.
987         * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD): Move definition
988         earlier in the file.
989         (AT_INIT): Create line number cache in
990         $at_suite_dir/at-source-lines.
991         <at_helper_dir>: New directory at-groups below $at_suite_dir.
992         Add comment explaining the new directory structure.
993         (at_func_group_prepare, at_func_group_postprocess): New shell
994         functions to factorize per-test group work.  Keep the actual
995         test execution outside of a shell function in order to avoid
996         zsh 4.x exit status bugs.
997         <at_check_line_file, at_status_file, at_stdout, at_stder1>
998         <at_stderr, at_test_source>: Turn these into per-group files
999         below $at_helper_dir.  Also store test results there in files
1000         named pass, fail, xpass, xfail, skip.  Let the parent collect
1001         results from $at_helper_dir.  Adjust summary statistics
1002         computation and result output.
1004 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1006         Fix '#undef variable /* comment */' transform in config headers.
1007         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): For
1008         undefined preprocessor macros that are followed by a comment
1009         in the header template, do not create nested comments in the
1010         output.
1011         * tests/torture.at (@%:@define header templates): Extend test.
1012         * NEWS: Update.
1013         Report by Karsten Hopp <karsten@redhat.com>.
1015 2008-06-09  Eric Blake  <ebb9@byu.net>
1017         Mark AC_TYPE_SIGNAL as obsolete.
1018         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Switch to AU_DEFUN.
1019         * doc/autoconf.texi (Function Portability): Update documentation.
1020         (Particular Types): Move AC_TYPE_SIGNAL...
1021         (Obsolete Macros): ...here, and mention why.
1022         * NEWS: Mention the change.
1024         Allow lib64 as a default X library location.
1025         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Add lib64.
1026         * NEWS: Mention the change.
1027         * THANKS: Update.
1028         Reported by Brad Walker.
1030 2008-06-05  Eric Blake  <ebb9@byu.net>
1032         Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
1033         * lib/autotest/general.m4 (AT_KEYWORDS): Expand argument prior to
1034         converting it to lower case.
1035         * tests/autotest.at (Keywords and ranges): Test this.
1036         * NEWS: Document the fix.
1037         * THANKS: Update.
1038         Reported via Karsten Hopp, by Jochen Schmitt in
1039         https://bugzilla.redhat.com/show_bug.cgi?id=449973
1041 2008-06-03  Eric Blake  <ebb9@byu.net>
1043         Fix 'make dist' regression from 2008-05-08.
1044         * Makefile.am (INSTALL): Add rule, to accomodate 'make dist' after
1045         GNUmakefile's _autoconf rule removes INSTALL.
1047 2008-05-27  Eric Blake  <ebb9@byu.net>
1049         Document Solaris /bin/sh redirection pitfall.
1050         * doc/autoconf.texi (File Descriptors): Mention redirection bug.
1052 2008-05-14  Eric Blake  <ebb9@byu.net>
1054         Improve documentation of ! issues.
1055         * doc/autoconf.texi (Limitations of Builtins) <!>: Touch up.
1056         Reported by Noah Misch.
1058         Document some FreeBSD shell bugs.
1059         * doc/autoconf.texi (Limitations of Builtins) <!>: Mention ! issue
1060         in compound pipe commands.
1061         <export>: Mention difference of exporting an undefined variable.
1062         (Shell Functions): Mention loss of $? in entry to shell functions.
1063         Extracted from the git mailing list.
1065 2008-05-13  Stepan Kasal  <kasal@ucw.cz>
1067         Work around MSYS and Cygwin bugs when dealing with trailing space.
1068         * tests/atlocal.in (func_sanitize_dir_name): Let atlocal succeed,
1069         even when platform bugs are tickled.
1070         Reported by Keith Marshall and Eric Blake.
1072 2008-05-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1074         Let AC_MSG_FAILURE report pwd.
1075         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE):
1076         Output $ac_pwd along with fatal failure.
1077         * tests/torture.at (Deep Package): Extend test.
1078         Reported numerous times against GCC, and probably other packages.
1080 2008-05-12  Eric Blake  <ebb9@byu.net>
1082         Enforce --help and --version compliance.
1083         * configure.ac (AM_INIT_AUTOMAKE): Add std-options option.
1085 2008-05-08  Keith Marshall  <keithmarshall@users.sourceforge.net>  (tiny change)
1087         Avoid case-insensitive `make install' vs. `INSTALL' conflict.
1088         * Makefile.am ($(srcdir)/INSTALL): Replace all references...
1089         ($(abs_srcdir)/INSTALL): ...with this.
1091 2008-05-06  Eric Blake  <ebb9@byu.net>
1093         Fix typo.
1094         * doc/autoconf.texi (Shell Substitutions): Drop at_ prefix.
1096         Avoid overfull \hbox.
1097         * doc/autoconf.texi (Versioning): Reword to fit line size.
1099         Document $(( )) pitfalls.
1100         * doc/autoconf.texi (Shell Substitutions): Mention octal
1101         vs. decimal.  Mention autotest's at_func_arith.
1103         Improve behavior of './testsuite 01'.
1104         * lib/autotest/general.m4 (AT_INIT) <at_func_validate_ranges>:
1105         Alter usage to eval its arguments, in order to normalize away
1106         leading zero.  All callers updated.
1107         * tests/autotest.at (Keywords and ranges): Test range
1108         normalization with leading 0.
1110 2008-04-26  Eric Blake  <ebb9@byu.net>
1112         Mention Solaris /usr/ucb/tr pitfall.
1113         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Add section.
1114         Reported by Bruno Haible and Jim Meyering.
1116 2008-04-24  Eric Blake  <ebb9@byu.net>
1118         Mention m4sugar's internal quote strings.
1119         * doc/autoconf.texi (Quadrigraphs): Mention alternate quote used
1120         in m4sugar, and how to still output it literally.
1121         * tests/m4sugar.at (m4@&t@_split): And test it.
1122         Reported by Joel E. Denny.
1124 2008-04-23  Eric Blake  <ebb9@byu.net>
1126         Allow unbalanced () in m4_expand.
1127         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Use more complex
1128         quotes.
1129         (m4_noquote, _m4_split): Use consistent complex quote.
1130         * tests/autotest.at (Left paren, Right paren): Test this.
1131         (Parentheses): Ensure new quadrigraphs still work.
1132         (AT_CHECK_AT_TITLE_CHAR): All title char tests exercise m4_expand.
1133         * NEWS: Mention the fix.
1134         * doc/autoconf.texi (Quadrigraphs): Revert mention of macros that
1135         require quadrigraphs for ().
1136         (Evaluation Macros) <m4_expand>: Relax the restriction against
1137         unbalanced ().
1138         (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
1139         (Writing Testsuites) <AT_SETUP>: Likewise.
1140         Reported by Joel E. Denny, fix suggested by Noah Misch.
1142 2008-04-22  Eric Blake  <ebb9@byu.net>
1144         Support unbalanced () in AT_SETUP by adding two new quadrigraphs.
1145         * bin/autom4te.in (handle_output): Substitute @{:@ and @:}@.
1146         (handle_traces): Likewise.
1147         * lib/m4sugar/m4sugar.m4 (m4_qlen): Account for new quadrigraphs.
1148         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Add new tests.
1149         * doc/autoconf.texi (Quadrigraphs): Document them.
1150         (Evaluation Macros) <m4_expand>: Enhance documentation.
1151         (Text processing Macros) <m4_text_box>: Document cases where
1152         quadrigraphs can help for problemetic unbalanced parentheses.
1153         (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
1154         (Writing Testsuites) <AT_SETUP>: Likewise.
1155         (Limitations of Builtins) <case>: Consolidate text on unbalanced
1156         parentheses, and add an example of creative comments.
1157         * NEWS: Document the addition.
1158         Reported by Joel E. Denny.
1160 2008-04-16  Eric Blake  <ebb9@byu.net>
1162         Document pdksh exec behavior.
1163         * doc/autoconf.texi (Limitations of Builtins) <exec>: New
1164         subsection.
1165         Discovered by Jim Meyering.
1167 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1169         * tests/autotest.at (AT_CHECK_AT): Allow to pass additional
1170         arguments to the inner suite.
1171         (errexit, input from stdin): New tests.
1173 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1175         * NEWS: Post-release update.
1177 2008-04-10  Eric Blake  <ebb9@byu.net>
1179         AC_AUTOCONF_VERSION might contain arbitrary macro names.
1180         * doc/autoconf.texi (Versioning): Mention problem with expansion.
1181         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Adjust test.
1183 2008-04-09  Slava Sysoltsev <Viatcheslav.Sysoltsev@h-d-gmbh.de>  (tiny change)
1185         Flush buffered output before exit.
1186         * bin/autom4te.in (handle_output): Explicitly close file.
1187         * THANKS: Update.
1188         See http://lists.gnu.org/archive/html/autoconf/2008-04/msg00026.html.
1190 2008-04-08  Eric Blake  <ebb9@byu.net>
1192         Generate web docs for 2.62.
1193         * doc/autoconf.texi (Evaluation Macros): Fix typo.
1194         (Notices): Use recommended means to escape RCS keyword.
1195         * cfg.mk (gnulib_dir): New macro.
1196         (web-manual): New target.
1198 2008-04-05  Eric Blake  <ebb9@byu.net>
1200         Release Version 2.62.
1201         * NEWS: Mention the release.
1203 2008-04-04  Stepan Kasal  <kasal@ucw.cz>
1204         and Eric Blake  <ebb9@byu.net>
1206         Return back to GPLv2+, until the text of the exceptions is
1207         finalized, reverting the change from 2007-07-03 and the first
1208         part of the change from 2007-07-20.
1209         * COPYING: Revert to GPLv2.
1210         * COPYINGv3: New file, since some auxiliary build tools, used for
1211         building autoconf and not installed, are GPLv3.
1212         * Makefile.am (EXTRA_DIST): Distribute COPYINGv3.
1213         * NEWS: Remove mention of GPLv3.
1214         * README: Clarify situation regarding GPLv3.
1216 2008-04-05  Eric Blake  <ebb9@byu.net>
1218         Prepare for release.
1219         * maint.mk (announcement): Avoid deleted option.
1220         * cfg.mk (release_archive_dir): Use default.
1221         * build-aux/gnupload: New file, from automake/gnulib.
1222         * Makefile.am (EXTRA_DIST): Distribute it.
1223         * .x-sc_two_space_separator_in_usage: New file, to exempt gnupload
1224         from syntax check.
1226 2008-04-05  Jim Meyering  <meyering@redhat.com>
1227         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1229         Work around CR EOL markers on OS/2 (www.ecomstation.com Ecs v2 rc4)
1230         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When CR
1231         is the EOL marker, skip a step that would remove and translate
1232         carriage return bytes.
1233         * THANKS: Update.
1234         Reported by Elbert Pol.
1236 2008-04-05  Eric Blake  <ebb9@byu.net>
1238         Avoid some autoreconf -Wall warnings.
1239         * configure.ac: Use proper quoting, to be a good example.
1240         (PACKAGE_NAME): Remove setting covered by autoconf.
1241         (AM_INIT_AUTOMAKE): Bump automake requirement, for html rules.
1242         * doc/Makefile.am (TEXI2DVI): Remove settings covered by
1243         automake.
1244         (html, autoconf_1.html, standards_1.html): Likewise.
1245         (TEXI2HTML, TEXI2HTML_FLAGS): Remove unused macros.
1246         * Makefile.am (html): Likewise.
1247         * doc/autoconf.texi (Quoting and Parameters): Add missing section
1248         name.
1249         * tests/Makefile.am (AUTOMAKE_OPTIONS): Intentionally ignore
1250         warning about our override, until Automake is fixed.
1251         * README-hacking: Document minimum requirements for bootstrap.
1253 2008-04-03  Eric Blake  <ebb9@byu.net>
1255         Fix version number generation in man pages.
1256         * Makefile.am (EXTRA_DIST): Distribute .version.
1257         (.version): New rule.
1258         * man/Makefile.am (common_dep): Depend on .version, not
1259         configure.ac.
1260         (.x.1): Use package name for version string.
1261         * GNUmakefile [!_have-Makefile]: Sync from upstream, again.
1262         * build-aux/git-version-gen: Sync from upstream.
1264         More maintainer tweaks: pass 'make maintainer-distcheck'.
1265         * GNUmakefile (_is-dist-target): Sync from upstream.
1266         * build-aux/vc-list-files: Sync from upstream, yet again.
1267         * tests/atlocal.in (unsupported_fs_chars): Always remove tdir.
1268         * tests/Makefile.am (EXTRA_DIST): Don't distribute the built
1269         package.m4.
1270         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump year.
1272         Fix VPATH 'make syntax-check'.
1273         * maint.mk (VC_LIST, VC_LIST_EXCEPT, sc_changelog)
1274         (sc_prohibit_jm_in_m4, makefile-check): Support VPATH.
1275         (author_mark_check): Avoid error message.
1276         * build-aux/vc-list-files: Sync from upstream again.
1277         * build-aux/texinfo.tex: Likewise.
1279         Sync files from upstream, and pass 'make syntax-check'.
1280         * config/announce-gen: Move...
1281         * build-aux/announce-gen: ...here, and sync from gnulib.
1282         * Makefile.am (EXTRA_DIST): Adjust accordingly.
1283         * cfg.mk (announce_gen): Likewise.
1284         (prev_version_file): Delete, relying on default in maint.mk.
1285         (gpg_key_ID): New macro.
1286         (url_dir_list): Rewrite to match coreutils.
1287         * config/prev-version.txt: Move...
1288         * .prev-version: ...here, and adjust to 2.61.
1289         * build-aux/vc-list-files: Sync from coreutils.
1290         * maint.mk: Resynchronize with coreutils, where possible.
1291         (ME): Remove $(srcdir) from definition.
1292         (CVS): Delete.
1293         (GIT, VC, VC-tag): New macros.
1294         (CVS_LIST, CVS_LIST_EXCEPT): Rename...
1295         (VC_LIST, VC_LIST_EXCEPT): ...to this.
1296         (cvs-tag-check): Delete.
1297         (cvs-diff-check): Rename...
1298         (vc-diff-check): ...to this.
1299         (sc_file_system): Allow FHS acronym.
1300         * doc/autoconf.texi (Particular Functions): Recommend
1301         unconditional <config.h>.
1302         * build-aux/config.guess: Sync from upstream (manually).
1303         * build-aux/config.sub: Likewise.
1304         * build-aux/texinfo.tex: Likewise.
1305         * doc/make-stds.texi: Likewise.
1306         * doc/standards.texi: Likewise.
1307         * .gitattributes: Ignore whitespace problems in upstream files.
1309 2008-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1311         * doc/autoconf.texi (Limitations of Usual Tools): Mention awk %u
1312         bug on HP-UX/IA.
1313         Report by Peter O'Gorman.
1315 2008-04-02  Eric Blake  <ebb9@byu.net>
1317         Recommend the just-released M4 1.4.11.
1318         * NEWS: Update recommendation.
1319         * README: Likewise.
1320         * doc/autoconf.texi (Introduction): Likewise.
1321         * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
1323 2008-04-01  Eric Blake  <ebb9@byu.net>
1325         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Bump
1326         copyright year.
1328 2008-03-28  Peter O'Gorman  <peter@pogma.com>
1330         Find X11 on Mac OS X too.
1331         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT,_AC_PATH_X_XMKMF):
1332         Check for libX11 with extensions dylib la and dll too.
1333         * THANKS: Update.
1334         Reported by Martin Costabel.
1336 2008-03-28  Eric Blake  <ebb9@byu.net>
1338         Update TODO based on completed tasks.
1339         * TODO (AC_PROG_INSTALL takes multiple files): Done.
1340         (AC_GNU_SOURCE deprecation): Done, see AC_USE_SYSTEM_EXTENSIONS.
1341         (AC_COMPILE_IFELSE documentation): Done.
1342         (Tracing builtins): Done, now that we require M4 1.4.5.
1343         (AC_PROG_CC_POSIX suggestion, providing header files)
1344         (AC_TYPE_SIGNAL): Not needed; gnulib's approach is better.
1345         (cache consistency): Done with precious variables.
1347 2008-03-26  Eric Blake  <ebb9@byu.net>
1349         Document --trace=macro:format in --help output.
1350         * bin/autom4te.in (help): Mention optional trace format.
1351         * bin/autoconf.as (usage): Likewise.
1353         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Fix
1354         typos in last patch.
1355         Reported by Ralf Wildenhues.
1357 2008-03-26  Jim Meyering  <meyering@redhat.com>
1359         Fix texinfo syntax error.
1360         * doc/autoconf.texi (Limitations of Usual Tools): s/@kbd {/@kbd{/
1362 2008-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1364         Warn, not fail on whitespace-only precious variable differences.
1365         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Output
1366         precious variable differences less ambiguous with `ugly-quotes'.
1367         If their settings differ only in whitespace, do not fail, but
1368         reuse the old value.
1369         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Extend macro to allow
1370         an optional status and expected-warning argument.  Fix m4
1371         quotation for initial value.
1372         (AC_ARG_VAR): Also test for whitespace-only differences, and
1373         that the old value is retained in this case.
1374         * doc/autoconf.texi (Setting Output Variables): Document this.
1375         * NEWS: Update.
1376         Report and initial patch by Paolo Bonzini.
1378 2008-03-26  Eric Blake  <ebb9@byu.net>
1380         Document busybox sed bug.
1381         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Mention
1382         restrictions when using back-references.
1383         Reported by Vincent Lefevre:
1384         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13013>.
1386         Document Automake interaction with AC_CONFIG_MACRO_DIR.
1387         * doc/autoconf.texi (Input): Mention ACLOCAL_AMFLAGS for automake
1388         users.
1389         * THANKS: Update.
1390         Reported by Chris Pickett.
1392 2008-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1394         * tests/autotest.at (Using atlocal): Quote instances of `pwd`.
1396         * tests/local.at (AT_CHECK_M4): Factorize warning output
1397         normalization.
1398         Suggested by Eric Blake.
1400 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1402         Fix .exe-related test failure on MinGW.
1403         * tests/local.at (AT_CHECK_M4): Normalize `/bin/m4.exe' correctly
1404         for comparing warning output.
1406         Fix Fortran testsuite failures with gfortran 4.3.
1407         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): When scanning
1408         verbose compiler output, skip lines that set variables; gfortran
1409         4.3 sets LIBRARY_PATH, COMPILER_PATH, COLLECT_GCC_OPTIONS.
1410         * THANKS: Update.
1411         Report by Vincent Lefèvre.
1413 2008-03-21  Eric Blake  <ebb9@byu.net>
1415         * GNUmakefile: Resynchronize with gnulib.
1417         Document more uses of $cross_compiling.
1418         * doc/autoconf.texi (Runtime): Document that a temporary override
1419         is permissible.
1420         * THANKS: Update.
1421         Reported by Ineiev, example by Ralf Wildenhues.
1423         Don't swallow $1 in textual local variables.
1424         * lib/m4sugar/m4sugar.m4 (m4_combine): Don't use overquoting and
1425         expansion of text arguments, as that swallows $1.
1426         (m4_text_wrap): Likewise, by splitting out...
1427         (_m4_text_wrap): ...new helper macro.  Also, allow arbitrary
1428         expression for width.
1429         * tests/m4sugar.at (m4@&t@_text_wrap): Test this.
1430         (m4@&t@_combine): Likewise.
1432 2008-03-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1434         Avoid leftover files on Leopard.
1435         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove a.out.dSYM
1436         directory created on darwin.
1437         (AC_NO_EXECUTABLES): Likewise; also remove objects which may be
1438         left over from a broken link.
1439         * tests/c.at (AC_NO_EXECUTABLES (working linker))
1440         (AC_NO_EXECUTABLES (broken linker)): New tests.
1441         Report by Gary V. Vaughan.
1443         * lib/autom4te.in (Automake-preselections): Trace
1444         _AM_COND_IF, _AM_COND_ELSE, _AM_COND_ENDIF.
1446 2008-03-20  Eric Blake  <ebb9@byu.net>
1448         Kill more CVS references.
1449         * README-cvs: Delete.  See README-hacking instead.
1450         * README-hacking: Update wording, based on older file.
1451         * BUGS: Remove CVS mention.
1453 2008-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1455         * tests/tools.at (autotools and whitespace in file names): Skip
1456         if aclocal is not present.
1458 2008-03-20  Eric Blake  <ebb9@byu.net>
1460         Sync GNUmakefile with gnulib.
1461         * GNUmakefile (Makefile.cfg): Rename...
1462         (cfg.mk): ...to this, and make optional.
1463         (GNUmakefile.cfg): Delete, redundant with cfg.mk.
1464         (Makefile.maint): Rename...
1465         (maint.mk): ...to this.
1466         (all) [!_have-Makefile]: Rename...
1467         (abort-due-to-no-makefile): ...to this, and invoke via
1468         .DEFAULT_GOAL to pick up all targets.
1469         * Makefile.cfg: Rename...
1470         * cfg.mk: ...to this.
1471         * Makefile.maint: Rename...
1472         * maint.mk ...to this.
1473         (ME): Reflect name change.
1474         (makefile-check, m4-check, author_mark_check, msg): Use $(ME)
1475         rather than hard-coded name.
1476         * GNUmakefile.cfg: Delete; move rules into cfg.mk.
1477         * Makefile.am (EXTRA_DIST): Reflect file name changes.
1478         * .x-sc_prohibit_atoi_atof: Likewise.
1479         * lib/freeze.mk: Likewise.
1481 2008-03-19  Stepan Kasal  <kasal@ucw.cz>
1483         * doc/autoconf.texi (Introduction): Improve the paraphrase of
1484         Henry Spencer's quotation.
1486 2008-03-19  Eric Blake  <ebb9@byu.net>
1488         AC_CONFIG_HEADERS replaced AC_CONFIG_HEADER.
1489         * bin/autoscan.in (output): Avoid obsolete spelling.
1490         * tests/local.at (AC_STATE_SAVE): Update usage.
1491         * THANKS: Update.
1492         Reported by John Calcote.
1494         Emphasize that ease of configure triumphs over ease of autoconf.
1495         * doc/autoconf.texi (Introduction): Expand on primary
1496         vs. secondary goal of autoconf.
1497         * THANKS: Update.
1498         Inspired by Paul Smith.
1500 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1502         * lib/Autom4te/FileUtils.pm (handle_exec_errors): New argument
1503         $hint, show if the executing program does not exist.
1504         (xsystem_hint): New function, like xsystem but allows to pass
1505         a hint.
1506         * bin/autoreconf.in: Use xsystem_hint for spawning autopoint and
1507         libtoolize.
1508         Report by Bruce Korb.
1510 2008-03-14  Stepan Kasal  <kasal@ucw.cz>
1512         * lib/Autom4te/ChannelDefs.pm, tests/fortran.at,
1513         tests/mktests.sh, tests/wrapper.as: Fix typos.
1515 2008-03-12  Eric Blake  <ebb9@byu.net>
1517         Fix yesterday's regression in m4_wrap([$1]).
1518         * lib/m4sugar/m4sugar.m4 (_m4_wrap): Don't directly invoke wrapped
1519         text, since it may contain text that looks like parameters.
1520         * tests/m4sh.at (AS@&t@_INIT cleanup): Enhance test.
1522 2008-03-11  Eric Blake  <ebb9@byu.net>
1524         Improve error messages for common testsuite bugs.
1525         * lib/autotest/general.m4 (_AT_DEFINE_INIT, _AT_DEFINE_SETUP): New
1526         macros for defining order-enforced macros.
1527         (AT_INIT, AT_SETUP, AT_CLEANUP, AT_BANNER, AT_XFAIL_IF)
1528         (AT_CAPTURE_FILE, AT_DATA, AT_CHECK, AT_CHECK_NOESCAPE): Add error
1529         messages when order violations are detected.
1530         * tests/autotest.at (AT_CHECK_AT_SYNTAX): New helper macro.
1531         (AT_SETUP without AT_INIT, AT_BANNER without AT_INIT)
1532         (AT_CLEANUP without AT_INIT, Missing AT_CLEANUP)
1533         (AT_CHECK without AT_SETUP, AT_DATA without AT_SETUP)
1534         (AT_XFAIL_IF without AT_DATA, AT_KEYWORDS without AT_SETUP,
1535         (AT_CLEANUP without AT_SETUP, AT_BANNER inside AT_SETUP)
1536         (AT_SETUP inside AT_SETUP, Multiple AT_INIT)
1537         (Banner-only test suite): New tests.
1538         Reported by Christopher Hulbert.
1540         Tweak m4_wrap to force FIFO or LIFO semantics.
1541         * lib/m4sugar/m4sugar.m4 (m4_wrap): Override M4 implementation.
1542         (m4_wrap_lifo, _m4_wrap): New macros.
1543         * lib/m4sugar/m4sh.m4 (AS_INIT): Combine all cleanup into known
1544         order, prior to m4sugar's.
1545         (_AS_DETECT_BETTER_SHELL): Use cleanup parameter, rather than
1546         m4_wrap.
1547         * lib/autotest/general.m4 (AT_INIT): Combine all cleanup into
1548         known order, prior to m4sh's.
1549         * doc/autoconf.texi (Diagnostic Macros) <m4_fatal>: Document
1550         argument.
1551         (Redefined M4 Macros) <m4_wrap>: Rewrite documentation to match
1552         new behavior.
1553         * tests/m4sh.at (AS_INIT cleanup): New test.
1554         * NEWS: Document the change.
1556 2008-03-10  Eric Blake  <ebb9@byu.net>
1558         Encode nested autotest data.
1559         * tests/autotest.at (AT_CHECK_AT_PREP): Avoid raw AT_ in output.
1560         (unusual file names): Likewise.
1561         (m4_pattern_allow): Remove loophole, to make it easier to catch
1562         poorly written tests.
1564         Factor some autotest tests.
1565         * tests/autotest.at (AT_CHECK_AT_PREP): New macro, to factor out
1566         common initialization.
1567         (AT_CHECK_AT, Banners, Keywords and ranges, srcdir propagation)
1568         (whitespace in absolute testdir, unusual file names): Use it.
1570 2008-03-06  Eric Blake  <ebb9@byu.net>
1572         Minor documentation fix.
1573         * doc/autoconf.texi (Evaluation Macros): Fix typo.
1575 2008-03-04  Eric Blake  <ebb9@byu.net>
1577         Make AT_CHECK act like a simple command.
1578         * lib/autotest/general.m4 (_AT_CHECK): Wrap commands in {;}.
1579         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Test it.
1581 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1583         On MinGW, substitution of CR and 0xFF fails.
1584         * tests/torture.at (Substitute and define special characters):
1585         MinGW awk cannot handle 0xFF, and on MinGW, the test does the
1586         wrong thing for CR.
1588 2008-03-04  Eric Blake  <ebb9@byu.net>
1590         Pull in recent maintainer improvements from coreutils.
1591         * GNUmakefile (_is-dist-target): 'make distclean' should not
1592         trigger autoreconf.
1593         (_dummy): Change directories before removing autom4te.cache.
1594         (check dist distcheck install) [!_have-Makefile]: Provide nicer
1595         diagnostics.
1596         * configure.ac (AC_CONFIG_LINKS): Copy GNUmakefile into VPATH
1597         builds, after initial bootstrap.
1598         * Makefile.am (distclean-local): Work around current automake bug.
1599         * Makefile.maint (ME): Allow VPATH usage.
1601         Use git-merge-changelog when available.
1602         * .gitattributes: New file.
1603         * README-hacking: Document use of git-merge-changelog.
1605         Work around cygwin bug.
1606         * tests/atlocal.in (unsupported_fs_chars): Avoid cygwin bug where
1607         "touch 't\'" creates regular file 't'.
1609         Ignore tests that require read-only directories under root.
1610         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Skip
1611         no-write portion if user has root-like privileges.
1613 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1615         * lib/autotest/general.m4 (AT_INIT): Fix detection of '-C -'.
1617 2008-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1619         autoreconf -m now honors $MAKE.
1620         * bin/autoreconf.in ($run_make): Renamed from ...
1621         ($make): ... this.  Use now as command to run `make',
1622         overridden by $MAKE.  Document this in --help output.
1623         * doc/autoconf.texi (autoreconf Invocation): Document
1624         all environment variables honored by autoreconf.
1625         * NEWS: Update.
1626         Report by Paul Eggert.
1628 2008-03-03  Eric Blake  <ebb9@byu.net>
1630         Documentation improvements.
1631         * doc/autoconf.texi (Looping constructs): s/recurses/repeats/.
1632         (Evaluation Macros): Drop `1' suffix from metasyntax variable name
1633         that preceeds @dots.  Improve wording.
1634         (Text processing Macros): Drop `1' suffix from metasyntax variable
1635         name that preceeds @dots.
1636         (Number processing Macros): Drop `1' suffix from metasyntax
1637         variable name that preceeds @dots.  Improve wording.
1638         * lib/m4sugar/m4sugar.m4 (m4_cmp): Comment wording fix.
1639         Suggested by Ralf Wildenhues.
1641 2008-03-02  Jim Meyering  <meyering@redhat.com>
1643         Don't infloop upon "make dist".
1644         * GNUmakefile: Merge from coreutils.
1645         * Makefile.am (dist-hook): Inject .tarball-version into tarball,
1646         not .version.
1647         * configure.ac (AC_INIT): Use .tarball-version, not .version.
1648         * build-aux/git-version-gen: Update from gnulib.
1650 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1652         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
1653         Before using /dev/full, check that it is a writable character
1654         special device.
1655         Report by Benoit Sigoure and Eric Blake.
1657         Actually test that @configure_input@ is expanded correctly.
1658         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
1659         Actually check generated file contents for the name of the
1660         generated file, using AC_PROG_FGREP and $FGREP.
1662 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
1664         Be nice with file systems that don't handle unusual characters.
1665         * tests/atlocal.in (func_sanitize_file_name)
1666         (func_sanitize_dir_name): New shell functions.
1667         * tests/tools.at (autom4te and whitespace in file names)
1668         (autotools and whitespace in file names): Use them.
1669         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
1670         Cover more potentially problemtic file names.  Use the new
1671         functions.
1673         Properly handle funny file names for headers in config.status.
1674         The test suite did not cover this bug because the code was not
1675         quoting properly the arguments of `rm -f' (which "fails" silently)
1676         as well as the arguments of `diff' (whose output was redirected to
1677         /dev/null so we couldn't see its error message).
1678         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Properly quote the
1679         file names passed to `rm' and `diff'.
1680         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
1681         Add a regression test.
1683 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
1684         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1686         Properly expand @configure_input@ in config.status.
1687         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_MAIN_LOOP):
1688         Escape the backslashes and ampersands in $configure_input before
1689         using it in the sed replacement string to expand @configure_input@.
1690         Report by Eric Blake and Patrick Welche.
1692 2008-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1694         Ignore errors from ./run on w32.
1695         * tests/autotest.at (whitespace in absolute testdir):
1696         Ignore stderr for `./run' which fails to remove the
1697         busy test directory on w32.
1699 2008-02-22  Eric Blake  <ebb9@byu.net>
1701         Improve documentation for writing autotest suites.
1702         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention that
1703         checks must live inside a test group.
1704         Reported by Christopher Hulbert.
1706 2008-02-21  Eric Blake  <ebb9@byu.net>
1708         Sync git-version-gen from upstream.
1709         * build-aux/git-version-gen: Pull from gnulib.
1710         * configure.ac (AC_INIT): Adjust to new calling convention.
1712 2008-02-12  Eric Blake  <ebb9@byu.net>
1714         Avoid trailing space in config.h with AC_DEFINE([var], []).
1715         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Explicitly mark empty
1716         defines with a comment.
1718 2008-02-08  Eric Blake  <ebb9@byu.net>
1720         Fix texinfo typos in previous patch.
1721         * doc/autoconf.texi (Site Defaults): s/[{}]/@&/g.
1722         Reported by Ralf Wildenhues.
1724         Describe a config.site that can be used for FHS compliance.
1725         * doc/autoconf.texi (Site Defaults): Fix typo.  Add new example
1726         for FHS.
1727         * THANKS: Update.
1728         Reported by Jules Colding and Ralf Wildenhues.
1730 2008-02-02  Eric Blake  <ebb9@byu.net>
1732         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Fix typo.
1734 2008-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1736         * lib/autotest/general.m4 (AT_INIT): Fix --clean to work
1737         again, broken since introduction of `-C dir'.
1738         * tests/autotest.at (Choosing where testsuite is run): Test it.
1740 2008-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1742         * doc/autoconf.texi: Update Back-Cover text to reflect new GNU wording.
1744 2008-01-29  Eric Blake  <ebb9@byu.net>
1746         Fix more autotest regressions.
1747         * lib/autotest/general.m4 (AT_LINE): Fix regression from
1748         2007-10-04 when file name is `dnl'.
1749         (AT_INIT) <PREPARE_TESTS>: Move command-line assignments...
1750         <TESTS_BEGIN>: ...to this new diversion, to fix regression from
1751         yesterday in libtool's testsuite.
1752         (_AT_ARG_OPTION): Detect write failure.
1753         * doc/autoconf.texi (Diversion support): Document PREPARE_TESTS to
1754         make libtool's use kosher.  Document m4_init.
1755         (Programming in M4sh): Document AS_INIT.
1756         (Writing Testsuites): Document limitation of AT_DATA file name.
1757         * tests/autotest.at (unusual file names): New test.
1758         (Banners, Keywords and ranges): Use correct shell.
1760         More corner cases in testsuite VAR=VALUE handling.
1761         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS): Fix quoting
1762         bug.
1763         <PARSE_ARGS_END>: Also detect leading digits in assignments.
1764         * tests/autotest.at (Using atlocal): Enhance test to catch last
1765         bug.
1767         * doc/autoconf.texi (Limitations of Builtins) <.>: Mention bash
1768         bug.
1770 2008-01-28  Eric Blake  <ebb9@byu.net>
1772         Fix regression in handling VAR=VALUE arguments to testsuite.
1773         * lib/autotest/general.m4 (AT_INIT) <PARSE_ARGS_END>: Detect
1774         leading = as invalid.  Defer use of command-line variable
1775         assignments...
1776         <PREPARE_TESTS>: ...here, after atconfig has been sourced.  Fix
1777         regression in sourcing files.
1778         * tests/autotest.at (Using atlocal): New test to catch this.
1779         (Debugging a successful test, Choosing where testsuite is run):
1780         Use correct shell.
1781         Reported by Ralf Wildenhues.
1783         Document grep peculiarity.
1784         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
1785         BSD behavior on binary input.
1787         Minor testsuite improvements.
1788         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Use fewer
1789         forks when sanitizing PATH.  Always output machine information,
1790         not just when atconfig was located.
1792         Add 'testsuite -C dir'.
1793         * lib/autotest/general.m4 (_AT_ARG_OPTION): Move missing argument
1794         detection...
1795         (AT_INIT) <PARSE_ARGS_END>: ...here, since -k always takes
1796         argument.
1797         <DEFAULTS>: Delay computation of variables based on $at_dir...
1798         <PREPARE_TESTS>: ...to here, since -C can change $at_dir.
1799         <TESTS>: Re-invoke via absolute name, since -C may be in effect.
1800         <PARSE_ARGS>: Parse new option.
1801         <HELP_TUNING>: Document it.
1802         * tests/autotest.at (Choosing where testsuite is run): New test
1803         for this feature.
1804         (Keywords and ranges): Add test for missing -k argument.
1805         * NEWS: Document this.
1806         * doc/autoconf.texi (testsuite Invocation): Likewise.
1808 2008-01-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1810         * build-aux/config.guess, build-aux/config.sub,
1811         build-aux/texinfo.tex: Sync from gnulib.
1812         * doc/fdl.texi, doc/make-stds.texi, doc/standards.texi:
1813         Likewise.
1815 2008-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1817         * doc/autoconf.texi (Particular Programs): Do not mention the
1818         Autoconf version in which the AC_PROG_INSTALL change was done.
1819         Suggested by Paul Eggert.
1821 2008-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1823         Fix --help=recursive with multiple AC_CONFIG_SUBDIRS.
1824         * lib/autoconf/general.m4 (_AC_INIT_HELP): If, for recursive help
1825         mode, we change to the source directory, also set $ac_pwd so we
1826         do not go back to the build tree for the next config subdir.
1827         * tests/torture.at (Deep Package): Extend test to contain two
1828         config subdirs on the top level.
1830         Fix parallel `maintainer-check'.
1831         * Makefile.am (maintainer-check-tests): Depend on `all'.
1832         Use `$(MAKE) $(AM_MAKEFLAGS)' instead of plain `make'.
1833         * tests/Makefile.am (maintainer-check-c++, maintainer-check-posix):
1834         Likewise.
1835         (maintainer-check): Serialize the testsuite runs.
1837         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE2): Accept `+'
1838         in feature string for --enable/--with.  Convert to underscore
1839         for variable name.
1841         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Require that
1842         `install -c file1 file2 dir' works.
1843         * doc/autoconf.texi (Particular Programs): Document this.
1844         * NEWS: Update.
1846 2008-01-21  Eric Blake  <ebb9@byu.net>
1848         Improve documentation about default include directives.
1849         * doc/autoconf.texi (Generic Headers, Generic Declarations)
1850         (Generic Structures, Generic Types)
1851         (Generic Compiler Characteristics): Add links to
1852         AC_INCLUDES_DEFAULT.
1853         Reported by Reuben Thomas.
1855 2008-01-15  Eric Blake  <ebb9@byu.net>
1857         * lib/m4sugar/m4sugar.m4 (m4_qlen): Use fewer macros.
1859 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1861         * tests/Makefile.am (noinst_SCRIPTS): Renamed from
1862         check_SCRIPTS.  Building the wrappers for `all' allows help2man
1863         to use them for the manpages.
1864         Report by Benoit Sigoure.
1866         * bin/autoreconf.in: Discard stderr for $autoconf/$aclocal --help.
1868 2007-12-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1870         Fix some write failure cases in Autotest.
1871         * lib/autotest/general.m4 (AT_INIT): Do not exit successfully
1872         upon write failures for --help, --version, --list.
1873         Guard against write failures for intermediate created scripts.
1874         <at_func_create_debugging_script>: Do not make the debugging
1875         script executable if it is not complete.
1877 2007-12-12  Eric Blake  <ebb9@byu.net>
1879         Fix thinko in earlier patch - m4_join isn't defined yet.
1880         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
1881         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
1882         (m4_require): Use m4_do, not m4_join.
1884         Fix some whitespace tests on cygwin.
1885         * tests/tools.at (autom4te and whitespace in file names): Restore
1886         font-lock.  Create $TMPDIR before it might be used.
1888         Fix spurious testsuite failure with M4 1.4.11.
1889         * tests/local.at (AT_CHECK_M4): Cater to new m4 error message.
1891         Optimize AC_REQUIRE.
1892         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
1893         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
1894         (m4_require): Avoid extra macro calls.
1896 2007-12-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1898         * tests/torture.at (srcdir): Fix quoting.
1900         Do not pass top_srcdir to configure scripts in testsuite.
1901         * tests/autotest.at (srcdir propagation): Copy install-sh to
1902         source tree.
1903         (my only test): Drop setting of `top_srcdir'.
1904         * tests/base.at (Input/Output): Likewise.
1905         * tests/local.at (AT_CONFIGURE_AC): Copy install-sh,
1906         config.guess, and config.sub to test source tree.
1907         Drop AC_CONFIG_AUX_DIR setting.
1908         (AT_CHECK_CONFIGURE): Drop setting of `top_srcdir'.
1909         * tests/torture.at (Substitute a 2000-byte string): Drop
1910         AC_CONFIG_AUX_DIR setting, copy install-sh to test source tree.
1911         (Substitute a newline, datarootdir workaround): Likewise.
1912         (Define a newline): Adjust for linenumber changes in configure.ac.
1913         * tests/foreign.at (Libtool): Adjust comment to reflect changes.
1915         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): Skip test
1916         if `pwd` contains whitespace.
1918         Quote $abs_top_srcdir in tests.
1919         * tests/local.at (AT_CHECK_PERL_SYNTAX): Likewise.
1920         * tests/tools.at (Syntax of the shell scripts): Likewise.
1922         * tests/m4sh.at (LINENO): Quote $0.
1924         Fix testsuite program wrapper for whitespace in `pwd`.
1925         The problem here is that the usual mantra is that command
1926         variables can contain arguments, thus we cannot just escape
1927         $AUTOCONF, $AUTOM4TE etc.  The compromise is to put the
1928         $top_builddir/tests directory early in $PATH, so that the
1929         wrappers are found by their plain name.
1930         * tests/wrapper.as: Put $testdir early in $PATH.
1931         (AUTOCONF, AUTOHEADER, AUTOM4TE): Set to plain command names.
1933         Proper config.status --file/--header and $srcdir escaping.
1934         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Quote special
1935         characters in $ac_file_inputs.
1936         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER): eval $ac_file_inputs
1937         accordingly.
1938         * tests/torture.at (datarootdir workaround): Adjust.
1939         (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): Extend test.
1941         Fix Autotest for whitespace in `pwd`.
1942         * lib/autotest/general.m4 (AT_INIT)
1943         <at_func_create_debugging_script, Driver Loop>:
1944         Quote $at_group_dir.
1945         * tests/autotest.at (whitespace in absolute testdir): New test.
1947         * lib/autom4te.in: Quote @datadir@.
1949         Proper file name escaping in Autoconf programs and Perl modules.
1950         This includes escaping of characters special to the shell
1951         as well as special to Perl, e.g., leading `<' or `>'.
1952         For example, when $file starts with `>', `open ">$file"'
1953         wrongly tries to append to a different file.
1954         * bin/autoconf.as: Fix quoting for autom4te options.
1955         * lib/Autom4te/General.pm (shell_quote): New function, taken
1956         from coreutils, written by Jim Meyering.
1957         (mktmpdir): Use it.
1958         * bin/autom4te.in (files_to_options, handle_m4): Use shell_quote
1959         and open_quote.
1960         * bin/autoreconf.in (parse_args): Likewise.
1961         * bin/autoscan.in (main): Likewise.
1962         * bin/autoupdate.in (main): Likewise.
1963         * bin/autoheader.in: Likewise, fixing old insufficient escaping.
1964         * bin/ifnames.in: Likewise, XFile usage fixes.
1965         * tests/tools.at (autom4te and whitespace in file names): Extend
1966         test.  Test twice, with special characters allowed on w32, and the
1967         rest.  Test leading and trailing whitespace, for `open_quote'.
1968         (autotools and whitespace in file names): New, analogous test.
1969         Reported by Paul Eggert and Benoit Sigoure, additional suggestions
1970         by Russ Allbery and Eric Blake.
1972         Sync from Automake.
1973         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
1974         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Likewise.
1975         * lib/Autom4te/FileUtils.pm (open_quote): New function.
1976         (update_file, contents): Use it.
1978         * Makefile.am (autom4te-update): Rewrite for git.
1980 2007-12-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1982         * doc/autoconf.texi (autom4te Invocation, Autom4te Cache): Fix typos.
1984         Fix copyright years.
1985         * Makefile.am, doc/install.texi, lib/autoconf/fortran.m4,
1986         lib/autoconf/lang.m4, lib/freeze.mk: Likewise.
1988 2007-12-04  Eric Blake  <ebb9@byu.net>
1990         Manually resync with gnulib, since 'make cvs-update' no longer works.
1991         * build-aux/config.guess: New upstream version.
1992         * build-aux/config.sub: Likewise.
1994         When using older automake, don't downgrade build-aux/texinfo.tex.
1995         * configure.ac (AM_INIT_AUTOMAKE): Add no-texinfo.tex option.
1996         * doc/Makefile.am (TEXINFO_TEX): Add.
1998 2007-11-27  Paul Eggert  <eggert@cs.ucla.edu>
2000         Fix AC_C_BIGENDIAN bug caused by new awk method of substitution.
2001         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Don't comment out the
2002         #undef as this runs afoul of our new way of creating config.h.
2003         Problem reported by Jim Meyering in
2004         <http://lists.gnu.org/archive/html/autoconf-patches/2007-11/msg00164.html>.
2006 2007-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2008         Fix autom4te for unusual characters in input file names.
2009         * bin/autom4te.in (files_to_options): Quote active characters
2010         for the shell.
2011         * tests/tools.at (autom4te and white space in file names):
2012         New test.
2014         * doc/autoconf.texi (Limitations of Usual Tools) <awk>:
2015         Document that Tru64 awk always splits $0.
2017 2007-11-24  Stepan Kasal  <kasal@ucw.cz>
2019         * lib/autotest/general.m4 (AT_INIT): Do not extract the
2020         `#AT_STOP_...' line at the end of each test.
2022 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2024         * lib/autotest/general.m4 (AT_INIT): For awk line number
2025         extraction script, ensure `$at_group' has a defined value
2026         even for the empty set, and properly quote its usage inside
2027         the awk script.
2029 2007-11-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2031         * doc/autoconf.texi (Shell Functions): New chapter.  Document
2032         IRIX sh $0 issue in functions, move content from ...
2033         (Portable Shell): ... here.
2034         (Shell Script Compiler): Note that shell functions are not
2035         totally unportable any more.
2037 2007-11-22  Stepan Kasal  <kasal@ucw.cz>
2038         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2040         * lib/autotest/general.m4 (AT_INIT): Exit awk script after
2041         extracting the line numbers of the last needed test.
2043 2007-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2045         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
2046         Fix quoting.
2048 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2050         Fix IRIX testsuite debugging failures: $0 in functions.
2051         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
2052         Do not use $0 inside a function, as IRIX sh will set that to the
2053         function name rather than the script invocation name.
2055 2007-11-19  Paolo Bonzini  <bonzini@gnu.org>
2056         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2058         * lib/autotest/general.m4 (at_func_test): Use cached line numbers
2059         to extract test scripts.
2060         (AT_INIT): Extract and cache test script line numbers.
2062 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2064         * lib/autotest/general.m4: Revert 2007-11-15 patch and
2065         subsequent fixups; the awk -> here-document conversion trashes
2066         performance too much with AIX sh.
2068 2007-11-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2070         * tests/local.at: Do not test m4, perl with AT_TESTED.
2072         Diagnose and guard against write errors dealing with config.status.
2073         The general idea is this: all write failures from `configure'
2074         writing `config.status' are indicated by $ac_write_error, which
2075         is only checked at the end.  This is safe because config.status
2076         code is not executed before the file is complete.  Other write
2077         failures, be they inside config.status, or in sub shell/awk
2078         scripts spawned from configure or config.status, typically need
2079         earlier checking, as their results are used right afterwards.
2080         * lib/autoconf/status.m4 (AC_OUTPUT): Initialize `ac_write_fail'
2081         before writing config.status, check afterwards.
2082         (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
2083         (_AC_OUTPUT_HEADERS_PREPARE,_AC_OUTPUT_CONFIG_STATUS):
2084         Set `ac_write_error' for write failures to config.status.  Barf
2085         upon write failures to temporary files.
2086         Adjust note about closing and reopening the here-document.
2087         (_AC_OUTPUT_HEADER, _AC_OUTPUT_LINK, _AC_OUTPUT_COMMAND)
2088         (_AC_OUTPUT_MAIN_LOOP): Likewise, adjust note about closing and
2089         reopening the here-document.
2090         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
2091         Ensure `ac_write_error' does not escape into config.status.
2092         Also, add a couple of code paths not yet exercised in the test
2093         suite: a config file with input from stdin, and a config header
2094         output to stdout.
2095         Suggestion for catching write errors by Bruno Haible.
2097 2007-11-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2099         Avoid error with Tru64 awk and testsuite lines with many words.
2100         * lib/autotest/general.m4 (AT_INIT): In the awk script that
2101         reads the testsuite, set the field separator to an unusual value,
2102         in order to not run over the limit of 199 fields.  Tru64 4.0D awk
2103         even splits the input if $i, i>0, was never accessed in the script.
2105         Revert 2007-10-17 change.
2106         * TODO: Multiline args in config files and headers mean something
2107         different and are not fixed, see
2108         <http://lists.gnu.org/archive/html/autoconf-patches/2007-05/msg00017.html>
2109         Report by Stepan Kasal.
2111         * doc/autoconf.texi (Generic Programs): Fix typo.
2113 2007-11-16  Stepan Kasal  <kasal@ucw.cz>
2115         AC_*_TOOL does not canonicalize the prefix
2116         * doc/autoconf.texi (Generic Programs): Do not say that
2117         the *_TOOL macros canonicalize, they simply use the `host_alias'.
2119 2007-11-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2121         Diagnose write errors in config.status instantiations.
2122         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE)
2123         (_AC_OUTPUT_HEADER, _AC_OUTPUT_MAIN_LOOP): Bail out
2124         on write errors.
2125         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
2126         Extend test to also check for some write error failures, using...
2127         <AT_CHECK_CONFIG_CREATION_NOWRITE>: ...this new macro.
2128         Report by Bruno Haible.
2130         Indentation fixups.
2131         * lib/autotest/general.m4 (AT_INIT) <at_func_log_failure>: Fix
2132         indentation.
2133         (_AT_CHECK): Use less indentation, to save space.
2135 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2137         Add witness macro for @top_build_prefix@ substitution.
2138         * lib/autoconf/status.m4 (_AC_HAVE_TOP_BUILD_PREFIX): New macro.
2139         (_AC_OUTPUT_FILE): Mention it here.
2141 2007-11-15  Paolo Bonzini  <bonzini@gnu.org>
2142         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2144         * lib/autotest/general.m4 (at_func_test): Remove.
2145         (AT_INIT): Pre-extract test groups into separate files.
2146         (AT_CLEANUP): Source pre-extracted file instead of calling at_func_test.
2147         Remove at-test-source files together with the $at_group_dir.
2148         * tests/autotest.at (Long test source lines): New test.
2150 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2152         Shell functions and variables may share a namespace.
2153         * doc/autoconf.texi (Portable Shell): Mention Solaris sh
2154         limitation.
2156 2007-11-14  Paul Eggert  <eggert@cs.ucla.edu>
2158         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Make comment match
2159         gnulib.
2161 2007-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2163         * lib/autoconf/status.m4: Fix a couple of comment typos.
2165         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Use $as_me, not $me.
2167 2007-11-13  Jim Meyering  <meyering@redhat.com>
2169         Clean up the rule to create "expr".
2170         * tests/Makefile.am (expr): Don't redirect directly to target.
2171         Redirect just once, not for each echo statement.
2172         Use $@, not literal "expr".
2174 2007-11-13  Paul Eggert  <eggert@cs.ucla.edu>
2176         Don't worry about preprocessor when testing long long.
2177         See: http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00075.html
2178         * doc/autoconf.texi (Preprocessor Arithmetic): New section.
2179         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT):
2180         These no longer check for preprocessor flaws.
2181         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET):
2182         Do not check for preprocessor flaws.
2184 2007-11-13  Jim Meyering  <meyering@redhat.com>
2186         Adapt dependencies, now that a version change doesn't modify configure.ac
2187         * GNUmakefile: Remove "make clean" kludge.
2188         * lib/m4sugar/Makefile.am (version.m4): Depend on Makefile, not
2189         configure.ac.
2190         Don't redirect directly to target.
2191         Use $@, not literal "version.m4".
2193 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2195         * doc/autoconf.texi (Making testsuite Scripts): Document
2196         ":;{" shorthand as in previous patch.
2198 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
2200         * doc/autoconf.texi (Limitations of Builtins): Document problem
2201         with { ... } a bit more clearly.  Suggest ":;{" as a shorthand
2202         for the workaround.
2203         * lib/m4sugar/Makefile.am (version.m4): Detect 'echo' failure.
2204         Use ":;{" shorthand.
2205         * tests/Makefile.am ($(srcdir)/package.m4): Likewise.
2207 2007-11-12  Jim Meyering  <meyering@redhat.com>
2209         Add more non-srcdir build support.
2210         * GNUmakefile (dummy): Split a long line.
2211         Add -v option to autoreconf invocation.
2213         Remove the autoreconf-provided INSTALL, so that we regenerate it.
2214         * GNUmakefile (dummy): Remove INSTALL.
2216         Remove racy commands to build scripts in bin/ and tests/.
2217         * man/Makefile.am (.x.1): Now that scripts in bin/ and tests/
2218         are guaranteed to be built, remove the rules that tried to build
2219         them.  Before, with a parallel build, these rules could lead to
2220         two processes writing tests/wrapper.in concurrently.
2222         Build in man/ only *after* building in bin/ and tests/.
2223         * Makefile.am (SUBDIRS): The man-page-creation process runs $(MAKE)
2224         in both bin/ and tests/.
2226         Accommodate non-srcdir build-from-checkout.
2227         * build-aux/git-version-gen: Require an additional parameter: $srcdir.
2228         Use git's --git-dir=$srcdir/.git option.
2229         Add quotes, in case tarball_version_file contains shell meta-characters.
2230         * GNUmakefile (_curr-ver): Pass $(srcdir) to git-version-gen.
2231         * configure.ac: Pass "." to git-version-gen.
2233         Avoid spurious test failures due to version skew.
2234         * GNUmakefile (dummy): Run $(MAKE) clean after autoreconf -i.
2236 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2238         Avoid warnings about conftest.dSYM directories on Mac OS X Leopard.
2239         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_RUN_IFELSE):
2240         Remove conftest.dSYM directory.
2241         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT)
2242         (_AC_LANG_PROGRAM_C_, _AC_FC_MAIN, __AC_FC_NAME_MANGLING):
2243         Remove `conftest.*' recursively.
2244         * lib/autoconf/lang.m4 (AC_LINK_IFELSE): Likewise.
2245         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
2246         Likewise.
2247         (_AC_COMPILER_OBJEXT_REJECT): Reject *.dSYM.
2248         * THANKS: Update.
2249         Report and analysis by Jeff Squyres and Peter O'Gorman.
2251 2007-11-12  Benoit Sigoure  <tsuna@lrde.epita.fr>
2253         Fix typos in variable names.
2254         * tests/semantics.at (test for AC_CHECK_LIB): s/at_m/ac_m/.
2256 2007-11-11  Benoit Sigoure  <tsuna@lrde.epita.fr>
2258         Document that $((expression)) is not portable.
2259         * doc/autoconf.texi (Shell Substitutions): Here.
2261 2007-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2263         Ignore configure --help* errors due to LINENO-impaired shells.
2264         * tests/torture.at (Configuring subdirectories, Deep Package):
2265         In the --help* tests in read-only trees, make `.' temporarily
2266         writable again for the `stderr' file, and ignore errors due to
2267         the attempt to write configure.lineno.
2268         Report by Patrick Welche.
2270 2007-11-10  Jim Meyering  <meyering@redhat.com>
2272         Generate package.m4 in build-dir, not srcdir.
2273         * tests/Makefile.am (package.m4): Adjust target.
2274         Don't redirect directly to $@.
2275         (CLEANFILES): Add package.m4.
2276         ($(TESTSUITE)): Depend on just-built package.m4, not the one
2277         in $(srcdir).
2278         When running $(AUTOTEST), search "." before searching $(srcdir).
2280         Avoid a race condition that would make parallel "distclean" fail.
2281         * tests/Makefile.am (distclean-generic): Replace the default,
2282         automake-provided rule with an identical one, but with an additional
2283         dependency on distclean-local.  Simply adding the dependency would
2284         cause automake not to emit the rule at all.
2285         * BUGS: Building with -jN works, now.
2287         Distribute git-version-gen.
2288         * Makefile.am (EXTRA_DIST): Add build-aux/git-version-gen,
2289         since GNUmakefile is distributed, and requires it for dist* rules.
2291         Remove two more generated files from version control.
2292         * INSTALL: Remove generated file.
2293         * lib/autoscan/autoscan.list: Remove generated file.
2295 2007-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2297         * GNUmakefile (PATH): Remove stray apostrophes; they become
2298         part of PATH, which isn't wanted here.
2300 2007-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2302         New config files output variable `top_build_prefix'.
2303         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Substitute
2304         `top_build_prefix'.
2305         * doc/autoconf.texi (Preset Output Variables): Document it.
2306         * NEWS: Update.
2307         Report by Bob Friesenhahn.
2309         Avoid expr for arithmetic evaluation if the shell accepts $((...)).
2310         * lib/autotest/general.m4 (AT_INIT) <at_func_arith>: New
2311         function, to parametrize arithmetic with expr vs. the shell.
2312         Use it where possible.
2313         Suggestion by Benoit Sigoure.
2315 2007-11-03  Benoit Sigoure  <tsuna@lrde.epita.fr>
2317         Adjust the documentation of autotest WRT atlocal.
2318         * doc/autoconf.texi (Making testsuite Scripts): It is not necessary,
2319         when using Automake, to write a rule to produce atlocal, since it's
2320         an AC_CONFIG_FILES.  Mention that atlocal.in needs to be
2321         distributed, not atconfig.in.
2323 2007-11-04  Eric Blake  <ebb9@byu.net>
2325         Update list information.
2326         * README: Mention new autoconf-commit list.
2327         * doc/autoconf.texi (Introduction): Mention autoconf-commit list.
2329 2007-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2331         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Fix comment typo.
2333         * lib/m4sugar/Makefile.am (version.m4): Another bash bug workaround.
2335         * build-aux/.gitignore: Ignore mkinstalldirs.
2337         * doc/autoconf.texi (autoreconf Invocation): Fix an underfull line.
2339 2007-11-03  Jim Meyering  <meyering@redhat.com>
2341         s/-/./ in snapshot version string: 2.61a-256-8b556 -> 2.61a.256-8b556
2342         * build-aux/git-version-gen: This syncs from coreutils.
2344         Adjust the build procedure so "make check" works reliably.
2345         * README-hacking: Include an extra step between "make" and
2346         "make check" to ensure that the latter passes.
2348         Use just-built tools, when possible.
2349         * GNUmakefile (PATH): Set and export here, ...
2350         (dummy): ... rather than here.
2352 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2353         and Andreas Schwab  <schwab@suse.de>
2355         * tests/Makefile.am ($(srcdir)/package.m4): Work around bash
2356         exit status bug.
2358 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2360         * configure.ac (AC_PREREQ): Require version 2.60, for
2361         AC_PROG_SED, AC_PROG_GREP.
2363 2007-11-02  Benoit Sigoure  <tsuna@lrde.epita.fr>
2364         and Jim Meyering  <meyering@redhat.com>
2365         and Andreas Schwab <schwab@suse.de>
2366         and Eric Blake  <ebb9@byu.net>
2368         Document a bug in GNU Bash with compound commands and redirections.
2369         * doc/autoconf.texi (Limitations of Builtins): Mention that GNU
2370         Bash doesn't properly set $? when `{ ... } >/bad' fails, and give
2371         workaround.
2373 2007-11-03  Eric Blake  <ebb9@byu.net>
2375         Support m4 1.4.5 in testsuite.
2376         * tests/torture.at (Define a newline): Exclude line numbers in
2377         error message.
2378         Reported by Ralf Wildenhues.
2380 2007-11-03  Jim Meyering  <meyering@redhat.com>
2382         Remove automake-provided files from version control.
2383         * build-aux/elisp-comp: Remove file.
2384         * build-aux/install-sh: Remove file.
2385         * build-aux/missing: Remove file.
2386         * build-aux/mdate-sh: Remove file.
2387         * build-aux/.gitignore: New file.
2388         Suggestion from Ralf Wildenhues.
2390 2007-11-03  Eric Blake  <ebb9@byu.net>
2392         Adjust version comparison to account for git snapshot numbers.
2393         * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Also treat - as a
2394         component separator.
2395         * doc/autoconf.texi (Number processing Macros)
2396         <m4_version_compare>: Document this change.
2397         * tests/m4sugar.at (m4@&t@_version_compare): Test it.
2399 2007-10-30  Bruno Haible  <bruno@clisp.org>
2401         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro,
2402         extracted from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
2403         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT): Use it.
2404         Fixes problem with Sun C 5.[0-8] in 32-bit mode, reported in
2405         <http://lists.gnu.org/archive/html/autoconf-patches/2007-10/msg00210.html>
2406         Suggested by Paul Eggert.
2408 2007-10-28  Jim Meyering  <meyering@redhat.com>
2410         * README-hacking: Autoconf, Automake, and Perl are required to build.
2411         List Gzip and Tar separately.  Suggested by Ralf Wildenhues.
2413 2007-10-28  Jim Meyering  <meyering@redhat.com>
2415         README-hacking: Recommend running autoreconf -vi.
2416         * GNUmakefile (dummy): Use autoreconf -i, with appropriate PATH,
2417         so that we use just-built tools when they're available.
2418         Suggestions from Ralf Wildenhues.
2420 2007-10-28  Jim Meyering  <meyering@redhat.com>
2422         Make inter-release --version output more useful.
2424         Now, each unofficial build has a version "number" like 2.61a-19-58dd,
2425         which indicates that it is built using the 19th change set
2426         (in _some_ repository) following the "v2.61a" tag, and that 58dd
2427         is a prefix of the commit SHA1.
2428         * build-aux/git-version-gen: New file.
2429         * configure.ac: Run it to set the version.
2430         (AM_INIT_AUTOMAKE): Don't check NEWS here.
2431         * Makefile.am (dist-hook): Arrange so that .version appears only
2432         in distribution tarballs, never in a checked-out repository.
2433         * .gitignore: Add .version here, too.  Just in case.
2434         * tests/Makefile.am ($(srcdir)/package.m4): Depend on Makefile,
2435         not configure.ac, now that the version number changes automatically.
2437         Ensure that $(VERSION) is up to date for dist-related targets.
2438         * GNUmakefile: Arrange to rerun autoconf, if the version reported by
2439         git-version-gen doesn't match $(VERSION), but only for dist targets.
2441 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2443         Fix `Deep Package' failure with a configure script early in PATH
2444         * tests/torture.at (Deep Package): Add `.' early in PATH.
2445         Report by Jim Meyering.
2447 2007-10-27  Jim Meyering  <meyering@redhat.com>
2449         Remove all generated files from version control.
2450         * aclocal.m4: Remove.
2451         * configure: Remove.
2452         * Makefile.in: Remove, along with all other Makefile.in in subdirs.
2453         * .gitignore: Add aclocal.m4, configure and Makefile.in.  Sort.
2454         * README-hacking: New file: how to build from just-checked-out sources.
2456 2007-10-23  Eric Blake  <ebb9@byu.net>
2458         Improve corner case of m4_expand.
2459         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Rewrite more
2460         efficiently.
2461         * tests/m4sh.at (AS@&t@_HELP_STRING): Test overquoted comma.
2462         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Update
2463         documentation.
2465 2007-10-23  Paul Eggert  <eggert@cs.ucla.edu>
2467         * doc/make-stds.texi: Update from gnulib.
2469 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
2470         and Eric Blake  <ebb9@byu.net>
2472         * lib/autoconf/c.m4 (AC_C_RESTRICT): Work around Sun C++ compatibility
2473         problem reported by Bruno Haible in
2474         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00027.html>.
2476 2007-10-22  Eric Blake  <ebb9@byu.net>
2478         * doc/autoconf.texi (Particular Types): Mention bug in HP-UX 11.00
2479         preprocessor.
2481 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
2483         Don't check for bug in HP-UX 11.00 cpp.
2484         * lib/autoconf/types.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
2485         Use -1ull rather than -1u, since that causes problems with gnulib; see
2486         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
2488 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2490         * tests/autotest.at (Backquote command substitution)
2491         (Multiline backquote command substitution)
2492         (Parenthetical command substitution)
2493         (Multiline parenthetical command substitution): Fix typos in
2494         test names.
2496 2007-10-21  Eric Blake  <ebb9@byu.net>
2498         * configure: Regenerate.
2500 2007-10-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2502         Fix config status generation with Tru64 ksh.
2503         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix
2504         escaping of backslash in here-documents.
2506         Fix `Deep Package' test failure on FreeBSD.
2507         * tests/torture.at (Deep Package): Do not add `.' to $PATH
2508         unnecessarily.  Do not try running `/bin/sh configure' with a
2509         configure script to be found in $PATH, if the shell does not do
2510         this resolution.  Fixes test failure on FreeBSD.
2512         Fix config header generation with AIX awk.
2513         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): In awk
2514         script, use helper array D_is_set, as `" 0"' does not evaluate
2515         to true for AIX awk.
2517 2007-10-21  Eric Blake  <ebb9@byu.net>
2519         * tests/autotest.at (Banners): Reinstate test, with typo
2520         corrected.
2522 2007-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2524         * lib/autotest/general.m4 (Defaults): Validate input ranges ...
2525         <at_func_validate_ranges>: ... using this new function.
2526         * tests/autotest.at (Keywords and ranges): Test invalid ranges.
2527         Test --list with ranges and keywords.
2528         (Banners): Remove one now-failing test.
2530 2007-10-20  Eric Blake  <ebb9@byu.net>
2532         Fix testsuite --list subset.
2533         * lib/autotest/general.m4 (AT_INIT) <at_list_p>: Swap newlines
2534         back to spaces, before listing subset of tests.
2535         Reported by Ralf Wildenhues.
2537 2007-10-19  Eric Blake  <ebb9@byu.net>
2539         s/parenthesis/parentheses/ where appropriate.
2540         * doc/autoconf.texi: Fix typos.
2541         * lib/m4sugar/m4sugar.m4: Likewise.
2542         Reported by Ralf Wildenhues.
2544         Document m4_expand limitation.
2545         * lib/m4sugar/m4sugar.m4 (m4_expand): Mention problem with
2546         unbalanced parse.
2547         * doc/autoconf.texi (Pretty Help Strings, Evaluation Macros)
2548         (Writing Testsuites): Mention limitations inherited from
2549         m4_expand.
2551         Improve AT_BANNER handling.
2552         * lib/autotest/general.m4 (BANNERS): New named diversion.
2553         (TESTS_END): Diversion no longer used.
2554         (AT_INIT) <at_func_banner, BANNERS>: Factor all banners into a
2555         shell function, which prints only as needed, using an associative
2556         array of banner text from a special diversion.
2557         <PARSE_ARGS_END>: No longer need awk to find banners.
2558         <TESTS>: Banners are no longer processed by main driver loop, so
2559         we no longer need case statement.
2560         (AT_BANNER): Rewrite to populate new diversion.
2561         (AT_SETUP): Each test invokes its own banner.  No output is needed
2562         to the TESTS diversion.
2563         * doc/autoconf.texi (Writing Testsuites): Document slight
2564         semantics change.
2565         * tests/autotest.at (AT_BANNERS): Enhance test.
2566         * NEWS: Document AT_BANNER.
2568         Document and test AT_BANNER.
2569         * doc/autoconf.texi (Writing Testsuites): Document AT_BANNER.
2570         * tests/autotest.at (AT_CHECK_EGREP): Share between tests.
2571         (AT_CHECK_BANNERS): New test.
2573         Doc touchups.
2574         * doc/autoconf.texi (Text processing Macros) <m4_strip>
2575         <m4_text_wrap>: Clarify and fix typos.
2577 2007-10-18  Eric Blake  <ebb9@byu.net>
2579         Ignore `make dist' changelogs in testsuite.log.
2580         * lib/autotest/general.m4 (AT_INIT) <ChangeLogs>: Prune
2581         directories matching AT_PACKAGE_TARNAME-*.
2583         Fix AT_TESTED, AT_KEYWORDS.
2584         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Warn if separator
2585         occurs in string, as duplicates may be added.
2586         (_m4_append_uniq): New helper macro.
2587         (m4_append_uniq_w): New macro.
2588         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Fix
2589         duplication bug by using new macro.
2590         (AT_INIT) <at_tested>: Restore newline separators.  Invoke tested
2591         programs with stdin redirected, so programs that don't
2592         understand --version won't try to behave interactively.
2593         * tests/autotest.at (Tested programs): Catch this bug.
2594         * tests/m4sugar.at (m4@&t@_append): Test new macro.
2595         * tests/local.at (AT_TESTED): Add m4, perl.
2596         * doc/autoconf.texi (Text processing Macros): Document
2597         m4_append_uniq_w, and update text on m4_append.
2598         * NEWS: Document the addition.
2600 2007-10-17  Eric Blake  <ebb9@byu.net>
2602         Function cleanup.
2603         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Convert
2604         from m4 macro...
2605         (AT_INIT) <at_func_create_debugging_script>: ...to shell
2606         function.
2607         (AT_INIT): Defer function declarations until after --help,
2608         --version.  Format functions consistently, trying to fit in 80
2609         columns.
2610         (TEST_FUNCTIONS): Based on recent changes, rename...
2611         (TEST_GROUPS): ...to this.
2613         Reject FreeBSD m4.
2614         * m4/m4.m4 (AC_PROG_GNU_M4): Also check for frozen file support.
2615         * configure: Regenerate.
2616         Reported by Bob Friesenhahn.
2618         Test recent additions.
2619         * tests/m4sugar.at (m4@&t@_map, m4@&t@_combine)
2620         (m4@&t_max and m4@&t_min): New tests.
2621         * doc/autoconf.texi (Evaluation Macros) <m4_apply>: Enhance
2622         description.
2624 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2626         * TODO: multiline args in config files and headers work now.
2628         Autotest: do not use shell functions for individual tests.
2629         * lib/autotest/general.m4 (AT_INIT) <at_func_test>: Merely
2630         extract the source test source, do not invoke it.
2631         (AT_SETUP, AT_CLEANUP): Source test code outside shell function.
2632         * tests/autotest.at (Fallacy): Actually let the inner suite fail,
2633         expect exit status of 1.
2634         * tests/autotest.at (Skip): New test, for bogus zsh exit status.
2636         * lib/autotest/general.m4 (at_func_test): Fix test extraction
2637         script.
2639 2007-10-17  Eric Blake  <ebb9@byu.net>
2641         Fix m4_combine for empty suffix list.
2642         * lib/m4sugar/m4sugar.m4 (m4_combine): Check for suffix list.
2643         * doc/autoconf.texi (Text processing Macros): Document this.
2645         Add m4_combine, based on Libtool's lt_combine.
2646         * lib/m4sugar/m4sugar.m4 (m4_combine): New macro.
2647         * doc/autoconf.texi (Text processing Macros): Document it.
2648         * NEWS: Likewise.
2650 2007-10-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2652         Fix `configure --help=recursive' in unconfigured/read-only trees.
2653         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Avoid errors when `.'
2654         is not writable, use 'cp -p' in this case, in the hope that it
2655         will not actually be needed.  Still try removing files, in case
2656         of other write errors.
2657         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): For ac_confdir,
2658         use $as_myself, not $0.
2659         (_AC_INIT_HELP): For --help=recursive, if the subdir does not
2660         exist, try again in the the source tree.  This change assumes
2661         that the subpackage configure script is capable of running
2662         --help=recursive in the source tree.
2663         * tests/torture.at (Configuring subdirectories, Deep Package):
2664         Adjust tests to expose both issues, also try invocation as
2665         `sh configure ...' and plain `configure ...' with PATH adjusted.
2666         * NEWS, THANKS: Update.
2667         Report by Hans Ulrich Niedermann.
2669 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2671         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
2672         Problem reported by H.Merijn Brand in
2673         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
2674         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
2675         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
2676         Check that preprocessor handles 64-bit ints, too.
2678 2007-10-16  Eric Blake  <ebb9@byu.net>
2680         m4_map is a looping construct.
2681         * lib/m4sugar/m4sugar.m4 (m4_map, _m4_map, m4_map_sep): Move.
2683         Fix m4_map, and add some more utility macros.
2684         * lib/m4sugar/m4sugar.m4 (m4_apply, m4_count, m4_dquote_elt)
2685         (m4_echo, m4_make_list): New documented macros.
2686         (_m4_quote, _m4_shift2): New helper macros.
2687         (m4_map): Change semantics to allow calling macro without
2688         arguments.
2689         (m4_map_sep): Likewise.  Also change semantics to quote separator,
2690         to match m4_join and m4_append.
2691         (m4_version_unletter): Fix use of m4_map.
2692         * doc/autoconf.texi (Evaluation Macros): Document m4_apply,
2693         m4_count, m4_dquote_elt, m4_echo, m4_make_list.
2694         (Text processing Macros): Mention m4_dquote as a faster
2695         alternative to joining with commas.
2696         (Looping constructs): Document m4_map, m4_map_sep.
2697         * NEWS: Mention new macros.
2699         A few more m4sugar improvements, to benefit libtool.
2700         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts, _m4_shiftn): Reduce size
2701         of expansion by avoiding extra uses of $@.
2702         (m4_shiftn): Avoid extra dnl, and forbid shifting by 0.
2703         (_m4_cdr): New helper macro.
2704         (_m4_map, m4_map_sep): Use it to reduce size of expansion.
2705         (_m4_shift3): New helper macro.
2706         (_m4_foreach): Swap argument order, and use new macro to reduce
2707         size of expansion.
2708         * doc/autoconf.texi (Looping constructs) <m4_shiftn>: Mention that
2709         count must be positive.
2711         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Fix typo.
2712         Reported by Ralf Wildenhues.
2714 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2716         * doc/autoconf.texi (Portable Shell): Improve description of zsh
2717         4.x function subshell bug with exit and trap.
2719 2007-10-15  Eric Blake  <ebb9@byu.net>
2721         Enhance AS_HELP_STRING.
2722         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't expand arguments,
2723         and reduce number of expansions.
2724         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Rework to use m4_expand,
2725         and to take indent and wrap column numbers.
2726         * tests/m4sh.at (AS@&t@_HELP_STRING): Update the test.
2727         * doc/autoconf.texi (Pretty Help Strings): Document details about
2728         arguments.
2729         (Text processing Macros): Minor tweaks.
2730         * NEWS: Document this change.
2732         Fix 2007-10-03 regression with AT_SETUP([a, b]).
2733         * lib/m4sugar/m4sugar.m4 (m4_expand): New macro.
2734         (m4_text_box): Use it.
2735         * lib/autotest/general.m4 (AT_SETUP): Use it.
2736         * lib/m4sugar/m4sh.m4 (_AS_RUN): Use it.
2737         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Test this.
2738         * NEWS: Revert caveat about semantics change on comma.
2739         * doc/autoconf.texi (Evaluation Macros): Document m4_expand.
2741 2007-10-13  Eric Blake  <ebb9@byu.net>
2743         Change m4_join to match libtool's ltsugar semantics.
2744         * lib/m4sugar/m4sugar.m4 (m4_join): Just define this, not defun.
2745         Ignore empty arguments, using...
2746         (_m4_join): ...this new helper.
2747         * tests/m4sugar.at (m4@&t@_join): New test.
2748         * doc/autoconf.texi (Text processing Macros): Document new
2749         semantics of m4_join.
2751         Make AC_PREREQ faster and more robust.
2752         * lib/m4sugar/m4sugar.m4 (m4_ignore, m4_unquote): New macros.
2753         (m4_version_prereq): Inline constant expansions.
2754         (m4_list_cmp): Reduce number of expansions, by avoiding m4_case.
2755         Rewrite in terms of [] list, not () list.
2756         (_m4_list_cmp, _m4_version_unletter): New helper macros.
2757         (m4_version_unletter): Write wrapper around new implementation to
2758         preserve old semantics.
2759         (m4_version_compare): Pass correct type of list, and avoid
2760         overhead of flattening expressions too early.
2761         (m4_do): Move to be near other quoting macros.
2762         (m4_max, m4_min): Always result in decimal output.
2763         * doc/autoconf.texi (Looping constructs): Add m4_car, m4_cdr.
2764         Move m4_do...
2765         (Evaluation Macros): ...here.  Add m4_ignore, m4_unquote.
2766         (Text processing Macros): Move m4_version_compare...
2767         (Number processing Macros): ...to this new node; document m4_cmp,
2768         m4_list_cmp, m4_sign, m4_max, m4_min.
2769         * tests/m4sugar.at (m4@&t@_version_compare): Enhance test, to pick
2770         up on bugs fixed by this patch.
2771         * NEWS: Document new macros.
2773 2007-10-12  Eric Blake  <ebb9@byu.net>
2775         * doc/autoconf.texi (Text processing Macros): Fix bad merge.
2776         (Reporting Messages): Fix underfull hbox.
2778         Some more m4sugar documentation.
2779         * lib/m4sugar/m4sugar.m4: Clean up macro order.
2780         * doc/autoconf.texi (Programming in M4): Lighten the warning on
2781         using m4sugar; it is stabilizing and useful.
2782         (Redefined M4 Macros): Touch up wording on M4 builtins; sort.  Add
2783         m4_divert, m4_undivert, __file__, __line__, __oline__.
2784         (Diagnostics): New node, documenting m4_assert, m4_errprintn,
2785         m4_fatal, m4_location, m4_warn.
2786         (Diversion support): New node, documenting m4_divert_push,
2787         m4_divert_pop, m4_divert_text, m4_divert_once.
2788         (Text processing Macros): Sort.  Add m4_flatten, m4_join,
2789         m4_newline, m4_strip, m4_text_box, m4_text_wrap.
2790         (Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
2791         as obsolescent.
2792         (Printing Messages): Change cross-reference.
2794         Document interaction of recent m4_append change with Libtool HEAD.
2795         * lib/m4sugar/m4sugar.m4 (m4_append): Document semantics change.
2796         (m4_append_uniq): Add new parameters, based on lt_append_uniq.
2797         * tests/m4sugar.at (m4@&t@_append): New test.
2798         * NEWS: Document semantics change.
2799         * doc/autoconf.texi (Text processing Macros): Likewise.
2801         s/AC_VERSION/AC_AUTOCONF_VERSION/.
2802         * doc/autoconf.texi (Versioning): Change the name.
2803         * NEWS: Likewise.
2804         * lib/autoconf/general.m4 (AC_AUTOCONF_VERSION): Likewise.
2805         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Likewise.
2806         Suggested by Ralf Wildenhues.
2808         Namespace cleanup.
2809         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE)
2810         (_AC_OUTPUT_HEADERS_PREPARE): Convert here-doc delimiters into
2811         autoconf namespace.
2812         * doc/autoconf.texi (Programming in M4sugar, Forbidden Patterns)
2813         (Programming in M4sh, Macro Names): Beef up description of
2814         namespaces reserved for autoconf.
2815         * configure: Regenerate.
2817 2007-10-12  Eric Blake  <ebb9@byu.net>
2818         and Paolo Bonzini  <bonzini@gnu.org>
2820         Speed up execution of subset of testsuite.
2821         * lib/autotest/general.m4 (TEST_FUNCTIONS): New diversion.
2822         (AT_INIT) <at_func_test>: New shell function.
2823         (AT_INIT) <at_myself>: New variable, set to absolute $as_myself.
2824         (AT_INIT) <at_test_source> New variable, names file that holds
2825         current test function definition.
2826         (AT_SETUP): Start the shell function at_func_test_#, into the
2827         TEST_FUNCTIONS diversion.
2828         (AT_CLEANUP): End the shell function.  Simplify the TESTS
2829         diversion to invoke the function.
2831 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2833         * .gitignore: Ignore tags and TAGS files.
2835 2007-10-11  Eric Blake  <ebb9@byu.net>
2837         Config header generation followup.
2838         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Check for raw newlines,
2839         which won't work with the preprocessor nor with the awk
2840         implementation.
2841         * tests/torture.at (Define a newline): Test raw newline detection,
2842         removing the XFAIL.
2843         * doc/autoconf.texi (Defining Symbols): Document recent change to
2844         allow backslash-newline.
2845         * THANKS: Update.
2847 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2849         * lib/autotest/general.m4: Put function braces in separate line.
2851 2007-10-10  Eric Blake  <ebb9@byu.net>
2853         Avoid some overhead from m4_defn and m4_popdef.
2854         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Only
2855         pass on first argument, since we are documented that way.
2856         (m4_for, m4_append_uniq, m4_text_wrap): Optimize out defined-ness
2857         check where it is safe to do so.
2858         (m4_append): Likewise, and quote the separator.
2859         (m4_text_box): Likewise, and avoid regex, also be robust to
2860         expansion and quadrigraphs.
2862         Another AC_DEFINE speedup.
2863         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Move parameter
2864         elision...
2865         (_AC_DEFINE_Q): ...here, and only do it once.
2866         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid overquoting.
2867         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix m4_defn overquoting
2868         introduced 2007-10-05.
2870         Whitespace cleanup.
2871         * lib/autoconf/general.m4: Use consistent indentation.
2872         * configure: Regenerate.
2874         * NEWS: Announce recent round of speed optimizations.
2876 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2878         * NEWS: Announce shell function usage in Autotest.
2880 2007-10-10  Eric Blake  <ebb9@byu.net>
2881         and Paul Eggert  <eggert@cs.ucla.edu>
2883         Reduce number of forks at startup.
2884         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Speed up NLS
2885         sanitization.
2886         * configure: Regenerate.
2888 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2889         and Paul Eggert  <eggert@cs.ucla.edu>
2891         Use awk for config header generation.
2892         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix comments.
2893         (_AC_OUTPUT_HEADERS_PREPARE): New macro.  Rewrite of the config
2894         header machinery for use with awk and placement outside the main
2895         config.status instantiation loop.  Retain multi-line defines
2896         through backslash-newline combinations, do not split the script
2897         any more.
2898         (_AC_OUTPUT_HEADER): Simplify accordingly, use $AWK.
2899         (_AC_OUTPUT_MAIN_LOOP): Call _AC_OUTPUT_HEADERS_PREPARE if
2900         needed.
2901         (AC_OUTPUT_MAKE_DEFS): Remove backslash-newline combinations
2902         from define values.
2903         * NEWS: Update.
2904         * tests/torture.at (#define header templates): Extend test by
2905         several more cases: white space before and after `#', macros
2906         with parameters in config.hin and as defines, multi-line macro
2907         values.
2908         (Torturing config.status): Use a define value twice the length
2909         in order to exercise the awk literal string limit.
2910         (Substitute and define special characters): Also try special
2911         delimiter, to exercise the special-case code.
2912         Suggestion by Eric Lemings.
2914 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2916         * tests/local.at (AT_COPYRIGHT): Bump copyright years.
2918 2007-10-09  Eric Blake  <ebb9@byu.net>
2920         Improve header of bin/autoconf.
2921         * lib/m4sugar/m4sh.m4 (AS_INIT): Add a 'generated from' notice.
2922         * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Override new notice
2923         from M4sh.
2924         * bin/autoconf.as: Put copyright up front in generated file.
2926         * bin/autoconf.as (exit_missing_arg): Font-lock tweak.
2928 2007-10-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2930         * doc/install.texi (Basic Installation): Document `uninstall'.
2931         * INSTALL: Regenerate.
2932         Suggestion by Roberto Bagnara.
2934 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
2936         * doc/autoconf.texi (Limitations of Usual Tools): V7 awk had 'index'.
2938         Adjust doc. to match latest gnulib.
2939         * build-aux/texinfo.tex: Sync from gnulib.
2940         * doc/standards.texi: Likewise.
2941         * doc/autoconf.texi (Copying This Manual): Rename to "GNU Free
2942         Documentation License" and remove the subsection.  This simplifies
2943         the manual a bit and is more like what other GNU projects do
2944         nowadays.
2946 2007-10-08  Eric Blake  <ebb9@byu.net>
2948         Use recent changes.
2949         * configure: Regenerate.
2951         Fix regression in m4_text_wrap from 2007-10-05.
2952         * lib/m4sugar/m4sugar.m4 (m4_max, m4_min): New macros.
2953         (m4_sign): Sort.
2954         (m4_text_wrap): Fix off-by-one error in rewrite from m4_for to
2955         m4_format.
2956         * lib/autotest/general.m4 (AT_SETUP): Avoid negative width.
2957         * tests/autotest.at (Long test title, Longer test title): Test
2958         this fix, beyond what AS_HELP_STRING already tests.
2960         Avoid m4 warnings on bad m4_format usage.
2961         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Use %*s, in case width
2962         evaulates to 0.
2963         * lib/autotest/general.m4 (AT_SETUP): Likewise; also ensure that
2964         enough arguments are provided.
2966 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
2968         * doc/autoconf.texi (Shell portability): Document shell function
2969         portability.
2971 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
2973         * lib/autotest/general.m4 (AT_INIT): Add at_func_diff_devnull,
2974         at_func_check_skip, at_func_check_status, at_func_filter_trace,
2975         at_func_log_failure shell functions.  Use test -s to avoid
2976         useless diff invocations.
2977         (at_func_check_newline): Renamed from at_check_newline.
2978         (AT_SETUP): Define AT_captured_files to empty.
2979         (AT_DIFF_STDERR(*), AT_DIFF_STDOUT(*)): New, extracted from _AT_CHECK.
2980         (_AT_CHECK): Replace m4_case with m4_ifdef/m4_indir.  Use all
2981         the shell functions.
2983 2007-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2985         Don't assume "." is writeable, for commands like "autoconf --version".
2986         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use a
2987         different heuristic instead, one that doesn't rely on creating
2988         files.
2990         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle "///"
2991         correctly.
2993 2007-10-05  Jim Meyering  <meyering@redhat.com>
2995         Avoid makeinfo warnings.
2996         * doc/autoconf.texi (Redefined M4 Macros): Add a `,' after @xref.
2997         (Looping constructs): Add ` ' after @defmac'd name, m4_do.
2999 2007-10-05  Eric Blake  <ebb9@byu.net>
3001         Resolve Python issue 1676135 regarding configure directory args.
3002         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Strip trailing
3003         slashes from directory arguments.
3004         * tests/base.at (configure directories): New test.
3005         * doc/autoconf.texi (Installation Directory Variables): Document
3006         the change.
3007         * NEWS: Likewise.
3008         * THANKS: Update.
3009         Reported by Björn Lindqvist.
3011         Provide better short-circuiting operation.
3012         * lib/m4sugar/m4sugar.m4 (m4_cond, m4_newline): New macros.
3013         (m4_text_wrap): Use it.  Also avoid useless m4_for.
3014         * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE, AS_LITERAL_IF): Use
3015         new macro.
3016         (_AS_IDENTIFIER_IF): Likewise, and fix bug when $1 is [,].
3017         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Use new macros
3018         to avoid regexps.
3019         * doc/autoconf.texi (Redefined M4 Macros): Expand m4_if
3020         documentation.  Sort m4_mkstemp, m4_undefine.  Move m4_ifndef...
3021         (Conditional constructs): ...here, to new section.  Also document
3022         m4_cond, m4_ifval, m4_n, m4_ifvaln, m4_ifset, m4_case, m4_bmatch,
3023         m4_bpatsubsts, and m4_default.
3024         (Looping constructs): Document m4_shiftn, m4_shift2, m4_shift3,
3025         m4_do.
3027 2007-10-04  Eric Blake  <ebb9@byu.net>
3029         Fix recent testsuite failures.
3030         * lib/autotest/general.m4 (AT_INIT, AT_SETUP): Double-quote text
3031         that must not be re-expanded after AS_ESCAPE.
3032         * lib/m4sugar/m4sh.m4 (_AS_IDENTIFIER_IF): Don't expand $1 when
3033         checking if it is an identifier.
3035         Whitespace cleanup.
3036         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Avoid
3037         leading whitespace, as it caused space-tab in testsuite.
3038         (AT_INIT): Avoid trailing newlines in testsuite.
3040         One more round of m4_foreach_w speedups.
3041         * lib/m4sugar/m4sugar.m4 (m4_flatten): Only use regex if newline
3042         is present.
3043         (_m4_split): Avoid useless expansions inside definition.  Move
3044         argument defaulting...
3045         (m4_split): ...here.  Change alternate quote to something less
3046         likely to appear in $1.  Also, special case space as regexp...
3047         (m4_foreach_w): ...to avoid regexp on single-term list.
3048         (m4_default, m4_defn, m4_popdef, m4_undefine, _m4_foreach): Avoid
3049         useless expansions inside definition.
3050         * tests/m4sugar.at (m4@&t@_split): Add tests.
3052 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
3054         * general.m4 (AT_INIT): Add at_check_newline function.
3055         (_AT_DECIDE_TRACEABLE): Include at_traceon test, use shell function.
3056         (_AT_CHECK): Don't use at_trace_this.
3058 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
3060         Fix previous commit.
3061         * lib/autotest/general.m4 (AT_LINE): Fix regex.
3063 2007-10-04  Eric Blake  <ebb9@byu.net>
3065         Speed up building testsuites.
3066         * lib/autotest/general.m4 (AT_LINE): Only use regex when file
3067         changed since last time.  Use simpler regex.
3069 2007-10-03  Eric Blake  <ebb9@byu.net>
3071         Optimize checking for identifiers.
3072         * lib/m4sugar/m4sh.m4 (AS_IDENTIFIER_IF, _AS_IDENTIFIER_IF): New
3073         macros, more efficient than regex on m4_re_word.
3074         * lib/autoconf/general.m4 (AC_SUBST, AC_DEFINE_TRACE_LITERAL):
3075         Rewrite in terms of new macro.  As a side-effect, AC_DEFINE can
3076         now use @&t@.
3077         * configure: Regenerate.
3079         Remove some XFAILs, and make AT_SETUP output line up.
3080         * lib/autotest/general.m4 (AT_SETUP): Only expand description
3081         once; thereafter, use its expansion, properly quoted.
3082         * tests/autotest.at (AT_CHECK_AT_TITLE): Also check macro
3083         expansion with arguments, and check for aligned output.
3084         (AT_CHECK_AT_TITLE_CHAR): Remove XFAILs for tests that now pass.
3085         Add a test for macros with parameters.
3086         * NEWS: Document the semantics change.
3087         * tests/base.at: Fix test titles containing commas.
3088         * tests/compile.at: Likewise.
3089         * tests/tools.at: Likewise.
3090         * tests/torture.at: Likewise.
3092         Another round of regex avoidance.
3093         * lib/m4sugar/m4sugar.m4 (m4_cr_alnum, m4_cr_all)
3094         (_m4_define_cr_not, m4_cr_not_letters, m4_cr_not_LETTERS)
3095         (m4_cr_not_Letters, m4_cr_not_digits, m4_cr_not_alnum)
3096         (m4_cr_not_symbols1, m4_cr_not_symbols2): New macros, implementing
3097         character ranges useful in m4_translit.
3098         (m4_toupper, m4_tolower): Optimize the constant portion of
3099         definition.
3100         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Also reject @S|@ because it
3101         creates $, and reject [] thanks to AS_TR_SH rewrite.
3102         (AS_TR_SH, AS_TR_CPP): Use just translit, not bpatsubst.
3103         (AS_ESCAPE): Factor...
3104         (_AS_ESCAPE): ...into new macro, with second argument required.
3105         Avoid regex in common case.
3106         (_AS_QUOTE): Use new macro.
3108         Whitespace cleanup.
3109         * lib/autoconf/types.m4: Avoid space-tab.
3110         * lib/m4sugar/m4sh.m4: Use tab consistently.
3112 2007-10-03  Paul Eggert  <eggert@cs.ucla.edu>
3114         * lib/m4sugar/m4sugar.m4 (m4_shift2, m4_shift3): New macros.
3115         (m4_shiftn): Remove no-longer-needed optimization.  Perhaps we
3116         should remove m4_shiftn entirely?
3117         (m4_case, b4_bmatch, m4_map_sep, m4_bpatsubsts, m4_join):
3118         Prefer m4_shift2 and m4_shift3 to m4_shiftn.
3119         * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
3120         * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Likewise.
3121         * tests/autotest.at (AT_CHECK_AT_TEST): Likewise.
3123 2007-10-03  Eric Blake  <ebb9@byu.net>
3125         Comment touchups.
3126         * lib/m4sugar/m4sugar.m4: Grammar fixes in comments.
3128 2007-10-02  Eric Blake  <ebb9@byu.net>
3130         Optimize appending text.
3131         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Use index, not regular
3132         expressions.
3134         Optimize recursion.
3135         * lib/m4sugar/m4sugar.m4 (m4_shiftn): This macro is called in a
3136         lot of hot spots; optimize it for 2 and 3 shifts.
3138         Optimize AC_PREREQ and other m4sugar numerics.
3139         * lib/m4sugar/m4sugar.m4 (m4_sign): Write with m4_eval.
3140         (m4_cmp): Compare arbitrary expressions, without overflow.
3141         (m4_version_unletter): Also recognize capital letters.
3142         (m4_version_compare): Avoid regex when splitting version number
3143         string.
3145 2007-10-01  Eric Blake  <ebb9@byu.net>
3147         Once again, reject IRIX m4.
3148         * m4/m4.m4 (AC_PROG_GNU_M4): Use indir builtin to root out non-GNU
3149         implementations that ignore --trace.
3150         * configure: Regenerate.
3151         Reported by Ralf Wildenhues.
3153         Fix regression in AC_DEFINE([macro(with_arg)]).
3154         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't chop off close
3155         quotes with a careless m4_substr.
3157 2007-09-30  Eric Blake  <ebb9@byu.net>
3159         Allow nameless iteration.
3160         * lib/m4sugar/m4sugar.m4 (m4_for, _m4_for): Access variable
3161         indirectly.
3162         * tests/m4sugar.at (myvar): Test this.
3164 2007-09-29  Eric Blake  <ebb9@byu.net>
3166         Speed optimization: avoid m4 regex when other algorithms work.
3167         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Rewrite without regex.
3168         (_AS_QUOTE_IFELSE): Likewise.
3169         * lib/m4sugar/m4sugar.m4 (m4_strip): Reduce from 3 to 2 regex.
3170         (m4_bpatsubsts): Split...
3171         (_m4_bpatsubsts): ...so that recursion can avoid patsubst on empty
3172         regex.
3173         (_m4_divert()): Define, to avoid m4 warning on `m4_divert'.
3174         (m4_qlen): Optimize on short strings, to avoid regex.
3175         (m4_sign): Avoid regex, and fix bug with `01' and `-0'.
3176         * lib/autoconf/general.m4 (AC_CACHE_VAL): Rewrite without regex.
3177         (AC_DEFINE_TRACE): Likewise.
3179 2007-09-28  Eric Blake  <ebb9@byu.net>
3181         Oops - my earlier 'optimization' caused a regression.
3182         * tests/local.at (AT_CHECK_M4): Fix typo.
3184 2007-09-27  Eric Blake  <ebb9@byu.net>
3185         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3187         Catch even more common AC_CACHE_VAL mistakes.
3188         * lib/autoconf/general.m4 (AC_CACHE_VAL): Warn if cache variable
3189         lacks '_cv_', or if AC_SUBST appears in body.
3190         * tests/base.at (AC_CACHE_CHECK): Test this change.
3192 2007-09-27  Stepan Kasal  <kasal@ucw.cz>
3193         and Eric Blake  <ebb9@byu.net>
3195         Autotest no longer caters to Ultrix redirection limitation.
3196         * doc/autoconf.texi (Writing testsuite.at): Remove the
3197         limitation that the first parameter of AT_CHECK cannot
3198         contain redirection.
3199         (File Descriptors): Mention that Ultrix limitation is no longer a
3200         show-stopper in modern code.
3201         * tests/local.at (AT_CHECK_M4): Fix for cases when the fourth
3202         parameter is `stderr' or `experr'.  Optimize if it was `ignore'.
3203         * lib/autotest/general.m4 (AT_CHECK): Update comment.
3205 2007-09-27  Eric Blake  <ebb9@byu.net>
3207         Squelch changeword in m4sugar.
3208         * lib/m4sugar/m4sugar.m4 (changeword): Disable this experimental
3209         feature of m4 1.4.x.
3211         Configure whitespace touchups.
3212         * lib/autoconf/general.m4 (_AC_INIT_HELP): Fix alignment of
3213         installation directories, and avoid TAB, in configure --help
3214         output.
3215         * configure.ac: Avoid extra trailing newline.
3216         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Avoid space-tab.
3217         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid TAB in
3218         config.status --help output.
3219         * configure: Regenerate.
3221         Fix underquotation in AS_HELP_STRING.
3222         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Don't underquote lhs
3223         argument.
3224         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't underquote
3225         first-prefix argument.
3226         * tests/m4sh.at (AS@&t@_HELP_STRING): Test this fix.
3227         * NEWS: Document AS_HELP_STRING fix.
3229         Autotest formatting touchups.
3230         * lib/autotest/general.m4 (HELP_TUNING): Avoid TAB in terminal
3231         output.
3232         (PATH): Simplify computation of new PATH.
3234 2007-09-26  Eric Blake  <ebb9@byu.net>
3236         Fix testsuite breakage in last patch.
3237         * tests/autotest.at (AT_CHECK_AT_TITLE): Properly quote the
3238         font-lock fix.
3239         * tests/torture.at (@%:@define header templates): Rename, so that
3240         output lines up correctly.
3242         More font-lock happiness.
3243         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Clean up font
3244         confusion.
3246 2007-09-25  Eric Blake  <ebb9@byu.net>
3248         Typo fixes.
3249         * lib/autoconf/general.m4 (AC_SUBST): Fix typo in comment.
3250         * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Likewise.
3252         Improve documentation of M4 parameter expansion.
3253         * doc/autoconf.texi (Quoting and Parameters): New section.
3254         (Quotation and Nested Macros): Improve wording.
3256         Improve C99 detection.
3257         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and
3258         avoid deprecation warning with icc.
3259         * THANKS: Update.
3260         Reported by Ted Bullock.
3262 2007-09-24  Jim Meyering  <jim@meyering.net>
3264         Whenever possible, use the vertical bar as sed delimiter.
3265         * lib/autoconf/functions.m4 (GETLOADAVG_LIBS) [AC_FUNC_GETLOADAVG]:
3266         Use "|", not "!".
3267         * lib/autoconf/status.m4 (_AC_SRCDIRS) [ac_top_builddir_sub]:
3268         [ac_dir_suffix]: Use "|", not "," as sed delimiter.
3269         * tests/mktests.sh (as_me): Likewise.
3270         * lib/freeze.mk (check-forbidden-patterns): Likewise.
3271         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
3272         * configure: Regenerate.
3273         * doc/autoconf.texi (Shell Substitutions): Use "|", not "," in examples.
3274         * lib/autotest/general.m4 (AT_INIT): Use "|", not "&" as sed delimiter
3275         in the : -> $PATH_SEPARATOR transformation of $AUTOTEST_PATH.
3276         This is fine, as long as $PATH_SEPARATOR doesn't contain "|".
3278 2007-09-22  Jim Meyering  <jim@meyering.net>
3280         Add a comment.
3281         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Document the
3282         2004-05-31 change also with a comment in the code.
3284 2007-09-20  Eric Blake  <ebb9@byu.net>
3286         More contribution housekeeping.
3287         * THANKS: Sort.
3288         * AUTHORS: Sort, reflect recent assignment from Helge Deller.
3290         Ignore additional files, when copying cross-repository.
3291         * .gitignore: Ignore CVS directories, emacs edits.
3292         * .cvsignore: Ignore .git directory, emacs edits.
3294 2007-09-15  Eric Blake  <ebb9@byu.net>
3296         Provide AC_VERSION, not m4_AUTOCONF_VERSION.
3297         * doc/autoconf.texi (Text processing Macros): Remove mention of
3298         m4_AUTOCONF_VERSION, and leave m4_PACKAGE_VERSION undocumented
3299         once again.
3300         (Notices): Move AC_PREREQ...
3301         (Versioning): ...to this new section, alongside the new AC_VERSION
3302         alias for the undocumented m4_PACKAGE_VERSION.
3303         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): Revert change.
3304         * lib/autoconf/general.m4 (AC_VERSION): New macro.
3305         * NEWS: Update to match this rename.
3306         * tests/m4sugar.at (m4@&t@_version_compare): Remove tests of
3307         m4_PACKAGE_VERSION.
3308         * tests/tools.at (autoconf: AC_VERSION): New test.
3309         Suggested by Paolo Bonzini and Benoit Sigoure.
3311 2007-09-14  Eric Blake  <ebb9@byu.net>
3313         Prepare for conversion to git.
3314         * doc/.cvsignore: Avoid multiple listings on one line.
3315         * bin/.cvsignore: Likewise.
3316         * .gitignore, bin/.gitignore, config/.gitignore, doc/.gitignore,
3317         lib/.gitignore, lib/Autom4te/.gitignore, lib/autoconf/.gitignore,
3318         lib/autoscan/.gitignore, lib/autotest/.gitignore,
3319         lib/emacs/.gitignore, lib/m4sugar/.gitignore, man/.gitignore,
3320         tests/.gitignore: New files, identical to .cvsignore counterpart.
3322 2007-09-13  Eric Blake  <ebb9@byu.net>
3324         Editing eye-candy.
3325         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Restore
3326         font-lock balance.
3327         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Likewise.
3328         * lib/autoconf/general.m4 (_AC_DO_ECHO): Likewise.
3329         * configure: Regenerate.
3331         Clean up 'make dist' of previous patch.
3332         * tests/Makefile.am (EXTRA_DIST): Distribute mktests.stamp.
3333         (CLEANFILES): Don't clean the stamp, since we distribute the
3334         generated files pre-built.
3335         (MAINTAINERCLEANFILES): Clean it here instead.
3336         * tests/Makefile.in: Regenerate.
3338         Avoid parallel 'make check' issue.
3339         * tests/Makefile.am (mktests.stamp): New witness.
3340         (TESTSUITE_GENERATED_AT): Use it.
3341         (CLEANFILES): Clean the witness.
3342         * tests/.cvsignore (mktests.stamp): Ignore the witness.
3344         Document another awk pitfall.
3345         * doc/autoconf.texi (Limitations of Usual Tools) <awk>: Document
3346         limitation of field variables in END.
3347         Reported by Gary V. Vaughan.
3349         * AUTHORS: Add missing entries.
3351 2007-09-12  Eric Blake  <ebb9@byu.net>
3353         Publish m4_ifndef, m4_version_compare, m4_AUTOCONF_VERSION.
3354         * doc/autoconf.texi (Text processing Macros): Document
3355         m4_version_compare, m4_AUTOCONF_VERSION, m4_PACKAGE_VERSION.
3356         (Redefined M4 Macros): Document m4_ifndef.
3357         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): New macro; we
3358         can't obsolete m4_PACKAGE_VERSION at this time since Autoconf 1.10
3359         used it while it was undocumented.
3360         * NEWS: Document this change.
3361         * lib/m4sugar/Makefile.am (version.m4): Update copyright dates.
3362         * lib/m4sugar/Makefile.in: Regenerate.
3363         * tests/m4sugar.at (m4@&t@_version_compare): New test.
3364         Reported by Bruno Haible.
3366         * doc/autoconf.texi (Generic Compiler Characteristics): Add
3367         missing index entries.
3369 2007-09-11  Eric Blake  <ebb9@byu.net>
3371         Centralize all system extensions checks.
3372         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
3373         from AC_AIX, AC_GNU_SOURCE, AC_MINIX.  Add Interix support.
3374         (AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
3375         AC_USE_SYSTEM_EXTENSIONS.
3376         (AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
3377         (AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
3378         * doc/autoconf.texi (Posix Variants): Reword this section,
3379         emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
3380         rather than a series of system-specific checks.
3381         (Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
3382         AC_MINIX.
3383         * NEWS: Document this change.
3384         * THANKS: Update.
3385         Reported by Martin Koeppe.
3387 2007-09-08  Eric Blake  <ebb9@byu.net>
3389         Clean up obsolete macros references.
3390         * doc/autoconf.texi: Add anchors to support better
3391         cross-referencing.
3392         (Particular Structures): Move obsolete macros descriptions...
3393         (External Software): Likewise.
3394         (Package Options): Likewise.
3395         (Obsolete Macros): ...to here.  Add cross-references to
3396         documentation on replacements.
3397         * NEWS: Mention that these macros have been obsolete for a while
3398         now: AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_RDEV AC_WITH AC_ENABLE.
3400         Improve M4 path searching during configure.
3401         * lib/autoconf/programs.m4 (AC_PATH_PROGS_FEATURE_CHECK): New
3402         macro.
3403         (_AC_PATH_PROG_FEATURE_CHECK): Rename...
3404         (_AC_PATH_PROGS_FEATURE_CHECK): ...to this, add defaulted action
3405         parameter, and kill side effects.
3406         (_AC_PROG_GREP, AC_PROG_SED): Adjust callers.
3407         (_AC_FEATURE_CHECK_LENGTH): Kill extra whitespace.
3408         * m4/m4.m4 (AC_PROG_GNU_M4): Don't stop searching until working m4
3409         is found.
3410         (AC_PATH_PROGS_FEATURE_CHECK): Add backwards compatibility hack to
3411         allow bootstrapping with autoconf 2.61.
3412         * configure.ac (M4): AC_PROG_GNU_M4 now exits on failure.
3413         * configure: Regenerate.
3414         * doc/autoconf.texi (Generic Programs): Document new macro.
3415         * tests/mktests.sh (au_exclude_script): Exclude auto-testing new
3416         macro.
3417         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): New test.
3418         * NEWS: Document the change.
3419         * THANKS: Update.
3420         Reported by Hans Aberg.
3422         * doc/autoconf.texi (Generic Programs): Fix typo.
3424 2007-09-06  Eric Blake  <ebb9@byu.net>
3426         * doc/autoconf.texi (Generic Programs): Use $PATH_SEPARATOR, not
3427         :, and make it clear that optional @var{path} defaults to $PATH.
3428         (Erlang Compiler and Interpreter): Likewise.
3430         Texinfo cleanup.
3431         * doc/autoconf.texi: Avoid lines > 80 columns when possible.
3432         Reword some paragraphs to avoid overfull, underfull hbox
3433         warnings.  Add index entries to avoid overfull vbox warnings.
3435 2007-09-05  Eric Blake  <ebb9@byu.net>
3437         * NEWS: Adjust wording for AC_CONFIG_LINKS.
3438         Reported by Ralf Wildenhues.
3440 2007-09-03  Eric Blake  <ebb9@byu.net>
3442         * NEWS: Document fixes that have been applied since 2.61a.
3444         Housekeeping.
3445         * THANKS: Update, and convert to UTF-8 encoding.
3446         * AUTHORS: Likewise.
3448 2007-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3450         * lib/autoconf/general.m4 (AC_SITE_LOAD): Guard against file
3451         names beginning with `-' again.
3453 2007-08-22  Stepan Kasal  <kasal@ucw.cz>
3454             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3456         * doc/autoconf.texi (Defining Directories): Mention
3457         AM_CPPFLAGS, as the way to modify CPPFLAGS when using Automake.
3459 2007-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3461         * lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
3462         here, this macro is expanded by AC_INIT.  Fixes 2.60 regression.
3463         * tests/base.at (configure arguments): New test.
3464         * THANKS: Update.
3465         Report by Olaf Lenz.
3467         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Expand macro
3468         arguments in comment.
3469         Report by Vincent Torri <vtorri at univ minus evry dot fr>.
3471 2007-08-20  Benoit Sigoure  <tsuna@lrde.epita.fr>
3473         * doc/autoconf.texi (File System Conventions): Index the proper
3474         way of detecting absolute file names.
3476 2007-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3478         * build-aux/config.guess, build-aux/config.sub,
3479         build-aux/elisp-comp, build-aux/install-sh, build-aux/mdate-sh,
3480         build-aux/missing, build-aux/texinfo.tex, doc/fdl.texi,
3481         doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
3482         * doc/autoconf.texi (GNU Free Documentation License): Adjust for
3483         sectioning change in fdl.texi.
3485         * bin/autoconf.as: Update --version output to match current GCS.
3486         * bin/autoheader.in: Likewise.
3487         * bin/autom4te.in: Likewise.
3488         * bin/autoreconf.in: Likewise.
3489         * bin/autoscan.in: Likewise.
3490         * bin/autoupdate.in: Likewise.
3491         * bin/ifnames.in: Likewise.
3493 2007-08-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3495         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not try to link a
3496         file to itself if source and build trees coincide.
3497         * tests/torture.at (AC_CONFIG_LINKS and identical files): New
3498         test.
3499         Report by Sebastian Freundt <hroptatyr@gna.org>.
3501 2007-07-20  Paul Eggert  <eggert@cs.ucla.edu>
3503         Reword the copyright notices to match what's suggested in GPLv3.
3504         In ChangeLog files, use more-permissive notice rather than GPL, as
3505         per usual GNU standards these days.
3507 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
3509         * doc/autoconf.texi (autoreconf Invocation): Document ACLOCAL_AMFLAGS
3510         limitation reported by Leo Moisio in
3511         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432941>.
3513 2007-07-03  Paul Eggert  <eggert@cs.ucla.edu>
3515         * COPYING: Update to GPLv3.  All uses changed.
3517 2007-06-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3518         and Paul Eggert  <eggert@cs.ucla.edu>
3520         * doc/autoconf.texi (Limitations of Usual Tools): sed -e ''
3521         fails on AIX 5.3.
3523 2007-06-17  Noah Misch  <noah@cs.caltech.edu>
3525         * lib/autotest/general.m4 (AT_INIT): Handle absolute `srcdir'.
3526         * tests/autotest.at (srcdir propagation): Test absolute `srcdir' and
3527         `srcdir' as subdirectory of `builddir'.
3529 2007-06-13  Noah Misch  <noah@cs.caltech.edu>
3531         * lib/autotest/general.m4 (AT_INIT): Compute $srcdir correctly.
3532         * tests/autotest.at (srcdir propagation): New test.
3533         * THANKS: Update.
3534         Reported by Mike Frysinger.
3536 2007-06-13  Paul Eggert  <eggert@cs.ucla.edu>
3538         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Set FPATH too.
3539         Problem reported by Fred Kreek in
3540         <http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00009.html>.
3541         * doc/autoconf.texi (Special Shell Variables): Warn about FPATH.
3542         (Macro Names, Defining Directories): Don't mention PATH as a name
3543         for a fully qualified file name, as this usage violates the GNU
3544         coding standards and we shouldn't recommend it.
3546         * lib/autotest/general.m4 (AT_INIT): Don't set PATH to the empty
3547         string and then assume shell builtins like "test" will work.
3549 2007-06-12  Noah Misch  <noah@cs.caltech.edu>
3551         * lib/autoconf/general.m4 (AC_SUBST): Raise a fatal error if VARIABLE is
3552         not a valid shell variable name.
3553         * tests/mktests.sh (ac_exclude_list): Add AC_ARG_VAR.
3554         * tests/torture.at (AC_SUBST: variable name validation): New test.
3555         Reported by Andreas Schwab.
3557 2007-06-04  Noah Misch  <noah@cs.caltech.edu>
3559         * doc/autoconf.texi (AC_F77_MAIN): Give a specific usage example that
3560         works with both C and C++.
3562 2007-06-03  Noah Misch  <noah@cs.caltech.edu>,
3563             Bruno Haible  <bruno@clisp.org>
3565         * lib/autoconf/c.m4 (AC_OPENMP): Use a simple loop instead of compiler
3566         brand tests.
3568 2007-05-31  Paul Eggert  <eggert@cs.ucla.edu>
3570         * doc/autoconf.texi (Particular Types): Give example of use for
3571         AC_TYPE_INT8_T etc.
3573 2007-05-29  Stepan Kasal  <kasal@ucw.cz>
3575         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Fix a typo.
3577 2007-05-28  Paul Eggert  <eggert@cs.ucla.edu>
3579         * doc/autoconf.texi (Particular Types): AC_TYPE_INT8_T does not
3580         define HAVE_INT8_T, and likewise for similar macros.
3581         Problem reported by Patrick Welche in
3582         <http://lists.gnu.org/archive/html/autoconf/2007-05/msg00062.html>.
3584 2007-05-25  Noah Misch  <noah@cs.caltech.edu>
3586         * bin/Makefile.am ($(top_builddir)/bin/autom4te): New dependency.
3588 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
3590         * lib/autoconf/c.m4 (AC_OPENMP): Don't echo --enable-openmp
3591         choice, since that's what we do with --enable-largefile etc.
3592         Redo indenting and assignments to simplify things a bit, and make
3593         the parens work with Emacs.
3595         * doc/autoconf.texi (Generic Compiler Characteristics): Fix typo
3596         in my previous change: AC_C_OPENMP -> AC_OPENMP.  Reported by Bruno
3597         Haible.
3599 2007-05-21  Noah Misch  <noah@cs.caltech.edu>
3601         * lib/autoconf/c.m4 (AC_OPENMP): Simplify use of AC_ARG_ENABLE.
3602         * tests/local.at (AT_CHECK_ENV): Exempt OPENMP_CFLAGS.
3604 2007-05-21  Bruno Haible  <bruno@clisp.org>
3606         * NEWS: Rename AC_C_OPENMP to AC_OPENMP.
3607         * lib/autoconf/c.m4 (AC_OPENMP): Renamed from AC_C_OPENMP.
3608         * doc/autoconf.texi (Generic Compiler Characteristics): Move
3609         renamed AC_OPENMP documentation here, from "C compiler".
3610         Mention C++ and Fortran.
3612 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
3614         * doc/autoconf.texi (C Compiler): Tweak OpenMP documentation a bit.
3616 2007-05-21  Bruno Haible  <bruno@clisp.org>
3618         * NEWS: Mention AC_C_OPENMP.
3619         * lib/autoconf/c.m4 (AC_C_OPENMP): New macro.
3620         * doc/autoconf.texi (C Compiler): Document AC_C_OPENMP.
3621         Based in part on Steven G. Johnson's investigations for the AX_OPENMP
3622         macro in the Autoconf macro archive.
3624 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3626         * bin/autom4te.in: Fix typos.
3628 2007-05-16  Noah Misch  <noah@cs.caltech.edu>
3630         * bin/autoconf.as: Handle `-' just like other input files.
3631         * bin/autom4te.in (parse_args): Pass `-' through.
3632         (handle_output): Skip the forbidden token search if we read from stdin.
3633         (up_to_date): Always treat stdin as out of date.
3634         * tests/tools.at (autoconf: input from stdin): New test.
3635         (autoconf: forbidden tokens, basic): Check a second `autoconf' run.
3637 2007-05-16  Stepan Kasal  <kasal@ucw.cz>
3639         * tests/foreign.at tests/semantics.at, tests/tools.at: Remove
3640         parameters for AT_CLEANUP.
3641         * tests/local.at (AT_CHECK_AU_MACRO): Likewise.
3643 2007-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3645         * NEWS: Document that AC_C_RESTRICT checks 'restrict' last.
3646         * doc/autoconf.texi (C Compiler): Likewise.
3648 2007-05-14  Noah Misch  <noah@cs.caltech.edu>
3650         * lib/autoconf/c.m4 (AC_C_RESTRICT): Check `restrict' last.
3652 2007-05-09  Stepan Kasal  <kasal@ucw.cz>
3654         * doc/autoconf.texi: Direntry for "autoconf Invocation"
3655         renamed to "autoconf-invocation"
3657         * doc/autoconf.texi (Caching Results): The CACHE-ID variable
3658         in the examples should not use the internal "ac_" prefix.
3660 2007-05-05  Noah Misch  <noah@cs.caltech.edu>
3662         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): Use `eval'.
3663         * doc/autoconf.texi ($@, case): Document Zsh limitations.
3665 2007-05-03  Stepan Kasal  <kasal@ucw.cz>
3667         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
3668         Reorganize the comments before and in the macro.
3670 2007-05-02  Stepan Kasal  <kasal@ucw.cz>
3672         * lib/autoconf/lang.m4, lib/autoconf/c.m4,
3673         lib/autoconf/fortran.m4, lib/autoconf/erlang.m4: Cleanup of
3674         section titles and other comments; no code change.
3676 2007-05-01  Kevin Ryde  <user42@zip.com.au>
3678         * doc/autoconf.texi (Particular Programs): Typo
3679         @acindex{AC_PROG_MKDIR_P} shouldn't have "AC" in that call.
3681 2007-04-30  Paul Eggert  <eggert@cs.ucla.edu>
3683         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Don't imply that
3684         'configure' will fail if the shell lacks proper support for shell
3685         functions.  Suggested by RMS.
3687 2007-04-29  Paul Eggert  <eggert@cs.ucla.edu>
3689         * doc/autoconf.texi (Limitations of Builtins): Correct the warning
3690         about Solaris /bin/printf '%010000x' 123.  Problem reported by
3691         Bruno Haible.
3693 2007-04-28  Paul Eggert  <eggert@cs.ucla.edu>
3695         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look
3696         for a.* when searching for executables, as this prevents users
3697         from having files like a.c.  Problem reported by Ralf Wildenhues in:
3698         http://lists.gnu.org/archive/html/autoconf-patches/2007-04/msg00029.html
3699         This fixes a problem introduced on 2000-12-19.
3701 2007-04-26  Paul Eggert  <eggert@cs.ucla.edu>
3703         * doc/autoconf.texi (Limitations of Builtins): Warn about Solaris
3704         /bin/printf '%010000x' 123.  Problem reported by Arto C. Nirkko
3705         via Bruno Haible.
3707 2007-04-12  Paul Eggert  <eggert@cs.ucla.edu>
3709         * NEWS: Document recent changes to AC_CHECK_ALIGNOF, AC_CHECK_SIZEOF,
3710         AC_CHECK_TYPE, AC_CHECK_TYPES.
3711         * doc/autoconf.texi (Generic types): C types must be type-names
3712         (the C terminology), not type-ids (the C++ term).  C++ types
3713         must not be anonymous.
3714         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Remove special case
3715         for C++; this drops support for anonymous struct and union types,
3716         which were problematic anyway.
3717         * tests/semantics.at (AC_CHECK_HEADERS_NEW): Adjust test to work even
3718         for C++.
3720 2007-04-12  Jim Meyering  <jim@meyering.net>
3722         * doc/autoconf.texi (Libraries): Typo fix: insert missing "in".
3724 2007-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3726         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Fix AC_CONFIG_LINKS
3727         to prefer a link source from the build tree, if it exists.
3728         Report by Pallav Gupta <pallavgupta@gmail.com>.
3730 2007-04-11  Paul Eggert  <eggert@cs.ucla.edu>
3732         * doc/autoconf.texi (Generic Types): Document the restrictions
3733         on types imposed by AC_CHECK_TYPE, AC_CHECK_TYPES.
3734         (Generic Compiler Characteristics): AC_CHECK_SIZEOF now works
3735         with objects too.  Document the restrictions on its use.
3736         Document the restrictions on AC_CHECK_ALIGNOF's type argument.
3737         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW):
3738         For C, just try sizeof (TYPE) and sizeof ((TYPE)); if the former
3739         works but the latter doesn't, then it's a valid type.
3740         This lets people use function types and so forth.
3741         For C++ there doesn't seem to be a simple solution, so leave it alone.
3742         (AC_CHECK_SIZEOF): Allow argument to be a variable.
3743         (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Don't bother to invoke
3744         AC_CHECK_TYPE; that wasn't documented or necessary.
3746 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
3748         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Skip AS_TEST_X
3749         when cross-compiling.
3751 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
3753         * doc/autoconf.texi (External Software): Fix a typo in the
3754         previous change.
3756 2007-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3758         * doc/autoconf.texi (External Software, Package Options):
3759         Fix ambiguous wording.  Report by Reuben Thomas <rrt@sc3d.org>.
3761 2007-04-06  Paul Eggert  <eggert@cs.ucla.edu>
3763         * doc/autoconf.texi (Particular Types): AC_C_LONG_DOUBLE is now
3764         obsolescent.  Suggested by Bruno Haible.
3765         * NEWS: Document this.
3767 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
3769         * doc/autoconf.texi (Here-Documents, Limitations of Builtins):
3770         (Limitations of Usual Tools): Don't say "older" if Solaris 10 by
3771         default still has the problem.  Problem reported by Bruce Korb.
3773 2007-03-28  Stepan Kasal  <kasal@ucw.cz>
3774         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3776         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix a
3777         comment in the generated config.status.
3779 2007-03-27  Stepan Kasal  <kasal@ucw.cz>
3781         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Update comment.
3783 2007-03-26  Paul Eggert  <eggert@cs.ucla.edu>
3785         * doc/autoconf.texi (Shellology): Rework treatment of the 'test'
3786         command and case statements to make it a bit clearer and describe
3787         more pitfalls.
3789 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
3791         * doc/autoconf.texi (C Compiler): Mention that AC_PROG_CC_C99 also
3792         checks for unsigned long long int.
3794 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3796         * doc/autoconf.texi (Limitations of Usual Tools): Warn about other
3797         nonstandard grep R.E. escape sequences.
3799 2007-03-17  Jim Meyering  <jim@meyering.net>
3801         * doc/autoconf.texi: Adjust grammar around use of "heuristics".
3802         (Limitations of Usual Tools): Also list \< and \>, and mention that
3803         HP-UX's grep, like the one from Solaris, does not support that syntax.
3805 2007-03-09  Stepan Kasal  <kasal@ucw.cz>
3807         * doc/autoconf.texi (Specifying Names): `--host' does not
3808         change the build type.
3810 2007-03-05  Paul Eggert  <eggert@cs.ucla.edu>
3812         * doc/autoconf.texi (C Compiler): Warn that AC_C_BIGENDIAN
3813         suggests AC_CONFIG_HEADERS.
3814         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Warn if not using
3815         AC_CONFIG_HEADERS.  Problem reported by
3816         Peter O'Gorman.
3818 2007-02-28  Paul Eggert  <eggert@cs.ucla.edu>
3820         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Fix typo "__LITLE_ENDIAN__".
3821         Problem reported by Paolo Bonzini in:
3822         http://lists.gnu.org/archive/html/autoconf-patches/2007-02/msg00024.html
3823         * tests/semantics.at (AC_C_BIGENDIAN): Don't reject hosts that have
3824         universal binaries.  Problem reported by Elias Pipping.
3826 2007-02-27  Paul Eggert  <eggert@cs.ucla.edu>
3828         * NEWS: AC_C_BIGENDIAN now supports universal binaries a la Mac OS X.
3829         * doc/autoconf.texi (C Compiler): Document this.  There is a new
3830         extra argument ACTION-IF-UNIVERSAL.
3831         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Implement this.
3832         Add support for Solaris-style _LITTLE_ENDIAN and _BIG_ENDIAN.
3833         Reindent for sanity's sake.
3835 2007-02-24  Eric Blake  <ebb9@byu.net>
3837         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
3838         copyright.
3839         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
3840         * lib/autotest/general.m4 (AT_INIT): Likewise.
3841         (_AT_DECIDE_TRACEABLE): Fix syntax highlighting.
3843 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3845         * lib/autotest/general.m4 (AT_INIT): With --clean, return exit
3846         status of rm so we know when it failed.
3847         If cleaning of test dir failed before running the test, warn.
3848         Output the line separator in verbose mode before the warning
3849         to make clear the warning belongs to the following test.
3851 2007-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3853         * doc/autoconf.texi (Parentheses): Mention problem with (( in
3854         shells.
3856 2007-02-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3857         and Paul Eggert  <eggert@cs.ucla.edu>
3859         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix quoting
3860         errors introduced in last change.
3862 2007-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3864         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer \r to
3865         an actual carriage return.  Use "ac_cr" to contain the actual
3866         carriage return.
3867         * doc/autoconf.texi (Limitations of Usual Tools): Document problem
3868         with traditional Awk and begin.
3869         * tests/torture.at (Limitations of Builtins): Document the problem
3870         with Bash 2.03 printf.
3871         (Substitute and define special characters):
3872         Remove trailing white space.  Work around a bug in Solaris 8 /bin/bash.
3874 2007-02-06  Ralf Menzel  <menzel@ls6.cs.uni-dortmund.de>  (tiny change)
3876         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Redirect
3877         input from /dev/null in awk test, so even Solaris /usr/bin/awk
3878         will not wait for input with a script containing only a BEGIN
3879         rule.
3881 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
3883         * doc/autoconf.texi (Introduction, Why GNU M4): Clarify M4 version
3884         requirements.
3885         * README: Likewise.
3887 2007-02-02  Eric Blake  <ebb9@byu.net>
3889         * NEWS: Update copyright.
3891         * m4/m4.m4 (AC_PROG_GNU_M4): Reject M4 1.4 through 1.4.4 as
3892         broken.
3893         * configure.ac: Update error message.
3894         * NEWS: Note that M4 1.4.5 or later is now a hard dependency.
3895         Reported by Gary Vaughan and Jim Meyering, and problem analyzed
3896         by Stepan Kasal:
3897         http://lists.gnu.org/archive/html/bug-autoconf/2006-11/msg00025.html
3899 2007-01-31  Eric Blake  <ebb9@byu.net>
3901         * THANKS (people): Update.
3903 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3905         * doc/autoconf.texi (Shellology): pdksh 5.2.14 is still the
3906         latest version.
3907         (Shell Substitutions): Note problems with @{var:=value} etc.
3908         Add a new section for problems with @{#var} etc.  Problem noted
3909         by Ralf Wildenhues.  See:
3910         http://lists.gnu.org/archive/html/libtool-patches/2005-01/msg00157.html
3912 2007-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3914         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Also
3915         AC_SUBST([MKDIR_P]), so that Automake < 1.10 will pick up its
3916         trace, if a package uses AC_PROG_MKDIR_P explicitly.  The actual
3917         substitution will still be done by the special code.
3918         Report by Jim Meyering.
3920         * doc/autoconf.texi (File System Conventions): Mention that
3921         $PATH_SEPARATOR is for the build system only.
3922         Report by Keith Marshall.
3924 2007-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3926         * doc/autoconf.texi (Setting Output Variables): Mention that
3927         all non-NUL characters are ok in substituted values.
3928         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Fix comment typo.
3929         (_AC_OUTPUT_FILES_PREPARE): Test and use backslash escaping of
3930         carriage return for $AWK, needed for BSD awk.
3931         * tests/torture.at (Substitute and define special characters):
3932         Test all 8 bit non-NUL characters.
3933         Report against Automake by Patrick Welche.
3935 2007-01-15  Stepan Kasal  <kasal@ucw.cz>
3937         * doc/autoconf.texi: Direntry for "autoconf Invocation" renamed.
3939 2007-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3941         * lib/autoconf/programs.m4 (AC_PROG_SED): When closing a pipe
3942         early on the reader side, drop stderr of the input to avoid
3943         `broken pipe' error output; this may happen even with shell
3944         builtin `echo' of some bash versions.  Reports by Ian Macdonald
3945         <iamacdo@telkomsa.net> and Sam Sexton <Sam.Sexton@reuters.com>.
3947 2007-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3949         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Use newlines to
3950         separate items of `ac_user_opts', to avoid long lines.
3951         (_AC_INIT_PARSE_ENABLE2, _AC_ENABLE_IF_ACTION): Adjust.
3953 2007-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3955         * doc/autoconf.texi: Fix some typos.
3957 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
3959         Fix some wording problems noted by Paolo Bonzini in:
3960         http://lists.gnu.org/archive/html/autoconf-patches/2007-01/msg00077.html
3961         * doc/autoconf.texi (Signed Overflow Examples): Give more
3962         discussion about the allow_superuser_privileges example,
3963         and change it a bit to make things clearer.
3964         (Optimization and Wraparound): Clarify whether the compiler
3965         will generate an infinite loop for the example derived from
3966         Autoconf's mktime test.
3967         (Signed Overflow Advice): Say that -ftrapv is meant for debugging.
3968         Also, clarify unsigned multiplication overflow.
3970 2007-01-04  Eric Blake  <ebb9@byu.net>
3972         * bin/Makefile.am (RELEASE_YEAR): New macro.
3973         (edit): Use it to supply correct copyright year to scripts.
3974         * bin/autoconf.as (version): Use it.
3975         * bin/autoheader.in ($version): Likewise.
3976         * bin/autom4te.in ($version): Likewise.
3977         * bin/autoreconf.in ($version): Likewise.
3978         * bin/autoscan.in ($version): Likewise.
3979         * bin/autoupdate.in ($version): Likewise.
3980         * bin/ifnames.in ($version): Likewise.
3982 2007-01-02  Paul Eggert  <eggert@cs.ucla.edu>
3984         * doc/autoconf.texi (Integer Overflow): Revised based on today's
3985         feedback.  The most important changes document what happens when
3986         you convert an out-of-range value to a signed integer type, and
3987         say that (sum < a) != (b < 0) reliably detects overflow when sum =
3988         a + b.
3990         * doc/autoconf.texi (Integer Overflow): Greatly expand and
3991         rewrite, taking notions from the recent discussion on the gcc and
3992         autoconf mailing lists; please see
3993         http://lists.gnu.org/archive/html/autoconf-patches/2006-12/msg00091.html
3994         and follow the many links.
3995         (Integer Overflow Basics, Signed Overflow Examples):
3996         (Optimization and Wraparound, Signed Overflow Advice):
3997         (Signed Integer Division): New sections.
3999 2006-12-28  Steven G. Johnson  <stevenj@alum.mit.edu>
4001         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't include
4002         preprocessor macro arguments in traced name.
4003         * doc/autoconf.texi (Defining symbols): Document longstanding
4004         support for AC_DEFINE-ing macros with arguments, and document
4005         behavior when the same variable has multiple AC_DEFINEs.
4006         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Revert to the
4007         old implementation which AC_DEFINEs the FC_FUNC and FC_FUNC_
4008         macros directly, giving much shorter and simpler code.
4010 2006-12-28  Malcolm Purvis <malcolmp@xemacs.org>  (trivial change)
4012         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Insert a
4013         space before "$ac_configure_args" to prevent a 'config.status
4014         --recheck' failure if ac_configure_args doesn't contain a leading
4015         space.  This works around a problem with the XEmacs configure.ac,
4016         which uses the (undocumented) ac_configure_args variable
4017         inconsistently with Autoconf.
4019 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
4021         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):
4022         Include <limits.h>, and use its INT_MAX to rewrite the
4023         j loop so that it does not overflow 'int'.  Problem reported by
4024         Ralf Wildenhues in
4025         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
4026         Play it safe by shifting left by 1 rather than multiplying by 2,
4027         as GCC is less likely to optimize this away when the value
4028         is signed (when it assumes overflow leads to undefined behavior).
4029         Also, don't assume time_t uses two's complement.
4031 2006-12-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4033         * tests/torture.at (Substitute a 2000-byte string): Avoid using
4034         a 10kB long (multi-line) string literal, OpenServer 5.0.7 ksh
4035         dumps core on it.  Report by Tim Rice.
4037 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
4039         * lib/autoconf/general.m4 (AC_ARG_ENABLE): Print help about
4040         --disable-option-checking to --help output even when
4041         AC_PRESERVE_HELP_ORDER is not used.
4042         (_AC_INIT_PARSE_ENABLE2): Print warnings using actual --enable or
4043         --with argument, rather than argument with [-.] replaced by
4044         underscores.
4045         * NEWS: Fix typo in previous change; the news was in the
4046         wrong section.
4048 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4050         * NEWS: Warnings are now generated by default for unknown
4051         --enable-* and --with-* options.
4052         * doc/autoconf.texi (Option Checking): Renamed from
4053         (Configure Option Checking).  Tighten up the wording a bit.
4054         (External Software, Package Options): Cross-reference to Option
4055         Checking, and use this to shorten our section.
4056         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Prefer test -n
4057         "$x" to test "x$foo" != x.
4058         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
4059         Don't warn if $enable_option_checking is "no".
4060         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Initialize
4061         ac_unrecognized_opts to the empty string.
4062         Don't echo the unrecognized opts, as this might mishandle
4063         backslashes or leading -.
4064         (AC_PRESERVE_HELP_ORDER): Put the --disable-option-checking
4065         usage next to the other --disable-FEATURE options in the
4066         help string.
4068 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
4070         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, _AC_INIT_PARSE_ARGS):
4071         (_AC_INIT_PARSE_ENABLE2, _AC_INIT_HELP, _AC_ENABLE_IF):
4072         Print warning for unrecognized --with and --enable options
4073         (AC_DISABLE_OPTION_CHECKING): New macro to disable warnings.
4074         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS):
4075         Disable option checking when subdirs are configured.
4076         (AC_OUTPUT): If warnings are enabled, print warning about
4077         unrecognized --with and --enable options at the end of
4078         the configure output (as well as at the beginning).
4079         * doc/autoconf.texi (Option Checking): New node.
4080         Document new option warning functionality.
4082 2006-12-16  Eric Blake  <ebb9@byu.net>
4084         * configure.ac (AC_INIT): Bump version, since 2.61a is released.
4085         * NEWS: Start news for current version.
4087 2006-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4089         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
4090         Define HAVE_GETMNTENT to 1, not to the empty string.
4091         Problem originally reported by Jochen Friedrich in
4092         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403243>.
4094         This change prompted by a problem report by Andrey Simonenko in
4095         <http://lists.gnu.org/archive/html/bug-autoconf/2006-12/msg00026.html>.
4096         * doc/autoconf.texi (Defining Symbols): AC_DEFINE works for
4097         object-like macros only, in the traditional portable character
4098         set.
4099         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL):
4100         Warn about attempts to define things that are not identifiers.
4101         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Rewrite to avoid
4102         awful hack that AC_DEFINEd macro names containing parentheses.
4104 2006-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4106         * doc/autoconf.texi: Undo some of the 2006-12-10 change.  It was
4107         too drastic, even if Texinfo in theory requires it for info mode.
4109         (config.status Invocation): Renamed back from Recreating a
4110         Configuration).
4111         (Obsolete config.status Use): Renamed back from Obsolete Recreation.
4112         (Autoconf 2.13): Renamed back from 20th-century Autoconf 2.
4114 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
4116         * NEWS: Version 2.61a.
4118 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
4119         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4121         * NEWS: Document changes with echo and printf, and the lack
4122         of limits on the total size of multi-line values of substituted
4123         variables, and the AC_FUNC_FSEEKO fix.
4125 2006-12-10  Paul Eggert  <eggert@cs.ucla.edu>
4127         * doc/autoconf.texi (Writing Autoconf Input): Renamed from
4128         Writing configure.ac.
4129         (Autoconf Input Layout): Renamed from configure.ac Layout.
4130         (Recreating a Configuration): Renamed from config.status Invocation.
4131         (Obsolete Recreation): Renamed from Obsolete config.status Use.
4132         (acconfig Header): Renamed from acconfig.h.
4133         (20th-century Autoconf 2): Renamed from Autoconf 2.13.
4134         (Writing Testsuites): Renamed from Writing testsuite.at.
4135         (Autom4te Cache): Renamed from autom4te.cache.
4137         * BUGS: Remove mention of VPATH problem, since it's now documented
4138         not to be a bug in the Autoconf build procedure itself, but rather
4139         a problem with the proprietary `make' programs.
4141         * doc/autoconf.texi (Build Directories): Add a cross reference
4142         to VPATH and Make.
4144         * build-aux/config.guess, build-aux/config.sub, build-aux/texinfo.tex:
4145         * doc/standards.texi: Sync from gnulib.
4147         * man/autoconf.1, man/autoheader.1, man/autom4te.1, man/autoreconf.1:
4148         * man/autoscan.1, man/autoupdate.1, man/config.guess.1:
4149         * man/config.sub.1, man/ifnames.1: Remove from CVS, since they're
4150         generated automatically.
4152 2006-12-06  Paul Eggert  <eggert@cs.ucla.edu>
4154         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Also try -xc99=all, for Sun
4155         C 5.8 on Solaris 10.  Using -xc99=all rather than -xc99 bypasses
4156         the buggy -xc99 option of Forte Developer 7 C on Solaris 9.
4158 2006-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4160         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the
4161         `CEOF$ac_eof' special marker, the awk script cannot contain a
4162         line matching `^CEOF', so this is not needed any more.
4163         * tests/torture.at (Substitute a newline): Expose the `%!_!# '
4164         special marker in the test.
4166 2006-12-06  Stepan Kasal  <kasal@ucw.cz>
4168         * tests/tools.at (autom4te preselections): Use `find -newer';
4169         remove one of the sleeps.
4171         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Make it
4172         more readable, using ...
4173         (_AC_INIT_PARSE_ENABLE2): ... this new helper macro.
4175         * doc/autoconf.texi (autoheader Invocation): Do not double-
4176         quote the parameter of `AH_BOTTOM' in the example.
4178 2006-12-05  Stepan Kasal  <kasal@ucw.cz>
4180         * doc/autoconf.texi (Configuration Headers): Remove the
4181         example with multiple input files.
4182         (autoheader Invocation): Encourage `AH_BOTTOM', discouraging
4183         multiple input files.
4185 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4187         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When
4188         creating the awk substitution script, handle one input line at a
4189         time, so that the maximum length of a substituted (multi-line)
4190         value is not limited by the size of the sed pattern space.
4191         The trade-off is a slightly repetitive sed script.
4192         * doc/autoconf.texi (Limitations of Usual Tools): Branch labels
4193         can only have up to 7 characters, due to Solaris 10 /bin/sed.
4194         * tests/torture.at (Substitute a 2000-byte string): Increase the
4195         test with several long lines, they should not be caught by sed
4196         limits any more.
4198         * tests/tools.at (autom4te preselections): New test, to flag
4199         entries missing from autom4te.cfg.
4200         Report by David Byron <dbyron@hheld.com>.
4202         * tests/torture.at (Substitute a 2000-byte string): Actually use
4203         AC_PROG_AWK, so the last change works as intended.
4204         (Substitute and define special characters): Likewise.
4205         (Substitute a newline): Likewise.
4207         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use `$AWK'
4208         instead of `awk' consistently.
4209         (_AC_OUTPUT_CONFIG_STATUS): Initialize $AWK.
4210         * tests/torture.at (Torturing config.status): Test both the
4211         result of AC_PROG_AWK and plain awk.
4212         (Substitute a 2000-byte string): Likewise.
4213         (Substitute and define special characters): Likewise.
4214         (Substitute a newline): Likewise.
4216 2006-12-04  Paul Eggert  <eggert@cs.ucla.edu>
4218         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko
4219         can be assigned to a function pointer.  Problem reported by
4220         Peter Palfrader in <http://bugs.debian.org/401377>.  Based on
4221         part of a patch by Ralf Wildenhues in that same bug report.
4223 2006-12-01  Paul Eggert  <eggert@cs.ucla.edu>
4225         * tests/mktests.sh (ac_exclude_list): Exclude AC_FUNC_SETVBUF_REVERSED.
4226         * tests/semantics.at (AC_FUNC_SETVBUF_REVERSED): New test.
4228 2006-12-01  Eric Blake  <ebb9@byu.net>
4230         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in
4231         cross-compiling from cygwin to mingw.
4232         Reported by Bob Rossi.  This resurrects the 2000-11-30 patch to
4233         aclang.m4, which was mistakenly removed in the 2001-09-17 patch
4234         to lib/autoconf/c.m4.
4236 2006-12-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4238         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Use a longer test
4239         string for more reliable failure.  Wrap the entire test that
4240         causes the broken Solaris printf to dump core, in a subshell,
4241         so the segmentation fault message is reliably suppressed.
4242         Fix shell expansion errors by using /usr/ucb/echo always;
4243         avoid an error on systems without it by another subshell.
4244         Avoid m4 expansion of `$1'.  Set the zeroth argument of the
4245         subshell-$as_echo to `as_echo', for better error message.
4247 2006-11-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4249         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): If `BASH_ARGV' or
4250         `BASH_SOURCE' contain a newline, set them to empty, as they may
4251         not be unset.
4253 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
4255         Turn AC_FUNC_SETVBUF_REVERSED into a noop.  It's been obsolete for
4256         years and is too hard to maintain now.  The last straw was
4257         reported by Jerker Baeck in
4258         <http://lists.gnu.org/archive/html/autoconf/2006-11/msg00102.html>.
4259         * NEWS: AC_FUNC_SETVBUF_REVERSED is now obsolete.
4260         * doc/autoconf.texi (Particular Functions): Move
4261         AC_FUNC_SETVBUF_REVERSED from here...
4262         (Obsolete Macros): ... to here.  Say that it does nothing now.
4263         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
4264         Turn into (almost) a no-op.
4266         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL, AC_C_CONST):
4267         (AC_C_VOLATILE):
4268         Do not recommend via AN_FUNCTION, AN_IDENTIFIER, or AN_HEADER.
4269         These macros are obsolescent and new applications shouldn't need them.
4270         * lib/autoconf/functions.m4 (AC_FUNC_CLOSEDIR_VOID, AC_REPLACE_FNMATCH):
4271         (AC_FUNC_GETLOADAVG, AC_FUNC_GETPGRP, AC_FUNC_MEMCMP):
4272         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP, AC_FUNC_STAT, AC_FUNC_LSTAT):
4273         (AC_FUNC_STRFTIME, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
4274         (AC_FUNC_VPRINTF): Likewise.
4275         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT, AC_HEADER_STAT):
4276         (AC_HEADER_STDC, AC_HEADER_SYS_WAIT, AC_HEADER_TIME): Likewise.
4277         * lib/autoconf/types.m4 (AC_STRUCT_TM): Likewise.
4279         * doc/autoconf.texi (Setting Output Variables): Mention that
4280         @VAR1@VAR2 has unspecified behavior.  Problem reported by
4281         Ralf Wildenhues.
4282         * NEWS: Mention this.
4284         * Makefile.am: Put only a single '#' into the copyright notice,
4285         so that it's also present in the output file.  Standardize wording
4286         in makefile copyright notices to match GNU coding standards.
4287         * bin/Makefile.am: Likewise.
4288         * doc/Makefile.am: Likewise.
4289         * lib/Makefile.am: Likewise.
4290         * lib/freeze.mk: Likewise.
4291         * lib/autoconf/Makefile.am: Likewise.
4292         * lib/autoscan/Makefile.am: Likewise.
4293         * lib/autotest/Makefile.am: Likewise.
4294         * lib/m4sugar/Makefile.am: Likewise.
4295         * man/Makefile.am: Likewise.
4296         * tests/Makefile.am: Likewise.
4297         * lib/emacs/Makefile.am: Remove copyright notice; it's just a
4298         one-line file.
4300 2006-11-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4302         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix error
4303         in the sed script that mangles the awk script: delete up to the
4304         first exclamation mark only.
4305         * tests/torture.at (Substitute and define special characters):
4306         Test '!' too.
4308 2006-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4310         Rewrite config files generation: avoid quadratic growth in
4311         the number of substituted variables by using awk instead of sed
4312         for the bulk of the substitutions.
4313         * NEWS: Mention this.
4314         * doc/autoconf.texi (Setting Output Variables): `|#_!!_#|' is also
4315         forbidden in the output (and thus input) file.
4316         * lib/autoconf/status.m4 (_AC_AWK_LITERAL_LIMIT): New macro.
4317         (_AC_OUTPUT_FILES_PREPARE): Instead of several sed scripts,
4318         generate just one large awk script for substitutions,
4319         eliminating much of the earlier complexity, while adding some
4320         new complexity.  Only expand the substitution templates at
4321         configure time, for smaller configure script size.  If
4322         _AC_SUBST_FILES are used, test 'awk' for working getline support
4323         at config.status time.  If absent, interpolate through the
4324         shell.  The awk script was written with much help
4325         from Paolo Bonzini and Paul Eggert.
4326         (_AC_SED_CMD_NUM, _AC_SED_DELIM_NUM, _AC_SED_FRAG): Removed.
4327         (_AC_SED_FRAG_NUM): Likewise.
4328         (_AC_SUBST_CMDS): Renamed from...
4329         (_AC_SED_CMDS): ...this.
4330         (_AC_OUTPUT_FILE): Use _AC_SUBST_CMDS.
4331         * tests/torture.at (Substitute a 2000-byte string): Also
4332         substitute a line with 1000 words, and a variable with several
4333         long lines.
4334         (Substitute and define special characters): Test awk special
4335         characters, and put substitution input strings `@foo@' in the
4336         output, to test that no recursion happens; test several other
4337         combinations from Paolo Bonzini.
4339 2006-11-25  Paul Eggert  <eggert@cs.ucla.edu>
4341         * lib/autotest/general.m4 (AT_INIT): Undo recent changes
4342         that replaced echo with AS_ECHO where this wasn't necessary.
4343         Problem reportd by Ralf Wildenhues.
4344         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Port to Solaris 7,
4345         where "/usr/bin/printf '%s\n' S" dumps core if S is long.
4346         This is Sun bug 4206210.  Problem reportd by Ralf Wildenhues.
4348 2006-11-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4350         * lib/freeze.mk (GREP): Removed, no need to initialize this.
4352 2006-11-21  Paul Eggert  <eggert@cs.ucla.edu>
4354         * doc/autoconf.texi (Limitations of Usual Tools): Don't claim
4355         that traditional Awk lacks 3-arg "split".  It has it.
4356         Mention that FS must be a single character, and a few other
4357         99-byte limits of traditional Awk.
4358         Mention that if (i in a) doesn't work with traditional Awk.
4360 2006-11-18  Paul Eggert  <eggert@cs.ucla.edu>
4362         * tests/autotest.at (BSx641-newline in command):
4363         (BS-BS-newline in command, BSx640-newline in command):
4364         (Newline-CODE-BS-newline in command):
4365         (Single-quote-BS-newline in command):
4366         (Single-quote-newline-BS-newline in command):
4367         Use printf '%s\n' instead of echo, for portability to hosts
4368         where echo interprets backslashes.  This will break on hosts
4369         that lack printf, but for now let's assume all such hosts
4370         are dead (if not, we should get reports of test failures).
4372 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
4374         'echo' has some portability problems, when given a first argument
4375         with a leading '-', or when given any argument containing '\'.
4376         Avoid using 'echo' in these cases.
4377         * bin/Makefile.am $(bin_SCRIPTS): Rewrite to avoid 'echo' entirely.
4378         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Likewise.
4379         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
4380         * lib/autotest/general.m4 (AT_INIT): Likewise.
4381         * bin/autoconf.as: Use AS_ECHO rather than plain echo, when the
4382         argument might be unportable.
4383         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Likewise.
4384         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Likewise.
4385         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT):
4386         (_AC_FC_LIBRARY_LDFLAGS): Likewise.
4387         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Likewise.
4388         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE, _AC_INIT_PREPARE):
4389         (_AC_ARG_VAR_VALIDATE, AC_ARG_PROGRAM, _AC_MSG_LOG_CONFTEST):
4390         (AC_RUN_LOG, _AC_RUN_IFELSE, _AC_LIBOBJS_NORMALIZE): Likewise.
4391         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
4392         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Likewise.
4393         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
4394         (AC_PROG_MAKE_SET): Likewise.
4395         * lib/autoconf/status.m4 (_AC_SRCDIRS, _AC_OUTPUT_HEADER):
4396         (_AC_OUTPUT_SUBDIRS, _AC_OUTPUT_CONFIG_STATUS): Likewise.
4397         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT, AT_INIT):
4398         (AT_CLEANUP, _AT_DECIDE_TRACEABLE, _AT_CHECK): Likewise.
4399         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE, _AS_ECHO_UNQUOTED):
4400         (_AS_BASENAME_SED, _AS_DIRNAME_SED, AS_MKDIR_P, AS_TMPDIR, AS_UNAME):
4401         (AS_TR_SH, AS_TR_CPP, AS_VAR_GET): Likewise.
4402         * bin/autoconf.as: Redo verbose flag implementation, as the old
4403         scheme wouldn't work with AS_ECHO.
4404         * lib/autotest/general.m4 (AT_INIT): Likewise.
4405         * lib/autoconf/general.m4 (AC_MSG_RESULT, AC_MSG_RESULT_UNQUOTED):
4406         Don't use ECHO_T, since ECHO_N is now reliable.
4407         * lib/autotest/general.m4 (AT_INIT): Likewise.
4408         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use sed "$script"
4409         rather than using a here-document to put the script into a file.
4410         (_AC_DO_ECHO): Hoist the eval out of the echo, so that we can
4411         use AS_ECHO.
4412         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Likewise.
4413         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Use
4414         AS_ECHO_N rather than ECHO_N and ECHO_C.  This doesn't fix any
4415         bug, but we might as well stop using ECHO_N and ECHO_C internally.
4416         * lib/autotest/general.m4 (AT_SETUP): Likewise.
4417         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N): Likewise.
4418         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
4419         (_AC_OUTPUT_MAIN_LOOP): Rework echo so that it has just one
4420         operand, as AS_ECHO requires.  Avoid double file name expansion.
4421         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke _AS_ECHO_PREPARE.
4422         Don't set as_nl, since _AS_ECHO_PREPARE does that now.
4423         (_AS_PREPARE): Comment that _AS_ECHO_N_PREPARE is just for user code.
4424         (AS_ECHO, AS_ECHO_N, _AS_ECHO_PREPARE): New macros.
4425         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
4426         Double-quote strings that would otherwise contain M4 comments.
4427         * tests/m4sh.at (AS_ECHO and AS_ECHO_N): New test.
4429         * configure.ac (AC_INIT): Bump to 2.61a.
4430         * NEWS: Likewise.
4432 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
4434         Version 2.61.
4436         * configure.ac (AC_INIT): Bump to 2.61.
4437         * NEWS: Likewise.
4439         * tests/autotest.at (Macro with backslash in a test title):
4440         Comment out for now, as this tests neither fails nor passes
4441         reliably.  Problem reported by Ralf Wildenhues.
4443 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
4445         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos
4446         in previous change, which caused test failures.
4448 2006-11-16  Stepan Kasal  <kasal@ucw.cz>
4450         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Factor out
4451         code for --enable, --disable, --with, and --without to...
4452         (_AC_INIT_PARSE_ENABLE): ... a new macro.
4453         * doc/autoconf.texi (Package Options):
4454         * NEWS: Document that AC_ARG_ENABLE allows dots, too.
4456 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
4458         Import these changes from config via gnulib:
4460         2006-11-15  Ben Elliston  <bje@gnu.org>
4462         From Josselin Mouette <joss@debian.org>:
4463         * build-aux/config.guess (SX-8:SUPER-UX:*:*): New.
4465         2006-11-08  Ben Elliston  <bje@gnu.org>
4467         * build-aux/config.guess (authenticamd:Interix*:[3456]*): Another AMD64.
4469         2006-11-07  Steve Woodford  <scw@NetBSD.org>
4470                     Ben Elliston  <bje@gnu.org>
4472         * build-aux/config.guess (*:NetBSD:*:*): Handle sh5el arch.
4473         * build-aux/config.sub (sh5el): New basic_machine.
4476         Import this change from coreutils:
4478         2006-02-13  Jim Meyering  <jim@meyering.net>
4480         * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
4483         Import this change from gnustandards via gnulib:
4485         2006-11-15  Karl Berry  <karl@gnu.org>
4487         * standards.texi: core -> memory, throughout.
4488         (CPU Portability): show correct example of calling write
4489         on a char value; thanks to Paul Eggert for the code.
4490         Both of these suggestions from Eugene Y. Vasserman.
4493         Import these changes from texinfo via gnulib:
4495         2006-11-08  Karl Berry  <karl@gnu.org>
4497         * build-aux/texinfo.tex (\dopdfimage): look for png, jpg/jpeg/JPG, and
4498           as well as pdf images, since they are supported in pdftex with
4499           no further ado.
4501         2006-11-05  Karl Berry  <karl@gnu.org>
4503         * doc/texinfo.tex (Image Syntax): don't mention GIF any more.
4505 2006-11-13  Paul Eggert  <eggert@cs.ucla.edu>
4507         * NEWS: Document the AC_ARG_WITH change.
4509 2006-11-13  Bruno Haible  <bruno@clisp.org>
4511         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): For --with, --without
4512         options, transliterate also dots to underscores.
4513         (_AC_ENABLE_IF): Transliterate also dots to underscores.
4514         * doc/autoconf.texi (External Software): Document that AC_ARG_WITH's
4515         first argument may also contain dots.
4517 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
4519         * tests/mktests.sh (ac_exclude_list): Exclude AC_PROG_CXX_C_O, for
4520         benefit of platforms like Solaris+GCC where it is common to have a
4521         non-working g++ installation.
4523 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4524         and Joel E. Denny  <jdenny@ces.clemson.edu>
4525         and Paul Eggert  <eggert@cs.ucla.edu>
4527         * tests/autotest.at (AT_CHECK_AT_TITLE): Fix shell quoting bugs
4528         and non-portable sed scripts, and use $CONFIG_SHELL when invoking
4529         ./micro-suite.
4531 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
4533         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Set
4534         ac_cv_type_long_long_int to 'yes' instead of 'cross-compiling'.
4535         Imported from a similar patch to gnulib by Bruno Haible.
4537 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
4539         * NEWS: New macros AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS.
4540         * doc/autoconf.texi (C Compiler): Document them.
4541         * lib/autoconf/c.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS):
4542         New macros, taken from gnulib.
4544 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
4546         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
4547         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
4548         Matthew Woehlke.
4550 2006-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4552         * tests/torture.at (Configuring subdirectories): Do not skip
4553         Automake 1.10 nor future Automake 11.1 (sic).
4555 2006-10-26  Joel E. Denny  <jdenny@ces.clemson.edu>
4556         and Stepan Kasal  <kasal@ucw.cz>
4558         Handle special characters in test case titles correctly.
4559         * lib/autotest/general.m4 (AT_INIT): M4-quote and AS_ESCAPE AT_help_all
4560         properly.
4561         (AT_SETUP): M4-quote and AS_ESCAPE the title properly everywhere.
4562         * tests/autotest.at (AT_CHECK_AT_TITLE): Add EXPANDED-TITLE-TO-TEST
4563         argument.  Extend to check titles printed by ./micro-suite and
4564         ./micro-suite -l and the title in micro-suite.log.
4565         (Backquote in a test title,
4566         Single-quote in a test title,
4567         Double-quote in a test title): Don't expect failure anymore.
4568         (Backslash in a test title): Put a non-whitespace character after the
4569         backslash so that Bourne shells might actually see it as an escape
4570         sequence.
4571         (Brackets in a test title,
4572         Pound in a test title,
4573         Comma in a test title,
4574         Quoted Macro in a test title,
4575         Macro in a test title,
4576         Macro with single-quote in a test title): New tests.
4577         (Macro with backquote in a test title,
4578         Macro with double-quote in a test title,
4579         Macro with backslash in a test title): New tests expected to fail.
4580         * tests/torture.at (#define header templates): M4-quote this title in
4581         AT_SETUP call so that no M4 code is commented inadvertently somewhere.
4582         The visible effect was a stray [] in the testsuite output.
4584 2006-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4586         * doc/autoconf.texi (Limitations of Builtins): Do not invoke
4587         `trap ... 0' inside a function, for AIX sh.
4589 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
4591         * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0,
4592         since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build
4593         5363) simply issues a warning when dividing by zero at compile
4594         time.  Problem reported by Elias Pipping.
4596 2006-10-26  Eric Blake  <ebb9@byu.net>
4598         * THANKS: Update.
4599         * doc/autoconf.texi (Evaluation Macros): Improve the example to
4600         show effect on macros that expand with commas.
4601         Reported by Joel E. Denny.
4603         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
4604         Also work with M4 1.4.8.
4606 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
4608         * doc/autoconf.texi (Slashes): Document Tru64 4.0 bug reported by
4609         Jim Meyering.
4611 2006-10-25  Stepan Kasal  <kasal@ucw.cz>
4613         * tests/tools.at (autom4te --force): New test, verifies that
4614         `--force' always rewrites the output file.
4616 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
4618         * doc/autoconf.texi (Limitations of Usual Tools): Document that rm
4619         needs operands on NetBSD 2.0.2.  Problem reported by Bruno Haible.
4621 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
4623         * tools/trace.at (autoconf --trace: user macros): Test `$%'.
4625 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
4627         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
4628         If FUNCTION-BODY is nonempty, use AC_LINK_IFELSE rather than
4629         AC_COMPILE_IFELSE, to work around problem with OSF/1 4.0F fseeko
4630         reported by Nelson H. F. Beebe for Coreutils 6.4.
4632         * tests/tools.at (autoconf --trace: user macros): Remove test
4633         for tracing multiline macros, since m4 1.4.7a uses a different
4634         way to number lines.  Problem reported by Ralf Wildenhues.
4636 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
4638         * bin/autom4te.in (handle_m4): Do not redirect stdin to
4639         /dev/null since the heuristics for interactive behaviour was
4640         fixed in CVS m4.
4642         * bin/autom4te.in: With --force, always refresh the output
4643         file.  Problem reported by Greg Schafer <gschafer@zip.com.au>.
4645         * bin/autoconf.as: Fix the verbose message at the end.
4647 2006-10-23  Paul Eggert  <eggert@cs.ucla.edu>
4649         * configure.ac (AC_INIT): Bump to 2.60c.
4650         * NEWS: Likewise.
4652 2006-10-22  Paul Eggert  <eggert@cs.ucla.edu>
4654         * NEWS: Version 2.60b.
4656         Import this change from Texinfo:
4657         2006-10-15  Karl Berry  <karl@gnu.org>
4658         * build-aux/texinfo.tex: automake 1.10
4660         * NEWS: Remove AC_CACHE_CHECK_INT.
4661         * doc/autoconf.texi (Caching Results): Likewise.
4662         * lib/autoconf/general.m4 (_AC_CACHE_CHECK_INT): Renamed from
4663         AC_CACHE_CHECK_INT, since it's no longer public.
4664         * lib/autoconf/types.m4: All uses of AC_CACHE_CHECK_INT changed.
4665         * tests/base.at (AC_COMPUTE_INT): Test this, not AC_CACHE_CHECK_INT.
4667 2006-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4669         * doc/autoconf.texi (Limitations of Usual Tools): Fix two typos.
4671 2006-10-19  Eric Blake  <ebb9@byu.net>
4673         * lib/m4sugar/m4sugar.m4 (m4_mkstemp): New macro.
4674         (m4_maketemp): Avoid warnings with M4 1.9a.
4675         * lib/emacs/autoconf-mode.el (autoconf-font-lock-keywords): Color
4676         m4_mkstemp.
4677         * doc/autoconf.texi (Redefined M4 Macros): Document m4_mkstemp.
4678         * NEWS: Likewise.
4680 2006-10-16  Eric Blake  <ebb9@byu.net>
4682         * doc/autoconf.texi (Setting Output Variables): Fix typo.
4684         * bin/autoconf.as (version): Reword to match GNU Coding
4685         Standards.
4686         * bin/autoheader.in (version): Likewise.
4687         * bin/autom4te.in (version): Likewise.
4688         * bin/autoreconf.in (version): Likewise.
4689         * bin/autoscan.in (version): Likewise.
4690         * bin/autoupdate.in (version): Likewise.
4691         * bin/ifnames.in (version): Likewise.
4693 2006-10-14  Stepan Kasal  <kasal@ucw.cz>
4695         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Expand $1 before
4696         looking for special shell characters.
4697         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Do not expand the
4698         macro defined by AS_VAR_PUSHDEF before passing it as a
4699         parameter.
4700         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
4701         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB):
4702         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
4703         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL):
4704         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_DIRENT):
4705         Likewise.
4706         * lib/autotest/general.m4 (AT_INIT): Quote parameters of
4707         AS_VAR_* properly.
4708         * tests/m4sh.at (AS_LITERAL_IF): New test.
4710 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
4712         (Imported from Automake.)
4713         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
4714         which incorrectly sets the mode of an existing destination
4715         directory.  In some cases the unpatched install-sh could do the
4716         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
4717         system.  We hope this is rare in practice, but it's clearly worth
4718         fixing.  Problem reported by Alex Unleashed in
4719         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
4720         Also, don't bother to check for -m bugs unless we're using -m;
4721         suggested by Stepan Kasal.
4723 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
4725         Import this change from Automake:
4727         2006-08-23  Alexandre Duret-Lutz  <adl@gnu.org>
4728         * lib/Autom4te/ChannelDefs.pm (usage): Mention that -Wportability
4729         is enabled by default with gnu and gnits strictness.
4730         Report from Bruno Haible.
4732         2006-03-10  Alexandre Duret-Lutz  <adl@gnu.org>
4733         * lib/Autom4te/ChannelDefs.pm: Make -Wportability the default in
4734         gnu and gnits modes.
4736         Import this change from Config:
4738         2006-09-20  Ben Elliston  <bje@gnu.org>
4739         * build-aux/config.sub (score, score-*): New.
4741         Import this change from Gnulib:
4743         2006-09-16  Karl Berry  <karl@gnu.org>
4744         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
4745         to avoid sectioning errors.
4747         Import these changes from Texinfo:
4749         2006-10-04  Karl Berry  <karl@gnu.org>
4750         * build-aux/texinfo.tex (\singlequotechar): rename to \codequoteright.
4751         (\quoteexpand): rename to \rquoteexpand.
4752         (\codequoteleft): new def, to look for @set codequotebacktick.
4753         (\lquoteexpand, \quoteexpand): new defs.
4754         (\lquoteChar, \rquoteChar, \dashChar, \underChar: new \chardef's.
4755         (\code): must use new \...Char values, since now ` is active.
4757         2006-08-26  Karl Berry  <karl@gnu.org>
4758         * build-aux/texinfo.tex (\textdegree): New command.
4760         2006-08-12  Karl Berry  <karl@gnu.org>
4761         * build-aux/texinfo.tex (error \box0): smaller font.
4763 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4765         * doc/autoconf.texi (Autoheader Macros): Fix syntax error.
4767 2006-10-13  Stepan Kasal  <kasal@ucw.cz>
4769         * doc/autoconf.texi (Autoheader Macros): Warn that the text
4770         added to the template can get mangled.
4772 2006-10-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4774         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): In the test,
4775         include the default headers, and redefine obstack_chunk_alloc
4776         and obstack_chunk_free.  Fixes false failure with glibc.
4778 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
4780         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Set as_executable_p,
4781         for backward compatibility with Libtool 1.5.22.  Problem reported
4782         by Ralf Wildenhues.
4784 2006-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4786         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL): Require
4787         AC_PROG_CC.
4788         Report by IOhannes m zmoelnig <zmoelnig@iem.at>.
4790 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
4792         * NEWS: AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for
4793         the NonStop platform.
4794         * doc/autoconf.texi (Posix Variants): Likewise.
4795         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
4797         * lib/m4sugar/m4sh.m4 (AS_TEST_X): New macro.
4798         (AS_EXECUTABLE_P): Use as_test_x rather than as_executable_p.
4799         (_AS_TEST_PREPARE): Set as_test_x rather than as_executable_p.
4800         Use a better substitute, by inspecting the output of "ls"
4801         rather than just using ":".
4802         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Use AS_TEST_X
4803         rather than AS_EXECUTABLE_P, since we needn't worry about
4804         non-regular files here.
4806         * NEWS: Autoconf-generated shell scripts no longer export BIN_SH,
4807         due to configuration hassles with this.  See Tonya Underwood's report
4808         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00003.html>.
4809         * doc/autoconf.texi (Special Shell Variables): Likewise.
4811 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
4812             Stepan Kasal  <kasal@ucw.cz>
4814         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Don't set BIN_SH.
4815         (_AS_DETECT_BETTER_SHELL): Don't look in /usr/bin/posix.
4817 2006-10-11  Stepan Kasal  <kasal@ucw.cz>
4819         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Move the
4820           initialization which is not inherited through the environment
4821         (_AS_BOURNE_COMPATIBLE): ... to this new macro.
4822         (_AS_RUN): Call _AS_BOURNE_COMPATIBLE, not AS_BOURNE_COMPATIBLE.
4824 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
4826         * doc/autoconf.texi (Limitations of Usual Tools): Describe
4827         problems with mkdir -p -m.
4829 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
4831         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Remove
4832         comment about ac_cpp_err; it was incorrect, and anyway
4833         ac_cpp_err is being removed below.
4834         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE): Don't
4835         set ac_cpp_err to 'yesyes' if preproc_warn_flag and werror_flag
4836         are both 'yes'.  In fact, don't bother setting ac_cpp_err at all;
4837         nobody uses it.
4838         (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't log our funky tests
4839         with werror_flag and conftest.err and so forth.  This is more
4840         compatible with how _AC_PROG_PREPROC_WORKS_IFELSE behaves,
4841         and anyway the user shouldn't normally want to see this gorp logged.
4842         Problem reported by Ralf Wildenhues.
4843         * lib/autoconf/lang.m4 (AC_LANG_WERROR): werror_flag's default is
4844         empty, not 'no', since the rest of the code uses 'test -z'.
4846 2006-10-04  Paul Eggert  <eggert@cs.ucla.edu>
4848         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
4849         Use a single call to AC_DO_TOKENS rather than multiple, for
4850         efficiency.
4851         (_AC_LINK_IFELSE): Test that resulting file is executable.
4852         Problem reported by mwoehlke in
4853         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00048.html>.
4855         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Use "test -x /" rather
4856         than creating a file to use with test -x; this is much faster.
4858 2006-10-02  Bruno Haible  <bruno@clisp.org>
4860         * lib/autom4te.in (Automake-preselections): Add
4861         AM_GNU_GETTEXT_INTL_SUBDIR, for automake 1.10.
4863 2006-09-27  Stepan Kasal  <kasal@ucw.cz>
4865         * doc/autoconf.texi (Writing testsuite.at): Fix a typo: for
4866         standard error, `experr' should be used, not `expout'.
4868 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4870         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Don't compile the
4871         fseeko testing program twice; just use the earlier result.
4872         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
4873         Set cache var to 'unknown' (not 'no') if leaving the macro unset
4874         still doesn't let the program compile.
4875         (AC_SYS_LARGEFILE): Test for _LARGE_FILES only if earlier tests
4876         failed.
4878         * lib/autoconf/functions.m4: Fix problems reported by Ralf Wildenhues.
4879         (AC_FUNC_ERROR_AT_LINE): Don't bother to check for error.h.  Just
4880         include it, without including anything else.
4881         (AC_FUNC_FSEEKO): Avoid gcc -Wall warnings about constant
4882         expressions.
4883         (AC_FUNC_STRNLEN): Require AC_USE_SYSTEM_EXTENSIONS.
4885 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4887         * lib/autoconf/functions.m4 (AC_FUNC_ERROR_AT_LINE): Check for
4888         `error.h', and include it, for a `error_at_line' prototype.
4889         Use a nonempty format string in the link test.
4890         * lib/autoconf/functions.m4 (AC_FUNC_WAIT3): Include <sys/wait.h>,
4891         for a declaration of wait3.
4893 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4895         * NEWS: AC_CHECK_DECL now also works with aggregate objects.
4896         * doc/autoconf.texi (Generic Declarations): Clarify that AC_CHECK_DECL
4897         can apply to constants too, and that it checks for macro defns.
4898         * lib/autoconf/general.m4 (AC_CHECK_DECL): Assume C89 or better,
4899         and simply cast the identifier to void.  This handles structure
4900         values.  Problem reported by Ralf Wildenhues.
4901         * tests/semantics.at (AC_CHECK_DECLS): Also check enums.
4903 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4905         * tests/semantics.at (AC_CHECK_DECLS): Also check macros,
4906         structure, and function symbols.
4908 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4910         * tests/semantics.at (AC_CHECK_MEMBERS): Also test with a struct
4911         member.
4913 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
4915         * NEWS: Recommend M4 1.4.7 instead of 1.4.6.
4916         * README: Likewise.
4917         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
4919 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
4920         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4922         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): Avoid `gcc -Wall'
4923         warnings (uninitialized value).
4924         (AC_FUNC_UTIME_NULL): Likewise, test for and include <utime.h> if
4925         present.
4926         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Likewise, add
4927         parentheses.
4928         (AC_STRUCT_TM): Likewise, avoid unused variables.
4930 2006-09-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4932         * lib/autoconf/c.m4 (_AC_ARG_VAR_LDFLAGS): Update comment.
4933         (_AC_ARG_VAR_LIBS): New macro: let LIBS be precious.
4934         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Call _AC_ARG_VAR_LIBS.
4935         * lib/autoconf/fortran.m4 (AC_PROG_F77, AC_PROG_FC): Likewise.
4936         Report by Olly Betts.
4938 2006-09-19  Eric Blake  <ebb9@byu.net>
4940         * m4/m4.m4: Change copyright.
4941         * configure: Regenerate.
4942         * Makefile.in: Likewise.
4943         * bin/Makefile.in: Likewise.
4944         * doc/Makefile.in: Likewise.
4945         * lib/Makefile.in: Likewise.
4946         * lib/Autom4te/Makefile.in: Likewise.
4947         * lib/autoconf/Makefile.in: Likewise.
4948         * lib/autoscan/Makefile.in: Likewise.
4949         * lib/autotest/Makefile.in: Likewise.
4950         * lib/emacs/Makefile.in: Likewise.
4951         * lib/m4sugar/Makefile.in: Likewise.
4952         * man/Makefile.in: Likewise.
4953         * tests/Makefile.in: Likewise.
4955         * m4/m4.m4 (AC_PROG_GNU_M4): Check for m4 --debugfile support.
4956         * bin/Makefile.am (edit): Substitute M4_DEBUGFILE.
4957         * bin/autom4te.in (handle_m4): Favor --debugfile over misnamed
4958         --error-output, to avoid warnings with M4 2.0.
4960 2006-09-19  Stepan Kasal  <kasal@ucw.cz>
4962         * lib/autoconf/libs.m4 (AH_CHECK_LIB): Fix quoting, to be
4963           consistent with _AH_CHECK_FUNCS and _AH_CHECK_HEADERS.
4964         * lib/autoconf/headers.m4 (AH_CHECK_HEADERS_DIRENT): Likewise.
4966 2006-09-15  Stepan Kasal  <kasal@ucw.cz>
4968         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Eliminate the
4969         expansion of AC_CHECK_FUNCS.
4971 2006-09-14  Stepan Kasal  <kasal@ucw.cz>
4973         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Remove a
4974         mistaken comment: the path has to be relative; do not use
4975         the path at runtime.
4977 2006-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4979         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote the
4980         argument to `--prefix' for sub-configure scripts.
4981         Pass `--silent' to sub-configure scripts.
4982         * tests/torture.at (Configuring subdirectories): Add tests
4983         for both changes.
4984         * doc/autoconf.texi (Setting Output Variables): Fix example to
4985         not show `--silent' being passed to a `configure' re-run.
4987 2006-09-12  Paul Eggert  <eggert@cs.ucla.edu>
4989         * doc/autoconf.texi (Input): Clarify role of AC_CONFIG_MACRO_DIR.
4990         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Do not check
4991         for the existence of the directory at configure-time.  That's
4992         too late, anyway.  Problem reported by Stefan Seefeld.
4994         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Avoid bug in UnixWare
4995         7.1.4 /usr/bin/posix/sh described by Tim Rice in
4996         <http://lists.gnu.org/archive/html/bug-autoconf/2006-09/msg00017.html>.
4998 2006-09-11  Stepan Kasal  <kasal@ucw.cz>
5000         * tests/local.at (AT_CHECK_M4): Fix this so that the testsuite
5001         works with GNU M4 1.4.3 again; make the normalized form
5002         match the current m4 message; fix the description.
5003         * test/tools.at (autom4te cache): Adapt to the change.
5005 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
5007         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):  Add year_2050_test
5008         to catch glibc bug 2821
5009         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
5011         Merge from gnulib as follows: Use AC_CHECK_HEADERS_ONCE instead of
5012         AC_CHECK_HEADERS, and likewise for AC_CHECK_FUNCS_ONCE and
5013         AC_CHECK_FUNCS.  Don't check for stdlib.h, since we now
5014         assume C89.
5016 2006-09-08  Stepan Kasal  <kasal@ucw.cz>
5018         * lib/autom4te.in (Autoconf-without-aclocal-m4): Move the
5019         preselections ...
5020         (Autoconf): ... here.
5021         (Autoscan-preselections): Delete.
5023 2006-09-07  Stepan Kasal  <kasal@ucw.cz>
5025         * lib/autom4te.in (Automake-preselections): Preselect
5026         AM_ENABLE_MULTILIB.
5028 2006-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5030         * doc/autoconf.texi (Preset Output Variables): srcdir and
5031         top_srcdir are not necessarily relative.  Problem reported
5032         by Dries Kimpe.
5034 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5036         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Prefer xlf90/xlf95 over
5037         f90/f95 because the latter drivers of AIX Fortran 9.1 do not
5038         accept files with extension `.f'.  For consistency, also prefer
5039         xlf over f77.
5040         * doc/autoconf.texi (Fortran Compiler): Remove mention of bug
5041         from last patch.
5043 2006-09-05  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
5045         * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB): Added substitution
5046         of ERLANG_LIB_VER_* variables.
5047         * doc/autoconf.texi (Erlang Libraries): Document ERLANG_LIB_VER_*
5048         variables.
5050 2006-09-03  Paul Eggert  <eggert@cs.ucla.edu>
5051         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5053         * doc/autoconf.texi (Limitations of Builtins): Document 'unset'
5054         bugs of Bash 2.01 and 2.05a.
5055         (Fortran Compiler): Document that AC_PROG_CC should be called
5056         before AC_PROG_FC, due to a bug in Autoconf.
5058 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5060         * NEWS: New macro AC_CACHE_CHECK_INT.  It replaces the
5061         old AC_COMPUTE_INT, which now behaves like _AC_COMPUTE_INT
5062         except the first two arguments are reversed.
5063         * doc/autoconf.texi (Caching Results): New macro AC_CACHE_CHECK_INT.
5064         (Generic Compiler Characteristics): AC_COMPUTE_INT no longer
5065         caches nor outputs a diagnostic.  Suggested by Bruno Haible.
5066         * lib/autoconf/general.m4 (AC_CACHE_CHECK_INT): New macro,
5067         equivalent to the old AC_COMPUTE_INT.
5068         (AC_COMPUTE_INT): No longer caches or reports.  New signature.
5069         All uses changed to AC_CACHE_CHECK_INT.
5070         * tests/base.at (AC_CACHE_CHECK_INT): New test.
5071         * tests/mktests.sh (ac_exclude_list): Add AC_CACHE_CHECK_INT.
5073 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
5075         * NEWS: AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_FUNC_GETLOADVG,
5076         and AC_REPLACE_FNMATCH are now obsolescent in Autoconf.  New
5077         programs should use their Gnulib counterparts.
5078         * doc/autoconf.texi (Particular Functions): Likewise.
5079         (Macro Names, testsuite Invocation): Replace uses of these
5080         obsolete macros with uses of non-obsolete macros.
5082 2006-08-29  Eric Blake  <ebb9@byu.net>
5084         * configure.ac (AC_INIT): Bump to 2.60b.
5085         * NEWS: Update.
5087 2006-08-28  Eric Blake  <ebb9@byu.net>
5089         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Fix logic that was
5090         mistakenly swapped on 2006-08-15.
5092 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
5094         * NEWS: Version 2.60a.
5096 2006-08-25  Stepan Kasal  <kasal@ucw.cz>
5098         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Remove the IPA/IPO
5099         file created by the PGI compiler.
5101 2006-08-25  Noah Misch  <noah@cs.caltech.edu>
5103         * lib/Autom4te/General.pm (END): Use `File::Path::rmtree' to
5104         simplify the code.
5106 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
5108         Fix Lex library problem reported to us by Julio Garvia.
5109         * doc/autoconf.texi (Particular Programs): YYTEXT_POINTER is
5110         for the default, which the user can override.
5111         * lib/autoconf/programs.m4 (AC_PROG_LEX): Let _AC_PROG_LEX_YYTEXT_DECL
5112         deal with LEXLIB.
5113         (_AC_PROG_LEX_YYTEXT_DECL): Handle caching correctly; the old code
5114         didn't work if some values were cached but not others.  Test for
5115         broken lex libraries like native ia64-hp-hpux11.22; see
5116         <http://sources.redhat.com/ml/binutils/2003-12/msg00337.html>, and
5117         work around the problem by preferring an empty LEXLIB to -lfl or
5118         -ll.  Let the user set LEXLIB='' to indicate no library needed.
5120         * NEWS: Recommend M4 1.4.6 instead of 1.4.5.
5121         * README: Likewise.
5122         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
5124 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5126         Rework to use more-modern build style.
5127         Many files are renamed; all uses of their names were changed.
5128         * .x-sc_trailing_blank: Renamed from .x-sc_trailing_space.
5129         * .x-sc_useless_cpp_parens: New file.
5130         * build-aux/config.guess: Renamed from config/config.guess.  Update.
5131         * build-aux/config.sub: Renamed from config/config.sub.  Update.
5132         * build-aux/elisp-comp: Renamed from config/elisp-comp.
5133         * build-aux/install-sh: Renamed from config/install-sh.  Update.
5134         * build-aux/mdate-sh: Renamed from config/mdate-sh.
5135         * build-aux/missing: Renamed from config/missing.
5136         * build-aux/texinfo.tex: Renamed from config/texinfo.tex.  Update.
5137         * build-aux/vc-list-files: Renamed from config/vc-list-files.
5138         * config/Makefile.am: Removed.
5139         * config/mkinstalldirs: Removed.
5140         * config/move-if-change: Removed.
5141         * m4/m4.m4: Renamed from config/m4.m4.  Add (C) to copyright notice.
5142         * Makefile.am (SUBDIRS): Remove config.
5143         (ACLOCAL_AMFLAGS): Include from m4, not config.
5144         (EXTRA_DIST): Add config/announce-gen, config/prev-version.txt.
5145         (WGET, WGETFLAGS): New macros, since Makefile.maint no longer does this.
5146         (autom4te-update): Rewrite with a loop.  Get from gnulib, not automake.
5147         Fail if there's an error.
5148         * Makefile.cfg (move_if_change): Remove.
5149         (wget_files): Remove.
5150         (cvs_executable_files): New macro.
5151         (cvs_files): Use it.  Remove mkinstalldirs.  Add fdl.texi.
5152         (executable-update): Use $(cvs_executable_files).
5153         (local-checks-to-skip): Remove.
5154         * Makefile.maint: Merge from coreutils, plus add our own changes
5155         (gzip_rsyncable): New macro.
5156         (GZIP_ENV): Use it.
5157         (CVS_LIST): Use build-aux/vc-list-files.
5158         (VERSION_REGEXP): New macro.
5159         (local-checks-available): Add patch-check, $(syntax-check-rules),
5160         check-AUTHORS.
5161         (syntax-check-rules): Compute dynamically.
5162         (sc_cast_of_x_alloc_return_value): Work even if no source files.
5163         (sc_cast_of_alloca_return_value): Likewise.
5164         (sc_prohibit_atoi_atof): Simplify regexp.
5165         (sc_no_if_have_config_h, sc_require_config_h):
5166         (sc_prohibit_assert_without_use,
5167         (sc_obsolete_symbols): Check for O_NDELAY.
5168         (sc_texi_notab): Remove.
5169         (sc-changelog): Don't make an exception for '----' lines.
5170         (.re-list): Remove, so we don't have a junk file behind.
5171         (sc_system_h_headers): Remove the need for .re-list.
5172         (sc_the_the):  New rule.
5173         (sc_tight_scope): Simplify.
5174         (sc_trailing_blank): Renamed from sc_trailing_space.
5175         (longopt_re): New macro.
5176         (sc_two_space_separator_in_usage): New rule.
5177         (sc_unmarked_diagnostics): Look at all files under CVS.
5178         (sc_useless_cpp_parens, patch-check, check-AUTHORS): New rules.
5179         (news-date-check, changelog-check): Version is OK.
5180         (po-check): Look for lib files even if not in CVS.
5181         (copyright-check): Use $() not ``.
5182         (maintainer-distcheck): Do not depend on changelog-check.
5183         (my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz).
5184         Also check for -Wpointer-arith.
5185         (WGET, WGETFLAGS, tgz-md5, tgz-sha1, bz2-md5, bz2-sha1):
5186         (xdelta-md5, xdelta-sha1, tgz-size, bz2-size, xd-size, rel-check):
5187         Remove.
5188         (announcement): Add --gpg-key-id arg.
5189         (cvs-sv): Remove.
5190         (move_if_change): Just use mv.
5191         (local_updates: Remove wget-update, po-update.
5192         (po_repo, do-po-update, po-update, wget_files, get-targets): Remove.
5193         (config.guess-url_prefix, config.sub-url_prefix): Remove.
5194         (ansi2knr.c-url_prefix, texinfo.tex-url_prefix):
5195         (standards.texi-url_prefix, make-stds.texi-url_prefix, target, url):
5196         ($(get-targets)): Remove.
5197         (cvs_files): Remove missing, mkinstalldirs, ansi2knr.c.
5198         (gnulib_repo): Renamed from automake_repo.  Get from gnulib now.
5199         (cvs-update): Get from gnulib.
5200         (emut_upload_commands): gnupload is in build-aux now.
5201         (alpha beta major): Add changelog-check.  Check version.
5202         * configure.ac (AC_CONFIG_AUX_DIR): Renamed from config to build-aux.
5203         (AC_CONFIG_FILES): Remove.
5204         * bin/autoconf.as: Add spaces to avoid distcheck warning.
5205         * config/announce-gen: Sync from coreutils.
5206         * doc/make-stds.texi: Sync from gnulib.
5207         * doc/standards.texi: Likewise.
5208         * man/Makefile.am: Adjust for config -> build-aux renaming.
5209         * tests/Makefile.am: Prefer $(FOO) to @FOO@.
5210         * tests/local.at: Adjust from config -> build-aux renaming.
5211         * tests/tools.at: Likewise.
5212         * tests/torture.at: Likewise.
5214         * NEWS: The C99 check now tests for vararg macros and 64-bit
5215         preprocessor ints.
5216         * doc/autoconf.texi (C Compiler): Document // comments, va_copy.
5217         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Test varargs macros and
5218         64-bit preprocessor ints.  Check for static initialization of
5219         long long.  Remove unnecessary casts.
5221 2006-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5223         * doc/autoconf.texi (Particular Programs): Mention that
5224         @INSTALL@ and @MKDIR_P@ may vary for different output files.
5225         Reported by Alexandre Duret-Lutz.
5227 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5229         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
5230         -lgcc?* and -lSystem, for Darwin/MacOS X.  Problem reported by
5231         Bill Northcott in
5232         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00083.html>.
5234 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5236         * lib/autoconf/c.m4 (AC_C_CONST): Don't used shadowed vars, to
5237         pacify insanely picky compilers.  Problem reported by Eric Blake.
5239         * doc/autoconf.texi (Posix Variants): INTERACTIVE Unix is no
5240         longer supported by Sun.
5242 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5244         * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
5245         rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
5246         -Wundef -Werror".  Problem reported by David Fang in
5247         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
5248         * doc/autoconf.texi (Header Templates, Default Includes):
5249         (Particular Functions, Generic Functions, Header Portability):
5250         (Particular Headers, Generic Headers, Generic Declarations, Guidelines):
5251         (Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
5252         (Present But Cannot Be Compiled, Preprocessor Symbol Index):
5253         Prefer #ifdef to #if.
5254         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
5255         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
5256         (AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
5257         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
5258         Likewise.
5259         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
5260         (AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
5261         * lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
5262         (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
5263         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
5264         S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
5265         this.
5267 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5269         * doc/autoconf.texi (Limitations of Usual Tools): Document sed
5270         problems with arg script text that doesn't end in newline, and
5271         with '-e a...'.  Problems reported by Ralf Wildenhues.
5273 2006-08-12  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
5275         * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
5276         check for libXt by a check for libX11.
5278 2006-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5280         * doc/autoconf.texi (config.status Invocation): Adjust according
5281         to last change.
5283 2006-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5285         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
5286         --help' should mention that `--version' outputs configuration
5287         settings.  Report by Bruno Haible.
5289 2006-08-06  Paul Eggert  <eggert@cs.ucla.edu>
5291         Fix test suite failures reported by Pierre in
5292         <http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
5293         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
5294         the compiler created a file "b.out" when it didn't create anything
5295         at all.
5296         * lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
5297         Discard stderr too, when invoking the test script.
5299 2006-08-05  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
5301         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
5302         in the restoring of the werror flag.
5304 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5306         * doc/autoconf.texi (Volatile Objects): Be even a little
5307         less skeptical about "volatile", after discussion with
5308         Bruno Haible on bug-gnulib.
5309         (Limitations of Usual Tools): Warn about sed stripping
5310         leading white space from text.  From Bruno Haible.
5312 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
5314         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
5315         compiler complains about it, even if things works after the
5316         complaint.  Problem reported by Peter O'Gorman.
5318         * doc/autoconf.texi (Preset Output Variables): Document CFLAGS,
5319         CPPFLAGS, and LDFLAGS better.  Problem reported by Bruno Haible.
5320         Similarly for CXXFLAGS, OBJCFLAGS, ERLCFLAGS.
5322 2006-07-17  Paul Eggert  <eggert@cs.ucla.edu>
5324         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space
5325         after -R regardless of host.  Patrick Welche reports that this
5326         fixes things on NetBSD 3.99.
5328         * NEWS: Recommend M4 1.4.5.
5329         * README: Likewise.
5330         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
5331         * tests/tools.at (autom4te cache): Update wording of diagnostic
5332         to match M4 1.4.5.
5334 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
5336         * doc/autoconf.texi (C Compiler): Add a ref to Volatile Objects
5337         under AC_C_VOLATILE.
5338         (Volatile Objects): Be a little less skeptical about what
5339         "volatile" means.  Derived from thoughts by Ben Pfaff in
5340         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00092.html>.
5342 2006-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5344         * doc/autoconf.texi: Fix some typos.
5346 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
5348         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
5349         more globally, since the 2006-06-30 patch didn't suffice.  Problem
5350         reported by Keith Marshall.  Also, don't bother with builddir2,
5351         since it shouldn't be needed any more.
5353 2006-07-07  Paolo Bonzini  <bonzini@gnu.org>
5355         * doc/autoconf.texi (Generic compiler characteristics):
5356         Document AC_COMPUTE_INT.  Fix wrong statements on Default
5357         Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.
5359         * lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
5360         (_AC_COMPUTE_INT): Add obsoletion warnings.
5361         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
5362         AC_COMPUTE_INT.
5364         * NEWS: Document change.
5366 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
5368         * doc/autoconf.texi (Volatile Objects): New section.
5370         * NEWS: Document previous change.
5372 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
5374         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
5375         Require that long long int be at least 64 bits wide.  C99 requires
5376         this and enough programs depend on it so we should check for it.
5377         Bruno Haible reports in
5378         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00286.html>
5379         that long long int is 32 bits wide with some nonstandard compilers.
5380         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
5382 2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5384         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
5385         to a nonexistent file, so that we don't have to worry about
5386         a local site configuration that doesn't use /usr/local.
5387         Problem reported by Keith Marshall in
5388         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00133.html>.
5390 2006-06-28  Paul Eggert  <eggert@cs.ucla.edu>
5392         * doc/autoconf.texi: Be more consistent about using @acronym with
5393         "HP" and "HP-UX".  Remove mention of OSF; the old version wasn't
5394         quite right (it talked about "OSF/Tru64", even though the
5395         operating systems were called OSF/1, Digital UNIX, and Tru64 UNIX,
5396         and it even mentioned "OSF 4"!) and at this point there's little
5397         reason to talk about OSF any more, since it died in 1994.
5398         (Specific Compiler Characteristics): Simplify example of
5399         negative-size array.
5400         (File Descriptors): Reorder to make the text flow better.
5401         Remove joke about "appreciate the various levels"; I didn't get it.
5402         Add remark about HP-UX sh -x bug with stderr noted by Bob Proulx in
5403         <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00225.html>.
5404         (File Descriptors, Limitations of Usual Tools):
5405         Tone down the advice against renaming or removing open files.
5406         (Limitations of Usual Tools): Add a new section, on 'rm'.
5408 2006-06-26  Stepan Kasal  <kasal@ucw.cz>
5410         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
5411         -lXt in LIBS, idea from Karsten Hopp; this was due since
5412         this change:
5414         2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
5415         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
5416         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
5417         (which belong to Xt, not X itself).  See Debian bug 327655.
5419 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5421         * configure.ac (AC_INIT): Bump to 2.60a.
5422         * NEWS: Update.
5424 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5426         Version 2.60.
5428         * configure.ac, NEWS: Update.
5430 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5432         * config/texinfo.tex: Sync from upstream.
5434         * bin/autom4te.in (handle_traces): Transform the `@S|@'
5435         quadrigraph correctly in traces.
5437         * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
5438         Fix typos.
5440         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
5441         datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
5442         not defined.
5443         * doc/autoconf.texi (Changed Directory Variables): New node,
5444         to document the whole `datarootdir' business a bit better.
5445         * NEWS: Update.
5446         * tests/torture.at (datarootdir workaround): Extend test.
5447         Prompted by report by Alexandre Julliard.
5449 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
5451         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
5452         when using default mode of IBM C 6 for AIX.  Problem and two-line
5453         fix reported by Larry Jones.
5455 2006-06-22  Alexandre Julliard <julliard@winehq.org>
5457         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
5458         about literal '${datarootdir}' if a definition is found in the
5459         output file.
5461 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
5463         * NEWS: Use "M4" rather than "m4" when appropriate.
5464         Problem reported by Eric Blake.
5465         * doc/autoconf.texi: Likewise.
5466         Use @acronym around BSD, GCC, and GNU when appropriate.
5467         (Why GNU M4): Renamed from "Why GNU m4".
5468         (Redefined M4 Macros): Mention that Posix
5469         m4wrap takes only 1 argument, but GNU M4 1.4.x takes more.
5470         (Buffer Overruns): Mention size_t and ptrdiff_t as alternatives
5471         to int.
5473 2006-06-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5475         * bin/autom4te.in (handle_output): Do not forbid the empty
5476         pattern.
5477         * tests/tools.at (autoconf: the empty token): New test.
5479 2006-06-20  Stepan Kasal  <kasal@ucw.cz>
5481         * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
5482         calls, so that we do not care whether they are LIFO or FIFO;
5483         in the m4_wrap, do not check which diversion is the topmost
5484         one, just check that the stack is balanced at the end.
5485         * lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
5486         base diversion forever--pop the previous diversion before
5487         opening the new one; consequently, remove the m4_wrap call.
5488         * lib/autotest/general.m4 (AT_INIT): Likewise.
5489         * tests/m4sugar.at: Do not use
5490         m4_wrap([m4_diversion_pop([..])]), for educational purposes.
5492 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
5493         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5495         * NEWS: Document that m4wrap/m4_wrap might not be LIFO.
5496         * doc/autoconf.texi (Redefined M4 Macros): Likewise.
5497         Rework example of m4wrap token-pasting trouble so that it doesn't
5498         care whether it's LIFO or FIFO.
5499         Fix some "contrary to"s that are awkward in English.
5501 2006-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5503         * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
5504         to `yes' instead of `int$1_t' if the type is found, for more
5505         consistent configure output (where $1 is the number of bits).
5506         (_AC_TYPE_UINT): Likewise for `uint$1_t'.
5507         Suggested by Bruno Haible.
5509         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
5510         needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
5511         with system headers.  Report by Bruno Haible.
5513 2006-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5515         * config/config.guess, config/config.sub: Sync from upstream.
5517         * bin/Makefile.am (autoconf.in): Use `--melt' for autom4te,
5518         in order to avoid picking up an older installed frozen m4sh.m4f.
5519         Besides an outdated shell startup, this could have been created
5520         by an earlier M4 version with incompatible frozen file format.
5522 2006-06-16  Paul Eggert  <eggert@cs.ucla.edu>
5524         * README: Recommend m4 1.4.4 instead of 1.4.3..
5525         * doc/autoconf.texi: Likewise.
5526         (Special Chars in Names): Say that $(.FOO) is portable, as
5527         suggested by Stepan Kasal.
5528         (Installation Directory Variables, Build Directories):
5529         (Automatic Remaking, Subdirectories, Fortran Compiler):
5530         (Making testsuite Scripts, Defining Directories):
5531         Quote variable usages better.
5532         (Making testsuite Scripts): Add clean-local rule to makefile
5533         snippet, by Eric Blake.
5534         (Installation Directory Variables): Fix table item font.
5535         Reword slightly to clarify.  Generalize advice about
5536         not using special characters to include all file-related
5537         vars, not just VPATH.
5538         (Special Chars in Variables): Warn about special characters in
5539         $(srcdir) too.
5540         (Assignments): Clarify default-value example as suggested by
5541         Ralf Wildenhues in
5542         <http://lists.gnu.org/archive/html/autoconf-patches/2006-06/msg00072.html>.
5543         (Special Shell Variables): Note leading ./ or ../, as suggested
5544         by Eric Blake.
5545         (Limitations of Builtins): Under cd, warn about CDPATH.
5546         (The Make Macro MAKEFLAGS): Untabify.  Problem reported by
5547         Ralf Wildenhues.
5549 2006-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5551         * doc/autoconf.texi (Configuration Actions): Remove duplicate
5552         `@var', for texi2html.
5553         (Systemology): Some more word wrapping, for DVI output.
5554         (autom4te Invocation): The short option for `--melt' is `-M',
5555         not `-m'.
5557 2006-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5559         * doc/autoconf.texi: More formatting and English tweaks,
5560         many suggested by Ralf Wildenhues.
5561         Reword to avoid "@code{...}'s" and the like, since it's ugly
5562         with Emacs info mode.  discontents -> woes.
5563         Put a few "will"s back.  time stamp -> timestamp.
5564         side-effect -> side effect.
5566 2006-06-14  Paul Eggert  <eggert@cs.ucla.edu>
5568         * doc/autoconf.texi (Initializing configure, Shell Substitutions):
5569         Warn about $@ not persisting.  Problem reported by Julien Danjou in
5570         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372179>.
5571         (Special Chars in Names): Renamed from Leading _ in Macro Names.
5572         Mention other special chars, too.
5574 2006-06-14  Eric Blake  <ebb9@byu.net>
5576         * doc/autoconf.texi (The Make Macro MAKEFLAGS): New node.
5578 2006-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5580         * doc/autoconf.texi: Some systematic minor improvements, as
5581         follows.  Use "makefile" when talking about makefiles
5582         generally (which might be named "makefile" or "Makefile" or even
5583         "foo.mk"), "Makefile" when talking about a specific makefile
5584         called "Makefile".  This unclutters the text from weird quotes
5585         (e.g., "`Makefile's" in info mode).  Similarly, use "@var{foo}
5586         values" rather than "@var{foo}s" and similar constructs containing
5587         "}s".  Use "Make rules" rather than "Makefile rules".  Minor
5588         English-language improvements.  Change the prefix "sub-" to "sub"
5589         and "re-" to "re".
5590         Put blank lines around examples more consistently.
5591         Avoid "rather" and "very" as intensifiers.
5592         Avoid "will" as an auxiliary.
5593         (Limitations of Make): Split this node into....
5594         (Portable Make, $< in Ordinary Make Rules, Failure in Make Rules):
5595         (Leading _ in Macro Names, Backslash-Newline-Newline):
5596         (Backslash-Newline Comments, Long Lines in Makefiles):
5597         (Macros and Submakes, The Make Macro SHELL, Comments in Make Rules):
5598         (obj/ and Make, make -k Status, VPATH and Make):
5599         (VPATH and Double-colon, $< in Explicit Rules):
5600         (Automatic Rule Rewriting, OSF/Tru64 Directory Magic):
5601         (Make Target Lookup, Single Suffix Rules, Timestamps and Make):
5602         New nodes, resulting from splitup of Limitations of Make.
5603         All cross-references changed.  Raise the top node from
5604         a section to a chapter, and all subnodes accordingly.
5605         Redo the introductory wording to match the new organization.
5606         (Installation Directory Variables): Use an example that is
5607         closer to what Autoconf actually does.  Mention that VPATH's
5608         value should not contain metacharacters or white space.
5609         (Fortran Compiler): Fix a VPATH bug in an example.
5610         (Leading _ in Macro Names): Mention that this problem is no longer
5611         of practical concern.
5612         (VPATH and Make): Reword the advice to make it clearer
5613         that Autoconf and Automake support VPATH in non-GNU make, but
5614         many packages have bugs in this area.
5615         ($< in Explicit Rules): Refer to Build Directories rather
5616         than using a (non-VPATH-safe) example.
5617         (Automatic Rule Rewriting): Mention the sort of disaster that
5618         can ensue with Solaris-style rule rewriting with VPATH.
5620 2006-06-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5622         * doc/install.texi (Compilers and Options): Weaken the
5623         suggestion to use GNU make for VPATH builds.
5625         * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
5626         AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
5628         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
5629         in regular expression.
5631 2006-06-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5633         * doc/autoconf.texi (Installation Directory Variables):
5634         Drop extra @samp from `@table @samp' item.
5635         (Limitations of Usual Tools): Comment fix.
5636         Do not nest @samp just to point to other table items.
5637         (Writing testsuite.at) <AT_CHECK>: The second argument to
5638         `@dvar' is already @samp'ed.
5639         (Making testsuite Scripts) <AC_CONFIG_TESTDIR>: Likewise,
5640         do not use @var in the second argument.
5642 2006-06-07  Paul Eggert  <eggert@cs.ucla.edu>
5644         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
5645         $as_shell.exe too.  Problem reported by Andreas Buening in
5646         <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
5648 2006-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5650         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
5651         `unused variable' compiler warning, for `-Wall -Werror'.
5652         Reported by Jaap Haitsma in
5653         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00012.html>.
5655 2006-06-06  Paul Eggert  <eggert@cs.ucla.edu>
5657         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
5658         case the compiler dumps core.  Problem reported for
5659         OpenServer 5.0.7 by Tim Rice in
5660         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
5661         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
5662         Likewise.
5664 2006-06-06  Tim Rice <tim@multitalents.net>.
5666         * lib/freeze.mk: Quiet check-forbidden-patterns so the string
5667         "ERROR" only shows up in "make check" output if there is an
5668         error.
5670 2006-06-06  Eric Blake  <ebb9@byu.net>
5672         * tests/tools.at (automatically allowed tokens): Fix typo.
5674 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
5676         * NEWS: Don't blame non-GNU VPATH compatibility issues on Automake.
5678         * doc/autoconf.texi (Integer Overflow): Mention that INT_MIN % -1
5679         typically overflows on x86 CPUs, even though the C standard
5680         requires otherwise.
5682 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5684         * configure.ac (AC_INIT): Bump to 2.59e.
5685         * NEWS: Update.
5687 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5689         Version 2.59d.
5691         * config/texinfo.tex: Sync from upstream.
5693         * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
5694         seen, invoke libtoolize with `--ltdl' argument.
5695         * lib/autom4te.in (Autoreconf-preselections): Adjust.
5696         * NEWS: Update.
5697         Suggested by Eric Blake.
5699 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
5701         * NEWS: Whoops!  AC_FUNC_STRNLEN isn't obsolescent.  Problem
5702         reported by Ralf Wildenhues.
5703         * doc/autoconf.texi (AC_FUNC_STRNLEN): Likewise.
5705 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5707         * THANKS: Update.
5709 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
5711         * doc/autoconf.texi: Modernize some of the references to Solaris.
5713 2006-06-05  Stepan Kasal  <kasal@ucw.cz>
5715         * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
5716         message issued by AC_REQUIRE.
5717         * tests/m4sugar.at: Check m4_require's error message.
5718         * tests/base.at: Check AC_REQUIRE's error message.
5719         * tests/local.at (AT_CHECK_M4): New macro, almost identical
5720         to...
5721         (AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
5722         AT_CHECK_M4.
5723         (AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
5724         `expout' as the last parameter.
5725         * tests/tools.at: Adapt to the above change.
5727 2006-06-04  Stepan Kasal  <kasal@ucw.cz>
5729         * doc/autoconf.texi (Limitations of Usual Tools): Correct
5730         information about race-free implementations of mkdir.
5732 2006-06-04  Eric Blake  <ebb9@byu.net>
5734         * bin/autoreconf.in (help): Document M4 environment variable.
5735         * bin/autoconf.as (Usage): Likewise.
5736         * bin/autom4te.in (help): Likewise.
5737         * doc/autoconf.texi (autom4te Invocation): Likewise.
5739 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
5741         * NEWS: GNU make now recommended for VPATH builds.
5742         Mention that some macros are now documented to be obsolescent.
5743         * doc/autoconf.texi:
5744         Prefer "current" to "modern" to describe
5745         currently-used (albeit perhaps old-fashioned) hosts.
5746         Mention which ancient features no longer need to be worried about.
5747         setgid -> set-group-ID
5748         setuid -> set-user-ID (these are the Posix terms)
5749         Fix some misuses of "only".
5750         (AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
5751         (AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
5752         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
5753         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
5754         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
5755         (AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
5756         (AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
5757         (AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
5758         (AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
5759         Mention that these macros are obsolescent.
5760         (Installation Directory Variables): shall -> should
5761         (File Descriptors): Mention that 0, 1, 2 might get reopened.
5762         Mention that it's now safe to use 3 and 4.
5763         (Limitations of Usual Tools): cp -r is now specified by Posix.
5764         Omit longwinded and obsolescent discussion of cp -f.
5765         Modernize discussion of expr, ls.
5766         (Limitations of Make): Modernize discussion of VPATH builds.
5767         Mention $? as a workaround in some cases.
5768         * doc/install.texi (Basic Installation):
5769         Mention "./configure; make; make install" first.  Be more
5770         specific about why this file is generic.  Remove unnecessary
5771         parens.  Remove misleading "only".  Remove obsolete advice
5772         about csh.  Don't say "configure" takes awhile; say it
5773         might take a while.  Suggest CFLAGS=-g rather than CFLAGS=-O2,
5774         and CC=c99 rather than CC=c89, as these are blessed by current
5775         Posix.  Recommend GNU make if doing a VPATH build.
5777 2006-06-03  Paul Eggert  <eggert@cs.ucla.edu>
5779         * doc/autoconf.texi: Use a consistent style "$ @kbd{...}" for
5780         examples involving shell prompts.
5782 2006-06-02  Stepan Kasal  <kasal@ucw.cz>
5783         and Paul Eggert  <eggert@cs.ucla.edu>
5785         * doc/autoconf.texi (Here-Documents): Add details about the
5786         pre-ksh93g bug.  Reword slightly to make it clearer.  Consistently
5787         use "here-documents" instead of "here documents".
5789 2006-06-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5791         * config/texinfo.tex, doc/standards.texi: Sync from upstream.
5793 2006-06-01  Paul Eggert  <eggert@cs.ucla.edu>
5795         * doc/autoconf.texi (File System Conventions): Warn about ":"
5796         anywhere in directory names.
5798 2006-05-31  Paul Eggert  <eggert@cs.ucla.edu>
5800         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be even more conservative
5801         about quoting the case statement, just in case.
5802         * doc/autoconf.texi (Here-Documents): Mention that the ksh bug
5803         was fixed in ksh93g; reported by Ralf Wildenhues.
5805 2006-05-31  Stepan Kasal  <kasal@ucw.cz>
5807         * doc/autoconf.texi (System Services): Do not document
5808         overriding EXEEXT via ac_cv_exeext=ext.
5809         (Particular Programs) <AC_PROG_MKDIR_P>:
5810         Document that ${MKDIR_P} understands --.
5811         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Improve the
5812         comment.
5814 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5816         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Guard against test
5817         argument with leading hyphen.  Problem reported by Paul Eggert.
5819 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
5821         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be more conservative
5822         about quoting ac_try: quote all of it, if any of it seems suspicious.
5823         This means we don't have to worry about ${ or sed any more.
5824         Also, double-quote the case statement, to work around misuses via
5825         underquoting as reported by Ralf Wildenhues in
5826         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00169.html>.
5827         (_AC_EVAL_STDERR): Revert, since evidently some packages rely on this
5828         undocumented and dangerous macro.
5829         Problem reported by Ralf Wildenhues in
5830         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00168.html>.
5832 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5834         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Check whether
5835         `dirname -- /' returns `/', for SunOS dirname scripts that escaped.
5836         Report by Sam Sirlin <sam@kalessin.jpl.nasa.gov>.
5838 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
5840         * lib/autoconf/general.m4: Revert AC_TRY_EVAL and AC_TRY_COMMAND,
5841         since evidently some packages rely on the old, broken behavior.
5842         Problem reported by Ralf Wildenhues in
5843         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00160.html>.
5844         (AC_TRY_EVAL, AC_TRY_COMMAND, _AC_EVAL): Go back to the
5845         pre-2006-05-26 definitions, but leave in the comments that
5846         these macros are dangerous and should not be used.
5847         (_AC_DO_ECHO): Renamed from _AC_EVAL_ECHO.  All callers changed.
5848         (_AC_DO): Renamed from _AC_EVAL.  All callers changed.
5849         (_AC_DO_STDERR): Renamed from _AC_EVAL_STDERR.  All callers changed.
5850         (_AC_DO_VAR): Renamed from AC_TRY_EVAL.
5851         (_AC_DO_TOKENS): Renamed from AC_TRY_COMMAND.
5853 2006-05-29  Paul Eggert  <eggert@cs.ucla.edu>
5855         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
5856         the use of 'tr', since this is our only use of 'tr'.
5858 2006-05-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5859         and Paul Eggert  <eggert@cs.ucla.edu>
5861         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
5862         Don't assume 'grep' works on long lines, since AIX grep doesn't.
5864 2005-05-28  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5866         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on
5867         the output file in the `${datarootdir}' test.
5869 2005-05-28  Stepan Kasal  <kasal@ucw.cz>
5870         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5872         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If we have not seen
5873         mention of `datarootdir' in the input file(s), but literal
5874         `${datarootdir}' in the output file, and we haven't warned yet,
5875         then warn as well: the user may have (erroneously) used
5876         `AC_SUBST([mydatadir], [$datadir/my])' instead of the correct
5877         `AC_SUBST([mydatadir], ['${datadir}/my'])'.
5878         * tests/torture.at (datarootdir workaround): Extend this test.
5879         * NEWS: Update.
5881 2006-05-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5882         and Paul Eggert  <eggert@cs.ucla.edu>
5884         * doc/autoconf.texi (autoheader Invocation): The first argument to
5885         `AC_DEFINE_UNQUOTED' need not be a literal.  Mention the
5886         alternatives and clear up the language a bit.
5888 2006-05-27  Paul Eggert  <eggert@cs.ucla.edu>
5890         * NEWS: Reword notice for AC_TRY_COMMAND, AC_TRY_EVAL,
5891         ac_config_guess, ac_config_sub, ac_configure.
5892         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
5893         Fix typo that prevented an unnecessary space from being removed.
5894         Problems reported by Ralf Wildenhues in:
5895         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00143.html
5897 2006-05-26  Paul Eggert  <eggert@cs.ucla.edu>
5899         * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
5900         Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
5901         Don't use the term "thread-safe" to talk about mkdir race
5902         conditions, since the problem is more a process than a thread
5903         issue.  Problem reported by Stepan Kasal in:
5904         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
5905         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
5906         the test for 'install' more closely.  Look at MKDIR_P first.
5907         Look in the PATH, and at /opt/sfw/bin.
5908         Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
5909         Don't bother to try mkdir -p, since we already check mkdir --version;
5910         just look at the version number.  (There's no easy way to check
5911         for race-free implementations.)
5912         * tests/tools.at (autoconf: subdirectories): Adjust to above
5913         changes, since MKDIR_P now might end in "/mkdir -p".
5915         * doc/autoconf.texi (autoheader Invocation): Mention that the
5916         first arg of AC_DEFINE_UNQUOTED must be a literal.
5917         Problem reported by Ben Pfaff in
5918         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00090.html>.
5920         * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
5921         * doc/autoconf.texi (Special Chars in Variables): New section.
5922         (Preset Output Variables): Warn about special chars in CPPFLAGS.
5923         (Installation Directory Variables): Quote $(datadir) better.
5924         (Limitations of Builtins): Describe some of eval's trickiness.
5926         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
5927         * lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
5928         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
5929         in front of every arg, not just trailing args.  Quote apostrophes.
5930         (_AC_EVAL_ECHO): New macro.
5931         (_AC_EVAL, AC_EVAL_STDERR): Use it.  Quote arg of eval.
5932         (AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
5933         removed.
5934         (_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
5935         exposed by quoting of eval argument.  Put the command on line line
5936         so it logs better.
5937         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
5938         (_AC_PATH_X, AC_PATH_X): Quote more safely.
5939         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
5940         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
5941         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
5942         Handle special chars in prefix, ac_srcdir, ac_aux_dir.
5943         Use eval more safely.
5944         (_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
5945         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
5946         to be replaced.
5947         * tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
5948         lines, exposed by quoting of eval argument.
5950 2006-05-26  Stepan Kasal  <kasal@ucw.cz>
5951         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5953         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
5954         initialization of `ac_cv_exeext', do not override it if it was
5955         already set, unless it was set to `no', for compatibility with
5956         Autoconf-2.13, and comment this.
5957         Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
5958         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
5959         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
5960         * doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
5961         Document that this test may be overridden by setting
5962         `ac_cv_exeext'.
5964 2006-05-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5966         Revert these two patches:
5968         2006-04-06  Eric Blake  <ebb9@byu.net>
5969         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
5970         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
5971         2006-04-01.
5973         2006-04-01  Stepan Kasal  <kasal@ucw.cz>
5974         Clean up _AC_COMPILER_EXEEXT* macros.
5975         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
5976           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
5977           ac_file to the name of the default output file and call
5978           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
5979           initial `rm' of the candidate files...
5980         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
5981           the same list in subsequent `rm' calls, and for the temporary
5982           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
5983           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
5984         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
5985         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
5986           no longer needed) by libtool.  Make it a cache check.
5987         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
5988           copied here by mistake.
5989         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
5990           _AC_COMPILER_EXEEXT.
5991         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
5992           _AC_COMPILER_OBJEXT directly.
5993         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
5995 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5997         * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
5998         Fix description of how the buggy `sed' works.
6000 2006-05-25  Noah Misch  <noah@cs.caltech.edu>
6002         Sync from Automake:
6004         * lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
6005         ENOLCK.  Only mention `make -j' when applicable.  Only raise
6006         fatal errors when `make -j' is involved.  Improve error message.
6008 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6010         * doc/autoconf.texi (Here-Documents): We now know more about
6011         the variable expansion in here documents bug.
6012         Thanks to Tim Rice and Stepan Kasal.
6014         * doc/autoconf.texi (Making testsuite Scripts): Add an example
6015         how to use TESTSUITEFLAGS.  Suggested by Eric Blake.
6017 2006-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6019         * tests/autotest.at (Multiline command from M4 expansion):
6020         No failure to be expected if the shell quotes newlines in
6021         commands in the `set -x' output.  Report by Tim Rice.
6022         * THANKS: Update.
6024 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6026         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
6027         expansion in the here-documents used by config.status, as that
6028         runs afoul of the Korn shell version M-12/28/93d bug described in
6029         the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
6030         fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
6031         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
6033 2006-05-23  Jim Meyering  <jim@meyering.net>
6035         * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
6036         Fix typo introduced with 2006-04-02 change.  It reversed the sense
6037         of the test.
6039 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6041         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
6042         ac_dB slightly, to save bytes in the script.
6043         Max out at 50 lines, rather than 96; this is more likely
6044         (though not guaranteed) to avoid obscure 'sed' failures.
6046 2006-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6048         * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
6049         `tr -d -' as bad option argument.  Work around this by deleting
6050         an unrelated character.
6051         Report by Tim Rice <tim@multitalents.net>.
6053 2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>,
6054             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
6055             Stepan Kasal  <kasal@ucw.cz>
6057         * doc/autoconf.texi (Particular Programs): Do not promise that
6058         we always prefer the GNU version of the program, and that we
6059         search according to PATH; both rules can have exceptions.
6060         Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
6061         AC_PROG_SED.  Move descriptions of limitations
6062         to the Limitations of Usual Tools section.
6063         (Limitations of Usual Tools) <sed>: Mention script length
6064         limitations with Solaris /usr/ucb/sed.
6065         <grep>: Fix wording for empty alternative.  Mention that -c and
6066         -l should not be combined, and that -E and -F should not be
6067         combined.
6069 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6070         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6072         * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
6073         limits in Solaris 8 /usr/ucb/sed by testing a long script.
6075 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
6077         * doc/autoconf.texi (Defining Symbols): Literal parameter of
6078         AC_DEFINE is now passed to m4_pattern_allow.
6079         * NEWS: Mention that; likewise for AC_SUBST.
6080         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
6081         the parameter to m4_pattern_allow.
6082         * tests/tools.at: Add a check for that.
6084 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
6086         * lib/autoconf/status.m4: Fix typos.
6088 2006-05-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6090         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
6091         only the files that this macro generates.
6093 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6095         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
6096         the HP-UX sed limitation of 99 commands, labels do not count.
6097         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
6098         in the comment.
6099         (_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
6101 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6103         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
6104         Import the following fix from coreutils:
6106         2006-01-13  Jim Meyering  <jim@meyering.net>
6108         Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
6109         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
6110         not double-quote uses of that variable, to accommodate the rare
6111         case in which getmntent is available in none of the libraries
6112         checked.  This happens at least on FreeBSD 5.0.
6114 2006-05-20  Paul Eggert  <eggert@cs.ucla.edu>
6116         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
6117         ac_config_guess, ac_config_sub, and ac_configure, since evidently
6118         some other programs unwisely rely on these undocumented vars.
6119         But put in warning comments about them.
6120         Problem reported by Ralf Wildenhues in
6121         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
6122         * NEWS: Document that these variables are intended to go away.
6124 2006-05-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6126         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
6127         and set the language to C++ (analogous to the equivalent Fortran
6128         tests).
6130         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
6131         * doc/autoconf.texi (C++ Compiler): Document it.
6132         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
6133         * NEWS: Update.
6135 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6137         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
6138         that caused config.status to generate 100-command sed scripts; the
6139         portable limit is 99.
6141 2006-05-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6143         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
6144         variable `ac_d' instead of `d' to avoid infringing namespace.
6145         Report by Ralf Menzel.
6147 2006-05-18  Paul Eggert  <eggert@cs.ucla.edu>
6149         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
6150         $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
6151         * tests/tools.at (autoconf: subdirectories): New test, taken from
6152         the corresponding problem report by Ralf Wildenhues in:
6153         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
6155         * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
6156         Quote some uses of shell variables if they might suffer unexpected
6157         globbing.  This doesn't fix all instances of quoting problems that
6158         I found, just the easy ones that look safe.
6159         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
6160         (AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
6161         (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
6162         (AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
6163         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
6164         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
6165         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
6166         Likewise.
6167         * lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
6168         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
6170 2006-05-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6172         * bin/autoreconf.in ($help): Reword according to the manual.
6173         Suggested by Olly Betts.
6175 2006-05-17  Olly Betts  <olly@survex.com>  (tiny change)
6176         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6178         * bin/autoreconf.in: Pass the directory argument to
6179         `require_configure_ac'.  Fix comment.
6180         * tests/torture.at (Configuring subdirectories): Expose this.
6181         Reported by Olly Betts.
6183 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6185         * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
6186         lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
6187         Automake as follows:
6189         * lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
6190         `$configure_in' instead of `configure.in', to preserve
6191         directory component.
6193 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6195         * config/config.guess, config/config.sub, config/texinfo.tex,
6196         doc/make-stds.texi, doc/standards.texi: Sync from upstream.
6198 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
6200         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
6201         test for C99 conformance; (bool) 0.5 is an integer constant
6202         expression, but (bool) -0.5 is not.  Problem reported by Fedor
6203         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
6205 2006-05-13  Paul Eggert  <eggert@cs.ucla.edu>
6207         * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
6208         sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
6209         Warn about obsolete install-sh files.  Remove stray sentence
6210         fragment and fix cross reference.
6211         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
6212         install -d; this undoes the 2006-05-10 change.
6213         (MKDIR_P): Mark with AN_MAKEVAR.
6214         (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
6215         that we don't require $INSTALL to be thread-safe.  Move comments
6216         out of generated code.  Require AC_CONFIG_AUX_DIR_DEFAULT instead
6217         of AC_PROG_INSTALL.  Output a message saying that we're checking
6218         mkdir -p.  Set MKDIR_P rather than mkdir_p.  Do special magic for
6219         MKDIR_P instead of AC_SUBST.
6220         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
6221         Special magic for MKDIR_P, too.
6222         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
6223         a dnl.
6224         * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
6226 2006-05-11  Paul Eggert  <eggert@cs.ucla.edu>
6228         Sync from Automake, as follows:
6230         2006-05-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6231         * config/install-sh: Initialize IFS, so field splitting isn't
6232         turned off later.
6233         * config/mkinstalldirs: Likewise.
6234         * config/missing: Remove superfluous quotes.  Replace all uses of
6235         `[' by `test', for consistency, and for..
6236         * config/missing (sed_minuso, sed_output): New variables.
6237         (autom4te, help2man, makeinfo): Use them.  Unifies detection of
6238         `-o FILE', `--output FILE', `--output=FILE', stricter regex.
6239         Fixes `missing' to detect `--output' for help2man.  Fixes
6240         PR automake/483.  Report by Dennis J. Linse.
6241         (autom4te): Document in `missing --help'.
6243 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6245         * NEWS: New macro AC_PROG_MKDIR_P.  AS_MKDIR_P is now more robust.
6246         * config/install-sh: Don't use 'path' to talk about file names,
6247         as per GNU coding standards.  Close a race condition reported by Ralf
6248         Wildenhues and Stepan Kasal.  There is still a race condition
6249         on hosts that predate Posix 1003.1-1992, but we can't help this.
6250         Don't mishandle weird characters like space on pre-Posix hosts.
6251         Invoke mkdir at most once per dir arg on pre-Posix hosts.
6252         * doc/autoconf.texi (Programming in M4sh): Cross-reference to
6253         AC_PROG_MKDIR_P from AS_MKDIR_P.
6254         (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
6255         from mkdir.  Mention that Autoconf 2.60 install-sh is safe but
6256         earlier editions are not (including Automake 1.8.3).
6257         Do not suggest mkinstalldirs for thread-safety.
6258         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
6259         that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
6260         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
6261         presence of special characters and race conditions.
6262         * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
6263         in Autoconf's name space.
6265 2006-05-10  Bruno Haible  <bruno@clisp.org>
6266         and Paul Eggert  <eggert@cs.ucla.edu>
6268         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
6269         from Automake with minor changes.
6270         * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
6272 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6274         * config/install-sh: Update to Automake CVS version, as follows:
6275         2006-04-25  Stepan Kasal  <kasal@ucw.cz>
6276         * lib/install-sh: Simplify the expr implementation of dirname.
6277         2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
6278         * lib/install-sh: Handle --, and diagnose unknown options.
6280 2006-05-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6282         * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
6283         `./autom4te' to create `./testsuite', since the `all' target
6284         will ensure its presence, but `installcheck' should not create
6285         the uninstalled wrappers.
6287         * tests/torture.at (Unusual Automake input files): Skip if we
6288         detect automake < 1.8.
6290 2006-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6292         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
6293         is set to `no', then that overrides and sets ac_cv_prog_cc_c89
6294         and ac_cv_prog_cc_c99 to `no', for backward compatibility.
6295         * NEWS: Update.
6297 2006-05-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6299         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
6300         munge (multiple) white space and other oddities.
6301         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
6302         single quotes in variable assignment.
6303         (AC_ARG_VAR, configure invocation): Adjust tests to expose this
6304         and similar failures by adding multiple spaces, tabs, and other
6305         special characters.
6306         Report and different test suggested by Francesco Romani
6307         <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
6309         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
6310         single quotes, we only need to search for single quotes; this
6311         both simplifies the search pattern, and makes us less
6312         susceptible to `echo' variations for arguments not containing
6313         single quotes.
6314         (_AC_ARG_VAR_VALIDATE): Likewise.
6316 2006-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6318         * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
6319         `$*' and IFS concatenation issue with traditional shells and
6320         bash-2.04.  Report by Seanster@Seanster.com.
6322 2006-05-03  Bruno Haible  <bruno@clisp.org>
6324         * doc/autoconf.texi (Limitations of Usual Tools): Identify more
6325         precisely which Mac OS X versions have the od problem.
6327 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
6329         * doc/autoconf.texi: Use @option systematically.
6331 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
6332         and Bruno Haible  <bruno@clisp.org>
6334         * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
6335         about 'od'.
6336         (Integer Overflow): Mention the special case of integer division
6337         overflow.
6339 2006-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6341         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
6342         traditional shells like the Solaris one that do not use the
6343         first IFS character for assembling `$*'.
6344         Prompted by a related report from autoconf_bug@nro.ca.
6346 2006-05-01  Paul Eggert  <eggert@cs.ucla.edu>
6347         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6349         * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
6350         Mention more problems with the -e option.
6352 2006-04-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6354         * NEWS: Typo.
6355         * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
6357         * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
6358         in URLs to improve DVI formatted output (requires texinfo 4.6).
6359         (System Services, Systemology, Shellology): Likewise.
6360         (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
6361         output.
6363         * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
6364         continuous text.
6365         (Runtime): Fix macro argument names to match description:
6366         `action-if-found' -> `action-if-true' and similarly.
6367         (Obsolete Macros): Likewise.
6368         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
6369         (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
6370         (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
6372 2006-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6374         * doc/autoconf.texi (Limitations of Make): Clean up markup.
6376         * ChangeLog: Typo.
6377         * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
6378         DVI output.
6380 2006-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6382         * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
6383         /bin/sh set unsorted output.
6384         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
6385         * tests/local.at: Likewise.
6387 2006-04-26  Paul Eggert  <eggert@cs.ucla.edu>
6389         * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
6390         (Integer Overflow, Null Pointers, Buffer Overruns):
6391         (Floating Point Portability, Exiting Portably): New sections.
6392         (Writing Test Programs): Fix some langauge.  Recommend exiting
6393         with status 1, not merely nonzero.  Clarify exit declaration.
6394         (Run Time): Move C exit status stuff to new Exiting Portably section.
6395         (Systemology): Mention Posix and levenez.  Update v7 reference.
6396         (Portable Shell): Mention the Posix shell.
6398 2006-04-25  Stepan Kasal  <kasal@ucw.cz>
6400         * bin/autoconf.as (me): Replace by as_me.
6402 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6404         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
6405         since as_me isn't set yet.
6407 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
6409         Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
6410         a few minor bugs in this area.
6412         * doc/autoconf.texi (Programming in M4sh): Comment out the
6413         documentation of AS_BASENAME, for now.
6414         (Shell Substitutions): Do not use AS_DIRNAME in an example.
6415         (Limitations of Builtins) <basename>: Do not refer to
6416         AS_BASENAME.
6417         * bin/autoconf.as (me): Don't use AS_BASENAME.
6418         (dir): Remove the unused variable.
6419         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
6420         AS_DETECT_REQUIRED.  All uses changed.
6421         (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
6422         All uses changed.
6423         (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
6424         (AS_BASENAME): Use "basename --" to protect against leading "-".
6425         (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR.  All uses changed.
6426         (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED.  All uses changed.
6427         (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
6428         (_AS_DIRNAME_PREPARE): Likewise.
6429         (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR.  All uses changed.
6430         (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED.  All uses changed.
6431         (AS_DIRNAME): Use "dirname --".
6433 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
6435         * doc/autoconf.texi (Runtime): Renamed from "Run Time".  All uses
6436         of "run time" and "run-time" changed to "runtime", for consistency.
6437         * lib/autoconf/fortran.m4: Likewise (in comment).
6438         * lib/autoconf/functions.m4: Likewise.
6439         * lib/autoconf/general.m4: Likewise.
6440         * lib/autoconf/headers.m4: Likewise.
6442         * doc/autoconf.texi (Run Time): Document the exit status situation
6443         with more accuracy and detail.
6445 2006-04-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6447         * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
6448         Archive is not officially `GNU' any more.  Update URL.
6449         (Defining Directories): Likewise
6450         * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
6452 2006-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6454         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
6455         newline from the `trap' code to finish `config.log'; the NetBSD
6456         /bin/sh resets the exit status after an empty command, as
6457         documented in doc/autoconf.texi.
6458         Reported by Dalibor Topic <robilad@kaffe.org>.
6460 2006-04-19  Paul Eggert  <eggert@cs.ucla.edu>
6462         * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
6463         Suggested by Bruno Haible.
6465 2006-04-18  Paul Eggert  <eggert@cs.ucla.edu>
6467         * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
6468         some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
6469         Instead, just list the shells that we know work.
6470         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg.  All uses
6471         changed.  Be more cautious about the _cv_ variable.
6472         * tests/tools.at (Syntax of the shell scripts): Check the
6473         _cv_ variable once, at first, to avoid an internal autoconf error
6474         when sh -n does not work.
6476 2006-04-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6478         * lib/Autom4te/FileUtils.pm: Sync from Automake.
6480 2006-04-16  Paul Eggert  <eggert@cs.ucla.edu>
6482         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
6483         use ">&-" since we're only 99.999% sure that this is portable,
6484         and since the MinGW bug is fixed in a different way.
6485         * lib/autotest/general.m4 (AT_INIT): Likewise.
6487 2006-04-16  Stepan Kasal  <kasal@ucw.cz>
6489         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
6490         before opening config.log, to avoid hitting a bug on MinGW.
6492 2006-04-14  Paul Eggert  <eggert@cs.ucla.edu>
6494         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
6495         AS_MESSAGE_LOG_FD before reopening it onto the log file.
6496         This works around a MinGW bug reported by Eric Paire.
6497         Make sure that all writes to the log file append to it,
6498         rather than possibly losing data.
6499         * lib/autotest/general.m4 (AT_INIT): Likewise.
6501 2006-04-14  Stepan Kasal  <kasal@ucw.cz>
6503         * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
6504         description.
6506 2006-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6508         * NEWS: Update.
6510         * configure.ac (AC_INIT): Bump to 2.59d.
6512 2006-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6514         Version 2.59c.
6516         * Makefile.maint (news-date-check): Do not require a leading `*'
6517         before the release date in NEWS.
6519 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
6520         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6522         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
6523         the instantiated file do not contain the string 'datarootdir'
6524         but contain @datadir@, @docdir@, @infodir@, @localedir@, or
6525         @mandir@, replace the reference '${datarootdir}' by the value.
6526         * tests/torture.at (datarootdir workaround): New test.
6527         * NEWS: Advertise this temporary fixup.
6528         Based on a patch by Bruno Haible, reported and analyzed by
6529         Paul Eggert and Noah Misch.
6531 2006-04-12  Eric Blake  <ebb9@byu.net>
6533         * tests/autotest.at (Debugging a failed test): Fix comment.
6535 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
6537         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
6538         all the changes since 2006-04-07.
6540 2006-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6542         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
6543         succeeded, but `ln -s file dir' failed, take care to remove the
6544         leftover target before the next test, to prevent its spurious
6545         failure; also make sure `ln file dir' works before selecting it.
6546         Thanks to Keith Marshall for pointing this out.
6547         * THANKS: Update.
6549         * lib/autotest/general.m4 (AT_INIT): Store quoted variable
6550         assignments in `at_debug_args', so that we put them correctly
6551         in the `run' script.
6552         * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
6553         Reported by Eric Blake.
6555 2006-04-11  Eric Blake  <ebb9@byu.net>
6557         * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
6558         top-level tests after micro-suite has been run.   Used in...
6559         (Debugging a successful test, Debugging script and environment),
6560         (Debugging a failed test): ...these new tests.  The first of these
6561         is fixed by...
6562         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
6563         macro, split out from...
6564         (AT_INIT): ...here, so that using -d also generates a run script.
6565         Document that -d inhibits top-level logging.
6566         * doc/autoconf.texi (testsuite Invocation): Document that -d only
6567         inhibits top-level logging; debug scripts are created.
6569         * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
6570         check.
6571         * tests/autotest.at (Empty test, Empty check): New test to check it.
6573         * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
6574         from gcc.
6576 2006-04-10  Stepan Kasal  <kasal@ucw.cz>
6578         * tests/mktests.sh: Use "trap '' 0", not "trap 0".  Do not touch
6579         the files if a problem appears.  Make the empty *.at files
6580         read-only, too.  Proposed by Ralf Wildenhues.
6582 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6584         * config/Makefile.am: Add comment to force updated Makefile.in.
6586         * lib/freeze.mk: Fix typo in comment.  Unlike the last, white
6587         space only patch to this file, this patch causes the Makefile.in
6588         files that include freeze.mk to be updated, and thus have a
6589         newer time stamp again, which in turn makes a pristine CVS
6590         checkout have correct time stamps.
6592         * Makefile.maint (cvs-sv): New macro, to be used..
6593         (config.guess-url_prefix, config.sub-url_prefix)
6594         (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
6595         point to CVS text checkout of Gnulib files.
6596         (copyright-check): Bump current year.
6597         (announcement): Do not hard-wire `./announce-gen'.
6598         (cvs-update): Propagate failures of `cvs' and `move-if-change'
6599         correctly.
6600         * Makefile.cfg (executable-update): Use `chmod a+x' instead of
6601         `chmod +x'.
6602         (wget_files): Update config.guess, config.sub, texinfo.tex by
6603         `wget-update', now that their URLs work again.
6605 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
6607         * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
6608         Problem noted by Paul D. Smith.
6610 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6612         * doc/autoconf.texi: Remove unused words from word list.
6613         * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
6614         .x-sc_trailing_space: New files.
6616         * doc/standards.texi: Sync from gnulib.
6618         * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
6619         `LIBOBJDIR' as experimental.
6621         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
6622         with a target directory; it's internally implemented as `cp'
6623         anyway, but since Autoconf advertises the possibility to use
6624         a target directory when LN_S is `ln -s', we need to find out.
6625         Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
6626         analyzed by Keith Marshall <keith.marshall@total.com>.
6628         * THANKS: Update.
6630 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
6632         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
6633         confdefs.h as-is.  In general, if it has backslash-newline or the
6634         like, then it doesn't work either to sort or to remove empty
6635         lines.
6637 2006-04-09  Stepan Kasal  <kasal@ucw.cz>
6639         * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
6641 2006-04-09  Alexandre Duret-Lutz  <adl@gnu.org>
6643         * lib/autom4te.in (Automake-preselections): Preselect
6644         _AM_SUBST_NOTMAKE.
6646 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6648         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
6649         apostrophe within a single-quoted string, as this is the usual
6650         tradition and is easier to read than '"'"'.  Don't rely on the
6651         shell treating "$/" like '$/'.  Use a more-consistent indenting
6652         style for the trap.
6654 2006-04-09  Eric Blake  <ebb9@byu.net>
6656         * tests/autotest.at (Backquote command substitution),
6657         (Multiline backquote command substitution): Remove mistaken
6658         AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
6659         applied...
6660         (Parenthetical command substitution, Multiline parenthetical
6661         command substitution): here.
6663 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6665         Import macros from gnulib (often changing their name).
6667         * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
6668         New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
6669         AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
6670         AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
6671         AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
6672         AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
6673         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
6674         AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
6675         AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
6676         AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
6677         The manual mentions Gnulib more prominently.
6678         * doc/autoconf.texi (Gnulib): New node.
6679         (Pointers): Add Gnulib URL.
6680         (Particular Functions): Alphabetize.  Add AC_FUNC_STRTOLD.
6681         (Generic Functions): Add AC_CHECK_FUNCS_ONCE.  Refer to new
6682         Gnulib section.
6683         (Particular Headers): Add AC_HEADER_ASSERT.  For stdbool.h,
6684         suggest a #define rather than a typedef for _Bool, and mention
6685         Gnulib rather than trying to substitute stdbool code.
6686         (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
6687         (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
6688         (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
6689         AC_STRUCT_DIRENT_D_TYPE.
6690         (Particular Types): Mention stdint.h and inttypes.h as standard
6691         headers too.
6692         Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
6693         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
6694         AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
6695         AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
6696         AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
6697         (C Compiler): Move AC_C_LONG_DOUBLE to ...
6698         (Obsolete Macros): here.  Under AC_LONG_DOUBLE, mention
6699         AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
6700         (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
6701         (Coding Style).  Don't mention m4_expand_once.
6702         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
6703         AC_TYPE_LONG_DOUBLE_WIDER.  Now obsolete.
6704         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
6705         (AC_CHECK_FUNCS): Use it.
6706         (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
6707         (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
6708         * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
6709         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
6710         (AC_HEADER_ASSERT): New macro.
6711         (AC_HEADER_STDBOOL): Don't assume "#error" works.
6712         Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
6713         Catch a bug in an HP-UX C compiler.
6714         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
6715         * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
6716         (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
6717         (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
6718         (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
6719         (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
6720         New macros.
6722         * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
6723         use /^foo|bar$/, it does not mean /^(foo|bar)$/.
6725 2006-04-08  Stepan Kasal  <kasal@ucw.cz>
6727         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
6728         of the warning introduced by the 2001-08-28 change.
6730 2006-04-08  Stepan Kasal  <kasal@ucw.cz>,
6731             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6733         * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
6734         variables shall be overriden by the cache.
6735         * tests/torture.at (AC_ARG_VAR): Test also with a first value
6736         that contains braces.
6738 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
6740         Revert the patch from 2006-04-01 and only improve
6741         _AS_DETECT_BETTER_SHELL:
6743         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
6744         skip nonexistent directories.
6745         (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
6746         only shell candidates which exist.
6747         (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
6748         * lib/autotest/general.m4 (AT_INIT): No need to give three
6749         parameters to _AS_PATH_WALK.
6751 2006-04-07  Stepan Kasal  <kasal@ucw.cz>,
6752             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6754         * bin/autoupdate.in (handle_autoconf_patches): Change the way we
6755         distinguish m4sugar macros.
6756         * tests/tools.at (autoupdating with aclocal and m4_include):
6757         New test.  Bug reported by Gary V. Vaughan <gary@gnu.org>,
6758         test case by Noah Misch <noah@cs.caltech.edu>.
6760 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
6762         Revert my change from 2006-03-17, in other words:
6763         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
6764           and DUALCASE=1.
6765         (AS_SHELL_SANITIZE): Remove DUALCASE=1.
6766         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
6767           it is set.
6769 2006-04-07  Eric Blake  <ebb9@byu.net>
6771         * doc/autoconf.texi (Programming in M4sh): Document that
6772         AS_MKDIR_P exits the script on failure.
6773         * lib/autotest/general.m4: Remove redundant AS_ERROR.
6775 2006-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6777         * config/elisp-comp, config/install-sh, config/mdate-sh,
6778         config/missing, config/mkinstalldirs: Sync from Automake.
6780         * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
6781         from Automake.
6783         * doc/make-stds.texi: Sync from gnulib.
6785 2006-04-06  Eric Blake  <ebb9@byu.net>
6787         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
6788         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
6789         2006-04-01.
6791 2006-04-06  Stepan Kasal  <kasal@ucw.cz>,
6792             Eric Blake  <ebb9@byu.net>,
6793             Paul Eggert  <eggert@cs.ucla.edu>,
6794             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6796         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
6797         whether `set' quotes correctly: redirect stderr of the tested
6798         `set', and use a subshell, for Ultrix; use `sed' instead of
6799         `grep' for zsh `set' which may write binary output; match only
6800         at the beginning of a line, to avoid false positives.
6801         In order to avoid false positives by unrelated variables with
6802         multiline content, put the dump algorithm in a subshell and
6803         unset all variables containing newlines (except some which are
6804         special to the shell).  Warn about cache variables that are
6805         unset.
6807 2006-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6809         * config/config.guess, config/config.sub, config/texinfo.tex:
6810         Sync from upstream.
6812         * tests/mktests.sh: Reword comments.
6814         * tests/mktests.sh: Only skip internal macros starting with
6815         `_AC_' or `__AC_'.  Noted by Stepan Kasal.
6816         Update exclusion lists for the test suite to this end:
6817         (AC_ARG_VAR): Do test this now.
6818         (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
6819         (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
6820         (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
6821         (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
6823         * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
6824         shell issue with double-quoted command substitutions of native
6825         commands.
6826         Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
6827         Marshall.
6829         * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
6830         no file matches the glob, discard the warning, set `nullglob'.
6831         (syntax-check): Likewise.
6832         (sc_cast_of_x_alloc_return_value): Likewise.
6833         (sc_cast_of_alloca_return_value, sc_error_exit_success)
6834         (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
6835         (m4-check): Likewise.
6836         (sc_system_h_headers): Do not print rule on execution.
6837         (sc_tight_scope): Do not fail for non-existing `src' directory.
6838         (sc_changelog): Skip the Copyright footer.
6839         * lib/autoconf/lang.m4: Remove trailing space.
6841         * lib/autoconf/status.m4: More replacements to
6842         <tab><space> where this makes sense.
6844 2006-04-06  Stepan Kasal  <kasal@ucw.cz>
6846         * tests/Makefile.am (maintainer-check-posix):
6847           s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
6849         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
6850           ac_config_<foo>s again, sometimes normalized, sometimes not.
6851         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
6852         (AC_CONFIG_COMMANDS): Do not do so here.
6853         (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
6854           and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
6855           2005-07-25 rewrite.  Noticed by Noah Misch.
6857         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
6858           _AC_PRESERVE_HELP_ORDER, ...
6859         (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
6861         * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
6862           inside m4_expand_once; it is redundant.
6864         * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
6865           for --help from Cygnus `configure.'
6867 2006-04-06  Paul Eggert  <eggert@cs.ucla.edu>
6869         * doc/autoconf.texi (C Compiler): Warn about #error.  Follows up
6870         on a patch proposed by Ralf Wildenhues.
6872 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
6874         * lib/autoconf/status.m4: Replace <space>''<tab> with
6875         <tab><space> where this makes sense.
6877 2006-04-05  Howard Chu  <hyc@highlandsun.com>  (trivial change)
6878             Noah Misch  <noah@cs.caltech.edu>
6880         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
6881         (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
6882         * doc/autoconf.texi (Help Formatting): New node.
6883         * NEWS: Announce AC_PRESERVE_HELP_ORDER.
6885 2006-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6887         * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
6888         lib/autoconf/specific.m4, lib/autoconf/status.m4,
6889         lib/autoconf/types.m4, lib/autotest/general.m4,
6890         tests/mktests.sh, tests/torture.at: White space cleanup:
6891         remove some SPACE before TAB, or add quoting ('' or @&t@).
6893         * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
6895         * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
6897 2006-04-05  Eric Blake  <ebb9@byu.net>
6899         * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
6900         empty test suite works.
6901         * tests/autotest.at (Empty test suite): Remove xfail.
6903 2006-04-05  Noah Misch  <noah@cs.caltech.edu>
6905         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
6906         TAGS to ac_config_<foo>s.
6907         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
6908         (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
6909         normalizing it, consistent it with previous releases.
6910         * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
6912 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
6914         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
6915         Use simplified args that Eric Blake originally suggested.
6917 2006-04-04  Paul Eggert  <eggert@cs.ucla.edu>
6919         * tests/mktests.sh: Don't use 'cat'; just read the files directly.
6920         Prefer 'sort -u' to 'sort | uniq'.  Filter data before sorting it.
6921         Use 'comm' rather than N instances of grep; this also fixes a bug
6922         whereby substrings were incorrectly matched, causing us to not
6923         generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
6924         (exclude_list): Exclude empty macros.
6925         (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
6927         Use awk rather than grep -E or egrep, to avoid
6928         portability problems with regular expressions containing newlines.
6929         (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
6930         Switch from grep to awk syntax.
6931         (ac_exclude_script): Renamed from ac_exclude_egrep.
6932         (au_exclude_script): Renamed from au_exclude_egrep.
6934 2006-04-04  Noah Misch  <noah@cs.caltech.edu>
6936         * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
6937         a subdirectory subject to Cygnus `configure'.
6938         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
6940         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
6941         report request when we have no AC_PACKAGE_BUGREPORT.
6943 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6945         * THANKS: Update.
6947         * tests/mktests.sh: Update copyright year in the header of the
6948         generated files.
6950         * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
6951         (AC_C_RESTRICT): Likewise.  Furthermore, add a function with a
6952         typedef'ed restricted pointer, to catch a compiler bug on
6953         HP-UX 11.x, and fix warnings so it passes with -Werror.
6954         (_AC_PROG_CC_C99): Likewise.
6955         Reported by Albert Chin <china@thewrittenword.com>.
6956         * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
6958 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
6960         * bin/autoscan.in (subdirs): New global.
6961         (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
6962         (output): Emit AC_CONFIG_SUBDIRS as needed.
6963         * tests/autoscan.at (autoscan): Remove XFAIL.
6965 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
6967         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
6969 2006-04-03  Eric Blake  <ebb9@byu.net>
6971         * THANKS: Add myself.
6973 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6975         * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
6976         to log, point to testsuite output tree.
6978 2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
6980         * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
6981         * doc/autoconf.texi (Function Portability): Mention that C++
6982         has trouble with 'exit'.
6983         (Guidelines): Test programs shouldn't use 'exit'.
6984         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
6985         Remove; all uses removed.
6986         (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
6987         Return from 'main' instead of calling 'exit'.
6988         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
6989         (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
6990         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
6991         (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
6992         (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
6993         (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
6994         (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
6995         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
6996         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
6997         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
6998         * tests/compile.at: Likewise.
7000 2006-04-02  Pavel Roskin  <proski@gnu.org>
7002         * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
7004 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
7006         Clean up _AC_COMPILER_EXEEXT* macros.
7008         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
7009           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
7010           ac_file to the name of the default output file and call
7011           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
7012           initial `rm' of the candidate files...
7013         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
7014           the same list in subsequent `rm' calls, and for the temporary
7015           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
7016           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
7017         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
7018         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
7019           no longer needed) by libtool.  Make it a cache check.
7020         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
7021           copied here by mistake.
7022         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
7023           _AC_COMPILER_EXEEXT.
7024         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
7025           _AC_COMPILER_OBJEXT directly.
7026         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
7028 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
7030         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
7031         (AS_DIRNAME): Use it.
7032         (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
7034         * tests/*.at: Remove the generated ones.
7036 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
7038         * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
7040 2006-04-01  Eric Blake  <ebb9@byu.net>
7042         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
7043         directories, unless optional third argument supplied.
7044         (AS_UNAME): Don't optimize PATH walk.
7046         * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
7048 2006-04-01  Eric Blake  <ebb9@byu.net>
7049         and Stepan Kasal  <kasal@ucw.cz>
7051         * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
7052         and fix some typos.
7054 2006-04-01  Noah Misch  <noah@cs.caltech.edu>
7056         * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
7057         Autoconf version number despite a zero- or one-argument AC_INIT.
7059         * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
7060         subordinate tools.
7061         * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
7062         * doc/autoconf.texi (autoreconf Invocation): Document it.
7064         * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
7065         Append LocalWords so ispell-buffer passes cleanly.  Spelling fixes.
7067 2006-04-01  Eric Blake  <ebb9@byu.net>
7069         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
7070         * lib/autotest/general.m4: Be tolerant of existing directory when
7071           rm failed to remove it.
7073 2006-04-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7075         * bin/autoupdate.in: Redefine m4_location so that warnings print
7076         the correct lines of the input file by subtracting..
7077         (_au__first_line): ..this new definition.
7079         * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
7080         AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
7081         Remove stray newline in output.
7082         (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
7083         AC_DEFUN this for autoconf, including the obsoletion diagnose.
7084         Fixes autoupdating of code where the replacement output contains
7085         m4sugar macros.
7086         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
7087         * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
7088          (au_exclude_list): Add AC_LANG_SAVE.
7089         * tests/tools.at: Several new tests for all of this.
7090         * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
7091         hairy details.
7092         The AC_LANG_SAVE issue was reported against Libtool by
7093         Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
7094         Kristian Kvilekval <kris@cs.ucsb.edu>.
7096 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
7098         * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
7099           switch all of them on and of when necessary.  Fixes the bug when
7100           m4sugar macros (e.g., m4_define) were expanded after the first
7101           automatic update (e.g., after AC_PREREQ or AC_INIT).
7103 2006-03-31  Paul Eggert  <eggert@cs.ucla.edu>
7105         * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
7106         of AS_BASENAME and AS_DIRNAME.  Reported by Stepan Kasal.
7108         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
7109         correctly.  Problem reported by Eric Blake.
7110         (_AS_EXPR_PREPARE): Detect Tru64 expr bug.  Problem reported by
7111         Ralf Wildenhues.
7113 2006-03-30  Paul Eggert  <eggert@cs.ucla.edu>
7115         * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
7116         Tighten up the basename/dirname wording.
7118 2006-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7120         * Makefile.maint (sc_texi_notab): New check: do not use TABs
7121         in texinfo files outside of verbatim environments.
7122         (syntax-check-rules): Update.
7123         * doc/autoconf.texi (Configuration Headers): Conform to it.
7125 2006-03-30  Chris Pickett <cpicke@cs.mcgill.ca>  (tiny change)
7127         * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
7128           aclocal cannot be given on the command line.
7130 2006-03-29  Paul Eggert  <eggert@cs.ucla.edu>
7132         * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
7133         Give an example for AS_DIRNAME instead of referring to Posix..
7134         (File System Conventions): Put discussion of // versus / here, and
7135         modernize it a bit.
7136         (Limitations of Usual Tools): Add basename.  Remove verbiage
7137         after dirname, since it got moved to the above sections.
7138         All this was inspired by a patch proposed earlier by Eric Blake.
7140 2006-03-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7142         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
7143         `$0' to protect against spaces.
7144         * lib/autotest/general.m4 (AT_INIT): Likewise.
7145         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
7146         `$0', $as_me.
7148 2006-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7150         * bin/autoscan.in: The value of find_configure_ac should be
7151         checked for existence, so we don't barf over a nonexisting
7152         configure.ac.  Reported by Laurence Darby <ldarby@tuffmail.com>.
7154 2006-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7156         * bin/autoupdate.in: Fix some typos.
7158 2006-03-21  Stepan Kasal  <kasal@ucw.cz>
7160         * doc/autoconf.texi (Installation Directory Variables): Fix typo.
7162         * lib/autoscan/autoscan.list: Refreshed.
7164 2006-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7166         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
7167         and Erlang related variables.
7169         * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
7170         (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
7171         (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
7172         (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
7173         (AC_LANG_BOOL_COMPILE_TRY(Objective C))
7174         (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
7175         (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
7176         (_AC_PROG_OBJC_G): New macros.
7177         (_AC_ARG_VAR_CPPFLAGS): Adjusted.
7178         * doc/autoconf.texi (Objective C Compiler): New node.
7179         (Preset Output Variables): Document OBJCFLAGS.
7180         (Language Choice): Document `Objective C' language.
7181         (Fortran Compiler): Fix typo.
7182         * NEWS: Updated.
7183         Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
7185 2006-03-20  Stepan Kasal  <kasal@ucw.cz>
7187         * doc/autoconf.texi (Default Includes): Fix typo
7188           s/AC_HEADERS_STDC/AC_HEADER_STDC/
7189         (Limitations of Usual Tools): s/unwriteable/unwritable/
7190         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
7191           Fix typos in the comments.
7193 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
7195         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
7196           Factor out the warning to...
7197         (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
7198         * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
7199         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
7201         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
7202           case `ac_delim' when writing the sed script.
7204         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
7205           moved DUALCASE=1 ...
7206         (AS_SHELL_SANITIZE): ... here.
7207         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
7208           that it is set.
7210         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
7211           AC_SUBST.
7212         (_AC_PATH_PROG): Store the result to VARIABLE.
7213         (AC_PATH_PROG): No need to set VARIABLE again.
7215         * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
7216           the first one is usual AT_CHECK_MACRO test, the second one checks
7217           that the same works when cross-compiling.
7218         * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
7219         (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
7221 2006-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7223         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
7224         the directory `/usr/bin/posix' in the shell search, to prefer
7225         the Posix shell not only in subsequent spawns as with `$BIN_SH'
7226         on Tru64.
7228         * doc/autoconf.texi (contents): To fix texi2html output, hide
7229         `@setcontentsaftertitlepage' for HTML.
7230         (Writing Autoconf Macros): Likewise, insert space after `@c'.
7231         (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
7232         `@,{c}'.
7234 2006-03-16  Stepan Kasal  <kasal@ucw.cz>
7236         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
7237           sanitizing...
7238         (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
7239         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
7240           why IFS is restored so late; thank you, Ralf, for reminding us.
7242 2006-03-15  Stepan Kasal  <kasal@ucw.cz>
7244         * doc/autoconf.texi (Pretty Help Strings): No need to use cached
7245           variables in the examples.
7247 2006-03-14  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
7249         * doc/autoconf.texi (several sections): Cleaned up documentation for
7250         macros in erlang.m4.
7252 2006-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7254         * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
7255         failure condition for `$(cmd)' style command substitutions.
7256         (Parenthetical command substitution, Multiline parenthetical
7257         command substitution): Use it.
7259         * doc/autoconf.texi (Special Shell Variables): Missing word.
7260         Reported by Keith Marshall <keith.marshall@total.com>.
7262         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
7263         IFS even in case of empty `$PATH'.
7265 2006-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7267         * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
7268         `expr' away if there is nothing to do.
7269         < --keywords >: Simplify and robustify argument handling.
7270         Revert erroneous comment from 2005-08-23.  Extend to allow
7271         keyword negation with `!'.
7272         Update help message.  Remove broken code to prevent running
7273         tests multiple times.
7274         * doc/autoconf.texi (testsuite Invocation) < --keywords >:
7275         Update and fix the documentation accordingly.
7276         * tests/autotest.at (Keywords): Renamed to..
7277         (Keywords and ranges): .. this.  Extended to make sure negated
7278         keywords, keywords taken from AT_SETUP arguments, and numeric
7279         test ranges work, and that matching is case-insensitive.
7281 2006-03-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7283         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
7284         allow to pass unnamed structs even in C++.
7285         (AC_CHECK_SIZEOF):  Likewise.
7286         Also fix quoting error in `AC_MSG_FAILURE' arguments.
7287         * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
7288         struct): New tests for unnamed structs, each both native and
7289         cross-compiling.
7291         * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
7292         a structure inside a cast, for C++ conformance.
7293         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
7294         Also fix quoting error in `AC_MSG_FAILURE' arguments.
7296         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
7297         nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
7298         trying to execute the command `no'.
7300         * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
7301         m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
7302         expanded outside.
7304         * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
7305         example.  Do not emphasize `$%', it is hardly new and special.
7306         Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
7308         * doc/autoconf.texi (Limitations of Usual Tools): Document
7309         OpenBSD and traditional `grep' failure to handle multiple
7310         patterns separated by newlines.
7312 2006-03-10  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
7314         * doc/autoconf.texi (several sections): Add documentation for macros
7315         in erlang.m4.
7317 2006-03-10  Eric Blake  <ebb9@byu.net>
7319         * doc/autoconf.texi (Obsolete Macros): Fix wording of
7320         AC_TRY_LINK_FUNC.
7322 2006-03-10  Paul Eggert  <eggert@cs.ucla.edu>
7324         * doc/autoconf.texi: Use @acronym more consistently for acronyms
7325         like BSD, GPL, LGPL.  Fix minor English typos.
7326         (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
7327         Mention that these macros are becoming obsolete.
7328         (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
7329         Use more modern terminology for which standard is what.
7330         (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
7331         and to ansi2knr.
7332         (AC_PROG_CXX): Likewise.
7333         (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
7334         Remove obsolete discussion about how to port to K&R.
7335         (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
7336         the obsolescent AC_HEADER_STDC.
7337         (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
7338         can't rely on it.
7340 2006-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7342         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
7343         Remove stdin redirection from /dev/null to allow pipe to work.
7345 2006-03-08  Paul Eggert  <eggert@cs.ucla.edu>
7347         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
7348         Require that /lib/cpp include stdio.h correctly.  Solaris 10's
7349         doesn't.  Problem reported by D'Arcy A MacIsaac and diagnosed by
7350         Ralf Wildenhues.
7352 2006-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7354         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
7355         HP-UX sed is 99 commands, not 100.
7356         (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
7357         _AC_SUBST_FILES fragment.  Separate `{' and `r' commands by
7358         newline for portability.
7359         * tests/torture.at (Torturing config.status): Also test 100
7360         AC_SUBST_FILE invocations.  Fix test to actually verify the
7361         AC_CONFIG_FILES output.
7362         * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
7363         command, label, and read-file `r' limits.  Unify HP-UX spelling.
7365         * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
7366         non-suffix rule.
7367         ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
7368         non-GNU make.
7369         (autoconfdir, $(AUTOCONF_FILES)): Likewise.
7370         * tests/mktests.sh: Small shell portability fixes.
7372 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7374         * doc/autoconf.texi (Caching Results): Fix the examples to use a
7375         recommended quoting style and discard unwanted output.
7377 2006-03-05  Paul Eggert  <eggert@cs.ucla.edu>
7379         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
7380         (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
7381         cases, and to work around Tru64 expr bug.
7383 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7385         * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
7386         expr bug that turns the result of a regex match into a number if
7387         possible.
7389 2006-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7391         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
7392         HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
7393         in section `Specific Compiler Characteristics'.
7395 2006-03-04  Eric Blake  <ebb9@byu.net>
7397         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
7398         variable warning.
7400 2006-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7402         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
7403         order of variable initialization, so even the Solaris 2.6 shell
7404         can create a config header correctly.  Fixes lots of test suite
7405         failures.
7407 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7409         * doc/autoconf.texi (Text processing Macros): New node to
7410         document the m4sugar macros m4_re_escape, m4_tolower,
7411         m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
7413 2006-02-22  Paul Eggert  <eggert@cs.ucla.edu>
7415         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
7416         XrmInitialize (0) -> XrmInitialize ().
7417         Reported by Toshio Kuratomi.
7419 2006-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7421         * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
7422         test, as in `if tests; then cmd1; elif ...; else ...; fi'.
7423         * doc/autoconf.texi (Programming in M4sh): Adjusted.
7424         * tests/m4sh.at (AS_IF and AS_CASE): Test this.  Also make sure
7425         both macros are defun'ed so that required macros are evaluated
7426         outside.
7428         * doc/autoconf.texi (Prerequisite Macros): State more precisely
7429         where a required macro will be expanded.
7430         (Coding Style): Another reason not to use `m4_define'.
7432 2006-02-21  Eric Blake  <ebb9@byu.net>
7434         * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
7436 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7438         * doc/autoconf.texi (Looping constructs): New node, to
7439         document m4_for, m4_foreach, m4_foreach_w, and mention
7440         obsolete AC_FOREACH.
7441         (Obsolete Macros): Document AC_FOREACH.
7442         * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
7443         (m4_for): Fix to never loop (almost) endlessly, work correctly
7444         with arithmetic expressions in arguments, a step of zero or
7445         non-integer multiple of the interval, and avoid integer
7446         overflow.
7447         * tests/m4sugar.at: New test for m4_for, m4_foreach, and
7448         m4_foreach_w.
7450 2006-02-20  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
7452         Add basic support for Erlang, both for configuring Erlang/OTP
7453         tools, and Erlang as a conf test language.
7454         * lib/autoconf/erlang.m4: New file.
7455         * lib/autoconf/autoconf.m4: Add erlang.m4.
7456         * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
7457         * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
7458         * NEWS: Add short description of new macros.
7459         * THANKS: Add Romain Lenglet.
7461 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7463         * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
7464         native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
7466 2006-02-15  Eric Blake  <ebb9@byu.net>
7468         * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
7469         warning.
7471 2006-02-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7473         * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
7474         (_AS_CASE): Private helper macro.
7475         * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
7476         * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
7477         Fix syntax of AS_IF description
7478         (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
7479         for the AC_REQUIRE mess.
7480         * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
7481         AS_SHELL_SANITIZE.
7483 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
7485         * doc/autoconf.texi: Minor style cleanup.
7486         Be consistent about spaces after commas.
7487         Insert [] where empty args look a bit funny.
7488         Fix some "i.e." and "e.g." usages.
7489         Try to avoid "X/Y" usages.
7490         Don't be pedantic about "ISO C99"; just say C99.
7491         Prefer GNU style for spaces in front of parens.
7492         (Function Portability): Comment about C89 versus C99
7493         signed integer division.
7494         (Particular Headers): Use current gnulib style for dirent
7495         includes.
7497 2006-02-14  Stepan Kasal  <kasal@ucw.cz>
7498         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7500         * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
7501         macros without parameters.
7502         * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
7503         * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
7504         * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
7505         `$#' bug.
7506         (autoupdate): Updated to match AU_ALIAS fix.
7508 2006-02-13 Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7509         and Paul Eggert  <eggert@cs.ucla.edu>
7511         * doc/autoconf.texi (Programming in M4sh): Document
7512         AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
7514 2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7516         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
7517         (AS_BOURNE_COMPATIBLE): ..this.
7518         (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
7520 2006-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7522         * doc/install.texi (Defining Variables): Tighten up the
7523         CONFIG_SHELL wording.
7525 2006-02-12 Paul Eggert  <eggert@cs.ucla.edu>
7526         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7528         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
7529         of (set -o) rather than testing whether (set -o posix) succeeds,
7530         to work around a bug in the AIX 5.3 shell.  Problem originally
7531         reportd by Howard Chu for libtool.
7533 2006-02-10  J.T. Conklin  <jtc@acorntoolworks.com>
7535         * doc/autoconf.texi (Running the Compiler, Running the Linker):
7536         Changes the macro arguments in summaries to match the
7537         descriptions.
7539 2006-02-04  Stepan Kasal  <kasal@ucw.cz>
7541         * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
7542         hint as ``a workaround for a bug.''
7544 2006-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7546         * bin/autoreconf.in: New option `--no-recursive'.
7547         Improve wording for subpackages a bit.
7548         * doc/autoconf.texi (autoreconf Invocation): Updated.
7549         * NEWS: Updated.
7551         * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
7552         in environment of `configure', not the command line.
7553         Reported by Howard Chu <hyc@highlandsun.com>.
7555 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7557         * doc/autoconf.texi (Limitations of Builtins): Document the
7558         problem with "trap -".
7560 2006-01-23  Steven G. Johnson  <stevenj@fftw.org>
7562         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
7563         (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
7564         messages to differentiate Fortran and Fortran 77 tests.
7565         (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
7566         AC_LANG_ASSERT, to allow use in mixed-language projects.
7568 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7570         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
7571         FOO" to "defined (FOO)".
7572         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
7573         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
7574         * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
7575         * tests/tools.at (ifnames): Likewise.
7577 2006-01-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7579         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
7580         * lib/Autom4te/General.pm (mktmpdir): Likewise.
7581         (END): Improve error message a bit.
7582         Reported by Bruce Korb <bkorb@gnu.org>.
7584 2006-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7586         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
7587         `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
7589 2006-01-11  Stepan Kasal  <kasal@ucw.cz>
7591         * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
7592         requires sys/stream.h.  Reported by Oliver Kiddle.
7594 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7595             Stepan Kasal  <kasal@ucw.cz>
7597         * lib/autotest/general.m4 (AT_INIT): When ensuring writability
7598         before the removals of test dirs, use `find' to avoid modification
7599         of symlinked directories.
7601 2006-01-11  Steven G. Johnson  <stevenj@alum.mit.edu>
7603         * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
7604         Don't ignore the macro arguments.
7606 2006-01-11  David Thompson  <dthompsn@vizsolutions.com>
7608         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
7609         declaration that works for MSVC.
7611 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7613         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
7614         Add `*.map' and `.inf' for Green Hills compiler.
7615         Reported by Stefan Seefeld <stefan@codesourcery.com>.
7617         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
7618         correctly: pad with spaces after FIRST_PREFIX if necessary,
7619         and compute string lenghts with `m4_qlen' instead of `m4_len'.
7620         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
7621         * tests/m4sh.at (AS_HELP_STRING): Test extended.
7622         * NEWS: Updated.
7623         Reported by numerous people, numerous times.
7625 2006-01-05  Paul Eggert  <eggert@cs.ucla.edu>
7627         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
7628         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
7629         * lib/autoconf/general.m4, lib/autoconf/status.m4:
7630         * lib/autotest/general.m4, tests/local.at:
7631         Update copyright year to 2006.
7633         * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
7634         sed substitutions.
7635         * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
7636         for file names, again.  Reported by Noah Misch.
7637         (Coding Style): Explain that s|a|b| is preferred for file names.
7638         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
7639         (AC_OUTPUT_MAKE_DEFS): Likewise.
7640         * lib/autotest/general.m4 (AT_INIT): Likewise.
7641         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
7642         * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
7644         Fix Posix-conformance bugs re use of { command in sed scripts,
7645         and improve the sed-related documentation a bit.
7646         * doc/autoconf.texi (Installation Directory Variables): Use
7647         our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
7648         rather than "sed" when talking about Sed in general.
7649         (Particular Programs): Likewise.
7650         (Coding Style): y is like s with respect to / and ,.
7651         (Limitations of Usual Tools): Document the weird restrictions
7652         that Posix has about { }.  Use better quoting.
7653         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
7654         Rewrite to conform to Posix rules about { } in sed scripts.
7655         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
7656         * tests/foreign.at (Libtool): Likewise.
7657         * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
7658         Use our own style advice re 's,a,b,' versus 's|a|b|'.
7660 2006-01-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7662         * lib/autoconf/status.m4: Fix typo.
7664         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
7665         singly- or doubly-quoted arguments to `-cmdline', `-ignore',
7666         `-def', for the benefit of Portland `pgf90 -Mipa'.
7667         Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
7669 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
7671         * doc/autoconf.texi: Update copyright (and other) dates to 2006.
7672         * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
7673         shell from zsh to bash.
7675 2005-12-31  Stepan Kasal  <kasal@ucw.cz>
7677         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
7678           ":" caused problems on OS/2-EMX.  Suggested by Andrew Belov.
7680 2005-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7682         * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
7683         parentheses in $(...).  Problem reported by Eric Blake.
7685 2005-12-12  Paul Eggert  <eggert@cs.ucla.edu>
7687         * doc/autoconf.texi (Limitations of Usual Tools):
7688         Mention which characters can be escaped with \ in portable regular
7689         expressions used in grep, sed, expr.  Mention the leading ^ problem
7690         with expr.  Clean up some confusing wording.  Mention which
7691         grep options are portable.
7693 2005-12-09  Stepan Kasal  <kasal@ucw.cz>
7695         * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
7697 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
7699         * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
7700         patch, noted by Ralf Wildenhues.
7702 2005-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7704         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
7705         posix' unconditionally, for pdksh in `native sh' emulation.
7707 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
7709         * doc/autoconf.texi (Shellology): Document eval $? problem
7710         with ash.
7711         (Limitations of Builtins): Likewise.
7713 2005-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7715         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
7716         CONFIG_SHELL in the environment of the configure rerun.
7717         * doc/autoconf.texi (Here-Documents, config.status Invocation):
7718         Suggest passing CONFIG_SHELL absolute, and in the environment
7719         rather than as option.
7721 2005-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7723         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
7724         Fix quoting of output line (triggered for many AC_SUBST_FILEs).
7725         Fix macro quoting.  Fix output for n * 98 substituted variables.
7727 2005-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7729         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
7730         `tmp' to avoid file removal race.
7732 2005-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7734         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
7735         ac_clean_files and LIBOBJS.
7737 2005-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7739         * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
7740         Factor functionality to..
7741         (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
7742         `AC_SUBST($1)' in the public version.
7743         (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
7744         (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
7745         ac_pt_* variables.
7747 2005-11-01  Stepan Kasal  <kasal@ucw.cz>
7749         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
7750         filesystems.
7752 2005-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7754         * NEWS: Move AH_HEADER mention to right place.
7756 2005-10-27  Stepan Kasal  <kasal@ucw.cz>
7758         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
7759         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
7761 2005-10-25  Stepan Kasal  <kasal@ucw.cz>
7763         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
7764         conftst2.$ac_objext.
7765         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
7767 2005-10-24  Stepan Kasal  <kasal@ucw.cz>
7769         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
7770         conftest.o, to see whether the compiler really obeys; rm the object
7771         file before and after the test and register it with ac_clean_files.
7772         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
7774 2005-10-21  Stepan Kasal  <kasal@ucw.cz>
7776         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
7777         the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
7778         code so that the most common case requires less forks.
7780 2005-10-20  Stepan Kasal  <kasal@ucw.cz>
7782         * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
7783         not portable; thanks to Paul Eggert and Alexandre.
7785         * NEWS: Fix an old typo.
7787 2005-10-20  Jim Meyering  <jim@meyering.net>
7789         * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
7790         the latter'', in two places.
7792 2005-10-19  Paul Eggert  <eggert@cs.ucla.edu>
7794         * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
7795         AC_LANG_PROGRAM, fixing a typo.  Don't give details about
7796         the inner workings of AC_LANG_FUNC_LINK_TRY.
7797         * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
7798         AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
7799         by the function rather than ignoring it.
7800         (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
7801         comparing its address.  Intel's interprocedural optimization was
7802         outsmarting the old heuristic.  Problem reported by
7803         Mikulas Patocka.
7805 2005-10-19  Stepan Kasal  <kasal@ucw.cz>
7807         * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
7809 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7811         * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
7812         (m4_map, m4_map_sep): Use it.  Handle the empty list correctly.
7814 2005-10-04  Stepan Kasal  <kasal@ucw.cz>
7816         * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
7817         before removing it (chmod -R u+rwx); there are three instances of this.
7819 2005-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7820             Stepan Kasal  <kasal@ucw.cz>
7822         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
7823         * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
7824         make its content writable before removing it.  Remove an errorneous
7825         comment from the end, where the logs of the failed tests are copied
7826         to the main log file.
7828 2005-09-27  Stepan Kasal  <kasal@ucw.cz>
7830         * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
7831           in case the computer is too quick.  Double quote the configure.ac
7832           snippets.
7834         * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
7835           problems if the testsuite were running too fast.
7837 2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
7839         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
7840         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
7841         (which belong to Xt, not X itself).  See Debian bug 327655.
7842         * NEWS: Mention this.
7844 2005-09-07  Stepan Kasal  <kasal@ucw.cz>
7846         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
7848 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
7850         * config/move-if-change: Don't output "$2 is unchanged";
7851         suggested by Ben Elliston.  Handle weird characters correctly.
7853 2005-09-06  Stepan Kasal  <kasal@ucw.cz>
7855         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
7856           calls, so that the final expansion of this macro is shorter.
7857           Create the conftest.$ac_ext outside the `for' loop, to speed the run.
7858           Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
7859           the cleanup there.  Use AS_VAR_* macros, to be more general.
7860         * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
7862         * lib/autoconf/general.m4: Use AS_IF where appropriate.
7864         * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
7866 2005-09-01  Stepan Kasal  <kasal@ucw.cz>
7868         * doc/autoconf.texi (Configuration Headers): Add an index entry
7869           for AH_HEADER.
7871 2005-08-26  Pavel Roskin  <proski@gnu.org>
7873         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
7874         XMKMF to locate xmkmf.  Make XMKMF precious.  Export CC when
7875         running xmkmf.
7877 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
7879         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
7880         The previous patch didn't work, so try a better one.
7882 2005-08-26  Stepan Kasal  <kasal@ucw.cz>
7884         * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
7885         in the example.  Reported by Bruno Haible.
7886         <AS_TR_SH>: Likewise.  Also modify the example to be more convincing:
7887         "if $undefined_var;" succeeds with my shell.
7889         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
7890         AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
7891         but change the m4_divert_text to m4_divert_once.
7893 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
7895         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
7896         Work around bug in Solaris /usr/xpg4/bin/awk.
7897         The bug is present in at least Solaris 8 through 10.
7899 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
7901         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
7902         some evil values and relying on the fact that $* concatenates the
7903         parameters by the first character from IFS.
7905 2005-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
7906             Stepan Kasal  <kasal@ucw.cz>
7908         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
7909         first header appears, define AH_HEADER.
7910         * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
7911         Update limitations about when to call AC_CONFIG_HEADERS.
7912         (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
7913         parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
7914         that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
7915         ``Configuration Actions''; fix their index entries.
7917         * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
7918         options correctly.  Process N-M as M-N if M is smaller than N.
7919         Process ranges correctly so that N-N will run only N.
7920         Sort and uniquify the tests that will be run.  If there is more
7921         than one test, reinsert the banners for the tests.
7922         * tests/autotest.at (Keywords): Unmark XFAIL.
7924 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
7926         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
7927           before passing the macro name to AH_TEMPLATE.
7929         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
7930           now opens log after option processing; in particular, --version
7931           and --help do not touch config.log.
7933         * Makefile.maint: Revert the change from 2005-08-12.
7935 2005-08-22  Stepan Kasal  <kasal@ucw.cz>
7937         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
7938           common code to...
7939         (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
7941 2005-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7943         * doc/autoconf.texi (Using Autotest, testsuite Scripts)
7944         (Autotest Logs, Writing testsuite.at, testsuite Invocation):
7945         Language cleanup.
7947         * doc/autoconf.texi (Defining Symbols, Changed Results):
7948         Prepend to LIBS, not append, in examples.
7950 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
7952         When building in place, set srcdir="."; suggested by Tim Van Holder.
7954         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
7955           build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
7956         (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
7957         * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
7958           does not mean "no --srcdir option".
7960 2005-08-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7962         * tests/autoscan.at (autoscan): New file.
7963         * tests/suite.at: Use it.
7964         * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
7965         Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
7967         * tests/autotest.at (Keywords): Test keywords combinations.
7969 2005-08-12  Stepan Kasal  <kasal@ucw.cz>
7971         * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
7972           add "2>&1"; gzip 1.2.4 prints help on stderr.
7974 2005-07-27  Stepan Kasal  <kasal@ucw.cz>
7976         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
7977         was pushdef'ed twice while popped only once.  Push it only once.
7978         (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
7980 2005-07-26  Stepan Kasal  <kasal@ucw.cz>
7982         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
7983         prefixed by mere "===", not "configure: === ".
7985 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7987         * Makefile.maint: Update from Bison.
7989         * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
7990         "<tab>" in comment, so that the point is understandable.
7992 2005-07-25  Stepan Kasal  <kasal@ucw.cz>
7994         Rewrite substantial part of lib/autoconf/status.m4.
7995         The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
7996         and CONFIG_COMMANDS are not processed in four separate loops.
7997         Instead, there is one main loop.  This alows that the common code
7998         is expanded only once, thus config.status (and configure) is smaller.
8000         The registration mechnism in AC_CONFIG_FILES and cousins also changed;
8001         the AC_LIST_FILES and cousins macros are no longer used.
8003         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
8004         _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
8005         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
8006         _AC_OUTPUT_COMMAND): ..., respectively.  These macros no longer
8007         contain the initialization, nor the for loop, nor the associated
8008         commands; all these go to ...
8009         (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
8010         _AC_OUTPUT_CONFIG_STATUS.
8011         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
8012         Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
8013         (_AC_OUTPUT_FILE): The creation of the sed script ...
8014         (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
8015         (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
8016         _AC_OUTPUT_MAIN_LOOP.
8017         (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
8018         _AC_CONFIG_COMMANDS): Use ...
8019         (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
8020         (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
8021         (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
8022         _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
8023         (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
8024         (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
8025         ... new macros.
8026         (_AC_CONFIG_UNIQUE): Update.
8027         (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
8028         Replaced by this ...
8029         (_AC_LIST_TAGS): ... new common macro.
8030         (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
8031         AC_LIST_COMMAND_COMMANDS): Replaced by this ...
8032         (_AC_LIST_TAG_COMMANDS): ... new common macro.
8033         (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
8034         this didn't belong to the `config commands' section.
8035         (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
8036         (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
8037         AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
8038         to the `config commands' section either.
8039         (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
8040         (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
8042         ... and many changes to the comments nearby.
8044         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
8045         set ac_subdirs_all='_AC_LIST_SUBDIRS'.
8046         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
8047         AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
8048         (#define header templates): The comment at the top of the generated
8049         header now includes the name(s) of the source file(s).
8051         Several unrelated small changes:
8053         * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
8054         parameter to AC_DIAGNOSE.
8055         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
8056         (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
8057         with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
8058         (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
8059         with AU::AC_OUTPUT.
8060         (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
8061         in AC_OUTPUT doesn't double-quote it either.
8062         * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
8063         parameters.
8065 2005-07-10  Stepan Kasal  <kasal@ucw.cz>
8067         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
8068         versions of Portland Group compiler produce single- and double-quoted
8069         -cmdline argument.  Reported by Steven G. Johnson <stevenj@fftw.org>
8070         and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
8072 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
8074         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
8075         This is a corrected version of yesterday's patch.
8077 2005-07-07  Stepan Kasal  <kasal@ucw.cz>
8079         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
8080         path, too; insert a "===" to emphasize the line.
8082         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
8083           ac_cv_build_alias to ac_build_alias.
8084         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
8086         On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
8087         change eliminates it.  Problem reported by Alexandre Duret-Lutz.
8088         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
8089         (AC_ARG_VAR): ... here.
8090         (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
8091           target_alias.
8093         Keep a list of all precious variables and process them with one simple
8094         for loop, instead of expanding all commands, or, OTOH, complicated
8095         processing of output of "set".
8096         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
8097         variable names in new macro...
8098         (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
8099         (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
8100           a loop to assign all ac_env_* and ac_cv_env_* variables.
8101         (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
8102           to INIT_PREPARE.
8103         (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
8104           its value to shell variable ac_precious_vars and call
8105           _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
8106         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
8107           _AC_ARG_VAR_VALIDATE.
8109         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
8110           and the AC_SUBSTs ...
8111         (AC_INIT): ... here.
8113         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
8114           the ac_subst_files section in config.log.
8116         * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
8118 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8120         * NEWS: New macro AC_C_TYPEOF.
8121         * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
8122         * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
8123         * tests/c.at (C keywords): Test AC_C_TYPEOF.
8125         Fix problems reported by Nicolas Joly.
8126         * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
8127         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
8128         They are generated by the Tru64 v5.1B shell.
8130 2005-07-05  Stepan Kasal  <kasal@ucw.cz>
8132         Fix my changes from 2005-07-01; reported by Noah Misch.
8133         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
8134         description, the macro now accepts only a single tag.
8135         (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
8137         Fix cases when the varsions of Autoconf and Autotest don't match.
8138         Reported by Noah Misch.
8139         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
8140         at_top_builddir, for compatibility with older autotest.
8141         * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
8142         is not set, use at_top_builddir, for compatibility with older
8143         versions of autoconf.
8145 2005-07-04  Paul Eggert  <eggert@cs.ucla.edu>
8147         * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
8148         Problem reported by Patrick Welche.
8150 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
8152         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
8153         sed substitution command, so that we allow | in program prefixes
8154         and program suffixes.  (& is a problem anyway; we're not fixing
8155         that here.)
8156         * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
8157         configure_input, top_builddir, srcdir, etc.
8158         * lib/autotest/general.m4 (AT_INIT): Likewise, for
8159         PATH_SEPARATOR in AUTOTEST_PATH.
8161 2005-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
8163         * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
8164         for loop over config.site files using `set', to allow
8165         directory names containing IFS characters.
8167 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
8169         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
8170         directories with weird names.  Apparently some people like living
8171         on the edge.  However, improve the test that "pwd" actually does
8172         report a name for the working directory.
8173         * NEWS: Remove the claim that we test for funny chars in dir names.
8175 2005-07-01  Stepan Kasal  <kasal@ucw.cz>
8177         * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
8178         replaced ...
8179         * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
8180         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
8181         Now accept a single tag, not whitespace separated list.
8182         (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
8184 2005-06-30  Stepan Kasal  <kasal@ucw.cz>
8186         * doc/autoconf.texi (Configuration Headers): Change the explanation
8187         about #include <config.h>.
8188         (Generic Functions): Mention the Gnulib project.
8189         (Limitations of Usual Tools) <sed>: Another minor rephrasing.
8191         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
8192         document to output the default config_* lists to config.status.
8193         Don't recognize option --file, if the functionality is not there.
8194         Likewise for --header; moreover, recognize --he and --h as shortcuts
8195         for --help in that case.
8197         * lib/autoconf/status.m4: Fix the order of the "sections", so that it
8198         matches the order of execution.  No code changed.
8200 2005-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8202         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
8203         single-quoted -cmdline argument in Portland Group compiler.
8204         Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
8206 2005-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
8208         * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
8210 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
8212         * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
8213         descriptors to child processes; reported by Norman Gray.
8215 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
8217         * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
8219         * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
8220         instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
8221         (AC_SUBST): Call it.
8222         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
8223         the directory specific variables; but don't call it for configure_input.
8225 2005-06-28  Derek Price  <derek@ximbiot.com>
8227         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
8228         addition.
8230 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
8232         * NEWS: Don't worry about spaces in bindir etc.  Only srcdir and working
8233         directory have inherent problems with special characters like spaces,
8234         due to limitations in Make syntax.  Problem reported by Alexandre
8235         Duret-Lutz.
8236         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
8237         Also, fix Tru64 porting problem with shell patterns,
8238         reported by Ralf Wildenhues.
8240 2005-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8242         * doc/autoconf.texi (Subdirectories): Fix markup typos.
8244 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
8246         * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
8248         Fix some more shell quoting problems.  Prompted by a bug report
8249         from Justace Clutter.
8250         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
8251         variable into diagnostic.  Make the diagnostic an error, not a warning,
8252         because we really don't support spaces and suchlike in dir names.
8253         (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
8254         Don't worry about backslashes in srcdir; it can't happen now.
8255         (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
8256         Simplify ac_optarg handling.
8257         (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
8259 2005-06-22  Stepan Kasal  <kasal@ucw.cz>
8261         Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
8262         * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
8263         * tests/atlocal.in: Propagate $EGREP and $SED.
8264         * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
8265         (AT_CONFIG_CMP): Use sed instead of grep plumbing.
8267         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
8268         that '\|' is not allowed in BREs; recommend using newline separated
8269         list of patterns instead of multiple -e options.
8271         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
8273         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
8275 2005-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8277         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
8279 2005-06-21  Stepan Kasal  <kasal@ucw.cz>
8281         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
8282         b, t, r, w commands require single space, while : cannot have any.
8283         (Special Shell Variables): Fix sed code this in the example.
8284         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
8285         * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
8287         * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
8288         expand to the empty list.  Don't use two pairs of m4_changequote,
8289         it's not necessary.
8291 2005-06-20  Derek Price  <derek@ximbiot.com>
8293         * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
8295 2005-06-17  Paul Eggert  <eggert@cs.ucla.edu>
8297         * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
8298         * doc/autoconf.texi:
8299         Don't mention Solaris versions so much, if a
8300         problem is common to all extant versions of Solaris.  Say "SunOS
8301         4" instead of "SunOS" for SunOS 4.
8302         (awk): Mention more of the limitations of traditional Awk.
8303         (cat): Don't talk about cat -v.
8305 2005-06-16  Paul Eggert  <eggert@cs.ucla.edu>
8307         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
8308         (AS_VERSION_COMPARE): New macro.  The API is taken from CVS,
8309         but the implementation is entirely different and is designed
8310         to be compatible with glibc strverscmp.
8311         * tests/m4sh.at (AS_VERSION_COMPARE): New test.
8313         * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
8314         on Mac OS X 10.4 reported by Peter O'Gorman in:
8315         http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
8316         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
8317         Use shell builtins rather than 'expr', to work around expr bug.
8319 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
8321         * doc/autoconf.texi: "filesystem" -> "file system".
8322         "behaviour" -> "behavior".
8323         Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
8324         * lib/autoconf/general.m4: Omit blank after ":" sed command,
8325         as per POSIX.
8326         * lib/m4sugar/m4sh.m4: Likewise.
8327         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
8328         with Solaris sed.  Fix by Ralf Menzel and Stepan Kasal.
8330         * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
8331         (.x.1): Ignore the time stamp in the .TH line when deciding whether
8332         to update the man page.  That way, we don't have to check in new
8333         man pages every month.
8335         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
8336         quotes and backslashes.  Patch from Derek Price.
8338 2005-06-10  Derek Price  <derek@ximbiot.com>
8340         * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
8341         AS_TR_SH.
8343 2005-06-08  Paul Eggert  <eggert@cs.ucla.edu>
8345         * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
8346         -u, since it outputs chatter if the input files are the same.
8347         Problem reported by Ralf Menzel.
8349 2005-06-08  Derek Price  <derek@ximbiot.com>
8351         * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
8352         renaming them since they are about to be redefined anyhow.
8354 2005-06-08  Derek Price  <derek@ximbiot.com>
8356         * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
8357         redefined M4 macros to this node.  Document m4_include & m4_sinclude.
8358         Move m4_undefine to alphabetical order.
8360 2005-06-07  Paul Eggert  <eggert@cs.ucla.edu>
8362         * README: Recommend GNU M4 1.4.3 or later.
8363         * doc/autoconf.texi (Introduction): Likewise.
8364         Reword to avoid some formatting glitches.
8365         Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
8366         Clarify explanation of HP compiler bug.
8367         Redo example output tp match current CVS snapshot.
8368         Use @example.org in email addresses when the examples
8369         might get inadvertently cut-and-pasted into user code.
8370         Remove example of autom4te usage that doesn't seem to work now.
8371         Use modern AC_INIT (except when the example is meant to be
8372         shown with Autoconf 2.13).
8373         Update ksh info for Solaris 9 and later.
8374         KB -> kB.
8375         Modernize description of Automake versions a bit.
8376         Don't claim a future version of Autoconf is near.
8377         * doc/install.texi: Reword to avoid some formatting glitches.
8379 2005-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8381         * doc/autoconf.texi: Add [] to examples, so that the manual
8382         follows its own advice about quoting better.
8383         Reword to avoid some formatting glitches.
8384         * doc/installt.exi: Reword to avoid some formatting glitches.
8386         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
8387         Tru64 ksh pattern matching bug.  Reported against Libtool by
8388         Albert Chin <libtool@mlists.thewrittenword.com> and
8389         Nicolas Joly <njoly@pasteur.fr>.
8391 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
8393         m4_cdr of one-member list was [[]] (one-member list containing an
8394         empty string) instead of [] (an empty list.  Callers were skewed to
8395         match this misbehaviour.  As a consequence of this:
8396          - m4_foreach([x], [], [foo]) expanded to `foo', while
8397          - the expansion of m4_foreach([x], [[]], [foo]) was empty.
8398         This bug has been fixed:
8400         * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
8401           expand to an empty string; print error msg if called without
8402           an argument list.
8403         (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
8404           misbehaviour; handle [] and [[]] correctly.
8406 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
8408         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
8409         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
8410           scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
8412 2005-06-06  Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>  (trivial change)
8414         * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
8415           swallow records with more than 99 fields.
8416         * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
8417           parse the long line.
8419 2005-06-04  Stepan Kasal  <kasal@ucw.cz>
8421         * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
8422           swallow literals longer than 399.  Reported by Ralf Wildenhues.
8423         * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
8424           to workaround this limitation.
8426 2005-06-03  Steven G. Johnson  <stevenj@alum.mit.edu>
8428         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
8429         to gfortran, and make these the first two compiler names
8430         checked (following the general autoconf preference for gcc).
8432 2005-06-03  Stepan Kasal  <kasal@ucw.cz>
8434         * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
8435         (DISTCLEANFILES): Remove $(check_SCRIPTS).
8436         (testsuite): Make sure autotest.m4f is up-to-date before using it.
8438 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
8440         * lib/autotest/general.m4 (AT_INIT): Don't create a regular
8441         expression of unbounded size when processing the --list
8442         option.  This runs afoul of a limit of 399 bytes per regular
8443         expression on AIX.  Problem reported by Ralf Wildenhues.
8445 2005-06-01  Paul Eggert  <eggert@cs.ucla.edu>
8447         * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
8448         * doc/autoconf.texi (Particular Headers): Reword example
8449         for multiline stdbool replacement.
8450         (Setting Output Variables): Reword text a bit.  Don't
8451         give all the details about |#_!!_#|.
8452         Reword description of line replacement.
8454 2005-05-31  Dan Manthey  <dan_manthey@partech.com>
8456         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
8457         now contain newlines, and substituted files must be referenced on
8458         a line alone; the sed scripts to substitute them are now very
8459         different.
8460         (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
8461         commands can be put in a sed script portably.
8462         * doc/autoconf.texi (Setting Output Variables): Document above
8463         changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
8464         use of multiline substitution.
8465         * tests/torture.at: No longer expect substitution of newline to fail.
8467 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
8469         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
8470         From Ralf Menzel (trivial change).
8472 2005-05-25  Paul Eggert  <eggert@cs.ucla.edu>
8474         * tests/local.at: Don't attempt to check for negated character
8475         classes in shell scripts.  The test was too brittle.
8477 2005-05-25  Stepan Kasal  <kasal@ucw.cz>
8479         * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
8480         * doc/autoconf.texi (Limitations of Builtins): Document this
8481           limitation.
8483 2005-05-24  Stepan Kasal  <kasal@ucw.cz>
8485         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
8486           common code; used in many places in the tree.
8487         (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
8488         (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
8490         * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
8492         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
8493           messages when ac_unique_file is not found.
8494         (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
8495         (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
8496           commands, for consistency with AC_MSG_ERROR and such.
8498         * bin/autoconf.as: Make more use of "shift 2" in option processing.
8500         * bin/Makefile.am: Merge the two rules for creating scripts.
8502 2005-05-23  Stepan Kasal  <kasal@ucw.cz>
8504         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
8505         obsolete; it was never documented.
8506         (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
8508 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
8510         * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
8511         * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
8512         (ac_top_builddir): ... this ...
8513         (ac_top_build_prefix): ... to this; the old name is also kept, for
8514           backward compatibility.
8515         (ac_top_builddir_sub): New variable, without the trailing slash,
8516           always nonempty.
8517         (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
8518         * doc/autoconf.texi (Configuration Actions): Rename
8519           ac_top_builddir to ac_top_build_prefix.
8520         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
8521           at_top_builddir to at_top_build_prefix.
8522         * lib/autotest/general.m4 (AT_INIT): Likewise.
8524 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
8526         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
8527           of confdefs.h .
8529 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
8531         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
8532           argument to m4_foreach.  I guess it was necessary in the past,
8533           but I think it's a no-op now.
8535 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
8537         * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
8538           ``cat <<_ACEOF'' commands to one.
8539         (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
8540         * lib/autoconf/status.m4: On various places, use expr instead of
8541           ``echo|sed.''
8542         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
8543         (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
8544         * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
8545           a range.
8546         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
8547           the wrong patterns between ``case'' and ``esac.''  The previous
8548           code had false positives.
8550 2005-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
8552         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
8553         as on 2005-05-02.
8554         * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
8555         Mention LIBOBJDIR.
8557 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
8559         * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
8560         ChangeLog.2, GNUmakefile, Makefile.am, Makefile.cfg,
8561         Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
8562         bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
8563         bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
8564         bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
8565         config/config.guess, config/config.sub, config/elisp-comp,
8566         config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
8567         doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
8568         lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
8569         lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
8570         lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
8571         lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
8572         lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
8573         lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
8574         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
8575         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
8576         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
8577         lib/autoconf/general.m4, lib/autoconf/headers.m4,
8578         lib/autoconf/lang.m4, lib/autoconf/libs.m4,
8579         lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
8580         lib/autoconf/specific.m4, lib/autoconf/status.m4,
8581         lib/autoconf/types.m4, lib/autoscan/Makefile.am,
8582         lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
8583         lib/autotest/Makefile.am, lib/autotest/autotest.m4,
8584         lib/autotest/general.m4, lib/emacs/Makefile.am,
8585         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
8586         lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
8587         lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
8588         tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
8589         tests/compile.at, tests/foreign.at, tests/fortran.at,
8590         tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
8591         tests/semantics.at, tests/suite.at, tests/tools.at,
8592         tests/torture.at, tests/wrapper.as:
8593         Update FSF postal mail address.
8595 2005-05-13  Stepan Kasal  <kasal@ucw.cz>
8597         * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
8598           check.
8599         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
8600           enough arguments, similarly as in m4_bpatsubsts.
8602 2005-05-12  Stepan Kasal  <kasal@ucw.cz>
8604         * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
8605           of absolute paths.
8607 2005-05-11  Stepan Kasal  <kasal@ucw.cz>
8609         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
8610           for absolute directory names in one loop.
8611         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
8612           abbreviations of --version and --debug.
8614 2005-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8616         * doc/autoconf.texi (Autoconf Language): Be more precise about
8617         quoting rules.  Problems noted by Stepan Kasal.
8618         Also, throughout this document, be more careful about white space.
8619         "blank", "white space", and "space" all have different meanings
8620         and we should be careful to say what we mean.
8622 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8624         Fix C++ related problems reported by Werner Lemberg.
8625         * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
8626         * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
8627         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
8628         avoid problems with C++ and throw.
8629         * tests/compile.at: .cpp, not .cc.
8631         * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
8633 2005-05-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8635         * doc/autoconf.texi (Generic Functions): Typos.
8637 2005-05-02  Gary V. Vaughan  <gary@gnu.org>
8639         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
8640         object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
8641         set by latest automake.
8643 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
8645         * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
8646         outputs 0 on GNU/Linux these days.
8648 2005-04-29  Paul Eggert  <eggert@cs.ucla.edu>
8650         * doc/autoconf.texi (Autoconf Language): Add more description
8651         about quoting heuristics.
8652         (Limitations of Builtins): Describe "set -" problems.
8654 2005-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8656         * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
8657         not newline.
8659         * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
8660         by AC_DEFINE; it was a mistake.
8661         From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
8663 2005-04-25  Stepan Kasal  <kasal@ucw.cz>
8665         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
8667 2005-04-22  Stepan Kasal  <kasal@ucw.cz>
8669         * doc/autoconf.texi (External Software): Quadrigraphs are not
8670           processed correctly in AS_HELP_STRING; avoid this in the examples.
8671         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
8672         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
8673           comment and reduce m4_default([foo], []) to [foo].
8674         (m4_strip): Update the explanation.
8676 2005-04-19  Paul Eggert  <eggert@cs.ucla.edu>
8678         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
8679         Remove core.conftest.* too; it's generated by Tru64 5.1.
8680         Problem reported by Jennis Pruett.
8681         * lib/autoconf/functions.m4
8682         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
8683         Don't bother to remove core files; AC_RUN_IFELSE should do that
8684         for you.
8686 2005-04-19  Stepan Kasal  <kasal@ucw.cz>
8688         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
8690 2005-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
8692         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
8693         Report from Horst Wente.
8695 2005-04-15  Stepan Kasal  <kasal@ucw.cz>
8697         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
8698           the comment.
8700 2005-04-14  Gregorio Guidi  <greg_g@gentoo.org>
8702         * doc/autoconf.texi (External Software, Package Options): Add
8703           examples showing how to implement --with-* and --enable-* options.
8705 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
8707         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
8708         as well as configure.in.  Problem reported by Gregorio Guidi.
8710 2005-04-10  Paul Eggert  <eggert@cs.ucla.edu>
8712         * doc/autoconf.texi (Particular Functions): Use gnulib's current
8713         pattern for alloca snippet.
8715 2005-04-04  Stepan Kasal  <kasal@ucw.cz>
8717         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
8719 2005-04-01  Stepan Kasal  <kasal@ucw.cz>
8721         * doc/autoconf.texi (Generic Programs): Fix a typo.
8723 2005-04-01  Paul Eggert  <eggert@cs.ucla.edu>
8725         * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
8726         fails if %s isn't supported.  Problem reported by Ralf Wildenhues.
8728 2005-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8730         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
8731         Merge `-z option' as well for the benefit of Solaris link flags.  Pass
8732         whole-archive (-zallextract, -zdefaultextract) options in the hope of
8733         unique libraries, for the Sun Fortran 95 8.0 compiler.  Bug reported
8734         against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
8736 2005-03-22  Paul Eggert  <eggert@cs.ucla.edu>
8738         * NEWS: The configure command now warns you if you attempt to use
8739         a directory whose name contains a special character like space,
8740         newline, or "\".
8741         * doc/autoconf.texi (Installation Directory Variables): Allow
8742         "," in file names.  Do not use \@; it's not a portable regexp.
8743         * bin/Makefile.am (edit): Likewise.
8744         * lib/Makefile.am (edit): Likewise.
8745         * tests/Makefile.am (edit): Likewise.
8746         * tests/semantics.at: Likewise.
8747         * tests/torture.at: Likewise.
8748         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
8749         * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
8750         * doc/autoconf.texi (File System Conventions): Warn about
8751         unportable file names.
8752         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
8753         (AC_INIT): Use it.
8754         (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
8755         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
8756         ac_pwd, and quote srcdir.
8757         * lib/autotest/general.m4 (AT_INIT): Quote file name args.
8759         * doc/autoconf.texi: Fix some systematic formatting problems.
8760         ".)"  needs a following @: if not at the end of a sentence, and
8761         similarly for "!)".  "etc." should be preceded by a comma.
8762         "n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
8764 2005-03-22  Bruno Haible  <bruno@clisp.org>
8766         * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
8767         argument is often called 'build-aux'.
8769 2005-03-07  Stepan Kasal  <kasal@ucw.cz>
8771         * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
8772           macro AC_TRY_LINK is obsolete.
8773         (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
8774           `AC_CONFIG_FILES'.
8776 2005-02-24  Stepan Kasal  <kasal@ucw.cz>
8778         * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
8779           `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
8780           from a Common Lisp's `cl'.
8781         (AC_PROG_CXX): Behave according to the documentation: don't
8782           search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
8783           make the variable CCC precious; use `cl.exe', not `cl'.
8785 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
8786             Alexandre Duret-Lutz  <adl@gnu.org>
8788         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
8789         /dev/null, as "configure" shouldn't read stdin, and this insulates
8790         us from problems (e.g., when testing for "cl").  Also, do this
8791         redirection before invoking "hostname" or "uname", and keep the
8792         original input stream available via...
8793         (AS_ORIGINAL_STDIN_FD): ... this new macro.
8794         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
8795         bother with "</dev/null" since it's now done at the top of
8796         'configure'.
8797         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
8798         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
8799         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
8800         * doc/autoconf.texi (File Descriptor Macros): New section.
8801         (Printing Messages): Mention it.
8802         * tests/base.at (Input/Output): New test.
8804 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
8806         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
8807         newline if neither \c nor -n work, as that would output two
8808         newlines.  Prefer -n to \c.  Reported by Stepan Kasal.
8810 2005-02-12  Stepan Kasal  <kasal@ucw.cz>
8812         * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
8813         This causes that any required macros inside will get before the if.
8814         * doc/autoconf.texi (autom4te.cache): A typo.
8816 2005-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8818         Undo previous change, except keep the change to
8819         lib/autoconf/programs.m4 that replaced grep with shell
8820         pattern-matching.  This is because net-snmp configure reads stdin.
8821         Reported by Noah Misch.
8823 2005-02-11  Paul Eggert  <eggert@cs.ucla.edu>
8825         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
8826         from /dev/null, as "configure" shouldn't read stdin, and this
8827         insulates us from problems (e.g., when testing for "cl").
8828         Suggested by Alexandre Duret-Lutz.  Also, do this redirection
8829         before invoking "hostname" or "uname".
8830         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
8831         _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
8832         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
8833         "</dev/null" since it's now done at the top of 'configure'.
8834         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
8835         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
8836         Also, replace grep with shell pattern-matching, to save a process.
8838 2005-02-10  Paul Eggert  <eggert@cs.ucla.edu>
8840         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
8841         _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
8842         avoid thinking that Allegro Common Lisp's "cl" command is a C++
8843         compiler.
8845 2005-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8847         * doc/autoconf.texi (Limitations of Usual Tools): Document that
8848         grep -q isn't portable.  Improve grep -s explanation.
8849         Problem reported by Dan Manthey.
8851 2005-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8853         * doc/autoconf.texi (Special Shell Variables): Clarify
8854         PATH_SEPARATOR wording; fix typo in IFS.  Reported by Gary V. Vaughan.
8856 2005-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8858         * doc/autoconf.texi: Use @acronym for DJGPP.
8859         Fix some @code's that should have been @env's, and vice versa.
8860         Sort environment variable names.
8861         Mention that shells no longer inherit IFS.
8862         Don't recommend PATH_SEPARATOR=';' so strongly.
8863         Mention that $RANDOM might expand to the empty string.
8864         "symlink" and "soft link" -> "symbolic link".
8865         Improve mktemp description (reported by Bruno Haible).
8867 2005-02-05  Paul Eggert  <eggert@cs.ucla.edu>
8869         * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
8870         * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
8871         Likewise.
8872         * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
8873         Likewise.
8875 2005-02-04  Paul Eggert  <eggert@cs.ucla.edu>
8877         * NEWS: Mention AT_COPYRIGHT.
8879         * tests/local.at (AT_CMP): Use diff directly on input files rather
8880         than copying them.
8882         * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
8883         /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
8885 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
8886         and Paul Eggert  <eggert@cs.ucla.edu>
8888         * tests/autotest.at (Empty test suite): New test.
8889         * tests/torture.at (Substitute and define special characters)
8890         (Substitute a 2000-byte string, Define to a 2000-byte string)
8891         (Substitute a newline, Define a newline): New tests.
8893 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
8895         * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
8896         * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
8897         (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
8898         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
8899         (Standard regular expressions): New test.
8900         (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
8901         excess test name quoting.
8902         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
8903         CPPFLAGS to `configure' instead of setting it in `configure'.
8905         * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
8906         any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
8907         on some platforms.
8909         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
8910         s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
8912         * tests/local.at (AT_CMP): New macro.
8913         (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
8914         (AC_SAVE_STATE): Move environment grep...
8915         (AT_CHECK_ENV): to here.  Filter out `'$''.  Use AT_CMP.
8916         (AT_CONFIG_CMP): New macro.
8917         (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
8918         * tests/c.at (Extensions): Do not exit early.
8919         * tests/atlocal.in: Inherit $GREP.
8921         * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
8922         (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
8924         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
8925         (AC_COPYRIGHT): Factor header comment portion out and move into...
8926         * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
8927         * lib/autotest/general.at (AT_COPYRIGHT): New macro.
8928         (AT_INIT): Add Autotest copyright notice.  Display copyright notices in
8929         --version output.
8930         * tests/local.at: Add Autoconf test suite copyright notice.
8931         * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
8933 2005-02-04  Bruno Haible  <bruno@clisp.org>
8934         and Paul Eggert  <eggert@cs.ucla.edu>
8936         * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
8938 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
8940         * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
8941         this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
8943         Try not to generated lines of unlimited length, as POSIX places a
8944         2047-byte limit on line length of portable text files.
8945         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
8946         Use newline as a separator, not space.
8947         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
8948         (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
8949         space.
8951 2005-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8953         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
8954         as_func_*.  Add test to check whether positional parameters
8955         are restored after function return.
8957 2005-02-02  Paul Eggert  <eggert@cs.ucla.edu>
8959         * doc/autoconf.texi (Special Shell Variables): Mention _,
8960         BIN_SH, DUALCASE.  Say that variables other than "status" are safe
8961         if they contain a lower-case letter.  The DUALCASE problem was
8962         reported by Ralf Wildenhues.
8964         * bin/autoconf.as: Don't exit with status 0 after write failure
8965         with --help or --version.
8966         * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
8967         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
8969 2005-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8971         * doc/autoconf.texi (Limitations of Usual Tools):
8972         Unicos 9 sed limitations.
8973         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
8974         to get the option-enhanced interface on older Crays.  Try ftn for
8975         Fortran 95 (newer Crays).
8977 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
8979         * man/Makefile.am (.x.1): Go back to the simple solution, but take
8980         care to echo the commands, so the user knows what's going on.
8981         Modified from a suggestion by Stepan Kasal.
8983         * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
8984         with a cross reference.  Derived from a suggestion by Bruce Korb.
8986 2005-01-31  Paul Eggert  <eggert@cs.ucla.edu>
8988         * doc/autoconf.texi (config.status Invocation): Warn about
8989         discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
8990         * doc/install.texi (Defining Variables): Likewise.
8991         Based on a proposed patch by Ralf Wildenhues.
8993         * man/Makefile.am (.x.1): Make sure the required generated files
8994         are up to date.  Problem and original solution proposed by Stepan Kasal.
8995         $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
8996         implicit-man-prerequisites): New rules, used by the above.
8998         * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
8999         * config/config.guess, config/config.sub, config/install-sh: Likewise.
9000         * config/missing, config/texinfo.tex: Likewise.
9002 2005-01-29  Stepan Kasal  <kasal@ucw.cz>
9004         Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
9005         Update the long comment explaining it.
9007         m4_require no longer writes an ``is required by'' line to the
9008         execution stack.  It contains only one bit of non-redundant
9009         information: that the macro was required, not called.  And even
9010         this bit is useless in most situations: have you ever met a macro
9011         which both calls and requires the same macro?
9013         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
9014         (_m4_defun_pro_outer): ... only via this macro, for the outermost
9015           macro.
9016         (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
9017         (m4_expansion_stack_pop): Remove the misplaced comment.
9018         (m4_require): Don't put the ``is required by'' line to the
9019           execution stack; slightly improve the out-of-a-defun error message.
9020         (_m4_divert_grow): New macro, counter for the temporary diversions.
9021         (_m4_require_call): Use it.
9022         * tests/m4sugar.at (m4_require): Expect output without the
9023           ``is required by'' messages.
9025 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9027         * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
9028         rather than x for expr.
9030         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
9031         this is safe.
9032         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
9033         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
9034         * lib/autotest/general.m4 (AT_INIT): Likewise.
9035         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
9036         * tests/mktests.sh: Likewise.
9038 2005-01-27  Akim Demaille  <akim@epita.fr>
9040         Have autoheader honor --force.
9042         * doc/make-stds.texi, doc/standards.texi: Update from masters.
9043         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
9044         * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
9045         from masters, so that FileUtils.pm's update_file provide --force
9046         support.
9047         * bin/autoheader.in: Pass $force to update_file so that
9048         config.h.in is always recreated when --force.
9050 2005-01-24  Stepan Kasal  <kasal@ucw.cz>
9052         * doc/autoconf.texi (Introduction): Update Peter Simons' address.
9054 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9056         * doc/autoconf.texi (Limitations of Builtins): Clarify that
9057         "if test ! -d foo; ..." is portable.  Suggested by Stepan Kasal.
9059 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
9061         * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
9062         Warn about newline stripping in `` and $().  Update Solaris
9063         version to 9.
9064         (Limitations of Builtins): Use expr "X...", not expr "x...", as
9065         X insulates us from future changes to Posix.
9066         (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
9067         stripping.
9069 2005-01-19  Stepan Kasal  <kasal@ucw.cz>
9071         * doc/autoconf.texi (Defining Symbols): Delete the false comment that
9072           you cannot use AC_DEFINE to define macros containing `[' or `]'.
9074 2005-01-13  Paul Eggert  <eggert@cs.ucla.edu>
9076         * doc/autoconf.texi (Limitations of Usual Tools): Document bug
9077         in Solaris 8 join.  Problem reported by Tomohiro Suzuki on
9078         bug-tar mailing list.
9080 2005-01-05  Stepan Kasal  <kasal@ucw.cz>
9082         * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
9084 2005-01-05  Paul Eggert  <eggert@cs.ucla.edu>
9086         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
9087         ulongval to be static, to avoid unwanted GCC warning.  Problem
9088         reported by Michael Jennings via Daniel Reed; see
9089         <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
9091 2005-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
9093         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
9094         docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
9095         datadir, infodir, and mandir.  Adjust argument parsing code.
9096         (_AC_INIT_HELP): Update help text.
9097         * doc/autoconf.texi (Installation Directory Variables): Document
9098         new variables.
9100 2005-01-04  Noah Misch  <noah@cs.caltech.edu>
9102         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
9103         not seem to work, assume it does set $(MAKE).
9104         * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
9106 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
9108         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
9110 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
9112         A cleanup of the diversion support in m4sugar.
9114         * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
9115         (_m4_divert_n_stack): New macro; the expansion is
9116           <newline>m4_divert_stack, if m4_divert_stack is defined, and void
9117           otherwise.
9118         (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
9119         (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
9120           stored in _m4_divert_diversion or _m4_divert_dump.
9121         (m4_divert_pop): When the parameter is given, compare the symbolic
9122           name with the last diversion pushed on the stack.  Previously, the
9123           current diversion was compared with the numeric value of the
9124           diversion given as the parameter.
9125         (m4_require): If the macro hasn't been expanded yet, call ...
9126         (_m4_require_call): this new macro.
9128 2005-01-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9130         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
9131         Workarounds for documented `case' limitations.
9133 2005-01-03  Paul Eggert  <eggert@cs.ucla.edu>
9135         * doc/autoconf.texi (Limitations of Usual Tools): Warn about
9136         sed 'command1;command2'.  Problem reported by Ralf Wildenhues.
9138 2005-01-02  Paul Eggert  <eggert@cs.ucla.edu>
9140         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
9141         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
9142         bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
9144         Patch from Roger Leigh (with some minor changes) as follows:
9145         * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
9146         Resurrect AC_PROG_CC_STDC.
9147         * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
9148         AC_PROG_CC_C89, AC_PROG_CC_C99.
9149         (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
9150         * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
9151         AC_PROG_CC_C99): New macros.
9152         (AC_PROG_CC_STDC): Use them.
9153         (_AC_PROG_CC_STDC): Remove.
9154         (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
9155         * THANKS: Add Roger Leigh.
9157 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
9159         * bin/autoreconf.in (autoreconf_current_directory):  AM_INIT_AUTOMAKE
9160         signals that the package uses Automake; a `Makefile.am' is typical but
9161         not essential.  Reported by Magnus Therning.
9162         * tests/torture.at (autoreconf.): New banner.
9163         (autoreconf and non-AC configure): Rename to `Non-Autoconf
9164         AC_CONFIG_SUBDIRS'.
9165         (autoreconf an empty directory): Rename to `Empty directory'.
9166         (Unusual Automake input files): New test.
9168 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
9170         * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
9171         (AT_SETUP): Clear AT_capture_files.
9172         (_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
9173         (AT_KEYWORDS): Fix comment typo.
9174         * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
9175         * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
9176         * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
9178 2004-12-29  Albert Chin-A-Young  <china@thewrittenword.com>
9180         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
9181         If the variable to set is already set, set ac_cv_path_$1
9182         to the preset value so caller can assume ac_cv_path_$1
9183         is available.  (trivial change)
9185 2004-12-27  Noah Misch  <noah@cs.caltech.edu>
9187         * BUGS (Minor Problems): Warn about makefile limitations.
9188         * Makefile.am: Find and update `INSTALL' in $(srcdir).
9189         * man/Makefile.am: Find and update manual pages in $(srcdir).
9191 2004-12-24  Eric Blake  <ebb9@byu.net>
9193         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
9194         shells in subshell, to avoid noise from ash.  (trivial change)
9196 2004-12-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9198         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
9199         problems with SunOS ksh and backslash escaping, Bourne shells and
9200         closing brackets (both within character classes).  Bug reported
9201         against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
9202         <read>: New entry.  Mention non-availability of -r.
9204 2004-12-21  Akim Demaille  <akim@epita.fr>
9206         * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
9207         avoid cluttering displayed messages.  Rather, prepend srcdir where
9208         AT_LINE is used for log files.
9210 2004-12-21  Stepan Kasal  <kasal@ucw.cz>
9212         * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
9213         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
9214           no longer part of the macro, quote the occurrence of ``$tmp''.
9215         * doc/autoconf.texi (Forbidden Patterns): Typo.
9217 2004-12-21  Akim Demaille  <akim@epita.fr>
9219         * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
9220         separated from the test title by forcing a white space.
9222 2004-12-21  Akim Demaille  <akim@epita.fr>
9224         Enable Emacs navigation within testsuite.log files.
9226         * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
9227         use the compilation mode.
9228         (AT_LINE): Point to the srcdir.
9230 2004-12-19  Noah Misch  <noah@cs.caltech.edu>
9232         * tests/Makefile.am (installcheck-local): Use $(bindir).
9233         (check-local, installcheck-local): Pass TESTSUITEFLAGS.
9234         * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
9235         Makefile.am scheme Autoconf now uses.
9237 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
9239         * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
9240         * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
9242 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
9244         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
9245         (_AT_CHECK): Use it.
9246         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
9247         (AS_ESCAPE): Fix comment.
9248         * tests/autotest.at: Adjust section banner comments.
9249         (AT_CHECK_AT): Accept STATUS and STDERR.
9250         (AT_CHECK_AT_TEST): Likewise.
9251         (Invalid brace-enclosed parameter expansion)
9252         (Multiline command from M4 expansion)
9253         (Double-M4-quoted command): New tests.
9255 2004-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9257         * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
9259 2004-12-17  Akim Demaille  <akim@epita.fr>
9261         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
9262         m4_pattern_allow.
9263         Suggested by Alexandre Duret-Lutz.
9264         * doc/autoconf.texi (Setting Output Variables): Catch up.
9266 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
9268         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
9270 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
9272         * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
9273           remove the comment which said we cannot.
9275 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
9277         Add a specialized check for resolv.h.  Thanks to Gerrit P. Haase,
9278         Reini Urban and Paul Eggert for reporting the dependencies.
9280         * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
9281         * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
9282         (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
9284 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
9286         * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
9287           so that eg. ``autoscan --help'' doesn't truncate it.
9289 2004-12-15  Nicolas Joly  <njoly@pasteur.fr>
9291         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
9292         generated conftest files.
9294 2004-12-13  Noah Misch  <noah@cs.caltech.edu>
9296         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
9297         tracing on commands with possibly-escaped newlines.
9298         * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
9299         discontinued behavior and its implications.
9300         * tests/autotest.at (BS-newline in command, ^BS-newline in command)
9301         (BSx641-newline in command, BS-BS-newline in command)
9302         (BSx640-newline in command, Newline-CODE-BS-newline in command)
9303         (Single-quote-BS-newline in command)
9304         (Single-quote-newline-BS-newline in command): New tests.
9306 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
9308         * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
9309           on platforms where it works.
9310         (_AS_TEST_PREPARE): Test for ``test -x''.
9311         (_AS_BROKEN_TEST_PREPARE): Nuke.
9313 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
9315         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
9316         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
9317           give only 4-letter prefix to AS_TMPDIR, comment fixed.
9318         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
9319           create the temporary directory.
9320         (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
9322 2004-12-12  Kelley Cook  <kcook@gcc.gnu.org>
9324         * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
9325         (trivial change)
9327 2004-12-12  Alexandre Duret-Lutz  <adl@gnu.org>
9329         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
9331 2004-12-11  Noah Misch  <noah@cs.caltech.edu>
9333         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
9334         to avoid using a negated character class.  Reported by Nicolas Joly.
9335         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
9337 2004-12-10  Paul Eggert  <eggert@cs.ucla.edu>
9339         * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
9340         autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
9341         Don't depend on .x file explicitly, since "make" does that for us.
9342         Suggested by Stepan Kasal.
9344         * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
9345         Add *.tmp.
9346         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
9347         ifnames): Factor common code.  And they said it couldn't be done!
9349 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
9351         * bin/.cvsignore: Add autoconf.in.
9352         * tests/.cvsignore: Add wrapper.in.
9353         * lib/autotest/general.m4: Escape '$' in case pattern.
9355 2004-12-09  Noah Misch  <noah@cs.caltech.edu>
9357         * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
9359         * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
9361         * tests/autotest.at: New file.
9362         * tests/suite.at: Include it.
9363         * tests/Makefile.am: Distribute it.
9365         * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
9366           shell tracing on a command that could contain multiple lines.
9367         * doc/autoconf.text: Document that fact and its implications.
9368         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
9369         * tests/autotest.at (Multiline backquote command substitution,
9370           Multiline parameter expansion, Literal multiline command,
9371           Multiline parenthetical command substitution): Remove XFAIL.
9373 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
9375         * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
9376         and suggest AC_SEARCH_LIBS.  Suggested by Noah Misch and Stepan Kasal.
9378 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
9380         * configure.ac (test suite): Cease to generate wrapper scripts.
9381         * configure: Regenerate.
9382         * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
9383         (m4f_dependencies): Adjust accordingly.
9384         * tests/Makefile.am (Wrappers): Generate wrapper scripts.
9385         (wrapper.in): Generate it in the build directory.
9386         (MAINTAINERCLEANFILES): Delete wrapper.in.
9387         (CLEANFILES): Add wrapper.in.
9388         * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
9389         the output.  Replace each $as_me with a @wrap_program@.
9390         * tests/wrapper.in: Delete it; we always build it.
9392         * bin/Makefile.am (autoconf.in): Generate it in the build directory.
9393         (EXTRA_DIST): Remove autoconf.in.
9394         (CLEANFILES): Add autoconf.in.
9395         (autoconf): Find autoconf.in in the build directory.
9396         * bin/autoconf.in: Delete it; we always build it.
9398 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
9400         * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'.  Join
9401         PATH members so as to not prepend an empty element.  Move a comment.
9402         * Makefile.am (SUBDIRS): Build in `tests' last.
9403         * tests/Makefile.am (installcheck-local): Add check-local dependencies.
9405 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
9407         * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
9408         the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
9409         <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
9410         Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
9412 2004-12-07  Stepan Kasal  <kasal@ucw.cz>
9414         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
9415         patch: extra "-l"s.
9417 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
9419         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
9420         looking elsewhere for getmntent.  Problem reported by Mark D. Baushke.
9421         * doc/autoconf.texi (Particular Functions): Mention new behavior.
9423 2004-12-03  Stepan Kasal  <kasal@ucw.cz>
9425         * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
9426           out the common code to ...
9427         (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
9428           value of the #define--default to 1, iff the macro was called
9429           with exactly one parameter.
9431 2004-12-02  Paul Eggert  <eggert@cs.ucla.edu>
9433         * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
9434         "char c = '\200';" rather than "char c = 0x80;" as the
9435         latter doesn't conform to the strict C standard due to
9436         overflow on signed char hosts.
9438         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
9439         to -qlanglvl=ansi.  We don't want to disable extensions.
9441 2004-11-29  Paul Eggert  <eggert@cs.ucla.edu>
9443         * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
9444         (Using Autotest, testsuite Scripts, Writing testsuite.at):
9445         Reword slightly to avoid some English-language problems noted
9446         by Ralf Wildenhues in:
9447         http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
9449 2004-11-29  Stepan Kasal  <kasal@ucw.cz>
9451         * NEWS: Add ^L above each release.
9453 2004-11-28  Paul Eggert  <eggert@cs.ucla.edu>
9455         Fix documentation problems reported by Russ Boylan in
9456         <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
9457         along with some nearby cruft.
9458         * doc/autoconf.texi (Libtool): Libtool can be used without
9459         Automake (not without Autoconf).
9460         (Introduction): Mention lists.gnu.org.
9461         * BUGS: Don't mention bugs.gnu.org.
9462         Remove mention of ancient libtool compatibility problem.
9463         * NEWS: Mention that bugs.gnu.org is kaput.
9464         * README: Likewise.  Mention where mailing list archives can be found.
9466 2004-11-28  Stepan Kasal  <kasal@ucw.cz>
9468         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
9470 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
9472         * doc/autoconf.texi (Pretty Help Strings): Go back to
9473         single-quoting assignments to cache variables.
9475 2004-11-23  Stepan Kasal  <kasal@ucw.cz>
9477         * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
9478         with the examples; fix the bug in MY_ARG_WITH example reported
9479         by Alexandre Duret-Lutz.
9480         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
9481         expansion of $1 in the comment emitted to configure.
9483 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
9485         * doc/autoconf.texi (Pretty Help Strings): Fix typo
9486         in my editing of the previous patch.  Problem reported
9487         by Alexandre Duret-Lutz.
9489 2004-11-22  Stepan Kasal  <kasal@ucw.cz>
9491         * doc/autoconf.texi (Autoconf Language): Explain that
9492         ``descriptions'' may not be double quotes.
9493         (Quotation Rule Of Thumb): Likewise.
9494         (Pretty Help Strings): Likewise; remove the wrong comment;
9495         simplify the examples and improve their quoting.
9497 2004-11-13  Stepan Kasal  <kasal@ucw.cz>
9499         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
9500         the $1_found variable, don't test whether the file is executable;
9501         Both things are checked ...
9502         (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
9503         the former ``test -f''.
9504         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
9506 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9508         * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
9509         use cp -R instead.
9511 2004-11-10  Derek R. Price  <derek@ximbiot.com>
9513         * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
9514         limitations.  Reorder paragraphs for clarity.
9516 2004-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9518         * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
9519         to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
9520         variants", "Unix", and some related minor wording fixups.
9522         (Shellology, Special Shell Variables): Document that the Zsh
9523         problem with NULLCMD was fixed in zsh 3.1.6-dev-18.  Thanks
9524         to Alexandre Duret-Lutz for this info.
9526 2004-10-10  Alexandre Duret-Lutz  <adl@gnu.org>
9528         * doc/autoconf.texi (One-Shot Macros): New node.
9530 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
9532         * doc/autoconf.texi (Function Portability): Fix misdescription
9533         of putenv.  Problem reported by Michael Wardle.
9535 2004-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9537         * doc/autoconf.texi (auindex): New macro.
9538         (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
9539         Problem reported by Stepan Kasal.
9541 2004-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9543         Fix problems reported by Andreas Buening in:
9544         http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
9545         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
9546         in test makefile.
9547         * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
9548         readable; it's not true in OS/2-emx.
9550 2004-09-04  Paul Eggert  <eggert@cs.ucla.edu>
9552         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
9553         "/usr/include", clear ac_x_includes instead of leaving it as "no"
9554         (trivial change).  Problem and patch reported by Andrew Church in:
9555         http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
9557 2004-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9559         * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
9560         three args in examples.  Problem reported by Frederik Fouvry in:
9561         http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
9562         Also, fix some minor spacing and punctuation bugs.
9564 2004-09-02  Akim Demaille  <akim@epita.fr>
9566         * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
9567         "case" to restore ordering.
9568         Reported by Stepan Kasal.
9570 2004-08-26  Akim Demaille  <akim@epita.fr>
9572         * doc/autoconf.texi: Minor typos and stylos.
9574 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
9576         * configure.ac (AC_INIT): Bump to 2.59c.
9578 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
9580         Version 2.59b.
9582         * README: Add advice about m4 1.4.2.
9584         * Makefile.cfg (wget_files): Remove config.guess, config.sub,
9585         texinfo.tex for now (done by hand now).
9586         * Makefile.maint (wget_files, cvs_files):
9587         Remove ansi2knr.c; nobody uses it.
9588         (ansi2knr.c-url_prefix): Remove.
9589         (cvs-update): Fix test for failure.  I don't know why it ever
9590         worked...
9592         * doc/autoconf.texi: Update URLs, some of which went stale.
9593         Use @uref rather than @href.
9595         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
9596         handle "--" as per POSIX.  Suggested by Paul Pogonyshev.
9598         * config/config.guess, config/config.sub, config/elisp-comp,
9599         config/install-sh, config/mkinstalldirs, config/texinfo.tex,
9600         doc/fdl.texi, doc/standards.texi: Sync with master copy.
9602         * NEWS, TODO, configure.ac, bin/autoscan.in,
9603         bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
9604         doc/install.texi, lib/Autom4te/Configure_ac.pm,
9605         lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
9606         lib/autoconf/programs.m4, lib/autoconf/status.m4,
9607         lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
9608         lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
9609         tests/tools.at, tests/torture.at:
9610         Use "file name" rather than "filename" or "path",
9611         to be consistent with the terminology of the GNU coding standards.
9613 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
9615         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
9616         AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
9617         HP-UX 11.23 cc/aCC or Tru64 4.0 cc.  Problem reported by Noah Misch in
9618         <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
9620         More fixes to support spaces in the name of the build directory.
9621         This isn't a complete fix but it's an improvement.
9623         * bin/autoconf.as (autom4te_options): New var.
9624         Use it instead of appending to AUTOM4TE, so that we can allow
9625         spaces in the build directory's absolute name.
9626         * bin/autoheader.in ($autoconf): Allow spaces in file names.
9627         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
9628         AT_CHECK_NOESCAPE): Likewise.
9629         * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
9630         main program): Likewise.
9632 2004-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9634         * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
9635         From Ralf Corsepius in:
9636         http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
9638 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
9640         * doc/autoconf.texi (Function Portability): Document isinf and
9641         and isnan.  From a suggestion by Kevin Ryde.
9643         * lib/Autom4te/General.pm (END): Return correct exit status even
9644         if unlink succeeds and sets $?.  Needed with Solaris 8's perl 5.00503.
9646 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
9648         * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
9649         for compatibility with Automake 1.4.  Reported by J C Fitzgerald in
9650         <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
9652 2004-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
9654         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
9655         (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
9656         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
9657         * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
9658         * lib/autom4te.in (Automake-preselections): Preselect
9659         AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
9661 2004-08-02  Alexandre Duret-Lutz  <adl@gnu.org>
9663         * lib/autom4te.in (Automake-preselections): Preselect
9664         AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
9665         trace them.
9667 2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
9669         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
9670         Tru64.
9671         * doc/autoconf.texi (Shellology): Mention BIN_SH.
9672         Document problem with "`""`" in pdksh POSIX mode.
9674 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
9676         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
9677         with pdksh, too.  Problem reported by Patrick Welche via
9678         Gary V. Vaughan.
9679         * doc/autoconf.texi (Shellology): Note that set -o posix is
9680         useful for pkdsh, too.
9682 2004-06-24  Paul Eggert  <eggert@cs.ucla.edu>
9684         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
9685         _AS_UNSET_PREPARE, so that we can use $as_unset directly.
9686         Don't fail if ENV or BASH_ENV is readonly.
9687         (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
9688         etc. are read only.  Problem reported by Ludovic Courtes.
9690 2004-06-23  Noah Misch  <noah@cs.caltech.edu>
9692         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
9693         zsh, disable GLOB_SUBST to avoid backslash handling problems.
9694         (trivial change)
9696 2004-06-04  Paul Eggert  <eggert@cs.ucla.edu>
9698         * doc/autoconf.texi (File System Conventions): Warn about
9699         names like "aux".  Problem reported by Eric Blake.
9701         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
9702         by zero instead of array size, so that we can use any arithmetic
9703         constant expression (instead of requiring an integer constant
9704         expression).  This allows us to test expressions like DBL_MAX <
9705         LDBL_MAX, which didn't conform to the C standard using the old
9706         method.
9707         (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
9708         now that we can do floating-point tests at compile time.
9710 2004-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9712         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
9713         and LDBL_EPSILON, as the resulting expression isn't an
9714         integer constant expression and violates the C standard.
9715         Problem reported by Nelson H. F. Beebe.  Also, check
9716         for "L" suffix, and check that long double doesn't have
9717         worse range or precision than double, that mixed-mode
9718         arithmetic doesn't generate a diagnostic, that double
9719         constants fit in long double.
9721 2004-06-03  Kevin Ryde  <user42@zip.com.au>
9723         * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
9724         malloc(0) and realloc(NULL,size).
9726         * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
9727         Bob Proulx.
9729 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
9731         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
9732         in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].  Problem reported
9733         by Jim Meyering.
9735 2004-05-26  Paul Eggert  <eggert@cs.ucla.edu>
9737         * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
9738         can be rewritten using if-then-else.  Suggested by Bruno Haible.
9740 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
9742         * doc/autoconf.texi (testsuite Scripts): Fix typo.
9743         Problem reported by Stepan Kasal.
9745 2004-05-24  Paul Eggert  <eggert@cs.ucla.edu>
9747         * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
9748         change).  Patch reported by Ralf Wildenhues in
9749         <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
9751         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
9752         function F exists if the compiler and linker let you compile an
9753         expression like (F != 0).  Recent versions of GCC optimize away
9754         the reference to F in that case, since every function address must
9755         be nonzero, so the link succeeds even if F does not exist.
9756         Problem reported by Manu in
9757         <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
9759         * doc/autoconf.texi (Systemology): Standardize on the spelling of
9760         "Unix".  Many uses changed.
9761         (Limitations of Builtins): Explain better why the ! command isn't
9762         portable.
9764 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
9766         * lib/autom4te.in (Automake-preselections): Preselect
9767         LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
9769 2004-05-19  Kevin Ryde  <user42@zip.com.au>
9771         * doc/autoconf.texi (Function Portability): Add strerror_r, cross
9772         referencing AC_FUNC_STRERROR_R.
9774         * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
9775         note pessimistic assumption when cross compiling.
9777 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9779         * doc/autoconf.texi (Limitations of Make): Note that BSD make
9780         (until 2004) invoked subcommands with sh -e, contra POSIX.
9781         Reported by Kevin Ryde.
9783 2004-05-10  Eric Sunshine  <sunshine@sunshineco.com>
9785         * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
9786         _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
9787         "        $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
9788         `test -f "        /usr/bin/grep"', which _always_ failed.
9789         (AC_PROG_SED): Ditto bogus PATH fix.
9790         * autoconf.texi (AC_PROG_GREP): Properly document that this macro
9791         requires that grep correctly supports _multiple_ `-e' options, rather
9792         than stating only that grep should accept `-e'.
9794 2004-05-03  Paul Eggert  <eggert@cs.ucla.edu>
9796         Port to C99, which requires that 'exit' be declared.
9798         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
9799         to ensure that stdlib.h is included.
9800         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
9801         AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
9802         _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
9803         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
9804         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
9805         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
9806         when using 'exit' in a test; C99 requires that 'exit' be declared.
9808 2004-05-02  Paul Eggert  <eggert@cs.ucla.edu>
9810         * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
9811         now prefers 'grep' implementations that accept -e.
9812         (Limitations of Usual Tools): Describe problems of traditional
9813         egrep and fgrep with long input lines, and of traditional grep
9814         with -e.
9815         * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
9816         (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
9817         All callers changed.  Append /usr/xpg4/bin to the PATH, for
9818         Solaris.
9819         (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
9820         the user with complaints about multiple -e options.
9821         * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
9822         Define it with AC_PROG_GREP.
9823         * configure.ac (AC_PROG_GREP): Add.
9824         * lib/freeze.mk (GREP): New macro.
9826 2004-05-02  Eric Sunshine  <sunshine@sunshineco.com>
9828         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
9829         a possible candidate only after all others fail, rather than
9830         consulting it first.  This improves backward compatibility by
9831         better reflecting the way shell selection occurred in previous
9832         versions of Autoconf, and should help to avoid triggering latent
9833         problems in other packages, such as the one in Automake where zsh
9834         is not handled robustly:
9835         http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
9836         Although it is not Autoconf's responsibility to work around
9837         problems in Automake, it nevertheless makes sense to avoid
9838         introducing unnecessary incompatibilites.
9840 2004-04-22  Albert Chin-A-Young  <china@thewrittenword.com>,
9841             Gary V. Vaughan  <gary@gnu.org>
9843         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
9844         how deeply nested we are when a suitable tool is found, set the
9845         ac_path_TOOL_found flag.
9846         (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
9847         nested we are in this macro.  Break out of all 3 nested loops if
9848         ac_path_TOOL_found is set.
9850 2004-04-21  Gary V. Vaughan  <gary@gnu.org>
9852         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
9853         of the _AS_PATH_WALK loop too if GNU flavor is found.
9855 2004-04-21  Alexandre Duret-Lutz  <adl@gnu.org>
9857         * doc/autoconf.texi (Limitations of Make): Update documentation
9858         for `$<'.  New entry `Long lines', based on a report from Simon
9859         Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
9860         paragraph about DJGPP, based on a mail from Richard Dawe.
9862 2004-04-20  Paul Eggert  <eggert@twinsun.com>
9864         * tests/c.at (C keywords): Don't assume that GCC supports
9865         "restrict" and "inline", as sufficiently-old GCC versions do not
9866         (also, GCC configured to be in pedantic C89 mode does not).
9867         Problem reported by Sumit Pandya in:
9868         http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
9870         * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
9871         consider -g to work if it generates warnings when plain compiles
9872         don't.  Problem reported by Braden McDaniel in:
9873         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
9875         * doc/autoconf.texi (Slashes): New section, to document a problem
9876         reported by Jim Meyering in:
9877         http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
9879         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
9880         linker output files before linking, to work around IRIX 6 linker bug.
9881         Problem reported by Rainer Orth in:
9882         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
9884 2004-04-20  Gary V. Vaughan  <gary@gnu.org>
9886         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
9887         best tool so far counter rely on the tool path variable name to
9888         avoid checks for one tool being affected by the results of running
9889         the length check on a previous tool.
9891         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
9892         match expression argument, as different greps have different
9893         regular expression flavours.
9894         (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
9895         literals.
9896         (AC_PROG_EGREP): Pass 'EGREP$'.
9897         (AC_PROG_GREP): Pass 'GREP$'.
9899 2004-04-20  Albert Chin-A-Young  <china@thewrittenword.com>
9901         * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
9902         is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
9904 2004-03-29  Paul Eggert  <eggert@twinsun.com>
9906         * doc/autoconf.texi (Particular Headers, Particular Types, Generic
9907         Types, Specific Compiler Characteristics, System Services,
9908         Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
9909         etc. consistently instead of 'long', 'short', 'unsigned' etc.
9910         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
9911         * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
9912         Likewise.
9913         * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
9914         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
9915         AC_TYPE_OFF_T): Likewise.
9916         * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
9917         Likewise.
9919         * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
9920         pacify libtool 1.5.2.  Fix quoting problems in sed command.
9922 2004-03-28  Paul Eggert  <eggert@twinsun.com>
9924         * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
9925         now defines HAVE_DECL_TZNAME if it is declared, when
9926         HAVE_STRUCT_TM_TM_ZONE is not defined.
9927         * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
9928         Do not assume atoi.  Rely on HAVE_DECL_TZNAME when testing
9929         for HAVE_TZNAME.
9931 2004-03-28  Steven G. Johnson  <stevenj@fftw.org>
9933         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
9934         superfluous backslashing of quotes (") in sed expressions;
9935         thanks to Paul Eggert.
9937 2004-03-26  Steven G. Johnson  <stevenj@alum.mit.edu>
9939         * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
9940         Fortran compiler is ifort, also added pghpf; thanks to Nelson
9941         H. F. Beebe for the bug report.
9943 2004-03-26  Steven G. Johnson  <stevenj@fftw.org>
9945         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
9946         quoted -cmdline argument in Portland Group compiler (bug
9947         reported by Jeffrey J. Barteet).
9949 2004-03-25  Kevin Ryde  <user42@zip.com.au>
9951         * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
9952         (Run Time): ... here, where it's now mentioned.
9954 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
9956         * doc/autoconf.texi (autom4te Invocation): Language Autoconf
9957         inherits from language Autoconf-without-aclocal-m4.
9958         (Customizing autom4te): Adjust example; the cache must now be
9959         disabled for language Autoconf-without-aclocal-m4.
9961 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
9962             Nathanael Nerode  <neroden@twcny.rr.com>
9964         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
9965         AC_CHECK_TOOLS): Warn if a cross-tool is found without
9966         a prefix.
9967         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
9968         AC_CHECK_TARGET_TOOLS): New macros.
9969         * doc/autoconf.texi (Generic Programs): Document
9970         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
9971         AC_CHECK_TARGET_TOOLS, and warn for future changes
9972         in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
9973         AC_CHECK_TOOLS.
9974         (Specifying Names): Document the reason for these future
9975         behavioral changes.
9976         * tests/mktests.sh: Do not generate tests for the
9977         new macros.
9978         * NEWS: Document these changes.
9980         * doc/autoconf.texi: Avoid macros with unbraced arguments,
9981         they make TeX hang up.
9983 2004-03-15  Paul Eggert  <eggert@bogus.example.com>
9985         * NEWS: New macro AC_CHECK_ALIGNOF.
9986         * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
9987         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
9988         int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
9989         vowel.
9990         (AC_CHECK_ALIGNOF): New macro.
9991         * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
9992         * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
9993         those for sizeof.
9995 2004-03-03  Paul Eggert  <eggert@twinsun.com>
9997         * bin/Makefile.am (edit): Don't use $< in a context where
9998         POSIX doesn't require support for it.  Use $@.in instead.
9999         Problem reported by Anthony N. Frasso in
10000         <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
10001         * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
10003 2004-02-23  Gary V. Vaughan  <gary@gnu.org>
10005         * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
10006         from the next generation of Libtool.
10007         * lib/autom4te.in (Autoreconf-preselections): Ditto.
10009 2004-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
10011         * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
10012         is not always thread-safe.  Report from Nathanael Nerode.
10014 2004-02-18  Paul Eggert  <eggert@twinsun.com>
10016         Fix a dependencies problem, stemming from a Autoconf 2.59 build
10017         problem on QNX reported by Stephen Rasku in
10018         <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
10020         * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
10021         $(m4sh_m4f_dependencies); this removes a FIXME.
10022         * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
10023         (MAINTAINERCLEANFILES): Split into pieces,
10024         one per related section.  Add $(srcdir)/wrapper.in.
10026 2004-02-09  Paul Eggert  <eggert@twinsun.com>
10028         * doc/autoconf.texi (Setting Output Variables): Emphasize that
10029         AC_SUBST provides no portable way to escape literal newlines.
10031         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
10032         flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
10033         Darwin uses -lcrt2.o and there's little point to cataloging all
10034         the system variants.  Partial fix reported by Andreas Waechter in:
10035         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
10036         for bug reported by Nelson H. F. Beebe in:
10037         http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
10039 2004-02-04  Paolo Bonzini  <bonzini@gnu.org>
10041         * doc/autoconf.texi (AU_DEFUN): Fix English,
10042         suggested by Paul Eggert.
10043         * lib/autoconf/autoupdate.m4: Correct reference to
10044         acobsolete.m4, suggested by Alexandre Duret-Lutz.
10046 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
10048         * bin/autoupdate.in: Define __file__ so that warnings
10049         refer to the correct file.
10050         * doc/autoconf.texi (AU_DEFUN): Describe more correctly
10051         the behavior of the third argument.
10052         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
10053         correctly the behavior of the third argument.  Document
10054         what the three macros that AU_DEFUN defines do.  Fix
10055         warning message when the third argument includes $0
10056         (reported by Alexandre Duret-Lutz).
10058 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
10059             Eric Sunshine  <sunshine@sunshineco.com>
10060             Paul Eggert  <eggert@twinsun.com>
10062         * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
10063         (AS_INIT): Output shell initialization there. Removed optional
10064         parameter. Expand _AS_SHELL_FN_SPY.
10065         (AS_INIT_WITH_SHELL_FN): Removed.
10066         (_AS_SHELL_FN_SPY): New macro.
10067         (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
10068         macros.
10069         (AS_SHELL_SANITIZE): Remove loop to find better shell
10070         and documentation for the parameter.
10071         (_AS_DETECT_BETTER_SHELL): Move it here.
10072         (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
10073         (_AS_RUN): Move it here, support testing with eval.
10074         (AS_REQUIRE_SHELL_FN): Require shell functions when
10075         it is used.
10076         (_AS_LINENO_WORKS): Put around braces, we do not
10077         trigger the bash bug anymore.
10078         * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
10079         use AS_INIT_WITH_SHELL_FN.
10080         * bin/autoconf.in, tests/wrapper.in: Regenerated.
10082 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
10084         * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
10085         * doc/autoconf.texi: Don't say that the third parameter
10086         is broken.
10087         * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
10088         (AU_DEFUN): Honor the third parameter, create autoupdate
10089         macros with AU_DEFINE.
10090         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
10091         AC_DIR_HEADER): Use AU_DEFUN's third parameter.
10092         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
10093         * lib/autoconf/programs.m4 (AC_RSH): Likewise.
10094         * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
10095         AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
10096         AC_XENIX_DIR): Likewise.
10097         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
10098         AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
10099         * lib/autoconf/status.m4: Remove FIXME.
10100         * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
10101         that the macro is not present anymore in the updated
10102         configure.ac.
10103         * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
10104         of autoupdate.
10106 2004-01-28  Paul Eggert  <eggert@twinsun.com>
10108         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
10109         copyright years.
10110         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
10111         2003 (except 1997) to the list of copyright years.  This undoes
10112         the 2003-05-22 change, which removed the older years from the list.
10113         * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
10115 2004-01-27  Gary V. Vaughan  <gary@gnu.org>
10116             Albert Chin-A-Young  <china@thewrittenword.com>
10118         * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
10119         grep or ggrep program in PATH that accepts as long lines as
10120         possible.
10121         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
10122         AC_PROG_GREP.
10123         (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
10124         egrep and fgrep respectively if $GREP -E/-F don't work.
10125         (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
10126         _AC_PROG_GREP, and AC_PROG_SED.
10127         (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
10128         longest input length accepted by a command.
10129         (AC_PROG_SED): Use it.
10130         * doc/autoconf.texi (Particular Programs): Document the changes.
10131         * NEWS: Updated.
10133 2004-01-27  Paul Eggert  <eggert@twinsun.com>
10135         * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
10136         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
10137         bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
10138         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
10140         * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
10141         bin/autoconf.in, config/Makefile.in, config/config.guess,
10142         config/config.sub, config/install-sh, config/mdate-sh,
10143         config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
10144         lib/Makefile.in, lib/Autom4te/Makefile.in,
10145         lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
10146         lib/autotest/Makefile.in, lib/emacs/Makefile.in,
10147         lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
10148         man/autoheader.1, man/autom4te.1, man/autoreconf.1,
10149         man/autoscan.1, man/autoupdate.1, man/config.guess.1,
10150         man/config.sub.1, man/ifnames.1, tests/Makefile.in,
10151         tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
10152         tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
10153         tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
10154         tests/actypes.at: Regenerate and/or sync with original
10155         sources.
10157 2004-01-26  Paul Eggert  <eggert@twinsun.com>
10159         * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
10160         HAVE_INTTYPES_H is defined.  This is needed on Tru64 5.1b with
10161         Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
10162         not <inttypes.h>.  Problem reported by Tim Mooney in
10163         <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
10164         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
10165         Likewise.
10167         * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
10168         otherwise "make check" fails because it forbids cmp (I guess
10169         because cmp treats files as binary on DOS-like systems).
10171         * tests/mktests.sh: Update copyright date to 2004, since some tests
10172         have changed in 2004.
10174 2004-01-23  Gary V. Vaughan  <gary@gnu.org>
10176         * lib/autoconf/programs.m4 (AC_PROG_SED):  New macro to test for a
10177         non-truncating sed or gsed program in PATH.
10178         * tests/acprograms.at: Add it.
10179         * doc/autoconf.texi (Particular Programs): Document it.
10180         * NEWS: Updated.
10182 2004-01-15  Paul Eggert  <eggert@twinsun.com>
10184         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
10185         -std1 disables some useful extensions on Tru64.  Problem reported
10186         by N. Lichtmaier in
10187         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
10189 2004-01-14  Paul Eggert  <eggert@twinsun.com>
10191         * doc/autoconf.texi (Programming in M4sh): Document that
10192         AS_MKDIR_P succeeds if the destination is a symbolic link
10193         to an existing directory.
10194         (Limitations of Usual Tools): Note that mkdir -p might not
10195         succeed on symlinks to directories.
10197 2004-01-13  Paul Hilfinger  <hilfinger@CS.Berkeley.EDU>
10199         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
10200         * bin/autoheader.in: Grammar fix in message.
10201         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
10202         Test for dir before calling mkdir -p.  (trivial changes)
10204 2004-01-13  Eric Blake  <ebb9@byu.net>
10206         * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
10207         AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
10209 2004-01-10  Jim Meyering  <jim@meyering.net>
10211         * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
10213 2004-01-09  Paul Eggert  <eggert@twinsun.com>
10215         * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
10216         with `autoconf -Wall,error'.  Bug reported by Eric Blake in:
10217         http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
10218         (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
10219         AC_COMPILE_IFELSE, since we now assume our caller invokes
10220         AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
10221         (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
10222         of AC_RUN_IFELSE; this avoids the warning mentioned above.
10223         (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
10225 2004-01-07  Paul Eggert  <eggert@twinsun.com>
10227         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
10228         `"'...'"`, as it's confusing (and I suspect it may not work on
10229         some platforms).  The code was incorrect anyway, as it assumed
10230         that \$ evaluated to itself in that context.  Reported by
10231         Alexandre Duret-Lutz.
10233 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
10235         * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
10236         and _LT_AC_TAGCONFIG.
10238 2004-01-06  Paul Eggert  <eggert@twinsun.com>
10240         * doc/autoconf.texi (One Macro Call): Fix an incorrect
10241         example, and add more examples.  Reported by Eric Sunshine.
10243 2004-01-05  Paul Eggert  <eggert@twinsun.com>
10245         * doc/autoconf.texi (Limitations of Usual Tools):
10246         Remove warning against "rm -fr" introduced yesterday; it
10247         was a false alarm.
10249         * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
10250         autoscan, autoupdate, ifnames): Don't use chmod -w.
10251         * lib/Makefile.am (autom4te.cfg): Likewise.
10252         * doc/autoconf.texi (Limitations of Usual Tools): Warn against
10253         "chmod -w".
10255 2004-01-04  Paul Eggert  <eggert@twinsun.com>
10256             Paolo Bonzini  <bonzini@gnu.org>
10258         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
10259         by doing lineno substitution only on lines containing "$LINENO".
10261 2004-01-04  Paul Eggert  <eggert@twinsun.com>
10263         * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
10264         Use "rm -f" to remove conftest.sed, not plain "rm".
10265         Bug reported by David Relson in
10266         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
10268         * Makefile.am (autom4te-update):
10269         Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
10270         * Makefile.maint (my-distcheck, do-po-update): Likewise.
10271         * doc/autoconf.texi (Guidelines): Likewise.
10272         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
10273         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
10274         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
10275         * lib/autotest/general.m4 (AT_INIT): Likewise.
10276         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
10277         * tests/Makefile.am (clean-local): Likewise.
10278         * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
10279         srcdir): Likewise.
10280         * doc/autoconf.texi (Limitations of Usual Tools):
10281         Warn against "rm -fr".
10283 2004-01-03  Paul Eggert  <eggert@twinsun.com>
10285         * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
10286         -c -o might not work.  From a suggestion by Kevin Ryde.
10287         (C Compiler, Generating Sources, Limitations
10288         of Usual Tools, Limitations of Make, Making testsuite Scripts):
10289         Don't put '-o' after non-options, as POSIX doesn't allow this.
10290         Mention that cc's name might be gcc or c89 or whatever.
10292 2004-01-04  Kevin Ryde  <user42@zip.com.au>
10294         * doc/autoconf.texi: Add various further index entries.
10296 2003-12-29  Paul Eggert  <eggert@twinsun.com>
10298         * bin/autoreconf.in (autoreconf_current_directory):
10299         Fix typo: mkdir without umask arg.
10301 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
10303         * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
10304         Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
10305         `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
10306         explanation clearer.
10308 2003-12-24  Andreas Schwab  <schwab@suse.de>
10310         * doc/autoconf.texi (Default Includes): Fix misspelling of
10311         AC_INCLUDES_DEFAULT.
10313 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
10315         * configure.ac: Test if sh -n works.
10316         * configure: Regenerate.
10317         * tests/atlocal.in: Store the result here.
10318         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
10319         tools.at, looking in atlocal's ac_cv_sh_n_works instead
10320         of explicitly testing.
10321         (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
10322         (AT_CHECK_AUTOCONF): Test for the configure script syntax.
10323         * tests/tools.at (Syntax of the shell scripts): Simplify
10324         using AT_CHECK_SHELL_SYNTAX.
10325         (Syntax of the Perl scripts): Remove definition of
10326         AT_CHECK_PERL_SYNTAX.
10328 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
10330         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
10331         stderr to /dev/null.
10332         * bin/autoconf.in: Regenerate.
10333         * bin/wrapper.in: Regenerate.
10335 2003-11-26  Paolo Bonzini  <bonzini@gnu.org>
10337         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
10338         Extracted from AS_SHELL_SANITIZE.
10339         (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
10340         macros.
10341         (AS_SHELL_SANITIZE): Move reinvocation code from
10342         _AS_LINENO_WORKS, use it to find out if shell
10343         functions work.
10344         (_AS_LINENO_WORKS): Don't find another shell if $LINENO
10345         does not work.
10346         (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
10347         (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
10348         was called.
10349         * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
10350         * bin/autoconf.in: Regenerate.
10351         * tests/wrapper.in: Regenerate.
10352         * tests/tools.at: Test the syntax of tests/autoconf
10353         and tests/testsuite.
10355 2003-11-24  Akim Demaille  <akim@epita.fr>
10357         * config/announce-gen (&print_locations, &print_signatures)
10358         (&sizes): New.
10359         Use them.
10360         No longer rely on Gnus to inline the list of signatures: compute
10361         them on the fly.
10363 2003-11-24  Akim Demaille  <akim@epita.fr>
10365         * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
10366         override some files.
10367         (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
10368         From Debian Autoconf 2.58.
10370 2003-11-24  Akim Demaille  <akim@epita.fr>
10372         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
10373         uses.
10374         From Debian Autoconf 2.58.
10376 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
10378         * TODO: Remove already done things.  Update the part about finding
10379         tools for the target.
10381 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
10383         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
10384         Make wording more consistent.
10385         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
10386         Explain the transition better.
10387         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
10388         the transition better.
10390 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
10392         * doc/autoconf.texi (Obsoleting Macros): Don't document the third
10393         parameter of AU_DEFUN.
10394         * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
10395         (AU_DEFUN): Remove the third parameter, it was not used.
10396         Use AC_DEFUN directly, not AU_DEFINE.
10397         * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
10398         the expanded body, consistently with other macros such as AC_USG.
10400 2003-11-17  Paul Eggert  <eggert@twinsun.com>
10402         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
10403         into the initial confdefs.h, to work around a bug in NextStep 3.3
10404         patch 3 reported by Eric Sunshine.
10406 2003-11-15  Kevin Ryde  <user42@zip.com.au>
10408         * doc/autoconf.texi (Using System Type): Revise, showing $host rather
10409         than $target since the latter is not usual, add guidelines on when to
10410         use or not use the system type.
10412 2003-11-12  Derek Price  <derek@ximbiot.com>
10414         * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
10415         typo misrepaired by an auto-spellcheck.
10417 2003-11-12  Akim Demaille  <akim@epita.fr>
10419         * bin/autoreconf.in (&parse_args): Don't call automake with
10420         --force-missing unless it actually supports it.
10421         From Debian #219336.
10423 2003-11-12  Akim Demaille  <akim@epita.fr>
10425         * configure.ac: Bump to 2.59a.
10426         Require 2.59.
10428 2003-11-06  Akim Demaille  <akim@epita.fr>
10430         Version 2.59.
10432 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
10434         * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
10435         so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
10436         and ac_abs_top_srcdir are absolute paths.
10437         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
10439 2003-11-05  Akim Demaille  <akim@epita.fr>
10441         * configure.ac: Bump to 2.58a.
10443 2003-11-05  Kevin Ryde  <user42@zip.com.au>
10445         * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
10446         it provokes a warning from makeinfo about looking like a cross
10447         reference in info output.
10449         * doc/autoconf.texi (Function Portability): Add notes on signal
10450         handler return type, as per AC_TYPE_SIGNAL.
10452 2003-11-04  Akim Demaille  <akim@epita.fr>
10454         Version 2.58.
10455         * doc/standards.texi: Update from master.
10457         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
10459 2003-11-04  Akim Demaille  <akim@epita.fr>
10461         AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
10462         computing the absolute path to d1 in the source hierarchy: it may
10463         not exist at all.  So don't cd into it.
10464         From Alexandre Duret-Lutz.
10465         http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
10467         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
10468         From Paul Eggert, but named after Perl's IO::Spec->catfile.
10469         * doc/autoconf.texi (Programming in M4sh): Document.
10470         * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
10472 2003-11-03  Pavel Roskin  <proski@gnu.org>
10474         * doc/autoconf.texi (Generic Structure Checks): Describe
10475         action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
10477 2003-10-31  Akim Demaille  <akim@epita.fr>
10479         * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
10480         (GNU Fortran): New.
10481         * doc/autoconf.texi (Language Choice): Document.
10482         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
10483         the current language is Fortran.
10485 2003-10-31  Akim Demaille  <akim@epita.fr>
10487         * bin/autom4te.in (&freeze): Use a less likely warning separator
10488         than `\n\n', so that `\n\n\n' is valid in warnings.
10489         Reported by Steve Huston.
10491 2003-10-28  Akim Demaille  <akim@epita.fr>
10493         * Makefile.cfg (local_updates, executable-update): Tweak to be
10494         robust to parallel makes.
10495         Suggested by Alexandre Duret-Lutz.
10497 2003-10-27  Akim Demaille  <akim@epita.fr>
10499         * Makefile.cfg (executable-update): New.
10500         (local_updates): Call it.
10502 2003-10-27  Akim Demaille  <akim@epita.fr>
10504         * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
10505         Don't remove core.* as it may remove valid user files.
10506         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
10507         (AC_FUNC_UTIME_NULL): Likewise.
10509 2003-10-23  Akim Demaille  <akim@epita.fr>
10511         Version 2.57g.
10512         * config/config.guess, config/config.sub: Upgrade from masters.
10514 2003-10-23  Akim Demaille  <akim@epita.fr>
10516         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
10517         AC_COMPILE_IFELSE that use break skip the clean up.  So do it by
10518         hand...
10520 2003-10-23  Akim Demaille  <akim@epita.fr>
10522         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
10523         Don't forget to remove conftest.err.
10525 2003-10-23  Akim Demaille  <akim@epita.fr>
10527         * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
10528         same object file in $LIBOBJS.
10529         Reported by Alexandre Duret-Lutz & Derek Robert Price.
10530         * doc/autoconf.texi (Generic Functions): Adjust.
10532 2003-10-20  Paul Eggert  <eggert@twinsun.com>
10534         * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
10535         Use 'eval', so that the resulting configure scripts work even if
10536         the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
10538 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
10540         * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
10541         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
10542         (_AC_LINK_IFELSE): Check the werror flag.
10543         * doc/autoconf.texi (Generic Compiler Characteristics): Document
10544         AC_LANG_WERROR.
10545         * NEWS: Mention it.
10547 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
10549         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
10550         _AC_COMPILER_EXEEXT to attempt a link.  If linking fails,
10551         override AC_LINK_IFELSE.
10553 2003-10-15  Paul Eggert  <eggert@twinsun.com>
10555         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
10556         pdksh 5.2.14.  Bug reported by Ralf Corsepius.
10557         * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
10558         Mention /usr/dt/bin/dtksh on Solaris.
10559         (Shell Substitutions): Warn about $((...)).
10560         (Parentheses): New section.
10562 2003-10-15  Kevin Ryde  <user42@zip.com.au>
10564         * doc/autoconf.texi (Function Portability): Add @prindex for exit.
10565         Add putenv and unsetenv.  Add sysconf _SC_PAGE_SIZE.
10567 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
10569         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
10570         cross test.
10572 2003-10-11  Steven G. Johnson  <stevenj@alum.mit.edu>
10574         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
10575         name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
10577 2003-10-10  Andreas Schwab  <schwab@suse.de>
10579         * bin/autoheader.in: Avoid empty first line in --version and
10580         --help output.
10581         * bin/ifnames.in: Likewise.
10583 2003-10-09  Paul Eggert  <eggert@twinsun.com>
10585         * lib/Autom4te/XFile.pm: Don't assume -j is solo.
10586         Issue a more-informative diagnostic.
10587         Problems reported by Eric Sunshine.
10589 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
10591         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
10592         -mGLOB_options_string stuff for Intel ifc, which can cause
10593         _AC_FC_LIBRARY_LDFLAGS to fail.  Use (faster) case for
10594         pattern-matching instead of grep.
10596 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
10598         * doc/autoconf.texi: Document new FC Fortran macros.
10600 2003-10-08  Gary V. Vaughan  <gary@gnu.org>
10602         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
10603         that future autopoint/aclocal/automake/autoreconf will be able
10604         to trace to find where to install local m4 macros.
10605         * doc/autoconf.texi (Input): Document it.
10606         * NEWS: Updated.
10608 2003-10-06  Gary V. Vaughan  <gary@gnu.org>
10610         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
10611         -lcrtbegin.o to list of ignored flags and fix underquoting of
10612         -lcrt[01].o.
10614 2003-10-04  Steven G. Johnson  <stevenj@ab-initio.mit.edu>
10616         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
10617         cache variable instead of $G77 to decide whether to include -O2,
10618         since $G77 is specific to Fortran 77.
10620 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
10622         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
10623         free" flag.  Re-order flags tested into rough order of popularity.
10625 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
10627         * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
10628         arguments so that it can be used with syntax identical to
10629         AC_PROG_F77, and so that we can more easily decide to
10630         remove/deprecate the DIALECT optional argument in the future if it
10631         proves troublesome.
10632         (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
10633         non-freeform-supporting compilers.  Document freeform flags.
10635 2003-10-03  Akim Demaille  <akim@epita.fr>
10637         * configure.ac: Look for emacs, not macs.
10638         Reported by Eric Sunshine.
10640 2003-10-03  Akim Demaille  <akim@epita.fr>
10642         * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
10643         * bin/autoreconf.in (autoreconf_current_directory): Create the
10644         AUX_DIR if needed, for sake of automake --add-missing etc.
10645         Suggested by Alexandre Duret-Lutz.
10647 2003-10-03  Akim Demaille  <akim@epita.fr>
10649         * configure.ac: Quotation and formatting changes.
10650         (EMACS): Don't set it if it is not recent enough to support
10651         autoconf-mode.el.
10652         From Eric Sunshine.
10654 2003-10-02  Akim Demaille  <akim@epita.fr>
10656         * bin/ifnames.in (&scan_file): Skip C++ comments.
10657         From Jeremy Yallop.
10659 2003-10-01  Pavel Roskin  <proski@gnu.org>
10661         * doc/autoconf.texi (Particular Structure Checks):
10662         Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
10664 2003-10-01  Akim Demaille  <akim@epita.fr>
10666         Version 2.57f.
10668 2003-09-30  Paul Eggert  <eggert@twinsun.com>
10670         * lib/Autom4te/XFile.pm: Use Errno.
10671         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
10672         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
10674 2003-09-30  Akim Demaille  <akim@epita.fr>
10676         * config/announce-gen (&print_news_deltas): Extracted from...
10677         (&print_changelog_deltas): here.
10678         (&news_file): Rename as...
10679         (@news_file): this.
10681 2003-09-30  Nicolas Joly  <njoly@pasteur.fr>
10683         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
10684         have been created when invoking the compiler.
10685         * tests/fortran.at (GNU Fortran 77): Quote $G77.
10687 2003-09-29  Akim Demaille  <akim@epita.fr>
10689         Version 2.57e.
10691         * config/mkinstalldirs: Upgrade.
10693 2003-09-28  Paul Eggert  <eggert@twinsun.com>
10695         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
10696         Problem reported by Lars J. Aas in
10697         <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
10698         (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
10699         "test -d ./-p && rmdir ./-p".  Suggested by Andreas Schwab in:
10700         http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
10702 2003-09-26  Akim Demaille  <akim@epita.fr>
10704         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
10705         directory for AC_CONFIG_COMMANDS' first argument exists.
10706         This makes valid the invocation of _AC_SRCPATH that follows.
10707         Reported by Eric Sunshine.
10708         * doc/autoconf.texi (Configuration Commands): Adjust.
10710 2003-09-26  Akim Demaille  <akim@epita.fr>
10712         * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
10713         Reported by Ralf Corsepius.
10715 2003-09-26  Akim Demaille  <akim@epita.fr>
10717         * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
10718         arguments.
10719         Actually, use AU_ALIAS.
10720         From Bruno Haible.
10722 2003-09-26  Paul Eggert  <eggert@twinsun.com>
10724         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
10725         rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
10726         Problem reported by Eric Sunshine in:
10727         http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
10729 2003-09-26  Akim Demaille  <akim@epita.fr>
10731         The test suite are sometimes assigning timings incorrectly.
10732         Reported by Henk Krus.
10733         Diagnosed by Nicolas Joly.
10735         * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
10736         AT_help_all.
10737         Instead of making AT_help a sequence of assignments to grow
10738         $at_help_all, just make AT_help_all be the growing contents of
10739         $at_help_all, and make a single assignment in...
10740         (AT_INIT): here.
10741         (at_times_skip): Flip the meaning and rename as...
10742         (at_times_p): this.
10743         (AT_INIT): When summarizing the test that ran, remove
10744         $at_times_file after use, and check it is present before trying to
10745         use it.
10747 2003-09-25  Akim Demaille  <akim@epita.fr>
10749         Version 2.57d.
10751         * bin/Makefile.am (edit): Handle '@configure_input@'.
10752         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
10753         (ifnames): chmod -w.
10754         * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
10755         executables, not bin/ executables!  Otherwise all the magic needed
10756         to find non installed files is turned off.  This caused a failure
10757         of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
10758         as found in its environment (sent by tests/autoreconf): pointing
10759         to bin/autom4te that could not find its files.
10760         * tests/mktests.sh: Force the replacement of generated files, for
10761         the sake of "mv" program that are interactive when overwriting a
10762         -w file.
10763         * config/install-sh: Upgrade from CVS Automake.
10765 2003-09-23  Paul Eggert  <eggert@twinsun.com>
10767         * doc/autoconf.texi (Limitations of Builtins): Document test -h
10768         versus test -L issues.
10770 2003-09-23  Daniel Jacobowitz  <drow@mvista.com> and
10771             Paul Eggert  <eggert@twinsun.com>
10773         Trivial change to support GCC's configuration procedure.
10774         * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
10775         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
10776         about inconsistency if the preprocessor is set to give errors for
10777         any warning.
10778         * doc/autoconf.texi (C Compiler Characteristics): Document this.
10780 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
10782         * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
10783         and XFile.pm from Automake.
10784         * lib/Autom4te/XFile.pm: Update from Automake.
10786 2003-09-12  Akim Demaille  <akim@epita.fr>
10788         Version 2.57c.
10790 2003-09-12  Akim Demaille  <akim@epita.fr>
10792         * config/config.guess, config/config.sub, config/missing,
10793         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
10794         from masters.
10796 2003-09-12  Akim Demaille  <akim@epita.fr>
10798         * doc/autoconf.texi (Header Portability): Promote linux/types.h,
10799         not asm/types.h.
10801 2003-09-11  Akim Demaille  <akim@epita.fr>
10803         * doc/autoconf.texi (Header Portability): linux/random.h.
10804         From Peter Hendrickson.
10806 2003-09-10  Akim Demaille  <akim@epita.fr>
10808         * tests/mktests.sh (au_exclude_egrep): Make it harder to be
10809         willing to edit the output files.
10811 2003-09-10  Akim Demaille  <akim@epita.fr>
10813         * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
10814         and AC_FC_FREEFORM.
10815         * tests/mktests.sh: Skip AC_FC_SRCEXT.
10816         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
10818 2003-09-09  Akim Demaille  <akim@epita.fr>
10820         * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
10821         Reported by Gary Vaughan.
10822         * bin/autom4te.in (handle_m4): Likewise.
10824 2003-09-09  Akim Demaille  <akim@epita.fr>
10826         * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
10827         trailing files.
10829 2003-09-07  Paul Eggert  <eggert@twinsun.com>
10831         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
10832         Improve the accuracy of the wording about obsolescence.
10833         From a suggestion by Ian Lance Taylor in
10834         <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
10836 2003-09-05  Paul Eggert  <eggert@twinsun.com>
10838         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
10839         for the benefit of g77 3.2.  Fix suggested by Steven G. Johnson.
10841 2003-09-04  Akim Demaille  <akim@epita.fr>
10843         * tests/mktests.sh (ac_exclude_list): Fix the filtering of
10844         AC_FUNC_WAIT3.
10846 2003-09-04  Akim Demaille  <akim@epita.fr>
10848         * bin/autom4te.in: Use &fatal where more appropriate than &error.
10849         (freeze): When exiting, use $exit_code.
10850         * lib/autoconf/fortran.m4: Comment changes.
10852 2003-09-04  Akim Demaille  <akim@epita.fr>
10854         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
10856 2003-09-02  Steven G. Johnson  <stevenj@alum.mit.edu>
10858         Add support for newer Fortran dialects.  The F77 interface is
10859         unchanged, and continues to support Fortran 77.  New FC macros
10860         correspond to all the old F77 macros, with output variables FC,
10861         FCFLAGS, and FCLIBS.  AC_PROG_FC defaults to picking the newest
10862         available dialect, but older dialects can be specified.  There are
10863         new macros AC_FC_SRCEXT to set the source extension, and
10864         AC_FC_FREEFORM to accept free-form source files.
10866         * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
10867         New macros.
10868         (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
10869         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
10870         _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
10871         _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
10872         AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
10873         AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
10874         _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
10875         _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
10876         AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
10877         _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
10878         AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
10879         _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
10880         AC_FC_SRCEXT, AC_FC_FREEFORM):
10881         New macros.
10882         (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
10883         AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
10884         AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
10885         Rewrite in terms of the above.
10886         (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
10887         * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
10888         * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
10889         AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
10891 2003-09-02  Paul Eggert  <eggert@twinsun.com>
10893         * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
10894         Document problems with timestamp resolution that 'make', 'cp -p', and
10895         'touch -r' have.
10897 2003-08-27  Akim Demaille  <akim@epita.fr>
10899         * tests/m4sugar.at (cross_warning): Make sure to enable the
10900         output, so that we can track spurious m4sugar output.
10901         * tests/local.at: Require 2.57.
10902         (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
10903         are defaulted by AT_CHECK anyway.
10904         Use AT_CHECK_AUTOM4TE.
10905         * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
10906         missing dnl.
10908 2003-08-27  Akim Demaille  <akim@epita.fr>
10910         * bin/autoheader.in: Issue the "Using auxiliary..." message only
10911         when -Wobsolete is set.
10912         Set it on by default.
10913         Suggested by Klee Dienes.
10915 2003-08-27  Akim Demaille  <akim@epita.fr>
10917         * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
10918         documentation.
10919         From Guido Draheim.
10921 2003-08-26  Akim Demaille  <akim@epita.fr>
10923         * doc/autoconf.texi (Output): Make clear that one can run code
10924         after AC_OUTPUT.
10926 2003-08-25  Akim Demaille  <akim@epita.fr>
10928         * config/announce-gen, GNUmakefile, Makefile.maint: Update from
10929         CVS Bison.
10931 2003-08-25  Alexandre Duret-Lutz  <adl@gnu.org>
10933         * bin/autoreconf.in (parse_args): Do not pass --no-force to
10934         Automake versions prior to 1.8.
10936 2003-08-25  Akim Demaille  <akim@epita.fr>
10938         * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
10939         From Ville Karaila.
10941 2003-08-24  Akim Demaille  <akim@epita.fr>
10943         * configure.ac: Bump to 2.57c.
10945 2003-08-22  Akim Demaille  <akim@epita.fr>
10947         Version 2.57b.
10949         * Makefile.cfg (local-checks-to-skip): New.
10950         * Makefile.maint (local-check): Rename as...
10951         (local-checks-available): this.
10952         (local-check): New.
10954         * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
10955         * configure.ac: Require Automake 1.7.6.
10957 2003-08-22  Akim Demaille  <akim@epita.fr>
10959         Output stack traces in warnings.
10961         * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
10962         Replace the former...
10963         (m4_warn): Pass the call stack to _m4_warn.
10964         * bin/autom4te.in: Adjust to output the call stack.
10965         * tests/m4sugar.at (m4@&t@_warn): Adjust.
10967 2003-08-22  Akim Demaille  <akim@epita.fr>
10969         * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
10970         * bin/autom4te.in: Adjust.
10972 2003-08-21  Akim Demaille  <akim@epita.fr>
10974         * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
10975         (&verbose): Remove.
10976         (&getopt): Adjust the note and verb channels, depending upon
10977         --verbose.
10978         * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
10979         * bin/autoupdate.in: Adjust.
10980         Use &verb, not &verbose.
10982 2003-08-21  Akim Demaille  <akim@epita.fr>
10984         * bin/autoheader.in (&parse_args): Use &parse_warnings and
10985         &parse_WARNINGS.
10986         ($help): Use Autom4te::ChannelDefs::usage.
10987         * bin/autoscan.in: Use Autom4te::ChannelDefs.
10988         * lib/Autom4te/General.pm: Don't export error: you don't own it.
10990 2003-08-21  Akim Demaille  <akim@epita.fr>
10992         First stab at preserving warnings between calls to autom4te,
10993         including when the cache is used.
10995         There are still several issues: (i) there are too many runs of m4
10996         (one for include, one for warnings, and some more), (ii) warnings
10997         spreading on several lines are not handled gracefully, (iii) the
10998         code meant to have the call stack display for errors does not work
10999         (its handling should move from m4 to autom4te).
11001         * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
11002         Use them.
11003         (@preselect): Add m4_warn.
11004         ($exit_status): Remove, use $exit_code.
11005         ($help): Use Autom4te::ChannelDefs::usage.
11006         (&handle_m4): No longer define the m4_warnings.
11007         At each run, extract and report the warnings.
11008         Always cache the result, including if the exit status is on
11009         failure, since if nothing changes, we should result in the same
11010         failure, hence we can use the cache.
11011         * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
11012         (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
11013         Remove.
11014         (m4_warn): Redefine as a do-nothing: it is its invocation that
11015         matters, as warnings are now reported via traces.
11016         * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
11017         the contents of m4_warn: make it _call_ m4_warn, so that tracing
11018         the latter reveals calls to the former.
11020         Adjust the tests.
11022         * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
11024 2003-08-21  Akim Demaille  <akim@epita.fr>
11026         * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
11027         Use them.
11029 2003-08-21  Akim Demaille  <akim@epita.fr>
11031         * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
11032         forward order.
11033         * lib/Autom4te/ChannelDefs.pm: Doc typos.
11034         (&parse_warnings): Accept a list of warning requests.
11035         (&usage): Return a string, not a side effect.
11036         (cross): New warning category.
11038 2003-08-21  Akim Demaille  <akim@epita.fr>
11040         * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
11041         (&require_configure_ac): Accept an optional directory argument.
11042         ($configure_ac): Remove.
11043         * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
11044         (&catfile): Remove.
11045         * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
11046         * bin/autoscan.in: Adjust.
11048 2003-08-20  Akim Demaille  <akim@epita.fr>
11050         * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
11051         Reported by Alexandre Duret-Lutz.
11053 2003-08-20  Akim Demaille  <akim@epita.fr>
11055         * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
11056         * bin/autom4te: Adjust.
11057         In particular, be Autoconf tools are really silent when properly
11058         working, bind the verbosity of the 'note' channel to $verbose.
11059         * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
11060         (&xsystem, &contents): Remove, since they are exported by...
11061         * lib/Autom4te/FileUtils.pm: this.
11062         More perldoc.
11063         * lib/Autom4te/General.pm (&up_to_date_p): Move to...
11064         * lib/Autom4te/FileUtils.pm: here.
11066 2003-08-20  Akim Demaille  <akim@epita.fr>
11068         * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
11069         * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
11070         from CVS Automake.
11072 2003-08-20  Akim Demaille  <akim@epita.fr>
11074         * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
11075         (autom4te-update): New.
11076         * Makefile.cfg (update): Bind autom4te-update.
11078 2003-08-19  Derek Price  <derek@ximbiot.com>
11080         * lib/autotest/general.m4: Comment various HELP_* diversions.
11081         (PARSE_ARGS_BEGIN): New section for option parsing related
11082         initialization.
11083         (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
11084         package specific options and associated help.
11086 2003-08-19  Akim Demaille  <akim@epita.fr>
11088         * config/announce-gen, Makefile.cfg: New.
11089         * Makefile.am: Adjust.
11090         * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
11092 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
11094         * lib/autom4te.in (Automake-preselections): Preselect
11095         AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
11096         and m4_sinclude.
11098 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
11100         * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
11101         (Autoconf-without-aclocal-m4): ... this new language.
11102         * doc/autoconf.texi (autom4te Invocation): Mention
11103         Autoconf-without-aclocal-m4.
11105 2003-08-18  Derek Price  <derek@ximbiot.com>
11107         * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
11108         RUN-IF-PASS optional arguments.
11110 2003-08-18  Derek Price  <derek@ximbiot.com>
11112         * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
11114 2003-08-16  Derek Price  <derek@ximbiot.com>
11116         * doc/autoconf.texi (Writing testsuite.at): Document defaults for
11117         STDOUT & STDERR arguments.
11119 2003-08-14  Derek Price  <derek@ximbiot.com>
11121         * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
11122         DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
11123         shorter column three.  Add DESCRIPTION to log file content.
11125 2003-08-13  Derek Price  <derek@ximbiot.com>
11127         * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
11128         output.
11130 2003-08-12  Derek Price  <derek@ximbiot.com>
11132         * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
11133         (AT_CHECK_NOESCAPE): Move core functionality to...
11134         (_AT_CHECK): ...this new macro.
11136 2003-08-07  Derek Price  <derek@ximbiot.com>
11138         * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
11139         (AT_CHECK_NOESCAPE): ...to this new macro.
11141 2003-07-31  Paul Eggert  <eggert@twinsun.com>
11143         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
11144         in Bash 2.01.  Problem reported by Brian Gough in
11145         <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
11147 2003-07-25  John W. Eaton  <jwe@bevo.che.wisc.edu>
11149         * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
11150         -lcrt1.o, for OS X.  (trivial change)
11152 2003-07-07  Paul Eggert  <eggert@twinsun.com>
11154         * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
11155         inside '#ifndef __cplusplus'.  Problem reported by
11156         Bob Friesenhahn.
11158 2003-07-06  Bill Clarke  <llib@computer.org>
11160         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
11161         'long', not 'int', for benefit of Sun's recent C++ compilers
11162         (trivial change).  See:
11163         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
11164         (This really should be 'intptr_t', not 'long', but that would
11165         take more work.)
11167 2003-06-25  Akim Demaille  <akim@epita.fr>
11169         * lib/Makefile.am (autom4te.cfg): Make it read only.
11170         Depend on Makefile since it contains substitutions.
11171         From Paolo Bonzini.
11172         * lib/autom4te.in (args): Add local.at? for Autotest args.
11173         This change was made on autom4te.cfg which is generated.
11174         Reported by Raja R. Harinath.
11176 2003-06-25  Akim Demaille  <akim@epita.fr>
11178         * doc/autoconf.texi (Header Portability): sys/mount.h.
11179         From Gareth McCaughan.
11181 2003-06-23  Akim Demaille  <akim@epita.fr>
11183         * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
11184         not all of them.  This fixes 1. the fact that when testing
11185         Autoconf there are many many config.log, 2. the incorrect use of
11186         top_srcdir to find config.log.
11187         Don't mix the detailed output of failed test with the summary of
11188         failures.  Rather, append detailed log afterwards.
11190 2003-06-23  Akim Demaille  <akim@epita.fr>
11192         * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
11193         always run: output config.log on $at_group_log.
11195 2003-06-23  Akim Demaille  <akim@epita.fr>
11197         * tests/torture.at (#define header templates): Don't use quotes in
11198         C++ comments as it puzzles Emacs' sh font-lock-mode.
11200 2003-06-23  Akim Demaille  <akim@epita.fr>
11202         * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
11203         * lib/autom4te.cfg (args): Add local.at? for Autotest args.
11204         * tests/atspecific.m4: Rename as...
11205         * tests/local.at: This.
11206         * tests/suite.at: Move the globals into...
11207         * tests/local.at: here.
11208         * tests/Makefile.am: Adjust.
11209         * doc/autoconf.texi (testsuite Scripts): Adjust.
11211 2003-06-21  Kevin Ryde  <user42@zip.com.au>
11213         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
11214         error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
11215         ensuring we add -std1 for full-ANSI.
11217         * doc/autoconf.texi (hdrindex): New macro.
11218         Add index entries for portability of various standard header files.
11220 2003-06-20  Akim Demaille  <akim@epita.fr>
11222         * configure.ac: Bump to 2.57b.
11224 2003-06-20  Akim Demaille  <akim@epita.fr>
11226         Version 2.57a.
11228 2003-06-20  Akim Demaille  <akim@epita.fr>
11230         * bin/autom4te.in: Don't rely on $HOME being defined.
11231         Reported by Marc Espie as PR/233.
11233 2003-06-20  Akim Demaille  <akim@epita.fr>
11235         * lib/autotest/general.m4: Use at_times_file only if used.
11236         From Nicolas Joly.
11238 2003-06-20  Akim Demaille  <akim@epita.fr>
11240         * config/config.guess, config/config.sub, config/elisp-comp,
11241         * config/install-sh, config/mkinstalldirs, doc/standards.texi:
11242         Update from masters.
11244 2003-06-11  Paolo Bonzini  <bonzini@gnu.org>
11246         * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
11247         * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
11248         (TEST_SCRIPT): New diversion.
11249         (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
11250         (AT_CLEANUP): ...to here.  Undivert TEST_SCRIPT.
11251         (AT_INIT): Support for expected failures.
11253 2003-06-02  Akim Demaille  <akim@epita.fr>
11255         * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
11256         changes.
11257         * lib/Autom4te/General.pm (&backname): Remove, no longer used by
11258         Autoconf nor Automake.
11259         (&contents): New, from Automake.
11260         PODify.
11262 2003-05-28  Paul Eggert  <eggert@twinsun.com>
11264         * NEWS, doc/autoconf.texi (Particular Functions),
11265         lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
11266         is the inverse of localtime.
11268 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
11270         * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
11271         (handle_exec_errors): New function.  Work around $! being
11272         altered by WEXITSTATUS.
11273         (xqx, xsystem): Use handle_exec_errors.
11275 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
11277         * lib/Autom4te/General.pm (END): Rewrite exit code processing.
11278         Do not call `_exit()', simply modify `$?'.
11279         (xsystem): Reset $! before running system, and check it afterward.
11280         * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
11281         63 for version mismatches.
11283 2003-05-23  Akim Demaille  <akim@epita.fr>
11285         * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
11286         Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
11287         the middle of a line).
11288         * lib/m4sugar/m4sugar.m4: Likewise.
11289         Remove useless spaces in comments.
11291 2003-05-23  Akim Demaille  <akim@epita.fr>
11293         * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
11294         exit 63, so that we (or Automake's "missing") can tell the
11295         difference with a plain failure.
11296         * doc/autoconf.texi (Notices): Adjust.
11298 2003-05-23  Akim Demaille  <akim@epita.fr>
11300         * Makefile.am, bin/Makefile.am, config/Makefile.am,
11301         * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
11302         White spaces cleanup.
11304 2003-05-22  Jim Meyering  <jim@meyering.net>
11305             Paul Eggert  <eggert@twinsun.com>
11307         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
11308         Remove `#include <stdlib.h>' from the list; we should never
11309         make confdefs.h include <stdlib.h> or <cstdlib>, because the
11310         resulting namespace pollution would cause other tests to fail.
11311         Configure scripts run with some older versions of g++ and HP's
11312         aCC would fail due to such an #include.  Problems reported by
11313         Matthew Mueller in <http://bugs.debian.org/120704> and by
11314         Keith Bostic in
11315         <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
11316         In the test, use the test declaration before including <stdlib.h>,
11317         as that's closer to how it'll be used.
11319 2003-05-23  Akim Demaille  <akim@epita.fr>
11321         * doc/autoconf.texi (Header Portability): ucred.h.
11322         From Ian Redfern.
11324 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
11326         Overhaul Autotest's logging: generate separate log files
11327         in testsuite.dir/NNN/testsuite.log, and append them to
11328         testsuite.log instead of re-running the test verbosely.
11330         * lib/autotest/general.m4 (AT_INIT): Use a single redirected
11331         file descriptor, write 0 to at_status_file instead of setting
11332         at_status=0, initialize some new variables (at_status_file,
11333         at_group_log, at_suite_log, at_tee_pipe).  Remove the cruft
11334         to rerun the tests, instead append the at_group_log to the
11335         at_suite_log when a test fails.
11336         (AT_SETUP): pipe the test case's output into at_tee_pipe,
11337         with the AS_MESSAGE_LOG_FD redirected to stdout.
11338         (AT_CLEANUP): save the output status in $at_status_file
11339         and restore it, redirect the AS_MESSAGE_LOG_FD back to
11340         its original place.
11341         (AT_CHECK): since tests are run with a redirected stdout,
11342         and used to be re-run in verbose mode, turn some $at_verbose
11343         into echo, and don't redirect the output of testing stdout
11344         and stderr.
11346         * lib/autotest/autoconf.texi (testsuite Scripts): Update
11347         the name of the debugging directory and information about
11348         its contents.
11350 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
11352         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
11353         parameter.
11355 2003-05-22  Akim Demaille  <akim@epita.fr>
11357         * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
11358         * lib/autoconf/fortran.m4 lib/autoconf/general.m4
11359         * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
11360         * lib/autoconf/status.m4: Fix and adjust copyright notices.
11362 2003-05-22  Akim Demaille  <akim@epita.fr>
11364         * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
11365         * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
11366         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
11367         * lib/autoconf/general.m4, lib/autoconf/headers.m4,
11368         * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
11369         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
11370         * lib/autoconf/status.m4, lib/autoconf/types.m4,
11371         * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
11372         * tests/atspecific.m4, tests/base.at, tests/compile.at,
11373         * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
11374         * tests/tools.at, tests/torture.at:
11375         Whitespace clean up.
11376         Suggested by Jim Meyering.
11378 2003-05-22  Akim Demaille  <akim@epita.fr>
11380         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
11381         ' \t' as '\t ' so that Emacs' whitespace.el keep it.
11382         Reported by Jim Meyering.
11384 2003-05-22  Akim Demaille  <akim@epita.fr>
11386         * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
11387         Add AC_HELP_STRING  to the obsolete macros section.
11388         Typos.
11389         Use '@.' for sentences that ended in a capital letter.
11390         From Art Haas.
11392 2003-05-22  Akim Demaille  <akim@epita.fr>
11394         * config/config.guess, config/config.sub, config/elisp-comp,
11395         * config/install-sh, config/mdate-sh, config/mkinstalldirs,
11396         * config/texinfo.tex, doc/standards.texi: Update from masters.
11398 2003-05-21  Paolo Bonzini  <bonzini@gnu.org>
11400         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
11401         it to eval.
11403 2003-05-21  Akim Demaille  <akim@epita.fr>
11405         * bin/autoupdate.in ($m4): Fix quotation.
11406         Reported by Martin Mokrejs.
11408 2003-05-19  Paul Eggert  <eggert@twinsun.com>
11410         * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
11411         Remove non-ASCII characters.
11413 2003-05-18  Paolo Bonzini  <bonzini@gnu.org>
11415         * tests/semantics.at (AC_SEARCH_LIBS): New test.
11416         * tests/semantics.at (AC_CHECK_HEADERS_OLD,
11417         AC_CHECK_HEADERS_NEW): New tests.
11419 2003-05-17  Akim Demaille  <akim@epita.fr>
11421         * lib/autoconf/functions.m4: Use the default includes so that
11422         memcmp be declared before being tested.
11423         Reported by Sander Niemeijer.
11424         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
11425         * doc/autoconf.texi (Default Includes): Document
11426         AC_INCLUDES_DEFAULT.
11428 2003-05-17  Akim Demaille  <akim@epita.fr>
11430         * lib/autoconf/specific.m4: Include signal.h and unistd.h.
11431         * doc/autoconf.texi (Obsolete Macros): Adjust.
11432         Reported by Werner LEMBERG and Debian Bug 190886.
11434 2003-05-16  Akim Demaille  <akim@epita.fr>
11436         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
11437         user name space clashes.
11438         Reported by Bruno Haible.
11440 2003-05-16  Akim Demaille  <akim@epita.fr>
11442         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
11443         * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
11444         them uniform, and more robust to Perl special characters.
11445         Reported by Martin Mokrejs.
11447 2003-05-14  Akim Demaille  <akim@epita.fr>
11449         * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
11451 2003-05-14  Akim Demaille  <akim@epita.fr>
11453         * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
11454         linux/irda.h.
11456 2003-05-12  Akim Demaille  <akim@epita.fr>
11458         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
11459         message.
11460         From Matthias Andree.
11462 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
11464         * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
11465         and truncate.
11467 2003-05-06  Akim Demaille  <akim@epita.fr>
11469         Don't try to be smart with aclocal 1.8+ because (i) aclocal no
11470         longer updates aclocal.m4 if useless, (ii) if a file m4_included
11471         by aclocal.m4 is changed it might require the importing of another
11472         m4 extension file, i.e., aclocal must be run.
11474         * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
11475         (&parse_args): Use --force with aclocal if required and supported.
11476         (&autoreconf_current_directory): Use &run_aclocal.
11478 2003-05-06  Akim Demaille  <akim@epita.fr>
11480         Lock autom4te's cache.
11482         * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
11483         * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
11484         argument instead of a file name, so that the request file remains
11485         open during the whole autom4te run.
11486         ($icache_file): New.
11487         (&freeze): Lock the $icache_file.
11489 2003-04-29  Derek Price  <derek@ximbiot.com>
11491         * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
11492         seperator with m4_append_uniq().  It doesn't work.
11493         (AT_CLEANUP): Add `;' to end of at_help_all.
11494         (AT_INIT): Allow --keywords to be specified more than once.  When
11495         grepping $at_help_all for keywords, use the field and keyword
11496         seperators to ensure a complete keyword match.  Alter at_prev handling
11497         to support the new --keywords behavior.
11499 2003-04-27  Karl Berry  <karl@freefriends.org>
11501         * doc/autoconf.texi: Make the dir entries in the autoconf manual
11502         align better with others.  I also made some of the individual
11503         entries on one line, for brevity and to make it easier for me to
11504         sort my dir-example file in the Texinfo distribution :).
11506 2003-04-12  Jim Meyering  <jim@meyering.net>
11508         * NEWS: Mention the new macro.
11509         * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
11510         * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
11511         * tests/c.at: Test AC_C_RESTRICT.
11512         * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
11514 2003-04-08  Akim Demaille  <akim@epita.fr>
11516         * bin/ifnames.in: Skip C++ comments.
11517         From Jeremy Yallop.
11519 2003-04-08  Akim Demaille  <akim@epita.fr>
11521         * GNUmakefile (SHELL): Don't assume sh is in /bin/.
11522         From Ilya Zakharevich.
11524 2003-04-08  Akim Demaille  <akim@epita.fr>
11526         * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
11527         net/if.h, stdlib.h.
11529 2003-04-01  Derek Price  <derek@ximbiot.com>
11531         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
11532         from Akim's checkin of 2003-03-29.
11534 2003-04-01  Derek Price  <derek@ximbiot.com>
11536         * tests/torture.at (Configuring subdirectories): Add missing
11537         close-quote for Akim's change from 2003-03-28.
11539 2003-04-01  Akim Demaille  <akim@epita.fr>
11541         * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
11542         (AC, AT, MS): these.
11543         (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
11544         New.
11545         Use them.
11546         * doc/Makefile.am (CLEANFILES): Adjust.
11547         (TEXI2DVI): Make it --batch.
11549 2003-03-31  Derek Price  <derek@ximbiot.com>
11551         * lib/autotest/general.m4: Revert the checkin from 2003-03-27
11552         which removed the main loop.
11553         Thanks to Akim Demaille.
11555 2003-03-29  Akim Demaille  <akim@epita.fr>
11557         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
11558         that starts a GUI.
11559         From Ilya Zakharevich.
11561 2003-03-29  Akim Demaille  <akim@epita.fr>
11563         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
11564         documentation to read is Autoconf's.
11565         Suggested by Paul Eggert.
11567 2003-03-28  Akim Demaille  <akim@epita.fr>
11569         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
11570         reading the section "Present But Cannot Be Compiled" when the
11571         header causes problems.
11573 2003-03-28  Akim Demaille  <akim@epita.fr>
11575         * tests/torture.at (Configuring subdirectories): Require aclocal
11576         1.4, otherwise the test fails, as it does support configure.ac.
11577         This fixes the "test 40 failed" bug reports.
11579 2003-03-28  Akim Demaille  <akim@epita.fr>
11581         * doc/autoconf.texi (C Compiler): `#line' portability.
11582         From Paul Eggert and Nelson H. F. Beebe.
11584 2003-03-27  Derek Price  <derek@ximbiot.com>
11586         * lib/autotest/general.m4: Eliminate main loop and reorganize test
11587         layout in order to allow scripting around test groups.
11589 2003-03-27  Derek Price  <derek@ximbiot.com>
11591         * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
11592         HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
11593         use new diversions in preparation for accepting new arguments and
11594         allowing scripting around tests.
11595         (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
11597 2003-03-26  Derek Price  <derek@ximbiot.com>
11599         * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
11600         obsolete AC_HELP_STRING.
11601         (AC_HELP_STRING): AU_DEFUN to...
11602         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
11603         * tests/m4sh.at (AS_HELP_STRING): New test.
11605         * tests/acgeneral.at: Regenerated.
11607 2003-03-26  Derek Price  <derek@ximbiot.com>
11609         * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
11610         sense.  Verbosify the diversion definitions comment.
11612 2003-03-26  Derek Price  <derek@ximbiot.com>
11614         * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
11615         AS_PREPARE.
11617 2003-03-21  Eric Siegerman  <eric_97@pobox.com>
11619         * doc/autoconf.texi (Present But Cannot Be Compiled):
11620         Grammar fixes and minor rewording. (trivial change)
11622 2003-03-06  Paul Eggert  <eggert@twinsun.com>
11624         Work around a problem noted by Nelson H. F. Beebe with coreutils
11625         4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
11626         2002/05/09) rejects '#line 32768 "configure"' because the line
11627         number overflows.
11628         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
11629         #line directives.
11630         * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
11631         * doc/autoconf.texi (Generating Sources): Document this.
11633 2003-03-01  Richard Dawe  <rich@phekda.freeserve.co.uk>
11635         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
11636         file name for the m4 program, when it has an "exe" file extension.
11637         DJGPP's error messages include the error code in brackets -
11638         remove the error code during normalization.
11640 2003-02-28  Akim Demaille  <akim@epita.fr>
11642         * doc/autoconf.texi (Present But Cannot Be Compiled): New.
11644 2003-02-28  Alexandre Duret-Lutz  <adl@gnu.org>
11646         * doc/autoconf.texi (Limitations of Make): Remove the section
11647         about `$<' in inference rules, it was a bogus interpretation of
11648         an old Automake change.  Discuss NetBSD, FreeBSD, OpenBSD, and
11649         Tru64 make in the "target lookup" section.
11650         (Automake): Automake 1.5+ no longer requires special tools to be
11651         present on the developer's host.
11653 2003-02-26  Richard Dawe  <rich@phekda.freeserve.co.uk>
11655         * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
11656         to a shell that can handle redirection or quoting correctly.
11657         Override SHELL with the shell detected by configure.
11658         Use of $^O suggested by Tim van Holder.
11659         * bin/autom4te.in (BEGIN): Likewise.
11660         * bin/autoreconf.in (BEGIN): Likewise.
11661         * bin/autoscan.in (BEGIN): Likewise.
11662         * bin/autoupdate.in (BEGIN): Likewise.
11663         * bin/ifnames.in (BEGIN): Likewise.
11665         * bin/ifnames.in: Add final newline to help and version messages.
11667         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
11668         to cope with DOS-style absolute paths, when constructing
11669         ${ac_make}.
11671         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
11672         When constructing paths with IFS=:, quote the path. If we're
11673         constructing a DOS-style absolute path, we don't want to split it
11674         on the colon.
11676         * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
11677         in description.
11679 2003-02-25  Pavel Roskin  <proski@gnu.org>
11681         * bin/autoheader.in: Add missing newline when printing
11682         suggestion how change AC_DEFINE call.
11684 2003-02-24  Paul Eggert  <eggert@twinsun.com>
11686         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
11687         2002-09-01 patch by replacing "test -n" with "test -z".
11688         This fixes a bug found by Jeff Painter and reported by Tom Epperly in
11689         <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
11691         * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
11692         to fix a mismatch between example and discussion.
11694 2003-02-24  Kevin Ryde  <user42@zip.com.au>
11696         * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
11697         format starting with "-".
11699 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
11701         * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
11702         is not portable inside Makefile.
11704 2003-02-20  Akim Demaille  <akim@epita.fr>
11706         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
11707         compiler says yeah, but preproc says nope, compiler is right.
11708         Conversely, prompt the reader to send a bug report to the
11709         maintainers of the package, not of Autoconf.
11711 2003-02-20  Klee Dienes  <kdienes@apple.com>
11713         * bin/autoreconf.in (autoreconf_current_directory): Properly
11714         handle an empty aclocal.m4.
11716 2003-02-20  Akim Demaille  <akim@epita.fr>
11718         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
11719         $ac_prefix_program.
11720         From Larry Jones.
11722 2002-12-23  Paul Eggert  <eggert@twinsun.com>
11724         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
11725         innocuous variant befor including <limits.h> or <assert.h>.  This
11726         works around a bug reported by Albert Chin: HP-UX 11i
11727         (and earlier versions) have a <limits.h> that declares
11728         gettimeofday and many other functions.
11730 2002-12-03  Paul Eggert  <eggert@twinsun.com>
11732         Version 2.57.
11734         * NEWS, configure.ac: Update version.
11736         * doc/fdl.texi: Upgrade to FDL version 1.2.
11738         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
11739         nontrivially in main's body, so that f's external declaration is
11740         not optimized away in AIX.  This should fix the bug reported by
11741         Martin Frydl in
11742         <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
11744         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
11745         _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
11746         defined, to support freestanding compilers.  This should fix the
11747         bug reported by Momchil Velkov in
11748         <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
11750         * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
11751         arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
11752         obsolete AC_CHECK_TYPE.  The missing empty arg was reported
11753         by Simon Josefsson in
11754         <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
11756         * Makefile.maint (www-gnu): New macro.
11757         (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
11758         the location has moved.
11760 2002-12-02  Martin Frydl  <martin@systinet.com>
11762         * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
11763         \(.*\) match is too long and there is something more to be checked.
11764         <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
11766 2002-11-15  Akim Demaille  <akim@epita.fr>
11768         Version 2.56.
11770         * config/install-sh: chmod +x.
11771         From Paul Eggert.
11772         * config/move-if-change: Indenting changes.
11773         * Makefile.am (AUTOMAKE_OPTIONS): Move to...
11774         * configure.ac (AM_INIT_AUTOMAKE): here.
11775         Require 1.7.1.
11777 2002-11-14  Akim Demaille  <akim@epita.fr>
11779         Version 2.55.
11781         * config/config.guess, config/config.sub, config/install-sh:
11782         Update from masters.
11784 2002-11-14  Akim Demaille  <akim@epita.fr>
11786         * Makefile.maint: Sync with Bison, i.e.:
11787         (po-check): Scan .l and .y files instead of the
11788         .c and the .h files that they generate.  This fixes the bug
11789         reported by Tim Van Holder in:
11790         <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
11791         Look for N_ as well as for _.  Try to avoid matching #define for
11792         N_ and _.
11793         From Paul Eggert.
11795 2002-11-14  Akim Demaille  <akim@epita.fr>
11797         * doc/autoconf.texi (C Compiler): Compiling several files at once.
11798         From Paul Eggert and Albert Chin-A-Young.
11800 2002-11-14  Akim Demaille  <akim@epita.fr>
11802         * doc/autoconf.texi (C Compiler): Solitary backslashes.
11803         From Paul Eggert and Albert Chin-A-Young.
11805 2002-11-14  Kevin Ryde  <user42@zip.com.au>
11807         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
11808         than assigning in main, to avoid HP cc +O3 optimizing it away.
11810 2002-11-12  Peter Eisentraut  <peter_e@gmx.net>
11812         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
11813         option.  Process --recheck after parsing all options.  Pass -q
11814         option to configure on --recheck.
11815         (AC_OUTPUT): Pass -q from configure to config.status.
11816         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
11817         arguments to record.
11818         * doc/autoconf.texi (config.status Invocation): Document
11819         config.status -q option.
11821 2002-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
11823         * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
11824         Makefile.in if Makefile.am exists.
11825         (output): Strip `.am' from Makefiles.  Don't
11826         output AC_CONFIG_FILES if no Makefiles were found.
11828 2002-11-07  Akim Demaille  <akim@epita.fr>
11830         * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
11831         (local_updates): New.
11832         * Makefile.maint: Update, from CVS Bison.
11833         (local_updates): New.
11835 2002-11-06  Akim Demaille  <akim@epita.fr>
11837         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
11838         declaration in extern "C" too.
11839         Reported by Roberto Bagnara.
11841 2002-11-06  Akim Demaille  <akim@epita.fr>
11843         * tests/torture.at (Configuring subdirectories): Don't use grep
11844         -w.
11845         * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
11846         Reported by Ezra Peisach.
11848 2002-11-05  Akim Demaille  <akim@epita.fr>
11850         * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
11851         Remove.
11852         We _have_ to stop using the old compatibility scheme that tried to
11853         avoid useless backslashes because Libtool 1.4.3 contains a
11854         AC_DEFINE([error_t], [int],
11855         [Define to a type to use for \`error_t' if it is not
11856         otherwise available.])
11857         We _have_ to quote the single quote and backslashes with \.  The
11858         old compatibility scheme saw that ` was backslashed, and therefore
11859         did not quote the single quote.  Hence before this patch, Autoconf
11860         was not compatible with Libtool.
11862 2002-11-04  Paul Eggert  <eggert@twinsun.com>
11864         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
11865         too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
11866         LC_NAME, LC_PAPER, LC_TELEPHONE.
11867         * doc/autoconf.texi (Special Shell Variables): Mention those vars.
11869 2002-11-04  Akim Demaille  <akim@epita.fr>
11871         Version 2.54c.
11873         * Makefile.maint (update, cvs-update, po-update, do-po-update):
11874         New.
11875         * config/texinfo.tex: Update.
11877 2002-11-03  Akim Demaille  <akim@epita.fr>
11879         * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
11880         from...
11881         (&autoreconf): here.
11882         ($help, $make, &parse_args, &autoreconf_current_directory):
11883         Support -m/--make.
11884         * doc/autoconf.texi (autoreconf Invocation): Adjust.
11886 2002-10-31  Bruno Haible  <bruno@clisp.org>
11888         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
11889         Change name of cache variable to ac_cv_func_malloc_0_nonnull.
11890         (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
11891         (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
11892         to ac_cv_func_realloc_0_nonnull.
11893         (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
11895 2002-10-31  Akim Demaille  <akim@epita.fr>
11897         The test suite was no longer checking for trailing envvars and files.
11899         * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
11900         (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
11902 2002-10-31  Akim Demaille  <akim@epita.fr>
11904         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
11905         `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
11906         Make variable, not a shell variable.
11907         Suggested by Bruno Haible.
11909 2002-10-31  Akim Demaille  <akim@epita.fr>
11911         * bin/autom4te.in (load_configuration): Reject #args out of any
11912         language.
11914 2002-10-31  Akim Demaille  <akim@epita.fr>
11916         * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
11917         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
11918         (_AC_RUN_IFELSE): Use it.
11919         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
11920         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
11921         * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
11922         inline it.
11924 2002-10-30  Akim Demaille  <akim@epita.fr>
11926         * bin/autom4te.in (&parse_args, $help): Support --no-cache.
11927         * doc/autoconf.texi (autom4te Invocation): Adjust.
11928         Suggested by Tim van Holder.
11930 2002-10-29  Paul Eggert  <eggert@twinsun.com>
11932         * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
11933         AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
11934         Problem reported by Bruno Haible.
11936 2002-10-29  Akim Demaille  <akim@epita.fr>
11938         * doc/autoconf.texi (Header Templates): Put also in words what the
11939         pictures says to assist free style readers.
11940         (Customizing autom4te): s/--cache=/--cache /.
11942 2002-10-29  Akim Demaille  <akim@epita.fr>
11944         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
11945         sys/wait.h.
11946         sparc_address_test returns void.
11947         Use it with an argument, as prototyped.
11948         From Bruno Haible.
11950 2002-10-29  Akim Demaille  <akim@epita.fr>
11952         * doc/autoconf.texi (Subdirectories): Cygnus dirs have
11953         configure.in, not configure.ac.
11954         Reported by Bruno Haible.
11956 2002-10-29  Akim Demaille  <akim@epita.fr>
11958         * tests/torture.at (Deep Package): New test.
11959         (Configuring subdirectories): Don't use a testSubDir as Autotest
11960         now does it itself.
11962 2002-10-29  Akim Demaille  <akim@epita.fr>
11964         * bin/autoreconf.in (&parse_args, $help): Support --warnings.
11965         * doc/autoconf.texi (Invoking autom4te): Rename as...
11966         (autom4te Invocation): this, for consistency with the other nodes.
11968 2002-10-29  Akim Demaille  <akim@epita.fr>
11970         * lib/autom4te.in (Autoconf): s/automate/autom4te/.
11971         Reported by Ralf Corsepius.
11973 2002-10-29  Akim Demaille  <akim@epita.fr>
11975         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
11976         characters is a back as an `obsolete' warning now.
11977         Reported by Ralf Corsepius.
11979 2002-10-28  Akim Demaille  <akim@epita.fr>
11981         * configure.ac: Bump to 2.54c.
11983 2002-10-28  Akim Demaille  <akim@epita.fr>
11985         Version 2.54b.
11987         * tests/foreign.at (Libtool): Adjust to broken libtoolize.
11989 2002-10-28  Akim Demaille  <akim@epita.fr>
11991         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
11992         m4 executable names, and different GNU M4 version.
11993         Reported by Ezra Peisach and Paul Jarc.
11995 2002-10-27  Akim Demaille  <akim@epita.fr>
11997         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
11998         AC_RUN_IFELSE.
12000 2002-10-27  Akim Demaille  <akim@epita.fr>
12002         * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
12003         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
12004         Die when a simple Fortran program cannot be compiled.
12005         * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
12006         Issue a warning if no function is given.
12008 2002-10-27  Akim Demaille  <akim@epita.fr>
12010         * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
12011         Move the documentation of AC_TRY_RUN to...
12012         (Obsolete Macros): here.
12013         Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
12014         (autoconf Invocation): Remove the duplicates with `invoking
12015         autom4te'.
12016         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
12017         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
12019 2002-10-27  Akim Demaille  <akim@epita.fr>
12021         * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
12022         and AC_LANG_FUNC_LINK_TRY.
12023         (Examining Libraries): Rename as...
12024         (Running the Linker): this.
12025         Document AC_LINK_IFELSE.
12026         Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
12027         (Obsolete Macros): here.
12028         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
12029         AC_TRY_LINK_FUNC nor AC_TRY_LINK.
12030         * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
12031         * lib/autoconf/headers.m4 (AC_USG): Likewise.
12033 2002-10-27  Akim Demaille  <akim@epita.fr>
12035         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
12037         More `check config.log' messages.
12039         * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
12040         * doc/autoconf.texi (Printing Messages): Document it.
12041         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
12042         appropriate.
12043         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
12044         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
12045         (_AC_COMPILER_OBJEXT): Likewise.
12046         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
12047         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
12048         Likewise.
12049         * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
12050         Likewise.
12052         Deprecate macros with unusual interfaces.
12054         * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
12055         (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
12057         Document the new ones, and proper style.
12059         * doc/autoconf.texi (Generating Sources): New.
12060         Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
12061         (Examining Declarations): Rename as...
12062         (Running the Preprocessor): this.
12063         Document AC_PREPROC_IFELSE.
12064         (Examining Syntax): Rename as...
12065         (Running the Compiler): this.
12066         (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
12067         (Obsolete Macros): Move the definition of AC_TRY_CPP and
12068         AC_TRY_COMPILE here.
12070 2002-10-27  Akim Demaille  <akim@epita.fr>
12072         Move sections around.
12074         * doc/autoconf.texi (Customizing autom4te): Remove a lost
12075         sentence.
12076         Reported by Burno Haible.
12077         (Language Choice): Now the first section of...
12078         (Writing Tests): this section.
12079         Make the introduction less C-centric.
12080         (Guidelines, Test Functions): Move to...
12081         (Writing Test Programs): this new section.
12082         (Test Programs): Merge into...
12083         (Run Time): this.
12085 2002-10-27  Akim Demaille  <akim@epita.fr>
12087         * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
12088         autom4te.in that resulted in the need for two `make' runs.
12090 2002-10-27  Akim Demaille  <akim@epita.fr>
12092         * configure.ac: Bump to 2.54b.
12094 2002-10-25  Akim Demaille  <akim@epita.fr>
12096         Version 2.54a.
12098         * Makefile.maint: Update from the Coreutils.
12099         (AMTAR): Remove, obsolete.
12100         (automake_repo): Update to redhat.com.
12101         (cvs_file): New.
12102         Adjust to the fact that ansi2knr is now hosted by Automake.
12103         * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
12104         * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
12105         Update from masters.
12106         * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
12107         autoscan.pre is not to be installed, and autoscan.list is not to
12108         be shipped.
12109         (CLEANFILES): Add autoscan.list.
12110         (autoscan.list): Disable the cache.
12111         * bin/Makefile.am: Include freeze.mk.
12113 2002-10-25  Akim Demaille  <akim@epita.fr>
12115         * bin/autom4te.in (&load_configuration): Take the file as
12116         argument.
12117         (&parse_args): Handle -C, --cache.
12118         ($help): Adjust.
12119         (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
12120         * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
12121         * doc/autoconf.texi (Invoking autom4te): Document --cache.
12122         Now a subsection of...
12123         (Using autom4te): This new section.
12124         (Customizing autom4te): New.
12125         (autom4te.cache): Adjust.
12127 2002-10-25  Akim Demaille  <akim@epita.fr>
12129         * doc/autoconf.texi (Generic Headers): More information on how to
12130         use AC_CHECK_HEADERS.
12132 2002-10-25  Akim Demaille  <akim@epita.fr>
12134         * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
12135         Space changes.
12137 2002-10-25  Akim Demaille  <akim@epita.fr>
12139         * bin/autoscan.in (output): Output AC_PREREQ.
12140         (%needed_macros): Add AC_PREREQ so that configure.ac without one
12141         be reported.
12143 2002-10-23  Akim Demaille  <akim@epita.fr>
12145         * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
12146         document _Bool.
12148 2002-10-23  Akim Demaille  <akim@epita.fr>
12150         * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
12151         Reported by Peter Eisentraut.
12153 2002-10-23  Akim Demaille  <akim@epita.fr>
12155         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
12156         type _Bool.
12157         Fix a typo.
12158         * doc/autoconf.texi (Particular Headers): Adjust according to Paul
12159         Eggert's recommandations.
12161 2002-10-22  Akim Demaille  <akim@epita.fr>
12163         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
12164         Bison, by Paul Eggert.
12165         * doc/autoconf.texi (Particular Headers): Document it.
12167 2002-10-22  Aaron M. Ucko  <amu@alum.mit.edu>
12169         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
12170         `$ac_configure_args'.
12172 2002-10-22  Akim Demaille  <akim@epita.fr>
12174         * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
12175         (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
12176         From Art Haas.
12178 2002-10-22  Akim Demaille  <akim@epita.fr>
12180         Restore the 2002-10-11  Akim Demaille  <akim@epita.fr> patch:
12182         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
12183         (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
12184         (_AC_CHECK_HEADER_NEW): Rename as...
12185         (AC_CHECK_HEADER): this.
12187 2002-10-22  Akim Demaille  <akim@epita.fr>
12189         * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
12190         words about HP-UX cmp: it was actually a user-written cmp.
12192 2002-10-22  Akim Demaille  <akim@epita.fr>
12194         * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
12195         are a few warnings.
12196         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
12197         Quote for Perl '' strings, not "".
12198         * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
12199         strings.
12201 2002-10-22  Akim Demaille  <akim@epita.fr>
12203         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
12204         characters is a syntax warning now.
12205         (_AS_QUOTE): Accept $2 as list of characters to quote.
12206         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
12207         Quote for Perl, not sh.
12208         * bin/autoheader.in: When $debug, report the file which is
12209         `do'ne.
12210         * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
12211         `@', to tickle Perl's lists.
12212         Reported by Carlos Velasco.
12214 2002-10-18  Akim Demaille  <akim@epita.fr>
12216         * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
12217         missing included files _are_ errors.
12218         Thanks to Alexandre Duret-Lutz.
12219         * tests/tools.at (autom4te cache): Adjust.
12220         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
12221         (AT_CHECK_M4SUGAR): Use it.
12222         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
12223         Adjust.
12224         * tests/tools.at (autom4te): Now it does exit 1.
12226 2002-10-17  Akim Demaille  <akim@epita.fr>
12228         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
12229         Fixes the `AC_ARG_VAR' test failures.
12230         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
12231         * lib/freeze.mk (check-forbidden-patterns): New.
12232         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
12233         * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
12234         * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
12235         /dev/null.
12236         Reported months ago by H. Merijn Brand.
12238 2002-10-17  Akim Demaille  <akim@epita.fr>
12240         * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
12242 2002-10-16  Paul Eggert  <eggert@twinsun.com>
12244         * Makefile.maint (wget_files): Remove ansi2knr.c.
12245         (ansi2knr.c-url_prefix): Remove.
12247 2002-10-16  Akim Demaille  <akim@epita.fr>
12249         Because of caching, some files that no longer exist and are no
12250         longer required can still cause errors.
12251         Reported by Alexandre Duret-Lutz.
12253         * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
12254         to frozen files in @ARGV, as @ARGV must remain being a list of
12255         files.  Rather, at M4 call sites, use this...
12256         (&files_to_options): New function.
12257         (&freeze): Use &error.
12258         (&up_to_date): If a file that was included according to the cache
12259         is no longer there, then the output is out dated.
12260         (&main): Don't even check whether a file is up to date is anyway
12261         --force is given.
12262         * tests/tools.at (autom4te cache): New.
12264 2002-10-16  Akim Demaille  <akim@epita.fr>
12266         * bin/autoconf.as: Kill dead options.
12267         * bin/autoupdate.in (&parse_args): Kill old options.
12268         * bin/autoreconf.in (&parse_args): Remove dead options.
12269         Factor some code.
12270         (&autoreconf): Report the directories we enter *and leave*, so
12271         that error messages can be easily located, and use GNU Make
12272         format, so that Emacs' compile mode understands us.
12273         * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
12274         if some file was changed instead of `print'.
12275         * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
12276         (&parse_args): Remove the dead options.
12277         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
12278         autoheader's quiet mode.
12279         (AT_CHECK_AUTOUPDATE): Likewise.
12280         * tests/tools.at (autoupdate): Adjust.
12281         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
12283 2002-10-11  Akim Demaille  <akim@epita.fr>
12285         No longer use CPP to check for the existing of headers: use CC to
12286         check for compilability.
12288         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
12289         (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
12290         (_AC_CHECK_HEADER_NEW): Rename as...
12291         (AC_CHECK_HEADER): this.
12293         * lib/autotest/general.m4 (AT_INIT): Include the failed test
12294         numbers in the Subject suggestion.
12296 2002-10-11  Akim Demaille  <akim@epita.fr>
12298         * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
12299         Suggest using AC_CHECK_DECLS instead.
12301 2002-10-11  Akim Demaille  <akim@epita.fr>
12303         * tests/torture.at (AC_ARG_VAR): Have configure report the value
12304         of `precious'.
12306 2002-10-11  Akim Demaille  <akim@epita.fr>
12308         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
12309         file name to enable parallel executions.
12310         From Sam Varshavchik.
12312 2002-10-08  Akim Demaille  <akim@epita.fr>
12314         * bin/autoreconf.in (&autoreconf): Run autopoint before the first
12315         aclocal invocation, as Gettext macros might not be visible to
12316         aclocal.
12317         Instead of blindly running autopoint, scan configure.ac (not the
12318         traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
12319         Reported by Paul D. Smith.
12321 2002-10-08  Paul Eggert  <eggert@twinsun.com>
12323         Work around problems found when POSIXLY_CORRECT=1 is set.
12324         None of this seems to have anything to do with POSIX, really,
12325         but it's how Perl getopt works.
12326         * bin/autom4te.in (parse_args): Configure GetOpt with
12327         "permute", too.
12328         * doc/autoconf.texi (Invoking autom4te):
12329         --warning -> --warnings.
12330         * lib/autom4te.in: --warning -> --warnings.
12332 2002-09-28  Akim Demaille  <akim@epita.fr>
12334         * doc/autoconf.texi (autom4te.cache): New section.
12336 2002-09-28  Akim Demaille  <akim@epita.fr>
12338         * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
12339         (Automake-preselections): Update.
12340         * bin/autoreconf.in, bin/autoheader.in: Comment changes.
12342 2002-09-28  Akim Demaille  <akim@epita.fr>
12344         * lib/autoscan/autoscan.pre: Move all the remaining rules to...
12345         * lib/autoconf/c.m4, lib/autoconf/functions.m4,
12346         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
12347         * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
12349 2002-09-28  Akim Demaille  <akim@epita.fr>
12351         * tests/torture.at (Configuring subdirectories): Be robust to
12352         users who use config.site to require for a cache: in this case,
12353         the two last configure runs, using two different sets of
12354         arguments, trigger a legitimate error.
12356 2002-09-28  Akim Demaille  <akim@epita.fr>
12358         * tests/m4sh.at (Functions Support, Functions and return Support):
12359         New.
12361 2002-09-28  Akim Demaille  <akim@epita.fr>
12363         * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
12364         autoheader are Perl programs.
12365         (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
12366         (autom4te): Specify that the sources are in the $srcdir.
12367         * doc/autoconf.texi (Installation Directory Variables): Adjust.
12369 2002-09-28  Akim Demaille  <akim@epita.fr>
12371         * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
12372         (tm_zone): Move their rules to...
12373         * lib/autoconf/types.m4: here, using AN_ macros.
12374         * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
12375         (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
12376         (make, mawk, nawk, ranlib, yacc): Similarly, move to...
12377         * lib/autoconf/programs.m4: here.
12378         * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
12379         (ETAGS_FOR_AUTOCONF): New.
12380         Use it.
12382 2002-09-28  Akim Demaille  <akim@epita.fr>
12384         * lib/autoconf/autoscan.m4: New file.
12385         * lib/autoconf/autoconf.m4: Include it.
12386         * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
12387         that were listed in the original autoscan.list.
12388         * lib/autoconf/headers.m4: Similarly with headers.
12389         * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
12390         (.m4.m4f): Don't pass --prepend-include, since that's done by
12391         tests/autom4te itself.
12392         * lib/autoscan/Makefile.am: Include freeze.mk.
12393         (autoscan.list): New target --this file is no longer a source.
12394         (autoscan.pre): New file.
12396 2002-09-28  Akim Demaille  <akim@epita.fr>
12398         * bin/autoscan.in (@kinds): Make them singular.
12399         Adjust all uses.
12400         (&init_tables): When --debug, report the list of rules to ease
12401         tracking changes in autoscan.list.
12402         * lib/autoscan/autoscan.list (function): Strip comments, sort.
12404 2002-09-28  Akim Demaille  <akim@epita.fr>
12406         * lib/autoscan/functions, lib/autoscan/headers,
12407         * lib/autoscan/identifiers, lib/autoscan/makevars,
12408         * lib/autoscan/programs: Merge into...
12409         * lib/autoscan/autoscan.list: this.
12410         * bin/autoscan.in (&init_tables): Adjust.
12412 2002-09-28  Akim Demaille  <akim@epita.fr>
12414         * lib/autoscan/functions, lib/autoscan/headers,
12415         * lib/autoscan/identifiers, lib/autoscan/makevars,
12416         * lib/autoscan/programs: Make the `kind' explicit, i.e., each
12417         `functions' line is now prefixed with `function:'.
12418         * bin/autoscan.in (&init_tables): Adjust.
12420 2002-09-28  Akim Demaille  <akim@epita.fr>
12422         From now on, autoscan files must always map a macro name to a
12423         word: there is no `default' macro for autoscan.
12425         * bin/autoscan.in (&init_tables): Reject entries with no macro at
12426         all.
12427         * lib/autoscan/functions, lib/autoscan/headers: Make the macro
12428         explicit.
12430 2002-09-28  Akim Demaille  <akim@epita.fr>
12432         * bin/autoscan.in (%c_keywords): Remove.
12433         (&used): Keep only track of the words we might be interested in.
12434         (&output_kind): It is no longer needed to look for non active
12435         checks.
12437 2002-09-27  Akim Demaille  <akim@epita.fr>
12439         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
12440         jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
12441         * lib/autoscan/functions: Adjust.
12442         * doc/autoconf.texi (Particular Functions): Adjust.
12444 2002-09-27  Akim Demaille  <akim@epita.fr>
12446         * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
12447         from /tmp.
12448         Thanks to Bill Moseley and Paul Eggert.
12449         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
12450         the tmpdir must be created.
12451         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
12452         dir be in the build tree, instead of $TMPDIR.
12454 2002-09-27  Akim Demaille  <akim@epita.fr>
12456         * bin/autoscan.in: Improve the comments.
12457         (&parse_args): Drop obsolete undocumented options.
12458         (&output_kind): Output warnings.
12459         * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
12460         (getwd): Trigger a warning.
12462 2002-09-26  Akim Demaille  <akim@epita.fr>
12464         * bin/autoreconf.in: Clarify that -s is meaningless without -i.
12465         Reported by Ralf Corsepius.
12466         * doc/autoconf.texi (autoreconf Invocation): Likewise.
12468 2002-09-26  Akim Demaille  <akim@epita.fr>
12470         Single suffix rules and seperated dependencies are not portable.
12472         * doc/autoconf.texi (Installation Directory Variables): Update.
12473         (Limitations of Make): Some about `Single Suffix Rules and
12474         Separated Dependencies'.
12475         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
12476         (ifnames, autoscan, autom4te): Un-factor into several rules.
12478 2002-09-25  Paul Eggert  <eggert@twinsun.com>
12480         * BUGS (Interoperability bugs): New section.  Mention libtool
12481         1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
12483 2002-09-24  Paul Eggert  <eggert@twinsun.com>
12485         Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
12486         make handles suffix-rules differently from GNU make.
12488         * bin/Makefile.am (SUFFIXES, .in): Remove.
12489         (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
12490         Move the body of the old .in rule here.
12492 2002-09-16  Akim Demaille  <akim@epita.fr>
12494         i960 compilers create `b.out' files by default.
12495         Reported by Ralf Corsepius.
12497         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
12498         (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
12500 2002-09-13  Paul Eggert  <eggert@twinsun.com>
12502         * doc/autoconf.texi (Particular Headers): Remove obsolete
12503         reference to `struct timezone' in the description of
12504         AC_HEADER_TIME.
12506 2002-09-13  Akim Demaille  <akim@epita.fr>
12508         Version 2.54.
12510         * config/config.sub, config/config.guess: Update.
12511         * Makefile.maint: Update from bits of the Coreutils 4.5.1.
12512         * Makefile.am: Adjust.
12514 2002-09-13  Akim Demaille  <akim@epita.fr>
12516         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
12517         reading config.log when the compiler is rejected.
12518         Suggested by Guido Draheim.
12520 2002-09-13  Akim Demaille  <akim@epita.fr>
12522         * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
12523         (chdir_init) might hang when stat'ing mounted directories.
12524         Reported by Vance Shipley.
12526 2002-09-12  Akim Demaille  <akim@epita.fr>
12528         * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
12529         the lists.
12531 2002-09-12  Akim Demaille  <akim@epita.fr>
12533         * doc/autoconf.texi (Defining Symbols): Present two different
12534         prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
12535         difference between 1 argument calls, and 2-3 argument calls.
12537 2002-09-12  Peter Eisentraut  <peter_e@gmx.net>
12539         * doc/autoconf.texi: Review grammar and punctuation.
12541 2002-09-11  Paul Eggert  <eggert@twinsun.com>
12543         * doc/autoconf.texi: Fix minor formatting, spelling, and
12544         grammatical typos.
12545         (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
12546         AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
12547         is obsolescent.
12549 2002-09-11  Akim Demaille  <akim@epita.fr>
12551         * doc/autoconf.texi (Questions): Rename as...
12552         (FAQ): this.
12553         (Defining Directories): New.
12555 2002-09-09  Akim Demaille  <akim@epita.fr>
12557         * doc/autoconf.texi (Making testsuite Scripts): Update.
12558         Suggested by Nishio Futoshi.
12560 2002-09-09  Koji Arai  <JCA02266@nifty.ne.jp>
12562         * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
12563         plain `@' is wanted.
12565 2002-09-09  Akim Demaille  <akim@epita.fr>
12567         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
12568         `duplicates', since the algorithm was too naive and could keep
12569         `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
12570         keep `--prefix foo --prefix bar' as `--prefix foo bar'.
12571         Reported by Ralf Corsepius.
12572         * tests/torture.at (Configuring subdirectories): Exercise these
12573         cases.
12575 2002-09-09  Akim Demaille  <akim@epita.fr>
12577         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
12578         looking for a replacement file.
12579         * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
12580         directory is relative.
12581         * doc/autoconf.texi (Generic Functions): Clarify the replacement
12582         directory definition.
12583         Reported by Andreas Schwab and Jim Meyering.
12585 2002-09-06  Akim Demaille  <akim@epita.fr>
12587         * doc/autoconf.texi (Setting Output Variables): Clarify what
12588         precious variables are.
12589         Suggested by Pontus Skoeld.
12591 2002-09-05  Akim Demaille  <akim@epita.fr>
12593         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
12594         (ifnames, autoscan, autom4te): Since we don't only depend on
12595         configure.ac variables (such as VERSION etc.), but also on prefix
12596         and so forth, depend on Makefile, not configure.ac.
12597         Reported by Alexandre Duret-Lutz.
12598         * doc/autoconf.texi (Installation Directory Variables): Adjust.
12600 2002-09-05  Kevin Ryde  <user42@zip.com.au>
12602         * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
12603         doesn't seem to be confined to ia64, just say "some versions".
12605 2002-09-04  Akim Demaille  <akim@epita.fr>
12607         * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
12608         Automake 1.6c.
12609         * Makefile.am (maintainer-clean-local): Remove.
12610         (MAINTAINERCLEANFILES): Remove COPYING.
12612 2002-09-03  Paul Eggert  <eggert@twinsun.com>
12614         * doc/autoconf.texi (Configuration Commands): Remove obsolete
12615         example for AC_CONFIG_COMMANDS_PRE.  Problem reported by Marcus
12616         Brinkmann.
12618 2002-09-03  Akim Demaille  <akim@epita.fr>
12620         * configure.ac: Bump to 2.53d.
12621         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
12622         as of today, on Automake's team suggestion.
12624 2002-09-03  Akim Demaille  <akim@epita.fr>
12626         Version 2.53c.
12628 2002-09-02  Akim Demaille  <akim@epita.fr>
12630         * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
12631         SITE_MACRO_DIR.
12632         * configure.ac: Disable SITE_MACRO_DIR.
12634 2002-09-02  Jim Meyering  <meyering@lucent.com>
12636         * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
12637         i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
12638         Also, tweak grammar: s/make sure to/be sure to/.
12640 2002-09-02  Paul Eggert  <eggert@twinsun.com>
12642         * doc/autoconf.texi (Limitations of Builtins): Explain why logical
12643         directory names are generally preferable to physical names.
12645 2002-09-02  Akim Demaille  <akim@epita.fr>
12647         * lib/Autom4te/General.pm (&update_file): s/die/error/.
12648         Reported by Raja R. Harinath.
12649         * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
12650         * bin/autoupdate.in: Use error instead of die.
12652 2002-09-01  Paul Eggert  <eggert@twinsun.com>
12654         * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
12655         ordinary shell concatenation rather than echo+tr+sed command that
12656         runs afoul of a long-line-related sed bug in Solaris 8.
12658         * bin/autoheader.in (parse_args): --warning -> --warnings.
12660         * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
12661         stdout, as traditional "ls" does.
12662         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
12663         _AC_COMPILER_EXEEXT_O): Likewise.
12664         * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
12666         * bin/autoconf.as: Add --prepend-include option.  This patch was
12667         applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
12668         but bin/autoconf.in is generated automatically from bin/autoconf.as.
12670         * bin/autoconf.in, configure: Regenerate.
12672         * doc/autoconf.texi (Special Shell Variables): Mention
12673         ENV, MAIL, MAILPATH, PS1, PS2, PS4.  Index PWD.
12675         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
12676         MAILPATH and set PS1, PS2, PS4 to default values, to work
12677         around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
12678         For LC_ALL etc, first try to set to "C" as POSIX requires and as
12679         the Autoconf documentation specifies; fall back to "unset" only if
12680         this fails.  Use a shell for-loop for this rather than an m4 loop,
12681         to shorten the output script.
12683 2002-08-30  Paul Eggert  <eggert@twinsun.com>
12685         * doc/autoconf.texi (Special Shell Variables): Mention POSIX
12686         1003.1-2001's requirements for CDPATH.  Give a simpler workaround
12687         for the CDPATH problem.  Document PWD.
12688         (Limitations of Builtins): Document the problem that "cd $foo" and
12689         "ls $foo" may refer to different directories in shells conforming
12690         to POSIX 1003.1-2001.  Use PS1 rather than CDPATH for "unset"
12691         example, since the old example is now out of date.
12693         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
12694         FOO" and "ls FOO" talk about different directories; this catches
12695         problems when POSIX 1003.1-2001 "cd" fails due to symlink
12696         spaghetti.
12698         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
12699         of rolling our own unset.
12700         (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
12701         in practice we needn't worry about CDPATH if unset doesn't work.
12703         * Makefile.in, aclocal.m4, bin/Makefile.in,
12704         config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
12705         lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
12706         lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
12707         lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
12708         tests/Makefile.in: Regenerate with Automake 1.6.3.
12710         * config/config.guess, config/config.sub, config/mkinstalldirs:
12711         Update.
12713         * configure: Regenerate with self.
12715 2002-08-30  Kevin Ryde  <user42@zip.com.au>
12717         * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
12718         default output.
12720 2002-08-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12722         * bin/autom4te.in (Request::load): Correctly test for "do" read
12723         failure.
12725 2002-08-29  Akim Demaille  <akim@epita.fr>
12727         * lib/Autom4te/General.pm (&xqx): New.
12728         (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
12729         hand, which is not portable.
12730         (&error): New.
12731         * bin/autom4te.in: Use them.
12732         Use &error instead of die.
12733         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
12734         Adjust.
12736 2002-08-17  Paul Eggert  <eggert@twinsun.com>
12738         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
12739         default list of compilers to try, since it was long ago superseded
12740         by the ksh fc builtin.  Suggested by Steven G. Johnson.
12742 2002-07-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
12744         * doc/autoconf.texi (Invoking autom4te): End the option table,
12745         fixing a bug introduced by the previous patch.
12746         (Limitations of Make): Add a 'target lookup' subentry in the
12747         'VPATH' entry.  Rewrite all `make' occurences as `@command{make}'.
12749 2002-07-29  Mark D. Roth  <roth@feep.net>
12751         * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
12752         options and use $AUTOM4TE_PATH.
12753         * doc/autoconf.texi: Remove documentation of autom4te
12754         --include-envvar and --site-macro-subdir options and document
12755         use of $AUTOM4TE_PATH.
12756         * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
12757         arguments from each language section.
12759 2002-07-29  Paul Eggert  <eggert@twinsun.com>
12761         * doc/install.texi: Include copyright symbol in copyright notice.
12763         * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
12764         Replace with:
12765         (AM_MAKEINFOFLAGS): New macro.
12766         * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
12767         * Makefile.am (INSTALL): Use the new macros.
12768         Use -o rather than --output, since "missing" does not grok --output.
12770 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
12772         * doc/autoconf.texi (Limitations of Make): Escaped newlines in
12773         comments do not always work. Never trust the exit status of
12774         `make -k'.
12776 2002-07-24  Kevin Ryde  <user42@zip.com.au>
12778         * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
12779         Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
12781 2002-07-23  Paul Eggert  <eggert@twinsun.com>
12783         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
12784         Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
12785         apparently treats PATH="nonexistent" as if it contained ".".
12786         Bug reported by Stefan `Sec' Zehl.
12788 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
12790         * doc/autoconf.texi (Limitations of Make): Mention the special
12791         handling of the obj/ directory by BSD make.
12793 2002-07-20  Kevin Ryde  <user42@zip.com.au>
12795         * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
12796         backslashes.
12798 2002-07-19  Akim Demaille  <akim@epita.fr>
12800         * doc/autoconf.texi (Function Portability): `exit'.
12801         (Programming in M4sh): Ethymology of M4sh.
12803 2002-07-19  Akim Demaille  <akim@epita.fr>
12805         * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
12807 2002-07-18  Akim Demaille  <akim@epita.fr>
12809         Version 2.53b.
12811 2002-07-18  Akim Demaille  <akim@epita.fr>
12813         * config/config.guess, config/config.sub: Update.
12815 2002-07-18  Akim Demaille  <akim@epita.fr>
12817         Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
12818         Automake's parts.
12820         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
12821         * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
12822         * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
12824 2002-07-18  Akim Demaille  <akim@epita.fr>,
12825             Alexandre Duret-Lutz  <duret_g@epita.fr>
12827         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
12828         _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
12830 2002-07-17  Russ Allbery  <rra@stanford.edu>
12832         * doc/autoconf.texi (Initializing configure): Clarify the
12833         description of the tarname default.
12835 2002-07-17  Andreas Buening  <andreas.buening@nexgo.de>
12837         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
12838         ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
12839         latter was not run.
12841 2002-07-17  Akim Demaille  <akim@epita.fr>
12843         * lib/Autom4te/General.pm (find_file): Browse the directories in
12844         the order they are given.
12846 2002-07-17  Akim Demaille  <akim@epita.fr>
12848         * tests/wrapsh.as, tests/wrappl.as: Merge into...
12849         * tests/wrapper.as: this.
12850         * tests/Makefile.am, configure.ac: Adjust.
12852 2002-07-17  Mark D. Roth  <roth@feep.net>
12854         * configure.ac: Add --enable-site-macro-dir option.
12855         * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
12856         * bin/autom4te.in: Add --prepend-include, --include-envvar, and
12857         --site-macro-subdir options.
12858         * bin/autoconf.in: Add --prepend-include option.
12859         * bin/autoheader.in: Add --prepend-include option.
12860         * bin/autoreconf.in: Add --prepend-include option.
12861         * bin/autoscan.in: Add --prepend-include option.
12862         * bin/autoupdate.in: Add --prepend-include option.
12863         * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
12864         macro directory, remove note that include path directories are
12865         used in reverse order, and document --prepend-include option.
12866         * lib/autom4te.in: Use --prepend-include instead of --include.
12867         * tests/wrapsh.in: Use --prepend-include instead of --include.
12869 2002-07-17  Akim Demaille  <akim@epita.fr>
12871         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
12872         tarnames.
12873         * doc/autoconf.texi (Initializing configure): Adjust.
12875 2002-07-17  Akim Demaille  <akim@epita.fr>
12877         * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
12878         (_AC_FUNC_MALLOC): New.
12879         (AC_FUNC_MALLOC): Use the latter.
12880         Define HAVE_MALLOC to 0 if broken.
12881         * doc/autoconf.texi (Particular Functions): Adjust.
12883 2002-07-16  Akim Demaille  <akim@epita.fr>
12885         * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
12886         * doc/autoconf.texi (C Compiler): Adjust.
12888 2002-07-09  Akim Demaille  <akim@epita.fr>
12890         * doc/autoconf.texi: Properly set the ``header'' part.
12892 2002-07-09  Akim Demaille  <akim@epita.fr>
12894         * doc/autoconf.texi (Systemology): Some about Darwin.
12896 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
12898         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
12899         Don't use AC_REQUIRE in AU_DEFUN.
12901 2002-07-09  Art Haas  <ahaas@neosoft.com>
12903         * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
12905 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
12907         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
12908         bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
12909         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
12910         so that Emacs setups GNU style for perl-mode and cperl-mode.
12912 2002-06-27  Paul Eggert  <eggert@twinsun.com>
12914         * config/install-sh: Quote $src.  Prefer || to test's -o option,
12915         as per "Limitations of Builtins".
12916         * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
12917         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
12919         * tests/mktests.sh: Use grep instead of fgrep, as per
12920         "Limitations of Builtins".
12922 2002-06-15  Paul Eggert  <eggert@twinsun.com>
12924         * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
12925         autom4te_perllibdir): Set to top build dir or src dir as appropriate,
12926         so that we consistently test the just-built programs.
12927         * tests/wrappl.as: Likewise.
12929 2002-06-12  Paul Eggert  <eggert@twinsun.com>
12931         * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
12932         name, so that symlinks to 'autoconf' work properly.  Bug reported
12933         by Bruno Haible.
12934         * bin/autoheader.in (AUTOM4TE): Likewise.
12935         * bin/autoreconf.in (autoconf, autoheader): Likewise.
12936         * bin/autoscan.in (autom4te): Likewise.
12937         * bin/autoupdate.in (autom4te): Likewise.
12939         * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
12940         btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
12941         on Solaris 2.5.1.
12943 2002-06-11  Andreas Schwab  <schwab@suse.de>
12945         * doc/autoconf.texi: Add more dir entries.
12947 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
12949         * bin/autom4te.in ($cache): Don't define using `$me', the name
12950         of the cache should not depend on the name under which autom4te
12951         was installed.
12953 2002-06-07  Akim Demaille  <akim@epita.fr>
12955         * tests/tools.at (autoconf: forbidden tokens, basic)
12956         (autoconf: forbidden tokens, exceptions): Adjust to the change of
12957         words in autom4te.in.
12959 2002-06-07  Peter Eisentraut  <peter_e@gmx.net>
12961         * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
12962         _AC_LANG_PROGRAM_C_F77_HOOKS.
12964 2002-06-07  Akim Demaille  <akim@epita.fr>
12966         * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
12967         rename as...
12968         (AC_REPLACE_FNMATCH): this.
12969         * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
12970         AC_FUNC_FNMATCH_GNU.
12972 2002-06-07  Akim Demaille  <akim@epita.fr>
12974         * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
12975         Rosetta Stone for Unix.
12977 2002-06-07  Akim Demaille  <akim@epita.fr>
12979         * bin/autom4te.in (warn_forbidden): When rejecting a token,
12980         suggest m4_pattern_allow.
12981         Suggested by Adam J. Richter.
12983 2002-06-07  Akim Demaille  <akim@epita.fr>
12985         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
12986         ac_config_libobj_dir.
12987         (AC_CONFIG_LIBOBJ_DIR): New.
12988         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
12989         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
12990         Use ac_config_libobj_dir to find the replacement files.
12991         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
12992         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
12993         (AC_REPLACE_FNMATCH_GNU): these.
12994         (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
12995         * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
12996         * tests/mktests.sh (ac_exclude_list): Don't check
12997         AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
12999 2002-06-06  Paul Eggert  <eggert@twinsun.com>
13001         * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
13002         if ln doesn't work.
13003         * NEWS: Likewise.
13004         * doc/autoconf.texi (Configuration Links): Likewise.
13005         (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
13007 2002-06-05  Paul Eggert  <eggert@twinsun.com>
13009         * config/config.guess, config/config.sub, config/texinfo.tex:
13010         Update from masters.
13012 2002-05-29  Paul Eggert  <eggert@twinsun.com>
13014         * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
13015         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
13016         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
13017         Likewise.
13018         * lib/autoconf/Makefile.am (check-local): Likewise.
13019         * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
13020         * lib/autoconf/types.m4 (commentary only): Likewise.
13021         * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
13022         * lib/autotest/Makefile.am (check-local): Likewise.
13023         * lib/m4sugar/Makefile.am (check-local): Likewise.
13024         * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
13025         * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
13027         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
13028         * doc/autoconf.texi (Particular Programs): Document them.
13029         (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
13030         * NEWS: Likewise.
13032 2002-05-27  Paul Eggert  <eggert@twinsun.com>
13034         * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
13035         * NEWS, doc/autoconf.texi (Particular Types): Document it.
13036         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
13037         instead of AC_MBSTATE_T, which never existed.
13039 2002-05-23  Akim Demaille  <akim@epita.fr>
13041         * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
13042         version of Autoconf that is discussed.
13044 2002-05-22  Paul Eggert  <eggert@twinsun.com>
13046         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
13047         from the default list of compilers to try.  Suggested by
13048         Kate Hedstrom.
13049         * NEWS: Document the above.
13050         * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
13052 2002-05-17  Paul Eggert  <eggert@twinsun.com>
13054         * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
13055         the member is itself an aggregate.  Bug reported by Sergey Poznyakoff.
13056         This improves on an earlier suggestion by H. Peter Anvin.
13058 2002-05-16  Paul Eggert  <eggert@twinsun.com>
13060         AC_FUNC_FNMATCH now tests only for POSIX compatibility.
13061         AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
13062         Both macros now accept an optional source-dir arg.
13063         New macro AC_GNU_SOURCE to define _GNU_SOURCE.
13065         * NEWS: Document this.
13066         * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
13068         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
13069         (AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
13070         not for GNU extensions; this undoes part of the 2000-11-03 change,
13071         reverting to 2.13-compatible behavior.
13072         Add new optional argument DIR.
13073         (AC_FUNC_FNMATCH_GNU): New macro.
13075         * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
13077 2002-05-08  Paul Eggert  <eggert@twinsun.com>
13079         * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
13080         Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
13081         and it causes a 'test' syntax error if it fails.
13082         Bug reported by Stephen Gildea.
13084         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
13085         If prototypes are supported, use them to check this at compile-time,
13086         instead of trying to check it at run-time.  If we must do a run-time
13087         check, assume that setvbuf is standard when cross-compiling, as
13088         nonstandard setvbuf occurs only on ancient and unlikely hosts.
13089         Bug reported by Paul D. Smith.
13091         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
13092         argument specifying location of getloadavg.c.  This removes a
13093         FIXME.  This idea was taken from Jim Meyering's implementation in
13094         textutils.
13095         * doc/autoconf.texi (Particular Functions): Document this.
13096         Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
13097         that's what the code does; this fixes a bug reported by
13098         Paul D. Smith.
13100 2002-05-03  Akim Demaille  <akim@epita.fr>
13102         * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
13103         autopoint instead of gettextize.
13104         ($uses_alocal): Rename as...
13105         ($uses_aclocal): this.
13106         * doc/autoconf.texi (autoreconf Invocation): Adjust.
13107         Suggested by Bruno Haible.
13109 2002-05-03  Akim Demaille  <akim@epita.fr>
13111         * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
13113 2002-04-29  Paul Eggert  <eggert@twinsun.com>
13115         * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
13116         files to be 1 second older; just set them to be the same time.
13117         Also, sleep 1 second after the first aclocal, to work around
13118         problems with sub-second time stamps on the input files.
13120 2002-04-29  Thien-Thi Nguyen  <ttn@gnu.org>
13122         * doc/autoconf.texi: Mention "set -e -x" lossage
13123         under node "Limitations of Builtins".
13125 2002-04-29  Akim Demaille  <akim@epita.fr>
13127         * doc/install.texi: Better wording for setting variables when
13128         running configure.
13129         From Christian Cornelssen.
13131 2002-04-29  Akim Demaille  <akim@epita.fr>
13133         * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
13134         of lack of $LINENO support, then the test will compare the $LINENO
13135         in testsuite vs. the lineno in the test file.  This is wrong, of
13136         course.
13137         Be sure to protect it.
13138         Reported by Patrick Welche.
13140 2002-04-25  Akim Demaille  <akim@epita.fr>
13142         * doc/autoconf.texi (Obsolete Macros): Typo.
13143         Reported by Vladimir Volovich.
13145 2002-04-25  Akim Demaille  <akim@epita.fr>
13147         * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
13148         than some of the input files, hence, on the second run of aclocal,
13149         if some of its input are younger, make them older.
13150         Suggested by Paul Eggert.
13152 2002-04-25  Akim Demaille  <akim@epita.fr>
13154         * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
13155         Thanks to Paul Eggert.
13157 2002-04-25  Akim Demaille  <akim@epita.fr>
13159         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
13160         and ac_subst_vars be sh variables containing the list of
13161         AC_SUBST_FILES'ed and AC_SUBST'ed identifiers.  Output them in the
13162         DEFAULT diversion.
13163         (_AC_INIT_PREPARE): Use them to log them.
13164         (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
13165         (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
13166         _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
13167         _AC_SUBST_FILES and _AC_SUBST_VARS.
13168         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
13170 2002-04-24  Akim Demaille  <akim@epita.fr>
13172         * bin/autoreconf.in (autoreconf): Run automake after autoconf and
13173         autoheader, so that automake does not complain about a missing
13174         config.h.in that was to be created.
13176 2002-04-23  Akim Demaille  <akim@epita.fr>
13178         * bin/autoheader.in (parse_args): --warning takes an argument.
13179         Fixes PR/220.
13181 2002-04-22  Peter Eisentraut  <peter_e@gmx.net>
13183         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
13184         and bb.out when cleaning up.
13186 2002-04-22  Akim Demaille  <akim@epita.fr>
13188         Version 2.53a.
13190 2002-04-22  Akim Demaille  <akim@epita.fr>
13192         * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
13194 2002-04-22  Akim Demaille  <akim@epita.fr>
13196         * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
13197         comma.
13198         Reported by Gregory Giannoni.
13200 2002-04-22  Akim Demaille  <akim@epita.fr>
13202         * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
13203         Fixes false failures on Darwin.
13205 2002-04-21  Paul Eggert  <eggert@twinsun.com>
13207         * TODO, bin/autoupdate.in, doc/autoconf.texi,
13208         lib/autoconf/general.m4, lib/autoconf/libs.m4,
13209         lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
13210         tests/tools.at: Minor spelling and grammar fixes.
13212 2002-04-20  Paul Eggert  <eggert@twinsun.com>
13214         * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
13215         ZSH_VERSION fixes.  Bug reported by Raja R Harinath.
13216         * lib/autotest/general.m4 (AT_INIT): Likewise.
13217         * tests/atgeneral.m4 (AT_INIT): Likewise.
13219 2002-04-19  Paul Eggert  <eggert@twinsun.com>
13221         * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
13222         doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
13223         lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
13224         lib/autoconf/functions.m4, lib/autoconf/general.m4,
13225         lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
13226         lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
13227         tests/atspecific.m4, tests/semantics.at, tests/torture.at:
13228         Minor spelling and grammar fixes.
13230         * doc/autoconf.texi: Follow the outline suggested in the GNU
13231         Sample Texts sections of the Texinfo 4.2 manual.  Most
13232         importantly, this makes sure that the copyright notices appear in
13233         all output formats.  You probably need Texinfo 4.2 to generate
13234         the manual now.
13236         Fix some bugs when using "$@" when there might be zero positional
13237         arguments in cases where this matters.
13239         * bin/autoconf.as: Rewrite so that the problem does not come up.
13240         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
13241         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
13242         * lib/autotest/general.m4 (AT_INIT): Likewise.
13244         * bin/autoheader.in: Use 'case' statement to work around problem.
13245         * bin/auto4mte.in: Likewise.
13246         * bin/autoreconf.in: Likewise.
13247         * bin/autoscan.in: Likewise.
13248         * bin/autoupdate.in: Likewise.
13249         * bin/ifnames.in: Likewise.
13251         * doc/autoconf.texi (Shell Substitutions): Document the problem.
13253         * lib/autotest/general.m4 (AT_INIT):
13254         Use Zsh alias to work around problem.
13255         * tests/atgeneral.m4 (AT_INIT): Likewise.
13257         * tests/c.at: We can't have zero arguments, so remove workaround
13258         that is not portable to Zsh.
13260 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
13262         * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
13263         from aclocal.m4 too.
13265 2002-04-12  Akim Demaille  <akim@epita.fr>
13267         * tests/wrappl.as: New, M4sh precursor of wrappl.in.
13269 2002-04-10  Akim Demaille  <akim@epita.fr>
13271         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
13272         workaround for ${1+"$@"}.
13273         * doc/autoconf.texi (Shell Substitutions): Explain it.
13274         From Oliver Kiddle and Peter Stephenson.
13276         Have M4sh perform minimal shell sanitizing.
13278         * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
13279         part into...
13280         (_AS_PREPARE): this new macro.
13281         (AS_PREPARE): New.
13282         (AS_INIT): Invoke AS_SHELL_SANITIZE.
13283         * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
13285         Adjust Autoconf and Autotest.
13287         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
13288         AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
13289         * lib/autotest/general.m4 (AT_INIT): Likewise.
13290         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
13291         Invoke _AS_PREPARE (not AS_PREPARE) in addition to
13292         AS_SHELL_SANITIZE.
13294         Use this M4sh to generate Autoconf's shell scripts.
13296         * tests/wrapsh.as: New, precursor of wrapsh.in.
13297         * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
13298         on Autotest and M4sh.
13299         ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
13300         (wrapsh.in): New target.
13301         * bin/autoconf.as: New, precursor of autoconf.in.
13302         (autoconf.in): New target.
13304 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
13306         * doc/autoconf.texi (Limitations of Make): Mention the issue
13307         with indented comments in rules.
13309 2002-04-09  Andreas Schwab  <schwab@suse.de>
13311         * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
13312         ac_top_builddir when setting ac_abs_top_builddir.
13314 2002-04-06  Kevin Ryde  <user42@zip.com.au>
13316         * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
13317         (Portable Shell): Cross reference to Systemology.
13319 2002-04-05  Akim Demaille  <akim@epita.fr>
13321         * bin/autoreconf.in (autoreconf): Be sure to accumulate the
13322         directories when descending in a SUBDIRS.
13323         Reported by Ezra Peisach.
13325 2002-04-04  Andreas Schwab  <schwab@suse.de>
13327         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
13328         contains no literal separators.
13330 2002-04-03  Akim Demaille  <akim@epita.fr>
13332         * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
13333         (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
13334         Use dnl, not the KILL diversion.
13335         Extracted from...
13336         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
13337         (AC_CONFIG_LINKS): here.
13338         Adjust.
13339         Don't use the KILL diversion, as it kills spurious output, which
13340         results in failures being hidden.
13341         Use m4_defn where appropriate.
13342         (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
13343         after the second argument.
13344         Use m4_defn.
13345         * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
13346         syntax, as it is provided by M4sugar.
13347         * tests/torture.at (Multiple AC_CONFIG_FILES): New.
13349 2002-04-03  Andreas Schwab  <schwab@suse.de>
13351         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
13352         expanded if $# <= 2.
13354         * bin/autoreconf.in (autoreconf): Run automake after rerunning
13355         aclocal.
13357 2002-04-03  Akim Demaille  <akim@epita.fr>
13359         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
13360         (_AC_COMPILER_EXEEXT_REJECT): New.
13361         Also recognize *.bb and *.bbg as compilation byproducts.
13362         (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
13363         (_AC_COMPILER_OBJEXT): Use them.
13364         Fixes Debian #138666.
13366 2002-04-02  Peter Eisentraut  <peter_e@gmx.net>
13368         Integrate AC_PROG_CC_STDC into AC_PROG_CC.
13370         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
13371         AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
13372         (AC_PROG_CC): Call _AC_PROG_CC_STDC.
13373         (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
13374         (AC_C_CONST): Same.
13375         (AC_C_INLINE): Same.
13376         (AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
13377         * doc/autoconf.texi, NEWS: Document.
13378         * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
13379         AC_C_CROSS.
13381 2002-04-02  Akim Demaille  <akim@epita.fr>
13383         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
13384         _AS_MKDIR_P_PREPARE.
13386 2002-03-28  Kevin Ryde  <user42@zip.com.au>
13388         * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
13389         to avoid versions of HP C which don't allow that.
13391 2002-03-27  Paul Eggert  <eggert@twinsun.com>
13393         * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
13394         (AS_SHELL_SANITIZE): Invoke it.
13395         (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
13397 2002-03-26  Akim Demaille  <akim@epita.fr>
13399         * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
13401 2002-03-26  Akim Demaille  <akim@epita.fr>
13403         * doc/autoconf.texi (Introduction): The GNATS base moved.
13405 2002-03-25  Paul Eggert  <eggert@twinsun.com>
13407         * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
13408         as POSIX requires, as it doesn't work with Zsh.
13409         * doc/autoconf.texi (Assignments): Document the problem.
13411 2002-03-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
13413         * doc/autoconf.texi (Limitations of Make): Mention more issue
13414         about VPATH, overriding of macros in sub-makes, and handling of
13415         SHELL.
13417 2002-03-21  Paul Eggert  <eggert@twinsun.com>
13419         * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
13420         problem with here-document buffer boundaries.
13422         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
13423         when reinvoking the shell, to work around problems with installers
13424         who put strange things like "cd" commands in their environments.
13426 2002-03-19  Akim Demaille  <akim@epita.fr>
13428         * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
13429         From Aaron Ucko.
13431 2002-03-19  Akim Demaille  <akim@epita.fr>
13433         * bin/autoscan.in (scan_file): Specify the location in `&used'
13434         invocations.
13435         From Nicolas Joly.
13437 2002-03-19  Akim Demaille  <akim@epita.fr>
13439         * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
13440         From Nishio Futoshi.
13442 2002-03-19  Akim Demaille  <akim@epita.fr>
13444         * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
13446 2002-03-18  Paul Eggert  <eggert@twinsun.com>
13448         * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
13449         (Limitations of Usual Tools): Add mkdir section.
13451         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
13452         (AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
13453         back on AS_DIRNAME to compute prefixes otherwise; this is
13454         roughly what mkinstalldirs does.  That way, we need not have
13455         our own filename disassembler.  The old disassembler did not
13456         work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
13458         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
13459         Create at_test_all by a series of assignments,
13460         not by a single assignment of a long string.  The latter causes ksh
13461         version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
13462         presumably because of a buffer overrun.
13464 2002-03-14  Paul Eggert  <eggert@twinsun.com>
13466         * lib/autotest/general.m4 (at_times_skip):
13467         Renamed from at_times.  Now a boolean.
13468         ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
13469         says 'times: not found'.
13471 2002-03-14  Akim Demaille  <akim@epita.fr>
13473         * bin/autoreconf.in (&study_gettextize): New.
13474         (&autoreconf): Handle newest gettextize.
13475         Rerun aclocal if needed.
13476         Suggested by Andreas Schwab.
13478 2002-03-13  Akim Demaille  <akim@epita.fr>
13480         * doc/autoconf.texi (Special Shell Variables): More about IFS.
13482 2002-03-13  Akim Demaille  <akim@epita.fr>
13484         * doc/autoconf.texi (Header Portability): New.
13485         Add information about stdint.h and inttypes.h from Paul Eggert.
13487 2002-03-13  Akim Demaille  <akim@epita.fr>
13489         * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
13490         -p'.
13491         From Bob Proulx.
13493 2002-03-12  Akim Demaille  <akim@epita.fr>
13495         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
13496         m4_require.
13498 2002-03-11  Andreas Schwab  <schwab@suse.de>
13500         * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
13501         does not do it if --with-lispdir is given.
13503 2002-03-08  Akim Demaille  <akim@epita.fr>
13505         Version 2.53.
13507 2002-03-08  Akim Demaille  <akim@epita.fr>
13509         * doc/autoconf.texi (Subdirectories): Clarify that the
13510         subdirectory should exist.
13512 2002-03-08  Akim Demaille  <akim@epita.fr>
13514         * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
13516 2002-03-08  Akim Demaille  <akim@epita.fr>
13518         * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
13519         aliases the actual variables, and modifications of the former
13520         affect the latter.
13522 2002-03-08  Akim Demaille  <akim@epita.fr>
13524         * bin/autom4te.in (&handle_m4): Protect us from corrupted file
13525         because of C-c: have m4 output in tmp files, then mv them.
13527 2002-03-08  Akim Demaille  <akim@epita.fr>
13529         * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
13530         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
13531         * bin/ifnames.in: Copyright update.
13533 2002-03-08  Akim Demaille  <akim@epita.fr>
13535         * doc/autoconf.texi (Invoking autom4te): New.
13537 2002-03-05  Akim Demaille  <akim@epita.fr>
13539         * doc/autoconf.texi (Specifying Names): Clarification suggested by
13540         Kevin Ryde.
13542 2002-03-05  Akim Demaille  <akim@epita.fr>
13544         Version 2.52i.
13546 2002-03-04  Akim Demaille  <akim@epita.fr>
13548         * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
13549         * lib/autoconf/general.m4 (AC_INIT): More informative error
13550         message for LIBOBJ.
13552 2002-03-04  Akim Demaille  <akim@epita.fr>
13554         * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
13555         parallel builds.
13557 2002-03-04  Akim Demaille  <akim@epita.fr>
13559         * doc/autoconf.texi (Transforming Names): Equality between target
13560         and host is irrelevant.
13561         (Specifying Names, Canonicalizing): Remove all references to the
13562         backward compatibility hooks.  Rather, collect them all into...
13563         (Hosts and Cross-Compilation): this new section.
13564         * doc/install.texi (System Type): Ditto.
13565         * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
13566         that `--host' implies cross-compilation.
13568 2002-03-04  Akim Demaille  <akim@epita.fr>
13570         * doc/autoconf.texi (Evaluation Macros): New.
13571         * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
13572         useless.
13573         (_m4_foreach): Define the variant with immediate evaluation so
13574         that it contains exactly the items, not an expression which
13575         evaluation is the current item.
13576         (m4_re_string, m4_re_word): Don't over quote them.
13578 2002-03-04  Akim Demaille  <akim@epita.fr>
13580         Instead of having stacking `shift's evaluated at the end, let
13581         `foreach' loops immediately evaluate them.
13583         * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
13584         $*.  This is the n-th time I change my mind, but hopefully this is
13585         the last...
13586         (m4_lquote): New.
13587         (m4_text_wrap): Use m4_foreach, which is finally correct _and_
13588         efficient.
13589         (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
13590         it was only a hack for m4_text_wrap.
13591         (m4_car2): Remove, replaced by...
13592         (m4_cdr): New.
13593         (_m4_foreach): Adjust.
13594         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
13595         m4_bpatsubst for clarification.
13597 2002-03-04  Akim Demaille  <akim@epita.fr>
13599         * doc/autoconf.texi (Changequote is Evil): New.
13601 2002-03-03  Kevin Ryde  <user42@zip.com.au>
13603         * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
13604         on old systems like SunOS.
13606 2002-03-01  Peter Eisentraut  <peter_e@gmx.net>
13608         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
13609         lib/autoconf/functions.m4, lib/autoconf/general.m4,
13610         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
13611         lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
13612         of messages.
13614 2002-02-28  Akim Demaille  <akim@epita.fr>
13616         * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
13617         message to be sent.
13619 2002-02-28  Kevin Ryde  <user42@zip.com.au>
13621         * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
13623 2002-02-25  Akim Demaille  <akim@epita.fr>
13625         * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
13626         From Akinori Musha.
13628 2002-02-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
13630         * lib/Autom4te/XFile.pm (getline, getlines): New functions,
13631         translate \r\n to \n.
13633 2002-02-07  Akim Demaille  <akim@epita.fr>
13635         Version 2.52h.
13637 2002-02-07  Akim Demaille  <akim@epita.fr>
13639         Fix Autoconf PR/209.
13640         Also reported by Frank Denis.
13642         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
13644 2002-02-07  Akim Demaille  <akim@epita.fr>
13646         Fix Autoconf PR/207:
13647         AC_PREFIX_PROGRAM fails with dashed program names
13649         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
13650         variable when looking for the prefix program.
13651         Now it also works for shell variables.
13653 2002-02-07  Akim Demaille  <akim@epita.fr>
13655         * doc/autoconf.texi (Limitations of Builtins): More about
13656         case/esac.
13658 2002-02-06  Akim Demaille  <akim@epita.fr>
13660         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
13661         case/esac, some shells don't support it.
13662         Reported by Zack Weinberg.
13663         * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
13665 2002-02-06  Akim Demaille  <akim@epita.fr>
13667         * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
13668         sure not to introduce newlines in at_groups.
13669         * lib/autotest/Makefile.am (autotest.m4f): Typo.
13671 2002-02-06  Akim Demaille  <akim@epita.fr>
13673         * tests/torture.at (Configuring subdirectories): Skip if aclocal
13674         is not available.
13676 2002-02-05  Paul Eggert  <eggert@twinsun.com>
13678         * doc/autoconf.texi (Specific Compiler Characteristics):
13679         Describe HP-UX cc bug workaround more accurately.
13680         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
13681         not unsigned long.
13682         * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
13683         cross-compilers, too.  This undoes some of the most recent change
13684         to this file.
13686 2002-02-05  Akim Demaille  <akim@epita.fr>
13688         * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
13689         to make sure they are up to date when `check' is run.
13691 2002-02-05  Akim Demaille  <akim@epita.fr>
13693         * doc/autoconf.texi (Making testsuite Scripts): Document
13694         package.m4.
13696 2002-02-05  Akim Demaille  <akim@epita.fr>
13698         * lib/freeze.mk: New.
13700 2002-02-05  Akim Demaille  <akim@epita.fr>
13702         Implement `autom4te --freeze'.
13704         * bin/autom4te.in (&freeze): New.
13705         * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
13706         * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
13708 2002-02-05  Akim Demaille  <akim@epita.fr>
13710         * bin/autom4te.in (&parse_args): Implement `frozen files are
13711         optional are the sum of the previous files on the command line'.
13712         Also, pass `--reload-state=' on them, so...
13713         (handle_m4): don't.
13714         * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
13715         (M4sh): Rely on M4sugar.
13716         (Autotest, M4sh, M4sugar): Use frozen files.
13718 2002-01-31  Akim Demaille  <akim@epita.fr>
13720         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
13721         * doc/autoconf.texi (Initializing configure): Adjust.
13723 2002-01-30  Akim Demaille  <akim@epita.fr>
13725         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
13726         alphanumeric to `-' instead of `_'.
13728 2002-01-30  Akim Demaille  <akim@epita.fr>
13730         * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
13731         for plain code, the other for cross-compilation code.  The latter
13732         is now run with GCC only.
13733         * doc/autoconf.texi (Compilers and Preprocessors): New.
13735 2002-01-30  Akim Demaille  <akim@epita.fr>
13737         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
13738         values.
13739         * doc/autoconf.texi (Initializing configure): Explain how to
13740         change AC_INIT default values.
13742 2002-01-29  Akim Demaille  <akim@epita.fr>
13744         * tests/torture.at (Configuring subdirectories): Use configure.in,
13745         so that aclocal 1.4 works.
13746         Reported by Alexandre Duret-Lutz and Larry Schmitt.
13748 2002-01-28  Akim Demaille  <akim@epita.fr>
13750         * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
13751         needs an argument.
13753 2002-01-28  Akim Demaille  <akim@epita.fr>
13755         * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
13756         AUTOTEST_PATH *after* it was set.
13757         Don't put `.' in the PATH: the user should be precise and `./' if
13758         needed.  In addition, given that the test suite does some `cd', if
13759         `.' is in the path, the `tested programs' sections will report
13760         programs found in the test suite's directory, while during the
13761         tests (performed in their own directory), these programs are no
13762         longer visible.  In other words, the results is confusing and
13763         useless.
13764         * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
13766 2002-01-24  Akim Demaille  <akim@epita.fr>
13768         Version 2.52g.
13770 2002-01-24  Akim Demaille  <akim@epita.fr>
13772         * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
13773         * doc/autoconf.texi: Finally add Akim as an author.
13775 2002-01-24  Akim Demaille  <akim@epita.fr>
13777         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
13778         (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
13779         Bourne. Use /bin/sh.
13780         From Andreas Buening.
13782 2002-01-24  Akim Demaille  <akim@epita.fr>
13784         * config/config.guess, config/config.sub, config/texinfo.tex:
13785         Update from masters.
13787 2002-01-24  Akim Demaille  <akim@epita.fr>
13789         * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
13790         * config/auxdir.m4, config/cond.m4, config/depend.m4,
13791         * config/init.m4, config/install-sh.m4, config/lispdir.m4,
13792         * config/missing.m4, config/sanity.m4, config/select.m4,
13793         * config/strip.m4: Remove, to ease sync'ing with any version of
13794         Automake.
13796 2002-01-24  Akim Demaille  <akim@epita.fr>
13798         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
13799         (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
13800         Reported by Geir Ove Myhr.
13802 2002-01-21  Akim Demaille  <akim@epita.fr>
13804         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
13806 2002-01-21  Akim Demaille  <akim@epita.fr>
13808         * lib/Autom4te/General.pm (getopt): Use a more GNUish error
13809         message on invalid options.
13810         * bin/autom4te.in (parse_args): Don't use
13811         Autoconf::General::getopt with non valid options.
13813 2002-01-17  Jim Meyering  <meyering@lucent.com>
13815         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
13816         $ac_cv_exeext so we don't use an old, invalid, cached value.
13818 2002-01-11  Akim Demaille  <akim@epita.fr>
13820         * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
13821         Meyering.
13822         * doc/autoconf.texi (Function Portability): Document the strnlen
13823         limitation.
13824         (Particular Functions): Document AC_FUNC_STRNLEN.
13825         * lib/autoscan/functions: Adjust.
13827 2002-01-06  Akim Demaille  <akim@epita.fr>
13829         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
13830         package.m4, since is really depends upon configure.ac, not
13831         configure.
13832         * doc/autoconf.texi (testsuite Scripts): Adjust.
13833         * tests/Makefile.am (package.m4): New.
13834         EXTRA_DIST it since its a source.
13836 2002-01-06  Akim Demaille  <akim@epita.fr>
13838         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
13839         of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
13840         and PACKAGE_BUGREPORT from here...
13841         (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
13842         arguments.
13843         (_AC_INIT_PREPARE): AC_DEFINE these symbols.
13844         * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
13845         (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
13846         * tests/tools.at (autoheader): Adjust.
13847         * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
13849 2002-01-06  Akim Demaille  <akim@epita.fr>
13851         * bin/autoscan.in (scan_file): Use `&used'.
13853 2002-01-03  Akim Demaille  <akim@epita.fr>
13855         * doc/autoconf.texi (Output): Improved wording regarding use of
13856         AC_OUTPUT.
13857         From Olly Betts.
13859 2001-12-18  Kevin Ryde  <user42@zip.com.au>
13861         * doc/autoconf.texi (Function Portability): Add notes on sscanf
13862         sometimes needing writable input.
13864 2001-12-17  Jim Meyering  <meyering@lucent.com>
13866         * doc/autoconf.texi (New Macros): Tweak wording.
13868 2001-12-14  Akim Demaille  <akim@epita.fr>
13870         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
13871         trailing files, don't apply `-rf' to files which might not be
13872         created by configure (core, core.*, and *.core), but just `rm -f'.
13873         Suggested by Jonathan Kamens.
13875 2001-12-14  Aaron M. Ucko  <amu@alum.mit.edu>
13877         * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
13879 2001-12-14  Akim Demaille  <akim@epita.fr>
13881         * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
13883 2001-12-13  Peter Eisentraut  <peter_e@gmx.net>
13885         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
13886         abs_builddir, top_buildpath to abs_top_builddir, srcpath to
13887         abs_srcdir, top_srcpath to abs_top_srcdir.
13888         (_AC_OUTPUT_FILES): Adjust.
13889         * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
13890         * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
13891         * tests/wrappl.in, tests/wrapsh.in: Adjust.
13893 2001-12-12  Steven G. Johnson  <stevenj@alum.mit.edu>
13895         * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
13896         C/Fortran linking on HP/UX, by extracting the Fortran library
13897         search path from the LPATH line in the $F77 -v output.
13899 2001-12-12  Kevin Ryde  <user42@zip.com.au>
13901         * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
13902         forbidden file descriptors table.
13904 2001-11-26  Akim Demaille  <akim@epita.fr>
13906         * bin/autoscan.in (%c_keywords): Build it at top level.
13907         Map to 1 in order to simplify its uses.
13909 2001-11-26  Akim Demaille  <akim@epita.fr>
13911         * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
13912         Remove $filepath, useless.
13913         (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
13914         variables, they are really part of the tokens.
13915         Split the input line on spaces and then look for tokens.
13916         Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
13917         because of `lex$U.$(OBJEXT)'.
13918         (&scan_files): Use "@list" instead of join.
13919         * doc/Makefile.am (CLEANFILES): Add *.fns.
13921 2001-11-26  Akim Demaille  <akim@epita.fr>
13923         * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
13924         Remove, replaced by...
13925         * tests/wrappl.in: Be common for all the Perl executables.
13926         In particular autoscan and autoheader want -I.
13927         * configure.ac: Adjust.
13928         * lib/autoscan/headers: errno.h is portable.
13930 2001-11-26  Akim Demaille  <akim@epita.fr>
13932         * bin/autoscan.in (used): New.
13933         Use it.
13935 2001-11-26  Akim Demaille  <akim@epita.fr>
13937         * bin/autoscan.in (&scan_c_file): Better parsing of CPP
13938         directives.
13939         (&scan_sh_file): Remove a duplicate pattern.
13940         (&check_configure_ac): Use long options.
13941         * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
13943 2001-11-26  Akim Demaille  <akim@epita.fr>
13945         * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
13946         Before, having a line containing the opening of a multi line
13947         comment made the whole line be ignored.
13949 2001-11-26  Akim Demaille  <akim@epita.fr>
13951         * doc/autoconf.texi (Using an Autotest Test Suite): New.
13952         (testsuite Scripts): Be one of its subsection.
13953         (Autotest Logs): New.
13955 2001-11-26  Akim Demaille  <akim@epita.fr>
13957         Test groups are now run two directories deeper.
13959         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
13960         top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
13961         at_top_builddir.
13962         * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
13963         top_srcdir, builddir and top_builddir.
13964         Use `at_*dir' relatively to the directory containing the
13965         suite, use `*dir' when relatively to the current group dir.
13967 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
13969         * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
13970         lib/autoconf/functions.m4, lib/autoconf/headers.m4,
13971         tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
13972         spelling errors.
13974 2001-11-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
13976         * doc/autoconf.texi (Using System Type): Add an example of `case
13977         $host' usage so people quit using `case $target' everywhere.
13979 2001-11-22  Akim Demaille  <akim@epita.fr>
13981         * doc/autoconf.texi (Installation Directory Variables): Englishoes
13982         spotted by Jim Meyering.
13984 2001-11-16  Paul Eggert  <eggert@twinsun.com>
13986         This patch implements a `long double' suggestion by Oliver Kiddle.
13988         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
13989         static, to catch errors if the value isn't known at compile-time
13990         and the compiler supports dynamic arrays.  Change its name from
13991         `_array_' to `test_array' to avoid potential name clashes.
13992         (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
13993         test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
13994         better than double.  Catch a bug in GCC 2.95.2 x86.
13995         * doc/autoconf.texi (C Compiler): Document the above.
13996         * NEWS: Likewise.
13998 2001-11-13  Akim Demaille  <akim@epita.fr>
14000         * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
14001         hand.
14002         * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
14004 2001-11-13  Akim Demaille  <akim@epita.fr>
14006         * lib/autotest/general.m4 (AT_INIT): After having run the test
14007         group, go back to the initial directory, not to at_suite_dir.
14009 2001-11-13  Akim Demaille  <akim@epita.fr>
14011         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
14012         (AT_DATA_AUTOCONF):  Also protect @&t@ from autom4te.
14013         (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
14014         option.
14015         (AT_CHECK_CONFIGURE): Use absolute paths.
14016         (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
14017         The problem is still the old one: there is no means in M4 (that I
14018         know about) to create a defining macro, because there is no means
14019         to create `$1' etc., therefore, the defining macro ``swallows''
14020         all the arguments meant to the defined macro.
14022 2001-11-13  Akim Demaille  <akim@epita.fr>
14024         * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
14025         (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
14026         configure.ac.
14027         * tests/aclocal.m4: Remove, as it is no longer used.
14029 2001-11-13  Akim Demaille  <akim@epita.fr>
14031         * lib/autotest/general.m4: Change `tests?' into `groups?' in
14032         variable names when referring to a single test group, or to
14033         `suite' when referring to the whole test suite.
14034         `at_last_test' is removed: m4 compute at_format itself.
14035         (at_stdout, at_stder1, at_stderr): New variables.
14036         (AT_CHECK): Use them.
14038 2001-11-13  Akim Demaille  <akim@epita.fr>
14040         * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
14041         in PATH.
14042         Create `testsuite.dir/003/run' instead of `testsuite.003'.
14043         Do it as soon as a test fails, don't wait till the end of the test
14044         suite.
14045         Don't remove $as_me.[0-9]*, since these files no longer exist.
14047 2001-11-13  Akim Demaille  <akim@epita.fr>
14049         * tests/tools.at: Use absolute paths, since we are no longer run
14050         in place.
14052 2001-11-13  Akim Demaille  <akim@epita.fr>
14054         Now that tests are running in their own private dir, there is no
14055         need to list the files to remove at the end of tests groups.
14057         * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
14058         (AT_data_files, at_data_files): Remove.
14059         (AT_CLEANUP, AT_DATA): Simplify.
14060         (AT_INIT): Adjust.
14061         Remove the group dir if !debug && !failed.
14062         * tests/atspecific.m4: Adjust.
14064 2001-11-13  Akim Demaille  <akim@epita.fr>
14066         Start a new layout for Autotest: `testsuite' creates
14067         `testsuite.dir' in which the at-check-line etc. files are to be
14068         found, and `testsuite.dir/003' where the test group 3 is run.
14070         * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
14071         at_check_line_file, at_format, at_test_normalized, at_group_dir
14072         are new variables.
14073         Create the directories.
14074         Use absolute paths for at- files.
14075         (AT_CHECK): Adjust.
14077 2001-11-11  Michael Matz  <matz@kde.org>
14079         * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
14080         (m4_car2): New.
14081         (m4_car): Properly quote arguments.
14083 2001-11-13  Akim Demaille  <akim@epita.fr>
14085         * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
14086         with stricter rules on LIBOBJS.
14088 2001-11-12  Paul Eggert  <eggert@twinsun.com>
14090         * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
14091         * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
14092         __PROTOTYPES too.
14094 2001-11-12  Akim Demaille  <akim@epita.fr>
14096         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
14098 2001-11-12  Akim Demaille  <akim@epita.fr>
14100         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
14101         * lib/autoconf/functions.m4, lib/autoconf/general.m4,
14102         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
14103         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
14104         * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
14105         specify to what the macro should be defined (typically to 1).
14107 2001-11-12  Akim Demaille  <akim@epita.fr>
14109         * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
14110         From Jim Meyering.
14112 2001-11-12  Akim Demaille  <akim@epita.fr>
14114         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
14115         AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
14116         definition used by Automake where LEX is +/- "${missing} lex" and
14117         `missing' itself contains variables.
14119 2001-11-12  Akim Demaille  <akim@epita.fr>
14121         * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
14122         Now that M4sh pushes BODY, the comments were output at the end of
14123         the test suites.
14125 2001-11-08  Akim Demaille  <akim@epita.fr>
14127         * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
14128         that we can trace macros from aclocal.m4.
14129         Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
14130         obsoleted, and redirect to the former anyway.
14131         Reported by Ralf Corsepius.
14133 2001-11-08  Akim Demaille  <akim@epita.fr>
14135         * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
14136         processed only if present.
14137         * tests/torture.at (Configuring subdirectories): Use autoreconf
14138         instead of successive calls to autoconf.
14139         Add a nonexistent subdirectory to exercise the patch above.
14140         Reported by Ralf Corsepius.
14142 2001-11-08  Kevin Ryde  <user42@zip.com.au>
14144         * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
14145         doesn't accept .S files.
14147 2001-11-07  Akim Demaille  <akim@epita.fr>
14149         * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
14150         * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
14151         (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
14152         * bin/autom4te.in (warn_forbidden): New.
14153         (handle_output): Use it.
14154         Read m4_pattern_forbid with messages.
14156 2001-11-05  Akim Demaille  <akim@epita.fr>
14158         * bin/autom4te.in (--normalize): Remove.
14159         * lib/autom4te.in: Adjust.
14161 2001-11-05  Akim Demaille  <akim@epita.fr>
14163         * tests/Makefile.am (testsuite): Rename this target as...
14164         ($(TESTSUITE)): this.
14165         From Nicolas Joly.
14167 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
14169         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
14170         the --prefix option, also remove it's argument.
14172 2001-11-05  Akim Demaille  <akim@epita.fr>
14174         * doc/autoconf.texi (testsuite Invocation): Update.
14175         (Writing testsuite.at): Update.
14177 2001-11-03  Akim Demaille  <akim@epita.fr>
14179         * doc/autoconf.texi: s/@code/@command/ where appropriate.
14181 2001-11-03  Akim Demaille  <akim@epita.fr>
14183         * lib/Autom4te/General.pm: (&catfile, &canonfile)
14184         (&file_name_is_absolute): New, wrappers around routines from
14185         File::Spec.
14186         Use and export them.
14187         (&find_configure_ac): Optionally take a directory where to look at.
14188         * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
14189         the arguments.
14190         Default @ARGV to `.', not find_configure_ac.
14191         (&autoreconf): Argument is a directory.
14192         Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
14193         * doc/autoconf.texi (autoreconf Invocation): Update.
14195 2001-11-03  Akim Demaille  <akim@epita.fr>
14197         * lib/Autom4te/General.pm (@export_vars, @export_subs)
14198         (@export_forward_subs): New.
14199         Add basename, dirname, and fileparse.
14200         (@EXPORT): Adjust.
14201         * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
14202         Don't look for aclocal flags if we already know aclocal is not
14203         used.
14204         Move aclocal.m4t only if it exists.
14205         Reported by Ezra Peisach.
14207 2001-11-03  Akim Demaille  <akim@epita.fr>
14209         * bin/autoreconf.in (&parse_args): Work only on the configure.ac
14210         passed on command line, defaulting to ./configure.ac if present.
14211         (&maybe_autoreconf, File::Find): Remove, unused.
14212         (&autoreconf): If autoconf is not used, don't try to trace.
14214 2001-11-02  Akim Demaille  <akim@epita.fr>
14216         * configure.ac: Bump to 2.52g.
14218 2001-11-02  Akim Demaille  <akim@epita.fr>
14220         Version 2.52f.
14222 2001-11-02  Akim Demaille  <akim@epita.fr>
14224         * config/config.guess, config/config.sub, doc/standards.texi:
14225         * config/lispdir.m4: Update from masters.
14226         * configure.ac: Bump to 2.52f.
14228 2001-11-02  Akim Demaille  <akim@epita.fr>
14230         * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
14231         Don't run aclocal when aclocal.m4 is not from aclocal.
14232         From Ezra Peisach.
14233         Don't run libtoolize and gettextize if --install is not given.
14235 2001-11-01  Paul Eggert  <eggert@twinsun.com>
14237         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
14238         be invoked before _AS_LINENO_PREPARE.
14239         (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
14240         than character ranges.
14242         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
14243         invoking AS_BASENAME.  Set the locale variables to 'C' if
14244         possible, as POSIX requires this to get the traditional
14245         behavior.
14246         * doc/autoconf.texi (Special Shell Variables): Describe the above.
14248 2001-10-31  Paul Eggert  <eggert@twinsun.com>
14250         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
14251         with {}, as that triggers a bug in Bash 2.05.
14253         (_AS_LINENO_PREPARE): Use Sed rather than
14254         Awk.  Fix the sed prepass to work even if there are multiple
14255         instances of $LINENO on the same line.  Do not substitute for
14256         other variables like $LINENOT.  Do not check file dates; such a
14257         check is unreliable on sufficiently fast machines, and removing
14258         the check makes the code simpler and more reliable.  Check for
14259         output and chmod failures.
14261         * doc/autoconf.texi (Special Shell Variables): Document
14262         the above.
14264 2001-10-31  Akim Demaille  <akim@epita.fr>
14266         * tests/Makefile.am (atconfig): Remove this target, Automake
14267         handles it now.
14269 2001-10-31  Akim Demaille  <akim@epita.fr>
14271         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
14272         AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
14273         provided, while it is optional.
14274         * configure.ac: Adjust.
14276 2001-10-26  Paul Eggert  <eggert@twinsun.com>
14278         * NEWS, README, configure.ac, lib/Autom4te/General.pm,
14279           lib/Autom4te/Struct.pm:
14280         Require Perl 5.005_03 instead of just 5.005, as some tests fail
14281         with 5.005_02.
14283         * doc/autoconf.texi (Special Shell Variables): Document some
14284         more LINENO gotchas, particularly with respect to the Awk+Sed hack.
14286         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
14287         (_AS_LINENO_PREPARE): Use it instead of shell eval, since
14288         eval $LINENO is not portable in practice.
14290 2001-10-24  Akim Demaille  <akim@epita.fr>
14292         * lib/Autom4te/General.pm (backname): New.
14294 2001-10-24  Akim Demaille  <akim@epita.fr>
14296         * m4/: Remove, merged into...
14297         * config/: here.
14299 2001-10-23  Tim Van Holder  <tim.van.holder@pandora.be>
14301         * doc/autoconf.texi (Shellology): Mention the problems with bash
14302         2.05's use of ANSI quoting in its `set' builtin.
14304 2001-10-22  Paul Eggert  <eggert@twinsun.com>
14306         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
14307         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
14308         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
14309         POSIX decided to standardize on the int flavor of strerror_r.
14310         Always do char* test, as there's no reason not to.
14311         Assign to a char* var, to catch strerror_r that returns int*.
14313         * doc/autoconf.texi (Particular Functions):
14314         Document the above changes.  Also, document the fact that
14315         AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
14317         * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
14319 2001-10-20  Akim Demaille  <akim@epita.fr>
14321         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
14322         the executable was missing from the log.
14324 2001-10-20  Akim Demaille  <akim@epita.fr>
14326         * lib/Autom4te/General.pm (&update_file): If destination is
14327         unchanged, remove the source.
14328         (&up_to_date_p): Don't be verbose, be debug.
14329         * bin/autoreconf.in: No longer support --m4dir.
14330         (&autoreconf): Display the full path of the configure.ac we are
14331         studying.
14332         Trace it only once.
14333         Be sure to honor --force with gettextize.
14334         Always run aclocal.
14335         * doc/autoconf.texi: Adjust.
14337 2001-10-20  Akim Demaille  <akim@epita.fr>
14339         * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
14340         Remove, dead.
14341         * bin/autoreconf.in (&autoreconf): Do not run gettextize when
14342         `intl' is already present, as it refuses unless --force.
14343         (&parse_args): Use -I, --include instead of the old Autoconf
14344         options.
14345         ($localdir, $autoconf_dir): Remove.
14346         (@include): New.
14347         (&maybe_autoreconf): New, to preserve $_ for File::Find.
14349 2001-10-19  Jens Petersen  <petersen@redhat.com>
14351         * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
14352         * doc/autoconf.texi (Particular Programs): Likewise.
14354 2001-10-19  Akim Demaille  <akim@epita.fr>
14356         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
14357         file in @configure_input@.
14358         Don't mention `automatically' in addition to `generated'.
14359         * tests/torture.at (#define header templates): Adjust.
14361 2001-10-19  Akim Demaille  <akim@epita.fr>
14363         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
14364         comment, explain how to install automatic mode selection.
14365         From Russ Allbery.
14367 2001-10-19  Ezra Peisach  <epeisach@zif.mit.edu>
14369         * bin/autoreconf.in (autoreconf): Display the path to the
14370         configure.ac being studied.
14372 2001-10-18  Paul Eggert  <eggert@twinsun.com>
14374         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
14375         long, to work around a bug in the HP C compiler version HP92453-01
14376         B.11.11.23709.GP.
14378         * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
14379         (AS_BASENAME_EXPR): New macro.
14380         (AS_BASENAME_SED): Do not assume GNU sed semantics.
14381         (AS_BASENAME): Use 'basename' if that works; then try 'expr';
14382         and fall back on 'sed' only if the other two fail.  This makes
14383         AS_BASENAME act more like AS_DIRNAME.
14384         (as_me): Shell-quote the argument of AS_BASENAME, in case $0
14385         contains white space.
14386         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
14387         Use AS_DIRNAME, since I think it's now DOS-friendly.
14388         * tests/m4sh.at (DIRNAME_TEST): New arg $3.
14389         Allow "dirname //FOO" to return either / or //, as POSIX allows
14390         either behavior.
14392 2001-10-10  Akim Demaille  <akim@epita.fr>
14394         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
14395         `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
14396         From Eric Sharkey.
14398 2001-10-10  Akim Demaille  <akim@epita.fr>
14400         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
14401         m4_define, since...
14402         (_AS_ECHO_N): AS_REQUIREs it.
14404 2001-10-10  Akim Demaille  <akim@epita.fr>
14406         * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
14407         (AC_INCLUDES_DEFAULT): Move to...
14408         * lib/autoconf/headers.m4: here.
14409         * lib/autoconf/types.m4: Comment changes.
14410         * doc/autoconf.texi: Specify where the default includes are used
14411         in the macro prototypes.
14413 2001-10-09  Akim Demaille  <akim@epita.fr>
14415         * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
14416         transition code.
14418 2001-10-08  Akim Demaille  <akim@epita.fr>
14420         * bin/autoreconf.in (&autoreconf): Remove debugging code.
14421         (&parse_args): Pass verbosity/debugging options to subtools when
14422         --debug, not when --verbose.
14423         * lib/autom4te.in (Autoreconf-preselections): New.
14424         (Autoconf): Use it.
14426 2001-10-08  Akim Demaille  <akim@epita.fr>
14428         * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
14430 2001-10-08  Akim Demaille  <akim@epita.fr>
14432         * doc/autoconf.texi (autoreconf Invocation): Adjust.
14433         * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
14435 2001-10-08  Akim Demaille  <akim@epita.fr>
14437         * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
14438         (Syntax of the shell scripts): Don't.
14439         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
14440         bother with $force since...
14441         * lib/Autom4te/General.pm: does.
14443 2001-10-08  Akim Demaille  <akim@epita.fr>
14445         * bin/autoreconf.in: Rewrite in Perl.
14446         * configure.ac: Adjust.
14447         * lib/Autom4te/General.pm (&up_to_date_p): New.
14448         * bin/autom4te.in (&up_to_date_p): Use it.
14449         Rename as...
14450         (&up_to_date): this.
14452 2001-10-08  Akim Demaille  <akim@epita.fr>
14454         * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
14455         (m4_list_cmp): Use $0 to reinvoke yourself.
14456         (m4_patsubsts): New.
14457         (m4_strip, m4_version_unletter): Use it.
14458         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
14460 2001-10-08  Akim Demaille  <akim@epita.fr>
14462         * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
14463         * lib/autoconf/libs.m4, lib/autoconf/status.m4,
14464         * lib/autoconf/types.m4, lib/autotest/general.m4,
14465         * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
14466         * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
14467         m4_bregexp, m4_bpatsubst, and m4_bmatch.
14468         * doc/autoconf.texi (Redefined M4 Macros): Adjust.
14470 2001-10-08  Akim Demaille  <akim@epita.fr>
14472         * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
14474 2001-10-08  Akim Demaille  <akim@epita.fr>
14476         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
14477         * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
14478         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
14479         * tests/tools.at, tests/m4sh.at: Use it.
14480         * tests/m4sh.at: Don't rely on Autoconf macros.
14481         (DIRNAME_TEST): Also exercise the expr variant.
14482         * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
14483         preferred M4sugar extension is now `.4s'.
14484         * tests/README: Remove.
14486 2001-10-08  Akim Demaille  <akim@epita.fr>
14488         * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
14489         (m4_provide_if): this.
14490         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
14491         * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
14492         (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
14493         M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
14495 2001-10-08  Akim Demaille  <akim@epita.fr>
14497         Use `add-log-current-defun-function' for ChangeLog creation.
14498         Suggested by Tom Tromey.
14500         * lib/emacs/autotest-mode.el (autotest-mode-map): New.
14501         (autotest-mode): Adjust.
14502         * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
14503         'comment-region onto `C-c ;'.
14504         Comments are `#', not `dnl'.
14505         (autoconf-current-defun): New.
14506         (autoconf-font-lock-keywords): Recognize `m4_defun'.
14508 2001-10-08  Akim Demaille  <akim@epita.fr>
14510         * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
14511         * lib/m4sugar/m4sh.m4: here.
14512         (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
14513         * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
14514         (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
14515         include handle the m4_pattern_*, no longer push the
14516         BODY diversion nor set the /bin/sh line, AS_INIT does it.
14517         * lib/autotest/general.m4 (AT_INIT): Likewise.
14518         * tests/base.at: Adjust the tests to use AS_INIT.
14519         * tests/tools.at (AT_DATA_FORBIDDEN): New.
14520         (autoconf: forbidden tokens): Adjust to work on M4sh instead of
14521         Autoconf.
14523 2001-10-07  Paul Eggert  <eggert@twinsun.com>
14525         * doc/autoconf.texi (config.status Invocation):
14526         CONFIG_SHELL defaults to a shell that supports LINENO if available.
14528         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
14529         shell does not support LINENO, and if CONFIG_SHELL is unset or
14530         empty, and if we can find a shell that does support LINENO,
14531         then set CONFIG_SHELL to that shell and then re-execute
14532         ourselves with CONFIG_SHELL.
14534 2001-10-05  Paul Eggert  <eggert@twinsun.com>
14536         * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
14537         doesn't exist.  Remove *.tmp, as a .tmp file is created during the
14538         build of $(TESTSUITE).
14540 2001-10-05  Akim Demaille  <akim@epita.fr>
14542         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
14543         iff we are a bareword.
14544         Reported by Raja R Harinath.
14546 2001-10-05  Akim Demaille  <akim@epita.fr>
14548         * tests/m4sh.at (LINENO): New.
14549         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
14550         PATH_SEPARATOR before using it.
14551         Fix the absolute path case/esac pattern.
14552         Provide $0 as fallback for as_myself.
14553         Reported by Raja R Harinath.
14555 2001-10-05  Akim Demaille  <akim@epita.fr>
14557         * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
14558         * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
14560 2001-10-05  Akim Demaille  <akim@epita.fr>
14562         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
14563         (AS_SHELL_SANITIZE): here.  Use it.
14564         (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
14565         From Paul Eggert.
14567 2001-10-04  Akim Demaille  <akim@epita.fr>
14569         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
14570         combination of Awk and sed to replace $LINENO.
14572 2001-10-02  Paul Eggert  <eggert@twinsun.com>
14574         * doc/autoconf.texi (Limitations of Builtins): You can't use
14575         "source"; it's not portable.  Remove confusing and
14576         somewhat-incorrect example involving "." and "/".
14578         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
14579         compatibility with POSIX shells.
14581 2001-10-02  Akim Demaille  <akim@epita.fr>
14583         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
14584         instead of exec'ing to preserve $0 and $@.
14586 2001-10-01  Akim Demaille  <akim@epita.fr>
14588         * tests/testsuite (AT_INIT) <at_pass_list>: New.
14589         Don't run twice the same test.
14591 2001-10-01  Akim Demaille  <akim@epita.fr>
14593         * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
14594         No longer output the list of tests.
14595         <--list>: New option.
14596         <--full-help>: Remove.
14597         Complete the short/long options duality.
14598         Various small adjustments.
14600 2001-10-01  Akim Demaille  <akim@epita.fr>
14602         * doc/autoconf.texi: Use @kbd for user input.
14603         Always use `$' as shell prompt.
14605 2001-09-30  Paul Eggert  <eggert@twinsun.com>
14607         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
14608         Don't use nested parenthesization.  This patch was originally
14609         suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
14610         but somehow it didn't get incorporated then.
14611         * doc/autoconf.texi (Limitations of Usual Tools):
14612         Clarify remark about sed and nested parenthesization.
14614         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
14615         Report an error if the size cannot be determined even though
14616         the type exists.
14617         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
14618         Check for `expr' arithmetic overflow, and for compilation failure,
14619         and invoke a new argument $4 if either is discovered.
14620         This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
14621         (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
14623 2001-09-28  Akim Demaille  <akim@epita.fr>
14625         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
14626         * m4/lispdir.m4: New.
14627         * aclocal.m4, configure.ac: Adjust.
14629 2001-09-28  Akim Demaille  <akim@epita.fr>
14631         * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
14632         (AT_TESTED): this.
14633         (AT_INIT): More the wrapped section to where it will be expanded.
14634         Output `AT_tested' only when existing.
14635         Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
14637 2001-09-27  Akim Demaille  <akim@epita.fr>
14639         Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
14640         generates too many bug reports.
14642         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
14643         status when executing the ACTION-IF-FALSE.
14644         * tests/base.at (AC_TRY_*): Rename as...
14645         (AC_TRY_COMMAND): this.
14646         (AC_RUN_IFELSE): New.
14647         * tests/compile.at (Extensions, C keywords)
14648         (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
14649         (Broken/missing compilers, AC_PROG_CPP with warnings)
14650         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
14651         * tests/c.at (Extensions, C keywords)
14652         (Broken/missing compilers, AC_PROG_CPP with warnings)
14653         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
14654         (AC_PROG_CPP requires AC_PROG_CC): here and...
14655         * tests/fortran.at (GNU Fortran 77): there.
14656         * doc/autoconf.texi (autoconf Invocation): Fix the example:
14657         AC_TRY_RUN is about compilation, not shell commands.
14658         (Test Programs): AC_TRY_RUN works as used to be advertised.
14660 2001-09-27  Akim Demaille  <akim@epita.fr>
14662         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
14663         Raja R Harinath:
14664         Be sure to detect when $LINENO always returns the same value.
14665         Look for the original script, basename($0) is certainly not
14666         enough.
14667         Pass the CLI arguments to `$as_me.lineno'.
14669 2001-09-25  Akim Demaille  <akim@epita.fr>
14671         * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
14672         Be sure the close and reopen the LOG fd before and after using tee
14673         to extend the log.
14674         <at_tests_pattern>: Adjust to the new format of at_help_all.
14676 2001-09-23  Akim Demaille  <akim@epita.fr>
14678         * bin/autom4te.in (parse_args): There can be several invocations
14679         of --language now.
14681 2001-09-23  Akim Demaille  <akim@epita.fr>
14683         * doc/autoconf.texi (Top): Wrap in @ifnottex.
14685 2001-09-23  Akim Demaille  <akim@epita.fr>
14687         * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
14688         ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
14689         (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
14690         builddir, buildpath, top_builddir, and top_buildpath.
14691         (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
14692         the current directory.
14693         * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
14694         variables *before* changing the current directory.
14695         Skip nonexistent dirs.
14696         * doc/autoconf.texi (Preset Output Variables): Document these
14697         variables.
14699         * lib/autotest/general.m4: Do not reset AT_victims.
14700         Don't compute at_srcdir nor at_top_srcdir.
14702         * tests/tools.at: Hence use top_srcdir.
14704         * tests/Makefile.am, tests/autoconf, tests/autoheader,
14705         * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
14706         Remove.
14707         * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
14708         * tests/wrapsh.in, tests/autoupdate.in: New.
14709         * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
14710         * configure.ac: Build the position independent wrappers.
14712         * man/Makefile.am: Now that test wrappers are position
14713         independent, use them and drop dark envvar magic.
14715 2001-09-23  Akim Demaille  <akim@epita.fr>
14717         * doc/autoconf.texi (Common Shell Constructs): Rename as...
14718         (Programming in M4sh): this.
14719         Promote to @section.
14721 2001-09-23  Akim Demaille  <akim@epita.fr>
14723         * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
14724         Pass $at_debug_args to the rerun test suite.
14725         * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
14726         * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
14727         From Paul Eggert.
14729 2001-09-23  Akim Demaille  <akim@epita.fr>
14731         * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
14733 2001-09-23  Akim Demaille  <akim@epita.fr>
14735         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
14736         over-escaping.
14738 2001-09-23  Akim Demaille  <akim@epita.fr>
14740         * lib/Autom4te/General.pm (&debug): New.
14741         * bin/autom4te.in ($language): Move to...
14742         (parse_args): here.
14743         Handle --language in languages.
14744         * lib/autom4te.in (Automake-selections, Autoheader-selections)
14745         (Autoscan-selections): New.
14746         (Autoconf): Adjust.
14748 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
14750         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
14751         * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
14752         to match current versions from CVS Automake.
14754 2001-09-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
14756         * doc/autoconf.texi (Special Shell Variables): Add pdksh output
14757         for $LINENO.
14759 2001-09-22  Akim Demaille  <akim@epita.fr>
14761         * lib/autoconf/autotest.m4: Create `package.m4'.
14762         * tests/Makefile.am (package.m4): Remove.
14764 2001-09-22  Akim Demaille  <akim@epita.fr>
14766         Rely on `$LINENO' when possible instead of `__oline__'.
14768         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
14769         `$LINENO' support replacement when not supported.
14770         (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
14771         them explicitly to be sure they are not output before this section
14772         (via m4_require).  Cosmetic only.
14773         * lib/autoconf/c.m4, lib/autoconf/general.m4,
14774         * lib/autoconf/programs.m4: Replace all the occurrences of
14775         `__oline__' with `$LINENO'.
14776         * doc/autoconf.texi (Special Shell Variables): Document LINENO.
14778 2001-09-21  Tim Van Holder  <tim.van.holder@pandora.be>
14780         * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
14781         character (u: -> ue) in a code comment.
14782         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
14783         it works.
14785 2001-09-21  Akim Demaille  <akim@epita.fr>
14787         * Makefile.maint (AUTOM4TE): Neutralize autom4te.
14788         Suggested by Jim Meyering.
14790 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
14792         * lib/autoconf/programs.m4: Use extensions listed in
14793         $ac_executable_extensions when looking for programs.
14795 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
14797         * lib/autoconf/general.m4: Fix a small Englisho.
14798         * lib/autoconf/status.m4: Fix a small typo.  Handle DOS paths when
14799         setting up ac_dir_suffix and ac_top_builddir.
14800         * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
14802 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
14804         * doc/autoconf.texi (File System Conventions): Clarify the use of
14805         PATH_SEPARATOR.
14806         (Special Shell Variables[PATH_SEPARATOR]): Ditto.
14807         (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
14808         be used instead of ':'.
14809         * lib/autotest/general.m4: Replace occurrences of ':' in
14810         AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
14812 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
14814         * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
14815         arguments.  Fixed a typo.
14817 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
14819         * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
14820         $PATH.  Also set AUTOM4TE_CFG, so we can process autom4te properly.
14822 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
14824         * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
14825         * bin/autoupdate.in: Ditto.
14826         * bin/autoheader.in: Reworded a few comments.
14827         * bin/autoconf.in: Reworded help text for a few options.
14828         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
14829         * bin/autoscan.in, bin/autoupdate.in: Ditto.
14831 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
14833         * lib/Autom4te/XFile.pm (open): Simplified the error message (we
14834         already have $file).  Set output files to binary mode (helps avoid
14835         CR issues on DOSish systems).
14837 2001-09-19  Akim Demaille  <akim@epita.fr>
14839         * lib/autotest/general.m4: Englishoes.
14840         From Tim Van Holder and Alexey Mahotkin.
14842 2001-09-18  Paul Eggert  <eggert@twinsun.com>
14844         * doc/autoconf.texi (Common Shell Constructs): New node,
14845         documenting AS_DIRNAME.
14846         (Limitations of Usual Tools): Refer to it when discussing dirname.
14847         Also, update discussion of POSIX standard to reflect latest draft.
14849         * lib/autoconf/c.m4:
14850         (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
14852         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
14853         Do not pass a first argument with leading '-'
14854         to expr, by parenthesizing initial integers that might be negative.
14856         * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
14857         now merely checks whether it is an error to pass an argument
14858         to getpgrp.
14860         * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
14861         (AC_FUNC_GETPGRP): Don't bother with a runtime test.  Just check
14862         whether it is a (compile-time) error to pass an argument to
14863         getpgrp.  This simpler test supports the revised documentation,
14864         and is all that AC_FUNC_GETPGRP's users really need.
14866 2001-09-18  Akim Demaille  <akim@epita.fr>
14868         * doc/autoconf.texi (Limitations of Make) <$<>: New.
14870 2001-09-18  Akim Demaille  <akim@epita.fr>
14872         * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
14873         `{}'.
14874         * lib/autotest/general.m4 (AT_INIT): Adjust.
14876 2001-09-18  Paul Wagland  <paul@wagland.net>
14878         * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
14879         correctly.
14880         Add test for AS_BASENAME.
14881         * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
14882         added test. It now correctly handles /1/2/3/, returning '3' not ''.
14883         Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
14884         * tests/base.at: Fixed the expected responses. The old ones were
14885         one line out...
14886         * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
14887         the documentation claims it should (and how it behaved in 2.13).
14889 2001-09-18  Akim Demaille  <akim@epita.fr>
14891         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
14892         the AC_CONFIG_COMMANDS invocation.
14893         This also solves the name clash problems.
14894         Don't set the package's ID.
14895         * lib/m4sugar/Makefile.am (version.m4): Revamp.
14896         No longer to be shipped.
14897         (version.in): Remove.
14898         * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
14899         * lib/autoconf/status.m4: Adjust.
14900         Use `m4_PACKAGE_STRING'.
14901         * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
14902         the only optional argument is the name of the test suite.
14903         Expect `package.m4' to define the package signature.
14904         * lib/autom4te.in (Autotest): Add `package.m4?'.
14905         * tests/Makefile.am (package.m4): New.
14906         * tests/suite.at: ifnames is a victim.
14908 2001-09-18  Akim Demaille  <akim@epita.fr>
14910         * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
14911         AC_LIBSOURCE, AC_CONFIG_FILES.
14912         * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
14913         program version string doesn't match the package's.
14914         * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
14915         after `(cached)'.
14917 2001-09-17  Paul Eggert  <eggert@twinsun.com>
14919         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
14920         Allow expression to return any value that can fit into unsigned long
14921         (not int, as before).  Check for output errors.
14923 2001-09-17  Bruno Haible  <haible@ilog.fr>
14925         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
14926         Always include <stdio.h> and <stdlib.h>. Evaluate
14927         the expression in an extra function before these includes. Call
14928         fprintf "%d" only after ensuring the argument is of type 'int'.
14929         Reported by Wayne Chapeskie <waynec@spinnaker.com>.
14931 2001-09-17  Paul Eggert  <eggert@twinsun.com>
14933         Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
14934         or CFLAGS=-O5.  In that case, the linker has a relaxed view of
14935         fatal errors, and AC_CHECK_LIB causes it to include libraries even
14936         when they don't exist.
14938         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
14939         not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
14940         need it.
14942         * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
14943         version with the version used by fileutils 4.1, except use
14944         AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
14945         we don't need it.
14947         * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
14949 2001-09-13  Akim Demaille  <akim@epita.fr>
14951         * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
14952         _first_.
14953         Reported by Gerrit P. Haase.
14955 2001-09-13  Akim Demaille  <akim@epita.fr>
14957         * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
14958         m4_defn'ing is valid.
14960 2001-09-13  Akim Demaille  <akim@epita.fr>
14962         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
14963         * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
14964         Use it.
14966 2001-09-13  Akim Demaille  <akim@epita.fr>
14968         * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
14969         m4_match.
14970         (m4_re_escape): New.
14971         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
14972         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
14973         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
14974         Likewise.
14975         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
14976         (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
14977         * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
14978         AT_tests_all for consistency.
14979         Set at_victims.
14980         (AT_VICTIMS): Similar to AT_KEYWORDS.
14981         (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
14983 2001-09-13  Akim Demaille  <akim@epita.fr>
14985         * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
14987 2001-09-13  Akim Demaille  <akim@epita.fr>
14989         * lib/autotest/general.m4 (AT_INIT): Create and remove
14990         `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
14991         test suites can cohabit.
14993 2001-09-13  Akim Demaille  <akim@epita.fr>
14995         * tests/mktests.sh: Don't output banners for empty test files.
14997 2001-09-13  Akim Demaille  <akim@epita.fr>
14999         Test suites can be run independently of configure.
15001         * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
15002         * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
15003         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
15004         ECHO_N etc.
15005         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
15006         and at_c.
15007         * lib/autotest/general.m4: Use ECHO_*.
15009 2001-09-13  Akim Demaille  <akim@epita.fr>
15011         * bin/ifnames.in: Rewrite in Perl.
15012         * configure.ac: Don't look for AWK.
15013         * tests/tools.at (AWK portability): Remove.
15014         (Syntax of the shell scripts): Don't check ifnames.
15015         (AT_CHECK_PERL_SYNTAX): New.
15016         (Syntax of the Perl scripts): Check ifnames.
15017         * tests/ifnames: New.
15019 2001-09-13  Akim Demaille  <akim@epita.fr>
15021         * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
15022         test group titles.
15023         * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
15024         Remove all the other keywords.
15026 2001-09-10  Akim Demaille  <akim@epita.fr>
15028         * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
15029         SETUP: no longer used.
15030         Support -k, --keywords.
15031         <at_help>: Be `no', `short', or `long'.
15032         <at_help_all>: New variable.
15033         (AT_KEYWORDS): New.
15034         (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
15035         (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
15036         (_AT_CLEANUP_FILE_IF): Simplify the regexp.
15037         (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
15038         No longer fill the HELP diversion.
15039         (AT_CLEANUP): Use them.
15040         * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
15041         (m4_list_append): Remove.
15043         Spread a few keywords in the Autoconf test suite.
15045 2001-09-10  Akim Demaille  <akim@epita.fr>
15047         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
15048         PATH_SEPARATOR, let M4sh compute it.
15049         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
15050         * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
15051         Move to...
15052         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
15053         Simplify when the path is not a literal.
15054         (AS_UNAME): Use it to report PATH.
15055         * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
15056         (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
15057         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
15058         * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
15059         normalize the path, and to look for victims.
15060         * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
15061         (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
15063 2001-09-07  Akim Demaille  <akim@epita.fr>
15065         * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
15066         doesn't neutralize SIGINT, making autoconf etc. non interruptible.
15067         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
15068         related variables into `at_package_*'.
15069         * lib/autotest/general.m4 (AT_VICTIMS): New.
15070         (AT_INIT): Adjust for stand-alone/embedded test suites.
15071         (AS_MESSAGE_LOG_FD): Define and use it.
15072         * tests/suite.at (AT_VICTIMS): Use it.
15073         * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
15074         at_version.
15076 2001-09-07  Akim Demaille  <akim@epita.fr>
15078         Move toward possibly stand-alone test suites.
15080         * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
15081         in addition, it introduces useless differences in logs.
15082         (AT_INIT): Let atconfig and atlocal be both optional.
15083         Adjust PATH computation.
15084         * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
15086 2001-09-07  Akim Demaille  <akim@epita.fr>
15088         * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
15089         m4sugar/version.m4.
15091 2001-09-05  Akim Demaille  <akim@epita.fr>
15093         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
15094         to avoid GCC warnings.
15095         From Uwe Seimet.
15097 2001-09-05  Akim Demaille  <akim@epita.fr>
15099         * bin/autom4te.in: --language is -l, not -s.
15101 2001-09-05  Akim Demaille  <akim@epita.fr>
15103         Be ready to handle filenames as stupid as `dnl.at', for if even
15104         the maintainer is dumb enough to do that...
15106         * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
15107         excellence in M4 quotation: consider `__file__' is active.
15109         And BTW, when invoking m4, pass the --include in the right order:
15110         the wrong one.
15112         * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
15113         4m.
15115 2001-09-05  Akim Demaille  <akim@epita.fr>
15117         * lib/Autom4te/XFile.pm: New lib file.
15118         * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
15119         * bin/autoheader.in: Use it.
15121 2001-09-05  Akim Demaille  <akim@epita.fr>
15123         * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
15124         defined.
15126 2001-09-05  Akim Demaille  <akim@epita.fr>
15128         * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
15129         * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
15131         * bin/autoscan.in: Use `getopt' and `find_files' etc.
15132         Add -I, --include support.
15133         * doc/autoconf.texi (autoscan Invocation): Adjust.
15135 2001-09-05  Akim Demaille  <akim@epita.fr>
15137         CVS GNU M4 doesn't like `undefine(undefined)'.
15139         * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
15140         New, extracted from main.
15141         Use IO::File wherever possible.
15142         (input.m4): Be constant, use -I instead of hard coding $tmp.
15143         Therefore be a quoted heredoc.
15144         Don't invoke `_au_disable', since ac was not loaded, but just
15145         `unm4.m4'.
15147 2001-08-31  Akim Demaille  <akim@epita.fr>
15149         Version 2.52d.
15151 2001-08-31  Akim Demaille  <akim@epita.fr>
15153         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
15154         previous patch.
15155         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
15157 2001-08-31  Akim Demaille  <akim@epita.fr>
15159         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
15160         serious problems handling heredocs in heredocs.
15161         Reported by Nicolas Joly.
15163 2001-08-31  Akim Demaille  <akim@epita.fr>
15165         * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
15166         (Making testsuite Scripts): Update.
15168 2001-08-31  Akim Demaille  <akim@epita.fr>
15170         * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
15172 2001-08-31  Akim Demaille  <akim@epita.fr>
15174         * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
15175         (testsuite Scripts): There is no such thing as `atconfig.in'.
15176         And actually one diagram is missing: test suite runtime.
15178 2001-08-31  Akim Demaille  <akim@epita.fr>
15180         * lib/Autom4te/General.pm (&find_file): Browse the includes in the
15181         inverse order.
15183 2001-08-31  Akim Demaille  <akim@epita.fr>
15185         * bin/autoupdate.in (@include): `installcheck' revealed the path
15186         to m4sugar was lacking!
15188 2001-08-31  Akim Demaille  <akim@epita.fr>
15190         * man/Makefile.am (.x.1): We really have to pass
15191         autom4te_perllibdir.
15193 2001-08-31  Akim Demaille  <akim@epita.fr>
15195         * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
15196         debug scripts, in particular passing explicitly listed tests to
15197         run is stupid.
15199 2001-08-31  Akim Demaille  <akim@epita.fr>
15201         * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
15202         * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
15203         Use directly autom4te, not autoconf.
15204         * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
15206 2001-08-31  Akim Demaille  <akim@epita.fr>
15208         * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
15209         * bin/autoheader.in (%symbol): Strip arguments of macros.
15211 2001-08-31  Akim Demaille  <akim@epita.fr>
15213         * doc/autoconf.texi: Catch up -I, --include changes.
15215 2001-08-31  Akim Demaille  <akim@epita.fr>
15217         * bin/autom4te.in (&parse_args): Die on unknown languages.
15218         * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
15219         need for autoconf.
15220         Promote --include over --macrodir and other obsolete options.
15222 2001-08-31  Akim Demaille  <akim@epita.fr>
15224         * lib/Autom4te/General.pm ($version, $help, &getopt): New.
15225         * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
15226         * bin/autom4te.in ($autoconf): Pass --force.
15227         `print $out' doesn't print `$_' but `$out'.
15228         * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
15229         (autoheader): Pass --force since the test suite goes too fast for
15230         the time stamps.
15231         Adjust to the new autoheader messages.
15233 2001-08-31  Akim Demaille  <akim@epita.fr>
15235         * bin/autoheader.in: Handle the acconfig.h etc. junk files.
15236         Check the completeness of the #template.
15237         * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
15238         * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
15239         invocation.
15241 2001-08-31  Akim Demaille  <akim@epita.fr>
15243         * lib/Autom4te/General.pm (&find_file, &update_file): New.
15244         * bin/autoupdate.in, bin/autoheader.in: Adjust.
15245         Drop AC_MACRODIR dead for real.
15246         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
15247         `autoheader: `config.hin' is created'.
15248         * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
15250 2001-08-31  Akim Demaille  <akim@epita.fr>
15252         * bin/autoheader.in: Rewrite in Perl.
15253         * tests/autoheader: Adjust.
15255 2001-08-31  Akim Demaille  <akim@epita.fr>
15257         * bin/autoconf.in (--include, -I): New option.
15258         Map --localdir, --autoconf-dir onto it.
15259         Forward autom4te's options instead of interpreting them.
15260         * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
15261         There is no such envvar since the inception of autom4te.cfg.
15262         * bin/autom4te.in (&parse_args): Uniquify `@include'.
15263         * bin/autoupdate.in: Adjust, and perform more control.
15264         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
15265         * tests/autoconf: Dittowise.
15267 2001-08-31  Akim Demaille  <akim@epita.fr>
15269         * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
15270         * bin/autom4te.in (&find_file): Support `FILE?' standing for
15271         optionally `FILE'.
15272         Use -e, not -f, since /dev/null for instance is OK.
15273         (&parse_args): Adjust.
15274         * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
15276 2001-08-31  Akim Demaille  <akim@epita.fr>
15278         * configure.ac: Also find tested executables in bin.
15279         * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
15280         * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
15281         installed peer executables, only PATH is allowed to resolve it.
15282         Pass `autoconf_dir' via options, not via invisible envvars.
15283         * lib/Autom4te/General.pm (&find_peer): Remove.
15284         * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
15285         `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
15286         * man/Makefile.am: Let help2man rely on PATH instead of trying to
15287         find the executables for it.
15288         * tests/Makefile.am: Major cleanup.  Too lazy to document...
15289         * tests/atlocal.in: Remove all the obscure envvar manipulations.
15290         We only need PERL.
15291         * tests/atspecific.m4, tests/tools.at: Passing --localdir is
15292         indeed related to running the test suite, while passing
15293         --autoconf-dir and others is related to running non installed
15294         Autoconf executables.  So don't do that, leave it to...
15295         * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
15296         * tests/autoscan: New.
15297         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
15298         refer to library files: rely on --language.
15300 2001-08-29  Akim Demaille  <akim@epita.fr>
15302         * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
15303         s/--set/--language/.
15305 2001-08-29  Akim Demaille  <akim@epita.fr>
15307         * doc/autoconf.texi: Strip the @nodes.
15308         Suggested by Paul Eggert.
15309         (Initializing configure): Typo.
15311 2001-08-29  Akim Demaille  <akim@epita.fr>
15313         * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
15314         Suggested by Paul Eggert.
15316 2001-08-29  Akim Demaille  <akim@epita.fr>
15318         * Makefile.maint (do-po-update): Wget refuses to overwrite files:
15319         download in a tmp dir.
15321 2001-08-29  Akim Demaille  <akim@epita.fr>
15323         * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
15324         case insensitive OSes out there :(
15325         From Tim Van Holder.
15327 2001-08-29  Akim Demaille  <akim@epita.fr>
15329         * lib/autom4te.in: New.
15330         * lib/Makefile.am (edit, autom4te.cfg): New.
15331         * bin/autom4te.in (BEGIN): Simplify.
15332         Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
15333         (&load_configuration): New.  Use it.
15334         (&parse_args): Support --mode, --set, and --melt.
15335         * bin/autoconf.in: Simplify and adjust.
15336         * tests/Makefile.am (AUTOMAKE): Use --set.
15337         * tests/atlocal.in: Adjust.
15338         * BUGS: distcheck and check are weak.
15340 2001-08-29  Akim Demaille  <akim@epita.fr>
15342         * lib/autotest/general.m4: Use
15343                 foo=`(command) 2>/dev/null`
15344         not
15345                 foo=`command` 2>/dev/null
15346         (at-devnull): Rename as...
15347         (AT-devnull): this.
15348         (--clean): Remove AT-* files too.
15349         * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
15350         Reported by Nicolas Joly.
15352 2001-08-28  Akim Demaille  <akim@epita.fr>
15354         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
15355         quotes inside single quotes.
15356         Reported by Nicolas Joly.
15358 2001-08-28  Kevin Ryde  <user42@zip.com.au>
15360         * doc/autoconf.texi (Function Portability): Mention C right shifts.
15362 2001-08-27  Tim Van Holder  <tim.van.holder@pandora.be>
15364         * lib/autotest/general.m4: Reword some messages.
15365         (AT_INIT): Check for the `times' builtin before using it.
15366         Support test ranges as arguments to the testsuite.
15367         Have -e imply -d as the help text suggested.
15369 2001-08-27  Akim Demaille  <akim@epita.fr>
15371         * Makefile.maint: Formatting changes.
15372         (do-po-update, po-update, cvs-update, update): New targets.
15373         (AMTAR): Remove.
15375 2001-08-27  Akim Demaille  <akim@epita.fr>
15377         * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
15378         <at_cmd_line>: New.
15379         Pass it to debug-*.sh scripts.
15380         <AUTOTEST_PATH>: May contain absolute dir names.
15382 2001-08-27  Akim Demaille  <akim@epita.fr>
15384         * lib/autotest/general.m4 (AT_INIT): Log the command line.
15385         Support `VAR=VAL' as arguments.
15386         Compute PATH _after_ the options processing, so that AUTOTEST_PATH
15387         may be set via the command line.
15389 2001-08-27  Akim Demaille  <akim@epita.fr>
15391         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
15392         * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
15393         first the build dirs, then the src dirs.
15394         * configure.ac (AC_CONFIG_TESTDIR): Adjust.
15396 2001-08-27  Akim Demaille  <akim@epita.fr>
15398         * lib/autotest/general.m4 (AT_INIT): Output the definition of
15399         at_data_files earlier.
15400         (--clean, -c): New option.
15401         * tests/Makefile.am: Use this option.
15403 2001-08-27  Akim Demaille  <akim@epita.fr>
15405         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
15406         `ac_top_builddir' to mimic Automake's vocabulary, which much more
15407         readable.
15408         Adjust callers.
15409         * doc/autoconf.texi (Configuration Actions): Document the vars
15410         available in commands.
15411         Emphasize the risks of collisions in init-cmds.
15413 2001-08-27  Akim Demaille  <akim@epita.fr>
15415         * doc/autoconf.texi (Input) <AC_INIT>: Move to..
15416         (Initializing configure): this new node.
15418 2001-08-27  Akim Demaille  <akim@epita.fr>
15420         * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
15422 2001-08-27  Akim Demaille  <akim@epita.fr>
15424         * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
15425         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
15426         New file.
15427         * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
15429 2001-08-27  Akim Demaille  <akim@epita.fr>
15431         * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
15432         to...
15433         * lib/autoconf/autoheader.m4: this new file.
15434         * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
15435         (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
15436         Move to...
15437         * lib/autoconf/autoupdate.m4: this new file.
15439 2001-08-27  Akim Demaille  <akim@epita.fr>
15441         * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
15442         (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
15443         Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
15444         -> ac_dir).
15445         (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
15446         * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
15448 2001-08-27  Akim Demaille  <akim@epita.fr>
15450         * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
15451         (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
15452         (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
15453         (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
15454         (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
15455         (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
15456         (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
15457         (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
15458         (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
15459         (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
15460         (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
15461         (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
15462         (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
15463         (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
15464         (_AC_OUTPUT_SUBDIRS): Move to...
15465         * lib/autoconf/status.m4: this new file.
15466         * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
15467         * tests/Makefile.am, tests/suite.at: Adjust.
15469 2001-08-27  Akim Demaille  <akim@epita.fr>
15471         Automake 1.5.
15473         * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
15474         (AMTAR): Help automake define it.
15475         (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
15476         needed, 1.5 can have a macro and a target with the same name.
15477         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
15478         * m4/strip.m4: New.
15479         * m4/init.m4, m4/sanity.m4: Update.
15480         * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
15481         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
15482         * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
15483         * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
15485 2001-08-27  Akim Demaille  <akim@epita.fr>
15487         Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
15489         * lib/autoconf/version.in: Remove.
15490         * lib/m4sugar/version.in: New.
15491         * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
15492         Adjust callers.
15493         * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
15494         the name of the directory they're in, instead of the filename,
15495         since version.m4 is now in m4sugar, but m4_acversion must not be
15496         classified as an Autoconf macro.
15497         ($input_m4): Don't qualify the path to m4sugar.
15498         Rather, pass autoconf_dir to m4.
15499         * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
15500         * tests/suite.at: Require 2.52c.
15502 2001-08-27  Akim Demaille  <akim@epita.fr>
15504         testsuite.log should include config.log.
15506         * lib/autotest/autotest.m4: New.
15507         * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
15508         * tests/suite.at : Adjust.
15509         (AT_INIT): Log config.log.
15510         * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
15511         * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
15512         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
15513         (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
15514         of config.log on traps.
15515         (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
15516         Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
15517         for config.status'.
15518         Open the log as soon as possible.
15519         Use the same log introduction as configure's.
15521 2001-08-22  Paul Eggert  <eggert@twinsun.com>
15523         * doc/autoconf.texi (Indices): New node.
15524         Move indices out of the top level menu and into this submenu.
15526 2001-08-22  Akim Demaille  <akim@epita.fr>
15528         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
15529         AC_TRY_COMMAND.
15530         (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
15532 2001-08-22  Akim Demaille  <akim@epita.fr>
15534         * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
15535         (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
15536         (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
15537         * lib/autoconf/programs.m4: here.
15538         * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
15539         (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
15540         (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
15541         * lib/autoconf/programs.m4: here.
15542         (_AC_DECL_YYTEXT): Rename as...
15543         (_AC_PROG_LEX_YYTEXT_DECL): this.
15544         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
15545         * tests/Makefile.am, tests/suite.am: Adjust.
15547 2001-08-22  Akim Demaille  <akim@epita.fr>
15549         * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
15550         Move to...
15551         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
15552         here.
15553         * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
15554         * lib/autoconf/functions.m4: here.
15555         * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
15556         (AH_CHECK_LIB): Move to...
15557         * lib/autoconf/libs: this new file.
15558         * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
15559         (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
15560         * lib/autoconf/libs.m4: here.
15561         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
15563 2001-08-22  Akim Demaille  <akim@epita.fr>
15565         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
15566         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
15567         (AC_SITE_LOAD): Better logging of config.site.
15569 2001-08-20  Akim Demaille  <akim@epita.fr>
15571         * configure.ac (AT_CONFIG): Fix the path.
15572         * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
15573         can be used.
15575 2001-08-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
15577         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
15578         program with AC_LANG_PROGRAM before feeding it to
15579         AC_COMPILE_IFELSE.  Cleanup grep usage.
15581 2001-08-20  Akim Demaille  <akim@epita.fr>
15583         * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
15584         * NEWS, README, README-alpha, TODO, tests/README: This package is
15585         `Autoconf', not `autoconf' (the executable).
15587 2001-08-20  Akim Demaille  <akim@epita.fr>
15589         Info readers seem to need `Index' in the index node title :(
15591         * doc/autoconf.texi: Reverse the 2001-08-15 change which
15592         simplified index node names.
15594 2001-08-20  Akim Demaille  <akim@epita.fr>
15596         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
15597         arguments are not literals.
15598         * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
15599         Specify the output variables, and macros defined.
15601 2001-08-20  Akim Demaille  <akim@epita.fr>
15603         * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
15604         (Examining Syntax) <AC_TRY_COMPILE>
15605         (Examining Libraries) <AC_TRY_LINK>
15606         (Test Programs) <AC_TRY_RUN>: These macros double quote some of
15607         their arguments.
15608         Reported by Werner Lemberg.
15610 2001-08-20  Akim Demaille  <akim@epita.fr>
15612         * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
15613         top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
15614         Load atlocal late enough to dump it in the log.
15615         * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
15617 2001-08-20  Akim Demaille  <akim@epita.fr>
15619         * tests/torture.at (Configuring subdirectories): New test.
15620         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
15621         looking for.
15622         * m4/atconfig.m4: Be sure the let $[0] be expandable.
15623         (top_srcdir): Fix its computation.
15625 2001-08-20  Akim Demaille  <akim@epita.fr>
15627         * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
15628         * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
15629         test suite lives.
15630         Create `atconfig' automagically.
15631         Configure atlocal.in if present.
15632         * tests/atconfig.in: Remove.
15633         * tests/atlocal.in: New.
15634         * tests/Makefile.am: Adjust.
15636 2001-08-20  Akim Demaille  <akim@epita.fr>
15638         Huh!?!?!  There are still some user EOF tags used, which prevents
15639         their use in AC_CONFIG_COMMANDS for instance...
15641         * lib/autoconf/general.m4, lib/autoconf/specific.m4,
15642         * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
15643         `_CSEOF', or `_ATEOF', as appropriate.
15644         * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
15645         * lib/autotest/Makefile.am (check-local): Enforce this constraint.
15647 2001-08-20  Akim Demaille  <akim@epita.fr>
15649         * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
15650         * tests/semantics.at, tests/tools.at, tests/torture.at:
15651         s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
15653 2001-08-20  Akim Demaille  <akim@epita.fr>
15655         Autotest invokes M4sh's initialization.
15657         * lib/autotest/general.m4: Adjust the diversion names.
15658         (AT_INIT): Run AS_INIT.
15659         Use the BINSH diversion to invoke /bin/sh.
15660         * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
15661         * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
15663 2001-08-20  Akim Demaille  <akim@epita.fr>
15665         Let M4sh have its own diversions.
15667         * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
15668         (_m4_divert(NOTICE)): Rename as...
15669         * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
15670         (_m4_divert(HEADER-COMMENT)): these.
15671         (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
15672         (_m4_divert(NOTICE)): New, for Libtool.
15673         * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
15674         long ago with `_m4_divert(GROW)'.
15675         (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
15677 2001-08-20  Akim Demaille  <akim@epita.fr>
15679         * tests/base.at, tests/compile.at, tests/foreign.at,
15680         * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
15681         * tests/semantics.at, tests/suite.at, tests/tools.at,
15682         * tests/torture.at: Ask Autotest mode, not Autoconf mode.
15684 2001-08-20  Akim Demaille  <akim@epita.fr>
15686         * bin/autom4te.in (handle_output): Handle @__@.
15688 2001-08-20  Akim Demaille  <akim@epita.fr>
15690         * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
15691         * lib/autotest/general.m4: Adjust the license.
15693 2001-08-17  Paul Eggert  <eggert@twinsun.com>
15695         * doc/autoconf.texi (Function Portability): Mention snprintf,
15696         following up on a suggestion by Kevin Ryde.
15698 2001-08-17  Akim Demaille  <akim@epita.fr>
15700         * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
15701         `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
15703 2001-08-17  Akim Demaille  <akim@epita.fr>
15705         * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
15706         `$0.log' as for projects where testsuite is in src, we'd have
15707         testsuite.log created in src.
15709 2001-08-17  Akim Demaille  <akim@epita.fr>
15711         * bin/autom4te.in (&parse_args): Recognize --normalize.
15713 2001-08-17  Akim Demaille  <akim@epita.fr>
15715         Start implementing the AC_CHECK_HEADER transition scheme.
15717         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
15718         (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
15719         (AC_CHECK_HEADER): Use them.
15721 2001-08-17  Akim Demaille  <akim@epita.fr>
15723         * doc/autoconf.texi: Work around Texinfo buglets.
15724         (Transformation Rules): One example is enough, users are expected
15725         to have their brains on. And BTW, use DESTDIR.
15726         (dvar): New macro.  Use it.
15728 2001-08-17  Akim Demaille  <akim@epita.fr>
15730         * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
15731         * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
15732         looking for ChangeLogs.
15734 2001-08-17  Akim Demaille  <akim@epita.fr>
15736         * bin/autom4te.in: --normalize is a new option.
15737         * bin/autoconf.in: Use it.
15739 2001-08-17  Akim Demaille  <akim@epita.fr>
15741         * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
15742         * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
15744 2001-08-16  Paul Eggert  <eggert@twinsun.com>
15746         * doc/autoconf.texi, doc/install.texi: Put copyright notice at
15747         start, not at end.
15749 2001-08-15  Akim Demaille  <akim@epita.fr>
15751         * doc/Makefile.am (fu): New index, can't use fn because of defmac.
15752         Use it.
15754 2001-08-15  Akim Demaille  <akim@epita.fr>
15756         * doc/autoconf.texi (pr): New index.
15757         (prindex, findex): Use, merge, and output them.
15758         (Environment Variable Index, Output Variable Index)
15759         (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
15760         (Autotest Macro Index): Rename as...
15761         (Environment Variables, Output Variables,Preprocessor Symbols)
15762         (Autoconf Macros, M4 Macros, Autotest Macros): these.
15763         * doc/install.texi: Use @command.
15764         (Environment Variables): Rename as...
15765         (Defining Variables): this.
15767 2001-08-15  Akim Demaille  <akim@epita.fr>
15769         * doc/autoconf.texi (Function Portability): sprintf's return
15770         value.
15771         From Kevin Ryde.
15773 2001-08-15  Akim Demaille  <akim@epita.fr>
15775         * Makefile.maint (CVS): New.
15776         (local-check): Run changelog-check. last.
15777         (alpha): Don't depend upon local-check, since...
15778         (cvs-dist): depends upon it.
15780 2001-08-15  Tim Van Holder  <tim.van.holder@pandora.be>
15782         * tests/Makefile.am: Use a clean-local rule to remove
15783         autom4te.cache (it's a directory, not a file.
15784         * Makefile.am: Ditto (but maintainer-clean-local).
15786 2001-08-15  Akim Demaille  <akim@epita.fr>
15788         * bin/autom4te.in (@m4_warning): New.
15789         (&handle_m4): Use it.
15790         * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
15791         warnings are issued at each run.
15792         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
15793         is in the src tree.
15795 2001-08-15  Akim Demaille  <akim@epita.fr>
15797         * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
15798         don't waste time running `autoupdate --version' works.
15799         * tests/tools.at (autoupdating AC_PREREQ): Likewise.
15801 2001-08-13  Akim Demaille  <akim@epita.fr>
15803         * doc/autoconf.texi (ma): Rename this index as...
15804         (ac): this.
15806 2001-08-13  Akim Demaille  <akim@epita.fr>
15808         * Makefile.am: Remove dead code and dead comments.
15809         (pdf, html): New targets.
15810         * doc/autoconf.texi (Using Autotest): New chapter.
15811         * doc/Makefile.am (pdf): New targets.
15812         (CLEANFILES): Adjust.
15814 2001-08-13  Akim Demaille  <akim@epita.fr>
15816         * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
15817         duration of the test suite.
15819 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
15821         * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
15822         endianness for comparison instead of relying on AT_CHECK_ENV.
15824 2001-08-11  Paul Eggert  <eggert@twinsun.com>
15826         * doc/autoconf.texi, doc/install.texi: Add a copyright notice
15827         to the INSTALL file.
15829 2001-08-11  Paul Eggert  <eggert@twinsun.com>
15831         * NEWS: The autoconf manual now is distributed under the terms
15832         of the GNU Free Documentation License.
15834         * doc/autoconf.texi: Switch from old style copyright notice to FDL.
15835         Add an appendix "Copying This Manual" for the FDL.
15837         * doc/fdl.texi: New file, from
15838         <http://www.gnu.org/licenses/fdl.texi>.
15840         * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
15842 2001-08-10  Paul Eggert  <eggert@twinsun.com>
15844         * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
15845         ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
15846         README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
15847         m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
15848         m4/sanity.m4, tests/README, tests/aclocal.m4,
15849         tests/atspecific.m4, tests/base.at, tests/compile.at,
15850         tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
15851         tests/semantics.at, tests/suite.at, tests/tools.at,
15852         tests/torture.at: Add copyright notice.
15854         * tests/mktests.sh: Update year in copyright notice.
15856 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
15858         * tests/semantics.at (AC_C_BIGENDIAN): New test.
15860 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
15862         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
15863         ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
15864         * doc/autoconf.texi (C Compiler Characteristics): Update
15865         documentation for AC_C_BIGENDIAN.
15867 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
15869         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
15870         magic values from an object file when cross-compiling.
15871         Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
15873 2001-08-10  Akim Demaille  <akim@epita.fr>
15875         * bin/autom4te.in (&handle_output): Don't use `grep' with side
15876         effects.
15877         Suggested by Russ Allbery.
15879 2001-08-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
15881         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
15882         current $prefix to the sub-configures.
15884 2001-08-09  Tim Van Holder  <tim.van.holder@pandora.be>
15886         * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
15887         extension (needed on BeOS).  Reported by Guido van Rossum.
15889 2001-08-09  Akim Demaille  <akim@epita.fr>
15891         * bin/autom4te.in ($icache): Load it only if older than autom4te.
15893 2001-08-07  Akim Demaille  <akim@epita.fr>
15895         * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
15896         removed.
15897         (at-setup-line): Huh?  Be a variable `at_setup_line', not a file.
15898         No need to remove the files before and after the each test, before
15899         each test and at the end of the suite is enough.
15900         Display only the children `times', not the shell's.
15901         If the test failed or was skipped, at-times is not available.
15903 2001-08-07  Akim Demaille  <akim@epita.fr>
15905         Always produce testsuite.log, including when there are no
15906         failures.  This helps getting information on skipped tests, and
15907         duration of the tests.  Err, implement the latter btw.
15909         * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
15910         Dump information on the first run of each test.
15911         (AT_CLEANUP): Create `at-times' containing the duration of the
15912         test group.
15914 2001-08-07  Akim Demaille  <akim@epita.fr>
15916         The use of `dumpstat' revealed that `len' was used although it
15917         should not.  m4_text_wrap was using it, but in the Autoconf world
15918         where it is legal.  Hence (i) test M4sh in its own world, not
15919         Autoconf's, and (ii), ahem, fix the bug :)
15921         * lib/autotest/general.m4: Be sure the set good quotes, as tracing
15922         does not like `' instead of [].
15923         (AT_INIT): Forbid `^_?AT_'.
15924         And don't output such tokens.
15925         * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
15926         `script.as', and `autom4te.cache'.
15927         Remove `empty' and `macro' which are no longer used.
15928         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
15929         * tests/m4sugar.at: Use it.
15930         * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
15932 2001-08-07  Akim Demaille  <akim@epita.fr>
15934         * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
15936 2001-08-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
15938         * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
15940 2001-08-04  Akim Demaille  <akim@epita.fr>
15942         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
15943         (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
15944         AC_TRY_LINK.
15945         * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
15946         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
15947         (AC_F77_MAIN): Likewise.
15949 2001-08-04  Akim Demaille  <akim@epita.fr>
15951         Don't rely on M4sugar outputting the patterns in files, since we
15952         might process the output _without_ running m4, hence without these
15953         files.
15955         * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
15956         * bin/autom4te.in (@Request::includes): Remove, unused.
15957         (@Request::source): Rename as...
15958         (@Request::input): this.
15959         (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
15960         (&handle_output): Fetch the patterns from the traces.
15961         `$forbidden' and `$allowed' are constant: use m//o.
15962         (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
15963         (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
15965 2001-08-04  Akim Demaille  <akim@epita.fr>
15967         `autoconf && autoheader' is sped up.  Now, speed up `autoheader &&
15968         autoconf', i.e., in addition to caching traces, cache the output.
15970         * bin/autom4te.in (Request::cache): Rename as...
15971         (Request::id): this.
15972         ($cache, $icache, $tcache, $ocache): New.
15973         (&handle_m4): Save M4 output in the cache instead of $tmp.
15974         (&handle_output): Adjust.
15975         (&up_to_date_p): Check that the output cache is up to date too.
15976         (top level): Run `&handle_m4' iff force or the cache is invalid.
15977         Run `&handle_output' if the output cache is more recent.
15979 2001-08-04  Akim Demaille  <akim@epita.fr>
15981         * bin/autom4te.in ($force): New.
15982         (&parse_args, &print_usage): -f, --force is a new option.
15983         (&handle_output): CPP directives might have spaces after `#'.
15984         (&parse_args): The first file only can be frozen.
15986 2001-08-04  Akim Demaille  <akim@epita.fr>
15988         Don't let autom4te compute the `include' traces several times:
15989         first check that the trace cache file is up to date, and then
15990         compare its timestamp with that of the output.
15992         * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
15993         the preamble.  Don't require 5.005 as Autom4te::General does it,
15994         and better yet (use `use', not `require'!).
15995         * lib/Autom4te/Struct.pm: Rename the last occurrences of
15996         Class::Struct as Autom4te::Struct.
15997         * lib/Autom4te/General.pm (File::stat): Use it.
15998         (&mtime): New, export it.
15999         * bin/autom4te.in: Use it.
16000         Declare `$req' is invalid if it is outdated.
16001         Don't declare it valid before saving it if something went wrong.
16003 2001-08-04  Akim Demaille  <akim@epita.fr>
16005         Autom4te shall not encode Autoconf data, and preselecting traces
16006         must be proposed to the users.
16008         * bin/autom4te.in (@required_trace): Remove.
16009         (@preselect): New.
16010         (&parse_args, &print_usage): -p, --preselect is a new option.
16011         (&up_to_date_p): Adjust.
16012         * bin/autoconf.in: Preselect some Autoconf macros.
16014 2001-08-04  Akim Demaille  <akim@epita.fr>
16016         * tests/tools.at (autoconf --trace: user macros): Check traces on
16017         macros invoked without arguments, and macros invoked with multiple
16018         lines arguments.
16020 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
16022         * bin/autom4te.in (handle_traces): Fix rewriting of traces without
16023         arguments.
16025 2001-08-03  Akim Demaille  <akim@epita.fr>
16027         * bin/autoconf.in ($@): Work around the usual sh bug.
16028         From Nicolas Joly.
16030 2001-08-03  Akim Demaille  <akim@epita.fr>
16032         Clean up the handling of the M4 builtins tracing exception.
16034         * bin/autom4te.in (Request::request): Don't complete M4 builtins
16035         trace requests.
16036         (@m4_builtins): Rename as...
16037         (@m4_builtin): this.
16038         (%m4_builtin_alternate_name): New.
16039         (&parse_args): Complete the trace requests with alternate names.
16040         (&handle_traces): Hence no longer do it here.
16041         (&trace_requests): Remove, unused.
16043 2001-08-03  Akim Demaille  <akim@epita.fr>
16045         * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
16046         m4_if, and m4_wrap.
16048 2001-08-03  Akim Demaille  <akim@epita.fr>
16050         * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
16051         (m4_divert_pop): Dump the whole diversion stack when a diversion
16052         mismatch happens.
16053         * bin/autom4te.in (&handle_output): Remember of the first
16054         occurrence of a possibly undefined macro, not the last.
16055         Complain about the possibly undefined macros in the same order as
16056         the appear in the output.
16057         * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
16058         * tests/tools.at (autoconf: forbidden tokens, basic)
16059         (autoconf: forbidden tokens, exceptions): No longer sort
16060         autoconf's stderr, as it is now deterministic.
16061         Check that `dnl' is caught.
16063 2001-08-01  Akim Demaille  <akim@epita.fr>
16065         * configure.ac: Bump to 2.52c.
16067 2001-08-01  Akim Demaille  <akim@epita.fr>
16069         Version 2.52b.
16071         * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
16073 2001-08-01  Akim Demaille  <akim@epita.fr>
16075         Version 2.52a.
16077 2001-08-01  Akim Demaille  <akim@epita.fr>
16079         * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
16080         `die'.
16081         (&END): New.
16082         * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
16083         `END', as `Autom4te::General::END' will be triggered.
16084         * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
16085         * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
16086         system to run `mv', `rm', and `cmp'.
16088 2001-08-01  Akim Demaille  <akim@epita.fr>
16090         * lib/Autom4te/General.pm (&unique): New.
16091         * bin/autoscan.in (&output): Use it to issue trace requests once.
16093 2001-08-01  Akim Demaille  <akim@epita.fr>
16095         * lib/Autom4te/General.pm: New.
16096         * bin/autom4te.in (Autom4te::General): Use it.
16097         ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
16098         (&find_configure_ac, &find_slave): Remove.
16099         * bin/autoscan.in: Likewise.
16100         * bin/autoupdate.in: Likewise.
16102 2001-08-01  Akim Demaille  <akim@epita.fr>
16104         * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
16105         * autoheader.in, autoreconf.in, autoupdate.in: Move to...
16106         * bin: here, new directory.
16107         * lib/Autoconf: Rename as...
16108         * lib/Autom4te: this, to please case insensitive junkie OSes.
16110 2001-08-01  Akim Demaille  <akim@epita.fr>
16112         * autom4te.in ($m4): Handle the --nesting-limit.
16113         * autoconf.in (M4): Remove.
16115 2001-08-01  Akim Demaille  <akim@epita.fr>
16117         * autoconf.in ($AWK): Remove, no longer used.
16118         * test/tools.at: Use AT_CHECK_AUTOCONF.
16119         (AWK portability): Remove, for autoconf no longer uses AWK.
16120         (Syntax of the Perl scripts): New.
16121         * configure.ac: autoconf no longer needs an AWK with a good
16122         regexp engine.
16123         Use a static test on AC_PACKAGE_VERSION.
16124         * autom4te.in (&up_to_date_p): Output depends on the arguments.
16125         * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
16126         * tests/atconfig.in (PERL): New.
16128 2001-08-01  Akim Demaille  <akim@epita.fr>
16130         * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
16131         (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
16132         (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
16133         (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
16134         (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
16135         (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
16136         (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
16137         (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
16138         (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
16139         (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
16140         (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
16141         (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
16142         (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
16143         * lib/autoconf/c.m4: here, new file.
16145         * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
16146         (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
16147         (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
16148         (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
16149         (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
16150         (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
16151         (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
16152         (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
16153         (AC_F77_FUNC): Move to...
16154         * lib/autoconf/fortran.m4: here, new file.
16156 2001-08-01  Akim Demaille  <akim@epita.fr>
16158         * acfunctions.m4: Rename as...
16159         * lib/autoconf/functions.m4: this.
16160         * acgeneral.m4: Rename as...
16161         * lib/autoconf/general.m4: this.
16162         * acheaders.m4: Rename as...
16163         * lib/autoconf/headers.m4: this.
16164         * aclang.m4: Rename as...
16165         * lib/autoconf/lang.m4: this.
16166         * acoldnames.m4: Rename as...
16167         * lib/autoconf/oldnames.m4: this.
16168         * acspecific.m4: Rename as...
16169         * lib/autoconf/specific.m4: this.
16170         * actypes.m4: Rename as...
16171         * lib/autoconf/types.m4: this.
16172         * autoconf.m4: Rename as...
16173         * lib/autoconf/autoconf.m4: this.
16175         * m4sugar.m4: Rename as...
16176         * lib/m4sugar/m4sugar.m4: this.
16177         * m4sh.m4: Rename as...
16178         * lib/m4sugar/m4sh.m4: this.
16180         * tests/atgeneral.m4: Rename as...
16181         * lib/autotest/general.m4: this.
16183         * acfunctions: Rename as...
16184         * lib/autoscan/functions: this.
16185         * acheaders: Rename as...
16186         * lib/autoscan/headers: this.
16187         * acidentifiers: Rename as...
16188         * lib/autoscan/identifiers: this.
16189         * aclibraries: Rename as...
16190         * lib/autoscan/libraries: this.
16191         * acmakevars: Rename as...
16192         * lib/autoscan/makevars: this.
16193         * acprograms: Rename as...
16194         * lib/autoscan/programs: this.
16196 2001-08-01  Akim Demaille  <akim@epita.fr>
16198         * doc/autoconf.texi: Moving/deleting open files is not portable.
16199         Portability issues for `.' (source), and more information about sed.
16201 2001-07-25  Steven G. Johnson  <stevenj@alum.mit.edu>
16203         * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
16204         which has a special meaning and is not a reference to libibmil.a.
16205         Reported by Matteo Frigo.
16207 2001-07-25  Pavel Roskin  <proski@gnu.org>
16209         * autom4te.in (mktmpdir): Strip trailing newline from mktemp
16210         output.
16212 2001-07-25  Akim Demaille  <akim@epita.fr>
16214         * autoconf.in: Try to define the variables before using them.
16215         * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
16216         instead of `$perllibdir'.
16217         * tests/atconfig.in ($autom4te_perllibdir): Export it.
16219 2001-07-25  Akim Demaille  <akim@epita.fr>
16221         * autoconf.in (ac_LF_and_DOT): Remove, unused.
16223 2001-07-24  Akim Demaille  <akim@epita.fr>
16225         Let autoconf use autom4te for traces.
16227         * autoconf.in ($task, task trace): Remove, merely pass --trace to
16228         autom4te.
16229         * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
16230         (Because I found no way for autom4te to accept `-').
16231         * autom4te.in (&Request::request): Beware of M4 builtins.
16232         (END): Don't try to remove the content of an empty dir.
16233         (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
16234         (&handle_output): Set a default value to `$forbidden'.
16235         * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
16236         ($autoconf): Pass --debug and --verbose.
16237         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
16238         cache.
16240 2001-07-24  Akim Demaille  <akim@epita.fr>
16242         Let autoconf use autom4te to create configure.
16244         * autoconf.in ($automate): New var.
16245         (task script): Use autom4te.
16246         * autom4te.in (File::Spec): Use it.
16247         (&find_file): New.
16248         (&parse_args): --warning is -W, not -w.
16249         Find the top level files.
16250         (&handle_m4): Pass the warnings flags.
16251         Don't report verbosely m4's failures, unless requested.
16252         (&handle_output): Don't complain for forbidden tokens in comments.
16253         Be sure to report all the forbidden tokens within a single line.
16254         (&trace_format_to_m4): Preserve `$_'.
16255         (&handle_traces): Sort the output macros.
16256         (&up_to_date_p): Find the files before trying to get its time stamp.
16258 2001-07-24  Akim Demaille  <akim@epita.fr>
16260         * Makefile.am: Ship, build and install Autom4te.
16261         (SUBDIRS): Add lib.
16262         * lib/Autoconf/Struct.pm: New, from Automake 1.5.
16263         * configure.in: Require Perl.
16264         * man/autom4te.in: New.
16266 2001-07-19  Paul Eggert  <eggert@twinsun.com>
16268         * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
16269         example, rather than (exit 1); exit (which isn't portable).
16271 2001-07-18  Akim Demaille  <akim@epita.fr>
16273         Version 2.52.
16275 2001-07-18  Akim Demaille  <akim@epita.fr>
16277         The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
16278         was run, while they are needed also when it is expanded.
16279         Reported by Nicolas Joly.
16281         * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
16282         (AC_LANG_PROGRAM(C)): Use it instead of depending upon
16283         AC_F77_DUMMY_MAIN being expanded.
16285 2001-07-18  Akim Demaille  <akim@epita.fr>
16287         * configure.in: Bump to 2.51a.
16289 2001-07-17  Akim Demaille  <akim@epita.fr>
16291         Version 2.51.
16293 2001-07-17  Akim Demaille  <akim@epita.fr>
16295         * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
16296         Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
16298 2001-07-17  Akim Demaille  <akim@epita.fr>
16300         The runtime test for AC_FUNC_GETPGRP fails when prototypes are
16301         used.  Well, then use the prototypes when you can, and runtime as
16302         a last resort.
16303         Reported by Artur Frysiak
16305         * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
16306         (AC_FUNC_GETPGRP): Use it.
16307         First try to compile with 0-ary or 1-ary calls.
16309 2001-07-17  Akim Demaille  <akim@epita.fr>
16311         * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
16312         replacement type.
16313         From Paul Eggert.
16315 2001-07-17  Akim Demaille  <akim@epita.fr>
16317         * Makefile.maint: Sync. with cppi 1.10.
16319 2001-07-17  Akim Demaille  <akim@epita.fr>
16321         * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
16322         AC_F77_DUMMY_MAIN has been run.
16323         From Pavel Roskin and Steven G. Johnson.
16325 2001-07-17  Akim Demaille  <akim@epita.fr>
16327         * configure.in: Rename as...
16328         * configure.ac: this.
16330 2001-07-17  Akim Demaille  <akim@epita.fr>
16332         * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
16333         rules.
16334         From Marc Espie.
16335         * Makefile.maint (release-archive-dir): Rename as...
16336         (release_archive_dir): this, so that it can be specialized in
16337         Makefile.
16339 2001-07-14  Akim Demaille  <akim@epita.fr>
16341         * configure.in: Bump to 2.50d.
16343 2001-07-14  Akim Demaille  <akim@epita.fr>
16345         Version 2.50c.
16346         * Makefile.maint (alpha): Typo.
16348 2001-07-14  Akim Demaille  <akim@epita.fr>
16350         * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
16352 2001-07-14  Akim Demaille  <akim@epita.fr>
16354         * config/config.guess, config/config.sub, config/texinfo.tex
16355         * doc/standards.texi, doc/make-stds.texi: Update.
16357 2001-07-14  Akim Demaille  <akim@epita.fr>
16359         * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
16361 2001-07-14  Akim Demaille  <akim@epita.fr>
16363         * Makefile.maint (maintainer-check): Rename as...
16364         (maintainer-distcheck): this.
16365         (changelog-check, static-check): New.
16366         Use them.
16368 2001-07-14  Kevin Ryde  <user42@zip.com.au>
16370         * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
16371         for CXX is g++, not gcc.
16373 2001-07-14  Akim Demaille  <akim@epita.fr>
16375         * doc/autoconf.texi (Files): New subsection.
16377 2001-07-14  Akim Demaille  <akim@epita.fr>
16379         * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
16380         of...
16381         (Generic Compiler Characteristics): this.
16382         (C++ Compiler): New subsection.
16384 2001-07-14  Akim Demaille  <akim@epita.fr>
16386         * autoscan.in: Use IO::File.
16387         Adjust all the routines to use it.
16388         ($log): New file (autoscan.log).
16389         (output): Dump detailed logs into $log, and a shortened version to
16390         stderr.
16391         (&scan_makefile): Refine the regexp catching tokens in the code.
16392         * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
16393         and the `configure.ac' checking feature.
16395 2001-07-12  Akim Demaille  <akim@epita.fr>
16397         For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
16398         Reported by Michael Elizabeth Chastain.
16400         * autoconf.in: Refuse such AWK.
16401         * configure.in: Likewise.
16402         * Makefile.am (acversion.m4): Do not use move-if-change this file
16403         has dependencies.
16404         * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
16406 2001-07-10  Jens Petersen  <petersen@redhat.com>
16408         * autoscan.in (&scan_makefile): Improve programs regexp to parse
16409         things like "g++", "file.c" and "some-conf" as tokens.
16410         (&scan_file): Match C++ files extensions.
16411         If the filename extension is C++ then ask for c++.
16413 2001-07-05  Steven G. Johnson  <stevenj@alum.mit.edu>
16415         * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
16416         AC_TRY_LINK_FUNC, to check whether defining a dummy
16417         main-like routine is needed for linking with F77 libs.
16419 2001-07-05  Pavel Roskin  <proski@gnu.org>
16421         * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
16422         after using break.
16423         (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
16424         linking.
16426 2001-07-05  Akim Demaille  <akim@epita.fr>
16428         * Makefile.am (move_if_change): New.  Use it instead of `mv'.
16429         (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
16430         Makes' lives.
16431         Reported by Nicolas Joly.
16433 2001-07-04  Akim Demaille  <akim@epita.fr>
16435         * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
16436         up.
16437         * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
16438         warnings from compilers.
16439         * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
16440         for all the compilers, not only GNU.  Hence move from here...
16441         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
16443 2001-07-04  Akim Demaille  <akim@epita.fr>
16445         * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
16446         (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
16447         AC_COMPILE_IFELSE.
16449 2001-07-04  Akim Demaille  <akim@epita.fr>
16451         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
16452         the ``strings.h'' change claimed below.
16454 2001-07-04  Akim Demaille  <akim@epita.fr>
16456         * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
16458 2001-07-04  Akim Demaille  <akim@epita.fr>
16460         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
16461         strings.h if usable with string.h.
16462         Suggested by Paul Eggert.
16464 2001-07-04  Akim Demaille  <akim@epita.fr>
16466         * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
16467         From Jens Petersen.
16469 2001-07-03  Akim Demaille  <akim@epita.fr>
16471         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
16472         etc. in the log.
16474 2001-07-03  Akim Demaille  <akim@epita.fr>
16476         * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
16477         compiler, not the preprocessor.
16478         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
16479         dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
16480         the right thing.
16481         * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
16482         earlier if there are.
16484 2001-07-03  Akim Demaille  <akim@epita.fr>
16486         * autoscan.in ($initfile): Remove.
16487         (&find_file): Rename as...
16488         (&scan_file): this.
16489         Immediately scan the current file, instead of gathering them, and
16490         later having them handled by &scan_files.
16491         (&scan_files): Merely invoke Find::File.
16492         Adjust.
16494 2001-07-02  Akim Demaille  <akim@epita.fr>
16496         * autoscan.in: Formatting changes, matching the invocation order.
16497         (File::Find): Use it instead of Perl 4's `find.pl'.
16498         (&wanted): Rename as...
16499         (&find_file): this.
16501 2001-07-01  Pavel Roskin  <proski@gnu.org>
16503         * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
16504         break in the argument to AC_TRY_LINK_FUNC.
16505         (AC_F77_MAIN): Remove conftest* after using break in the
16506         argument to AC_TRY_LINK.
16508 2001-07-01  Steven G. Johnson  <stevenj@alum.mit.edu>
16510         Add alternate 'main' routine detection for linking C/C++ with Fortran,
16511         fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
16513         * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
16514         dummy alternate main is required even if the user provides her own
16515         'main'.
16516         (AC_F77_MAIN): New macro to detect whether it is possible to
16517         provide an alternate 'main' function name, using the 'main' from
16518         the Fortran libraries.
16519         (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
16520         cross-language link tests can be performed successfully.
16521         (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN.  Also put $FLIBS
16522         after $LIBS, for consistency; this should be the general rule since
16523         the user may want to link to Fortran libraries that require $FLIBS.
16524         * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
16526 2001-06-29  Pavel Roskin  <proski@gnu.org>
16528         * atgeneral.m4 (AT_CHECK): Add a newline to the end of
16529         at-stdout and at-stderr instead of removing the newline
16530         from the echo output, which is not guaranteed to work.
16532 2001-06-28  Jens Petersen  <petersen@redhat.com>
16534         * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
16535         confdefs.h when non-zero.
16537 2001-06-28  Akim Demaille  <akim@epita.fr>
16539         * configure.in: Bump to 2.50c.
16541 2001-06-26  Akim Demaille  <akim@epita.fr>
16543         Version 2.50b.
16545 2001-06-26  Akim Demaille  <akim@epita.fr>
16547         Version 2.50a.
16549 2001-06-25  Pavel Roskin  <proski@gnu.org>
16551         * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
16552         argument, AUTOCONF-FLAGS.
16553         * tests/mktests.sh (update_exclude_list): Add
16554         AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
16555         * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
16556         AC_FUNC_WAIT3 with "-W no-obsolete".
16558 2001-06-25  Akim Demaille  <akim@epita.fr>
16560         * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
16562 2001-06-25  Akim Demaille  <akim@epita.fr>
16564         * autoscan.in (%macro): Now maps from word to list of macros.
16565         (&init_tables): Die when a word which is already handled by
16566         explicit macros is mapped to the default macro.
16567         (&print_unique): Remove, inlined in...
16568         (&output_kind): here.
16569         (File::Basename): Use it.
16570         (&output): Sort the CONFIG_FILES.
16571         * acheaders: Normalize.
16572         * acfunctions: Likewise.
16574 2001-06-25  Akim Demaille  <akim@epita.fr>
16576         * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
16577         characteristics in the logs.
16578         Suggested by Mo DeJong.
16580 2001-06-24  Akim Demaille  <akim@epita.fr>
16582         * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
16583         (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
16584         * doc/autoconf.texi (Autoconf 2.13): New section.
16586 2001-06-24  Akim Demaille  <akim@epita.fr>
16588         * autoconf.in (Task traces): Separate the error messages from the
16589         traces to improve robustness.
16591 2001-06-23  Akim Demaille  <akim@epita.fr>
16593         * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
16594         three as failures are unlikely, and speed matters.
16596 2001-06-23  Akim Demaille  <akim@epita.fr>
16598         * doc/autoconf.texi (Redefined M4 Macros): New.
16600 2001-06-23  Akim Demaille  <akim@epita.fr>
16602         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
16603         inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
16604         5.3.
16606 2001-06-23  Paolo Bonzini  <bonzini@gnu.org>
16608         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
16609         config.status targets to after the evaluation of the INIT-CMDS.
16610         Double quote config.status targets (used to be single quoted).
16612 2001-06-23  Akim Demaille  <akim@epita.fr>
16614         * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
16615         Check the content of the created file.
16616         Check the ./config.status command line invocation.
16618 2001-06-23  Akim Demaille  <akim@epita.fr>
16620         * tests/foreign.at (Libtool): Reject prehistoric versions.
16622 2001-06-23  Akim Demaille  <akim@epita.fr>
16624         * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
16625         preexisting files matching a.*.
16627 2001-06-23  Akim Demaille  <akim@epita.fr>
16629         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
16630         stderr.
16631         * doc/autoconf.texi (AC_ARG_VAR): Update.
16633 2001-06-21  Akim Demaille  <akim@epita.fr>
16635         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
16636         precious variables have changed.
16637         * tests/torture.at (AC_ARG_VAR): Adjust.
16639 2001-06-21  Akim Demaille  <akim@epita.fr>
16641         ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
16642         but some sed choke on multiple `;', and other tools (e.g.,
16643         Automake), include the separator themselves.
16645         * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
16647 2001-06-19  Tim Van Holder  <tim.van.holder@pandora.be>
16649         * doc/autoconf.texi (Functions Portability): Rename as...
16650         (Function Portability): this.
16651         (Function Portability): Document potential problems with unlink().
16653 2001-06-19  Paul Eggert  <eggert@twinsun.com>
16655         * NEWS, doc/autoconf.texi: Document quadrigraphs.
16657 2001-06-18  Akim Demaille  <akim@epita.fr>
16659         * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
16661 2001-06-18  Ruediger Kuhlmann  <info@ruediger-kuhlmann.de>
16663         * acfunctions.m4: (AC_FUNC_VFORK) rename as...
16664         (_AC_FUNC_VFORK): this.
16665         Remove AC_DEFINEs and don't guess cross-compilation values.
16666         (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
16667         (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
16668         define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
16669         vfork doesn't work.
16670         Guess values if cross-compiling, but warn.
16671         * acfunctions: Add AC_FUNC_FORK.
16672         * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
16673         and vfork appropriately.
16675 2001-06-18  Akim Demaille  <akim@epita.fr>
16677         * doc/autoconf.texi (Functions Portability): New section.
16679 2001-06-18  Akim Demaille  <akim@epita.fr>
16681         * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
16682         in $M4.
16683         Suggested by Andreas Schwab.
16685 2001-06-18  Akim Demaille  <akim@epita.fr>
16687         * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
16688         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
16689         (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
16690         (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
16691         Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
16692         and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
16693         (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
16694         the converse).
16696 2001-06-18  Akim Demaille  <akim@epita.fr>
16698         * doc/autoconf.texi (ms): New index.
16699         (Macro Index): Rename as...
16700         (Autoconf Macro Index): this.
16701         (M4 Macro Index): New appendix.
16702         (Programming in M4): New chapter.
16703         Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
16704         (Quoting): Rename as...
16705         (M$ Quotation): this.
16706         Be part of `Programming in M4).
16708 2001-06-18  Nicolas Joly  <njoly@pasteur.fr>
16710         * tests/torture.at (AC_ARG_VAR): Set variables and export them
16711         in separate statements for compatibility with Tru64 v5.1.
16713 2001-06-17  Akim Demaille  <akim@epita.fr>
16715         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
16716         current values of the precious variables, not the previously
16717         cached values.
16718         Pass precious variables which are set to config.status.
16719         * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
16720         * tests/torture.at (AC_ARG_VAR): New.
16722 2001-06-15  Paul Eggert  <eggert@twinsun.com>
16724         * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
16725         AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
16726         and explain why and how to replace them.
16727         * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
16728         * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
16730 2001-06-15  Akim Demaille  <akim@epita.fr>
16732         `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
16733         Reported by Bruno Haible.
16735         * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
16736          (_AC_ARG_VAR_PRECIOUS): to here.
16738 2001-06-15  Pavel Roskin  <proski@gnu.org>
16740         * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
16741         an unused pointer use cast to this type and `if' statement to
16742         avoid warnings from the compiler.
16743         (AC_HEADER_TIME): Likewise.
16744         * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
16745         in `if' statement to avoid warnings from the compiler. Declare
16746         ac_aggr static to avoid the need to initialize it.
16748 2001-06-14  Akim Demaille  <akim@epita.fr>
16750         * doc/autoconf.texi (Portable Shell): Move to follow `Writing
16751         Macros'.
16753 2001-06-13  Akim Demaille  <akim@epita.fr>
16755         * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
16756         Suggested by Alexander Mai.
16758 2001-06-13  Akim Demaille  <akim@epita.fr>
16760         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
16761         sys/types.h and sys/stat.h, and check for them.
16763 2001-06-13  Akim Demaille  <akim@epita.fr>
16765         * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
16766         INCLUDES.
16768 2001-06-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
16770         * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
16771         succeeds and only try adding libdnet upon a failure.
16773 2001-06-12  Akim Demaille  <akim@epita.fr>
16775         * autoscan.in (&output_kind): Output the comment only if it exists.
16776         (%kind_comment): Add entry for `programs'.
16777         (&output_programs): Use &output_kind.
16778         (&output_functions, &output_identifiers, &output_headers)
16779         (&output_programs): Inline, and remove.
16781 2001-06-12  Akim Demaille  <akim@epita.fr>
16783         * autoscan.in (%kind_comment): New.
16784         (output_kind): New.
16785         (output_functions, output_identifiers, output_headers): Use it.
16787 2001-06-12  Akim Demaille  <akim@epita.fr>
16789         * autoscan.in (&print_unique): Take `$kind' and `$word' as
16790         arguments, to factor indirections into `%macro' and `%used'.
16791         (%generic_macro): Fix a typo.
16793 2001-06-12  Akim Demaille  <akim@epita.fr>
16795         * aclibraries: New.
16796         * autoscan.in (@kinds): Add `libraries'.
16797         Use `@kinds' instead of hard coded lists.
16798         (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
16799         Remove, replaced by...
16800         (%used): this.
16802 2001-06-12  Akim Demaille  <akim@epita.fr>
16804         * autoscan.in (%functions_macros %headers_macros)
16805         (%identifiers_macros %programs_macros %makevars_macros): Remove,
16806         replaced by...
16807         (%macro): New.
16809 2001-06-11  Raja R Harinath  <harinath@cs.umn.edu>
16811         * aclang.m4 (AC_NO_EXECUTABLES): Override
16812         _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
16814 2001-06-11  Akim Demaille  <akim@epita.fr>
16816         * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
16817         trailing new line.
16818         Reported by Andreas Schwab.
16820 2001-06-11  Akim Demaille  <akim@epita.fr>
16822         * Makefile.am, Makefile.maint: Typos.
16824 2001-06-09  Akim Demaille  <akim@epita.fr>
16826         * doc/autoconf.texi (Here-Documents): New section, gathering
16827         documentation about here-documents.
16828         Use `href', not `uref', and other changes.
16830 2001-06-09  Akim Demaille  <akim@epita.fr>
16832         * doc/autoconf.texi (Portable Shell Programming): Promoted as a
16833         chapter.
16835 2001-06-09  Akim Demaille  <akim@epita.fr>
16837         * doc/autoconf.texi (Limitations of Builtins): Complete the
16838         description of the here-docs penalties with Alexandre Oliva's
16839         explanations.
16841 2001-06-01  Paul Eggert  <eggert@twinsun.com>
16843         * doc/autoconf.texi: Talk about here documents and speedups.
16844         Do not use "echo" on arbitrary strings.
16845         Spell "here-documents" consistently with the standard.
16847 2001-06-09  Akim Demaille  <akim@epita.fr>
16849         * doc/autoconf.texi (Concept Index): Introduce it.
16850         Regenerate the menus.
16852 2001-06-09  Akim Demaille  <akim@epita.fr>
16854         * Makefile.maint, GNUmakefile: New, from Jim Meyering.
16855         * config/prev-version.txt: New.
16856         * config/move-if-change: New, for GNU libc.
16858 2001-06-06  Pavel Roskin  <proski@gnu.org>
16860         * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
16862 2001-06-06  Akim Demaille  <akim@epita.fr>
16864         * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
16865         properly when $1 is not a literal.
16866         Fixes PR Autoconf/187, reported by Bram Moolenaar.
16868 2001-06-06  Akim Demaille  <akim@epita.fr>
16870         Invoking AC_COPYRIGHT before AC_INIT fails.
16872         * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
16873         * acgeneral.m4 (_m4_divert(VERSION_FSF))
16874         (_m4_divert(VERSION_USER)): New.
16875         (AC_COPYRIGHT): $2 is the diversion to use.
16876         (_AC_INIT_COPYRIGHT): Use the FSF diversion.
16877         (AC_INIT): Remove dead comments as now it's commutative.
16879 2001-06-06  Akim Demaille  <akim@epita.fr>
16881         * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
16882         PR autoconf/187.
16884 2001-06-05  Akim Demaille  <akim@epita.fr>
16886         * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
16887         can be empty.
16888         `*dir' variables cannot be NONE.
16889         Reported by Mark Kettenis.
16891 2001-06-05  Paul Eggert  <eggert@twinsun.com>
16893         * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
16895 2001-06-04  Akim Demaille  <akim@epita.fr>
16897         * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
16898         (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
16899         (AC_TR_SH): Move as...
16900         * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
16901         (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
16902         (AS_TR_SH): these.
16903         (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
16904         (_AS_TR_SH_PREPARE): New.
16905         (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
16906         * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
16908 2001-06-02  Akim Demaille  <akim@epita.fr>
16910         * Makefile.am (.m4.m4f): Pass the options first.
16911         Fixes PR autoconf/182.
16913 2001-06-02  Nathan Sidwell  <nathan@codesourcery.com>
16915         GNU getopt, when POSIXLY_CORRECT does not permute options and
16916         arguments.  So pass the options first.
16917         Fixes PR autoconf/184.
16919         * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
16920         (run_m4): Remove files.
16921         (run_m4f): Remove.
16922         Update remainder of script to use them.
16923         (for warning in): Do not use a literal comma as it will not be
16924         split by IFS.
16926 2001-06-02  Christian Marquardt  <marq@gfz-potsdam.de>
16928         * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
16929         Fortran compilers to check.
16930         (_AC_PROG_F77_V): Add '-###' as a possible option to print
16931         information on library and object files.
16932         (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
16933         to check.
16935 2001-06-02  Akim Demaille  <akim@epita.fr>
16937         * autom4te.in (Request::@request): Declare with `vars', not `my',
16938         as it prevents updates via `do FILENAME'.
16940 2001-06-02  Akim Demaille  <akim@epita.fr>
16942         * configure.in (standards_texi): Remove, dead code.
16944 2001-06-02  Akim Demaille  <akim@epita.fr>
16946         * autom4te.in: New.
16948 2001-06-02  Pavel Roskin  <proski@gnu.org>
16950         * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
16951         for signals other than 0 - exit with code 1.
16952         * m4sh.m4 (AS_TMPDIR): Likewise.
16953         * autoconf.in: Likewise. Also don't rely on exit == exit $?.
16954         * autoheader.in: Likewise.
16955         * autoreconf.in: Likewise.
16956         * tests/torture.at (Signal handling): New test for the above.
16958 2001-06-01  Akim Demaille  <akim@epita.fr>
16960         * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
16961         message.
16963 2001-05-31  Akim Demaille  <akim@epita.fr>
16965         * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
16966         Add copyright and comments.
16967         * acheaders: Add stdint.h.
16968         Suggested by Paul Eggert.
16970 2001-05-31  Akim Demaille  <akim@epita.fr>
16972         * atgeneral.m4 (AT_INIT): Use $SHELL.
16973         * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
16975 2001-05-31  Akim Demaille  <akim@epita.fr>
16977         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
16978         stdint.h.
16979         From Paul Eggert and Lars Hecking.
16981 2001-05-31  Akim Demaille  <akim@epita.fr>
16983         * tests/base.at: Adjust line numbers in error messages.
16985 2001-05-31  Akim Demaille  <akim@epita.fr>
16987         * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
16988         to emit the bangshe line.
16989         Reported by David Carter.
16991 2001-05-30  Steven G. Johnson  <stevenj@alum.mit.edu>
16993         * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
16994         Fortran (95) compilers to check.
16996 2001-05-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
16998         * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
16999         Macro Archive URL.
17001 2001-05-23  Pavel Roskin  <proski@gnu.org>
17003         * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
17004         _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
17005         (AC_PROG_CXXCPP): Likewise.
17007 2001-05-22  Akim Demaille  <akim@epita.fr>
17009         * config: New directory.
17010         * configure.in: AC_CONFIG_AUX_DIR it.
17011         * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
17013 2001-05-22  Akim Demaille  <akim@epita.fr>
17015         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
17016         * autoupdate.in: Specify the Emacs mode.
17017         * acversion.m4.in: Rename as...
17018         * acversion.m4: this.
17019         * tests/Makefile.am (CLEANFILES): More garbage.
17021 2001-05-22  Akim Demaille  <akim@epita.fr>
17023         * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
17024         Rename as...
17025         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
17026         these.
17028 2001-05-21  Akim Demaille  <akim@epita.fr>
17030         * configure.in: Bump to 2.50a.
17033         -----
17035         Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free
17036         Software Foundation, Inc.
17038         Copying and distribution of this file, with or without
17039         modification, are permitted provided the copyright notice and this
17040         notice are preserved.