Add m4_curry.
[autoconf.git] / ChangeLog
blob79100bc2219484ff998e1daa29e4acade4f74c6a
1 2008-10-17  Eric Blake  <ebb9@byu.net>
3         Add m4_curry.
4         * lib/m4sugar/m4sugar.m4 (m4_curry, _m4_curry): New macros.
5         * tests/m4sugar.at (m4@&t@_map_args): Rename...
6         (m4@&t@_map_args and m4@&t@_curry): ...and add currying tests.
7         * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
8         currying as a way to add parameters.
9         (Evaluation Macros) <m4_curry>: Document the new macro.
10         * NEWS: Likewise.
12         Improve suggested test filtering.
13         * lib/m4sugar/m4sh.m4 (_AS_DETECT_SUGGESTED_PRUNE): New macro,
14         extracted from...
15         (_AS_DETECT_BETTER_SHELL): ...here, to use faster API.  No need to
16         check for an empty required set.
18         Add m4_set_map.
19         * lib/m4sugar/m4sugar.m4 (m4_set_foreach): New macro.
20         * tests/m4sugar.at (m4@&t@_set): Enhance test.
21         * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
22         Document it.
23         * NEWS: Likewise.
25         Document m4_map_args.
26         * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair):
27         Rename...
28         (m4_map_args, m4_map_args_pair): ...to these names, and document.
29         (m4_version_unletter): Use the interface.
30         * lib/m4sugar/foreach.m4 (m4_map_args, m4_map_args_pair)
31         (_m4_map_args_, _m4_map_args_pair_, _m4_map_args_pair_end):
32         Perform same renames.
33         * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Adjust callers.
34         * tests/m4sugar.at (m4@&t@_map_args): New test.
35         (recursion): Adjust caller.
36         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Likewise.
37         * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
38         this interface.
39         * NEWS: Mention the new macros.
41 2008-10-17  Eric Blake  <ebb9@byu.net>
43         Reduce vertical whitespace in configure.
44         * lib/autoconf/general.m4 (AC_INIT): Silence newline output during
45         m4 side effect initializations.
46         * lib/m4sugar/m4sh.m4 (AS_PREPARE): Likewise.
48 2008-10-17  Eric Blake  <ebb9@byu.net>
50         Document AS_VAR interfaces.
51         * doc/autoconf.texi (Programming in M4sh): M4sh is now prime-time.
52         (Polymorphic Variables): New node.
53         * NEWS: Update accordingly.
55         Test AS_VAR interfaces.
56         * tests/m4sh.at (AS@&t@_VAR): New test.
57         * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Force expansion of
58         _AS_TR_SH_PREPARE at top level, rather than argument collection.
59         (AS_TR_SH): Support command substitution.
61         Add AS_VAR_COPY.
62         * lib/m4sugar/m4sh.m4 (AS_VAR_COPY): New macro.
63         (AS_VAR_IF): Use it, instead of the broken AS_VAR_GET.
64         * lib/autoconf/general.m4 (AC_CACHE_CHECK): Likewise.
65         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
66         * lib/autotest/general.m4 (_AT_FINISH): Likewise.
68         Sort AS_VAR_* interfaces.
69         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Reduce output to one line.
70         (AS_VAR_TEST_SET, AS_VAR_SET, AS_VAR_SET_IF, AS_VAR_POPDEF): Sort,
71         no code changes.
73 2008-10-16  Eric Blake  <ebb9@byu.net>
75         Allow comments before functions emitted by m4sh.
76         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Add comment
77         argument.  Supply closing comment, to ease readability.
78         (_AS_MKDIR_P_PREPARE): Adjust caller.
79         (_AS_UNSET_PREPARE): Add comment.
81         Add AS_FUNCTION_DESCRIBE.
82         * lib/m4sugar/m4sh.m4 (AS_FUNCTION_DESCRIBE): New macro.
83         * lib/autotest/general.m4 (AT_INIT): Use it.
85 2008-10-16  Eric Blake  <ebb9@byu.net>
87         Speed up m4_qlen with caching.
88         * lib/m4sugar/m4sugar.m4 (_m4_qlen): Renamed from old m4_qlen.
89         (m4_qlen): Cache results for speed.
91 2008-10-16  Paolo Bonzini  <bonzini@gnu.org>
93         Add a testcase using more then one language.
94         * tests/compile.at (Multiple languages): New test.
96 2008-10-16  Paolo Bonzini  <bonzini@gnu.org>
98         Fix Libtool's config.lt test.
99         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Disable AS_REQUIRE while
100         expanding it.
102 2008-10-15  Eric Blake  <ebb9@byu.net>
104         Break circular require chain in _AS_LINENO_PREPARE.
105         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Ensure that logging is
106         disabled when reporting LINENO failure, since logging requires
107         LINENO.
108         * doc/autoconf.texi (Initialization Macros): Recommend m4_pushdef,
109         not m4_rename, since the latter is undocumented.
110         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid
111         m4_rename, as it does not yet handle pushdef stacks.
112         Reported by Ralf Wildenhues.
114 2008-10-15  Eric Blake  <ebb9@byu.net>
116         Cleanups to previous patches.
117         * doc/autoconf.texi (Portable Shell): Minor edits.
118         (Limitations of Builtins): Touch up wording.
119         * lib/m4sugar/m4sh.m4 (AS_LINENO_PUSH): Nuke trailing whitespace.
120         (_AS_SHELL_SANITIZE): Wrap comments less than 80 columns.
122 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
124         Updates to shell portability documentation.
125         * doc/autoconf.texi: Updates all references to "Portable Shell" and
126         "Limitations of Builtins" to use three-argument commands.
127         (Programming in M4sh): Document AS_ECHO, AS_ECHO_N, AS_UNSET.
128         (Portable Shell): Move here discussion about "Where is the POSIX
129         shell?"  Mention that M4sh provides a SVR2 shell and takes care
130         of unsetting variables if necessary.  Talk about M4sh and not only
131         Autoconf-generated scripts.
132         (Special Shell Variables): Talk about M4sh and not only
133         Autoconf-generated scripts.  Don't talk about things that Autoconf
134         does not do.  Mention problems of $LINENO with shell functions.
135         (Limitations of Builtins).  Mention AS_ECHO and AS_ECHO_N.  Move
136         discussion of eval bugs before discussion on proper use of eval.
137         Mention AS_IF.  Reword why not to use "shift N".  Mention "foo=;
138         unset foo" trick.  Include M4sh code that unsets MAIL for Bash 2.01.
139         * NEWS: Update list of documented M4sh macros.
141 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
143         Assume a (possibly buggy) `unset' is present after a
144         `better shell' was found.
145         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Use AS_UNSET.
146         * lib/autoconf/programs.m4 (AC_PROG_SED): Use AS_UNSET.
147         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Provide $as_unset as an
148         alias for AS_UNSET, for backwards compatibility.
149         (_AS_DETECT_BETTER_SHELL): Set BASH_ENV and ENV to /dev/null in case
150         the shell does not support unset.
151         (_AS_SHELL_SANITIZE): Work around Bash 2.01 bugs.  Unset BASH_ENV.
152         (AS_INIT, _AS_PREPARE, AS_PREPARE): Call it.
153         (AS_UNSET): Assume it is there but it might fail if the variable is
154         not set.  Use it throughout instead of $as_unset.
156 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
158         Turn AS_SHELL_SANITIZE into a for-Libtool-only wrapper.
159         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED): Remove
160         m4_require of _AS_DETECT_BETTER_SHELL.
161         (_AS_CLEANUP): Add it here.
162         (_AS_DETECT_BETTER_SHELL): Just expand the test instead of appending it
163         to _AS_CLEANUP.
164         (_AS_SHELL_SANITIZE): New name of the old AS_SHELL_SANITIZE macro.
165         (AS_SHELL_SANITIZE): New macro hacking around Libtool misuse.
166         (AS_PREPARE): Use _AS_SHELL_SANITIZE.
167         (AS_INIT): Add m4_provide of itself.
169 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
171         Use "test x$foo = xyes" to avoid upsetting Libtool's sh.test.
172         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_SHELL_FN_WORK): Use
173         "test x$foo = xyes".
175 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
177         Trim down the size of the better-shell test.
178         * lib/m4sugar/m4sh.at (_AT_DETECT_BETTER_SHELL): Store the common
179         snippets into shell variables.
180         (_AS_RUN): Rewrite.
182 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
184         Support a stack of LINENO values for AS_MESSAGE.
185         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): If defined, use $as_lineno as
186         the line number emitted to the log file.
187         (AS_LINENO_PUSH, AS_LINENO_POP): New.
188         * tests/m4sh.at (LINENO Stack): New test.
190 2008-10-14  Eric Blake  <ebb9@byu.net>
192         Correct previous patch.
193         * doc/autoconf.texi (Shell Functions): Bash obeys Posix, after
194         all.
196         Document shell function environment pitfall.
197         * doc/autoconf.texi (Shell Functions): Document bugs in bash,
198         Solaris /bin/sh.
200 2008-10-14  Paolo Bonzini  <bonzini@gnu.org>
202         Use m4_require to implement AS_REQUIRE.
203         * lib/m4sugar/m4sugar.m4 (_m4_require_call): Accept a third argument.
204         (m4_require): Pass it.
205         (m4_divert_require): New.
206         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Rewrite using m4_divert_require.
207         Remove comment about differences with m4_require.
208         * tests/m4sh.at (AS_REQUIRE_SHELL_FN and m4_require): Update to test
209         the expected behavior.
210         (Nested AS_REQUIRE_SHELL_FN): New test.
212 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
214         Test AS_LINENO_PREPARE.
215         * tests/m4sh.at: Use documented AS_LINENO_PREPARE.
217 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
219         Test AS_ME_PREPARE.
220         * tests/m4sh.at (as_me): New test.
222 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
224         Add and document AS_INIT_GENERATED.
225         * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): New.
226         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use it.
227         * doc/autoconf.texi (Initialization macros): Document it.
229 2008-10-13  Eric Blake  <ebb9@byu.net>
231         Use consistent shell function style.
232         * lib/m4sugar/m4sh.m4 (_AS_PREPARE, AS_REQUIRE_SHELL_FN)
233         (_AS_SHELL_FN_WORK): Imitate GNU Coding Standards for C
234         functions.
236 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
238         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Place names of
239         contributors under m4 rather than shell comments.
241 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
243         * lib/m4sugar/m4sh.m4 (AS_ME_PREPARE, AS_LINENO_PREPARE): New.
244         * doc/autoconf.texi (Initialization macros): Document them.
245         (Portable Shell): Refer to AS_LINENO_PREPARE.
246         * NEWS: Mention them.
248         * bin/autoconf.as: Invoke AS_ME_PREPARE.
249         * lib/autotest/general.m4: Likewise.
251 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
253         * doc/autoconf.texi (Programming in M4sh): Make its own chapter.
255 2008-10-10  Eric Blake  <ebb9@byu.net>
257         Fix _AS_MKDIR_P usage.
258         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P): Correct documentation to
259         match implementation.
260         (_AS_PREPARE, _AS_MKDIR_P_PREPARE): Adjust callers.
261         * doc/autoconf.texi (Programming in M4sh) <AS_MKDIR_P>: Tweak
262         wording to better match behavior.
264 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
266         * doc/autoconf.texi: Be less wary of shell functions.
267         * NEWS: Document the increased use of shell functions.
269 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
271         * m4sugar/m4sh.m4 (_AS_MKDIR_P): New, from AS_MKDIR_P.  Adjust
272         meaning of as_mkdir_p to be `false' or a full `mkdir -p' command.
273         (AS_MKDIR_P): Just dispatch to as_func_mkdir_p.
274         (_AS_PREPARE): Define shell functions.
275         (_AS_MKDIR_P_PREPARE): Set as_mkdir_p according to the above change.
276         Define shell functions.
278 2008-10-09  Eric Blake  <ebb9@byu.net>
280         Only prepare $as_me if it will be used.
281         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Avoid unconditional
282         preparation.
283         (_AS_ECHO_LOG): Depend on $LINENO preparation.
284         (AS_MESSAGE): Depend on $as_me preparation.
285         (AS_TMPDIR): Use AS_ERROR, rather than a hand-rolled copy.
287 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
289         * m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Delay setting as_me
290         until the M4SH-INIT diversion using _AS_ME_PREPARE.
291         (_AS_PREPARE): Invoke _AS_EXPR_PREPARE before _AS_BASENAME_PREPARE
292         and _AS_DIRNAME_PREPARE, and _AS_BASENAME_PREPARE and _AS_ME_PREPARE
293         before _AS_LINENO_PREPARE.
294         (AS_PREPARE): Include all the AS_REQUIREs manually.
295         (_AS_ME_PREPARE): New.
296         (_AS_LINENO_PREPARE): Use m4_defun.
298 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
300         * m4sugar/m4sh.m4 (_AS_BASENAME_EXPR, _AS_DIRNAME_EXPR): Do not
301         require _AS_EXPR_PREPARE.
302         (_AS_BASENAME_PREPARE, _AS_DIRNAME_PREPARE): Do it here.
303         (_AS_PREPARE): Add _AS_BASENAME_PREPARE.
305 2008-10-08  Eric Blake  <ebb9@byu.net>
307         Resync from gnulib.
308         * cfg.mk (cvs_executable_files, cvs_files): Rewrite...
309         (fetch): ...into new target.
310         (executable-update): Delete, now that it is unused.
311         * maint.mk (update, local_updates, cvs_files, gnulib_repo)
312         (wget-update, cvs-update): Likewise.
313         * HACKING (Update the foreign files): Document new procedure.
314         * GNUmakefile: Resync from upstream, via new 'make fetch'.
315         * build-aux/config.guess: Likewise.
317 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
319         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Remove.
320         (AS_INIT): Do not call it.
322 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
324         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Expand
325         _AS_UNSET_PREPARE in M4SH-SANITIZE.
327 2008-10-08  Eric Blake  <ebb9@byu.net>
329         Avoid repeating required shell tests in suggested set.
330         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED):
331         Use m4_set, rather than m4_expand_once/m4_append.
332         (_AS_DETECT_SUGGESTED): Adjust to new storage layout, and filter
333         required tests out of suggested tests.
334         Reported by Paolo Bonzini.
336 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
338         Add m4sh keyword to all m4sh.at tests.
339         * tests/m4sh.at: Add m4sh keyword to all tests.  Fix comment
340         pastos.
342 2008-10-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
344         Document AS_VERSION_COMPARE.
345         * doc/autoconf.texi (Programming in M4sh): Document
346         AS_VERSION_COMPARE.
347         * NEWS: Update.
349         Do not write to testsuite log fd before initialization.
350         * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD, AT_JOB_FIFO_FD):
351         Define fds only when initializing the log fd so early error
352         messages do not try to write to it.
353         * tests/autotest.at (Startup error messages): New test.
354         * NEWS: Document this 2.63 regression.
356 2008-10-07  Eric Blake  <ebb9@byu.net>
358         Ensure _AS_CLEANUP is defined.
359         * lib/m4sugar/m4sh.m4 (_AS_CLEANUP): Give initial definition.
360         * tests/m4sh.at (AS@&t@_INIT cleanup): Expose the need for this.
362         Improve m4sh maintainability.
363         * lib/m4sugar/m4sh.m4: Sort macros for sanitizing the shell; no
364         code change.
366         Fix m4 quoting in previous patch.
367         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Determine diversion
368         name prior to invoking AS_REQUIRE.
369         Reported by Ralf Wildenhues.
371 2008-09-18  Paolo Bonzini  <bonzini@gnu.org>
372         and Eric Blake  <ebb9@byu.net>
374         Add a separate diversion for shell functions.
375         * lib/m4sugar/m4sh.m4 (M4SH-INIT-FN): New diversion.
376         (AS_REQUIRE): Accept diversion parameter.
377         (AS_REQUIRE_SHELL_FN): Use it.
379 2008-10-06  Eric Blake  <ebb9@byu.net>
381         Add m4_default_quoted.
382         * lib/m4sugar/m4sugar.m4 (m4_default_quoted): New macro.
383         (m4_for, m4_expand_once, m4_text_wrap, m4_text_box): Use it.
384         * doc/autoconf.texi (Conditional constructs): Document it.
385         * NEWS: Likewise.
387         Fix build with case-insensitive make, again.
388         * Makefile.am (pkgdata_DATA): Protect by MAKE_CASE_SENSITIVE.
389         Reported via Keith Marshall, originally by newthinker in
390         <http://thread.gmane.org/gmane.comp.gnu.mingw.user/27725>.
392 2008-10-06  Bruno Haible  <bruno@clisp.org>
394         Warn about /usr/ucb on Solaris.
395         * doc/install.texi (Particular Systems): Recommend putting
396         /usr/ucb late in PATH, if at all.
398 2008-10-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
400         Fix more testsuite hang corner cases.
401         * lib/autotest/general.m4: Use the serial code path if no test
402         is to be run.
403         * tests/autotest.at (parallel test execution): Test -j and -jN
404         with `-k notmatched'.
406 2008-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
408         Fix hang with `testsuite -k notmatched'.
409         * lib/autotest/general.m4: Do not reset $at_jobs if it is equal
410         to one.  Fixes hang with `-k notmatched'.
412 2008-10-02  Eric Blake  <ebb9@byu.net>
414         Document more binary file portability traps.
415         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Remind
416         reader that NUL and sed don't always mix.
417         <tr>: Mention Solaris /usr/ucb/tr bug with \0.
419 2008-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
421         Implement parallel Autotest test execution: testsuite --jobs.
422         * lib/autotest/general.m4 (AT_JOB_FIFO_FD): New macro.
423         (AT_INIT): <at_jobs>: New variable.
424         Accept -j, -jN, --jobs[=N], document them in --help output.
425         Implement parallel driver loop using a FIFO, enabled with --jobs
426         and if mkfifo works; otherwise, fall back to sequential loop.
427         (AT_SETUP): Store, do not output summary progress line if
428         parallel.
429         * tests/autotest.at (parallel test execution, parallel truth)
430         (parallel fallacy, parallel skip): New tests.
431         * doc/autoconf.texi (testsuite Invocation): Document -j, --jobs,
432         the mkfifo requirement, and that --errexit may cause concurrent
433         jobs to finish.
434         * NEWS: Update.
436 2008-09-20  Eric Blake  <ebb9@byu.net>
438         Fix sample isinf definition.
439         * doc/autoconf.texi (Function Portability) <isinf>: Filter out NaN
440         first.
441         * THANKS: Update.
442         Reported by David Cournapeau.
444 2008-09-16  Eric Blake  <ebb9@byu.net>
446         Fix Erlang regression, introduced 2006-11-17.
447         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Avoid M4 comment
448         caused by underquoting.
449         * NEWS: Mention this fix.
450         * THANKS: Update.
451         Reported by BJ Terry.
453 2008-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
455         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Improve a bit.
457         Mention Solaris sh ':' redirection bug.
458         * doc/autoconf.texi (File Descriptors): Redirecting ':'
459         in a loop causes bogus optimization with Solaris sh.
461 2008-09-10  Eric Blake  <ebb9@byu.net>
463         Avoid testsuite bug when autom4te cache is disabled by user.
464         * tests/tools.at (autoconf: forbidden tokens, basic): Enable
465         cache, even if user normally disabled it.
466         Reported by Bruno Haible.
468         Avoid testsuite bug in presence of verbose config.site.
469         * tests/base.at (Input/Output): Nullify config.site during test.
470         Reported by Bob Friesenhahn.
472 2008-09-09  Eric Blake  <ebb9@byu.net>
474         Release Version 2.63.
475         * NEWS: Mention the release.
477         Formatting tweaks to the manual.
478         * doc/autoconf.texi (Introduction, Systemology)
479         (File System Conventions, Portable C and C++)
480         (Floating Point Portability): Allow URLs to split as needed.
481         (Indices): Add entries, to work around texinfo bug on indices that
482         start too close to a page break.
483         (Particular Functions): Mention ftello.
484         (Introduction, Language Choice): Use @enddots at sentence end.
486         Resync from gnulib.
487         * cfg.mk (cvs_executable_files, cvs_files): Update list of files,
488         although for now, they are still manually sync'd.
489         * build-aux/gnupload: Update.
490         * build-aux/config.sub: Likewise.
491         * GNUmakefile: Likewise.
493 2008-09-06  Eric Blake  <ebb9@byu.net>
495         Mention that Automake already supports VPATH.
496         * doc/autoconf.texi (Build Directories): Details in this section
497         only apply to users avoiding automake.
498         * THANKS: Update.
499         Reported by Matej Tyc.
501         Relax tone when warning about cross-compiler names.
502         * lib/autoconf/programs.m4 (_AC_TOOL_WARN): Support cross-compiles
503         with poorly named tools; the issue has been reported too many
504         times in the last four years to pull support.
505         * doc/autoconf.texi (Specifying Names, Generic Programs): Update
506         documentation accordingly.
507         * THANKS: Update.
508         Reported by Josef Tran and others, wording suggested by Ralf
509         Wildenhues.
511 2008-09-01  Eric Blake  <ebb9@byu.net>
513         Improve AC_C_BIGENDIAN.
514         * doc/autoconf.texi (C Compiler) <AC_C_BIGENDIAN>: Mention that
515         universal builds require a config header.
516         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Enhance comments.  Check
517         AH_HEADER at the last possible moment, so that users can use
518         AC_CONFIG_HEADER after this macro.
519         Reported by Stepan Kasal.
521         Fix manual date information.
522         * doc/autoconf.tex: UPDATED refers to the day the manual was
523         built, not the release date of Autoconf.
524         Based on a bison patch by Akim Demaille.
526 2008-08-27  Eric Blake  <ebb9@byu.net>
528         Fix off-by-one bug in _m4_shiftn.
529         * lib/m4sugar/foreach.m4 (_m4_shiftn): Handle case when shifting
530         all arguments.
531         * tests/m4sugar.at (M4 loops): Test it.
532         Reported by Akim Demaille.
534 2008-08-26  Eric Blake  <ebb9@byu.net>
536         Improve INSTALL formatting.
537         * doc/install.texi [!autoconf]: Ensure first paragraphs are
538         indented like all others in a plain text rendering.
539         * Makefile.am ($(srcdir)/INSTALL): Ensure plaintext formatting.
540         Reported by Bruno Haible.
542 2008-08-26  Stepan Kasal  <skasal@redhat.com>
544         Check for case sensitive make.
545         * m4/make-check.m4 (AC_PROG_MAKE_CASE_SENSITIVE): New macro,...
546         * configure.ac: ... called here.
547         * Makefile.am ($(abs_srcdir)/INSTALL, INSTALL): Return to...
548         ($(srcdir)/INSTALL): ...this, but enclose the rule in
549         "if MAKE_CASE_SENSITIVE".
551 2008-08-26  Eric Blake  <ebb9@byu.net>
553         Update invocation documentation.
554         * doc/autoconf.texi (autoscan Invocation): Mention --debug.
555         (autoreconf Invocation): Mention -v.
556         (autom4te Invocation): Tie --freeze to -F, not -f.
557         (autoupdate Invocation): Mention --prepend-include.
558         * doc/install.texi (configure Invocation): Mention --help=short,
559         --help=recursive, -n/--no-create, --prefix.  Avoid TABs.
560         * bin/autoscan.in ($help): Omit space before `...'.
561         * bin/ifnames.in ($help): Likewise.
562         * bin/autoconf.as (Usage): Likewise.
563         * bin/autoreconf.in ($help): Likewise.
564         * bin/autoheader.in ($help): Likewise.
565         * bin/autom4te.in ($help): Likewise.
566         * bin/autoupdate.in ($help): Likewise.
567         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use
568         `[OPTION]...', rather than `[OPTIONS]'.  Mention --silent.  Indent
569         --file correctly.
571         Don't let frozen __m4_version__ break downgrade to m4 1.4.x.
572         * bin/autom4te.in: Adjust comments, now that we rely on 1.4.5+.
573         (files_to_options): Avoid inheriting __m4_version__ from frozen
574         file if current M4 does not support it.
576 2008-08-25  Eric Blake  <ebb9@byu.net>
578         Adjust to recent m4 1.6 change to support m4_debugmode(d).
579         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Move
580         freeze-time decision of using faster 1.6 implementation...
581         (m4_init): ...to a runtime decision, and add use of new debugmode
582         flag.
584 2008-08-22  Peter O'Gorman  <pogma@thewrittenword.com>
586         Limit AC_C_BIGENDIAN univeral checks to Mac OS X.
587         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Limit the check to
588         __APPLE_CC__ with possible -arch flags.
589         * NEWS: Document it.
591 2008-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
593         * NEWS: Fix typo.
595 2008-08-22  Eric Blake  <ebb9@byu.net>
597         * TODO: Add an item for additional m4sugar looping constructs.
598         Suggested by Ralf Wildenhues.
600         Add reminder to keep dual implementations in sync.
601         * lib/m4sugar/m4sugar.m4: Add comments.
602         * lib/m4sugar/foreach.m4: Likewise.
603         Suggested by Ralf Wildenhues.
605 2008-08-22  Peter Eisentraut  <peter_e@gmx.net>  (tiny change)
607         Format warning and error messages to match GCS.
608         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK)
609         (_AC_INIT_PARSE_ARGS, _AC_CACHE_DUMP): Start warning and error
610         messages with a lowercase letter, end them without punctuation.
611         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Likewise.
612         * lib/autoconf/libs.m4 (AC_PATH_X): Likewise.
613         * lib/autoconf/status.m4 (AC_OUTPUT, _AC_OUTPUT_MAIN_LOOP):
614         Likewise.
615         * tests/fortran.at (GNU Fortran): Likewise.
616         * tests/torture.at (Deep Package): Likewise.
618 2008-08-21  Eric Blake  <ebb9@byu.net>
620         Avoid extra side effects in m4sugar list expansion.
621         * lib/m4sugar/m4sugar.m4 (m4_mapall_sep, m4_list_cmp): Wrap
622         around...
623         (_m4_mapall_sep, _m4_list_cmp_raw): ...new helpers, to avoid
624         duplicate side effects.
625         (m4_version_compare): Adjust caller.
626         * lib/m4sugar/foreach.m4 (m4_list_cmp): Rename...
627         (_m4_list_cmp_raw): ...to match m4sugar.
628         * doc/autoconf.texi (Looping constructs): Document the behavior of
629         side effects.
630         * tests/m4sugar.at (M4 loops, m4@&t@_map, m4@&t@_version_compare):
631         Ensure only one side effect.
632         (recursion): Fix test typo.
633         Reported by Ralf Wildenhues.
635 2008-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
637         * TODO: Add item for compiler default flags.
638         Suggested by Bruno Haible.
640         * tests/m4sh.at (AS_IF and AS_CASE): Set the expansion limit
641         back to 1000.
643 2008-08-21  Eric Blake  <ebb9@byu.net>
645         Formatting improvements.
646         * doc/autoconf.texi: Use @file and @command, rather than @code,
647         where appropriate.
649         Document another make bug.
650         * doc/autoconf.texi (The Make Macro SHELL): Mention bug in BSD
651         make, GNU make <= 3.80.
653         Tweak wording about SHELL in Makefile.
654         * doc/autoconf.texi (The Make Macro SHELL): Stronger wording on
655         the importance of proper SHELL settings.
656         Reported by Bruno Haible, in
657         http://lists.gnu.org/archive/html/bug-libtool/2008-04/msg00029.html.
659 2008-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
661         Avoid timestamp races for updated input.
662         * tests/m4sh.at (AS_IF and AS_CASE): Use `autom4te --force' for
663         second script.
664         * tests/tools.at (autotools and whitespace in file names): Add
665         --force for repeated invocations.
667 2008-08-20  Bruno Haible  <bruno@clisp.org>
669         Add section to INSTALL about particular systems.
670         * doc/install.texi (Particular systems): New node.
671         * doc/autoconf.texi: Adjust menus.
673 2008-08-19  Bruno Haible  <bruno@clisp.org>
674         and Peter O'Gorman  <peter@pogma.com>
676         Mention universal binaries in INSTALL.
677         * doc/install.texi (Compiling For Multiple Architectures): Explain
678         how to create universal binaries on MacOS X.
680 2008-08-19  Jim Meyering  <jim@meyering.net>
681             Eric Blake  <ebb9@byu.net>
682             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
684         Avoid shell parse errors after interrupt due to empty ``.
685         * doc/autoconf.texi (Shell Substitutions): Document the issue.
686         * lib/m4sugar/m4sh.m4 (AS_VAR_IF): New function.
687         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Use it in place of
688         "test AS_VAR_GET([...]) = yes"
689         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL): Likewise.
690         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Likewise.
691         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD): Likewise.
692         (_AC_CHECK_HEADER_DIRENT): Likewise.
693         * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
694         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
695         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use
696         temporary variable to work around the issue.
697         * tests/foreign.at (Libtool): Quote result of command
698         substitution.
700 2008-08-18  Eric Blake  <ebb9@byu.net>
702         Test m4_transform without tickling shell bugs.
703         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Relax test to
704         something more manageable.
705         * tests/m4sugar.at (recursion): Move stress test of
706         m4_transform_pair here.
707         Reported by Ralf Wildenhues.
709         Let 'git diff' give better context for doc updates.
710         * .gitattributes (*.texi*): Add new entry.
711         * README-hacking: Mention how to use it.
712         Inspired by a coreutils patch by Jim Meyering.
714 2008-08-15  Eric Blake  <ebb9@byu.net>
716         Fix m4_map regression from 2007-10-16.
717         * lib/m4sugar/m4sugar.m4 (_m4_apply): New macro.
718         (m4_map): Ignore empty sublists.  For a list consisting of only an
719         empty sublist, this restores 2.61 behavior of being a no-op.
720         (m4_map_sep): Likewise, and expand separator.
721         (m4_mapall, m4_mapall_sep): New macros, to regain 2.62 behavior.
722         (_m4_map): Rewrite, to be common base for all four variants.
723         * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new prototype.
724         * tests/m4sugar.at (m4@&t@_map): Add tests.
725         * doc/autoconf.texi (Looping constructs) <m4_map>: Document new
726         macros, and mention ramifications of expanded separator.
727         * NEWS: Mention the change.
729 2008-08-14  Eric Blake  <ebb9@byu.net>
731         Implement m4_transform_pair, to speed up AS_IF.
732         * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair): New
733         macros, undocumented for now.
734         * lib/m4sugar/foreach.m4 (m4_transform, m4_transform_pair): Also
735         the m4 1.4.x counterparts.
736         * lib/m4sugar/m4sh.m4 (AS_IF, AS_CASE): Use it.
737         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Test it.
739 2008-08-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
741         * lib/autoconf/programs.m4 (AC_PATH_TARGET_TOOL)
742         (AC_CHECK_TARGET_TOOL, AC_CHECK_TARGET_TOOLS): Require, do not
743         warn about previous AC_CANONICAL_TARGET.
744         (AC_CHECK_TARGET_TOOL): Add missing `$' making the macro
745         unusable in the non-cross-compiling case.
746         * NEWS, THANKS: Update.
747         Report by Dave Erickson.
749 2008-08-12  Eric Blake  <ebb9@byu.net>
751         Optimize m4_bmatch.
752         * lib/m4sugar/foreach.m4 (m4_bmatch): Provide linear
753         implementation for m4 1.4.x.
754         * tests/m4sugar.at (m4@&t@_bmatch): New test.
755         (recursion): Test the linear nature.
756         * NEWS: Document the fix.
758         Fix m4_cond corner case.
759         * lib/m4sugar/foreach.m4 (_m4_cond): Ensure alternate
760         implementation allows concatenation with subsequent text.
761         * tests/m4sugar.at (m4@&t@_cond): Enhance test.
763         Add test for m4_cond.
764         * tests/m4sugar.at (m4@&t@_cond): New test.
765         Reported by Ralf Wildenhues.
767 2008-08-06  Eric Blake  <ebb9@byu.net>
769         Fix autoheader 2.62 regression on AC_DEFINE([__EXTENSIONS__]).
770         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Use a
771         unique key for the AH_VERBATIM.
772         * tests/c.at (AC_USE_SYSTEM_EXTENSIONS): New test.
773         * NEWS: Mention the fix.
774         Reported by Andreas Schwab, analyzed by Stepan Kasal.
776         Add linear m4_cond for m4 1.4.x.
777         * lib/m4sugar/m4sugar.m4 (m4_cond): Split into...
778         (_m4_cond): ...this, for fewer macros per iteration.
779         * lib/m4sugar/foreach.m4 (_m4_cond): New implementation.
780         * tests/m4sugar.at (recursion): Test it.
781         * NEWS: Document the linear guarantee.
783         Speed up diversion handling.
784         * lib/m4sugar/m4sugar.m4 (m4_divert, m4_divert_push)
785         (m4_divert_pop, m4_divert_text): Avoid dnl for fewer macro
786         expansions.
788         AC_C_CHAR_UNSIGNED is not strictly necessary.
789         * doc/autoconf.texi (C Compiler) <AC_C_CHAR_UNSIGNED>: Mention a
790         portable alternative to this macro.
791         * THANKS: Update.
792         Reported by Hallvard B Furuseth.
794         Update some files from upstream.
795         * GNUmakefile: Update.
796         * build-aux/announce-gen: Likewise.
797         * build-aux/config.guess: Likewise.
798         * build-aux/config.sub: Likewise.
799         * build-aux/git-version-gen: Likewise.
800         * build-aux/texinfo.tex: Likewise.
801         * build-aux/vc-list-files: Likewise.
802         * doc/make-stds.texi: Likewise.
803         * doc/standards.texi: Likewise.
805 2008-08-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
807         Fix AC_CONFIG_FILES([$var]) 2.62 regression.
808         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Flatten
809         whitespace in $ac_config_files and $ac_config_headers.
810         * tests/torture.at (Parameterized AC_CONFIG_FILES): New test.
811         Report by Andreas Schwab and Per Ã˜yvind Karlsen.
812         * THANKS: Update.
814 2008-07-30  Eric Blake  <ebb9@byu.net>
816         Fix bugs in previous version of m4_bpatsubsts.
817         * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): Don't expand $1, and
818         allow concatenation with subsequent text.
819         * tests/m4sugar.at (m4@&t@_bpatsubsts): Enhance test.
821 2008-07-29  Eric Blake  <ebb9@byu.net>
823         Add linear m4_bpatsubsts for m4 1.4.x.
824         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Match documentation
825         about anchors, even for only one substitution.
826         * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): New implementation.
827         * doc/autoconf.texi (Conditional constructs) <m4_bpatsubsts>:
828         Clarify behavior with regard to quoting.
829         * tests/m4sugar.at (recursion): Test scaling of m4_bpatsubsts.
830         (m4@&t@_bpatsubsts): New test.
831         * NEWS: Document the linear guarantee.
833         Tweak m4_do semantics.
834         * lib/m4sugar/m4sugar.m4 (m4_do): Don't concat final argument with
835         subsequent text.
836         * lib/m4sugar/foreach.m4 (m4_do): Don't concat intermediate
837         arguments, and avoid infinite loop.
838         * doc/autoconf.texi (Evaluation Macros) <m4_do>: Document the
839         behavior.
840         * tests/m4sugar.at (m4@&t@_do): New test.
842         Optimize m4_for.
843         * lib/m4sugar/m4sugar.m4 (m4_for): Use fewer macros.
844         (_m4_for): Take additional parameter, for fewer m4_indir calls.
845         * lib/m4sugar/foreach.m4 (_m4_foreach, _m4_shiftn, m4_do)
846         (m4_reverse, _m4_list_pad, _m4_list_cmp): Adjust all callers.
847         * doc/autoconf.texi (Looping constructs) <m4_for>: Document subtle
848         semantic change caused by the optimization.
849         * tests/m4sugar.at (M4 loops): Test the new semantics.
851         One more m4_list_cmp tweak.
852         * lib/m4sugar/m4sugar.m4 (_m4_list_cmp_1): Don't defer shift.
853         * lib/m4sugar/foreach.m4 (m4_list_cmp): Fix comment.
854         * tests/m4sugar.at (recursion): Test both directions of list
855         disparity.
857         Add m4_reverse, and improve m4_list_cmp.
858         * lib/m4sugar/m4sugar.m4 (m4_reverse): New macro.
859         (m4_list_cmp): Rewrite to give linear behavior with M4 1.6 on an
860         m4_reverse'd list.
861         * lib/m4sugar/foreach.m4 (m4_reverse): Add the M4 1.4.x
862         counterpart.
863         * tests/m4sugar.at (recursion): Test it.
864         * doc/autoconf.texi (Evaluation Macros) <m4_reverse>: Document
865         it.
866         (Text processing Macros) <m4_append>: Cross-reference to m4_set.
867         * NEWS: Mention new macro.
869 2008-07-28  Eric Blake  <ebb9@byu.net>
871         Avoid _m4_shiftn for m4 1.6 speedup.
872         * lib/m4sugar/m4sugar.m4 (m4_foreach, _m4_foreach, m4_map)
873         (_m4_map, m4_map_sep): Rewrite recursion to use one less m4_if.
874         * lib/m4sugar/foreach.m4 (_m4_map): Accomodate changed signature.
876         Implement O(n) unique element set creation.
877         * lib/m4sugar/m4sugar.m4 (m4_set_add, m4_set_add_all)
878         (m4_set_contains, m4_set_contents, m4_set_delete)
879         (m4_set_difference, m4_set_dump, m4_set_empty, m4_set_foreach)
880         (m4_set_intersection, m4_set_list, m4_set_listc, m4_set_remove)
881         (m4_set_size, m4_set_union): New macros.
882         * lib/m4sugar/foreach.m4 (m4_set_add_all): Add O(n) fallback for
883         m4 1.4.x.
884         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, AC_SUBST): Use
885         new m4_set API for the set most likely to be large.
886         * doc/autoconf.texi (Set manipulation Macros): New node.
887         * NEWS: Mention new macros.
888         * tests/m4sugar.at (m4@&t@_set): New test.
890 2008-07-25  Eric Blake  <ebb9@byu.net>
892         Avoid infinite aclocal loop.
893         * lib/m4sugar/m4sugar.m4 (m4_init): Bypass m4_include tracing, so
894         that aclocal doesn't insist on finding m4sugar/foreach.m4.
896         Provide O(n) replacement macros for M4 1.4.x.
897         * lib/m4sugar/foreach.m4: New file.
898         (m4_foreach, m4_case, _m4_shiftn, m4_do, m4_dquote_elt, _m4_map)
899         (m4_join, m4_joinall, m4_list_cmp, _m4_minmax): Replace m4sugar
900         macros based on $@ recursion [fast on M4 1.6, but quadratic on M4
901         1.4.x] with versions based on m4_for/m4_foreach [slow on 1.6, but
902         linear on 1.4.x].
903         * lib/m4sugar/m4sugar.m4 (m4_init): Dynamically load new file if
904         older M4 is assumed.
905         (m4_map_sep): Optimize.
906         (m4_max, m4_min): Refactor, by adding...
907         (_m4_max, _m4_min, _m4_minmax): ...more efficient helpers.
908         (m4_defn, m4_popdef, m4_undefine): Use foreach recursion.
909         * lib/m4sugar/Makefile.am (dist_m4sugarlib_DATA): Distribute new
910         file.
911         * tests/m4sugar.at (M4 loops): Add a stress test that takes
912         forever if m4_foreach and friends are quadratic.
913         * NEWS: Mention this.
915 2008-07-21  Eric Blake  <ebb9@byu.net>
917         Ignore undefined macros, necessary with m4 1.6.
918         * bin/autoupdate.in (_au___undefine): New macro,...
919         (_au__undefine): ...wrapped by ifdef to silence m4 warnings.
920         Reported by Ralf Wildenhues.
922         Resync with gnulib.
923         * GNUmakefile: Grab from upstream, to fix issue where 'make
924         install' would allow installation of stale version string.
926 2008-07-19  Eric Blake  <ebb9@byu.net>
928         Support multiple arguments to m4_defn, m4_popdef, and m4_undefine.
929         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Loop
930         through all variables, per POSIX and newer m4.
931         (_m4_text_wrap): Exploit the looping capabilities.
932         * tests/m4sugar.at (m4@&t@_defn): Test this.
933         * NEWS: Document it.
934         * doc/autoconf.texi (Redefined M4 Macros) <m4_defn, m4_popdef>
935         <m4_undefine>: Likewise.
937         Reduce overhead of m4_builtin([defn]).
938         * lib/m4sugar/m4sugar.m4 (_m4_defn, _m4_popdef, _m4_undefine): New
939         internal macros, which are slightly more efficient than
940         m4_builtin([defn]) and company.
941         (m4_defn, m4_popdef, m4_undefine, m4_warn, m4_ifset)
942         (_m4_dumpdefs_up, _m4_dumpdefs_down, _m4_wrap, m4_for)
943         (_m4_divert_n_stack, m4_divert_pop, m4_expansion_stack_push)
944         (m4_expansion_stack_dump, _m4_defun_pro, _m4_defun_epi)
945         (_m4_defun_epi_outer, _m4_require_call, m4_combine, m4_append)
946         (_m4_append_uniq, m4_append_uniq_w, _m4_text_wrap, m4_text_box)
947         (m4_version_prereq): Use them.
949         Use warnings from m4 when available.
950         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Don't
951         define slower wrapper if m4 will warn on our behalf; key off of
952         __m4_version__, added alongside the new warnings in m4 1.6.
953         * tests/m4sugar.at (m4@&t@_defn): New test.
955 2008-07-18  Eric Blake  <ebb9@byu.net>
957         Add m4_joinall.
958         * lib/m4sugar/m4sugar.m4 (m4_joinall, _m4_joinall): New macros.
959         * tests/m4sugar.at (m4@&t@_join): Test them.
960         * doc/autoconf.texi (Text processing Macros) <m4_join>: Document
961         m4_joinall.
962         * NEWS: Likewise.
964 2008-07-17  Stepan Kasal  <skasal@redhat.com>
965         and Eric Blake  <ebb9@byu.net>
967         Improve documentation of config.h.in template rules.
968         * doc/autoconf.texi (Header Templates): Mention rules on comments
969         and whitespace, and that the user cannot rely on #undef to survive
970         through config.status.
972 2008-07-16  Eric Blake  <ebb9@byu.net>
974         Revert m4_prepend; it is less efficient, and unused by bison.
975         * lib/m4sugar/m4sugar.m4 (m4_prepend, m4_prepend_uniq)
976         (m4_prepend_uniq_w): Delete addition from 2008-07-11.
977         (_m4_grow_uniq_1): Rename back...
978         (_m4_append_uniq): ...to this.
979         * NEWS: Revert NEWS blurb.
980         * doc/autoconf.texi (Text processing Macros) <m4_prepend>: Delete.
981         * tests/m4sugar.at (m4@&t@_prepend): Delete.
983 2008-07-15  Eric Blake  <ebb9@byu.net>
985         Avoid failure if version.m4 is omitted but m4_PACKAGE_* unused.
986         * lib/m4sugar/m4sugar.m4 (m4_version_compare): Provide alternate
987         definition for non-Autoconf clients of m4sugar.
989 2008-07-14  Eric Blake  <ebb9@byu.net>
991         Tighten bound of potential speed of m4_append.
992         * doc/autoconf.texi (Text processing Macros) <m4_append>
993         <m4_prepend>: If m4 is fixed, m4_append can be linear rather than
994         O(n log n).
995         * lib/m4sugar/m4sugar.m4 (m4_append, m4_append_uniq): Fix comments.
996         Analysis by Bruno Haible.
998 2008-07-11  Eric Blake  <ebb9@byu.net>
1000         Inherit improvements from bison's fork of m4sugar.
1001         * lib/m4sugar/m4sugar.m4 (m4_PACKAGE_VERSION): Ignore failure to
1002         find version.texi, since bison does not provide it.
1003         (m4_prepend): Add new macro, from bison.
1004         (m4_prepend_uniq, m4_prepend_uniq_w): Add new macros, for
1005         completeness.
1006         (_m4_append_uniq): Rename...
1007         (_m4_grow_uniq_1): ...to this to share implementation, and
1008         optimize initial assignment.
1009         (m4_append_uniq_w): Adjust caller.
1010         * NEWS: Document new macros.
1011         * doc/autoconf.texi (Text processing Macros) <m4_append>: Mention
1012         speed consideration.
1013         <m4_prepend>: Document the new prepend variants.
1014         * tests/m4sugar.at (m4@&t@_prepend): New test.
1016         Work around M4 1.6 warning on undefined macros.
1017         * lib/m4sugar/m4sugar.m4 (changeword, symbols): Don't rename if
1018         not already available as builtins.
1020 2008-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1022         * doc/autoconf.texi (@dvar): Remove trailing newline.
1023         (@ovar): Likewise.  Fix macro documentation.
1025 2008-07-02  Stepan Kasal  <skasal@redhat.com>
1027         Add quotes to the header of autoscan-generated source.
1028         * bin/autoscan.in: Add quotes to AC_PREREQ and AC_INIT.
1030 2008-06-28  Andreas Schwab  <schwab@suse.de>
1032         * doc/autoconf.texi (autoscan Invocation): Fix spacing.
1033         (autoconf Invocation): Likewise.
1034         (autoreconf Invocation): Likewise.
1035         (autoheader Invocation): Likewise.
1036         (autom4te Invocation): Likewise.
1038 2008-06-19  Eric Blake  <ebb9@byu.net>
1040         Add comment explaining recent patch.
1041         * lib/autotest/general.m4 (AT_INIT) <at_pass_list>: Explain choice
1042         of * vs. ? globbing.
1044 2008-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1046         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not warn when not
1047         linking a file to itself.
1048         Report by Bruno Haible.
1050 2008-06-19  Eric Blake  <ebb9@byu.net>
1052         Resync with gnulib.
1053         * GNUmakefile: Grab from upstream, to fix VPATH 'make dist' bug.
1054         Reported by Stepan Kasal.
1056 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1058         Reorganize autotest files, factorize for parallel execution.
1059         * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD): Move definition
1060         earlier in the file.
1061         (AT_INIT): Create line number cache in
1062         $at_suite_dir/at-source-lines.
1063         <at_helper_dir>: New directory at-groups below $at_suite_dir.
1064         Add comment explaining the new directory structure.
1065         (at_func_group_prepare, at_func_group_postprocess): New shell
1066         functions to factorize per-test group work.  Keep the actual
1067         test execution outside of a shell function in order to avoid
1068         zsh 4.x exit status bugs.
1069         <at_check_line_file, at_status_file, at_stdout, at_stder1>
1070         <at_stderr, at_test_source>: Turn these into per-group files
1071         below $at_helper_dir.  Also store test results there in files
1072         named pass, fail, xpass, xfail, skip.  Let the parent collect
1073         results from $at_helper_dir.  Adjust summary statistics
1074         computation and result output.
1076 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1078         Fix '#undef variable /* comment */' transform in config headers.
1079         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): For
1080         undefined preprocessor macros that are followed by a comment
1081         in the header template, do not create nested comments in the
1082         output.
1083         * tests/torture.at (@%:@define header templates): Extend test.
1084         * NEWS: Update.
1085         Report by Karsten Hopp <karsten@redhat.com>.
1087 2008-06-09  Eric Blake  <ebb9@byu.net>
1089         Mark AC_TYPE_SIGNAL as obsolete.
1090         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Switch to AU_DEFUN.
1091         * doc/autoconf.texi (Function Portability): Update documentation.
1092         (Particular Types): Move AC_TYPE_SIGNAL...
1093         (Obsolete Macros): ...here, and mention why.
1094         * NEWS: Mention the change.
1096         Allow lib64 as a default X library location.
1097         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Add lib64.
1098         * NEWS: Mention the change.
1099         * THANKS: Update.
1100         Reported by Brad Walker.
1102 2008-06-05  Eric Blake  <ebb9@byu.net>
1104         Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
1105         * lib/autotest/general.m4 (AT_KEYWORDS): Expand argument prior to
1106         converting it to lower case.
1107         * tests/autotest.at (Keywords and ranges): Test this.
1108         * NEWS: Document the fix.
1109         * THANKS: Update.
1110         Reported via Karsten Hopp, by Jochen Schmitt in
1111         https://bugzilla.redhat.com/show_bug.cgi?id=449973
1113 2008-06-03  Eric Blake  <ebb9@byu.net>
1115         Fix 'make dist' regression from 2008-05-08.
1116         * Makefile.am (INSTALL): Add rule, to accomodate 'make dist' after
1117         GNUmakefile's _autoconf rule removes INSTALL.
1119 2008-05-27  Eric Blake  <ebb9@byu.net>
1121         Document Solaris /bin/sh redirection pitfall.
1122         * doc/autoconf.texi (File Descriptors): Mention redirection bug.
1124 2008-05-14  Eric Blake  <ebb9@byu.net>
1126         Improve documentation of ! issues.
1127         * doc/autoconf.texi (Limitations of Builtins) <!>: Touch up.
1128         Reported by Noah Misch.
1130         Document some FreeBSD shell bugs.
1131         * doc/autoconf.texi (Limitations of Builtins) <!>: Mention ! issue
1132         in compound pipe commands.
1133         <export>: Mention difference of exporting an undefined variable.
1134         (Shell Functions): Mention loss of $? in entry to shell functions.
1135         Extracted from the git mailing list.
1137 2008-05-13  Stepan Kasal  <kasal@ucw.cz>
1139         Work around MSYS and Cygwin bugs when dealing with trailing space.
1140         * tests/atlocal.in (func_sanitize_dir_name): Let atlocal succeed,
1141         even when platform bugs are tickled.
1142         Reported by Keith Marshall and Eric Blake.
1144 2008-05-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1146         Let AC_MSG_FAILURE report pwd.
1147         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE):
1148         Output $ac_pwd along with fatal failure.
1149         * tests/torture.at (Deep Package): Extend test.
1150         Reported numerous times against GCC, and probably other packages.
1152 2008-05-12  Eric Blake  <ebb9@byu.net>
1154         Enforce --help and --version compliance.
1155         * configure.ac (AM_INIT_AUTOMAKE): Add std-options option.
1157 2008-05-08  Keith Marshall  <keithmarshall@users.sourceforge.net>  (tiny change)
1159         Avoid case-insensitive `make install' vs. `INSTALL' conflict.
1160         * Makefile.am ($(srcdir)/INSTALL): Replace all references...
1161         ($(abs_srcdir)/INSTALL): ...with this.
1163 2008-05-06  Eric Blake  <ebb9@byu.net>
1165         Fix typo.
1166         * doc/autoconf.texi (Shell Substitutions): Drop at_ prefix.
1168         Avoid overfull \hbox.
1169         * doc/autoconf.texi (Versioning): Reword to fit line size.
1171         Document $(( )) pitfalls.
1172         * doc/autoconf.texi (Shell Substitutions): Mention octal
1173         vs. decimal.  Mention autotest's at_func_arith.
1175         Improve behavior of './testsuite 01'.
1176         * lib/autotest/general.m4 (AT_INIT) <at_func_validate_ranges>:
1177         Alter usage to eval its arguments, in order to normalize away
1178         leading zero.  All callers updated.
1179         * tests/autotest.at (Keywords and ranges): Test range
1180         normalization with leading 0.
1182 2008-04-26  Eric Blake  <ebb9@byu.net>
1184         Mention Solaris /usr/ucb/tr pitfall.
1185         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Add section.
1186         Reported by Bruno Haible and Jim Meyering.
1188 2008-04-24  Eric Blake  <ebb9@byu.net>
1190         Mention m4sugar's internal quote strings.
1191         * doc/autoconf.texi (Quadrigraphs): Mention alternate quote used
1192         in m4sugar, and how to still output it literally.
1193         * tests/m4sugar.at (m4@&t@_split): And test it.
1194         Reported by Joel E. Denny.
1196 2008-04-23  Eric Blake  <ebb9@byu.net>
1198         Allow unbalanced () in m4_expand.
1199         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Use more complex
1200         quotes.
1201         (m4_noquote, _m4_split): Use consistent complex quote.
1202         * tests/autotest.at (Left paren, Right paren): Test this.
1203         (Parentheses): Ensure new quadrigraphs still work.
1204         (AT_CHECK_AT_TITLE_CHAR): All title char tests exercise m4_expand.
1205         * NEWS: Mention the fix.
1206         * doc/autoconf.texi (Quadrigraphs): Revert mention of macros that
1207         require quadrigraphs for ().
1208         (Evaluation Macros) <m4_expand>: Relax the restriction against
1209         unbalanced ().
1210         (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
1211         (Writing Testsuites) <AT_SETUP>: Likewise.
1212         Reported by Joel E. Denny, fix suggested by Noah Misch.
1214 2008-04-22  Eric Blake  <ebb9@byu.net>
1216         Support unbalanced () in AT_SETUP by adding two new quadrigraphs.
1217         * bin/autom4te.in (handle_output): Substitute @{:@ and @:}@.
1218         (handle_traces): Likewise.
1219         * lib/m4sugar/m4sugar.m4 (m4_qlen): Account for new quadrigraphs.
1220         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Add new tests.
1221         * doc/autoconf.texi (Quadrigraphs): Document them.
1222         (Evaluation Macros) <m4_expand>: Enhance documentation.
1223         (Text processing Macros) <m4_text_box>: Document cases where
1224         quadrigraphs can help for problemetic unbalanced parentheses.
1225         (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
1226         (Writing Testsuites) <AT_SETUP>: Likewise.
1227         (Limitations of Builtins) <case>: Consolidate text on unbalanced
1228         parentheses, and add an example of creative comments.
1229         * NEWS: Document the addition.
1230         Reported by Joel E. Denny.
1232 2008-04-16  Eric Blake  <ebb9@byu.net>
1234         Document pdksh exec behavior.
1235         * doc/autoconf.texi (Limitations of Builtins) <exec>: New
1236         subsection.
1237         Discovered by Jim Meyering.
1239 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1241         * tests/autotest.at (AT_CHECK_AT): Allow to pass additional
1242         arguments to the inner suite.
1243         (errexit, input from stdin): New tests.
1245 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1247         * NEWS: Post-release update.
1249 2008-04-10  Eric Blake  <ebb9@byu.net>
1251         AC_AUTOCONF_VERSION might contain arbitrary macro names.
1252         * doc/autoconf.texi (Versioning): Mention problem with expansion.
1253         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Adjust test.
1255 2008-04-09  Slava Sysoltsev <Viatcheslav.Sysoltsev@h-d-gmbh.de>  (tiny change)
1257         Flush buffered output before exit.
1258         * bin/autom4te.in (handle_output): Explicitly close file.
1259         * THANKS: Update.
1260         See http://lists.gnu.org/archive/html/autoconf/2008-04/msg00026.html.
1262 2008-04-08  Eric Blake  <ebb9@byu.net>
1264         Generate web docs for 2.62.
1265         * doc/autoconf.texi (Evaluation Macros): Fix typo.
1266         (Notices): Use recommended means to escape RCS keyword.
1267         * cfg.mk (gnulib_dir): New macro.
1268         (web-manual): New target.
1270 2008-04-05  Eric Blake  <ebb9@byu.net>
1272         Release Version 2.62.
1273         * NEWS: Mention the release.
1275 2008-04-04  Stepan Kasal  <kasal@ucw.cz>
1276         and Eric Blake  <ebb9@byu.net>
1278         Return back to GPLv2+, until the text of the exceptions is
1279         finalized, reverting the change from 2007-07-03 and the first
1280         part of the change from 2007-07-20.
1281         * COPYING: Revert to GPLv2.
1282         * COPYINGv3: New file, since some auxiliary build tools, used for
1283         building autoconf and not installed, are GPLv3.
1284         * Makefile.am (EXTRA_DIST): Distribute COPYINGv3.
1285         * NEWS: Remove mention of GPLv3.
1286         * README: Clarify situation regarding GPLv3.
1288 2008-04-05  Eric Blake  <ebb9@byu.net>
1290         Prepare for release.
1291         * maint.mk (announcement): Avoid deleted option.
1292         * cfg.mk (release_archive_dir): Use default.
1293         * build-aux/gnupload: New file, from automake/gnulib.
1294         * Makefile.am (EXTRA_DIST): Distribute it.
1295         * .x-sc_two_space_separator_in_usage: New file, to exempt gnupload
1296         from syntax check.
1298 2008-04-05  Jim Meyering  <meyering@redhat.com>
1299         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1301         Work around CR EOL markers on OS/2 (www.ecomstation.com Ecs v2 rc4)
1302         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When CR
1303         is the EOL marker, skip a step that would remove and translate
1304         carriage return bytes.
1305         * THANKS: Update.
1306         Reported by Elbert Pol.
1308 2008-04-05  Eric Blake  <ebb9@byu.net>
1310         Avoid some autoreconf -Wall warnings.
1311         * configure.ac: Use proper quoting, to be a good example.
1312         (PACKAGE_NAME): Remove setting covered by autoconf.
1313         (AM_INIT_AUTOMAKE): Bump automake requirement, for html rules.
1314         * doc/Makefile.am (TEXI2DVI): Remove settings covered by
1315         automake.
1316         (html, autoconf_1.html, standards_1.html): Likewise.
1317         (TEXI2HTML, TEXI2HTML_FLAGS): Remove unused macros.
1318         * Makefile.am (html): Likewise.
1319         * doc/autoconf.texi (Quoting and Parameters): Add missing section
1320         name.
1321         * tests/Makefile.am (AUTOMAKE_OPTIONS): Intentionally ignore
1322         warning about our override, until Automake is fixed.
1323         * README-hacking: Document minimum requirements for bootstrap.
1325 2008-04-03  Eric Blake  <ebb9@byu.net>
1327         Fix version number generation in man pages.
1328         * Makefile.am (EXTRA_DIST): Distribute .version.
1329         (.version): New rule.
1330         * man/Makefile.am (common_dep): Depend on .version, not
1331         configure.ac.
1332         (.x.1): Use package name for version string.
1333         * GNUmakefile [!_have-Makefile]: Sync from upstream, again.
1334         * build-aux/git-version-gen: Sync from upstream.
1336         More maintainer tweaks: pass 'make maintainer-distcheck'.
1337         * GNUmakefile (_is-dist-target): Sync from upstream.
1338         * build-aux/vc-list-files: Sync from upstream, yet again.
1339         * tests/atlocal.in (unsupported_fs_chars): Always remove tdir.
1340         * tests/Makefile.am (EXTRA_DIST): Don't distribute the built
1341         package.m4.
1342         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump year.
1344         Fix VPATH 'make syntax-check'.
1345         * maint.mk (VC_LIST, VC_LIST_EXCEPT, sc_changelog)
1346         (sc_prohibit_jm_in_m4, makefile-check): Support VPATH.
1347         (author_mark_check): Avoid error message.
1348         * build-aux/vc-list-files: Sync from upstream again.
1349         * build-aux/texinfo.tex: Likewise.
1351         Sync files from upstream, and pass 'make syntax-check'.
1352         * config/announce-gen: Move...
1353         * build-aux/announce-gen: ...here, and sync from gnulib.
1354         * Makefile.am (EXTRA_DIST): Adjust accordingly.
1355         * cfg.mk (announce_gen): Likewise.
1356         (prev_version_file): Delete, relying on default in maint.mk.
1357         (gpg_key_ID): New macro.
1358         (url_dir_list): Rewrite to match coreutils.
1359         * config/prev-version.txt: Move...
1360         * .prev-version: ...here, and adjust to 2.61.
1361         * build-aux/vc-list-files: Sync from coreutils.
1362         * maint.mk: Resynchronize with coreutils, where possible.
1363         (ME): Remove $(srcdir) from definition.
1364         (CVS): Delete.
1365         (GIT, VC, VC-tag): New macros.
1366         (CVS_LIST, CVS_LIST_EXCEPT): Rename...
1367         (VC_LIST, VC_LIST_EXCEPT): ...to this.
1368         (cvs-tag-check): Delete.
1369         (cvs-diff-check): Rename...
1370         (vc-diff-check): ...to this.
1371         (sc_file_system): Allow FHS acronym.
1372         * doc/autoconf.texi (Particular Functions): Recommend
1373         unconditional <config.h>.
1374         * build-aux/config.guess: Sync from upstream (manually).
1375         * build-aux/config.sub: Likewise.
1376         * build-aux/texinfo.tex: Likewise.
1377         * doc/make-stds.texi: Likewise.
1378         * doc/standards.texi: Likewise.
1379         * .gitattributes: Ignore whitespace problems in upstream files.
1381 2008-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1383         * doc/autoconf.texi (Limitations of Usual Tools): Mention awk %u
1384         bug on HP-UX/IA.
1385         Report by Peter O'Gorman.
1387 2008-04-02  Eric Blake  <ebb9@byu.net>
1389         Recommend the just-released M4 1.4.11.
1390         * NEWS: Update recommendation.
1391         * README: Likewise.
1392         * doc/autoconf.texi (Introduction): Likewise.
1393         * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
1395 2008-04-01  Eric Blake  <ebb9@byu.net>
1397         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Bump
1398         copyright year.
1400 2008-03-28  Peter O'Gorman  <peter@pogma.com>
1402         Find X11 on Mac OS X too.
1403         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT,_AC_PATH_X_XMKMF):
1404         Check for libX11 with extensions dylib la and dll too.
1405         * THANKS: Update.
1406         Reported by Martin Costabel.
1408 2008-03-28  Eric Blake  <ebb9@byu.net>
1410         Update TODO based on completed tasks.
1411         * TODO (AC_PROG_INSTALL takes multiple files): Done.
1412         (AC_GNU_SOURCE deprecation): Done, see AC_USE_SYSTEM_EXTENSIONS.
1413         (AC_COMPILE_IFELSE documentation): Done.
1414         (Tracing builtins): Done, now that we require M4 1.4.5.
1415         (AC_PROG_CC_POSIX suggestion, providing header files)
1416         (AC_TYPE_SIGNAL): Not needed; gnulib's approach is better.
1417         (cache consistency): Done with precious variables.
1419 2008-03-26  Eric Blake  <ebb9@byu.net>
1421         Document --trace=macro:format in --help output.
1422         * bin/autom4te.in (help): Mention optional trace format.
1423         * bin/autoconf.as (usage): Likewise.
1425         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Fix
1426         typos in last patch.
1427         Reported by Ralf Wildenhues.
1429 2008-03-26  Jim Meyering  <meyering@redhat.com>
1431         Fix texinfo syntax error.
1432         * doc/autoconf.texi (Limitations of Usual Tools): s/@kbd {/@kbd{/
1434 2008-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1436         Warn, not fail on whitespace-only precious variable differences.
1437         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Output
1438         precious variable differences less ambiguous with `ugly-quotes'.
1439         If their settings differ only in whitespace, do not fail, but
1440         reuse the old value.
1441         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Extend macro to allow
1442         an optional status and expected-warning argument.  Fix m4
1443         quotation for initial value.
1444         (AC_ARG_VAR): Also test for whitespace-only differences, and
1445         that the old value is retained in this case.
1446         * doc/autoconf.texi (Setting Output Variables): Document this.
1447         * NEWS: Update.
1448         Report and initial patch by Paolo Bonzini.
1450 2008-03-26  Eric Blake  <ebb9@byu.net>
1452         Document busybox sed bug.
1453         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Mention
1454         restrictions when using back-references.
1455         Reported by Vincent Lefevre:
1456         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13013>.
1458         Document Automake interaction with AC_CONFIG_MACRO_DIR.
1459         * doc/autoconf.texi (Input): Mention ACLOCAL_AMFLAGS for automake
1460         users.
1461         * THANKS: Update.
1462         Reported by Chris Pickett.
1464 2008-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1466         * tests/autotest.at (Using atlocal): Quote instances of `pwd`.
1468         * tests/local.at (AT_CHECK_M4): Factorize warning output
1469         normalization.
1470         Suggested by Eric Blake.
1472 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1474         Fix .exe-related test failure on MinGW.
1475         * tests/local.at (AT_CHECK_M4): Normalize `/bin/m4.exe' correctly
1476         for comparing warning output.
1478         Fix Fortran testsuite failures with gfortran 4.3.
1479         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): When scanning
1480         verbose compiler output, skip lines that set variables; gfortran
1481         4.3 sets LIBRARY_PATH, COMPILER_PATH, COLLECT_GCC_OPTIONS.
1482         * THANKS: Update.
1483         Report by Vincent Lefèvre.
1485 2008-03-21  Eric Blake  <ebb9@byu.net>
1487         * GNUmakefile: Resynchronize with gnulib.
1489         Document more uses of $cross_compiling.
1490         * doc/autoconf.texi (Runtime): Document that a temporary override
1491         is permissible.
1492         * THANKS: Update.
1493         Reported by Ineiev, example by Ralf Wildenhues.
1495         Don't swallow $1 in textual local variables.
1496         * lib/m4sugar/m4sugar.m4 (m4_combine): Don't use overquoting and
1497         expansion of text arguments, as that swallows $1.
1498         (m4_text_wrap): Likewise, by splitting out...
1499         (_m4_text_wrap): ...new helper macro.  Also, allow arbitrary
1500         expression for width.
1501         * tests/m4sugar.at (m4@&t@_text_wrap): Test this.
1502         (m4@&t@_combine): Likewise.
1504 2008-03-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1506         Avoid leftover files on Leopard.
1507         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove a.out.dSYM
1508         directory created on darwin.
1509         (AC_NO_EXECUTABLES): Likewise; also remove objects which may be
1510         left over from a broken link.
1511         * tests/c.at (AC_NO_EXECUTABLES (working linker))
1512         (AC_NO_EXECUTABLES (broken linker)): New tests.
1513         Report by Gary V. Vaughan.
1515         * lib/autom4te.in (Automake-preselections): Trace
1516         _AM_COND_IF, _AM_COND_ELSE, _AM_COND_ENDIF.
1518 2008-03-20  Eric Blake  <ebb9@byu.net>
1520         Kill more CVS references.
1521         * README-cvs: Delete.  See README-hacking instead.
1522         * README-hacking: Update wording, based on older file.
1523         * BUGS: Remove CVS mention.
1525 2008-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1527         * tests/tools.at (autotools and whitespace in file names): Skip
1528         if aclocal is not present.
1530 2008-03-20  Eric Blake  <ebb9@byu.net>
1532         Sync GNUmakefile with gnulib.
1533         * GNUmakefile (Makefile.cfg): Rename...
1534         (cfg.mk): ...to this, and make optional.
1535         (GNUmakefile.cfg): Delete, redundant with cfg.mk.
1536         (Makefile.maint): Rename...
1537         (maint.mk): ...to this.
1538         (all) [!_have-Makefile]: Rename...
1539         (abort-due-to-no-makefile): ...to this, and invoke via
1540         .DEFAULT_GOAL to pick up all targets.
1541         * Makefile.cfg: Rename...
1542         * cfg.mk: ...to this.
1543         * Makefile.maint: Rename...
1544         * maint.mk ...to this.
1545         (ME): Reflect name change.
1546         (makefile-check, m4-check, author_mark_check, msg): Use $(ME)
1547         rather than hard-coded name.
1548         * GNUmakefile.cfg: Delete; move rules into cfg.mk.
1549         * Makefile.am (EXTRA_DIST): Reflect file name changes.
1550         * .x-sc_prohibit_atoi_atof: Likewise.
1551         * lib/freeze.mk: Likewise.
1553 2008-03-19  Stepan Kasal  <kasal@ucw.cz>
1555         * doc/autoconf.texi (Introduction): Improve the paraphrase of
1556         Henry Spencer's quotation.
1558 2008-03-19  Eric Blake  <ebb9@byu.net>
1560         AC_CONFIG_HEADERS replaced AC_CONFIG_HEADER.
1561         * bin/autoscan.in (output): Avoid obsolete spelling.
1562         * tests/local.at (AC_STATE_SAVE): Update usage.
1563         * THANKS: Update.
1564         Reported by John Calcote.
1566         Emphasize that ease of configure triumphs over ease of autoconf.
1567         * doc/autoconf.texi (Introduction): Expand on primary
1568         vs. secondary goal of autoconf.
1569         * THANKS: Update.
1570         Inspired by Paul Smith.
1572 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1574         * lib/Autom4te/FileUtils.pm (handle_exec_errors): New argument
1575         $hint, show if the executing program does not exist.
1576         (xsystem_hint): New function, like xsystem but allows to pass
1577         a hint.
1578         * bin/autoreconf.in: Use xsystem_hint for spawning autopoint and
1579         libtoolize.
1580         Report by Bruce Korb.
1582 2008-03-14  Stepan Kasal  <kasal@ucw.cz>
1584         * lib/Autom4te/ChannelDefs.pm, tests/fortran.at,
1585         tests/mktests.sh, tests/wrapper.as: Fix typos.
1587 2008-03-12  Eric Blake  <ebb9@byu.net>
1589         Fix yesterday's regression in m4_wrap([$1]).
1590         * lib/m4sugar/m4sugar.m4 (_m4_wrap): Don't directly invoke wrapped
1591         text, since it may contain text that looks like parameters.
1592         * tests/m4sh.at (AS@&t@_INIT cleanup): Enhance test.
1594 2008-03-11  Eric Blake  <ebb9@byu.net>
1596         Improve error messages for common testsuite bugs.
1597         * lib/autotest/general.m4 (_AT_DEFINE_INIT, _AT_DEFINE_SETUP): New
1598         macros for defining order-enforced macros.
1599         (AT_INIT, AT_SETUP, AT_CLEANUP, AT_BANNER, AT_XFAIL_IF)
1600         (AT_CAPTURE_FILE, AT_DATA, AT_CHECK, AT_CHECK_NOESCAPE): Add error
1601         messages when order violations are detected.
1602         * tests/autotest.at (AT_CHECK_AT_SYNTAX): New helper macro.
1603         (AT_SETUP without AT_INIT, AT_BANNER without AT_INIT)
1604         (AT_CLEANUP without AT_INIT, Missing AT_CLEANUP)
1605         (AT_CHECK without AT_SETUP, AT_DATA without AT_SETUP)
1606         (AT_XFAIL_IF without AT_DATA, AT_KEYWORDS without AT_SETUP,
1607         (AT_CLEANUP without AT_SETUP, AT_BANNER inside AT_SETUP)
1608         (AT_SETUP inside AT_SETUP, Multiple AT_INIT)
1609         (Banner-only test suite): New tests.
1610         Reported by Christopher Hulbert.
1612         Tweak m4_wrap to force FIFO or LIFO semantics.
1613         * lib/m4sugar/m4sugar.m4 (m4_wrap): Override M4 implementation.
1614         (m4_wrap_lifo, _m4_wrap): New macros.
1615         * lib/m4sugar/m4sh.m4 (AS_INIT): Combine all cleanup into known
1616         order, prior to m4sugar's.
1617         (_AS_DETECT_BETTER_SHELL): Use cleanup parameter, rather than
1618         m4_wrap.
1619         * lib/autotest/general.m4 (AT_INIT): Combine all cleanup into
1620         known order, prior to m4sh's.
1621         * doc/autoconf.texi (Diagnostic Macros) <m4_fatal>: Document
1622         argument.
1623         (Redefined M4 Macros) <m4_wrap>: Rewrite documentation to match
1624         new behavior.
1625         * tests/m4sh.at (AS_INIT cleanup): New test.
1626         * NEWS: Document the change.
1628 2008-03-10  Eric Blake  <ebb9@byu.net>
1630         Encode nested autotest data.
1631         * tests/autotest.at (AT_CHECK_AT_PREP): Avoid raw AT_ in output.
1632         (unusual file names): Likewise.
1633         (m4_pattern_allow): Remove loophole, to make it easier to catch
1634         poorly written tests.
1636         Factor some autotest tests.
1637         * tests/autotest.at (AT_CHECK_AT_PREP): New macro, to factor out
1638         common initialization.
1639         (AT_CHECK_AT, Banners, Keywords and ranges, srcdir propagation)
1640         (whitespace in absolute testdir, unusual file names): Use it.
1642 2008-03-06  Eric Blake  <ebb9@byu.net>
1644         Minor documentation fix.
1645         * doc/autoconf.texi (Evaluation Macros): Fix typo.
1647 2008-03-04  Eric Blake  <ebb9@byu.net>
1649         Make AT_CHECK act like a simple command.
1650         * lib/autotest/general.m4 (_AT_CHECK): Wrap commands in {;}.
1651         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Test it.
1653 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1655         On MinGW, substitution of CR and 0xFF fails.
1656         * tests/torture.at (Substitute and define special characters):
1657         MinGW awk cannot handle 0xFF, and on MinGW, the test does the
1658         wrong thing for CR.
1660 2008-03-04  Eric Blake  <ebb9@byu.net>
1662         Pull in recent maintainer improvements from coreutils.
1663         * GNUmakefile (_is-dist-target): 'make distclean' should not
1664         trigger autoreconf.
1665         (_dummy): Change directories before removing autom4te.cache.
1666         (check dist distcheck install) [!_have-Makefile]: Provide nicer
1667         diagnostics.
1668         * configure.ac (AC_CONFIG_LINKS): Copy GNUmakefile into VPATH
1669         builds, after initial bootstrap.
1670         * Makefile.am (distclean-local): Work around current automake bug.
1671         * Makefile.maint (ME): Allow VPATH usage.
1673         Use git-merge-changelog when available.
1674         * .gitattributes: New file.
1675         * README-hacking: Document use of git-merge-changelog.
1677         Work around cygwin bug.
1678         * tests/atlocal.in (unsupported_fs_chars): Avoid cygwin bug where
1679         "touch 't\'" creates regular file 't'.
1681         Ignore tests that require read-only directories under root.
1682         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Skip
1683         no-write portion if user has root-like privileges.
1685 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1687         * lib/autotest/general.m4 (AT_INIT): Fix detection of '-C -'.
1689 2008-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1691         autoreconf -m now honors $MAKE.
1692         * bin/autoreconf.in ($run_make): Renamed from ...
1693         ($make): ... this.  Use now as command to run `make',
1694         overridden by $MAKE.  Document this in --help output.
1695         * doc/autoconf.texi (autoreconf Invocation): Document
1696         all environment variables honored by autoreconf.
1697         * NEWS: Update.
1698         Report by Paul Eggert.
1700 2008-03-03  Eric Blake  <ebb9@byu.net>
1702         Documentation improvements.
1703         * doc/autoconf.texi (Looping constructs): s/recurses/repeats/.
1704         (Evaluation Macros): Drop `1' suffix from metasyntax variable name
1705         that preceeds @dots.  Improve wording.
1706         (Text processing Macros): Drop `1' suffix from metasyntax variable
1707         name that preceeds @dots.
1708         (Number processing Macros): Drop `1' suffix from metasyntax
1709         variable name that preceeds @dots.  Improve wording.
1710         * lib/m4sugar/m4sugar.m4 (m4_cmp): Comment wording fix.
1711         Suggested by Ralf Wildenhues.
1713 2008-03-02  Jim Meyering  <meyering@redhat.com>
1715         Don't infloop upon "make dist".
1716         * GNUmakefile: Merge from coreutils.
1717         * Makefile.am (dist-hook): Inject .tarball-version into tarball,
1718         not .version.
1719         * configure.ac (AC_INIT): Use .tarball-version, not .version.
1720         * build-aux/git-version-gen: Update from gnulib.
1722 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1724         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
1725         Before using /dev/full, check that it is a writable character
1726         special device.
1727         Report by Benoit Sigoure and Eric Blake.
1729         Actually test that @configure_input@ is expanded correctly.
1730         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
1731         Actually check generated file contents for the name of the
1732         generated file, using AC_PROG_FGREP and $FGREP.
1734 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
1736         Be nice with file systems that don't handle unusual characters.
1737         * tests/atlocal.in (func_sanitize_file_name)
1738         (func_sanitize_dir_name): New shell functions.
1739         * tests/tools.at (autom4te and whitespace in file names)
1740         (autotools and whitespace in file names): Use them.
1741         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
1742         Cover more potentially problemtic file names.  Use the new
1743         functions.
1745         Properly handle funny file names for headers in config.status.
1746         The test suite did not cover this bug because the code was not
1747         quoting properly the arguments of `rm -f' (which "fails" silently)
1748         as well as the arguments of `diff' (whose output was redirected to
1749         /dev/null so we couldn't see its error message).
1750         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Properly quote the
1751         file names passed to `rm' and `diff'.
1752         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
1753         Add a regression test.
1755 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
1756         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1758         Properly expand @configure_input@ in config.status.
1759         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_MAIN_LOOP):
1760         Escape the backslashes and ampersands in $configure_input before
1761         using it in the sed replacement string to expand @configure_input@.
1762         Report by Eric Blake and Patrick Welche.
1764 2008-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1766         Ignore errors from ./run on w32.
1767         * tests/autotest.at (whitespace in absolute testdir):
1768         Ignore stderr for `./run' which fails to remove the
1769         busy test directory on w32.
1771 2008-02-22  Eric Blake  <ebb9@byu.net>
1773         Improve documentation for writing autotest suites.
1774         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention that
1775         checks must live inside a test group.
1776         Reported by Christopher Hulbert.
1778 2008-02-21  Eric Blake  <ebb9@byu.net>
1780         Sync git-version-gen from upstream.
1781         * build-aux/git-version-gen: Pull from gnulib.
1782         * configure.ac (AC_INIT): Adjust to new calling convention.
1784 2008-02-12  Eric Blake  <ebb9@byu.net>
1786         Avoid trailing space in config.h with AC_DEFINE([var], []).
1787         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Explicitly mark empty
1788         defines with a comment.
1790 2008-02-08  Eric Blake  <ebb9@byu.net>
1792         Fix texinfo typos in previous patch.
1793         * doc/autoconf.texi (Site Defaults): s/[{}]/@&/g.
1794         Reported by Ralf Wildenhues.
1796         Describe a config.site that can be used for FHS compliance.
1797         * doc/autoconf.texi (Site Defaults): Fix typo.  Add new example
1798         for FHS.
1799         * THANKS: Update.
1800         Reported by Jules Colding and Ralf Wildenhues.
1802 2008-02-02  Eric Blake  <ebb9@byu.net>
1804         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Fix typo.
1806 2008-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1808         * lib/autotest/general.m4 (AT_INIT): Fix --clean to work
1809         again, broken since introduction of `-C dir'.
1810         * tests/autotest.at (Choosing where testsuite is run): Test it.
1812 2008-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1814         * doc/autoconf.texi: Update Back-Cover text to reflect new GNU wording.
1816 2008-01-29  Eric Blake  <ebb9@byu.net>
1818         Fix more autotest regressions.
1819         * lib/autotest/general.m4 (AT_LINE): Fix regression from
1820         2007-10-04 when file name is `dnl'.
1821         (AT_INIT) <PREPARE_TESTS>: Move command-line assignments...
1822         <TESTS_BEGIN>: ...to this new diversion, to fix regression from
1823         yesterday in libtool's testsuite.
1824         (_AT_ARG_OPTION): Detect write failure.
1825         * doc/autoconf.texi (Diversion support): Document PREPARE_TESTS to
1826         make libtool's use kosher.  Document m4_init.
1827         (Programming in M4sh): Document AS_INIT.
1828         (Writing Testsuites): Document limitation of AT_DATA file name.
1829         * tests/autotest.at (unusual file names): New test.
1830         (Banners, Keywords and ranges): Use correct shell.
1832         More corner cases in testsuite VAR=VALUE handling.
1833         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS): Fix quoting
1834         bug.
1835         <PARSE_ARGS_END>: Also detect leading digits in assignments.
1836         * tests/autotest.at (Using atlocal): Enhance test to catch last
1837         bug.
1839         * doc/autoconf.texi (Limitations of Builtins) <.>: Mention bash
1840         bug.
1842 2008-01-28  Eric Blake  <ebb9@byu.net>
1844         Fix regression in handling VAR=VALUE arguments to testsuite.
1845         * lib/autotest/general.m4 (AT_INIT) <PARSE_ARGS_END>: Detect
1846         leading = as invalid.  Defer use of command-line variable
1847         assignments...
1848         <PREPARE_TESTS>: ...here, after atconfig has been sourced.  Fix
1849         regression in sourcing files.
1850         * tests/autotest.at (Using atlocal): New test to catch this.
1851         (Debugging a successful test, Choosing where testsuite is run):
1852         Use correct shell.
1853         Reported by Ralf Wildenhues.
1855         Document grep peculiarity.
1856         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
1857         BSD behavior on binary input.
1859         Minor testsuite improvements.
1860         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Use fewer
1861         forks when sanitizing PATH.  Always output machine information,
1862         not just when atconfig was located.
1864         Add 'testsuite -C dir'.
1865         * lib/autotest/general.m4 (_AT_ARG_OPTION): Move missing argument
1866         detection...
1867         (AT_INIT) <PARSE_ARGS_END>: ...here, since -k always takes
1868         argument.
1869         <DEFAULTS>: Delay computation of variables based on $at_dir...
1870         <PREPARE_TESTS>: ...to here, since -C can change $at_dir.
1871         <TESTS>: Re-invoke via absolute name, since -C may be in effect.
1872         <PARSE_ARGS>: Parse new option.
1873         <HELP_TUNING>: Document it.
1874         * tests/autotest.at (Choosing where testsuite is run): New test
1875         for this feature.
1876         (Keywords and ranges): Add test for missing -k argument.
1877         * NEWS: Document this.
1878         * doc/autoconf.texi (testsuite Invocation): Likewise.
1880 2008-01-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1882         * build-aux/config.guess, build-aux/config.sub,
1883         build-aux/texinfo.tex: Sync from gnulib.
1884         * doc/fdl.texi, doc/make-stds.texi, doc/standards.texi:
1885         Likewise.
1887 2008-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1889         * doc/autoconf.texi (Particular Programs): Do not mention the
1890         Autoconf version in which the AC_PROG_INSTALL change was done.
1891         Suggested by Paul Eggert.
1893 2008-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1895         Fix --help=recursive with multiple AC_CONFIG_SUBDIRS.
1896         * lib/autoconf/general.m4 (_AC_INIT_HELP): If, for recursive help
1897         mode, we change to the source directory, also set $ac_pwd so we
1898         do not go back to the build tree for the next config subdir.
1899         * tests/torture.at (Deep Package): Extend test to contain two
1900         config subdirs on the top level.
1902         Fix parallel `maintainer-check'.
1903         * Makefile.am (maintainer-check-tests): Depend on `all'.
1904         Use `$(MAKE) $(AM_MAKEFLAGS)' instead of plain `make'.
1905         * tests/Makefile.am (maintainer-check-c++, maintainer-check-posix):
1906         Likewise.
1907         (maintainer-check): Serialize the testsuite runs.
1909         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE2): Accept `+'
1910         in feature string for --enable/--with.  Convert to underscore
1911         for variable name.
1913         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Require that
1914         `install -c file1 file2 dir' works.
1915         * doc/autoconf.texi (Particular Programs): Document this.
1916         * NEWS: Update.
1918 2008-01-21  Eric Blake  <ebb9@byu.net>
1920         Improve documentation about default include directives.
1921         * doc/autoconf.texi (Generic Headers, Generic Declarations)
1922         (Generic Structures, Generic Types)
1923         (Generic Compiler Characteristics): Add links to
1924         AC_INCLUDES_DEFAULT.
1925         Reported by Reuben Thomas.
1927 2008-01-15  Eric Blake  <ebb9@byu.net>
1929         * lib/m4sugar/m4sugar.m4 (m4_qlen): Use fewer macros.
1931 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1933         * tests/Makefile.am (noinst_SCRIPTS): Renamed from
1934         check_SCRIPTS.  Building the wrappers for `all' allows help2man
1935         to use them for the manpages.
1936         Report by Benoit Sigoure.
1938         * bin/autoreconf.in: Discard stderr for $autoconf/$aclocal --help.
1940 2007-12-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1942         Fix some write failure cases in Autotest.
1943         * lib/autotest/general.m4 (AT_INIT): Do not exit successfully
1944         upon write failures for --help, --version, --list.
1945         Guard against write failures for intermediate created scripts.
1946         <at_func_create_debugging_script>: Do not make the debugging
1947         script executable if it is not complete.
1949 2007-12-12  Eric Blake  <ebb9@byu.net>
1951         Fix thinko in earlier patch - m4_join isn't defined yet.
1952         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
1953         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
1954         (m4_require): Use m4_do, not m4_join.
1956         Fix some whitespace tests on cygwin.
1957         * tests/tools.at (autom4te and whitespace in file names): Restore
1958         font-lock.  Create $TMPDIR before it might be used.
1960         Fix spurious testsuite failure with M4 1.4.11.
1961         * tests/local.at (AT_CHECK_M4): Cater to new m4 error message.
1963         Optimize AC_REQUIRE.
1964         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
1965         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
1966         (m4_require): Avoid extra macro calls.
1968 2007-12-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1970         * tests/torture.at (srcdir): Fix quoting.
1972         Do not pass top_srcdir to configure scripts in testsuite.
1973         * tests/autotest.at (srcdir propagation): Copy install-sh to
1974         source tree.
1975         (my only test): Drop setting of `top_srcdir'.
1976         * tests/base.at (Input/Output): Likewise.
1977         * tests/local.at (AT_CONFIGURE_AC): Copy install-sh,
1978         config.guess, and config.sub to test source tree.
1979         Drop AC_CONFIG_AUX_DIR setting.
1980         (AT_CHECK_CONFIGURE): Drop setting of `top_srcdir'.
1981         * tests/torture.at (Substitute a 2000-byte string): Drop
1982         AC_CONFIG_AUX_DIR setting, copy install-sh to test source tree.
1983         (Substitute a newline, datarootdir workaround): Likewise.
1984         (Define a newline): Adjust for linenumber changes in configure.ac.
1985         * tests/foreign.at (Libtool): Adjust comment to reflect changes.
1987         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): Skip test
1988         if `pwd` contains whitespace.
1990         Quote $abs_top_srcdir in tests.
1991         * tests/local.at (AT_CHECK_PERL_SYNTAX): Likewise.
1992         * tests/tools.at (Syntax of the shell scripts): Likewise.
1994         * tests/m4sh.at (LINENO): Quote $0.
1996         Fix testsuite program wrapper for whitespace in `pwd`.
1997         The problem here is that the usual mantra is that command
1998         variables can contain arguments, thus we cannot just escape
1999         $AUTOCONF, $AUTOM4TE etc.  The compromise is to put the
2000         $top_builddir/tests directory early in $PATH, so that the
2001         wrappers are found by their plain name.
2002         * tests/wrapper.as: Put $testdir early in $PATH.
2003         (AUTOCONF, AUTOHEADER, AUTOM4TE): Set to plain command names.
2005         Proper config.status --file/--header and $srcdir escaping.
2006         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Quote special
2007         characters in $ac_file_inputs.
2008         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER): eval $ac_file_inputs
2009         accordingly.
2010         * tests/torture.at (datarootdir workaround): Adjust.
2011         (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): Extend test.
2013         Fix Autotest for whitespace in `pwd`.
2014         * lib/autotest/general.m4 (AT_INIT)
2015         <at_func_create_debugging_script, Driver Loop>:
2016         Quote $at_group_dir.
2017         * tests/autotest.at (whitespace in absolute testdir): New test.
2019         * lib/autom4te.in: Quote @datadir@.
2021         Proper file name escaping in Autoconf programs and Perl modules.
2022         This includes escaping of characters special to the shell
2023         as well as special to Perl, e.g., leading `<' or `>'.
2024         For example, when $file starts with `>', `open ">$file"'
2025         wrongly tries to append to a different file.
2026         * bin/autoconf.as: Fix quoting for autom4te options.
2027         * lib/Autom4te/General.pm (shell_quote): New function, taken
2028         from coreutils, written by Jim Meyering.
2029         (mktmpdir): Use it.
2030         * bin/autom4te.in (files_to_options, handle_m4): Use shell_quote
2031         and open_quote.
2032         * bin/autoreconf.in (parse_args): Likewise.
2033         * bin/autoscan.in (main): Likewise.
2034         * bin/autoupdate.in (main): Likewise.
2035         * bin/autoheader.in: Likewise, fixing old insufficient escaping.
2036         * bin/ifnames.in: Likewise, XFile usage fixes.
2037         * tests/tools.at (autom4te and whitespace in file names): Extend
2038         test.  Test twice, with special characters allowed on w32, and the
2039         rest.  Test leading and trailing whitespace, for `open_quote'.
2040         (autotools and whitespace in file names): New, analogous test.
2041         Reported by Paul Eggert and Benoit Sigoure, additional suggestions
2042         by Russ Allbery and Eric Blake.
2044         Sync from Automake.
2045         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
2046         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Likewise.
2047         * lib/Autom4te/FileUtils.pm (open_quote): New function.
2048         (update_file, contents): Use it.
2050         * Makefile.am (autom4te-update): Rewrite for git.
2052 2007-12-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2054         * doc/autoconf.texi (autom4te Invocation, Autom4te Cache): Fix typos.
2056         Fix copyright years.
2057         * Makefile.am, doc/install.texi, lib/autoconf/fortran.m4,
2058         lib/autoconf/lang.m4, lib/freeze.mk: Likewise.
2060 2007-12-04  Eric Blake  <ebb9@byu.net>
2062         Manually resync with gnulib, since 'make cvs-update' no longer works.
2063         * build-aux/config.guess: New upstream version.
2064         * build-aux/config.sub: Likewise.
2066         When using older automake, don't downgrade build-aux/texinfo.tex.
2067         * configure.ac (AM_INIT_AUTOMAKE): Add no-texinfo.tex option.
2068         * doc/Makefile.am (TEXINFO_TEX): Add.
2070 2007-11-27  Paul Eggert  <eggert@cs.ucla.edu>
2072         Fix AC_C_BIGENDIAN bug caused by new awk method of substitution.
2073         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Don't comment out the
2074         #undef as this runs afoul of our new way of creating config.h.
2075         Problem reported by Jim Meyering in
2076         <http://lists.gnu.org/archive/html/autoconf-patches/2007-11/msg00164.html>.
2078 2007-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2080         Fix autom4te for unusual characters in input file names.
2081         * bin/autom4te.in (files_to_options): Quote active characters
2082         for the shell.
2083         * tests/tools.at (autom4te and white space in file names):
2084         New test.
2086         * doc/autoconf.texi (Limitations of Usual Tools) <awk>:
2087         Document that Tru64 awk always splits $0.
2089 2007-11-24  Stepan Kasal  <kasal@ucw.cz>
2091         * lib/autotest/general.m4 (AT_INIT): Do not extract the
2092         `#AT_STOP_...' line at the end of each test.
2094 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2096         * lib/autotest/general.m4 (AT_INIT): For awk line number
2097         extraction script, ensure `$at_group' has a defined value
2098         even for the empty set, and properly quote its usage inside
2099         the awk script.
2101 2007-11-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2103         * doc/autoconf.texi (Shell Functions): New chapter.  Document
2104         IRIX sh $0 issue in functions, move content from ...
2105         (Portable Shell): ... here.
2106         (Shell Script Compiler): Note that shell functions are not
2107         totally unportable any more.
2109 2007-11-22  Stepan Kasal  <kasal@ucw.cz>
2110         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2112         * lib/autotest/general.m4 (AT_INIT): Exit awk script after
2113         extracting the line numbers of the last needed test.
2115 2007-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2117         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
2118         Fix quoting.
2120 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2122         Fix IRIX testsuite debugging failures: $0 in functions.
2123         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
2124         Do not use $0 inside a function, as IRIX sh will set that to the
2125         function name rather than the script invocation name.
2127 2007-11-19  Paolo Bonzini  <bonzini@gnu.org>
2128         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2130         * lib/autotest/general.m4 (at_func_test): Use cached line numbers
2131         to extract test scripts.
2132         (AT_INIT): Extract and cache test script line numbers.
2134 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2136         * lib/autotest/general.m4: Revert 2007-11-15 patch and
2137         subsequent fixups; the awk -> here-document conversion trashes
2138         performance too much with AIX sh.
2140 2007-11-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2142         * tests/local.at: Do not test m4, perl with AT_TESTED.
2144         Diagnose and guard against write errors dealing with config.status.
2145         The general idea is this: all write failures from `configure'
2146         writing `config.status' are indicated by $ac_write_error, which
2147         is only checked at the end.  This is safe because config.status
2148         code is not executed before the file is complete.  Other write
2149         failures, be they inside config.status, or in sub shell/awk
2150         scripts spawned from configure or config.status, typically need
2151         earlier checking, as their results are used right afterwards.
2152         * lib/autoconf/status.m4 (AC_OUTPUT): Initialize `ac_write_fail'
2153         before writing config.status, check afterwards.
2154         (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
2155         (_AC_OUTPUT_HEADERS_PREPARE,_AC_OUTPUT_CONFIG_STATUS):
2156         Set `ac_write_error' for write failures to config.status.  Barf
2157         upon write failures to temporary files.
2158         Adjust note about closing and reopening the here-document.
2159         (_AC_OUTPUT_HEADER, _AC_OUTPUT_LINK, _AC_OUTPUT_COMMAND)
2160         (_AC_OUTPUT_MAIN_LOOP): Likewise, adjust note about closing and
2161         reopening the here-document.
2162         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
2163         Ensure `ac_write_error' does not escape into config.status.
2164         Also, add a couple of code paths not yet exercised in the test
2165         suite: a config file with input from stdin, and a config header
2166         output to stdout.
2167         Suggestion for catching write errors by Bruno Haible.
2169 2007-11-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2171         Avoid error with Tru64 awk and testsuite lines with many words.
2172         * lib/autotest/general.m4 (AT_INIT): In the awk script that
2173         reads the testsuite, set the field separator to an unusual value,
2174         in order to not run over the limit of 199 fields.  Tru64 4.0D awk
2175         even splits the input if $i, i>0, was never accessed in the script.
2177         Revert 2007-10-17 change.
2178         * TODO: Multiline args in config files and headers mean something
2179         different and are not fixed, see
2180         <http://lists.gnu.org/archive/html/autoconf-patches/2007-05/msg00017.html>
2181         Report by Stepan Kasal.
2183         * doc/autoconf.texi (Generic Programs): Fix typo.
2185 2007-11-16  Stepan Kasal  <kasal@ucw.cz>
2187         AC_*_TOOL does not canonicalize the prefix
2188         * doc/autoconf.texi (Generic Programs): Do not say that
2189         the *_TOOL macros canonicalize, they simply use the `host_alias'.
2191 2007-11-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2193         Diagnose write errors in config.status instantiations.
2194         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE)
2195         (_AC_OUTPUT_HEADER, _AC_OUTPUT_MAIN_LOOP): Bail out
2196         on write errors.
2197         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
2198         Extend test to also check for some write error failures, using...
2199         <AT_CHECK_CONFIG_CREATION_NOWRITE>: ...this new macro.
2200         Report by Bruno Haible.
2202         Indentation fixups.
2203         * lib/autotest/general.m4 (AT_INIT) <at_func_log_failure>: Fix
2204         indentation.
2205         (_AT_CHECK): Use less indentation, to save space.
2207 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2209         Add witness macro for @top_build_prefix@ substitution.
2210         * lib/autoconf/status.m4 (_AC_HAVE_TOP_BUILD_PREFIX): New macro.
2211         (_AC_OUTPUT_FILE): Mention it here.
2213 2007-11-15  Paolo Bonzini  <bonzini@gnu.org>
2214         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2216         * lib/autotest/general.m4 (at_func_test): Remove.
2217         (AT_INIT): Pre-extract test groups into separate files.
2218         (AT_CLEANUP): Source pre-extracted file instead of calling at_func_test.
2219         Remove at-test-source files together with the $at_group_dir.
2220         * tests/autotest.at (Long test source lines): New test.
2222 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2224         Shell functions and variables may share a namespace.
2225         * doc/autoconf.texi (Portable Shell): Mention Solaris sh
2226         limitation.
2228 2007-11-14  Paul Eggert  <eggert@cs.ucla.edu>
2230         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Make comment match
2231         gnulib.
2233 2007-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2235         * lib/autoconf/status.m4: Fix a couple of comment typos.
2237         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Use $as_me, not $me.
2239 2007-11-13  Jim Meyering  <meyering@redhat.com>
2241         Clean up the rule to create "expr".
2242         * tests/Makefile.am (expr): Don't redirect directly to target.
2243         Redirect just once, not for each echo statement.
2244         Use $@, not literal "expr".
2246 2007-11-13  Paul Eggert  <eggert@cs.ucla.edu>
2248         Don't worry about preprocessor when testing long long.
2249         See: http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00075.html
2250         * doc/autoconf.texi (Preprocessor Arithmetic): New section.
2251         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT):
2252         These no longer check for preprocessor flaws.
2253         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET):
2254         Do not check for preprocessor flaws.
2256 2007-11-13  Jim Meyering  <meyering@redhat.com>
2258         Adapt dependencies, now that a version change doesn't modify configure.ac
2259         * GNUmakefile: Remove "make clean" kludge.
2260         * lib/m4sugar/Makefile.am (version.m4): Depend on Makefile, not
2261         configure.ac.
2262         Don't redirect directly to target.
2263         Use $@, not literal "version.m4".
2265 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2267         * doc/autoconf.texi (Making testsuite Scripts): Document
2268         ":;{" shorthand as in previous patch.
2270 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
2272         * doc/autoconf.texi (Limitations of Builtins): Document problem
2273         with { ... } a bit more clearly.  Suggest ":;{" as a shorthand
2274         for the workaround.
2275         * lib/m4sugar/Makefile.am (version.m4): Detect 'echo' failure.
2276         Use ":;{" shorthand.
2277         * tests/Makefile.am ($(srcdir)/package.m4): Likewise.
2279 2007-11-12  Jim Meyering  <meyering@redhat.com>
2281         Add more non-srcdir build support.
2282         * GNUmakefile (dummy): Split a long line.
2283         Add -v option to autoreconf invocation.
2285         Remove the autoreconf-provided INSTALL, so that we regenerate it.
2286         * GNUmakefile (dummy): Remove INSTALL.
2288         Remove racy commands to build scripts in bin/ and tests/.
2289         * man/Makefile.am (.x.1): Now that scripts in bin/ and tests/
2290         are guaranteed to be built, remove the rules that tried to build
2291         them.  Before, with a parallel build, these rules could lead to
2292         two processes writing tests/wrapper.in concurrently.
2294         Build in man/ only *after* building in bin/ and tests/.
2295         * Makefile.am (SUBDIRS): The man-page-creation process runs $(MAKE)
2296         in both bin/ and tests/.
2298         Accommodate non-srcdir build-from-checkout.
2299         * build-aux/git-version-gen: Require an additional parameter: $srcdir.
2300         Use git's --git-dir=$srcdir/.git option.
2301         Add quotes, in case tarball_version_file contains shell meta-characters.
2302         * GNUmakefile (_curr-ver): Pass $(srcdir) to git-version-gen.
2303         * configure.ac: Pass "." to git-version-gen.
2305         Avoid spurious test failures due to version skew.
2306         * GNUmakefile (dummy): Run $(MAKE) clean after autoreconf -i.
2308 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2310         Avoid warnings about conftest.dSYM directories on Mac OS X Leopard.
2311         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_RUN_IFELSE):
2312         Remove conftest.dSYM directory.
2313         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT)
2314         (_AC_LANG_PROGRAM_C_, _AC_FC_MAIN, __AC_FC_NAME_MANGLING):
2315         Remove `conftest.*' recursively.
2316         * lib/autoconf/lang.m4 (AC_LINK_IFELSE): Likewise.
2317         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
2318         Likewise.
2319         (_AC_COMPILER_OBJEXT_REJECT): Reject *.dSYM.
2320         * THANKS: Update.
2321         Report and analysis by Jeff Squyres and Peter O'Gorman.
2323 2007-11-12  Benoit Sigoure  <tsuna@lrde.epita.fr>
2325         Fix typos in variable names.
2326         * tests/semantics.at (test for AC_CHECK_LIB): s/at_m/ac_m/.
2328 2007-11-11  Benoit Sigoure  <tsuna@lrde.epita.fr>
2330         Document that $((expression)) is not portable.
2331         * doc/autoconf.texi (Shell Substitutions): Here.
2333 2007-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2335         Ignore configure --help* errors due to LINENO-impaired shells.
2336         * tests/torture.at (Configuring subdirectories, Deep Package):
2337         In the --help* tests in read-only trees, make `.' temporarily
2338         writable again for the `stderr' file, and ignore errors due to
2339         the attempt to write configure.lineno.
2340         Report by Patrick Welche.
2342 2007-11-10  Jim Meyering  <meyering@redhat.com>
2344         Generate package.m4 in build-dir, not srcdir.
2345         * tests/Makefile.am (package.m4): Adjust target.
2346         Don't redirect directly to $@.
2347         (CLEANFILES): Add package.m4.
2348         ($(TESTSUITE)): Depend on just-built package.m4, not the one
2349         in $(srcdir).
2350         When running $(AUTOTEST), search "." before searching $(srcdir).
2352         Avoid a race condition that would make parallel "distclean" fail.
2353         * tests/Makefile.am (distclean-generic): Replace the default,
2354         automake-provided rule with an identical one, but with an additional
2355         dependency on distclean-local.  Simply adding the dependency would
2356         cause automake not to emit the rule at all.
2357         * BUGS: Building with -jN works, now.
2359         Distribute git-version-gen.
2360         * Makefile.am (EXTRA_DIST): Add build-aux/git-version-gen,
2361         since GNUmakefile is distributed, and requires it for dist* rules.
2363         Remove two more generated files from version control.
2364         * INSTALL: Remove generated file.
2365         * lib/autoscan/autoscan.list: Remove generated file.
2367 2007-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2369         * GNUmakefile (PATH): Remove stray apostrophes; they become
2370         part of PATH, which isn't wanted here.
2372 2007-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2374         New config files output variable `top_build_prefix'.
2375         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Substitute
2376         `top_build_prefix'.
2377         * doc/autoconf.texi (Preset Output Variables): Document it.
2378         * NEWS: Update.
2379         Report by Bob Friesenhahn.
2381         Avoid expr for arithmetic evaluation if the shell accepts $((...)).
2382         * lib/autotest/general.m4 (AT_INIT) <at_func_arith>: New
2383         function, to parametrize arithmetic with expr vs. the shell.
2384         Use it where possible.
2385         Suggestion by Benoit Sigoure.
2387 2007-11-03  Benoit Sigoure  <tsuna@lrde.epita.fr>
2389         Adjust the documentation of autotest WRT atlocal.
2390         * doc/autoconf.texi (Making testsuite Scripts): It is not necessary,
2391         when using Automake, to write a rule to produce atlocal, since it's
2392         an AC_CONFIG_FILES.  Mention that atlocal.in needs to be
2393         distributed, not atconfig.in.
2395 2007-11-04  Eric Blake  <ebb9@byu.net>
2397         Update list information.
2398         * README: Mention new autoconf-commit list.
2399         * doc/autoconf.texi (Introduction): Mention autoconf-commit list.
2401 2007-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2403         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Fix comment typo.
2405         * lib/m4sugar/Makefile.am (version.m4): Another bash bug workaround.
2407         * build-aux/.gitignore: Ignore mkinstalldirs.
2409         * doc/autoconf.texi (autoreconf Invocation): Fix an underfull line.
2411 2007-11-03  Jim Meyering  <meyering@redhat.com>
2413         s/-/./ in snapshot version string: 2.61a-256-8b556 -> 2.61a.256-8b556
2414         * build-aux/git-version-gen: This syncs from coreutils.
2416         Adjust the build procedure so "make check" works reliably.
2417         * README-hacking: Include an extra step between "make" and
2418         "make check" to ensure that the latter passes.
2420         Use just-built tools, when possible.
2421         * GNUmakefile (PATH): Set and export here, ...
2422         (dummy): ... rather than here.
2424 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2425         and Andreas Schwab  <schwab@suse.de>
2427         * tests/Makefile.am ($(srcdir)/package.m4): Work around bash
2428         exit status bug.
2430 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2432         * configure.ac (AC_PREREQ): Require version 2.60, for
2433         AC_PROG_SED, AC_PROG_GREP.
2435 2007-11-02  Benoit Sigoure  <tsuna@lrde.epita.fr>
2436         and Jim Meyering  <meyering@redhat.com>
2437         and Andreas Schwab <schwab@suse.de>
2438         and Eric Blake  <ebb9@byu.net>
2440         Document a bug in GNU Bash with compound commands and redirections.
2441         * doc/autoconf.texi (Limitations of Builtins): Mention that GNU
2442         Bash doesn't properly set $? when `{ ... } >/bad' fails, and give
2443         workaround.
2445 2007-11-03  Eric Blake  <ebb9@byu.net>
2447         Support m4 1.4.5 in testsuite.
2448         * tests/torture.at (Define a newline): Exclude line numbers in
2449         error message.
2450         Reported by Ralf Wildenhues.
2452 2007-11-03  Jim Meyering  <meyering@redhat.com>
2454         Remove automake-provided files from version control.
2455         * build-aux/elisp-comp: Remove file.
2456         * build-aux/install-sh: Remove file.
2457         * build-aux/missing: Remove file.
2458         * build-aux/mdate-sh: Remove file.
2459         * build-aux/.gitignore: New file.
2460         Suggestion from Ralf Wildenhues.
2462 2007-11-03  Eric Blake  <ebb9@byu.net>
2464         Adjust version comparison to account for git snapshot numbers.
2465         * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Also treat - as a
2466         component separator.
2467         * doc/autoconf.texi (Number processing Macros)
2468         <m4_version_compare>: Document this change.
2469         * tests/m4sugar.at (m4@&t@_version_compare): Test it.
2471 2007-10-30  Bruno Haible  <bruno@clisp.org>
2473         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro,
2474         extracted from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
2475         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT): Use it.
2476         Fixes problem with Sun C 5.[0-8] in 32-bit mode, reported in
2477         <http://lists.gnu.org/archive/html/autoconf-patches/2007-10/msg00210.html>
2478         Suggested by Paul Eggert.
2480 2007-10-28  Jim Meyering  <meyering@redhat.com>
2482         * README-hacking: Autoconf, Automake, and Perl are required to build.
2483         List Gzip and Tar separately.  Suggested by Ralf Wildenhues.
2485 2007-10-28  Jim Meyering  <meyering@redhat.com>
2487         README-hacking: Recommend running autoreconf -vi.
2488         * GNUmakefile (dummy): Use autoreconf -i, with appropriate PATH,
2489         so that we use just-built tools when they're available.
2490         Suggestions from Ralf Wildenhues.
2492 2007-10-28  Jim Meyering  <meyering@redhat.com>
2494         Make inter-release --version output more useful.
2496         Now, each unofficial build has a version "number" like 2.61a-19-58dd,
2497         which indicates that it is built using the 19th change set
2498         (in _some_ repository) following the "v2.61a" tag, and that 58dd
2499         is a prefix of the commit SHA1.
2500         * build-aux/git-version-gen: New file.
2501         * configure.ac: Run it to set the version.
2502         (AM_INIT_AUTOMAKE): Don't check NEWS here.
2503         * Makefile.am (dist-hook): Arrange so that .version appears only
2504         in distribution tarballs, never in a checked-out repository.
2505         * .gitignore: Add .version here, too.  Just in case.
2506         * tests/Makefile.am ($(srcdir)/package.m4): Depend on Makefile,
2507         not configure.ac, now that the version number changes automatically.
2509         Ensure that $(VERSION) is up to date for dist-related targets.
2510         * GNUmakefile: Arrange to rerun autoconf, if the version reported by
2511         git-version-gen doesn't match $(VERSION), but only for dist targets.
2513 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2515         Fix `Deep Package' failure with a configure script early in PATH
2516         * tests/torture.at (Deep Package): Add `.' early in PATH.
2517         Report by Jim Meyering.
2519 2007-10-27  Jim Meyering  <meyering@redhat.com>
2521         Remove all generated files from version control.
2522         * aclocal.m4: Remove.
2523         * configure: Remove.
2524         * Makefile.in: Remove, along with all other Makefile.in in subdirs.
2525         * .gitignore: Add aclocal.m4, configure and Makefile.in.  Sort.
2526         * README-hacking: New file: how to build from just-checked-out sources.
2528 2007-10-23  Eric Blake  <ebb9@byu.net>
2530         Improve corner case of m4_expand.
2531         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Rewrite more
2532         efficiently.
2533         * tests/m4sh.at (AS@&t@_HELP_STRING): Test overquoted comma.
2534         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Update
2535         documentation.
2537 2007-10-23  Paul Eggert  <eggert@cs.ucla.edu>
2539         * doc/make-stds.texi: Update from gnulib.
2541 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
2542         and Eric Blake  <ebb9@byu.net>
2544         * lib/autoconf/c.m4 (AC_C_RESTRICT): Work around Sun C++ compatibility
2545         problem reported by Bruno Haible in
2546         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00027.html>.
2548 2007-10-22  Eric Blake  <ebb9@byu.net>
2550         * doc/autoconf.texi (Particular Types): Mention bug in HP-UX 11.00
2551         preprocessor.
2553 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
2555         Don't check for bug in HP-UX 11.00 cpp.
2556         * lib/autoconf/types.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
2557         Use -1ull rather than -1u, since that causes problems with gnulib; see
2558         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
2560 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2562         * tests/autotest.at (Backquote command substitution)
2563         (Multiline backquote command substitution)
2564         (Parenthetical command substitution)
2565         (Multiline parenthetical command substitution): Fix typos in
2566         test names.
2568 2007-10-21  Eric Blake  <ebb9@byu.net>
2570         * configure: Regenerate.
2572 2007-10-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2574         Fix config status generation with Tru64 ksh.
2575         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix
2576         escaping of backslash in here-documents.
2578         Fix `Deep Package' test failure on FreeBSD.
2579         * tests/torture.at (Deep Package): Do not add `.' to $PATH
2580         unnecessarily.  Do not try running `/bin/sh configure' with a
2581         configure script to be found in $PATH, if the shell does not do
2582         this resolution.  Fixes test failure on FreeBSD.
2584         Fix config header generation with AIX awk.
2585         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): In awk
2586         script, use helper array D_is_set, as `" 0"' does not evaluate
2587         to true for AIX awk.
2589 2007-10-21  Eric Blake  <ebb9@byu.net>
2591         * tests/autotest.at (Banners): Reinstate test, with typo
2592         corrected.
2594 2007-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2596         * lib/autotest/general.m4 (Defaults): Validate input ranges ...
2597         <at_func_validate_ranges>: ... using this new function.
2598         * tests/autotest.at (Keywords and ranges): Test invalid ranges.
2599         Test --list with ranges and keywords.
2600         (Banners): Remove one now-failing test.
2602 2007-10-20  Eric Blake  <ebb9@byu.net>
2604         Fix testsuite --list subset.
2605         * lib/autotest/general.m4 (AT_INIT) <at_list_p>: Swap newlines
2606         back to spaces, before listing subset of tests.
2607         Reported by Ralf Wildenhues.
2609 2007-10-19  Eric Blake  <ebb9@byu.net>
2611         s/parenthesis/parentheses/ where appropriate.
2612         * doc/autoconf.texi: Fix typos.
2613         * lib/m4sugar/m4sugar.m4: Likewise.
2614         Reported by Ralf Wildenhues.
2616         Document m4_expand limitation.
2617         * lib/m4sugar/m4sugar.m4 (m4_expand): Mention problem with
2618         unbalanced parse.
2619         * doc/autoconf.texi (Pretty Help Strings, Evaluation Macros)
2620         (Writing Testsuites): Mention limitations inherited from
2621         m4_expand.
2623         Improve AT_BANNER handling.
2624         * lib/autotest/general.m4 (BANNERS): New named diversion.
2625         (TESTS_END): Diversion no longer used.
2626         (AT_INIT) <at_func_banner, BANNERS>: Factor all banners into a
2627         shell function, which prints only as needed, using an associative
2628         array of banner text from a special diversion.
2629         <PARSE_ARGS_END>: No longer need awk to find banners.
2630         <TESTS>: Banners are no longer processed by main driver loop, so
2631         we no longer need case statement.
2632         (AT_BANNER): Rewrite to populate new diversion.
2633         (AT_SETUP): Each test invokes its own banner.  No output is needed
2634         to the TESTS diversion.
2635         * doc/autoconf.texi (Writing Testsuites): Document slight
2636         semantics change.
2637         * tests/autotest.at (AT_BANNERS): Enhance test.
2638         * NEWS: Document AT_BANNER.
2640         Document and test AT_BANNER.
2641         * doc/autoconf.texi (Writing Testsuites): Document AT_BANNER.
2642         * tests/autotest.at (AT_CHECK_EGREP): Share between tests.
2643         (AT_CHECK_BANNERS): New test.
2645         Doc touchups.
2646         * doc/autoconf.texi (Text processing Macros) <m4_strip>
2647         <m4_text_wrap>: Clarify and fix typos.
2649 2007-10-18  Eric Blake  <ebb9@byu.net>
2651         Ignore `make dist' changelogs in testsuite.log.
2652         * lib/autotest/general.m4 (AT_INIT) <ChangeLogs>: Prune
2653         directories matching AT_PACKAGE_TARNAME-*.
2655         Fix AT_TESTED, AT_KEYWORDS.
2656         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Warn if separator
2657         occurs in string, as duplicates may be added.
2658         (_m4_append_uniq): New helper macro.
2659         (m4_append_uniq_w): New macro.
2660         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Fix
2661         duplication bug by using new macro.
2662         (AT_INIT) <at_tested>: Restore newline separators.  Invoke tested
2663         programs with stdin redirected, so programs that don't
2664         understand --version won't try to behave interactively.
2665         * tests/autotest.at (Tested programs): Catch this bug.
2666         * tests/m4sugar.at (m4@&t@_append): Test new macro.
2667         * tests/local.at (AT_TESTED): Add m4, perl.
2668         * doc/autoconf.texi (Text processing Macros): Document
2669         m4_append_uniq_w, and update text on m4_append.
2670         * NEWS: Document the addition.
2672 2007-10-17  Eric Blake  <ebb9@byu.net>
2674         Function cleanup.
2675         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Convert
2676         from m4 macro...
2677         (AT_INIT) <at_func_create_debugging_script>: ...to shell
2678         function.
2679         (AT_INIT): Defer function declarations until after --help,
2680         --version.  Format functions consistently, trying to fit in 80
2681         columns.
2682         (TEST_FUNCTIONS): Based on recent changes, rename...
2683         (TEST_GROUPS): ...to this.
2685         Reject FreeBSD m4.
2686         * m4/m4.m4 (AC_PROG_GNU_M4): Also check for frozen file support.
2687         * configure: Regenerate.
2688         Reported by Bob Friesenhahn.
2690         Test recent additions.
2691         * tests/m4sugar.at (m4@&t@_map, m4@&t@_combine)
2692         (m4@&t_max and m4@&t_min): New tests.
2693         * doc/autoconf.texi (Evaluation Macros) <m4_apply>: Enhance
2694         description.
2696 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2698         * TODO: multiline args in config files and headers work now.
2700         Autotest: do not use shell functions for individual tests.
2701         * lib/autotest/general.m4 (AT_INIT) <at_func_test>: Merely
2702         extract the source test source, do not invoke it.
2703         (AT_SETUP, AT_CLEANUP): Source test code outside shell function.
2704         * tests/autotest.at (Fallacy): Actually let the inner suite fail,
2705         expect exit status of 1.
2706         * tests/autotest.at (Skip): New test, for bogus zsh exit status.
2708         * lib/autotest/general.m4 (at_func_test): Fix test extraction
2709         script.
2711 2007-10-17  Eric Blake  <ebb9@byu.net>
2713         Fix m4_combine for empty suffix list.
2714         * lib/m4sugar/m4sugar.m4 (m4_combine): Check for suffix list.
2715         * doc/autoconf.texi (Text processing Macros): Document this.
2717         Add m4_combine, based on Libtool's lt_combine.
2718         * lib/m4sugar/m4sugar.m4 (m4_combine): New macro.
2719         * doc/autoconf.texi (Text processing Macros): Document it.
2720         * NEWS: Likewise.
2722 2007-10-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2724         Fix `configure --help=recursive' in unconfigured/read-only trees.
2725         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Avoid errors when `.'
2726         is not writable, use 'cp -p' in this case, in the hope that it
2727         will not actually be needed.  Still try removing files, in case
2728         of other write errors.
2729         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): For ac_confdir,
2730         use $as_myself, not $0.
2731         (_AC_INIT_HELP): For --help=recursive, if the subdir does not
2732         exist, try again in the the source tree.  This change assumes
2733         that the subpackage configure script is capable of running
2734         --help=recursive in the source tree.
2735         * tests/torture.at (Configuring subdirectories, Deep Package):
2736         Adjust tests to expose both issues, also try invocation as
2737         `sh configure ...' and plain `configure ...' with PATH adjusted.
2738         * NEWS, THANKS: Update.
2739         Report by Hans Ulrich Niedermann.
2741 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2743         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
2744         Problem reported by H.Merijn Brand in
2745         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
2746         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
2747         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
2748         Check that preprocessor handles 64-bit ints, too.
2750 2007-10-16  Eric Blake  <ebb9@byu.net>
2752         m4_map is a looping construct.
2753         * lib/m4sugar/m4sugar.m4 (m4_map, _m4_map, m4_map_sep): Move.
2755         Fix m4_map, and add some more utility macros.
2756         * lib/m4sugar/m4sugar.m4 (m4_apply, m4_count, m4_dquote_elt)
2757         (m4_echo, m4_make_list): New documented macros.
2758         (_m4_quote, _m4_shift2): New helper macros.
2759         (m4_map): Change semantics to allow calling macro without
2760         arguments.
2761         (m4_map_sep): Likewise.  Also change semantics to quote separator,
2762         to match m4_join and m4_append.
2763         (m4_version_unletter): Fix use of m4_map.
2764         * doc/autoconf.texi (Evaluation Macros): Document m4_apply,
2765         m4_count, m4_dquote_elt, m4_echo, m4_make_list.
2766         (Text processing Macros): Mention m4_dquote as a faster
2767         alternative to joining with commas.
2768         (Looping constructs): Document m4_map, m4_map_sep.
2769         * NEWS: Mention new macros.
2771         A few more m4sugar improvements, to benefit libtool.
2772         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts, _m4_shiftn): Reduce size
2773         of expansion by avoiding extra uses of $@.
2774         (m4_shiftn): Avoid extra dnl, and forbid shifting by 0.
2775         (_m4_cdr): New helper macro.
2776         (_m4_map, m4_map_sep): Use it to reduce size of expansion.
2777         (_m4_shift3): New helper macro.
2778         (_m4_foreach): Swap argument order, and use new macro to reduce
2779         size of expansion.
2780         * doc/autoconf.texi (Looping constructs) <m4_shiftn>: Mention that
2781         count must be positive.
2783         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Fix typo.
2784         Reported by Ralf Wildenhues.
2786 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2788         * doc/autoconf.texi (Portable Shell): Improve description of zsh
2789         4.x function subshell bug with exit and trap.
2791 2007-10-15  Eric Blake  <ebb9@byu.net>
2793         Enhance AS_HELP_STRING.
2794         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't expand arguments,
2795         and reduce number of expansions.
2796         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Rework to use m4_expand,
2797         and to take indent and wrap column numbers.
2798         * tests/m4sh.at (AS@&t@_HELP_STRING): Update the test.
2799         * doc/autoconf.texi (Pretty Help Strings): Document details about
2800         arguments.
2801         (Text processing Macros): Minor tweaks.
2802         * NEWS: Document this change.
2804         Fix 2007-10-03 regression with AT_SETUP([a, b]).
2805         * lib/m4sugar/m4sugar.m4 (m4_expand): New macro.
2806         (m4_text_box): Use it.
2807         * lib/autotest/general.m4 (AT_SETUP): Use it.
2808         * lib/m4sugar/m4sh.m4 (_AS_RUN): Use it.
2809         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Test this.
2810         * NEWS: Revert caveat about semantics change on comma.
2811         * doc/autoconf.texi (Evaluation Macros): Document m4_expand.
2813 2007-10-13  Eric Blake  <ebb9@byu.net>
2815         Change m4_join to match libtool's ltsugar semantics.
2816         * lib/m4sugar/m4sugar.m4 (m4_join): Just define this, not defun.
2817         Ignore empty arguments, using...
2818         (_m4_join): ...this new helper.
2819         * tests/m4sugar.at (m4@&t@_join): New test.
2820         * doc/autoconf.texi (Text processing Macros): Document new
2821         semantics of m4_join.
2823         Make AC_PREREQ faster and more robust.
2824         * lib/m4sugar/m4sugar.m4 (m4_ignore, m4_unquote): New macros.
2825         (m4_version_prereq): Inline constant expansions.
2826         (m4_list_cmp): Reduce number of expansions, by avoiding m4_case.
2827         Rewrite in terms of [] list, not () list.
2828         (_m4_list_cmp, _m4_version_unletter): New helper macros.
2829         (m4_version_unletter): Write wrapper around new implementation to
2830         preserve old semantics.
2831         (m4_version_compare): Pass correct type of list, and avoid
2832         overhead of flattening expressions too early.
2833         (m4_do): Move to be near other quoting macros.
2834         (m4_max, m4_min): Always result in decimal output.
2835         * doc/autoconf.texi (Looping constructs): Add m4_car, m4_cdr.
2836         Move m4_do...
2837         (Evaluation Macros): ...here.  Add m4_ignore, m4_unquote.
2838         (Text processing Macros): Move m4_version_compare...
2839         (Number processing Macros): ...to this new node; document m4_cmp,
2840         m4_list_cmp, m4_sign, m4_max, m4_min.
2841         * tests/m4sugar.at (m4@&t@_version_compare): Enhance test, to pick
2842         up on bugs fixed by this patch.
2843         * NEWS: Document new macros.
2845 2007-10-12  Eric Blake  <ebb9@byu.net>
2847         * doc/autoconf.texi (Text processing Macros): Fix bad merge.
2848         (Reporting Messages): Fix underfull hbox.
2850         Some more m4sugar documentation.
2851         * lib/m4sugar/m4sugar.m4: Clean up macro order.
2852         * doc/autoconf.texi (Programming in M4): Lighten the warning on
2853         using m4sugar; it is stabilizing and useful.
2854         (Redefined M4 Macros): Touch up wording on M4 builtins; sort.  Add
2855         m4_divert, m4_undivert, __file__, __line__, __oline__.
2856         (Diagnostics): New node, documenting m4_assert, m4_errprintn,
2857         m4_fatal, m4_location, m4_warn.
2858         (Diversion support): New node, documenting m4_divert_push,
2859         m4_divert_pop, m4_divert_text, m4_divert_once.
2860         (Text processing Macros): Sort.  Add m4_flatten, m4_join,
2861         m4_newline, m4_strip, m4_text_box, m4_text_wrap.
2862         (Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
2863         as obsolescent.
2864         (Printing Messages): Change cross-reference.
2866         Document interaction of recent m4_append change with Libtool HEAD.
2867         * lib/m4sugar/m4sugar.m4 (m4_append): Document semantics change.
2868         (m4_append_uniq): Add new parameters, based on lt_append_uniq.
2869         * tests/m4sugar.at (m4@&t@_append): New test.
2870         * NEWS: Document semantics change.
2871         * doc/autoconf.texi (Text processing Macros): Likewise.
2873         s/AC_VERSION/AC_AUTOCONF_VERSION/.
2874         * doc/autoconf.texi (Versioning): Change the name.
2875         * NEWS: Likewise.
2876         * lib/autoconf/general.m4 (AC_AUTOCONF_VERSION): Likewise.
2877         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Likewise.
2878         Suggested by Ralf Wildenhues.
2880         Namespace cleanup.
2881         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE)
2882         (_AC_OUTPUT_HEADERS_PREPARE): Convert here-doc delimiters into
2883         autoconf namespace.
2884         * doc/autoconf.texi (Programming in M4sugar, Forbidden Patterns)
2885         (Programming in M4sh, Macro Names): Beef up description of
2886         namespaces reserved for autoconf.
2887         * configure: Regenerate.
2889 2007-10-12  Eric Blake  <ebb9@byu.net>
2890         and Paolo Bonzini  <bonzini@gnu.org>
2892         Speed up execution of subset of testsuite.
2893         * lib/autotest/general.m4 (TEST_FUNCTIONS): New diversion.
2894         (AT_INIT) <at_func_test>: New shell function.
2895         (AT_INIT) <at_myself>: New variable, set to absolute $as_myself.
2896         (AT_INIT) <at_test_source> New variable, names file that holds
2897         current test function definition.
2898         (AT_SETUP): Start the shell function at_func_test_#, into the
2899         TEST_FUNCTIONS diversion.
2900         (AT_CLEANUP): End the shell function.  Simplify the TESTS
2901         diversion to invoke the function.
2903 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2905         * .gitignore: Ignore tags and TAGS files.
2907 2007-10-11  Eric Blake  <ebb9@byu.net>
2909         Config header generation followup.
2910         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Check for raw newlines,
2911         which won't work with the preprocessor nor with the awk
2912         implementation.
2913         * tests/torture.at (Define a newline): Test raw newline detection,
2914         removing the XFAIL.
2915         * doc/autoconf.texi (Defining Symbols): Document recent change to
2916         allow backslash-newline.
2917         * THANKS: Update.
2919 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2921         * lib/autotest/general.m4: Put function braces in separate line.
2923 2007-10-10  Eric Blake  <ebb9@byu.net>
2925         Avoid some overhead from m4_defn and m4_popdef.
2926         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Only
2927         pass on first argument, since we are documented that way.
2928         (m4_for, m4_append_uniq, m4_text_wrap): Optimize out defined-ness
2929         check where it is safe to do so.
2930         (m4_append): Likewise, and quote the separator.
2931         (m4_text_box): Likewise, and avoid regex, also be robust to
2932         expansion and quadrigraphs.
2934         Another AC_DEFINE speedup.
2935         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Move parameter
2936         elision...
2937         (_AC_DEFINE_Q): ...here, and only do it once.
2938         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid overquoting.
2939         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix m4_defn overquoting
2940         introduced 2007-10-05.
2942         Whitespace cleanup.
2943         * lib/autoconf/general.m4: Use consistent indentation.
2944         * configure: Regenerate.
2946         * NEWS: Announce recent round of speed optimizations.
2948 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2950         * NEWS: Announce shell function usage in Autotest.
2952 2007-10-10  Eric Blake  <ebb9@byu.net>
2953         and Paul Eggert  <eggert@cs.ucla.edu>
2955         Reduce number of forks at startup.
2956         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Speed up NLS
2957         sanitization.
2958         * configure: Regenerate.
2960 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2961         and Paul Eggert  <eggert@cs.ucla.edu>
2963         Use awk for config header generation.
2964         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix comments.
2965         (_AC_OUTPUT_HEADERS_PREPARE): New macro.  Rewrite of the config
2966         header machinery for use with awk and placement outside the main
2967         config.status instantiation loop.  Retain multi-line defines
2968         through backslash-newline combinations, do not split the script
2969         any more.
2970         (_AC_OUTPUT_HEADER): Simplify accordingly, use $AWK.
2971         (_AC_OUTPUT_MAIN_LOOP): Call _AC_OUTPUT_HEADERS_PREPARE if
2972         needed.
2973         (AC_OUTPUT_MAKE_DEFS): Remove backslash-newline combinations
2974         from define values.
2975         * NEWS: Update.
2976         * tests/torture.at (#define header templates): Extend test by
2977         several more cases: white space before and after `#', macros
2978         with parameters in config.hin and as defines, multi-line macro
2979         values.
2980         (Torturing config.status): Use a define value twice the length
2981         in order to exercise the awk literal string limit.
2982         (Substitute and define special characters): Also try special
2983         delimiter, to exercise the special-case code.
2984         Suggestion by Eric Lemings.
2986 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2988         * tests/local.at (AT_COPYRIGHT): Bump copyright years.
2990 2007-10-09  Eric Blake  <ebb9@byu.net>
2992         Improve header of bin/autoconf.
2993         * lib/m4sugar/m4sh.m4 (AS_INIT): Add a 'generated from' notice.
2994         * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Override new notice
2995         from M4sh.
2996         * bin/autoconf.as: Put copyright up front in generated file.
2998         * bin/autoconf.as (exit_missing_arg): Font-lock tweak.
3000 2007-10-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3002         * doc/install.texi (Basic Installation): Document `uninstall'.
3003         * INSTALL: Regenerate.
3004         Suggestion by Roberto Bagnara.
3006 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
3008         * doc/autoconf.texi (Limitations of Usual Tools): V7 awk had 'index'.
3010         Adjust doc. to match latest gnulib.
3011         * build-aux/texinfo.tex: Sync from gnulib.
3012         * doc/standards.texi: Likewise.
3013         * doc/autoconf.texi (Copying This Manual): Rename to "GNU Free
3014         Documentation License" and remove the subsection.  This simplifies
3015         the manual a bit and is more like what other GNU projects do
3016         nowadays.
3018 2007-10-08  Eric Blake  <ebb9@byu.net>
3020         Use recent changes.
3021         * configure: Regenerate.
3023         Fix regression in m4_text_wrap from 2007-10-05.
3024         * lib/m4sugar/m4sugar.m4 (m4_max, m4_min): New macros.
3025         (m4_sign): Sort.
3026         (m4_text_wrap): Fix off-by-one error in rewrite from m4_for to
3027         m4_format.
3028         * lib/autotest/general.m4 (AT_SETUP): Avoid negative width.
3029         * tests/autotest.at (Long test title, Longer test title): Test
3030         this fix, beyond what AS_HELP_STRING already tests.
3032         Avoid m4 warnings on bad m4_format usage.
3033         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Use %*s, in case width
3034         evaulates to 0.
3035         * lib/autotest/general.m4 (AT_SETUP): Likewise; also ensure that
3036         enough arguments are provided.
3038 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
3040         * doc/autoconf.texi (Shell portability): Document shell function
3041         portability.
3043 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
3045         * lib/autotest/general.m4 (AT_INIT): Add at_func_diff_devnull,
3046         at_func_check_skip, at_func_check_status, at_func_filter_trace,
3047         at_func_log_failure shell functions.  Use test -s to avoid
3048         useless diff invocations.
3049         (at_func_check_newline): Renamed from at_check_newline.
3050         (AT_SETUP): Define AT_captured_files to empty.
3051         (AT_DIFF_STDERR(*), AT_DIFF_STDOUT(*)): New, extracted from _AT_CHECK.
3052         (_AT_CHECK): Replace m4_case with m4_ifdef/m4_indir.  Use all
3053         the shell functions.
3055 2007-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3057         Don't assume "." is writeable, for commands like "autoconf --version".
3058         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use a
3059         different heuristic instead, one that doesn't rely on creating
3060         files.
3062         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle "///"
3063         correctly.
3065 2007-10-05  Jim Meyering  <meyering@redhat.com>
3067         Avoid makeinfo warnings.
3068         * doc/autoconf.texi (Redefined M4 Macros): Add a `,' after @xref.
3069         (Looping constructs): Add ` ' after @defmac'd name, m4_do.
3071 2007-10-05  Eric Blake  <ebb9@byu.net>
3073         Resolve Python issue 1676135 regarding configure directory args.
3074         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Strip trailing
3075         slashes from directory arguments.
3076         * tests/base.at (configure directories): New test.
3077         * doc/autoconf.texi (Installation Directory Variables): Document
3078         the change.
3079         * NEWS: Likewise.
3080         * THANKS: Update.
3081         Reported by Björn Lindqvist.
3083         Provide better short-circuiting operation.
3084         * lib/m4sugar/m4sugar.m4 (m4_cond, m4_newline): New macros.
3085         (m4_text_wrap): Use it.  Also avoid useless m4_for.
3086         * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE, AS_LITERAL_IF): Use
3087         new macro.
3088         (_AS_IDENTIFIER_IF): Likewise, and fix bug when $1 is [,].
3089         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Use new macros
3090         to avoid regexps.
3091         * doc/autoconf.texi (Redefined M4 Macros): Expand m4_if
3092         documentation.  Sort m4_mkstemp, m4_undefine.  Move m4_ifndef...
3093         (Conditional constructs): ...here, to new section.  Also document
3094         m4_cond, m4_ifval, m4_n, m4_ifvaln, m4_ifset, m4_case, m4_bmatch,
3095         m4_bpatsubsts, and m4_default.
3096         (Looping constructs): Document m4_shiftn, m4_shift2, m4_shift3,
3097         m4_do.
3099 2007-10-04  Eric Blake  <ebb9@byu.net>
3101         Fix recent testsuite failures.
3102         * lib/autotest/general.m4 (AT_INIT, AT_SETUP): Double-quote text
3103         that must not be re-expanded after AS_ESCAPE.
3104         * lib/m4sugar/m4sh.m4 (_AS_IDENTIFIER_IF): Don't expand $1 when
3105         checking if it is an identifier.
3107         Whitespace cleanup.
3108         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Avoid
3109         leading whitespace, as it caused space-tab in testsuite.
3110         (AT_INIT): Avoid trailing newlines in testsuite.
3112         One more round of m4_foreach_w speedups.
3113         * lib/m4sugar/m4sugar.m4 (m4_flatten): Only use regex if newline
3114         is present.
3115         (_m4_split): Avoid useless expansions inside definition.  Move
3116         argument defaulting...
3117         (m4_split): ...here.  Change alternate quote to something less
3118         likely to appear in $1.  Also, special case space as regexp...
3119         (m4_foreach_w): ...to avoid regexp on single-term list.
3120         (m4_default, m4_defn, m4_popdef, m4_undefine, _m4_foreach): Avoid
3121         useless expansions inside definition.
3122         * tests/m4sugar.at (m4@&t@_split): Add tests.
3124 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
3126         * general.m4 (AT_INIT): Add at_check_newline function.
3127         (_AT_DECIDE_TRACEABLE): Include at_traceon test, use shell function.
3128         (_AT_CHECK): Don't use at_trace_this.
3130 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
3132         Fix previous commit.
3133         * lib/autotest/general.m4 (AT_LINE): Fix regex.
3135 2007-10-04  Eric Blake  <ebb9@byu.net>
3137         Speed up building testsuites.
3138         * lib/autotest/general.m4 (AT_LINE): Only use regex when file
3139         changed since last time.  Use simpler regex.
3141 2007-10-03  Eric Blake  <ebb9@byu.net>
3143         Optimize checking for identifiers.
3144         * lib/m4sugar/m4sh.m4 (AS_IDENTIFIER_IF, _AS_IDENTIFIER_IF): New
3145         macros, more efficient than regex on m4_re_word.
3146         * lib/autoconf/general.m4 (AC_SUBST, AC_DEFINE_TRACE_LITERAL):
3147         Rewrite in terms of new macro.  As a side-effect, AC_DEFINE can
3148         now use @&t@.
3149         * configure: Regenerate.
3151         Remove some XFAILs, and make AT_SETUP output line up.
3152         * lib/autotest/general.m4 (AT_SETUP): Only expand description
3153         once; thereafter, use its expansion, properly quoted.
3154         * tests/autotest.at (AT_CHECK_AT_TITLE): Also check macro
3155         expansion with arguments, and check for aligned output.
3156         (AT_CHECK_AT_TITLE_CHAR): Remove XFAILs for tests that now pass.
3157         Add a test for macros with parameters.
3158         * NEWS: Document the semantics change.
3159         * tests/base.at: Fix test titles containing commas.
3160         * tests/compile.at: Likewise.
3161         * tests/tools.at: Likewise.
3162         * tests/torture.at: Likewise.
3164         Another round of regex avoidance.
3165         * lib/m4sugar/m4sugar.m4 (m4_cr_alnum, m4_cr_all)
3166         (_m4_define_cr_not, m4_cr_not_letters, m4_cr_not_LETTERS)
3167         (m4_cr_not_Letters, m4_cr_not_digits, m4_cr_not_alnum)
3168         (m4_cr_not_symbols1, m4_cr_not_symbols2): New macros, implementing
3169         character ranges useful in m4_translit.
3170         (m4_toupper, m4_tolower): Optimize the constant portion of
3171         definition.
3172         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Also reject @S|@ because it
3173         creates $, and reject [] thanks to AS_TR_SH rewrite.
3174         (AS_TR_SH, AS_TR_CPP): Use just translit, not bpatsubst.
3175         (AS_ESCAPE): Factor...
3176         (_AS_ESCAPE): ...into new macro, with second argument required.
3177         Avoid regex in common case.
3178         (_AS_QUOTE): Use new macro.
3180         Whitespace cleanup.
3181         * lib/autoconf/types.m4: Avoid space-tab.
3182         * lib/m4sugar/m4sh.m4: Use tab consistently.
3184 2007-10-03  Paul Eggert  <eggert@cs.ucla.edu>
3186         * lib/m4sugar/m4sugar.m4 (m4_shift2, m4_shift3): New macros.
3187         (m4_shiftn): Remove no-longer-needed optimization.  Perhaps we
3188         should remove m4_shiftn entirely?
3189         (m4_case, b4_bmatch, m4_map_sep, m4_bpatsubsts, m4_join):
3190         Prefer m4_shift2 and m4_shift3 to m4_shiftn.
3191         * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
3192         * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Likewise.
3193         * tests/autotest.at (AT_CHECK_AT_TEST): Likewise.
3195 2007-10-03  Eric Blake  <ebb9@byu.net>
3197         Comment touchups.
3198         * lib/m4sugar/m4sugar.m4: Grammar fixes in comments.
3200 2007-10-02  Eric Blake  <ebb9@byu.net>
3202         Optimize appending text.
3203         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Use index, not regular
3204         expressions.
3206         Optimize recursion.
3207         * lib/m4sugar/m4sugar.m4 (m4_shiftn): This macro is called in a
3208         lot of hot spots; optimize it for 2 and 3 shifts.
3210         Optimize AC_PREREQ and other m4sugar numerics.
3211         * lib/m4sugar/m4sugar.m4 (m4_sign): Write with m4_eval.
3212         (m4_cmp): Compare arbitrary expressions, without overflow.
3213         (m4_version_unletter): Also recognize capital letters.
3214         (m4_version_compare): Avoid regex when splitting version number
3215         string.
3217 2007-10-01  Eric Blake  <ebb9@byu.net>
3219         Once again, reject IRIX m4.
3220         * m4/m4.m4 (AC_PROG_GNU_M4): Use indir builtin to root out non-GNU
3221         implementations that ignore --trace.
3222         * configure: Regenerate.
3223         Reported by Ralf Wildenhues.
3225         Fix regression in AC_DEFINE([macro(with_arg)]).
3226         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't chop off close
3227         quotes with a careless m4_substr.
3229 2007-09-30  Eric Blake  <ebb9@byu.net>
3231         Allow nameless iteration.
3232         * lib/m4sugar/m4sugar.m4 (m4_for, _m4_for): Access variable
3233         indirectly.
3234         * tests/m4sugar.at (myvar): Test this.
3236 2007-09-29  Eric Blake  <ebb9@byu.net>
3238         Speed optimization: avoid m4 regex when other algorithms work.
3239         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Rewrite without regex.
3240         (_AS_QUOTE_IFELSE): Likewise.
3241         * lib/m4sugar/m4sugar.m4 (m4_strip): Reduce from 3 to 2 regex.
3242         (m4_bpatsubsts): Split...
3243         (_m4_bpatsubsts): ...so that recursion can avoid patsubst on empty
3244         regex.
3245         (_m4_divert()): Define, to avoid m4 warning on `m4_divert'.
3246         (m4_qlen): Optimize on short strings, to avoid regex.
3247         (m4_sign): Avoid regex, and fix bug with `01' and `-0'.
3248         * lib/autoconf/general.m4 (AC_CACHE_VAL): Rewrite without regex.
3249         (AC_DEFINE_TRACE): Likewise.
3251 2007-09-28  Eric Blake  <ebb9@byu.net>
3253         Oops - my earlier 'optimization' caused a regression.
3254         * tests/local.at (AT_CHECK_M4): Fix typo.
3256 2007-09-27  Eric Blake  <ebb9@byu.net>
3257         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3259         Catch even more common AC_CACHE_VAL mistakes.
3260         * lib/autoconf/general.m4 (AC_CACHE_VAL): Warn if cache variable
3261         lacks '_cv_', or if AC_SUBST appears in body.
3262         * tests/base.at (AC_CACHE_CHECK): Test this change.
3264 2007-09-27  Stepan Kasal  <kasal@ucw.cz>
3265         and Eric Blake  <ebb9@byu.net>
3267         Autotest no longer caters to Ultrix redirection limitation.
3268         * doc/autoconf.texi (Writing testsuite.at): Remove the
3269         limitation that the first parameter of AT_CHECK cannot
3270         contain redirection.
3271         (File Descriptors): Mention that Ultrix limitation is no longer a
3272         show-stopper in modern code.
3273         * tests/local.at (AT_CHECK_M4): Fix for cases when the fourth
3274         parameter is `stderr' or `experr'.  Optimize if it was `ignore'.
3275         * lib/autotest/general.m4 (AT_CHECK): Update comment.
3277 2007-09-27  Eric Blake  <ebb9@byu.net>
3279         Squelch changeword in m4sugar.
3280         * lib/m4sugar/m4sugar.m4 (changeword): Disable this experimental
3281         feature of m4 1.4.x.
3283         Configure whitespace touchups.
3284         * lib/autoconf/general.m4 (_AC_INIT_HELP): Fix alignment of
3285         installation directories, and avoid TAB, in configure --help
3286         output.
3287         * configure.ac: Avoid extra trailing newline.
3288         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Avoid space-tab.
3289         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid TAB in
3290         config.status --help output.
3291         * configure: Regenerate.
3293         Fix underquotation in AS_HELP_STRING.
3294         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Don't underquote lhs
3295         argument.
3296         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't underquote
3297         first-prefix argument.
3298         * tests/m4sh.at (AS@&t@_HELP_STRING): Test this fix.
3299         * NEWS: Document AS_HELP_STRING fix.
3301         Autotest formatting touchups.
3302         * lib/autotest/general.m4 (HELP_TUNING): Avoid TAB in terminal
3303         output.
3304         (PATH): Simplify computation of new PATH.
3306 2007-09-26  Eric Blake  <ebb9@byu.net>
3308         Fix testsuite breakage in last patch.
3309         * tests/autotest.at (AT_CHECK_AT_TITLE): Properly quote the
3310         font-lock fix.
3311         * tests/torture.at (@%:@define header templates): Rename, so that
3312         output lines up correctly.
3314         More font-lock happiness.
3315         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Clean up font
3316         confusion.
3318 2007-09-25  Eric Blake  <ebb9@byu.net>
3320         Typo fixes.
3321         * lib/autoconf/general.m4 (AC_SUBST): Fix typo in comment.
3322         * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Likewise.
3324         Improve documentation of M4 parameter expansion.
3325         * doc/autoconf.texi (Quoting and Parameters): New section.
3326         (Quotation and Nested Macros): Improve wording.
3328         Improve C99 detection.
3329         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and
3330         avoid deprecation warning with icc.
3331         * THANKS: Update.
3332         Reported by Ted Bullock.
3334 2007-09-24  Jim Meyering  <jim@meyering.net>
3336         Whenever possible, use the vertical bar as sed delimiter.
3337         * lib/autoconf/functions.m4 (GETLOADAVG_LIBS) [AC_FUNC_GETLOADAVG]:
3338         Use "|", not "!".
3339         * lib/autoconf/status.m4 (_AC_SRCDIRS) [ac_top_builddir_sub]:
3340         [ac_dir_suffix]: Use "|", not "," as sed delimiter.
3341         * tests/mktests.sh (as_me): Likewise.
3342         * lib/freeze.mk (check-forbidden-patterns): Likewise.
3343         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
3344         * configure: Regenerate.
3345         * doc/autoconf.texi (Shell Substitutions): Use "|", not "," in examples.
3346         * lib/autotest/general.m4 (AT_INIT): Use "|", not "&" as sed delimiter
3347         in the : -> $PATH_SEPARATOR transformation of $AUTOTEST_PATH.
3348         This is fine, as long as $PATH_SEPARATOR doesn't contain "|".
3350 2007-09-22  Jim Meyering  <jim@meyering.net>
3352         Add a comment.
3353         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Document the
3354         2004-05-31 change also with a comment in the code.
3356 2007-09-20  Eric Blake  <ebb9@byu.net>
3358         More contribution housekeeping.
3359         * THANKS: Sort.
3360         * AUTHORS: Sort, reflect recent assignment from Helge Deller.
3362         Ignore additional files, when copying cross-repository.
3363         * .gitignore: Ignore CVS directories, emacs edits.
3364         * .cvsignore: Ignore .git directory, emacs edits.
3366 2007-09-15  Eric Blake  <ebb9@byu.net>
3368         Provide AC_VERSION, not m4_AUTOCONF_VERSION.
3369         * doc/autoconf.texi (Text processing Macros): Remove mention of
3370         m4_AUTOCONF_VERSION, and leave m4_PACKAGE_VERSION undocumented
3371         once again.
3372         (Notices): Move AC_PREREQ...
3373         (Versioning): ...to this new section, alongside the new AC_VERSION
3374         alias for the undocumented m4_PACKAGE_VERSION.
3375         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): Revert change.
3376         * lib/autoconf/general.m4 (AC_VERSION): New macro.
3377         * NEWS: Update to match this rename.
3378         * tests/m4sugar.at (m4@&t@_version_compare): Remove tests of
3379         m4_PACKAGE_VERSION.
3380         * tests/tools.at (autoconf: AC_VERSION): New test.
3381         Suggested by Paolo Bonzini and Benoit Sigoure.
3383 2007-09-14  Eric Blake  <ebb9@byu.net>
3385         Prepare for conversion to git.
3386         * doc/.cvsignore: Avoid multiple listings on one line.
3387         * bin/.cvsignore: Likewise.
3388         * .gitignore, bin/.gitignore, config/.gitignore, doc/.gitignore,
3389         lib/.gitignore, lib/Autom4te/.gitignore, lib/autoconf/.gitignore,
3390         lib/autoscan/.gitignore, lib/autotest/.gitignore,
3391         lib/emacs/.gitignore, lib/m4sugar/.gitignore, man/.gitignore,
3392         tests/.gitignore: New files, identical to .cvsignore counterpart.
3394 2007-09-13  Eric Blake  <ebb9@byu.net>
3396         Editing eye-candy.
3397         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Restore
3398         font-lock balance.
3399         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Likewise.
3400         * lib/autoconf/general.m4 (_AC_DO_ECHO): Likewise.
3401         * configure: Regenerate.
3403         Clean up 'make dist' of previous patch.
3404         * tests/Makefile.am (EXTRA_DIST): Distribute mktests.stamp.
3405         (CLEANFILES): Don't clean the stamp, since we distribute the
3406         generated files pre-built.
3407         (MAINTAINERCLEANFILES): Clean it here instead.
3408         * tests/Makefile.in: Regenerate.
3410         Avoid parallel 'make check' issue.
3411         * tests/Makefile.am (mktests.stamp): New witness.
3412         (TESTSUITE_GENERATED_AT): Use it.
3413         (CLEANFILES): Clean the witness.
3414         * tests/.cvsignore (mktests.stamp): Ignore the witness.
3416         Document another awk pitfall.
3417         * doc/autoconf.texi (Limitations of Usual Tools) <awk>: Document
3418         limitation of field variables in END.
3419         Reported by Gary V. Vaughan.
3421         * AUTHORS: Add missing entries.
3423 2007-09-12  Eric Blake  <ebb9@byu.net>
3425         Publish m4_ifndef, m4_version_compare, m4_AUTOCONF_VERSION.
3426         * doc/autoconf.texi (Text processing Macros): Document
3427         m4_version_compare, m4_AUTOCONF_VERSION, m4_PACKAGE_VERSION.
3428         (Redefined M4 Macros): Document m4_ifndef.
3429         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): New macro; we
3430         can't obsolete m4_PACKAGE_VERSION at this time since Autoconf 1.10
3431         used it while it was undocumented.
3432         * NEWS: Document this change.
3433         * lib/m4sugar/Makefile.am (version.m4): Update copyright dates.
3434         * lib/m4sugar/Makefile.in: Regenerate.
3435         * tests/m4sugar.at (m4@&t@_version_compare): New test.
3436         Reported by Bruno Haible.
3438         * doc/autoconf.texi (Generic Compiler Characteristics): Add
3439         missing index entries.
3441 2007-09-11  Eric Blake  <ebb9@byu.net>
3443         Centralize all system extensions checks.
3444         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
3445         from AC_AIX, AC_GNU_SOURCE, AC_MINIX.  Add Interix support.
3446         (AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
3447         AC_USE_SYSTEM_EXTENSIONS.
3448         (AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
3449         (AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
3450         * doc/autoconf.texi (Posix Variants): Reword this section,
3451         emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
3452         rather than a series of system-specific checks.
3453         (Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
3454         AC_MINIX.
3455         * NEWS: Document this change.
3456         * THANKS: Update.
3457         Reported by Martin Koeppe.
3459 2007-09-08  Eric Blake  <ebb9@byu.net>
3461         Clean up obsolete macros references.
3462         * doc/autoconf.texi: Add anchors to support better
3463         cross-referencing.
3464         (Particular Structures): Move obsolete macros descriptions...
3465         (External Software): Likewise.
3466         (Package Options): Likewise.
3467         (Obsolete Macros): ...to here.  Add cross-references to
3468         documentation on replacements.
3469         * NEWS: Mention that these macros have been obsolete for a while
3470         now: AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_RDEV AC_WITH AC_ENABLE.
3472         Improve M4 path searching during configure.
3473         * lib/autoconf/programs.m4 (AC_PATH_PROGS_FEATURE_CHECK): New
3474         macro.
3475         (_AC_PATH_PROG_FEATURE_CHECK): Rename...
3476         (_AC_PATH_PROGS_FEATURE_CHECK): ...to this, add defaulted action
3477         parameter, and kill side effects.
3478         (_AC_PROG_GREP, AC_PROG_SED): Adjust callers.
3479         (_AC_FEATURE_CHECK_LENGTH): Kill extra whitespace.
3480         * m4/m4.m4 (AC_PROG_GNU_M4): Don't stop searching until working m4
3481         is found.
3482         (AC_PATH_PROGS_FEATURE_CHECK): Add backwards compatibility hack to
3483         allow bootstrapping with autoconf 2.61.
3484         * configure.ac (M4): AC_PROG_GNU_M4 now exits on failure.
3485         * configure: Regenerate.
3486         * doc/autoconf.texi (Generic Programs): Document new macro.
3487         * tests/mktests.sh (au_exclude_script): Exclude auto-testing new
3488         macro.
3489         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): New test.
3490         * NEWS: Document the change.
3491         * THANKS: Update.
3492         Reported by Hans Aberg.
3494         * doc/autoconf.texi (Generic Programs): Fix typo.
3496 2007-09-06  Eric Blake  <ebb9@byu.net>
3498         * doc/autoconf.texi (Generic Programs): Use $PATH_SEPARATOR, not
3499         :, and make it clear that optional @var{path} defaults to $PATH.
3500         (Erlang Compiler and Interpreter): Likewise.
3502         Texinfo cleanup.
3503         * doc/autoconf.texi: Avoid lines > 80 columns when possible.
3504         Reword some paragraphs to avoid overfull, underfull hbox
3505         warnings.  Add index entries to avoid overfull vbox warnings.
3507 2007-09-05  Eric Blake  <ebb9@byu.net>
3509         * NEWS: Adjust wording for AC_CONFIG_LINKS.
3510         Reported by Ralf Wildenhues.
3512 2007-09-03  Eric Blake  <ebb9@byu.net>
3514         * NEWS: Document fixes that have been applied since 2.61a.
3516         Housekeeping.
3517         * THANKS: Update, and convert to UTF-8 encoding.
3518         * AUTHORS: Likewise.
3520 2007-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3522         * lib/autoconf/general.m4 (AC_SITE_LOAD): Guard against file
3523         names beginning with `-' again.
3525 2007-08-22  Stepan Kasal  <kasal@ucw.cz>
3526             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3528         * doc/autoconf.texi (Defining Directories): Mention
3529         AM_CPPFLAGS, as the way to modify CPPFLAGS when using Automake.
3531 2007-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3533         * lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
3534         here, this macro is expanded by AC_INIT.  Fixes 2.60 regression.
3535         * tests/base.at (configure arguments): New test.
3536         * THANKS: Update.
3537         Report by Olaf Lenz.
3539         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Expand macro
3540         arguments in comment.
3541         Report by Vincent Torri <vtorri at univ minus evry dot fr>.
3543 2007-08-20  Benoit Sigoure  <tsuna@lrde.epita.fr>
3545         * doc/autoconf.texi (File System Conventions): Index the proper
3546         way of detecting absolute file names.
3548 2007-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3550         * build-aux/config.guess, build-aux/config.sub,
3551         build-aux/elisp-comp, build-aux/install-sh, build-aux/mdate-sh,
3552         build-aux/missing, build-aux/texinfo.tex, doc/fdl.texi,
3553         doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
3554         * doc/autoconf.texi (GNU Free Documentation License): Adjust for
3555         sectioning change in fdl.texi.
3557         * bin/autoconf.as: Update --version output to match current GCS.
3558         * bin/autoheader.in: Likewise.
3559         * bin/autom4te.in: Likewise.
3560         * bin/autoreconf.in: Likewise.
3561         * bin/autoscan.in: Likewise.
3562         * bin/autoupdate.in: Likewise.
3563         * bin/ifnames.in: Likewise.
3565 2007-08-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3567         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not try to link a
3568         file to itself if source and build trees coincide.
3569         * tests/torture.at (AC_CONFIG_LINKS and identical files): New
3570         test.
3571         Report by Sebastian Freundt <hroptatyr@gna.org>.
3573 2007-07-20  Paul Eggert  <eggert@cs.ucla.edu>
3575         Reword the copyright notices to match what's suggested in GPLv3.
3576         In ChangeLog files, use more-permissive notice rather than GPL, as
3577         per usual GNU standards these days.
3579 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
3581         * doc/autoconf.texi (autoreconf Invocation): Document ACLOCAL_AMFLAGS
3582         limitation reported by Leo Moisio in
3583         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432941>.
3585 2007-07-03  Paul Eggert  <eggert@cs.ucla.edu>
3587         * COPYING: Update to GPLv3.  All uses changed.
3589 2007-06-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3590         and Paul Eggert  <eggert@cs.ucla.edu>
3592         * doc/autoconf.texi (Limitations of Usual Tools): sed -e ''
3593         fails on AIX 5.3.
3595 2007-06-17  Noah Misch  <noah@cs.caltech.edu>
3597         * lib/autotest/general.m4 (AT_INIT): Handle absolute `srcdir'.
3598         * tests/autotest.at (srcdir propagation): Test absolute `srcdir' and
3599         `srcdir' as subdirectory of `builddir'.
3601 2007-06-13  Noah Misch  <noah@cs.caltech.edu>
3603         * lib/autotest/general.m4 (AT_INIT): Compute $srcdir correctly.
3604         * tests/autotest.at (srcdir propagation): New test.
3605         * THANKS: Update.
3606         Reported by Mike Frysinger.
3608 2007-06-13  Paul Eggert  <eggert@cs.ucla.edu>
3610         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Set FPATH too.
3611         Problem reported by Fred Kreek in
3612         <http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00009.html>.
3613         * doc/autoconf.texi (Special Shell Variables): Warn about FPATH.
3614         (Macro Names, Defining Directories): Don't mention PATH as a name
3615         for a fully qualified file name, as this usage violates the GNU
3616         coding standards and we shouldn't recommend it.
3618         * lib/autotest/general.m4 (AT_INIT): Don't set PATH to the empty
3619         string and then assume shell builtins like "test" will work.
3621 2007-06-12  Noah Misch  <noah@cs.caltech.edu>
3623         * lib/autoconf/general.m4 (AC_SUBST): Raise a fatal error if VARIABLE is
3624         not a valid shell variable name.
3625         * tests/mktests.sh (ac_exclude_list): Add AC_ARG_VAR.
3626         * tests/torture.at (AC_SUBST: variable name validation): New test.
3627         Reported by Andreas Schwab.
3629 2007-06-04  Noah Misch  <noah@cs.caltech.edu>
3631         * doc/autoconf.texi (AC_F77_MAIN): Give a specific usage example that
3632         works with both C and C++.
3634 2007-06-03  Noah Misch  <noah@cs.caltech.edu>,
3635             Bruno Haible  <bruno@clisp.org>
3637         * lib/autoconf/c.m4 (AC_OPENMP): Use a simple loop instead of compiler
3638         brand tests.
3640 2007-05-31  Paul Eggert  <eggert@cs.ucla.edu>
3642         * doc/autoconf.texi (Particular Types): Give example of use for
3643         AC_TYPE_INT8_T etc.
3645 2007-05-29  Stepan Kasal  <kasal@ucw.cz>
3647         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Fix a typo.
3649 2007-05-28  Paul Eggert  <eggert@cs.ucla.edu>
3651         * doc/autoconf.texi (Particular Types): AC_TYPE_INT8_T does not
3652         define HAVE_INT8_T, and likewise for similar macros.
3653         Problem reported by Patrick Welche in
3654         <http://lists.gnu.org/archive/html/autoconf/2007-05/msg00062.html>.
3656 2007-05-25  Noah Misch  <noah@cs.caltech.edu>
3658         * bin/Makefile.am ($(top_builddir)/bin/autom4te): New dependency.
3660 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
3662         * lib/autoconf/c.m4 (AC_OPENMP): Don't echo --enable-openmp
3663         choice, since that's what we do with --enable-largefile etc.
3664         Redo indenting and assignments to simplify things a bit, and make
3665         the parens work with Emacs.
3667         * doc/autoconf.texi (Generic Compiler Characteristics): Fix typo
3668         in my previous change: AC_C_OPENMP -> AC_OPENMP.  Reported by Bruno
3669         Haible.
3671 2007-05-21  Noah Misch  <noah@cs.caltech.edu>
3673         * lib/autoconf/c.m4 (AC_OPENMP): Simplify use of AC_ARG_ENABLE.
3674         * tests/local.at (AT_CHECK_ENV): Exempt OPENMP_CFLAGS.
3676 2007-05-21  Bruno Haible  <bruno@clisp.org>
3678         * NEWS: Rename AC_C_OPENMP to AC_OPENMP.
3679         * lib/autoconf/c.m4 (AC_OPENMP): Renamed from AC_C_OPENMP.
3680         * doc/autoconf.texi (Generic Compiler Characteristics): Move
3681         renamed AC_OPENMP documentation here, from "C compiler".
3682         Mention C++ and Fortran.
3684 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
3686         * doc/autoconf.texi (C Compiler): Tweak OpenMP documentation a bit.
3688 2007-05-21  Bruno Haible  <bruno@clisp.org>
3690         * NEWS: Mention AC_C_OPENMP.
3691         * lib/autoconf/c.m4 (AC_C_OPENMP): New macro.
3692         * doc/autoconf.texi (C Compiler): Document AC_C_OPENMP.
3693         Based in part on Steven G. Johnson's investigations for the AX_OPENMP
3694         macro in the Autoconf macro archive.
3696 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3698         * bin/autom4te.in: Fix typos.
3700 2007-05-16  Noah Misch  <noah@cs.caltech.edu>
3702         * bin/autoconf.as: Handle `-' just like other input files.
3703         * bin/autom4te.in (parse_args): Pass `-' through.
3704         (handle_output): Skip the forbidden token search if we read from stdin.
3705         (up_to_date): Always treat stdin as out of date.
3706         * tests/tools.at (autoconf: input from stdin): New test.
3707         (autoconf: forbidden tokens, basic): Check a second `autoconf' run.
3709 2007-05-16  Stepan Kasal  <kasal@ucw.cz>
3711         * tests/foreign.at tests/semantics.at, tests/tools.at: Remove
3712         parameters for AT_CLEANUP.
3713         * tests/local.at (AT_CHECK_AU_MACRO): Likewise.
3715 2007-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3717         * NEWS: Document that AC_C_RESTRICT checks 'restrict' last.
3718         * doc/autoconf.texi (C Compiler): Likewise.
3720 2007-05-14  Noah Misch  <noah@cs.caltech.edu>
3722         * lib/autoconf/c.m4 (AC_C_RESTRICT): Check `restrict' last.
3724 2007-05-09  Stepan Kasal  <kasal@ucw.cz>
3726         * doc/autoconf.texi: Direntry for "autoconf Invocation"
3727         renamed to "autoconf-invocation"
3729         * doc/autoconf.texi (Caching Results): The CACHE-ID variable
3730         in the examples should not use the internal "ac_" prefix.
3732 2007-05-05  Noah Misch  <noah@cs.caltech.edu>
3734         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): Use `eval'.
3735         * doc/autoconf.texi ($@, case): Document Zsh limitations.
3737 2007-05-03  Stepan Kasal  <kasal@ucw.cz>
3739         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
3740         Reorganize the comments before and in the macro.
3742 2007-05-02  Stepan Kasal  <kasal@ucw.cz>
3744         * lib/autoconf/lang.m4, lib/autoconf/c.m4,
3745         lib/autoconf/fortran.m4, lib/autoconf/erlang.m4: Cleanup of
3746         section titles and other comments; no code change.
3748 2007-05-01  Kevin Ryde  <user42@zip.com.au>
3750         * doc/autoconf.texi (Particular Programs): Typo
3751         @acindex{AC_PROG_MKDIR_P} shouldn't have "AC" in that call.
3753 2007-04-30  Paul Eggert  <eggert@cs.ucla.edu>
3755         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Don't imply that
3756         'configure' will fail if the shell lacks proper support for shell
3757         functions.  Suggested by RMS.
3759 2007-04-29  Paul Eggert  <eggert@cs.ucla.edu>
3761         * doc/autoconf.texi (Limitations of Builtins): Correct the warning
3762         about Solaris /bin/printf '%010000x' 123.  Problem reported by
3763         Bruno Haible.
3765 2007-04-28  Paul Eggert  <eggert@cs.ucla.edu>
3767         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look
3768         for a.* when searching for executables, as this prevents users
3769         from having files like a.c.  Problem reported by Ralf Wildenhues in:
3770         http://lists.gnu.org/archive/html/autoconf-patches/2007-04/msg00029.html
3771         This fixes a problem introduced on 2000-12-19.
3773 2007-04-26  Paul Eggert  <eggert@cs.ucla.edu>
3775         * doc/autoconf.texi (Limitations of Builtins): Warn about Solaris
3776         /bin/printf '%010000x' 123.  Problem reported by Arto C. Nirkko
3777         via Bruno Haible.
3779 2007-04-12  Paul Eggert  <eggert@cs.ucla.edu>
3781         * NEWS: Document recent changes to AC_CHECK_ALIGNOF, AC_CHECK_SIZEOF,
3782         AC_CHECK_TYPE, AC_CHECK_TYPES.
3783         * doc/autoconf.texi (Generic types): C types must be type-names
3784         (the C terminology), not type-ids (the C++ term).  C++ types
3785         must not be anonymous.
3786         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Remove special case
3787         for C++; this drops support for anonymous struct and union types,
3788         which were problematic anyway.
3789         * tests/semantics.at (AC_CHECK_HEADERS_NEW): Adjust test to work even
3790         for C++.
3792 2007-04-12  Jim Meyering  <jim@meyering.net>
3794         * doc/autoconf.texi (Libraries): Typo fix: insert missing "in".
3796 2007-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3798         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Fix AC_CONFIG_LINKS
3799         to prefer a link source from the build tree, if it exists.
3800         Report by Pallav Gupta <pallavgupta@gmail.com>.
3802 2007-04-11  Paul Eggert  <eggert@cs.ucla.edu>
3804         * doc/autoconf.texi (Generic Types): Document the restrictions
3805         on types imposed by AC_CHECK_TYPE, AC_CHECK_TYPES.
3806         (Generic Compiler Characteristics): AC_CHECK_SIZEOF now works
3807         with objects too.  Document the restrictions on its use.
3808         Document the restrictions on AC_CHECK_ALIGNOF's type argument.
3809         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW):
3810         For C, just try sizeof (TYPE) and sizeof ((TYPE)); if the former
3811         works but the latter doesn't, then it's a valid type.
3812         This lets people use function types and so forth.
3813         For C++ there doesn't seem to be a simple solution, so leave it alone.
3814         (AC_CHECK_SIZEOF): Allow argument to be a variable.
3815         (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Don't bother to invoke
3816         AC_CHECK_TYPE; that wasn't documented or necessary.
3818 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
3820         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Skip AS_TEST_X
3821         when cross-compiling.
3823 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
3825         * doc/autoconf.texi (External Software): Fix a typo in the
3826         previous change.
3828 2007-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3830         * doc/autoconf.texi (External Software, Package Options):
3831         Fix ambiguous wording.  Report by Reuben Thomas <rrt@sc3d.org>.
3833 2007-04-06  Paul Eggert  <eggert@cs.ucla.edu>
3835         * doc/autoconf.texi (Particular Types): AC_C_LONG_DOUBLE is now
3836         obsolescent.  Suggested by Bruno Haible.
3837         * NEWS: Document this.
3839 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
3841         * doc/autoconf.texi (Here-Documents, Limitations of Builtins):
3842         (Limitations of Usual Tools): Don't say "older" if Solaris 10 by
3843         default still has the problem.  Problem reported by Bruce Korb.
3845 2007-03-28  Stepan Kasal  <kasal@ucw.cz>
3846         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3848         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix a
3849         comment in the generated config.status.
3851 2007-03-27  Stepan Kasal  <kasal@ucw.cz>
3853         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Update comment.
3855 2007-03-26  Paul Eggert  <eggert@cs.ucla.edu>
3857         * doc/autoconf.texi (Shellology): Rework treatment of the 'test'
3858         command and case statements to make it a bit clearer and describe
3859         more pitfalls.
3861 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
3863         * doc/autoconf.texi (C Compiler): Mention that AC_PROG_CC_C99 also
3864         checks for unsigned long long int.
3866 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3868         * doc/autoconf.texi (Limitations of Usual Tools): Warn about other
3869         nonstandard grep R.E. escape sequences.
3871 2007-03-17  Jim Meyering  <jim@meyering.net>
3873         * doc/autoconf.texi: Adjust grammar around use of "heuristics".
3874         (Limitations of Usual Tools): Also list \< and \>, and mention that
3875         HP-UX's grep, like the one from Solaris, does not support that syntax.
3877 2007-03-09  Stepan Kasal  <kasal@ucw.cz>
3879         * doc/autoconf.texi (Specifying Names): `--host' does not
3880         change the build type.
3882 2007-03-05  Paul Eggert  <eggert@cs.ucla.edu>
3884         * doc/autoconf.texi (C Compiler): Warn that AC_C_BIGENDIAN
3885         suggests AC_CONFIG_HEADERS.
3886         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Warn if not using
3887         AC_CONFIG_HEADERS.  Problem reported by
3888         Peter O'Gorman.
3890 2007-02-28  Paul Eggert  <eggert@cs.ucla.edu>
3892         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Fix typo "__LITLE_ENDIAN__".
3893         Problem reported by Paolo Bonzini in:
3894         http://lists.gnu.org/archive/html/autoconf-patches/2007-02/msg00024.html
3895         * tests/semantics.at (AC_C_BIGENDIAN): Don't reject hosts that have
3896         universal binaries.  Problem reported by Elias Pipping.
3898 2007-02-27  Paul Eggert  <eggert@cs.ucla.edu>
3900         * NEWS: AC_C_BIGENDIAN now supports universal binaries a la Mac OS X.
3901         * doc/autoconf.texi (C Compiler): Document this.  There is a new
3902         extra argument ACTION-IF-UNIVERSAL.
3903         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Implement this.
3904         Add support for Solaris-style _LITTLE_ENDIAN and _BIG_ENDIAN.
3905         Reindent for sanity's sake.
3907 2007-02-24  Eric Blake  <ebb9@byu.net>
3909         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
3910         copyright.
3911         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
3912         * lib/autotest/general.m4 (AT_INIT): Likewise.
3913         (_AT_DECIDE_TRACEABLE): Fix syntax highlighting.
3915 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3917         * lib/autotest/general.m4 (AT_INIT): With --clean, return exit
3918         status of rm so we know when it failed.
3919         If cleaning of test dir failed before running the test, warn.
3920         Output the line separator in verbose mode before the warning
3921         to make clear the warning belongs to the following test.
3923 2007-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3925         * doc/autoconf.texi (Parentheses): Mention problem with (( in
3926         shells.
3928 2007-02-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3929         and Paul Eggert  <eggert@cs.ucla.edu>
3931         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix quoting
3932         errors introduced in last change.
3934 2007-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3936         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer \r to
3937         an actual carriage return.  Use "ac_cr" to contain the actual
3938         carriage return.
3939         * doc/autoconf.texi (Limitations of Usual Tools): Document problem
3940         with traditional Awk and begin.
3941         * tests/torture.at (Limitations of Builtins): Document the problem
3942         with Bash 2.03 printf.
3943         (Substitute and define special characters):
3944         Remove trailing white space.  Work around a bug in Solaris 8 /bin/bash.
3946 2007-02-06  Ralf Menzel  <menzel@ls6.cs.uni-dortmund.de>  (tiny change)
3948         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Redirect
3949         input from /dev/null in awk test, so even Solaris /usr/bin/awk
3950         will not wait for input with a script containing only a BEGIN
3951         rule.
3953 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
3955         * doc/autoconf.texi (Introduction, Why GNU M4): Clarify M4 version
3956         requirements.
3957         * README: Likewise.
3959 2007-02-02  Eric Blake  <ebb9@byu.net>
3961         * NEWS: Update copyright.
3963         * m4/m4.m4 (AC_PROG_GNU_M4): Reject M4 1.4 through 1.4.4 as
3964         broken.
3965         * configure.ac: Update error message.
3966         * NEWS: Note that M4 1.4.5 or later is now a hard dependency.
3967         Reported by Gary Vaughan and Jim Meyering, and problem analyzed
3968         by Stepan Kasal:
3969         http://lists.gnu.org/archive/html/bug-autoconf/2006-11/msg00025.html
3971 2007-01-31  Eric Blake  <ebb9@byu.net>
3973         * THANKS (people): Update.
3975 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3977         * doc/autoconf.texi (Shellology): pdksh 5.2.14 is still the
3978         latest version.
3979         (Shell Substitutions): Note problems with @{var:=value} etc.
3980         Add a new section for problems with @{#var} etc.  Problem noted
3981         by Ralf Wildenhues.  See:
3982         http://lists.gnu.org/archive/html/libtool-patches/2005-01/msg00157.html
3984 2007-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3986         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Also
3987         AC_SUBST([MKDIR_P]), so that Automake < 1.10 will pick up its
3988         trace, if a package uses AC_PROG_MKDIR_P explicitly.  The actual
3989         substitution will still be done by the special code.
3990         Report by Jim Meyering.
3992         * doc/autoconf.texi (File System Conventions): Mention that
3993         $PATH_SEPARATOR is for the build system only.
3994         Report by Keith Marshall.
3996 2007-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3998         * doc/autoconf.texi (Setting Output Variables): Mention that
3999         all non-NUL characters are ok in substituted values.
4000         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Fix comment typo.
4001         (_AC_OUTPUT_FILES_PREPARE): Test and use backslash escaping of
4002         carriage return for $AWK, needed for BSD awk.
4003         * tests/torture.at (Substitute and define special characters):
4004         Test all 8 bit non-NUL characters.
4005         Report against Automake by Patrick Welche.
4007 2007-01-15  Stepan Kasal  <kasal@ucw.cz>
4009         * doc/autoconf.texi: Direntry for "autoconf Invocation" renamed.
4011 2007-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4013         * lib/autoconf/programs.m4 (AC_PROG_SED): When closing a pipe
4014         early on the reader side, drop stderr of the input to avoid
4015         `broken pipe' error output; this may happen even with shell
4016         builtin `echo' of some bash versions.  Reports by Ian Macdonald
4017         <iamacdo@telkomsa.net> and Sam Sexton <Sam.Sexton@reuters.com>.
4019 2007-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4021         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Use newlines to
4022         separate items of `ac_user_opts', to avoid long lines.
4023         (_AC_INIT_PARSE_ENABLE2, _AC_ENABLE_IF_ACTION): Adjust.
4025 2007-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4027         * doc/autoconf.texi: Fix some typos.
4029 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4031         Fix some wording problems noted by Paolo Bonzini in:
4032         http://lists.gnu.org/archive/html/autoconf-patches/2007-01/msg00077.html
4033         * doc/autoconf.texi (Signed Overflow Examples): Give more
4034         discussion about the allow_superuser_privileges example,
4035         and change it a bit to make things clearer.
4036         (Optimization and Wraparound): Clarify whether the compiler
4037         will generate an infinite loop for the example derived from
4038         Autoconf's mktime test.
4039         (Signed Overflow Advice): Say that -ftrapv is meant for debugging.
4040         Also, clarify unsigned multiplication overflow.
4042 2007-01-04  Eric Blake  <ebb9@byu.net>
4044         * bin/Makefile.am (RELEASE_YEAR): New macro.
4045         (edit): Use it to supply correct copyright year to scripts.
4046         * bin/autoconf.as (version): Use it.
4047         * bin/autoheader.in ($version): Likewise.
4048         * bin/autom4te.in ($version): Likewise.
4049         * bin/autoreconf.in ($version): Likewise.
4050         * bin/autoscan.in ($version): Likewise.
4051         * bin/autoupdate.in ($version): Likewise.
4052         * bin/ifnames.in ($version): Likewise.
4054 2007-01-02  Paul Eggert  <eggert@cs.ucla.edu>
4056         * doc/autoconf.texi (Integer Overflow): Revised based on today's
4057         feedback.  The most important changes document what happens when
4058         you convert an out-of-range value to a signed integer type, and
4059         say that (sum < a) != (b < 0) reliably detects overflow when sum =
4060         a + b.
4062         * doc/autoconf.texi (Integer Overflow): Greatly expand and
4063         rewrite, taking notions from the recent discussion on the gcc and
4064         autoconf mailing lists; please see
4065         http://lists.gnu.org/archive/html/autoconf-patches/2006-12/msg00091.html
4066         and follow the many links.
4067         (Integer Overflow Basics, Signed Overflow Examples):
4068         (Optimization and Wraparound, Signed Overflow Advice):
4069         (Signed Integer Division): New sections.
4071 2006-12-28  Steven G. Johnson  <stevenj@alum.mit.edu>
4073         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't include
4074         preprocessor macro arguments in traced name.
4075         * doc/autoconf.texi (Defining symbols): Document longstanding
4076         support for AC_DEFINE-ing macros with arguments, and document
4077         behavior when the same variable has multiple AC_DEFINEs.
4078         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Revert to the
4079         old implementation which AC_DEFINEs the FC_FUNC and FC_FUNC_
4080         macros directly, giving much shorter and simpler code.
4082 2006-12-28  Malcolm Purvis <malcolmp@xemacs.org>  (trivial change)
4084         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Insert a
4085         space before "$ac_configure_args" to prevent a 'config.status
4086         --recheck' failure if ac_configure_args doesn't contain a leading
4087         space.  This works around a problem with the XEmacs configure.ac,
4088         which uses the (undocumented) ac_configure_args variable
4089         inconsistently with Autoconf.
4091 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
4093         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):
4094         Include <limits.h>, and use its INT_MAX to rewrite the
4095         j loop so that it does not overflow 'int'.  Problem reported by
4096         Ralf Wildenhues in
4097         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
4098         Play it safe by shifting left by 1 rather than multiplying by 2,
4099         as GCC is less likely to optimize this away when the value
4100         is signed (when it assumes overflow leads to undefined behavior).
4101         Also, don't assume time_t uses two's complement.
4103 2006-12-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4105         * tests/torture.at (Substitute a 2000-byte string): Avoid using
4106         a 10kB long (multi-line) string literal, OpenServer 5.0.7 ksh
4107         dumps core on it.  Report by Tim Rice.
4109 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
4111         * lib/autoconf/general.m4 (AC_ARG_ENABLE): Print help about
4112         --disable-option-checking to --help output even when
4113         AC_PRESERVE_HELP_ORDER is not used.
4114         (_AC_INIT_PARSE_ENABLE2): Print warnings using actual --enable or
4115         --with argument, rather than argument with [-.] replaced by
4116         underscores.
4117         * NEWS: Fix typo in previous change; the news was in the
4118         wrong section.
4120 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4122         * NEWS: Warnings are now generated by default for unknown
4123         --enable-* and --with-* options.
4124         * doc/autoconf.texi (Option Checking): Renamed from
4125         (Configure Option Checking).  Tighten up the wording a bit.
4126         (External Software, Package Options): Cross-reference to Option
4127         Checking, and use this to shorten our section.
4128         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Prefer test -n
4129         "$x" to test "x$foo" != x.
4130         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
4131         Don't warn if $enable_option_checking is "no".
4132         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Initialize
4133         ac_unrecognized_opts to the empty string.
4134         Don't echo the unrecognized opts, as this might mishandle
4135         backslashes or leading -.
4136         (AC_PRESERVE_HELP_ORDER): Put the --disable-option-checking
4137         usage next to the other --disable-FEATURE options in the
4138         help string.
4140 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
4142         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, _AC_INIT_PARSE_ARGS):
4143         (_AC_INIT_PARSE_ENABLE2, _AC_INIT_HELP, _AC_ENABLE_IF):
4144         Print warning for unrecognized --with and --enable options
4145         (AC_DISABLE_OPTION_CHECKING): New macro to disable warnings.
4146         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS):
4147         Disable option checking when subdirs are configured.
4148         (AC_OUTPUT): If warnings are enabled, print warning about
4149         unrecognized --with and --enable options at the end of
4150         the configure output (as well as at the beginning).
4151         * doc/autoconf.texi (Option Checking): New node.
4152         Document new option warning functionality.
4154 2006-12-16  Eric Blake  <ebb9@byu.net>
4156         * configure.ac (AC_INIT): Bump version, since 2.61a is released.
4157         * NEWS: Start news for current version.
4159 2006-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4161         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
4162         Define HAVE_GETMNTENT to 1, not to the empty string.
4163         Problem originally reported by Jochen Friedrich in
4164         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403243>.
4166         This change prompted by a problem report by Andrey Simonenko in
4167         <http://lists.gnu.org/archive/html/bug-autoconf/2006-12/msg00026.html>.
4168         * doc/autoconf.texi (Defining Symbols): AC_DEFINE works for
4169         object-like macros only, in the traditional portable character
4170         set.
4171         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL):
4172         Warn about attempts to define things that are not identifiers.
4173         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Rewrite to avoid
4174         awful hack that AC_DEFINEd macro names containing parentheses.
4176 2006-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4178         * doc/autoconf.texi: Undo some of the 2006-12-10 change.  It was
4179         too drastic, even if Texinfo in theory requires it for info mode.
4181         (config.status Invocation): Renamed back from Recreating a
4182         Configuration).
4183         (Obsolete config.status Use): Renamed back from Obsolete Recreation.
4184         (Autoconf 2.13): Renamed back from 20th-century Autoconf 2.
4186 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
4188         * NEWS: Version 2.61a.
4190 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
4191         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4193         * NEWS: Document changes with echo and printf, and the lack
4194         of limits on the total size of multi-line values of substituted
4195         variables, and the AC_FUNC_FSEEKO fix.
4197 2006-12-10  Paul Eggert  <eggert@cs.ucla.edu>
4199         * doc/autoconf.texi (Writing Autoconf Input): Renamed from
4200         Writing configure.ac.
4201         (Autoconf Input Layout): Renamed from configure.ac Layout.
4202         (Recreating a Configuration): Renamed from config.status Invocation.
4203         (Obsolete Recreation): Renamed from Obsolete config.status Use.
4204         (acconfig Header): Renamed from acconfig.h.
4205         (20th-century Autoconf 2): Renamed from Autoconf 2.13.
4206         (Writing Testsuites): Renamed from Writing testsuite.at.
4207         (Autom4te Cache): Renamed from autom4te.cache.
4209         * BUGS: Remove mention of VPATH problem, since it's now documented
4210         not to be a bug in the Autoconf build procedure itself, but rather
4211         a problem with the proprietary `make' programs.
4213         * doc/autoconf.texi (Build Directories): Add a cross reference
4214         to VPATH and Make.
4216         * build-aux/config.guess, build-aux/config.sub, build-aux/texinfo.tex:
4217         * doc/standards.texi: Sync from gnulib.
4219         * man/autoconf.1, man/autoheader.1, man/autom4te.1, man/autoreconf.1:
4220         * man/autoscan.1, man/autoupdate.1, man/config.guess.1:
4221         * man/config.sub.1, man/ifnames.1: Remove from CVS, since they're
4222         generated automatically.
4224 2006-12-06  Paul Eggert  <eggert@cs.ucla.edu>
4226         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Also try -xc99=all, for Sun
4227         C 5.8 on Solaris 10.  Using -xc99=all rather than -xc99 bypasses
4228         the buggy -xc99 option of Forte Developer 7 C on Solaris 9.
4230 2006-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4232         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the
4233         `CEOF$ac_eof' special marker, the awk script cannot contain a
4234         line matching `^CEOF', so this is not needed any more.
4235         * tests/torture.at (Substitute a newline): Expose the `%!_!# '
4236         special marker in the test.
4238 2006-12-06  Stepan Kasal  <kasal@ucw.cz>
4240         * tests/tools.at (autom4te preselections): Use `find -newer';
4241         remove one of the sleeps.
4243         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Make it
4244         more readable, using ...
4245         (_AC_INIT_PARSE_ENABLE2): ... this new helper macro.
4247         * doc/autoconf.texi (autoheader Invocation): Do not double-
4248         quote the parameter of `AH_BOTTOM' in the example.
4250 2006-12-05  Stepan Kasal  <kasal@ucw.cz>
4252         * doc/autoconf.texi (Configuration Headers): Remove the
4253         example with multiple input files.
4254         (autoheader Invocation): Encourage `AH_BOTTOM', discouraging
4255         multiple input files.
4257 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4259         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When
4260         creating the awk substitution script, handle one input line at a
4261         time, so that the maximum length of a substituted (multi-line)
4262         value is not limited by the size of the sed pattern space.
4263         The trade-off is a slightly repetitive sed script.
4264         * doc/autoconf.texi (Limitations of Usual Tools): Branch labels
4265         can only have up to 7 characters, due to Solaris 10 /bin/sed.
4266         * tests/torture.at (Substitute a 2000-byte string): Increase the
4267         test with several long lines, they should not be caught by sed
4268         limits any more.
4270         * tests/tools.at (autom4te preselections): New test, to flag
4271         entries missing from autom4te.cfg.
4272         Report by David Byron <dbyron@hheld.com>.
4274         * tests/torture.at (Substitute a 2000-byte string): Actually use
4275         AC_PROG_AWK, so the last change works as intended.
4276         (Substitute and define special characters): Likewise.
4277         (Substitute a newline): Likewise.
4279         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use `$AWK'
4280         instead of `awk' consistently.
4281         (_AC_OUTPUT_CONFIG_STATUS): Initialize $AWK.
4282         * tests/torture.at (Torturing config.status): Test both the
4283         result of AC_PROG_AWK and plain awk.
4284         (Substitute a 2000-byte string): Likewise.
4285         (Substitute and define special characters): Likewise.
4286         (Substitute a newline): Likewise.
4288 2006-12-04  Paul Eggert  <eggert@cs.ucla.edu>
4290         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko
4291         can be assigned to a function pointer.  Problem reported by
4292         Peter Palfrader in <http://bugs.debian.org/401377>.  Based on
4293         part of a patch by Ralf Wildenhues in that same bug report.
4295 2006-12-01  Paul Eggert  <eggert@cs.ucla.edu>
4297         * tests/mktests.sh (ac_exclude_list): Exclude AC_FUNC_SETVBUF_REVERSED.
4298         * tests/semantics.at (AC_FUNC_SETVBUF_REVERSED): New test.
4300 2006-12-01  Eric Blake  <ebb9@byu.net>
4302         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in
4303         cross-compiling from cygwin to mingw.
4304         Reported by Bob Rossi.  This resurrects the 2000-11-30 patch to
4305         aclang.m4, which was mistakenly removed in the 2001-09-17 patch
4306         to lib/autoconf/c.m4.
4308 2006-12-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4310         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Use a longer test
4311         string for more reliable failure.  Wrap the entire test that
4312         causes the broken Solaris printf to dump core, in a subshell,
4313         so the segmentation fault message is reliably suppressed.
4314         Fix shell expansion errors by using /usr/ucb/echo always;
4315         avoid an error on systems without it by another subshell.
4316         Avoid m4 expansion of `$1'.  Set the zeroth argument of the
4317         subshell-$as_echo to `as_echo', for better error message.
4319 2006-11-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4321         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): If `BASH_ARGV' or
4322         `BASH_SOURCE' contain a newline, set them to empty, as they may
4323         not be unset.
4325 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
4327         Turn AC_FUNC_SETVBUF_REVERSED into a noop.  It's been obsolete for
4328         years and is too hard to maintain now.  The last straw was
4329         reported by Jerker Baeck in
4330         <http://lists.gnu.org/archive/html/autoconf/2006-11/msg00102.html>.
4331         * NEWS: AC_FUNC_SETVBUF_REVERSED is now obsolete.
4332         * doc/autoconf.texi (Particular Functions): Move
4333         AC_FUNC_SETVBUF_REVERSED from here...
4334         (Obsolete Macros): ... to here.  Say that it does nothing now.
4335         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
4336         Turn into (almost) a no-op.
4338         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL, AC_C_CONST):
4339         (AC_C_VOLATILE):
4340         Do not recommend via AN_FUNCTION, AN_IDENTIFIER, or AN_HEADER.
4341         These macros are obsolescent and new applications shouldn't need them.
4342         * lib/autoconf/functions.m4 (AC_FUNC_CLOSEDIR_VOID, AC_REPLACE_FNMATCH):
4343         (AC_FUNC_GETLOADAVG, AC_FUNC_GETPGRP, AC_FUNC_MEMCMP):
4344         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP, AC_FUNC_STAT, AC_FUNC_LSTAT):
4345         (AC_FUNC_STRFTIME, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
4346         (AC_FUNC_VPRINTF): Likewise.
4347         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT, AC_HEADER_STAT):
4348         (AC_HEADER_STDC, AC_HEADER_SYS_WAIT, AC_HEADER_TIME): Likewise.
4349         * lib/autoconf/types.m4 (AC_STRUCT_TM): Likewise.
4351         * doc/autoconf.texi (Setting Output Variables): Mention that
4352         @VAR1@VAR2 has unspecified behavior.  Problem reported by
4353         Ralf Wildenhues.
4354         * NEWS: Mention this.
4356         * Makefile.am: Put only a single '#' into the copyright notice,
4357         so that it's also present in the output file.  Standardize wording
4358         in makefile copyright notices to match GNU coding standards.
4359         * bin/Makefile.am: Likewise.
4360         * doc/Makefile.am: Likewise.
4361         * lib/Makefile.am: Likewise.
4362         * lib/freeze.mk: Likewise.
4363         * lib/autoconf/Makefile.am: Likewise.
4364         * lib/autoscan/Makefile.am: Likewise.
4365         * lib/autotest/Makefile.am: Likewise.
4366         * lib/m4sugar/Makefile.am: Likewise.
4367         * man/Makefile.am: Likewise.
4368         * tests/Makefile.am: Likewise.
4369         * lib/emacs/Makefile.am: Remove copyright notice; it's just a
4370         one-line file.
4372 2006-11-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4374         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix error
4375         in the sed script that mangles the awk script: delete up to the
4376         first exclamation mark only.
4377         * tests/torture.at (Substitute and define special characters):
4378         Test '!' too.
4380 2006-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4382         Rewrite config files generation: avoid quadratic growth in
4383         the number of substituted variables by using awk instead of sed
4384         for the bulk of the substitutions.
4385         * NEWS: Mention this.
4386         * doc/autoconf.texi (Setting Output Variables): `|#_!!_#|' is also
4387         forbidden in the output (and thus input) file.
4388         * lib/autoconf/status.m4 (_AC_AWK_LITERAL_LIMIT): New macro.
4389         (_AC_OUTPUT_FILES_PREPARE): Instead of several sed scripts,
4390         generate just one large awk script for substitutions,
4391         eliminating much of the earlier complexity, while adding some
4392         new complexity.  Only expand the substitution templates at
4393         configure time, for smaller configure script size.  If
4394         _AC_SUBST_FILES are used, test 'awk' for working getline support
4395         at config.status time.  If absent, interpolate through the
4396         shell.  The awk script was written with much help
4397         from Paolo Bonzini and Paul Eggert.
4398         (_AC_SED_CMD_NUM, _AC_SED_DELIM_NUM, _AC_SED_FRAG): Removed.
4399         (_AC_SED_FRAG_NUM): Likewise.
4400         (_AC_SUBST_CMDS): Renamed from...
4401         (_AC_SED_CMDS): ...this.
4402         (_AC_OUTPUT_FILE): Use _AC_SUBST_CMDS.
4403         * tests/torture.at (Substitute a 2000-byte string): Also
4404         substitute a line with 1000 words, and a variable with several
4405         long lines.
4406         (Substitute and define special characters): Test awk special
4407         characters, and put substitution input strings `@foo@' in the
4408         output, to test that no recursion happens; test several other
4409         combinations from Paolo Bonzini.
4411 2006-11-25  Paul Eggert  <eggert@cs.ucla.edu>
4413         * lib/autotest/general.m4 (AT_INIT): Undo recent changes
4414         that replaced echo with AS_ECHO where this wasn't necessary.
4415         Problem reportd by Ralf Wildenhues.
4416         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Port to Solaris 7,
4417         where "/usr/bin/printf '%s\n' S" dumps core if S is long.
4418         This is Sun bug 4206210.  Problem reportd by Ralf Wildenhues.
4420 2006-11-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4422         * lib/freeze.mk (GREP): Removed, no need to initialize this.
4424 2006-11-21  Paul Eggert  <eggert@cs.ucla.edu>
4426         * doc/autoconf.texi (Limitations of Usual Tools): Don't claim
4427         that traditional Awk lacks 3-arg "split".  It has it.
4428         Mention that FS must be a single character, and a few other
4429         99-byte limits of traditional Awk.
4430         Mention that if (i in a) doesn't work with traditional Awk.
4432 2006-11-18  Paul Eggert  <eggert@cs.ucla.edu>
4434         * tests/autotest.at (BSx641-newline in command):
4435         (BS-BS-newline in command, BSx640-newline in command):
4436         (Newline-CODE-BS-newline in command):
4437         (Single-quote-BS-newline in command):
4438         (Single-quote-newline-BS-newline in command):
4439         Use printf '%s\n' instead of echo, for portability to hosts
4440         where echo interprets backslashes.  This will break on hosts
4441         that lack printf, but for now let's assume all such hosts
4442         are dead (if not, we should get reports of test failures).
4444 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
4446         'echo' has some portability problems, when given a first argument
4447         with a leading '-', or when given any argument containing '\'.
4448         Avoid using 'echo' in these cases.
4449         * bin/Makefile.am $(bin_SCRIPTS): Rewrite to avoid 'echo' entirely.
4450         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Likewise.
4451         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
4452         * lib/autotest/general.m4 (AT_INIT): Likewise.
4453         * bin/autoconf.as: Use AS_ECHO rather than plain echo, when the
4454         argument might be unportable.
4455         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Likewise.
4456         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Likewise.
4457         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT):
4458         (_AC_FC_LIBRARY_LDFLAGS): Likewise.
4459         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Likewise.
4460         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE, _AC_INIT_PREPARE):
4461         (_AC_ARG_VAR_VALIDATE, AC_ARG_PROGRAM, _AC_MSG_LOG_CONFTEST):
4462         (AC_RUN_LOG, _AC_RUN_IFELSE, _AC_LIBOBJS_NORMALIZE): Likewise.
4463         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
4464         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Likewise.
4465         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
4466         (AC_PROG_MAKE_SET): Likewise.
4467         * lib/autoconf/status.m4 (_AC_SRCDIRS, _AC_OUTPUT_HEADER):
4468         (_AC_OUTPUT_SUBDIRS, _AC_OUTPUT_CONFIG_STATUS): Likewise.
4469         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT, AT_INIT):
4470         (AT_CLEANUP, _AT_DECIDE_TRACEABLE, _AT_CHECK): Likewise.
4471         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE, _AS_ECHO_UNQUOTED):
4472         (_AS_BASENAME_SED, _AS_DIRNAME_SED, AS_MKDIR_P, AS_TMPDIR, AS_UNAME):
4473         (AS_TR_SH, AS_TR_CPP, AS_VAR_GET): Likewise.
4474         * bin/autoconf.as: Redo verbose flag implementation, as the old
4475         scheme wouldn't work with AS_ECHO.
4476         * lib/autotest/general.m4 (AT_INIT): Likewise.
4477         * lib/autoconf/general.m4 (AC_MSG_RESULT, AC_MSG_RESULT_UNQUOTED):
4478         Don't use ECHO_T, since ECHO_N is now reliable.
4479         * lib/autotest/general.m4 (AT_INIT): Likewise.
4480         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use sed "$script"
4481         rather than using a here-document to put the script into a file.
4482         (_AC_DO_ECHO): Hoist the eval out of the echo, so that we can
4483         use AS_ECHO.
4484         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Likewise.
4485         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Use
4486         AS_ECHO_N rather than ECHO_N and ECHO_C.  This doesn't fix any
4487         bug, but we might as well stop using ECHO_N and ECHO_C internally.
4488         * lib/autotest/general.m4 (AT_SETUP): Likewise.
4489         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N): Likewise.
4490         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
4491         (_AC_OUTPUT_MAIN_LOOP): Rework echo so that it has just one
4492         operand, as AS_ECHO requires.  Avoid double file name expansion.
4493         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke _AS_ECHO_PREPARE.
4494         Don't set as_nl, since _AS_ECHO_PREPARE does that now.
4495         (_AS_PREPARE): Comment that _AS_ECHO_N_PREPARE is just for user code.
4496         (AS_ECHO, AS_ECHO_N, _AS_ECHO_PREPARE): New macros.
4497         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
4498         Double-quote strings that would otherwise contain M4 comments.
4499         * tests/m4sh.at (AS_ECHO and AS_ECHO_N): New test.
4501         * configure.ac (AC_INIT): Bump to 2.61a.
4502         * NEWS: Likewise.
4504 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
4506         Version 2.61.
4508         * configure.ac (AC_INIT): Bump to 2.61.
4509         * NEWS: Likewise.
4511         * tests/autotest.at (Macro with backslash in a test title):
4512         Comment out for now, as this tests neither fails nor passes
4513         reliably.  Problem reported by Ralf Wildenhues.
4515 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
4517         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos
4518         in previous change, which caused test failures.
4520 2006-11-16  Stepan Kasal  <kasal@ucw.cz>
4522         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Factor out
4523         code for --enable, --disable, --with, and --without to...
4524         (_AC_INIT_PARSE_ENABLE): ... a new macro.
4525         * doc/autoconf.texi (Package Options):
4526         * NEWS: Document that AC_ARG_ENABLE allows dots, too.
4528 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
4530         Import these changes from config via gnulib:
4532         2006-11-15  Ben Elliston  <bje@gnu.org>
4534         From Josselin Mouette <joss@debian.org>:
4535         * build-aux/config.guess (SX-8:SUPER-UX:*:*): New.
4537         2006-11-08  Ben Elliston  <bje@gnu.org>
4539         * build-aux/config.guess (authenticamd:Interix*:[3456]*): Another AMD64.
4541         2006-11-07  Steve Woodford  <scw@NetBSD.org>
4542                     Ben Elliston  <bje@gnu.org>
4544         * build-aux/config.guess (*:NetBSD:*:*): Handle sh5el arch.
4545         * build-aux/config.sub (sh5el): New basic_machine.
4548         Import this change from coreutils:
4550         2006-02-13  Jim Meyering  <jim@meyering.net>
4552         * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
4555         Import this change from gnustandards via gnulib:
4557         2006-11-15  Karl Berry  <karl@gnu.org>
4559         * standards.texi: core -> memory, throughout.
4560         (CPU Portability): show correct example of calling write
4561         on a char value; thanks to Paul Eggert for the code.
4562         Both of these suggestions from Eugene Y. Vasserman.
4565         Import these changes from texinfo via gnulib:
4567         2006-11-08  Karl Berry  <karl@gnu.org>
4569         * build-aux/texinfo.tex (\dopdfimage): look for png, jpg/jpeg/JPG, and
4570           as well as pdf images, since they are supported in pdftex with
4571           no further ado.
4573         2006-11-05  Karl Berry  <karl@gnu.org>
4575         * doc/texinfo.tex (Image Syntax): don't mention GIF any more.
4577 2006-11-13  Paul Eggert  <eggert@cs.ucla.edu>
4579         * NEWS: Document the AC_ARG_WITH change.
4581 2006-11-13  Bruno Haible  <bruno@clisp.org>
4583         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): For --with, --without
4584         options, transliterate also dots to underscores.
4585         (_AC_ENABLE_IF): Transliterate also dots to underscores.
4586         * doc/autoconf.texi (External Software): Document that AC_ARG_WITH's
4587         first argument may also contain dots.
4589 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
4591         * tests/mktests.sh (ac_exclude_list): Exclude AC_PROG_CXX_C_O, for
4592         benefit of platforms like Solaris+GCC where it is common to have a
4593         non-working g++ installation.
4595 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4596         and Joel E. Denny  <jdenny@ces.clemson.edu>
4597         and Paul Eggert  <eggert@cs.ucla.edu>
4599         * tests/autotest.at (AT_CHECK_AT_TITLE): Fix shell quoting bugs
4600         and non-portable sed scripts, and use $CONFIG_SHELL when invoking
4601         ./micro-suite.
4603 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
4605         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Set
4606         ac_cv_type_long_long_int to 'yes' instead of 'cross-compiling'.
4607         Imported from a similar patch to gnulib by Bruno Haible.
4609 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
4611         * NEWS: New macros AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS.
4612         * doc/autoconf.texi (C Compiler): Document them.
4613         * lib/autoconf/c.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS):
4614         New macros, taken from gnulib.
4616 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
4618         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
4619         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
4620         Matthew Woehlke.
4622 2006-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4624         * tests/torture.at (Configuring subdirectories): Do not skip
4625         Automake 1.10 nor future Automake 11.1 (sic).
4627 2006-10-26  Joel E. Denny  <jdenny@ces.clemson.edu>
4628         and Stepan Kasal  <kasal@ucw.cz>
4630         Handle special characters in test case titles correctly.
4631         * lib/autotest/general.m4 (AT_INIT): M4-quote and AS_ESCAPE AT_help_all
4632         properly.
4633         (AT_SETUP): M4-quote and AS_ESCAPE the title properly everywhere.
4634         * tests/autotest.at (AT_CHECK_AT_TITLE): Add EXPANDED-TITLE-TO-TEST
4635         argument.  Extend to check titles printed by ./micro-suite and
4636         ./micro-suite -l and the title in micro-suite.log.
4637         (Backquote in a test title,
4638         Single-quote in a test title,
4639         Double-quote in a test title): Don't expect failure anymore.
4640         (Backslash in a test title): Put a non-whitespace character after the
4641         backslash so that Bourne shells might actually see it as an escape
4642         sequence.
4643         (Brackets in a test title,
4644         Pound in a test title,
4645         Comma in a test title,
4646         Quoted Macro in a test title,
4647         Macro in a test title,
4648         Macro with single-quote in a test title): New tests.
4649         (Macro with backquote in a test title,
4650         Macro with double-quote in a test title,
4651         Macro with backslash in a test title): New tests expected to fail.
4652         * tests/torture.at (#define header templates): M4-quote this title in
4653         AT_SETUP call so that no M4 code is commented inadvertently somewhere.
4654         The visible effect was a stray [] in the testsuite output.
4656 2006-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4658         * doc/autoconf.texi (Limitations of Builtins): Do not invoke
4659         `trap ... 0' inside a function, for AIX sh.
4661 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
4663         * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0,
4664         since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build
4665         5363) simply issues a warning when dividing by zero at compile
4666         time.  Problem reported by Elias Pipping.
4668 2006-10-26  Eric Blake  <ebb9@byu.net>
4670         * THANKS: Update.
4671         * doc/autoconf.texi (Evaluation Macros): Improve the example to
4672         show effect on macros that expand with commas.
4673         Reported by Joel E. Denny.
4675         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
4676         Also work with M4 1.4.8.
4678 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
4680         * doc/autoconf.texi (Slashes): Document Tru64 4.0 bug reported by
4681         Jim Meyering.
4683 2006-10-25  Stepan Kasal  <kasal@ucw.cz>
4685         * tests/tools.at (autom4te --force): New test, verifies that
4686         `--force' always rewrites the output file.
4688 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
4690         * doc/autoconf.texi (Limitations of Usual Tools): Document that rm
4691         needs operands on NetBSD 2.0.2.  Problem reported by Bruno Haible.
4693 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
4695         * tools/trace.at (autoconf --trace: user macros): Test `$%'.
4697 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
4699         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
4700         If FUNCTION-BODY is nonempty, use AC_LINK_IFELSE rather than
4701         AC_COMPILE_IFELSE, to work around problem with OSF/1 4.0F fseeko
4702         reported by Nelson H. F. Beebe for Coreutils 6.4.
4704         * tests/tools.at (autoconf --trace: user macros): Remove test
4705         for tracing multiline macros, since m4 1.4.7a uses a different
4706         way to number lines.  Problem reported by Ralf Wildenhues.
4708 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
4710         * bin/autom4te.in (handle_m4): Do not redirect stdin to
4711         /dev/null since the heuristics for interactive behaviour was
4712         fixed in CVS m4.
4714         * bin/autom4te.in: With --force, always refresh the output
4715         file.  Problem reported by Greg Schafer <gschafer@zip.com.au>.
4717         * bin/autoconf.as: Fix the verbose message at the end.
4719 2006-10-23  Paul Eggert  <eggert@cs.ucla.edu>
4721         * configure.ac (AC_INIT): Bump to 2.60c.
4722         * NEWS: Likewise.
4724 2006-10-22  Paul Eggert  <eggert@cs.ucla.edu>
4726         * NEWS: Version 2.60b.
4728         Import this change from Texinfo:
4729         2006-10-15  Karl Berry  <karl@gnu.org>
4730         * build-aux/texinfo.tex: automake 1.10
4732         * NEWS: Remove AC_CACHE_CHECK_INT.
4733         * doc/autoconf.texi (Caching Results): Likewise.
4734         * lib/autoconf/general.m4 (_AC_CACHE_CHECK_INT): Renamed from
4735         AC_CACHE_CHECK_INT, since it's no longer public.
4736         * lib/autoconf/types.m4: All uses of AC_CACHE_CHECK_INT changed.
4737         * tests/base.at (AC_COMPUTE_INT): Test this, not AC_CACHE_CHECK_INT.
4739 2006-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4741         * doc/autoconf.texi (Limitations of Usual Tools): Fix two typos.
4743 2006-10-19  Eric Blake  <ebb9@byu.net>
4745         * lib/m4sugar/m4sugar.m4 (m4_mkstemp): New macro.
4746         (m4_maketemp): Avoid warnings with M4 1.9a.
4747         * lib/emacs/autoconf-mode.el (autoconf-font-lock-keywords): Color
4748         m4_mkstemp.
4749         * doc/autoconf.texi (Redefined M4 Macros): Document m4_mkstemp.
4750         * NEWS: Likewise.
4752 2006-10-16  Eric Blake  <ebb9@byu.net>
4754         * doc/autoconf.texi (Setting Output Variables): Fix typo.
4756         * bin/autoconf.as (version): Reword to match GNU Coding
4757         Standards.
4758         * bin/autoheader.in (version): Likewise.
4759         * bin/autom4te.in (version): Likewise.
4760         * bin/autoreconf.in (version): Likewise.
4761         * bin/autoscan.in (version): Likewise.
4762         * bin/autoupdate.in (version): Likewise.
4763         * bin/ifnames.in (version): Likewise.
4765 2006-10-14  Stepan Kasal  <kasal@ucw.cz>
4767         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Expand $1 before
4768         looking for special shell characters.
4769         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Do not expand the
4770         macro defined by AS_VAR_PUSHDEF before passing it as a
4771         parameter.
4772         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
4773         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB):
4774         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
4775         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL):
4776         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_DIRENT):
4777         Likewise.
4778         * lib/autotest/general.m4 (AT_INIT): Quote parameters of
4779         AS_VAR_* properly.
4780         * tests/m4sh.at (AS_LITERAL_IF): New test.
4782 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
4784         (Imported from Automake.)
4785         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
4786         which incorrectly sets the mode of an existing destination
4787         directory.  In some cases the unpatched install-sh could do the
4788         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
4789         system.  We hope this is rare in practice, but it's clearly worth
4790         fixing.  Problem reported by Alex Unleashed in
4791         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
4792         Also, don't bother to check for -m bugs unless we're using -m;
4793         suggested by Stepan Kasal.
4795 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
4797         Import this change from Automake:
4799         2006-08-23  Alexandre Duret-Lutz  <adl@gnu.org>
4800         * lib/Autom4te/ChannelDefs.pm (usage): Mention that -Wportability
4801         is enabled by default with gnu and gnits strictness.
4802         Report from Bruno Haible.
4804         2006-03-10  Alexandre Duret-Lutz  <adl@gnu.org>
4805         * lib/Autom4te/ChannelDefs.pm: Make -Wportability the default in
4806         gnu and gnits modes.
4808         Import this change from Config:
4810         2006-09-20  Ben Elliston  <bje@gnu.org>
4811         * build-aux/config.sub (score, score-*): New.
4813         Import this change from Gnulib:
4815         2006-09-16  Karl Berry  <karl@gnu.org>
4816         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
4817         to avoid sectioning errors.
4819         Import these changes from Texinfo:
4821         2006-10-04  Karl Berry  <karl@gnu.org>
4822         * build-aux/texinfo.tex (\singlequotechar): rename to \codequoteright.
4823         (\quoteexpand): rename to \rquoteexpand.
4824         (\codequoteleft): new def, to look for @set codequotebacktick.
4825         (\lquoteexpand, \quoteexpand): new defs.
4826         (\lquoteChar, \rquoteChar, \dashChar, \underChar: new \chardef's.
4827         (\code): must use new \...Char values, since now ` is active.
4829         2006-08-26  Karl Berry  <karl@gnu.org>
4830         * build-aux/texinfo.tex (\textdegree): New command.
4832         2006-08-12  Karl Berry  <karl@gnu.org>
4833         * build-aux/texinfo.tex (error \box0): smaller font.
4835 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4837         * doc/autoconf.texi (Autoheader Macros): Fix syntax error.
4839 2006-10-13  Stepan Kasal  <kasal@ucw.cz>
4841         * doc/autoconf.texi (Autoheader Macros): Warn that the text
4842         added to the template can get mangled.
4844 2006-10-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4846         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): In the test,
4847         include the default headers, and redefine obstack_chunk_alloc
4848         and obstack_chunk_free.  Fixes false failure with glibc.
4850 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
4852         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Set as_executable_p,
4853         for backward compatibility with Libtool 1.5.22.  Problem reported
4854         by Ralf Wildenhues.
4856 2006-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4858         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL): Require
4859         AC_PROG_CC.
4860         Report by IOhannes m zmoelnig <zmoelnig@iem.at>.
4862 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
4864         * NEWS: AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for
4865         the NonStop platform.
4866         * doc/autoconf.texi (Posix Variants): Likewise.
4867         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
4869         * lib/m4sugar/m4sh.m4 (AS_TEST_X): New macro.
4870         (AS_EXECUTABLE_P): Use as_test_x rather than as_executable_p.
4871         (_AS_TEST_PREPARE): Set as_test_x rather than as_executable_p.
4872         Use a better substitute, by inspecting the output of "ls"
4873         rather than just using ":".
4874         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Use AS_TEST_X
4875         rather than AS_EXECUTABLE_P, since we needn't worry about
4876         non-regular files here.
4878         * NEWS: Autoconf-generated shell scripts no longer export BIN_SH,
4879         due to configuration hassles with this.  See Tonya Underwood's report
4880         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00003.html>.
4881         * doc/autoconf.texi (Special Shell Variables): Likewise.
4883 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
4884             Stepan Kasal  <kasal@ucw.cz>
4886         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Don't set BIN_SH.
4887         (_AS_DETECT_BETTER_SHELL): Don't look in /usr/bin/posix.
4889 2006-10-11  Stepan Kasal  <kasal@ucw.cz>
4891         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Move the
4892           initialization which is not inherited through the environment
4893         (_AS_BOURNE_COMPATIBLE): ... to this new macro.
4894         (_AS_RUN): Call _AS_BOURNE_COMPATIBLE, not AS_BOURNE_COMPATIBLE.
4896 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
4898         * doc/autoconf.texi (Limitations of Usual Tools): Describe
4899         problems with mkdir -p -m.
4901 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
4903         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Remove
4904         comment about ac_cpp_err; it was incorrect, and anyway
4905         ac_cpp_err is being removed below.
4906         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE): Don't
4907         set ac_cpp_err to 'yesyes' if preproc_warn_flag and werror_flag
4908         are both 'yes'.  In fact, don't bother setting ac_cpp_err at all;
4909         nobody uses it.
4910         (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't log our funky tests
4911         with werror_flag and conftest.err and so forth.  This is more
4912         compatible with how _AC_PROG_PREPROC_WORKS_IFELSE behaves,
4913         and anyway the user shouldn't normally want to see this gorp logged.
4914         Problem reported by Ralf Wildenhues.
4915         * lib/autoconf/lang.m4 (AC_LANG_WERROR): werror_flag's default is
4916         empty, not 'no', since the rest of the code uses 'test -z'.
4918 2006-10-04  Paul Eggert  <eggert@cs.ucla.edu>
4920         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
4921         Use a single call to AC_DO_TOKENS rather than multiple, for
4922         efficiency.
4923         (_AC_LINK_IFELSE): Test that resulting file is executable.
4924         Problem reported by mwoehlke in
4925         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00048.html>.
4927         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Use "test -x /" rather
4928         than creating a file to use with test -x; this is much faster.
4930 2006-10-02  Bruno Haible  <bruno@clisp.org>
4932         * lib/autom4te.in (Automake-preselections): Add
4933         AM_GNU_GETTEXT_INTL_SUBDIR, for automake 1.10.
4935 2006-09-27  Stepan Kasal  <kasal@ucw.cz>
4937         * doc/autoconf.texi (Writing testsuite.at): Fix a typo: for
4938         standard error, `experr' should be used, not `expout'.
4940 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4942         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Don't compile the
4943         fseeko testing program twice; just use the earlier result.
4944         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
4945         Set cache var to 'unknown' (not 'no') if leaving the macro unset
4946         still doesn't let the program compile.
4947         (AC_SYS_LARGEFILE): Test for _LARGE_FILES only if earlier tests
4948         failed.
4950         * lib/autoconf/functions.m4: Fix problems reported by Ralf Wildenhues.
4951         (AC_FUNC_ERROR_AT_LINE): Don't bother to check for error.h.  Just
4952         include it, without including anything else.
4953         (AC_FUNC_FSEEKO): Avoid gcc -Wall warnings about constant
4954         expressions.
4955         (AC_FUNC_STRNLEN): Require AC_USE_SYSTEM_EXTENSIONS.
4957 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4959         * lib/autoconf/functions.m4 (AC_FUNC_ERROR_AT_LINE): Check for
4960         `error.h', and include it, for a `error_at_line' prototype.
4961         Use a nonempty format string in the link test.
4962         * lib/autoconf/functions.m4 (AC_FUNC_WAIT3): Include <sys/wait.h>,
4963         for a declaration of wait3.
4965 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4967         * NEWS: AC_CHECK_DECL now also works with aggregate objects.
4968         * doc/autoconf.texi (Generic Declarations): Clarify that AC_CHECK_DECL
4969         can apply to constants too, and that it checks for macro defns.
4970         * lib/autoconf/general.m4 (AC_CHECK_DECL): Assume C89 or better,
4971         and simply cast the identifier to void.  This handles structure
4972         values.  Problem reported by Ralf Wildenhues.
4973         * tests/semantics.at (AC_CHECK_DECLS): Also check enums.
4975 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4977         * tests/semantics.at (AC_CHECK_DECLS): Also check macros,
4978         structure, and function symbols.
4980 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4982         * tests/semantics.at (AC_CHECK_MEMBERS): Also test with a struct
4983         member.
4985 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
4987         * NEWS: Recommend M4 1.4.7 instead of 1.4.6.
4988         * README: Likewise.
4989         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
4991 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
4992         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4994         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): Avoid `gcc -Wall'
4995         warnings (uninitialized value).
4996         (AC_FUNC_UTIME_NULL): Likewise, test for and include <utime.h> if
4997         present.
4998         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Likewise, add
4999         parentheses.
5000         (AC_STRUCT_TM): Likewise, avoid unused variables.
5002 2006-09-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5004         * lib/autoconf/c.m4 (_AC_ARG_VAR_LDFLAGS): Update comment.
5005         (_AC_ARG_VAR_LIBS): New macro: let LIBS be precious.
5006         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Call _AC_ARG_VAR_LIBS.
5007         * lib/autoconf/fortran.m4 (AC_PROG_F77, AC_PROG_FC): Likewise.
5008         Report by Olly Betts.
5010 2006-09-19  Eric Blake  <ebb9@byu.net>
5012         * m4/m4.m4: Change copyright.
5013         * configure: Regenerate.
5014         * Makefile.in: Likewise.
5015         * bin/Makefile.in: Likewise.
5016         * doc/Makefile.in: Likewise.
5017         * lib/Makefile.in: Likewise.
5018         * lib/Autom4te/Makefile.in: Likewise.
5019         * lib/autoconf/Makefile.in: Likewise.
5020         * lib/autoscan/Makefile.in: Likewise.
5021         * lib/autotest/Makefile.in: Likewise.
5022         * lib/emacs/Makefile.in: Likewise.
5023         * lib/m4sugar/Makefile.in: Likewise.
5024         * man/Makefile.in: Likewise.
5025         * tests/Makefile.in: Likewise.
5027         * m4/m4.m4 (AC_PROG_GNU_M4): Check for m4 --debugfile support.
5028         * bin/Makefile.am (edit): Substitute M4_DEBUGFILE.
5029         * bin/autom4te.in (handle_m4): Favor --debugfile over misnamed
5030         --error-output, to avoid warnings with M4 2.0.
5032 2006-09-19  Stepan Kasal  <kasal@ucw.cz>
5034         * lib/autoconf/libs.m4 (AH_CHECK_LIB): Fix quoting, to be
5035           consistent with _AH_CHECK_FUNCS and _AH_CHECK_HEADERS.
5036         * lib/autoconf/headers.m4 (AH_CHECK_HEADERS_DIRENT): Likewise.
5038 2006-09-15  Stepan Kasal  <kasal@ucw.cz>
5040         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Eliminate the
5041         expansion of AC_CHECK_FUNCS.
5043 2006-09-14  Stepan Kasal  <kasal@ucw.cz>
5045         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Remove a
5046         mistaken comment: the path has to be relative; do not use
5047         the path at runtime.
5049 2006-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5051         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote the
5052         argument to `--prefix' for sub-configure scripts.
5053         Pass `--silent' to sub-configure scripts.
5054         * tests/torture.at (Configuring subdirectories): Add tests
5055         for both changes.
5056         * doc/autoconf.texi (Setting Output Variables): Fix example to
5057         not show `--silent' being passed to a `configure' re-run.
5059 2006-09-12  Paul Eggert  <eggert@cs.ucla.edu>
5061         * doc/autoconf.texi (Input): Clarify role of AC_CONFIG_MACRO_DIR.
5062         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Do not check
5063         for the existence of the directory at configure-time.  That's
5064         too late, anyway.  Problem reported by Stefan Seefeld.
5066         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Avoid bug in UnixWare
5067         7.1.4 /usr/bin/posix/sh described by Tim Rice in
5068         <http://lists.gnu.org/archive/html/bug-autoconf/2006-09/msg00017.html>.
5070 2006-09-11  Stepan Kasal  <kasal@ucw.cz>
5072         * tests/local.at (AT_CHECK_M4): Fix this so that the testsuite
5073         works with GNU M4 1.4.3 again; make the normalized form
5074         match the current m4 message; fix the description.
5075         * test/tools.at (autom4te cache): Adapt to the change.
5077 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
5079         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):  Add year_2050_test
5080         to catch glibc bug 2821
5081         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
5083         Merge from gnulib as follows: Use AC_CHECK_HEADERS_ONCE instead of
5084         AC_CHECK_HEADERS, and likewise for AC_CHECK_FUNCS_ONCE and
5085         AC_CHECK_FUNCS.  Don't check for stdlib.h, since we now
5086         assume C89.
5088 2006-09-08  Stepan Kasal  <kasal@ucw.cz>
5090         * lib/autom4te.in (Autoconf-without-aclocal-m4): Move the
5091         preselections ...
5092         (Autoconf): ... here.
5093         (Autoscan-preselections): Delete.
5095 2006-09-07  Stepan Kasal  <kasal@ucw.cz>
5097         * lib/autom4te.in (Automake-preselections): Preselect
5098         AM_ENABLE_MULTILIB.
5100 2006-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5102         * doc/autoconf.texi (Preset Output Variables): srcdir and
5103         top_srcdir are not necessarily relative.  Problem reported
5104         by Dries Kimpe.
5106 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5108         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Prefer xlf90/xlf95 over
5109         f90/f95 because the latter drivers of AIX Fortran 9.1 do not
5110         accept files with extension `.f'.  For consistency, also prefer
5111         xlf over f77.
5112         * doc/autoconf.texi (Fortran Compiler): Remove mention of bug
5113         from last patch.
5115 2006-09-05  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
5117         * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB): Added substitution
5118         of ERLANG_LIB_VER_* variables.
5119         * doc/autoconf.texi (Erlang Libraries): Document ERLANG_LIB_VER_*
5120         variables.
5122 2006-09-03  Paul Eggert  <eggert@cs.ucla.edu>
5123         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5125         * doc/autoconf.texi (Limitations of Builtins): Document 'unset'
5126         bugs of Bash 2.01 and 2.05a.
5127         (Fortran Compiler): Document that AC_PROG_CC should be called
5128         before AC_PROG_FC, due to a bug in Autoconf.
5130 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5132         * NEWS: New macro AC_CACHE_CHECK_INT.  It replaces the
5133         old AC_COMPUTE_INT, which now behaves like _AC_COMPUTE_INT
5134         except the first two arguments are reversed.
5135         * doc/autoconf.texi (Caching Results): New macro AC_CACHE_CHECK_INT.
5136         (Generic Compiler Characteristics): AC_COMPUTE_INT no longer
5137         caches nor outputs a diagnostic.  Suggested by Bruno Haible.
5138         * lib/autoconf/general.m4 (AC_CACHE_CHECK_INT): New macro,
5139         equivalent to the old AC_COMPUTE_INT.
5140         (AC_COMPUTE_INT): No longer caches or reports.  New signature.
5141         All uses changed to AC_CACHE_CHECK_INT.
5142         * tests/base.at (AC_CACHE_CHECK_INT): New test.
5143         * tests/mktests.sh (ac_exclude_list): Add AC_CACHE_CHECK_INT.
5145 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
5147         * NEWS: AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_FUNC_GETLOADVG,
5148         and AC_REPLACE_FNMATCH are now obsolescent in Autoconf.  New
5149         programs should use their Gnulib counterparts.
5150         * doc/autoconf.texi (Particular Functions): Likewise.
5151         (Macro Names, testsuite Invocation): Replace uses of these
5152         obsolete macros with uses of non-obsolete macros.
5154 2006-08-29  Eric Blake  <ebb9@byu.net>
5156         * configure.ac (AC_INIT): Bump to 2.60b.
5157         * NEWS: Update.
5159 2006-08-28  Eric Blake  <ebb9@byu.net>
5161         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Fix logic that was
5162         mistakenly swapped on 2006-08-15.
5164 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
5166         * NEWS: Version 2.60a.
5168 2006-08-25  Stepan Kasal  <kasal@ucw.cz>
5170         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Remove the IPA/IPO
5171         file created by the PGI compiler.
5173 2006-08-25  Noah Misch  <noah@cs.caltech.edu>
5175         * lib/Autom4te/General.pm (END): Use `File::Path::rmtree' to
5176         simplify the code.
5178 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
5180         Fix Lex library problem reported to us by Julio Garvia.
5181         * doc/autoconf.texi (Particular Programs): YYTEXT_POINTER is
5182         for the default, which the user can override.
5183         * lib/autoconf/programs.m4 (AC_PROG_LEX): Let _AC_PROG_LEX_YYTEXT_DECL
5184         deal with LEXLIB.
5185         (_AC_PROG_LEX_YYTEXT_DECL): Handle caching correctly; the old code
5186         didn't work if some values were cached but not others.  Test for
5187         broken lex libraries like native ia64-hp-hpux11.22; see
5188         <http://sources.redhat.com/ml/binutils/2003-12/msg00337.html>, and
5189         work around the problem by preferring an empty LEXLIB to -lfl or
5190         -ll.  Let the user set LEXLIB='' to indicate no library needed.
5192         * NEWS: Recommend M4 1.4.6 instead of 1.4.5.
5193         * README: Likewise.
5194         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
5196 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5198         Rework to use more-modern build style.
5199         Many files are renamed; all uses of their names were changed.
5200         * .x-sc_trailing_blank: Renamed from .x-sc_trailing_space.
5201         * .x-sc_useless_cpp_parens: New file.
5202         * build-aux/config.guess: Renamed from config/config.guess.  Update.
5203         * build-aux/config.sub: Renamed from config/config.sub.  Update.
5204         * build-aux/elisp-comp: Renamed from config/elisp-comp.
5205         * build-aux/install-sh: Renamed from config/install-sh.  Update.
5206         * build-aux/mdate-sh: Renamed from config/mdate-sh.
5207         * build-aux/missing: Renamed from config/missing.
5208         * build-aux/texinfo.tex: Renamed from config/texinfo.tex.  Update.
5209         * build-aux/vc-list-files: Renamed from config/vc-list-files.
5210         * config/Makefile.am: Removed.
5211         * config/mkinstalldirs: Removed.
5212         * config/move-if-change: Removed.
5213         * m4/m4.m4: Renamed from config/m4.m4.  Add (C) to copyright notice.
5214         * Makefile.am (SUBDIRS): Remove config.
5215         (ACLOCAL_AMFLAGS): Include from m4, not config.
5216         (EXTRA_DIST): Add config/announce-gen, config/prev-version.txt.
5217         (WGET, WGETFLAGS): New macros, since Makefile.maint no longer does this.
5218         (autom4te-update): Rewrite with a loop.  Get from gnulib, not automake.
5219         Fail if there's an error.
5220         * Makefile.cfg (move_if_change): Remove.
5221         (wget_files): Remove.
5222         (cvs_executable_files): New macro.
5223         (cvs_files): Use it.  Remove mkinstalldirs.  Add fdl.texi.
5224         (executable-update): Use $(cvs_executable_files).
5225         (local-checks-to-skip): Remove.
5226         * Makefile.maint: Merge from coreutils, plus add our own changes
5227         (gzip_rsyncable): New macro.
5228         (GZIP_ENV): Use it.
5229         (CVS_LIST): Use build-aux/vc-list-files.
5230         (VERSION_REGEXP): New macro.
5231         (local-checks-available): Add patch-check, $(syntax-check-rules),
5232         check-AUTHORS.
5233         (syntax-check-rules): Compute dynamically.
5234         (sc_cast_of_x_alloc_return_value): Work even if no source files.
5235         (sc_cast_of_alloca_return_value): Likewise.
5236         (sc_prohibit_atoi_atof): Simplify regexp.
5237         (sc_no_if_have_config_h, sc_require_config_h):
5238         (sc_prohibit_assert_without_use,
5239         (sc_obsolete_symbols): Check for O_NDELAY.
5240         (sc_texi_notab): Remove.
5241         (sc-changelog): Don't make an exception for '----' lines.
5242         (.re-list): Remove, so we don't have a junk file behind.
5243         (sc_system_h_headers): Remove the need for .re-list.
5244         (sc_the_the):  New rule.
5245         (sc_tight_scope): Simplify.
5246         (sc_trailing_blank): Renamed from sc_trailing_space.
5247         (longopt_re): New macro.
5248         (sc_two_space_separator_in_usage): New rule.
5249         (sc_unmarked_diagnostics): Look at all files under CVS.
5250         (sc_useless_cpp_parens, patch-check, check-AUTHORS): New rules.
5251         (news-date-check, changelog-check): Version is OK.
5252         (po-check): Look for lib files even if not in CVS.
5253         (copyright-check): Use $() not ``.
5254         (maintainer-distcheck): Do not depend on changelog-check.
5255         (my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz).
5256         Also check for -Wpointer-arith.
5257         (WGET, WGETFLAGS, tgz-md5, tgz-sha1, bz2-md5, bz2-sha1):
5258         (xdelta-md5, xdelta-sha1, tgz-size, bz2-size, xd-size, rel-check):
5259         Remove.
5260         (announcement): Add --gpg-key-id arg.
5261         (cvs-sv): Remove.
5262         (move_if_change): Just use mv.
5263         (local_updates: Remove wget-update, po-update.
5264         (po_repo, do-po-update, po-update, wget_files, get-targets): Remove.
5265         (config.guess-url_prefix, config.sub-url_prefix): Remove.
5266         (ansi2knr.c-url_prefix, texinfo.tex-url_prefix):
5267         (standards.texi-url_prefix, make-stds.texi-url_prefix, target, url):
5268         ($(get-targets)): Remove.
5269         (cvs_files): Remove missing, mkinstalldirs, ansi2knr.c.
5270         (gnulib_repo): Renamed from automake_repo.  Get from gnulib now.
5271         (cvs-update): Get from gnulib.
5272         (emut_upload_commands): gnupload is in build-aux now.
5273         (alpha beta major): Add changelog-check.  Check version.
5274         * configure.ac (AC_CONFIG_AUX_DIR): Renamed from config to build-aux.
5275         (AC_CONFIG_FILES): Remove.
5276         * bin/autoconf.as: Add spaces to avoid distcheck warning.
5277         * config/announce-gen: Sync from coreutils.
5278         * doc/make-stds.texi: Sync from gnulib.
5279         * doc/standards.texi: Likewise.
5280         * man/Makefile.am: Adjust for config -> build-aux renaming.
5281         * tests/Makefile.am: Prefer $(FOO) to @FOO@.
5282         * tests/local.at: Adjust from config -> build-aux renaming.
5283         * tests/tools.at: Likewise.
5284         * tests/torture.at: Likewise.
5286         * NEWS: The C99 check now tests for vararg macros and 64-bit
5287         preprocessor ints.
5288         * doc/autoconf.texi (C Compiler): Document // comments, va_copy.
5289         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Test varargs macros and
5290         64-bit preprocessor ints.  Check for static initialization of
5291         long long.  Remove unnecessary casts.
5293 2006-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5295         * doc/autoconf.texi (Particular Programs): Mention that
5296         @INSTALL@ and @MKDIR_P@ may vary for different output files.
5297         Reported by Alexandre Duret-Lutz.
5299 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5301         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
5302         -lgcc?* and -lSystem, for Darwin/MacOS X.  Problem reported by
5303         Bill Northcott in
5304         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00083.html>.
5306 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5308         * lib/autoconf/c.m4 (AC_C_CONST): Don't used shadowed vars, to
5309         pacify insanely picky compilers.  Problem reported by Eric Blake.
5311         * doc/autoconf.texi (Posix Variants): INTERACTIVE Unix is no
5312         longer supported by Sun.
5314 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5316         * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
5317         rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
5318         -Wundef -Werror".  Problem reported by David Fang in
5319         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
5320         * doc/autoconf.texi (Header Templates, Default Includes):
5321         (Particular Functions, Generic Functions, Header Portability):
5322         (Particular Headers, Generic Headers, Generic Declarations, Guidelines):
5323         (Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
5324         (Present But Cannot Be Compiled, Preprocessor Symbol Index):
5325         Prefer #ifdef to #if.
5326         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
5327         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
5328         (AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
5329         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
5330         Likewise.
5331         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
5332         (AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
5333         * lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
5334         (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
5335         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
5336         S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
5337         this.
5339 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5341         * doc/autoconf.texi (Limitations of Usual Tools): Document sed
5342         problems with arg script text that doesn't end in newline, and
5343         with '-e a...'.  Problems reported by Ralf Wildenhues.
5345 2006-08-12  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
5347         * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
5348         check for libXt by a check for libX11.
5350 2006-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5352         * doc/autoconf.texi (config.status Invocation): Adjust according
5353         to last change.
5355 2006-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5357         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
5358         --help' should mention that `--version' outputs configuration
5359         settings.  Report by Bruno Haible.
5361 2006-08-06  Paul Eggert  <eggert@cs.ucla.edu>
5363         Fix test suite failures reported by Pierre in
5364         <http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
5365         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
5366         the compiler created a file "b.out" when it didn't create anything
5367         at all.
5368         * lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
5369         Discard stderr too, when invoking the test script.
5371 2006-08-05  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
5373         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
5374         in the restoring of the werror flag.
5376 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5378         * doc/autoconf.texi (Volatile Objects): Be even a little
5379         less skeptical about "volatile", after discussion with
5380         Bruno Haible on bug-gnulib.
5381         (Limitations of Usual Tools): Warn about sed stripping
5382         leading white space from text.  From Bruno Haible.
5384 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
5386         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
5387         compiler complains about it, even if things works after the
5388         complaint.  Problem reported by Peter O'Gorman.
5390         * doc/autoconf.texi (Preset Output Variables): Document CFLAGS,
5391         CPPFLAGS, and LDFLAGS better.  Problem reported by Bruno Haible.
5392         Similarly for CXXFLAGS, OBJCFLAGS, ERLCFLAGS.
5394 2006-07-17  Paul Eggert  <eggert@cs.ucla.edu>
5396         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space
5397         after -R regardless of host.  Patrick Welche reports that this
5398         fixes things on NetBSD 3.99.
5400         * NEWS: Recommend M4 1.4.5.
5401         * README: Likewise.
5402         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
5403         * tests/tools.at (autom4te cache): Update wording of diagnostic
5404         to match M4 1.4.5.
5406 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
5408         * doc/autoconf.texi (C Compiler): Add a ref to Volatile Objects
5409         under AC_C_VOLATILE.
5410         (Volatile Objects): Be a little less skeptical about what
5411         "volatile" means.  Derived from thoughts by Ben Pfaff in
5412         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00092.html>.
5414 2006-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5416         * doc/autoconf.texi: Fix some typos.
5418 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
5420         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
5421         more globally, since the 2006-06-30 patch didn't suffice.  Problem
5422         reported by Keith Marshall.  Also, don't bother with builddir2,
5423         since it shouldn't be needed any more.
5425 2006-07-07  Paolo Bonzini  <bonzini@gnu.org>
5427         * doc/autoconf.texi (Generic compiler characteristics):
5428         Document AC_COMPUTE_INT.  Fix wrong statements on Default
5429         Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.
5431         * lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
5432         (_AC_COMPUTE_INT): Add obsoletion warnings.
5433         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
5434         AC_COMPUTE_INT.
5436         * NEWS: Document change.
5438 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
5440         * doc/autoconf.texi (Volatile Objects): New section.
5442         * NEWS: Document previous change.
5444 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
5446         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
5447         Require that long long int be at least 64 bits wide.  C99 requires
5448         this and enough programs depend on it so we should check for it.
5449         Bruno Haible reports in
5450         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00286.html>
5451         that long long int is 32 bits wide with some nonstandard compilers.
5452         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
5454 2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5456         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
5457         to a nonexistent file, so that we don't have to worry about
5458         a local site configuration that doesn't use /usr/local.
5459         Problem reported by Keith Marshall in
5460         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00133.html>.
5462 2006-06-28  Paul Eggert  <eggert@cs.ucla.edu>
5464         * doc/autoconf.texi: Be more consistent about using @acronym with
5465         "HP" and "HP-UX".  Remove mention of OSF; the old version wasn't
5466         quite right (it talked about "OSF/Tru64", even though the
5467         operating systems were called OSF/1, Digital UNIX, and Tru64 UNIX,
5468         and it even mentioned "OSF 4"!) and at this point there's little
5469         reason to talk about OSF any more, since it died in 1994.
5470         (Specific Compiler Characteristics): Simplify example of
5471         negative-size array.
5472         (File Descriptors): Reorder to make the text flow better.
5473         Remove joke about "appreciate the various levels"; I didn't get it.
5474         Add remark about HP-UX sh -x bug with stderr noted by Bob Proulx in
5475         <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00225.html>.
5476         (File Descriptors, Limitations of Usual Tools):
5477         Tone down the advice against renaming or removing open files.
5478         (Limitations of Usual Tools): Add a new section, on 'rm'.
5480 2006-06-26  Stepan Kasal  <kasal@ucw.cz>
5482         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
5483         -lXt in LIBS, idea from Karsten Hopp; this was due since
5484         this change:
5486         2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
5487         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
5488         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
5489         (which belong to Xt, not X itself).  See Debian bug 327655.
5491 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5493         * configure.ac (AC_INIT): Bump to 2.60a.
5494         * NEWS: Update.
5496 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5498         Version 2.60.
5500         * configure.ac, NEWS: Update.
5502 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5504         * config/texinfo.tex: Sync from upstream.
5506         * bin/autom4te.in (handle_traces): Transform the `@S|@'
5507         quadrigraph correctly in traces.
5509         * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
5510         Fix typos.
5512         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
5513         datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
5514         not defined.
5515         * doc/autoconf.texi (Changed Directory Variables): New node,
5516         to document the whole `datarootdir' business a bit better.
5517         * NEWS: Update.
5518         * tests/torture.at (datarootdir workaround): Extend test.
5519         Prompted by report by Alexandre Julliard.
5521 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
5523         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
5524         when using default mode of IBM C 6 for AIX.  Problem and two-line
5525         fix reported by Larry Jones.
5527 2006-06-22  Alexandre Julliard <julliard@winehq.org>
5529         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
5530         about literal '${datarootdir}' if a definition is found in the
5531         output file.
5533 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
5535         * NEWS: Use "M4" rather than "m4" when appropriate.
5536         Problem reported by Eric Blake.
5537         * doc/autoconf.texi: Likewise.
5538         Use @acronym around BSD, GCC, and GNU when appropriate.
5539         (Why GNU M4): Renamed from "Why GNU m4".
5540         (Redefined M4 Macros): Mention that Posix
5541         m4wrap takes only 1 argument, but GNU M4 1.4.x takes more.
5542         (Buffer Overruns): Mention size_t and ptrdiff_t as alternatives
5543         to int.
5545 2006-06-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5547         * bin/autom4te.in (handle_output): Do not forbid the empty
5548         pattern.
5549         * tests/tools.at (autoconf: the empty token): New test.
5551 2006-06-20  Stepan Kasal  <kasal@ucw.cz>
5553         * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
5554         calls, so that we do not care whether they are LIFO or FIFO;
5555         in the m4_wrap, do not check which diversion is the topmost
5556         one, just check that the stack is balanced at the end.
5557         * lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
5558         base diversion forever--pop the previous diversion before
5559         opening the new one; consequently, remove the m4_wrap call.
5560         * lib/autotest/general.m4 (AT_INIT): Likewise.
5561         * tests/m4sugar.at: Do not use
5562         m4_wrap([m4_diversion_pop([..])]), for educational purposes.
5564 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
5565         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5567         * NEWS: Document that m4wrap/m4_wrap might not be LIFO.
5568         * doc/autoconf.texi (Redefined M4 Macros): Likewise.
5569         Rework example of m4wrap token-pasting trouble so that it doesn't
5570         care whether it's LIFO or FIFO.
5571         Fix some "contrary to"s that are awkward in English.
5573 2006-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5575         * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
5576         to `yes' instead of `int$1_t' if the type is found, for more
5577         consistent configure output (where $1 is the number of bits).
5578         (_AC_TYPE_UINT): Likewise for `uint$1_t'.
5579         Suggested by Bruno Haible.
5581         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
5582         needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
5583         with system headers.  Report by Bruno Haible.
5585 2006-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5587         * config/config.guess, config/config.sub: Sync from upstream.
5589         * bin/Makefile.am (autoconf.in): Use `--melt' for autom4te,
5590         in order to avoid picking up an older installed frozen m4sh.m4f.
5591         Besides an outdated shell startup, this could have been created
5592         by an earlier M4 version with incompatible frozen file format.
5594 2006-06-16  Paul Eggert  <eggert@cs.ucla.edu>
5596         * README: Recommend m4 1.4.4 instead of 1.4.3..
5597         * doc/autoconf.texi: Likewise.
5598         (Special Chars in Names): Say that $(.FOO) is portable, as
5599         suggested by Stepan Kasal.
5600         (Installation Directory Variables, Build Directories):
5601         (Automatic Remaking, Subdirectories, Fortran Compiler):
5602         (Making testsuite Scripts, Defining Directories):
5603         Quote variable usages better.
5604         (Making testsuite Scripts): Add clean-local rule to makefile
5605         snippet, by Eric Blake.
5606         (Installation Directory Variables): Fix table item font.
5607         Reword slightly to clarify.  Generalize advice about
5608         not using special characters to include all file-related
5609         vars, not just VPATH.
5610         (Special Chars in Variables): Warn about special characters in
5611         $(srcdir) too.
5612         (Assignments): Clarify default-value example as suggested by
5613         Ralf Wildenhues in
5614         <http://lists.gnu.org/archive/html/autoconf-patches/2006-06/msg00072.html>.
5615         (Special Shell Variables): Note leading ./ or ../, as suggested
5616         by Eric Blake.
5617         (Limitations of Builtins): Under cd, warn about CDPATH.
5618         (The Make Macro MAKEFLAGS): Untabify.  Problem reported by
5619         Ralf Wildenhues.
5621 2006-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5623         * doc/autoconf.texi (Configuration Actions): Remove duplicate
5624         `@var', for texi2html.
5625         (Systemology): Some more word wrapping, for DVI output.
5626         (autom4te Invocation): The short option for `--melt' is `-M',
5627         not `-m'.
5629 2006-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5631         * doc/autoconf.texi: More formatting and English tweaks,
5632         many suggested by Ralf Wildenhues.
5633         Reword to avoid "@code{...}'s" and the like, since it's ugly
5634         with Emacs info mode.  discontents -> woes.
5635         Put a few "will"s back.  time stamp -> timestamp.
5636         side-effect -> side effect.
5638 2006-06-14  Paul Eggert  <eggert@cs.ucla.edu>
5640         * doc/autoconf.texi (Initializing configure, Shell Substitutions):
5641         Warn about $@ not persisting.  Problem reported by Julien Danjou in
5642         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372179>.
5643         (Special Chars in Names): Renamed from Leading _ in Macro Names.
5644         Mention other special chars, too.
5646 2006-06-14  Eric Blake  <ebb9@byu.net>
5648         * doc/autoconf.texi (The Make Macro MAKEFLAGS): New node.
5650 2006-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5652         * doc/autoconf.texi: Some systematic minor improvements, as
5653         follows.  Use "makefile" when talking about makefiles
5654         generally (which might be named "makefile" or "Makefile" or even
5655         "foo.mk"), "Makefile" when talking about a specific makefile
5656         called "Makefile".  This unclutters the text from weird quotes
5657         (e.g., "`Makefile's" in info mode).  Similarly, use "@var{foo}
5658         values" rather than "@var{foo}s" and similar constructs containing
5659         "}s".  Use "Make rules" rather than "Makefile rules".  Minor
5660         English-language improvements.  Change the prefix "sub-" to "sub"
5661         and "re-" to "re".
5662         Put blank lines around examples more consistently.
5663         Avoid "rather" and "very" as intensifiers.
5664         Avoid "will" as an auxiliary.
5665         (Limitations of Make): Split this node into....
5666         (Portable Make, $< in Ordinary Make Rules, Failure in Make Rules):
5667         (Leading _ in Macro Names, Backslash-Newline-Newline):
5668         (Backslash-Newline Comments, Long Lines in Makefiles):
5669         (Macros and Submakes, The Make Macro SHELL, Comments in Make Rules):
5670         (obj/ and Make, make -k Status, VPATH and Make):
5671         (VPATH and Double-colon, $< in Explicit Rules):
5672         (Automatic Rule Rewriting, OSF/Tru64 Directory Magic):
5673         (Make Target Lookup, Single Suffix Rules, Timestamps and Make):
5674         New nodes, resulting from splitup of Limitations of Make.
5675         All cross-references changed.  Raise the top node from
5676         a section to a chapter, and all subnodes accordingly.
5677         Redo the introductory wording to match the new organization.
5678         (Installation Directory Variables): Use an example that is
5679         closer to what Autoconf actually does.  Mention that VPATH's
5680         value should not contain metacharacters or white space.
5681         (Fortran Compiler): Fix a VPATH bug in an example.
5682         (Leading _ in Macro Names): Mention that this problem is no longer
5683         of practical concern.
5684         (VPATH and Make): Reword the advice to make it clearer
5685         that Autoconf and Automake support VPATH in non-GNU make, but
5686         many packages have bugs in this area.
5687         ($< in Explicit Rules): Refer to Build Directories rather
5688         than using a (non-VPATH-safe) example.
5689         (Automatic Rule Rewriting): Mention the sort of disaster that
5690         can ensue with Solaris-style rule rewriting with VPATH.
5692 2006-06-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5694         * doc/install.texi (Compilers and Options): Weaken the
5695         suggestion to use GNU make for VPATH builds.
5697         * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
5698         AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
5700         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
5701         in regular expression.
5703 2006-06-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5705         * doc/autoconf.texi (Installation Directory Variables):
5706         Drop extra @samp from `@table @samp' item.
5707         (Limitations of Usual Tools): Comment fix.
5708         Do not nest @samp just to point to other table items.
5709         (Writing testsuite.at) <AT_CHECK>: The second argument to
5710         `@dvar' is already @samp'ed.
5711         (Making testsuite Scripts) <AC_CONFIG_TESTDIR>: Likewise,
5712         do not use @var in the second argument.
5714 2006-06-07  Paul Eggert  <eggert@cs.ucla.edu>
5716         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
5717         $as_shell.exe too.  Problem reported by Andreas Buening in
5718         <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
5720 2006-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5722         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
5723         `unused variable' compiler warning, for `-Wall -Werror'.
5724         Reported by Jaap Haitsma in
5725         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00012.html>.
5727 2006-06-06  Paul Eggert  <eggert@cs.ucla.edu>
5729         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
5730         case the compiler dumps core.  Problem reported for
5731         OpenServer 5.0.7 by Tim Rice in
5732         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
5733         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
5734         Likewise.
5736 2006-06-06  Tim Rice <tim@multitalents.net>.
5738         * lib/freeze.mk: Quiet check-forbidden-patterns so the string
5739         "ERROR" only shows up in "make check" output if there is an
5740         error.
5742 2006-06-06  Eric Blake  <ebb9@byu.net>
5744         * tests/tools.at (automatically allowed tokens): Fix typo.
5746 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
5748         * NEWS: Don't blame non-GNU VPATH compatibility issues on Automake.
5750         * doc/autoconf.texi (Integer Overflow): Mention that INT_MIN % -1
5751         typically overflows on x86 CPUs, even though the C standard
5752         requires otherwise.
5754 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5756         * configure.ac (AC_INIT): Bump to 2.59e.
5757         * NEWS: Update.
5759 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5761         Version 2.59d.
5763         * config/texinfo.tex: Sync from upstream.
5765         * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
5766         seen, invoke libtoolize with `--ltdl' argument.
5767         * lib/autom4te.in (Autoreconf-preselections): Adjust.
5768         * NEWS: Update.
5769         Suggested by Eric Blake.
5771 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
5773         * NEWS: Whoops!  AC_FUNC_STRNLEN isn't obsolescent.  Problem
5774         reported by Ralf Wildenhues.
5775         * doc/autoconf.texi (AC_FUNC_STRNLEN): Likewise.
5777 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5779         * THANKS: Update.
5781 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
5783         * doc/autoconf.texi: Modernize some of the references to Solaris.
5785 2006-06-05  Stepan Kasal  <kasal@ucw.cz>
5787         * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
5788         message issued by AC_REQUIRE.
5789         * tests/m4sugar.at: Check m4_require's error message.
5790         * tests/base.at: Check AC_REQUIRE's error message.
5791         * tests/local.at (AT_CHECK_M4): New macro, almost identical
5792         to...
5793         (AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
5794         AT_CHECK_M4.
5795         (AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
5796         `expout' as the last parameter.
5797         * tests/tools.at: Adapt to the above change.
5799 2006-06-04  Stepan Kasal  <kasal@ucw.cz>
5801         * doc/autoconf.texi (Limitations of Usual Tools): Correct
5802         information about race-free implementations of mkdir.
5804 2006-06-04  Eric Blake  <ebb9@byu.net>
5806         * bin/autoreconf.in (help): Document M4 environment variable.
5807         * bin/autoconf.as (Usage): Likewise.
5808         * bin/autom4te.in (help): Likewise.
5809         * doc/autoconf.texi (autom4te Invocation): Likewise.
5811 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
5813         * NEWS: GNU make now recommended for VPATH builds.
5814         Mention that some macros are now documented to be obsolescent.
5815         * doc/autoconf.texi:
5816         Prefer "current" to "modern" to describe
5817         currently-used (albeit perhaps old-fashioned) hosts.
5818         Mention which ancient features no longer need to be worried about.
5819         setgid -> set-group-ID
5820         setuid -> set-user-ID (these are the Posix terms)
5821         Fix some misuses of "only".
5822         (AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
5823         (AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
5824         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
5825         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
5826         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
5827         (AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
5828         (AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
5829         (AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
5830         (AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
5831         Mention that these macros are obsolescent.
5832         (Installation Directory Variables): shall -> should
5833         (File Descriptors): Mention that 0, 1, 2 might get reopened.
5834         Mention that it's now safe to use 3 and 4.
5835         (Limitations of Usual Tools): cp -r is now specified by Posix.
5836         Omit longwinded and obsolescent discussion of cp -f.
5837         Modernize discussion of expr, ls.
5838         (Limitations of Make): Modernize discussion of VPATH builds.
5839         Mention $? as a workaround in some cases.
5840         * doc/install.texi (Basic Installation):
5841         Mention "./configure; make; make install" first.  Be more
5842         specific about why this file is generic.  Remove unnecessary
5843         parens.  Remove misleading "only".  Remove obsolete advice
5844         about csh.  Don't say "configure" takes awhile; say it
5845         might take a while.  Suggest CFLAGS=-g rather than CFLAGS=-O2,
5846         and CC=c99 rather than CC=c89, as these are blessed by current
5847         Posix.  Recommend GNU make if doing a VPATH build.
5849 2006-06-03  Paul Eggert  <eggert@cs.ucla.edu>
5851         * doc/autoconf.texi: Use a consistent style "$ @kbd{...}" for
5852         examples involving shell prompts.
5854 2006-06-02  Stepan Kasal  <kasal@ucw.cz>
5855         and Paul Eggert  <eggert@cs.ucla.edu>
5857         * doc/autoconf.texi (Here-Documents): Add details about the
5858         pre-ksh93g bug.  Reword slightly to make it clearer.  Consistently
5859         use "here-documents" instead of "here documents".
5861 2006-06-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5863         * config/texinfo.tex, doc/standards.texi: Sync from upstream.
5865 2006-06-01  Paul Eggert  <eggert@cs.ucla.edu>
5867         * doc/autoconf.texi (File System Conventions): Warn about ":"
5868         anywhere in directory names.
5870 2006-05-31  Paul Eggert  <eggert@cs.ucla.edu>
5872         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be even more conservative
5873         about quoting the case statement, just in case.
5874         * doc/autoconf.texi (Here-Documents): Mention that the ksh bug
5875         was fixed in ksh93g; reported by Ralf Wildenhues.
5877 2006-05-31  Stepan Kasal  <kasal@ucw.cz>
5879         * doc/autoconf.texi (System Services): Do not document
5880         overriding EXEEXT via ac_cv_exeext=ext.
5881         (Particular Programs) <AC_PROG_MKDIR_P>:
5882         Document that ${MKDIR_P} understands --.
5883         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Improve the
5884         comment.
5886 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5888         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Guard against test
5889         argument with leading hyphen.  Problem reported by Paul Eggert.
5891 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
5893         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be more conservative
5894         about quoting ac_try: quote all of it, if any of it seems suspicious.
5895         This means we don't have to worry about ${ or sed any more.
5896         Also, double-quote the case statement, to work around misuses via
5897         underquoting as reported by Ralf Wildenhues in
5898         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00169.html>.
5899         (_AC_EVAL_STDERR): Revert, since evidently some packages rely on this
5900         undocumented and dangerous macro.
5901         Problem reported by Ralf Wildenhues in
5902         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00168.html>.
5904 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5906         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Check whether
5907         `dirname -- /' returns `/', for SunOS dirname scripts that escaped.
5908         Report by Sam Sirlin <sam@kalessin.jpl.nasa.gov>.
5910 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
5912         * lib/autoconf/general.m4: Revert AC_TRY_EVAL and AC_TRY_COMMAND,
5913         since evidently some packages rely on the old, broken behavior.
5914         Problem reported by Ralf Wildenhues in
5915         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00160.html>.
5916         (AC_TRY_EVAL, AC_TRY_COMMAND, _AC_EVAL): Go back to the
5917         pre-2006-05-26 definitions, but leave in the comments that
5918         these macros are dangerous and should not be used.
5919         (_AC_DO_ECHO): Renamed from _AC_EVAL_ECHO.  All callers changed.
5920         (_AC_DO): Renamed from _AC_EVAL.  All callers changed.
5921         (_AC_DO_STDERR): Renamed from _AC_EVAL_STDERR.  All callers changed.
5922         (_AC_DO_VAR): Renamed from AC_TRY_EVAL.
5923         (_AC_DO_TOKENS): Renamed from AC_TRY_COMMAND.
5925 2006-05-29  Paul Eggert  <eggert@cs.ucla.edu>
5927         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
5928         the use of 'tr', since this is our only use of 'tr'.
5930 2006-05-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5931         and Paul Eggert  <eggert@cs.ucla.edu>
5933         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
5934         Don't assume 'grep' works on long lines, since AIX grep doesn't.
5936 2005-05-28  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5938         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on
5939         the output file in the `${datarootdir}' test.
5941 2005-05-28  Stepan Kasal  <kasal@ucw.cz>
5942         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5944         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If we have not seen
5945         mention of `datarootdir' in the input file(s), but literal
5946         `${datarootdir}' in the output file, and we haven't warned yet,
5947         then warn as well: the user may have (erroneously) used
5948         `AC_SUBST([mydatadir], [$datadir/my])' instead of the correct
5949         `AC_SUBST([mydatadir], ['${datadir}/my'])'.
5950         * tests/torture.at (datarootdir workaround): Extend this test.
5951         * NEWS: Update.
5953 2006-05-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5954         and Paul Eggert  <eggert@cs.ucla.edu>
5956         * doc/autoconf.texi (autoheader Invocation): The first argument to
5957         `AC_DEFINE_UNQUOTED' need not be a literal.  Mention the
5958         alternatives and clear up the language a bit.
5960 2006-05-27  Paul Eggert  <eggert@cs.ucla.edu>
5962         * NEWS: Reword notice for AC_TRY_COMMAND, AC_TRY_EVAL,
5963         ac_config_guess, ac_config_sub, ac_configure.
5964         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
5965         Fix typo that prevented an unnecessary space from being removed.
5966         Problems reported by Ralf Wildenhues in:
5967         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00143.html
5969 2006-05-26  Paul Eggert  <eggert@cs.ucla.edu>
5971         * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
5972         Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
5973         Don't use the term "thread-safe" to talk about mkdir race
5974         conditions, since the problem is more a process than a thread
5975         issue.  Problem reported by Stepan Kasal in:
5976         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
5977         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
5978         the test for 'install' more closely.  Look at MKDIR_P first.
5979         Look in the PATH, and at /opt/sfw/bin.
5980         Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
5981         Don't bother to try mkdir -p, since we already check mkdir --version;
5982         just look at the version number.  (There's no easy way to check
5983         for race-free implementations.)
5984         * tests/tools.at (autoconf: subdirectories): Adjust to above
5985         changes, since MKDIR_P now might end in "/mkdir -p".
5987         * doc/autoconf.texi (autoheader Invocation): Mention that the
5988         first arg of AC_DEFINE_UNQUOTED must be a literal.
5989         Problem reported by Ben Pfaff in
5990         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00090.html>.
5992         * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
5993         * doc/autoconf.texi (Special Chars in Variables): New section.
5994         (Preset Output Variables): Warn about special chars in CPPFLAGS.
5995         (Installation Directory Variables): Quote $(datadir) better.
5996         (Limitations of Builtins): Describe some of eval's trickiness.
5998         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
5999         * lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
6000         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
6001         in front of every arg, not just trailing args.  Quote apostrophes.
6002         (_AC_EVAL_ECHO): New macro.
6003         (_AC_EVAL, AC_EVAL_STDERR): Use it.  Quote arg of eval.
6004         (AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
6005         removed.
6006         (_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
6007         exposed by quoting of eval argument.  Put the command on line line
6008         so it logs better.
6009         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
6010         (_AC_PATH_X, AC_PATH_X): Quote more safely.
6011         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
6012         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
6013         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
6014         Handle special chars in prefix, ac_srcdir, ac_aux_dir.
6015         Use eval more safely.
6016         (_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
6017         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
6018         to be replaced.
6019         * tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
6020         lines, exposed by quoting of eval argument.
6022 2006-05-26  Stepan Kasal  <kasal@ucw.cz>
6023         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6025         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
6026         initialization of `ac_cv_exeext', do not override it if it was
6027         already set, unless it was set to `no', for compatibility with
6028         Autoconf-2.13, and comment this.
6029         Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
6030         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
6031         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
6032         * doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
6033         Document that this test may be overridden by setting
6034         `ac_cv_exeext'.
6036 2006-05-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6038         Revert these two patches:
6040         2006-04-06  Eric Blake  <ebb9@byu.net>
6041         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
6042         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
6043         2006-04-01.
6045         2006-04-01  Stepan Kasal  <kasal@ucw.cz>
6046         Clean up _AC_COMPILER_EXEEXT* macros.
6047         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
6048           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
6049           ac_file to the name of the default output file and call
6050           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
6051           initial `rm' of the candidate files...
6052         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
6053           the same list in subsequent `rm' calls, and for the temporary
6054           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
6055           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
6056         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
6057         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
6058           no longer needed) by libtool.  Make it a cache check.
6059         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
6060           copied here by mistake.
6061         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
6062           _AC_COMPILER_EXEEXT.
6063         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
6064           _AC_COMPILER_OBJEXT directly.
6065         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
6067 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6069         * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
6070         Fix description of how the buggy `sed' works.
6072 2006-05-25  Noah Misch  <noah@cs.caltech.edu>
6074         Sync from Automake:
6076         * lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
6077         ENOLCK.  Only mention `make -j' when applicable.  Only raise
6078         fatal errors when `make -j' is involved.  Improve error message.
6080 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6082         * doc/autoconf.texi (Here-Documents): We now know more about
6083         the variable expansion in here documents bug.
6084         Thanks to Tim Rice and Stepan Kasal.
6086         * doc/autoconf.texi (Making testsuite Scripts): Add an example
6087         how to use TESTSUITEFLAGS.  Suggested by Eric Blake.
6089 2006-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6091         * tests/autotest.at (Multiline command from M4 expansion):
6092         No failure to be expected if the shell quotes newlines in
6093         commands in the `set -x' output.  Report by Tim Rice.
6094         * THANKS: Update.
6096 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6098         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
6099         expansion in the here-documents used by config.status, as that
6100         runs afoul of the Korn shell version M-12/28/93d bug described in
6101         the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
6102         fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
6103         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
6105 2006-05-23  Jim Meyering  <jim@meyering.net>
6107         * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
6108         Fix typo introduced with 2006-04-02 change.  It reversed the sense
6109         of the test.
6111 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6113         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
6114         ac_dB slightly, to save bytes in the script.
6115         Max out at 50 lines, rather than 96; this is more likely
6116         (though not guaranteed) to avoid obscure 'sed' failures.
6118 2006-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6120         * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
6121         `tr -d -' as bad option argument.  Work around this by deleting
6122         an unrelated character.
6123         Report by Tim Rice <tim@multitalents.net>.
6125 2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>,
6126             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
6127             Stepan Kasal  <kasal@ucw.cz>
6129         * doc/autoconf.texi (Particular Programs): Do not promise that
6130         we always prefer the GNU version of the program, and that we
6131         search according to PATH; both rules can have exceptions.
6132         Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
6133         AC_PROG_SED.  Move descriptions of limitations
6134         to the Limitations of Usual Tools section.
6135         (Limitations of Usual Tools) <sed>: Mention script length
6136         limitations with Solaris /usr/ucb/sed.
6137         <grep>: Fix wording for empty alternative.  Mention that -c and
6138         -l should not be combined, and that -E and -F should not be
6139         combined.
6141 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6142         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6144         * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
6145         limits in Solaris 8 /usr/ucb/sed by testing a long script.
6147 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
6149         * doc/autoconf.texi (Defining Symbols): Literal parameter of
6150         AC_DEFINE is now passed to m4_pattern_allow.
6151         * NEWS: Mention that; likewise for AC_SUBST.
6152         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
6153         the parameter to m4_pattern_allow.
6154         * tests/tools.at: Add a check for that.
6156 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
6158         * lib/autoconf/status.m4: Fix typos.
6160 2006-05-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6162         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
6163         only the files that this macro generates.
6165 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6167         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
6168         the HP-UX sed limitation of 99 commands, labels do not count.
6169         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
6170         in the comment.
6171         (_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
6173 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6175         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
6176         Import the following fix from coreutils:
6178         2006-01-13  Jim Meyering  <jim@meyering.net>
6180         Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
6181         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
6182         not double-quote uses of that variable, to accommodate the rare
6183         case in which getmntent is available in none of the libraries
6184         checked.  This happens at least on FreeBSD 5.0.
6186 2006-05-20  Paul Eggert  <eggert@cs.ucla.edu>
6188         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
6189         ac_config_guess, ac_config_sub, and ac_configure, since evidently
6190         some other programs unwisely rely on these undocumented vars.
6191         But put in warning comments about them.
6192         Problem reported by Ralf Wildenhues in
6193         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
6194         * NEWS: Document that these variables are intended to go away.
6196 2006-05-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6198         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
6199         and set the language to C++ (analogous to the equivalent Fortran
6200         tests).
6202         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
6203         * doc/autoconf.texi (C++ Compiler): Document it.
6204         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
6205         * NEWS: Update.
6207 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6209         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
6210         that caused config.status to generate 100-command sed scripts; the
6211         portable limit is 99.
6213 2006-05-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6215         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
6216         variable `ac_d' instead of `d' to avoid infringing namespace.
6217         Report by Ralf Menzel.
6219 2006-05-18  Paul Eggert  <eggert@cs.ucla.edu>
6221         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
6222         $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
6223         * tests/tools.at (autoconf: subdirectories): New test, taken from
6224         the corresponding problem report by Ralf Wildenhues in:
6225         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
6227         * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
6228         Quote some uses of shell variables if they might suffer unexpected
6229         globbing.  This doesn't fix all instances of quoting problems that
6230         I found, just the easy ones that look safe.
6231         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
6232         (AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
6233         (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
6234         (AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
6235         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
6236         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
6237         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
6238         Likewise.
6239         * lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
6240         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
6242 2006-05-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6244         * bin/autoreconf.in ($help): Reword according to the manual.
6245         Suggested by Olly Betts.
6247 2006-05-17  Olly Betts  <olly@survex.com>  (tiny change)
6248         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6250         * bin/autoreconf.in: Pass the directory argument to
6251         `require_configure_ac'.  Fix comment.
6252         * tests/torture.at (Configuring subdirectories): Expose this.
6253         Reported by Olly Betts.
6255 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6257         * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
6258         lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
6259         Automake as follows:
6261         * lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
6262         `$configure_in' instead of `configure.in', to preserve
6263         directory component.
6265 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6267         * config/config.guess, config/config.sub, config/texinfo.tex,
6268         doc/make-stds.texi, doc/standards.texi: Sync from upstream.
6270 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
6272         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
6273         test for C99 conformance; (bool) 0.5 is an integer constant
6274         expression, but (bool) -0.5 is not.  Problem reported by Fedor
6275         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
6277 2006-05-13  Paul Eggert  <eggert@cs.ucla.edu>
6279         * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
6280         sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
6281         Warn about obsolete install-sh files.  Remove stray sentence
6282         fragment and fix cross reference.
6283         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
6284         install -d; this undoes the 2006-05-10 change.
6285         (MKDIR_P): Mark with AN_MAKEVAR.
6286         (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
6287         that we don't require $INSTALL to be thread-safe.  Move comments
6288         out of generated code.  Require AC_CONFIG_AUX_DIR_DEFAULT instead
6289         of AC_PROG_INSTALL.  Output a message saying that we're checking
6290         mkdir -p.  Set MKDIR_P rather than mkdir_p.  Do special magic for
6291         MKDIR_P instead of AC_SUBST.
6292         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
6293         Special magic for MKDIR_P, too.
6294         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
6295         a dnl.
6296         * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
6298 2006-05-11  Paul Eggert  <eggert@cs.ucla.edu>
6300         Sync from Automake, as follows:
6302         2006-05-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6303         * config/install-sh: Initialize IFS, so field splitting isn't
6304         turned off later.
6305         * config/mkinstalldirs: Likewise.
6306         * config/missing: Remove superfluous quotes.  Replace all uses of
6307         `[' by `test', for consistency, and for..
6308         * config/missing (sed_minuso, sed_output): New variables.
6309         (autom4te, help2man, makeinfo): Use them.  Unifies detection of
6310         `-o FILE', `--output FILE', `--output=FILE', stricter regex.
6311         Fixes `missing' to detect `--output' for help2man.  Fixes
6312         PR automake/483.  Report by Dennis J. Linse.
6313         (autom4te): Document in `missing --help'.
6315 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6317         * NEWS: New macro AC_PROG_MKDIR_P.  AS_MKDIR_P is now more robust.
6318         * config/install-sh: Don't use 'path' to talk about file names,
6319         as per GNU coding standards.  Close a race condition reported by Ralf
6320         Wildenhues and Stepan Kasal.  There is still a race condition
6321         on hosts that predate Posix 1003.1-1992, but we can't help this.
6322         Don't mishandle weird characters like space on pre-Posix hosts.
6323         Invoke mkdir at most once per dir arg on pre-Posix hosts.
6324         * doc/autoconf.texi (Programming in M4sh): Cross-reference to
6325         AC_PROG_MKDIR_P from AS_MKDIR_P.
6326         (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
6327         from mkdir.  Mention that Autoconf 2.60 install-sh is safe but
6328         earlier editions are not (including Automake 1.8.3).
6329         Do not suggest mkinstalldirs for thread-safety.
6330         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
6331         that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
6332         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
6333         presence of special characters and race conditions.
6334         * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
6335         in Autoconf's name space.
6337 2006-05-10  Bruno Haible  <bruno@clisp.org>
6338         and Paul Eggert  <eggert@cs.ucla.edu>
6340         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
6341         from Automake with minor changes.
6342         * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
6344 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6346         * config/install-sh: Update to Automake CVS version, as follows:
6347         2006-04-25  Stepan Kasal  <kasal@ucw.cz>
6348         * lib/install-sh: Simplify the expr implementation of dirname.
6349         2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
6350         * lib/install-sh: Handle --, and diagnose unknown options.
6352 2006-05-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6354         * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
6355         `./autom4te' to create `./testsuite', since the `all' target
6356         will ensure its presence, but `installcheck' should not create
6357         the uninstalled wrappers.
6359         * tests/torture.at (Unusual Automake input files): Skip if we
6360         detect automake < 1.8.
6362 2006-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6364         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
6365         is set to `no', then that overrides and sets ac_cv_prog_cc_c89
6366         and ac_cv_prog_cc_c99 to `no', for backward compatibility.
6367         * NEWS: Update.
6369 2006-05-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6371         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
6372         munge (multiple) white space and other oddities.
6373         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
6374         single quotes in variable assignment.
6375         (AC_ARG_VAR, configure invocation): Adjust tests to expose this
6376         and similar failures by adding multiple spaces, tabs, and other
6377         special characters.
6378         Report and different test suggested by Francesco Romani
6379         <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
6381         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
6382         single quotes, we only need to search for single quotes; this
6383         both simplifies the search pattern, and makes us less
6384         susceptible to `echo' variations for arguments not containing
6385         single quotes.
6386         (_AC_ARG_VAR_VALIDATE): Likewise.
6388 2006-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6390         * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
6391         `$*' and IFS concatenation issue with traditional shells and
6392         bash-2.04.  Report by Seanster@Seanster.com.
6394 2006-05-03  Bruno Haible  <bruno@clisp.org>
6396         * doc/autoconf.texi (Limitations of Usual Tools): Identify more
6397         precisely which Mac OS X versions have the od problem.
6399 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
6401         * doc/autoconf.texi: Use @option systematically.
6403 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
6404         and Bruno Haible  <bruno@clisp.org>
6406         * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
6407         about 'od'.
6408         (Integer Overflow): Mention the special case of integer division
6409         overflow.
6411 2006-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6413         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
6414         traditional shells like the Solaris one that do not use the
6415         first IFS character for assembling `$*'.
6416         Prompted by a related report from autoconf_bug@nro.ca.
6418 2006-05-01  Paul Eggert  <eggert@cs.ucla.edu>
6419         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6421         * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
6422         Mention more problems with the -e option.
6424 2006-04-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6426         * NEWS: Typo.
6427         * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
6429         * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
6430         in URLs to improve DVI formatted output (requires texinfo 4.6).
6431         (System Services, Systemology, Shellology): Likewise.
6432         (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
6433         output.
6435         * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
6436         continuous text.
6437         (Runtime): Fix macro argument names to match description:
6438         `action-if-found' -> `action-if-true' and similarly.
6439         (Obsolete Macros): Likewise.
6440         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
6441         (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
6442         (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
6444 2006-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6446         * doc/autoconf.texi (Limitations of Make): Clean up markup.
6448         * ChangeLog: Typo.
6449         * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
6450         DVI output.
6452 2006-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6454         * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
6455         /bin/sh set unsorted output.
6456         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
6457         * tests/local.at: Likewise.
6459 2006-04-26  Paul Eggert  <eggert@cs.ucla.edu>
6461         * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
6462         (Integer Overflow, Null Pointers, Buffer Overruns):
6463         (Floating Point Portability, Exiting Portably): New sections.
6464         (Writing Test Programs): Fix some langauge.  Recommend exiting
6465         with status 1, not merely nonzero.  Clarify exit declaration.
6466         (Run Time): Move C exit status stuff to new Exiting Portably section.
6467         (Systemology): Mention Posix and levenez.  Update v7 reference.
6468         (Portable Shell): Mention the Posix shell.
6470 2006-04-25  Stepan Kasal  <kasal@ucw.cz>
6472         * bin/autoconf.as (me): Replace by as_me.
6474 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6476         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
6477         since as_me isn't set yet.
6479 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
6481         Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
6482         a few minor bugs in this area.
6484         * doc/autoconf.texi (Programming in M4sh): Comment out the
6485         documentation of AS_BASENAME, for now.
6486         (Shell Substitutions): Do not use AS_DIRNAME in an example.
6487         (Limitations of Builtins) <basename>: Do not refer to
6488         AS_BASENAME.
6489         * bin/autoconf.as (me): Don't use AS_BASENAME.
6490         (dir): Remove the unused variable.
6491         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
6492         AS_DETECT_REQUIRED.  All uses changed.
6493         (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
6494         All uses changed.
6495         (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
6496         (AS_BASENAME): Use "basename --" to protect against leading "-".
6497         (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR.  All uses changed.
6498         (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED.  All uses changed.
6499         (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
6500         (_AS_DIRNAME_PREPARE): Likewise.
6501         (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR.  All uses changed.
6502         (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED.  All uses changed.
6503         (AS_DIRNAME): Use "dirname --".
6505 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
6507         * doc/autoconf.texi (Runtime): Renamed from "Run Time".  All uses
6508         of "run time" and "run-time" changed to "runtime", for consistency.
6509         * lib/autoconf/fortran.m4: Likewise (in comment).
6510         * lib/autoconf/functions.m4: Likewise.
6511         * lib/autoconf/general.m4: Likewise.
6512         * lib/autoconf/headers.m4: Likewise.
6514         * doc/autoconf.texi (Run Time): Document the exit status situation
6515         with more accuracy and detail.
6517 2006-04-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6519         * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
6520         Archive is not officially `GNU' any more.  Update URL.
6521         (Defining Directories): Likewise
6522         * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
6524 2006-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6526         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
6527         newline from the `trap' code to finish `config.log'; the NetBSD
6528         /bin/sh resets the exit status after an empty command, as
6529         documented in doc/autoconf.texi.
6530         Reported by Dalibor Topic <robilad@kaffe.org>.
6532 2006-04-19  Paul Eggert  <eggert@cs.ucla.edu>
6534         * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
6535         Suggested by Bruno Haible.
6537 2006-04-18  Paul Eggert  <eggert@cs.ucla.edu>
6539         * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
6540         some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
6541         Instead, just list the shells that we know work.
6542         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg.  All uses
6543         changed.  Be more cautious about the _cv_ variable.
6544         * tests/tools.at (Syntax of the shell scripts): Check the
6545         _cv_ variable once, at first, to avoid an internal autoconf error
6546         when sh -n does not work.
6548 2006-04-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6550         * lib/Autom4te/FileUtils.pm: Sync from Automake.
6552 2006-04-16  Paul Eggert  <eggert@cs.ucla.edu>
6554         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
6555         use ">&-" since we're only 99.999% sure that this is portable,
6556         and since the MinGW bug is fixed in a different way.
6557         * lib/autotest/general.m4 (AT_INIT): Likewise.
6559 2006-04-16  Stepan Kasal  <kasal@ucw.cz>
6561         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
6562         before opening config.log, to avoid hitting a bug on MinGW.
6564 2006-04-14  Paul Eggert  <eggert@cs.ucla.edu>
6566         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
6567         AS_MESSAGE_LOG_FD before reopening it onto the log file.
6568         This works around a MinGW bug reported by Eric Paire.
6569         Make sure that all writes to the log file append to it,
6570         rather than possibly losing data.
6571         * lib/autotest/general.m4 (AT_INIT): Likewise.
6573 2006-04-14  Stepan Kasal  <kasal@ucw.cz>
6575         * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
6576         description.
6578 2006-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6580         * NEWS: Update.
6582         * configure.ac (AC_INIT): Bump to 2.59d.
6584 2006-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6586         Version 2.59c.
6588         * Makefile.maint (news-date-check): Do not require a leading `*'
6589         before the release date in NEWS.
6591 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
6592         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6594         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
6595         the instantiated file do not contain the string 'datarootdir'
6596         but contain @datadir@, @docdir@, @infodir@, @localedir@, or
6597         @mandir@, replace the reference '${datarootdir}' by the value.
6598         * tests/torture.at (datarootdir workaround): New test.
6599         * NEWS: Advertise this temporary fixup.
6600         Based on a patch by Bruno Haible, reported and analyzed by
6601         Paul Eggert and Noah Misch.
6603 2006-04-12  Eric Blake  <ebb9@byu.net>
6605         * tests/autotest.at (Debugging a failed test): Fix comment.
6607 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
6609         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
6610         all the changes since 2006-04-07.
6612 2006-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6614         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
6615         succeeded, but `ln -s file dir' failed, take care to remove the
6616         leftover target before the next test, to prevent its spurious
6617         failure; also make sure `ln file dir' works before selecting it.
6618         Thanks to Keith Marshall for pointing this out.
6619         * THANKS: Update.
6621         * lib/autotest/general.m4 (AT_INIT): Store quoted variable
6622         assignments in `at_debug_args', so that we put them correctly
6623         in the `run' script.
6624         * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
6625         Reported by Eric Blake.
6627 2006-04-11  Eric Blake  <ebb9@byu.net>
6629         * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
6630         top-level tests after micro-suite has been run.   Used in...
6631         (Debugging a successful test, Debugging script and environment),
6632         (Debugging a failed test): ...these new tests.  The first of these
6633         is fixed by...
6634         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
6635         macro, split out from...
6636         (AT_INIT): ...here, so that using -d also generates a run script.
6637         Document that -d inhibits top-level logging.
6638         * doc/autoconf.texi (testsuite Invocation): Document that -d only
6639         inhibits top-level logging; debug scripts are created.
6641         * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
6642         check.
6643         * tests/autotest.at (Empty test, Empty check): New test to check it.
6645         * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
6646         from gcc.
6648 2006-04-10  Stepan Kasal  <kasal@ucw.cz>
6650         * tests/mktests.sh: Use "trap '' 0", not "trap 0".  Do not touch
6651         the files if a problem appears.  Make the empty *.at files
6652         read-only, too.  Proposed by Ralf Wildenhues.
6654 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6656         * config/Makefile.am: Add comment to force updated Makefile.in.
6658         * lib/freeze.mk: Fix typo in comment.  Unlike the last, white
6659         space only patch to this file, this patch causes the Makefile.in
6660         files that include freeze.mk to be updated, and thus have a
6661         newer time stamp again, which in turn makes a pristine CVS
6662         checkout have correct time stamps.
6664         * Makefile.maint (cvs-sv): New macro, to be used..
6665         (config.guess-url_prefix, config.sub-url_prefix)
6666         (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
6667         point to CVS text checkout of Gnulib files.
6668         (copyright-check): Bump current year.
6669         (announcement): Do not hard-wire `./announce-gen'.
6670         (cvs-update): Propagate failures of `cvs' and `move-if-change'
6671         correctly.
6672         * Makefile.cfg (executable-update): Use `chmod a+x' instead of
6673         `chmod +x'.
6674         (wget_files): Update config.guess, config.sub, texinfo.tex by
6675         `wget-update', now that their URLs work again.
6677 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
6679         * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
6680         Problem noted by Paul D. Smith.
6682 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6684         * doc/autoconf.texi: Remove unused words from word list.
6685         * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
6686         .x-sc_trailing_space: New files.
6688         * doc/standards.texi: Sync from gnulib.
6690         * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
6691         `LIBOBJDIR' as experimental.
6693         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
6694         with a target directory; it's internally implemented as `cp'
6695         anyway, but since Autoconf advertises the possibility to use
6696         a target directory when LN_S is `ln -s', we need to find out.
6697         Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
6698         analyzed by Keith Marshall <keith.marshall@total.com>.
6700         * THANKS: Update.
6702 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
6704         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
6705         confdefs.h as-is.  In general, if it has backslash-newline or the
6706         like, then it doesn't work either to sort or to remove empty
6707         lines.
6709 2006-04-09  Stepan Kasal  <kasal@ucw.cz>
6711         * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
6713 2006-04-09  Alexandre Duret-Lutz  <adl@gnu.org>
6715         * lib/autom4te.in (Automake-preselections): Preselect
6716         _AM_SUBST_NOTMAKE.
6718 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6720         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
6721         apostrophe within a single-quoted string, as this is the usual
6722         tradition and is easier to read than '"'"'.  Don't rely on the
6723         shell treating "$/" like '$/'.  Use a more-consistent indenting
6724         style for the trap.
6726 2006-04-09  Eric Blake  <ebb9@byu.net>
6728         * tests/autotest.at (Backquote command substitution),
6729         (Multiline backquote command substitution): Remove mistaken
6730         AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
6731         applied...
6732         (Parenthetical command substitution, Multiline parenthetical
6733         command substitution): here.
6735 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6737         Import macros from gnulib (often changing their name).
6739         * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
6740         New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
6741         AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
6742         AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
6743         AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
6744         AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
6745         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
6746         AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
6747         AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
6748         AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
6749         The manual mentions Gnulib more prominently.
6750         * doc/autoconf.texi (Gnulib): New node.
6751         (Pointers): Add Gnulib URL.
6752         (Particular Functions): Alphabetize.  Add AC_FUNC_STRTOLD.
6753         (Generic Functions): Add AC_CHECK_FUNCS_ONCE.  Refer to new
6754         Gnulib section.
6755         (Particular Headers): Add AC_HEADER_ASSERT.  For stdbool.h,
6756         suggest a #define rather than a typedef for _Bool, and mention
6757         Gnulib rather than trying to substitute stdbool code.
6758         (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
6759         (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
6760         (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
6761         AC_STRUCT_DIRENT_D_TYPE.
6762         (Particular Types): Mention stdint.h and inttypes.h as standard
6763         headers too.
6764         Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
6765         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
6766         AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
6767         AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
6768         AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
6769         (C Compiler): Move AC_C_LONG_DOUBLE to ...
6770         (Obsolete Macros): here.  Under AC_LONG_DOUBLE, mention
6771         AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
6772         (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
6773         (Coding Style).  Don't mention m4_expand_once.
6774         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
6775         AC_TYPE_LONG_DOUBLE_WIDER.  Now obsolete.
6776         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
6777         (AC_CHECK_FUNCS): Use it.
6778         (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
6779         (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
6780         * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
6781         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
6782         (AC_HEADER_ASSERT): New macro.
6783         (AC_HEADER_STDBOOL): Don't assume "#error" works.
6784         Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
6785         Catch a bug in an HP-UX C compiler.
6786         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
6787         * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
6788         (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
6789         (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
6790         (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
6791         (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
6792         New macros.
6794         * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
6795         use /^foo|bar$/, it does not mean /^(foo|bar)$/.
6797 2006-04-08  Stepan Kasal  <kasal@ucw.cz>
6799         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
6800         of the warning introduced by the 2001-08-28 change.
6802 2006-04-08  Stepan Kasal  <kasal@ucw.cz>,
6803             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6805         * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
6806         variables shall be overriden by the cache.
6807         * tests/torture.at (AC_ARG_VAR): Test also with a first value
6808         that contains braces.
6810 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
6812         Revert the patch from 2006-04-01 and only improve
6813         _AS_DETECT_BETTER_SHELL:
6815         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
6816         skip nonexistent directories.
6817         (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
6818         only shell candidates which exist.
6819         (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
6820         * lib/autotest/general.m4 (AT_INIT): No need to give three
6821         parameters to _AS_PATH_WALK.
6823 2006-04-07  Stepan Kasal  <kasal@ucw.cz>,
6824             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6826         * bin/autoupdate.in (handle_autoconf_patches): Change the way we
6827         distinguish m4sugar macros.
6828         * tests/tools.at (autoupdating with aclocal and m4_include):
6829         New test.  Bug reported by Gary V. Vaughan <gary@gnu.org>,
6830         test case by Noah Misch <noah@cs.caltech.edu>.
6832 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
6834         Revert my change from 2006-03-17, in other words:
6835         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
6836           and DUALCASE=1.
6837         (AS_SHELL_SANITIZE): Remove DUALCASE=1.
6838         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
6839           it is set.
6841 2006-04-07  Eric Blake  <ebb9@byu.net>
6843         * doc/autoconf.texi (Programming in M4sh): Document that
6844         AS_MKDIR_P exits the script on failure.
6845         * lib/autotest/general.m4: Remove redundant AS_ERROR.
6847 2006-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6849         * config/elisp-comp, config/install-sh, config/mdate-sh,
6850         config/missing, config/mkinstalldirs: Sync from Automake.
6852         * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
6853         from Automake.
6855         * doc/make-stds.texi: Sync from gnulib.
6857 2006-04-06  Eric Blake  <ebb9@byu.net>
6859         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
6860         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
6861         2006-04-01.
6863 2006-04-06  Stepan Kasal  <kasal@ucw.cz>,
6864             Eric Blake  <ebb9@byu.net>,
6865             Paul Eggert  <eggert@cs.ucla.edu>,
6866             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6868         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
6869         whether `set' quotes correctly: redirect stderr of the tested
6870         `set', and use a subshell, for Ultrix; use `sed' instead of
6871         `grep' for zsh `set' which may write binary output; match only
6872         at the beginning of a line, to avoid false positives.
6873         In order to avoid false positives by unrelated variables with
6874         multiline content, put the dump algorithm in a subshell and
6875         unset all variables containing newlines (except some which are
6876         special to the shell).  Warn about cache variables that are
6877         unset.
6879 2006-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6881         * config/config.guess, config/config.sub, config/texinfo.tex:
6882         Sync from upstream.
6884         * tests/mktests.sh: Reword comments.
6886         * tests/mktests.sh: Only skip internal macros starting with
6887         `_AC_' or `__AC_'.  Noted by Stepan Kasal.
6888         Update exclusion lists for the test suite to this end:
6889         (AC_ARG_VAR): Do test this now.
6890         (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
6891         (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
6892         (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
6893         (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
6895         * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
6896         shell issue with double-quoted command substitutions of native
6897         commands.
6898         Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
6899         Marshall.
6901         * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
6902         no file matches the glob, discard the warning, set `nullglob'.
6903         (syntax-check): Likewise.
6904         (sc_cast_of_x_alloc_return_value): Likewise.
6905         (sc_cast_of_alloca_return_value, sc_error_exit_success)
6906         (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
6907         (m4-check): Likewise.
6908         (sc_system_h_headers): Do not print rule on execution.
6909         (sc_tight_scope): Do not fail for non-existing `src' directory.
6910         (sc_changelog): Skip the Copyright footer.
6911         * lib/autoconf/lang.m4: Remove trailing space.
6913         * lib/autoconf/status.m4: More replacements to
6914         <tab><space> where this makes sense.
6916 2006-04-06  Stepan Kasal  <kasal@ucw.cz>
6918         * tests/Makefile.am (maintainer-check-posix):
6919           s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
6921         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
6922           ac_config_<foo>s again, sometimes normalized, sometimes not.
6923         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
6924         (AC_CONFIG_COMMANDS): Do not do so here.
6925         (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
6926           and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
6927           2005-07-25 rewrite.  Noticed by Noah Misch.
6929         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
6930           _AC_PRESERVE_HELP_ORDER, ...
6931         (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
6933         * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
6934           inside m4_expand_once; it is redundant.
6936         * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
6937           for --help from Cygnus `configure.'
6939 2006-04-06  Paul Eggert  <eggert@cs.ucla.edu>
6941         * doc/autoconf.texi (C Compiler): Warn about #error.  Follows up
6942         on a patch proposed by Ralf Wildenhues.
6944 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
6946         * lib/autoconf/status.m4: Replace <space>''<tab> with
6947         <tab><space> where this makes sense.
6949 2006-04-05  Howard Chu  <hyc@highlandsun.com>  (trivial change)
6950             Noah Misch  <noah@cs.caltech.edu>
6952         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
6953         (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
6954         * doc/autoconf.texi (Help Formatting): New node.
6955         * NEWS: Announce AC_PRESERVE_HELP_ORDER.
6957 2006-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6959         * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
6960         lib/autoconf/specific.m4, lib/autoconf/status.m4,
6961         lib/autoconf/types.m4, lib/autotest/general.m4,
6962         tests/mktests.sh, tests/torture.at: White space cleanup:
6963         remove some SPACE before TAB, or add quoting ('' or @&t@).
6965         * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
6967         * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
6969 2006-04-05  Eric Blake  <ebb9@byu.net>
6971         * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
6972         empty test suite works.
6973         * tests/autotest.at (Empty test suite): Remove xfail.
6975 2006-04-05  Noah Misch  <noah@cs.caltech.edu>
6977         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
6978         TAGS to ac_config_<foo>s.
6979         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
6980         (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
6981         normalizing it, consistent it with previous releases.
6982         * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
6984 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
6986         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
6987         Use simplified args that Eric Blake originally suggested.
6989 2006-04-04  Paul Eggert  <eggert@cs.ucla.edu>
6991         * tests/mktests.sh: Don't use 'cat'; just read the files directly.
6992         Prefer 'sort -u' to 'sort | uniq'.  Filter data before sorting it.
6993         Use 'comm' rather than N instances of grep; this also fixes a bug
6994         whereby substrings were incorrectly matched, causing us to not
6995         generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
6996         (exclude_list): Exclude empty macros.
6997         (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
6999         Use awk rather than grep -E or egrep, to avoid
7000         portability problems with regular expressions containing newlines.
7001         (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
7002         Switch from grep to awk syntax.
7003         (ac_exclude_script): Renamed from ac_exclude_egrep.
7004         (au_exclude_script): Renamed from au_exclude_egrep.
7006 2006-04-04  Noah Misch  <noah@cs.caltech.edu>
7008         * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
7009         a subdirectory subject to Cygnus `configure'.
7010         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
7012         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
7013         report request when we have no AC_PACKAGE_BUGREPORT.
7015 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7017         * THANKS: Update.
7019         * tests/mktests.sh: Update copyright year in the header of the
7020         generated files.
7022         * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
7023         (AC_C_RESTRICT): Likewise.  Furthermore, add a function with a
7024         typedef'ed restricted pointer, to catch a compiler bug on
7025         HP-UX 11.x, and fix warnings so it passes with -Werror.
7026         (_AC_PROG_CC_C99): Likewise.
7027         Reported by Albert Chin <china@thewrittenword.com>.
7028         * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
7030 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
7032         * bin/autoscan.in (subdirs): New global.
7033         (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
7034         (output): Emit AC_CONFIG_SUBDIRS as needed.
7035         * tests/autoscan.at (autoscan): Remove XFAIL.
7037 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
7039         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
7041 2006-04-03  Eric Blake  <ebb9@byu.net>
7043         * THANKS: Add myself.
7045 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7047         * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
7048         to log, point to testsuite output tree.
7050 2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
7052         * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
7053         * doc/autoconf.texi (Function Portability): Mention that C++
7054         has trouble with 'exit'.
7055         (Guidelines): Test programs shouldn't use 'exit'.
7056         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
7057         Remove; all uses removed.
7058         (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
7059         Return from 'main' instead of calling 'exit'.
7060         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
7061         (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
7062         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
7063         (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
7064         (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
7065         (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
7066         (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
7067         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
7068         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
7069         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
7070         * tests/compile.at: Likewise.
7072 2006-04-02  Pavel Roskin  <proski@gnu.org>
7074         * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
7076 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
7078         Clean up _AC_COMPILER_EXEEXT* macros.
7080         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
7081           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
7082           ac_file to the name of the default output file and call
7083           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
7084           initial `rm' of the candidate files...
7085         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
7086           the same list in subsequent `rm' calls, and for the temporary
7087           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
7088           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
7089         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
7090         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
7091           no longer needed) by libtool.  Make it a cache check.
7092         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
7093           copied here by mistake.
7094         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
7095           _AC_COMPILER_EXEEXT.
7096         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
7097           _AC_COMPILER_OBJEXT directly.
7098         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
7100 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
7102         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
7103         (AS_DIRNAME): Use it.
7104         (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
7106         * tests/*.at: Remove the generated ones.
7108 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
7110         * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
7112 2006-04-01  Eric Blake  <ebb9@byu.net>
7114         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
7115         directories, unless optional third argument supplied.
7116         (AS_UNAME): Don't optimize PATH walk.
7118         * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
7120 2006-04-01  Eric Blake  <ebb9@byu.net>
7121         and Stepan Kasal  <kasal@ucw.cz>
7123         * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
7124         and fix some typos.
7126 2006-04-01  Noah Misch  <noah@cs.caltech.edu>
7128         * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
7129         Autoconf version number despite a zero- or one-argument AC_INIT.
7131         * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
7132         subordinate tools.
7133         * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
7134         * doc/autoconf.texi (autoreconf Invocation): Document it.
7136         * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
7137         Append LocalWords so ispell-buffer passes cleanly.  Spelling fixes.
7139 2006-04-01  Eric Blake  <ebb9@byu.net>
7141         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
7142         * lib/autotest/general.m4: Be tolerant of existing directory when
7143           rm failed to remove it.
7145 2006-04-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7147         * bin/autoupdate.in: Redefine m4_location so that warnings print
7148         the correct lines of the input file by subtracting..
7149         (_au__first_line): ..this new definition.
7151         * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
7152         AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
7153         Remove stray newline in output.
7154         (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
7155         AC_DEFUN this for autoconf, including the obsoletion diagnose.
7156         Fixes autoupdating of code where the replacement output contains
7157         m4sugar macros.
7158         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
7159         * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
7160          (au_exclude_list): Add AC_LANG_SAVE.
7161         * tests/tools.at: Several new tests for all of this.
7162         * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
7163         hairy details.
7164         The AC_LANG_SAVE issue was reported against Libtool by
7165         Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
7166         Kristian Kvilekval <kris@cs.ucsb.edu>.
7168 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
7170         * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
7171           switch all of them on and of when necessary.  Fixes the bug when
7172           m4sugar macros (e.g., m4_define) were expanded after the first
7173           automatic update (e.g., after AC_PREREQ or AC_INIT).
7175 2006-03-31  Paul Eggert  <eggert@cs.ucla.edu>
7177         * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
7178         of AS_BASENAME and AS_DIRNAME.  Reported by Stepan Kasal.
7180         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
7181         correctly.  Problem reported by Eric Blake.
7182         (_AS_EXPR_PREPARE): Detect Tru64 expr bug.  Problem reported by
7183         Ralf Wildenhues.
7185 2006-03-30  Paul Eggert  <eggert@cs.ucla.edu>
7187         * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
7188         Tighten up the basename/dirname wording.
7190 2006-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7192         * Makefile.maint (sc_texi_notab): New check: do not use TABs
7193         in texinfo files outside of verbatim environments.
7194         (syntax-check-rules): Update.
7195         * doc/autoconf.texi (Configuration Headers): Conform to it.
7197 2006-03-30  Chris Pickett <cpicke@cs.mcgill.ca>  (tiny change)
7199         * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
7200           aclocal cannot be given on the command line.
7202 2006-03-29  Paul Eggert  <eggert@cs.ucla.edu>
7204         * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
7205         Give an example for AS_DIRNAME instead of referring to Posix..
7206         (File System Conventions): Put discussion of // versus / here, and
7207         modernize it a bit.
7208         (Limitations of Usual Tools): Add basename.  Remove verbiage
7209         after dirname, since it got moved to the above sections.
7210         All this was inspired by a patch proposed earlier by Eric Blake.
7212 2006-03-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7214         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
7215         `$0' to protect against spaces.
7216         * lib/autotest/general.m4 (AT_INIT): Likewise.
7217         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
7218         `$0', $as_me.
7220 2006-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7222         * bin/autoscan.in: The value of find_configure_ac should be
7223         checked for existence, so we don't barf over a nonexisting
7224         configure.ac.  Reported by Laurence Darby <ldarby@tuffmail.com>.
7226 2006-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7228         * bin/autoupdate.in: Fix some typos.
7230 2006-03-21  Stepan Kasal  <kasal@ucw.cz>
7232         * doc/autoconf.texi (Installation Directory Variables): Fix typo.
7234         * lib/autoscan/autoscan.list: Refreshed.
7236 2006-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7238         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
7239         and Erlang related variables.
7241         * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
7242         (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
7243         (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
7244         (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
7245         (AC_LANG_BOOL_COMPILE_TRY(Objective C))
7246         (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
7247         (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
7248         (_AC_PROG_OBJC_G): New macros.
7249         (_AC_ARG_VAR_CPPFLAGS): Adjusted.
7250         * doc/autoconf.texi (Objective C Compiler): New node.
7251         (Preset Output Variables): Document OBJCFLAGS.
7252         (Language Choice): Document `Objective C' language.
7253         (Fortran Compiler): Fix typo.
7254         * NEWS: Updated.
7255         Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
7257 2006-03-20  Stepan Kasal  <kasal@ucw.cz>
7259         * doc/autoconf.texi (Default Includes): Fix typo
7260           s/AC_HEADERS_STDC/AC_HEADER_STDC/
7261         (Limitations of Usual Tools): s/unwriteable/unwritable/
7262         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
7263           Fix typos in the comments.
7265 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
7267         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
7268           Factor out the warning to...
7269         (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
7270         * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
7271         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
7273         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
7274           case `ac_delim' when writing the sed script.
7276         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
7277           moved DUALCASE=1 ...
7278         (AS_SHELL_SANITIZE): ... here.
7279         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
7280           that it is set.
7282         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
7283           AC_SUBST.
7284         (_AC_PATH_PROG): Store the result to VARIABLE.
7285         (AC_PATH_PROG): No need to set VARIABLE again.
7287         * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
7288           the first one is usual AT_CHECK_MACRO test, the second one checks
7289           that the same works when cross-compiling.
7290         * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
7291         (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
7293 2006-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7295         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
7296         the directory `/usr/bin/posix' in the shell search, to prefer
7297         the Posix shell not only in subsequent spawns as with `$BIN_SH'
7298         on Tru64.
7300         * doc/autoconf.texi (contents): To fix texi2html output, hide
7301         `@setcontentsaftertitlepage' for HTML.
7302         (Writing Autoconf Macros): Likewise, insert space after `@c'.
7303         (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
7304         `@,{c}'.
7306 2006-03-16  Stepan Kasal  <kasal@ucw.cz>
7308         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
7309           sanitizing...
7310         (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
7311         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
7312           why IFS is restored so late; thank you, Ralf, for reminding us.
7314 2006-03-15  Stepan Kasal  <kasal@ucw.cz>
7316         * doc/autoconf.texi (Pretty Help Strings): No need to use cached
7317           variables in the examples.
7319 2006-03-14  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
7321         * doc/autoconf.texi (several sections): Cleaned up documentation for
7322         macros in erlang.m4.
7324 2006-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7326         * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
7327         failure condition for `$(cmd)' style command substitutions.
7328         (Parenthetical command substitution, Multiline parenthetical
7329         command substitution): Use it.
7331         * doc/autoconf.texi (Special Shell Variables): Missing word.
7332         Reported by Keith Marshall <keith.marshall@total.com>.
7334         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
7335         IFS even in case of empty `$PATH'.
7337 2006-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7339         * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
7340         `expr' away if there is nothing to do.
7341         < --keywords >: Simplify and robustify argument handling.
7342         Revert erroneous comment from 2005-08-23.  Extend to allow
7343         keyword negation with `!'.
7344         Update help message.  Remove broken code to prevent running
7345         tests multiple times.
7346         * doc/autoconf.texi (testsuite Invocation) < --keywords >:
7347         Update and fix the documentation accordingly.
7348         * tests/autotest.at (Keywords): Renamed to..
7349         (Keywords and ranges): .. this.  Extended to make sure negated
7350         keywords, keywords taken from AT_SETUP arguments, and numeric
7351         test ranges work, and that matching is case-insensitive.
7353 2006-03-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7355         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
7356         allow to pass unnamed structs even in C++.
7357         (AC_CHECK_SIZEOF):  Likewise.
7358         Also fix quoting error in `AC_MSG_FAILURE' arguments.
7359         * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
7360         struct): New tests for unnamed structs, each both native and
7361         cross-compiling.
7363         * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
7364         a structure inside a cast, for C++ conformance.
7365         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
7366         Also fix quoting error in `AC_MSG_FAILURE' arguments.
7368         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
7369         nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
7370         trying to execute the command `no'.
7372         * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
7373         m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
7374         expanded outside.
7376         * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
7377         example.  Do not emphasize `$%', it is hardly new and special.
7378         Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
7380         * doc/autoconf.texi (Limitations of Usual Tools): Document
7381         OpenBSD and traditional `grep' failure to handle multiple
7382         patterns separated by newlines.
7384 2006-03-10  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
7386         * doc/autoconf.texi (several sections): Add documentation for macros
7387         in erlang.m4.
7389 2006-03-10  Eric Blake  <ebb9@byu.net>
7391         * doc/autoconf.texi (Obsolete Macros): Fix wording of
7392         AC_TRY_LINK_FUNC.
7394 2006-03-10  Paul Eggert  <eggert@cs.ucla.edu>
7396         * doc/autoconf.texi: Use @acronym more consistently for acronyms
7397         like BSD, GPL, LGPL.  Fix minor English typos.
7398         (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
7399         Mention that these macros are becoming obsolete.
7400         (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
7401         Use more modern terminology for which standard is what.
7402         (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
7403         and to ansi2knr.
7404         (AC_PROG_CXX): Likewise.
7405         (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
7406         Remove obsolete discussion about how to port to K&R.
7407         (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
7408         the obsolescent AC_HEADER_STDC.
7409         (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
7410         can't rely on it.
7412 2006-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7414         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
7415         Remove stdin redirection from /dev/null to allow pipe to work.
7417 2006-03-08  Paul Eggert  <eggert@cs.ucla.edu>
7419         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
7420         Require that /lib/cpp include stdio.h correctly.  Solaris 10's
7421         doesn't.  Problem reported by D'Arcy A MacIsaac and diagnosed by
7422         Ralf Wildenhues.
7424 2006-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7426         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
7427         HP-UX sed is 99 commands, not 100.
7428         (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
7429         _AC_SUBST_FILES fragment.  Separate `{' and `r' commands by
7430         newline for portability.
7431         * tests/torture.at (Torturing config.status): Also test 100
7432         AC_SUBST_FILE invocations.  Fix test to actually verify the
7433         AC_CONFIG_FILES output.
7434         * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
7435         command, label, and read-file `r' limits.  Unify HP-UX spelling.
7437         * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
7438         non-suffix rule.
7439         ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
7440         non-GNU make.
7441         (autoconfdir, $(AUTOCONF_FILES)): Likewise.
7442         * tests/mktests.sh: Small shell portability fixes.
7444 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7446         * doc/autoconf.texi (Caching Results): Fix the examples to use a
7447         recommended quoting style and discard unwanted output.
7449 2006-03-05  Paul Eggert  <eggert@cs.ucla.edu>
7451         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
7452         (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
7453         cases, and to work around Tru64 expr bug.
7455 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7457         * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
7458         expr bug that turns the result of a regex match into a number if
7459         possible.
7461 2006-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7463         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
7464         HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
7465         in section `Specific Compiler Characteristics'.
7467 2006-03-04  Eric Blake  <ebb9@byu.net>
7469         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
7470         variable warning.
7472 2006-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7474         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
7475         order of variable initialization, so even the Solaris 2.6 shell
7476         can create a config header correctly.  Fixes lots of test suite
7477         failures.
7479 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7481         * doc/autoconf.texi (Text processing Macros): New node to
7482         document the m4sugar macros m4_re_escape, m4_tolower,
7483         m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
7485 2006-02-22  Paul Eggert  <eggert@cs.ucla.edu>
7487         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
7488         XrmInitialize (0) -> XrmInitialize ().
7489         Reported by Toshio Kuratomi.
7491 2006-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7493         * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
7494         test, as in `if tests; then cmd1; elif ...; else ...; fi'.
7495         * doc/autoconf.texi (Programming in M4sh): Adjusted.
7496         * tests/m4sh.at (AS_IF and AS_CASE): Test this.  Also make sure
7497         both macros are defun'ed so that required macros are evaluated
7498         outside.
7500         * doc/autoconf.texi (Prerequisite Macros): State more precisely
7501         where a required macro will be expanded.
7502         (Coding Style): Another reason not to use `m4_define'.
7504 2006-02-21  Eric Blake  <ebb9@byu.net>
7506         * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
7508 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7510         * doc/autoconf.texi (Looping constructs): New node, to
7511         document m4_for, m4_foreach, m4_foreach_w, and mention
7512         obsolete AC_FOREACH.
7513         (Obsolete Macros): Document AC_FOREACH.
7514         * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
7515         (m4_for): Fix to never loop (almost) endlessly, work correctly
7516         with arithmetic expressions in arguments, a step of zero or
7517         non-integer multiple of the interval, and avoid integer
7518         overflow.
7519         * tests/m4sugar.at: New test for m4_for, m4_foreach, and
7520         m4_foreach_w.
7522 2006-02-20  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
7524         Add basic support for Erlang, both for configuring Erlang/OTP
7525         tools, and Erlang as a conf test language.
7526         * lib/autoconf/erlang.m4: New file.
7527         * lib/autoconf/autoconf.m4: Add erlang.m4.
7528         * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
7529         * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
7530         * NEWS: Add short description of new macros.
7531         * THANKS: Add Romain Lenglet.
7533 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7535         * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
7536         native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
7538 2006-02-15  Eric Blake  <ebb9@byu.net>
7540         * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
7541         warning.
7543 2006-02-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7545         * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
7546         (_AS_CASE): Private helper macro.
7547         * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
7548         * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
7549         Fix syntax of AS_IF description
7550         (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
7551         for the AC_REQUIRE mess.
7552         * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
7553         AS_SHELL_SANITIZE.
7555 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
7557         * doc/autoconf.texi: Minor style cleanup.
7558         Be consistent about spaces after commas.
7559         Insert [] where empty args look a bit funny.
7560         Fix some "i.e." and "e.g." usages.
7561         Try to avoid "X/Y" usages.
7562         Don't be pedantic about "ISO C99"; just say C99.
7563         Prefer GNU style for spaces in front of parens.
7564         (Function Portability): Comment about C89 versus C99
7565         signed integer division.
7566         (Particular Headers): Use current gnulib style for dirent
7567         includes.
7569 2006-02-14  Stepan Kasal  <kasal@ucw.cz>
7570         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7572         * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
7573         macros without parameters.
7574         * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
7575         * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
7576         * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
7577         `$#' bug.
7578         (autoupdate): Updated to match AU_ALIAS fix.
7580 2006-02-13 Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7581         and Paul Eggert  <eggert@cs.ucla.edu>
7583         * doc/autoconf.texi (Programming in M4sh): Document
7584         AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
7586 2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7588         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
7589         (AS_BOURNE_COMPATIBLE): ..this.
7590         (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
7592 2006-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7594         * doc/install.texi (Defining Variables): Tighten up the
7595         CONFIG_SHELL wording.
7597 2006-02-12 Paul Eggert  <eggert@cs.ucla.edu>
7598         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7600         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
7601         of (set -o) rather than testing whether (set -o posix) succeeds,
7602         to work around a bug in the AIX 5.3 shell.  Problem originally
7603         reportd by Howard Chu for libtool.
7605 2006-02-10  J.T. Conklin  <jtc@acorntoolworks.com>
7607         * doc/autoconf.texi (Running the Compiler, Running the Linker):
7608         Changes the macro arguments in summaries to match the
7609         descriptions.
7611 2006-02-04  Stepan Kasal  <kasal@ucw.cz>
7613         * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
7614         hint as ``a workaround for a bug.''
7616 2006-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7618         * bin/autoreconf.in: New option `--no-recursive'.
7619         Improve wording for subpackages a bit.
7620         * doc/autoconf.texi (autoreconf Invocation): Updated.
7621         * NEWS: Updated.
7623         * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
7624         in environment of `configure', not the command line.
7625         Reported by Howard Chu <hyc@highlandsun.com>.
7627 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7629         * doc/autoconf.texi (Limitations of Builtins): Document the
7630         problem with "trap -".
7632 2006-01-23  Steven G. Johnson  <stevenj@fftw.org>
7634         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
7635         (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
7636         messages to differentiate Fortran and Fortran 77 tests.
7637         (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
7638         AC_LANG_ASSERT, to allow use in mixed-language projects.
7640 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7642         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
7643         FOO" to "defined (FOO)".
7644         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
7645         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
7646         * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
7647         * tests/tools.at (ifnames): Likewise.
7649 2006-01-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7651         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
7652         * lib/Autom4te/General.pm (mktmpdir): Likewise.
7653         (END): Improve error message a bit.
7654         Reported by Bruce Korb <bkorb@gnu.org>.
7656 2006-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7658         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
7659         `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
7661 2006-01-11  Stepan Kasal  <kasal@ucw.cz>
7663         * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
7664         requires sys/stream.h.  Reported by Oliver Kiddle.
7666 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7667             Stepan Kasal  <kasal@ucw.cz>
7669         * lib/autotest/general.m4 (AT_INIT): When ensuring writability
7670         before the removals of test dirs, use `find' to avoid modification
7671         of symlinked directories.
7673 2006-01-11  Steven G. Johnson  <stevenj@alum.mit.edu>
7675         * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
7676         Don't ignore the macro arguments.
7678 2006-01-11  David Thompson  <dthompsn@vizsolutions.com>
7680         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
7681         declaration that works for MSVC.
7683 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7685         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
7686         Add `*.map' and `.inf' for Green Hills compiler.
7687         Reported by Stefan Seefeld <stefan@codesourcery.com>.
7689         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
7690         correctly: pad with spaces after FIRST_PREFIX if necessary,
7691         and compute string lenghts with `m4_qlen' instead of `m4_len'.
7692         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
7693         * tests/m4sh.at (AS_HELP_STRING): Test extended.
7694         * NEWS: Updated.
7695         Reported by numerous people, numerous times.
7697 2006-01-05  Paul Eggert  <eggert@cs.ucla.edu>
7699         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
7700         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
7701         * lib/autoconf/general.m4, lib/autoconf/status.m4:
7702         * lib/autotest/general.m4, tests/local.at:
7703         Update copyright year to 2006.
7705         * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
7706         sed substitutions.
7707         * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
7708         for file names, again.  Reported by Noah Misch.
7709         (Coding Style): Explain that s|a|b| is preferred for file names.
7710         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
7711         (AC_OUTPUT_MAKE_DEFS): Likewise.
7712         * lib/autotest/general.m4 (AT_INIT): Likewise.
7713         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
7714         * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
7716         Fix Posix-conformance bugs re use of { command in sed scripts,
7717         and improve the sed-related documentation a bit.
7718         * doc/autoconf.texi (Installation Directory Variables): Use
7719         our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
7720         rather than "sed" when talking about Sed in general.
7721         (Particular Programs): Likewise.
7722         (Coding Style): y is like s with respect to / and ,.
7723         (Limitations of Usual Tools): Document the weird restrictions
7724         that Posix has about { }.  Use better quoting.
7725         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
7726         Rewrite to conform to Posix rules about { } in sed scripts.
7727         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
7728         * tests/foreign.at (Libtool): Likewise.
7729         * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
7730         Use our own style advice re 's,a,b,' versus 's|a|b|'.
7732 2006-01-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7734         * lib/autoconf/status.m4: Fix typo.
7736         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
7737         singly- or doubly-quoted arguments to `-cmdline', `-ignore',
7738         `-def', for the benefit of Portland `pgf90 -Mipa'.
7739         Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
7741 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
7743         * doc/autoconf.texi: Update copyright (and other) dates to 2006.
7744         * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
7745         shell from zsh to bash.
7747 2005-12-31  Stepan Kasal  <kasal@ucw.cz>
7749         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
7750           ":" caused problems on OS/2-EMX.  Suggested by Andrew Belov.
7752 2005-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7754         * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
7755         parentheses in $(...).  Problem reported by Eric Blake.
7757 2005-12-12  Paul Eggert  <eggert@cs.ucla.edu>
7759         * doc/autoconf.texi (Limitations of Usual Tools):
7760         Mention which characters can be escaped with \ in portable regular
7761         expressions used in grep, sed, expr.  Mention the leading ^ problem
7762         with expr.  Clean up some confusing wording.  Mention which
7763         grep options are portable.
7765 2005-12-09  Stepan Kasal  <kasal@ucw.cz>
7767         * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
7769 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
7771         * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
7772         patch, noted by Ralf Wildenhues.
7774 2005-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7776         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
7777         posix' unconditionally, for pdksh in `native sh' emulation.
7779 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
7781         * doc/autoconf.texi (Shellology): Document eval $? problem
7782         with ash.
7783         (Limitations of Builtins): Likewise.
7785 2005-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7787         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
7788         CONFIG_SHELL in the environment of the configure rerun.
7789         * doc/autoconf.texi (Here-Documents, config.status Invocation):
7790         Suggest passing CONFIG_SHELL absolute, and in the environment
7791         rather than as option.
7793 2005-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7795         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
7796         Fix quoting of output line (triggered for many AC_SUBST_FILEs).
7797         Fix macro quoting.  Fix output for n * 98 substituted variables.
7799 2005-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7801         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
7802         `tmp' to avoid file removal race.
7804 2005-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7806         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
7807         ac_clean_files and LIBOBJS.
7809 2005-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7811         * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
7812         Factor functionality to..
7813         (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
7814         `AC_SUBST($1)' in the public version.
7815         (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
7816         (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
7817         ac_pt_* variables.
7819 2005-11-01  Stepan Kasal  <kasal@ucw.cz>
7821         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
7822         filesystems.
7824 2005-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7826         * NEWS: Move AH_HEADER mention to right place.
7828 2005-10-27  Stepan Kasal  <kasal@ucw.cz>
7830         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
7831         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
7833 2005-10-25  Stepan Kasal  <kasal@ucw.cz>
7835         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
7836         conftst2.$ac_objext.
7837         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
7839 2005-10-24  Stepan Kasal  <kasal@ucw.cz>
7841         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
7842         conftest.o, to see whether the compiler really obeys; rm the object
7843         file before and after the test and register it with ac_clean_files.
7844         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
7846 2005-10-21  Stepan Kasal  <kasal@ucw.cz>
7848         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
7849         the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
7850         code so that the most common case requires less forks.
7852 2005-10-20  Stepan Kasal  <kasal@ucw.cz>
7854         * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
7855         not portable; thanks to Paul Eggert and Alexandre.
7857         * NEWS: Fix an old typo.
7859 2005-10-20  Jim Meyering  <jim@meyering.net>
7861         * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
7862         the latter'', in two places.
7864 2005-10-19  Paul Eggert  <eggert@cs.ucla.edu>
7866         * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
7867         AC_LANG_PROGRAM, fixing a typo.  Don't give details about
7868         the inner workings of AC_LANG_FUNC_LINK_TRY.
7869         * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
7870         AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
7871         by the function rather than ignoring it.
7872         (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
7873         comparing its address.  Intel's interprocedural optimization was
7874         outsmarting the old heuristic.  Problem reported by
7875         Mikulas Patocka.
7877 2005-10-19  Stepan Kasal  <kasal@ucw.cz>
7879         * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
7881 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7883         * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
7884         (m4_map, m4_map_sep): Use it.  Handle the empty list correctly.
7886 2005-10-04  Stepan Kasal  <kasal@ucw.cz>
7888         * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
7889         before removing it (chmod -R u+rwx); there are three instances of this.
7891 2005-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7892             Stepan Kasal  <kasal@ucw.cz>
7894         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
7895         * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
7896         make its content writable before removing it.  Remove an errorneous
7897         comment from the end, where the logs of the failed tests are copied
7898         to the main log file.
7900 2005-09-27  Stepan Kasal  <kasal@ucw.cz>
7902         * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
7903           in case the computer is too quick.  Double quote the configure.ac
7904           snippets.
7906         * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
7907           problems if the testsuite were running too fast.
7909 2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
7911         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
7912         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
7913         (which belong to Xt, not X itself).  See Debian bug 327655.
7914         * NEWS: Mention this.
7916 2005-09-07  Stepan Kasal  <kasal@ucw.cz>
7918         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
7920 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
7922         * config/move-if-change: Don't output "$2 is unchanged";
7923         suggested by Ben Elliston.  Handle weird characters correctly.
7925 2005-09-06  Stepan Kasal  <kasal@ucw.cz>
7927         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
7928           calls, so that the final expansion of this macro is shorter.
7929           Create the conftest.$ac_ext outside the `for' loop, to speed the run.
7930           Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
7931           the cleanup there.  Use AS_VAR_* macros, to be more general.
7932         * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
7934         * lib/autoconf/general.m4: Use AS_IF where appropriate.
7936         * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
7938 2005-09-01  Stepan Kasal  <kasal@ucw.cz>
7940         * doc/autoconf.texi (Configuration Headers): Add an index entry
7941           for AH_HEADER.
7943 2005-08-26  Pavel Roskin  <proski@gnu.org>
7945         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
7946         XMKMF to locate xmkmf.  Make XMKMF precious.  Export CC when
7947         running xmkmf.
7949 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
7951         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
7952         The previous patch didn't work, so try a better one.
7954 2005-08-26  Stepan Kasal  <kasal@ucw.cz>
7956         * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
7957         in the example.  Reported by Bruno Haible.
7958         <AS_TR_SH>: Likewise.  Also modify the example to be more convincing:
7959         "if $undefined_var;" succeeds with my shell.
7961         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
7962         AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
7963         but change the m4_divert_text to m4_divert_once.
7965 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
7967         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
7968         Work around bug in Solaris /usr/xpg4/bin/awk.
7969         The bug is present in at least Solaris 8 through 10.
7971 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
7973         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
7974         some evil values and relying on the fact that $* concatenates the
7975         parameters by the first character from IFS.
7977 2005-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
7978             Stepan Kasal  <kasal@ucw.cz>
7980         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
7981         first header appears, define AH_HEADER.
7982         * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
7983         Update limitations about when to call AC_CONFIG_HEADERS.
7984         (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
7985         parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
7986         that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
7987         ``Configuration Actions''; fix their index entries.
7989         * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
7990         options correctly.  Process N-M as M-N if M is smaller than N.
7991         Process ranges correctly so that N-N will run only N.
7992         Sort and uniquify the tests that will be run.  If there is more
7993         than one test, reinsert the banners for the tests.
7994         * tests/autotest.at (Keywords): Unmark XFAIL.
7996 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
7998         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
7999           before passing the macro name to AH_TEMPLATE.
8001         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
8002           now opens log after option processing; in particular, --version
8003           and --help do not touch config.log.
8005         * Makefile.maint: Revert the change from 2005-08-12.
8007 2005-08-22  Stepan Kasal  <kasal@ucw.cz>
8009         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
8010           common code to...
8011         (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
8013 2005-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8015         * doc/autoconf.texi (Using Autotest, testsuite Scripts)
8016         (Autotest Logs, Writing testsuite.at, testsuite Invocation):
8017         Language cleanup.
8019         * doc/autoconf.texi (Defining Symbols, Changed Results):
8020         Prepend to LIBS, not append, in examples.
8022 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
8024         When building in place, set srcdir="."; suggested by Tim Van Holder.
8026         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
8027           build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
8028         (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
8029         * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
8030           does not mean "no --srcdir option".
8032 2005-08-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8034         * tests/autoscan.at (autoscan): New file.
8035         * tests/suite.at: Use it.
8036         * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
8037         Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
8039         * tests/autotest.at (Keywords): Test keywords combinations.
8041 2005-08-12  Stepan Kasal  <kasal@ucw.cz>
8043         * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
8044           add "2>&1"; gzip 1.2.4 prints help on stderr.
8046 2005-07-27  Stepan Kasal  <kasal@ucw.cz>
8048         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
8049         was pushdef'ed twice while popped only once.  Push it only once.
8050         (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
8052 2005-07-26  Stepan Kasal  <kasal@ucw.cz>
8054         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
8055         prefixed by mere "===", not "configure: === ".
8057 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
8059         * Makefile.maint: Update from Bison.
8061         * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
8062         "<tab>" in comment, so that the point is understandable.
8064 2005-07-25  Stepan Kasal  <kasal@ucw.cz>
8066         Rewrite substantial part of lib/autoconf/status.m4.
8067         The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
8068         and CONFIG_COMMANDS are not processed in four separate loops.
8069         Instead, there is one main loop.  This alows that the common code
8070         is expanded only once, thus config.status (and configure) is smaller.
8072         The registration mechnism in AC_CONFIG_FILES and cousins also changed;
8073         the AC_LIST_FILES and cousins macros are no longer used.
8075         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
8076         _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
8077         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
8078         _AC_OUTPUT_COMMAND): ..., respectively.  These macros no longer
8079         contain the initialization, nor the for loop, nor the associated
8080         commands; all these go to ...
8081         (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
8082         _AC_OUTPUT_CONFIG_STATUS.
8083         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
8084         Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
8085         (_AC_OUTPUT_FILE): The creation of the sed script ...
8086         (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
8087         (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
8088         _AC_OUTPUT_MAIN_LOOP.
8089         (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
8090         _AC_CONFIG_COMMANDS): Use ...
8091         (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
8092         (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
8093         (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
8094         _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
8095         (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
8096         (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
8097         ... new macros.
8098         (_AC_CONFIG_UNIQUE): Update.
8099         (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
8100         Replaced by this ...
8101         (_AC_LIST_TAGS): ... new common macro.
8102         (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
8103         AC_LIST_COMMAND_COMMANDS): Replaced by this ...
8104         (_AC_LIST_TAG_COMMANDS): ... new common macro.
8105         (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
8106         this didn't belong to the `config commands' section.
8107         (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
8108         (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
8109         AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
8110         to the `config commands' section either.
8111         (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
8112         (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
8114         ... and many changes to the comments nearby.
8116         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
8117         set ac_subdirs_all='_AC_LIST_SUBDIRS'.
8118         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
8119         AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
8120         (#define header templates): The comment at the top of the generated
8121         header now includes the name(s) of the source file(s).
8123         Several unrelated small changes:
8125         * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
8126         parameter to AC_DIAGNOSE.
8127         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
8128         (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
8129         with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
8130         (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
8131         with AU::AC_OUTPUT.
8132         (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
8133         in AC_OUTPUT doesn't double-quote it either.
8134         * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
8135         parameters.
8137 2005-07-10  Stepan Kasal  <kasal@ucw.cz>
8139         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
8140         versions of Portland Group compiler produce single- and double-quoted
8141         -cmdline argument.  Reported by Steven G. Johnson <stevenj@fftw.org>
8142         and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
8144 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
8146         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
8147         This is a corrected version of yesterday's patch.
8149 2005-07-07  Stepan Kasal  <kasal@ucw.cz>
8151         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
8152         path, too; insert a "===" to emphasize the line.
8154         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
8155           ac_cv_build_alias to ac_build_alias.
8156         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
8158         On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
8159         change eliminates it.  Problem reported by Alexandre Duret-Lutz.
8160         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
8161         (AC_ARG_VAR): ... here.
8162         (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
8163           target_alias.
8165         Keep a list of all precious variables and process them with one simple
8166         for loop, instead of expanding all commands, or, OTOH, complicated
8167         processing of output of "set".
8168         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
8169         variable names in new macro...
8170         (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
8171         (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
8172           a loop to assign all ac_env_* and ac_cv_env_* variables.
8173         (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
8174           to INIT_PREPARE.
8175         (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
8176           its value to shell variable ac_precious_vars and call
8177           _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
8178         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
8179           _AC_ARG_VAR_VALIDATE.
8181         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
8182           and the AC_SUBSTs ...
8183         (AC_INIT): ... here.
8185         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
8186           the ac_subst_files section in config.log.
8188         * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
8190 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8192         * NEWS: New macro AC_C_TYPEOF.
8193         * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
8194         * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
8195         * tests/c.at (C keywords): Test AC_C_TYPEOF.
8197         Fix problems reported by Nicolas Joly.
8198         * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
8199         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
8200         They are generated by the Tru64 v5.1B shell.
8202 2005-07-05  Stepan Kasal  <kasal@ucw.cz>
8204         Fix my changes from 2005-07-01; reported by Noah Misch.
8205         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
8206         description, the macro now accepts only a single tag.
8207         (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
8209         Fix cases when the varsions of Autoconf and Autotest don't match.
8210         Reported by Noah Misch.
8211         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
8212         at_top_builddir, for compatibility with older autotest.
8213         * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
8214         is not set, use at_top_builddir, for compatibility with older
8215         versions of autoconf.
8217 2005-07-04  Paul Eggert  <eggert@cs.ucla.edu>
8219         * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
8220         Problem reported by Patrick Welche.
8222 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
8224         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
8225         sed substitution command, so that we allow | in program prefixes
8226         and program suffixes.  (& is a problem anyway; we're not fixing
8227         that here.)
8228         * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
8229         configure_input, top_builddir, srcdir, etc.
8230         * lib/autotest/general.m4 (AT_INIT): Likewise, for
8231         PATH_SEPARATOR in AUTOTEST_PATH.
8233 2005-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
8235         * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
8236         for loop over config.site files using `set', to allow
8237         directory names containing IFS characters.
8239 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
8241         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
8242         directories with weird names.  Apparently some people like living
8243         on the edge.  However, improve the test that "pwd" actually does
8244         report a name for the working directory.
8245         * NEWS: Remove the claim that we test for funny chars in dir names.
8247 2005-07-01  Stepan Kasal  <kasal@ucw.cz>
8249         * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
8250         replaced ...
8251         * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
8252         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
8253         Now accept a single tag, not whitespace separated list.
8254         (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
8256 2005-06-30  Stepan Kasal  <kasal@ucw.cz>
8258         * doc/autoconf.texi (Configuration Headers): Change the explanation
8259         about #include <config.h>.
8260         (Generic Functions): Mention the Gnulib project.
8261         (Limitations of Usual Tools) <sed>: Another minor rephrasing.
8263         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
8264         document to output the default config_* lists to config.status.
8265         Don't recognize option --file, if the functionality is not there.
8266         Likewise for --header; moreover, recognize --he and --h as shortcuts
8267         for --help in that case.
8269         * lib/autoconf/status.m4: Fix the order of the "sections", so that it
8270         matches the order of execution.  No code changed.
8272 2005-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8274         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
8275         single-quoted -cmdline argument in Portland Group compiler.
8276         Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
8278 2005-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
8280         * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
8282 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
8284         * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
8285         descriptors to child processes; reported by Norman Gray.
8287 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
8289         * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
8291         * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
8292         instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
8293         (AC_SUBST): Call it.
8294         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
8295         the directory specific variables; but don't call it for configure_input.
8297 2005-06-28  Derek Price  <derek@ximbiot.com>
8299         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
8300         addition.
8302 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
8304         * NEWS: Don't worry about spaces in bindir etc.  Only srcdir and working
8305         directory have inherent problems with special characters like spaces,
8306         due to limitations in Make syntax.  Problem reported by Alexandre
8307         Duret-Lutz.
8308         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
8309         Also, fix Tru64 porting problem with shell patterns,
8310         reported by Ralf Wildenhues.
8312 2005-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8314         * doc/autoconf.texi (Subdirectories): Fix markup typos.
8316 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
8318         * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
8320         Fix some more shell quoting problems.  Prompted by a bug report
8321         from Justace Clutter.
8322         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
8323         variable into diagnostic.  Make the diagnostic an error, not a warning,
8324         because we really don't support spaces and suchlike in dir names.
8325         (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
8326         Don't worry about backslashes in srcdir; it can't happen now.
8327         (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
8328         Simplify ac_optarg handling.
8329         (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
8331 2005-06-22  Stepan Kasal  <kasal@ucw.cz>
8333         Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
8334         * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
8335         * tests/atlocal.in: Propagate $EGREP and $SED.
8336         * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
8337         (AT_CONFIG_CMP): Use sed instead of grep plumbing.
8339         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
8340         that '\|' is not allowed in BREs; recommend using newline separated
8341         list of patterns instead of multiple -e options.
8343         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
8345         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
8347 2005-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8349         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
8351 2005-06-21  Stepan Kasal  <kasal@ucw.cz>
8353         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
8354         b, t, r, w commands require single space, while : cannot have any.
8355         (Special Shell Variables): Fix sed code this in the example.
8356         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
8357         * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
8359         * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
8360         expand to the empty list.  Don't use two pairs of m4_changequote,
8361         it's not necessary.
8363 2005-06-20  Derek Price  <derek@ximbiot.com>
8365         * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
8367 2005-06-17  Paul Eggert  <eggert@cs.ucla.edu>
8369         * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
8370         * doc/autoconf.texi:
8371         Don't mention Solaris versions so much, if a
8372         problem is common to all extant versions of Solaris.  Say "SunOS
8373         4" instead of "SunOS" for SunOS 4.
8374         (awk): Mention more of the limitations of traditional Awk.
8375         (cat): Don't talk about cat -v.
8377 2005-06-16  Paul Eggert  <eggert@cs.ucla.edu>
8379         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
8380         (AS_VERSION_COMPARE): New macro.  The API is taken from CVS,
8381         but the implementation is entirely different and is designed
8382         to be compatible with glibc strverscmp.
8383         * tests/m4sh.at (AS_VERSION_COMPARE): New test.
8385         * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
8386         on Mac OS X 10.4 reported by Peter O'Gorman in:
8387         http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
8388         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
8389         Use shell builtins rather than 'expr', to work around expr bug.
8391 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
8393         * doc/autoconf.texi: "filesystem" -> "file system".
8394         "behaviour" -> "behavior".
8395         Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
8396         * lib/autoconf/general.m4: Omit blank after ":" sed command,
8397         as per POSIX.
8398         * lib/m4sugar/m4sh.m4: Likewise.
8399         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
8400         with Solaris sed.  Fix by Ralf Menzel and Stepan Kasal.
8402         * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
8403         (.x.1): Ignore the time stamp in the .TH line when deciding whether
8404         to update the man page.  That way, we don't have to check in new
8405         man pages every month.
8407         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
8408         quotes and backslashes.  Patch from Derek Price.
8410 2005-06-10  Derek Price  <derek@ximbiot.com>
8412         * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
8413         AS_TR_SH.
8415 2005-06-08  Paul Eggert  <eggert@cs.ucla.edu>
8417         * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
8418         -u, since it outputs chatter if the input files are the same.
8419         Problem reported by Ralf Menzel.
8421 2005-06-08  Derek Price  <derek@ximbiot.com>
8423         * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
8424         renaming them since they are about to be redefined anyhow.
8426 2005-06-08  Derek Price  <derek@ximbiot.com>
8428         * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
8429         redefined M4 macros to this node.  Document m4_include & m4_sinclude.
8430         Move m4_undefine to alphabetical order.
8432 2005-06-07  Paul Eggert  <eggert@cs.ucla.edu>
8434         * README: Recommend GNU M4 1.4.3 or later.
8435         * doc/autoconf.texi (Introduction): Likewise.
8436         Reword to avoid some formatting glitches.
8437         Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
8438         Clarify explanation of HP compiler bug.
8439         Redo example output tp match current CVS snapshot.
8440         Use @example.org in email addresses when the examples
8441         might get inadvertently cut-and-pasted into user code.
8442         Remove example of autom4te usage that doesn't seem to work now.
8443         Use modern AC_INIT (except when the example is meant to be
8444         shown with Autoconf 2.13).
8445         Update ksh info for Solaris 9 and later.
8446         KB -> kB.
8447         Modernize description of Automake versions a bit.
8448         Don't claim a future version of Autoconf is near.
8449         * doc/install.texi: Reword to avoid some formatting glitches.
8451 2005-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8453         * doc/autoconf.texi: Add [] to examples, so that the manual
8454         follows its own advice about quoting better.
8455         Reword to avoid some formatting glitches.
8456         * doc/installt.exi: Reword to avoid some formatting glitches.
8458         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
8459         Tru64 ksh pattern matching bug.  Reported against Libtool by
8460         Albert Chin <libtool@mlists.thewrittenword.com> and
8461         Nicolas Joly <njoly@pasteur.fr>.
8463 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
8465         m4_cdr of one-member list was [[]] (one-member list containing an
8466         empty string) instead of [] (an empty list.  Callers were skewed to
8467         match this misbehaviour.  As a consequence of this:
8468          - m4_foreach([x], [], [foo]) expanded to `foo', while
8469          - the expansion of m4_foreach([x], [[]], [foo]) was empty.
8470         This bug has been fixed:
8472         * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
8473           expand to an empty string; print error msg if called without
8474           an argument list.
8475         (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
8476           misbehaviour; handle [] and [[]] correctly.
8478 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
8480         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
8481         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
8482           scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
8484 2005-06-06  Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>  (trivial change)
8486         * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
8487           swallow records with more than 99 fields.
8488         * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
8489           parse the long line.
8491 2005-06-04  Stepan Kasal  <kasal@ucw.cz>
8493         * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
8494           swallow literals longer than 399.  Reported by Ralf Wildenhues.
8495         * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
8496           to workaround this limitation.
8498 2005-06-03  Steven G. Johnson  <stevenj@alum.mit.edu>
8500         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
8501         to gfortran, and make these the first two compiler names
8502         checked (following the general autoconf preference for gcc).
8504 2005-06-03  Stepan Kasal  <kasal@ucw.cz>
8506         * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
8507         (DISTCLEANFILES): Remove $(check_SCRIPTS).
8508         (testsuite): Make sure autotest.m4f is up-to-date before using it.
8510 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
8512         * lib/autotest/general.m4 (AT_INIT): Don't create a regular
8513         expression of unbounded size when processing the --list
8514         option.  This runs afoul of a limit of 399 bytes per regular
8515         expression on AIX.  Problem reported by Ralf Wildenhues.
8517 2005-06-01  Paul Eggert  <eggert@cs.ucla.edu>
8519         * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
8520         * doc/autoconf.texi (Particular Headers): Reword example
8521         for multiline stdbool replacement.
8522         (Setting Output Variables): Reword text a bit.  Don't
8523         give all the details about |#_!!_#|.
8524         Reword description of line replacement.
8526 2005-05-31  Dan Manthey  <dan_manthey@partech.com>
8528         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
8529         now contain newlines, and substituted files must be referenced on
8530         a line alone; the sed scripts to substitute them are now very
8531         different.
8532         (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
8533         commands can be put in a sed script portably.
8534         * doc/autoconf.texi (Setting Output Variables): Document above
8535         changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
8536         use of multiline substitution.
8537         * tests/torture.at: No longer expect substitution of newline to fail.
8539 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
8541         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
8542         From Ralf Menzel (trivial change).
8544 2005-05-25  Paul Eggert  <eggert@cs.ucla.edu>
8546         * tests/local.at: Don't attempt to check for negated character
8547         classes in shell scripts.  The test was too brittle.
8549 2005-05-25  Stepan Kasal  <kasal@ucw.cz>
8551         * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
8552         * doc/autoconf.texi (Limitations of Builtins): Document this
8553           limitation.
8555 2005-05-24  Stepan Kasal  <kasal@ucw.cz>
8557         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
8558           common code; used in many places in the tree.
8559         (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
8560         (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
8562         * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
8564         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
8565           messages when ac_unique_file is not found.
8566         (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
8567         (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
8568           commands, for consistency with AC_MSG_ERROR and such.
8570         * bin/autoconf.as: Make more use of "shift 2" in option processing.
8572         * bin/Makefile.am: Merge the two rules for creating scripts.
8574 2005-05-23  Stepan Kasal  <kasal@ucw.cz>
8576         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
8577         obsolete; it was never documented.
8578         (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
8580 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
8582         * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
8583         * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
8584         (ac_top_builddir): ... this ...
8585         (ac_top_build_prefix): ... to this; the old name is also kept, for
8586           backward compatibility.
8587         (ac_top_builddir_sub): New variable, without the trailing slash,
8588           always nonempty.
8589         (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
8590         * doc/autoconf.texi (Configuration Actions): Rename
8591           ac_top_builddir to ac_top_build_prefix.
8592         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
8593           at_top_builddir to at_top_build_prefix.
8594         * lib/autotest/general.m4 (AT_INIT): Likewise.
8596 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
8598         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
8599           of confdefs.h .
8601 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
8603         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
8604           argument to m4_foreach.  I guess it was necessary in the past,
8605           but I think it's a no-op now.
8607 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
8609         * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
8610           ``cat <<_ACEOF'' commands to one.
8611         (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
8612         * lib/autoconf/status.m4: On various places, use expr instead of
8613           ``echo|sed.''
8614         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
8615         (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
8616         * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
8617           a range.
8618         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
8619           the wrong patterns between ``case'' and ``esac.''  The previous
8620           code had false positives.
8622 2005-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
8624         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
8625         as on 2005-05-02.
8626         * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
8627         Mention LIBOBJDIR.
8629 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
8631         * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
8632         ChangeLog.2, GNUmakefile, Makefile.am, Makefile.cfg,
8633         Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
8634         bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
8635         bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
8636         bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
8637         config/config.guess, config/config.sub, config/elisp-comp,
8638         config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
8639         doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
8640         lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
8641         lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
8642         lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
8643         lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
8644         lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
8645         lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
8646         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
8647         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
8648         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
8649         lib/autoconf/general.m4, lib/autoconf/headers.m4,
8650         lib/autoconf/lang.m4, lib/autoconf/libs.m4,
8651         lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
8652         lib/autoconf/specific.m4, lib/autoconf/status.m4,
8653         lib/autoconf/types.m4, lib/autoscan/Makefile.am,
8654         lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
8655         lib/autotest/Makefile.am, lib/autotest/autotest.m4,
8656         lib/autotest/general.m4, lib/emacs/Makefile.am,
8657         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
8658         lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
8659         lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
8660         tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
8661         tests/compile.at, tests/foreign.at, tests/fortran.at,
8662         tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
8663         tests/semantics.at, tests/suite.at, tests/tools.at,
8664         tests/torture.at, tests/wrapper.as:
8665         Update FSF postal mail address.
8667 2005-05-13  Stepan Kasal  <kasal@ucw.cz>
8669         * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
8670           check.
8671         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
8672           enough arguments, similarly as in m4_bpatsubsts.
8674 2005-05-12  Stepan Kasal  <kasal@ucw.cz>
8676         * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
8677           of absolute paths.
8679 2005-05-11  Stepan Kasal  <kasal@ucw.cz>
8681         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
8682           for absolute directory names in one loop.
8683         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
8684           abbreviations of --version and --debug.
8686 2005-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8688         * doc/autoconf.texi (Autoconf Language): Be more precise about
8689         quoting rules.  Problems noted by Stepan Kasal.
8690         Also, throughout this document, be more careful about white space.
8691         "blank", "white space", and "space" all have different meanings
8692         and we should be careful to say what we mean.
8694 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8696         Fix C++ related problems reported by Werner Lemberg.
8697         * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
8698         * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
8699         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
8700         avoid problems with C++ and throw.
8701         * tests/compile.at: .cpp, not .cc.
8703         * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
8705 2005-05-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8707         * doc/autoconf.texi (Generic Functions): Typos.
8709 2005-05-02  Gary V. Vaughan  <gary@gnu.org>
8711         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
8712         object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
8713         set by latest automake.
8715 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
8717         * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
8718         outputs 0 on GNU/Linux these days.
8720 2005-04-29  Paul Eggert  <eggert@cs.ucla.edu>
8722         * doc/autoconf.texi (Autoconf Language): Add more description
8723         about quoting heuristics.
8724         (Limitations of Builtins): Describe "set -" problems.
8726 2005-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8728         * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
8729         not newline.
8731         * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
8732         by AC_DEFINE; it was a mistake.
8733         From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
8735 2005-04-25  Stepan Kasal  <kasal@ucw.cz>
8737         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
8739 2005-04-22  Stepan Kasal  <kasal@ucw.cz>
8741         * doc/autoconf.texi (External Software): Quadrigraphs are not
8742           processed correctly in AS_HELP_STRING; avoid this in the examples.
8743         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
8744         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
8745           comment and reduce m4_default([foo], []) to [foo].
8746         (m4_strip): Update the explanation.
8748 2005-04-19  Paul Eggert  <eggert@cs.ucla.edu>
8750         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
8751         Remove core.conftest.* too; it's generated by Tru64 5.1.
8752         Problem reported by Jennis Pruett.
8753         * lib/autoconf/functions.m4
8754         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
8755         Don't bother to remove core files; AC_RUN_IFELSE should do that
8756         for you.
8758 2005-04-19  Stepan Kasal  <kasal@ucw.cz>
8760         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
8762 2005-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
8764         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
8765         Report from Horst Wente.
8767 2005-04-15  Stepan Kasal  <kasal@ucw.cz>
8769         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
8770           the comment.
8772 2005-04-14  Gregorio Guidi  <greg_g@gentoo.org>
8774         * doc/autoconf.texi (External Software, Package Options): Add
8775           examples showing how to implement --with-* and --enable-* options.
8777 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
8779         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
8780         as well as configure.in.  Problem reported by Gregorio Guidi.
8782 2005-04-10  Paul Eggert  <eggert@cs.ucla.edu>
8784         * doc/autoconf.texi (Particular Functions): Use gnulib's current
8785         pattern for alloca snippet.
8787 2005-04-04  Stepan Kasal  <kasal@ucw.cz>
8789         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
8791 2005-04-01  Stepan Kasal  <kasal@ucw.cz>
8793         * doc/autoconf.texi (Generic Programs): Fix a typo.
8795 2005-04-01  Paul Eggert  <eggert@cs.ucla.edu>
8797         * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
8798         fails if %s isn't supported.  Problem reported by Ralf Wildenhues.
8800 2005-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8802         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
8803         Merge `-z option' as well for the benefit of Solaris link flags.  Pass
8804         whole-archive (-zallextract, -zdefaultextract) options in the hope of
8805         unique libraries, for the Sun Fortran 95 8.0 compiler.  Bug reported
8806         against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
8808 2005-03-22  Paul Eggert  <eggert@cs.ucla.edu>
8810         * NEWS: The configure command now warns you if you attempt to use
8811         a directory whose name contains a special character like space,
8812         newline, or "\".
8813         * doc/autoconf.texi (Installation Directory Variables): Allow
8814         "," in file names.  Do not use \@; it's not a portable regexp.
8815         * bin/Makefile.am (edit): Likewise.
8816         * lib/Makefile.am (edit): Likewise.
8817         * tests/Makefile.am (edit): Likewise.
8818         * tests/semantics.at: Likewise.
8819         * tests/torture.at: Likewise.
8820         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
8821         * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
8822         * doc/autoconf.texi (File System Conventions): Warn about
8823         unportable file names.
8824         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
8825         (AC_INIT): Use it.
8826         (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
8827         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
8828         ac_pwd, and quote srcdir.
8829         * lib/autotest/general.m4 (AT_INIT): Quote file name args.
8831         * doc/autoconf.texi: Fix some systematic formatting problems.
8832         ".)"  needs a following @: if not at the end of a sentence, and
8833         similarly for "!)".  "etc." should be preceded by a comma.
8834         "n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
8836 2005-03-22  Bruno Haible  <bruno@clisp.org>
8838         * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
8839         argument is often called 'build-aux'.
8841 2005-03-07  Stepan Kasal  <kasal@ucw.cz>
8843         * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
8844           macro AC_TRY_LINK is obsolete.
8845         (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
8846           `AC_CONFIG_FILES'.
8848 2005-02-24  Stepan Kasal  <kasal@ucw.cz>
8850         * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
8851           `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
8852           from a Common Lisp's `cl'.
8853         (AC_PROG_CXX): Behave according to the documentation: don't
8854           search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
8855           make the variable CCC precious; use `cl.exe', not `cl'.
8857 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
8858             Alexandre Duret-Lutz  <adl@gnu.org>
8860         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
8861         /dev/null, as "configure" shouldn't read stdin, and this insulates
8862         us from problems (e.g., when testing for "cl").  Also, do this
8863         redirection before invoking "hostname" or "uname", and keep the
8864         original input stream available via...
8865         (AS_ORIGINAL_STDIN_FD): ... this new macro.
8866         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
8867         bother with "</dev/null" since it's now done at the top of
8868         'configure'.
8869         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
8870         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
8871         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
8872         * doc/autoconf.texi (File Descriptor Macros): New section.
8873         (Printing Messages): Mention it.
8874         * tests/base.at (Input/Output): New test.
8876 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
8878         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
8879         newline if neither \c nor -n work, as that would output two
8880         newlines.  Prefer -n to \c.  Reported by Stepan Kasal.
8882 2005-02-12  Stepan Kasal  <kasal@ucw.cz>
8884         * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
8885         This causes that any required macros inside will get before the if.
8886         * doc/autoconf.texi (autom4te.cache): A typo.
8888 2005-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8890         Undo previous change, except keep the change to
8891         lib/autoconf/programs.m4 that replaced grep with shell
8892         pattern-matching.  This is because net-snmp configure reads stdin.
8893         Reported by Noah Misch.
8895 2005-02-11  Paul Eggert  <eggert@cs.ucla.edu>
8897         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
8898         from /dev/null, as "configure" shouldn't read stdin, and this
8899         insulates us from problems (e.g., when testing for "cl").
8900         Suggested by Alexandre Duret-Lutz.  Also, do this redirection
8901         before invoking "hostname" or "uname".
8902         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
8903         _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
8904         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
8905         "</dev/null" since it's now done at the top of 'configure'.
8906         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
8907         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
8908         Also, replace grep with shell pattern-matching, to save a process.
8910 2005-02-10  Paul Eggert  <eggert@cs.ucla.edu>
8912         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
8913         _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
8914         avoid thinking that Allegro Common Lisp's "cl" command is a C++
8915         compiler.
8917 2005-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8919         * doc/autoconf.texi (Limitations of Usual Tools): Document that
8920         grep -q isn't portable.  Improve grep -s explanation.
8921         Problem reported by Dan Manthey.
8923 2005-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8925         * doc/autoconf.texi (Special Shell Variables): Clarify
8926         PATH_SEPARATOR wording; fix typo in IFS.  Reported by Gary V. Vaughan.
8928 2005-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8930         * doc/autoconf.texi: Use @acronym for DJGPP.
8931         Fix some @code's that should have been @env's, and vice versa.
8932         Sort environment variable names.
8933         Mention that shells no longer inherit IFS.
8934         Don't recommend PATH_SEPARATOR=';' so strongly.
8935         Mention that $RANDOM might expand to the empty string.
8936         "symlink" and "soft link" -> "symbolic link".
8937         Improve mktemp description (reported by Bruno Haible).
8939 2005-02-05  Paul Eggert  <eggert@cs.ucla.edu>
8941         * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
8942         * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
8943         Likewise.
8944         * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
8945         Likewise.
8947 2005-02-04  Paul Eggert  <eggert@cs.ucla.edu>
8949         * NEWS: Mention AT_COPYRIGHT.
8951         * tests/local.at (AT_CMP): Use diff directly on input files rather
8952         than copying them.
8954         * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
8955         /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
8957 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
8958         and Paul Eggert  <eggert@cs.ucla.edu>
8960         * tests/autotest.at (Empty test suite): New test.
8961         * tests/torture.at (Substitute and define special characters)
8962         (Substitute a 2000-byte string, Define to a 2000-byte string)
8963         (Substitute a newline, Define a newline): New tests.
8965 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
8967         * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
8968         * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
8969         (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
8970         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
8971         (Standard regular expressions): New test.
8972         (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
8973         excess test name quoting.
8974         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
8975         CPPFLAGS to `configure' instead of setting it in `configure'.
8977         * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
8978         any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
8979         on some platforms.
8981         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
8982         s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
8984         * tests/local.at (AT_CMP): New macro.
8985         (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
8986         (AC_SAVE_STATE): Move environment grep...
8987         (AT_CHECK_ENV): to here.  Filter out `'$''.  Use AT_CMP.
8988         (AT_CONFIG_CMP): New macro.
8989         (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
8990         * tests/c.at (Extensions): Do not exit early.
8991         * tests/atlocal.in: Inherit $GREP.
8993         * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
8994         (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
8996         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
8997         (AC_COPYRIGHT): Factor header comment portion out and move into...
8998         * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
8999         * lib/autotest/general.at (AT_COPYRIGHT): New macro.
9000         (AT_INIT): Add Autotest copyright notice.  Display copyright notices in
9001         --version output.
9002         * tests/local.at: Add Autoconf test suite copyright notice.
9003         * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
9005 2005-02-04  Bruno Haible  <bruno@clisp.org>
9006         and Paul Eggert  <eggert@cs.ucla.edu>
9008         * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
9010 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
9012         * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
9013         this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
9015         Try not to generated lines of unlimited length, as POSIX places a
9016         2047-byte limit on line length of portable text files.
9017         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
9018         Use newline as a separator, not space.
9019         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
9020         (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
9021         space.
9023 2005-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9025         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
9026         as_func_*.  Add test to check whether positional parameters
9027         are restored after function return.
9029 2005-02-02  Paul Eggert  <eggert@cs.ucla.edu>
9031         * doc/autoconf.texi (Special Shell Variables): Mention _,
9032         BIN_SH, DUALCASE.  Say that variables other than "status" are safe
9033         if they contain a lower-case letter.  The DUALCASE problem was
9034         reported by Ralf Wildenhues.
9036         * bin/autoconf.as: Don't exit with status 0 after write failure
9037         with --help or --version.
9038         * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
9039         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
9041 2005-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9043         * doc/autoconf.texi (Limitations of Usual Tools):
9044         Unicos 9 sed limitations.
9045         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
9046         to get the option-enhanced interface on older Crays.  Try ftn for
9047         Fortran 95 (newer Crays).
9049 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
9051         * man/Makefile.am (.x.1): Go back to the simple solution, but take
9052         care to echo the commands, so the user knows what's going on.
9053         Modified from a suggestion by Stepan Kasal.
9055         * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
9056         with a cross reference.  Derived from a suggestion by Bruce Korb.
9058 2005-01-31  Paul Eggert  <eggert@cs.ucla.edu>
9060         * doc/autoconf.texi (config.status Invocation): Warn about
9061         discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
9062         * doc/install.texi (Defining Variables): Likewise.
9063         Based on a proposed patch by Ralf Wildenhues.
9065         * man/Makefile.am (.x.1): Make sure the required generated files
9066         are up to date.  Problem and original solution proposed by Stepan Kasal.
9067         $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
9068         implicit-man-prerequisites): New rules, used by the above.
9070         * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
9071         * config/config.guess, config/config.sub, config/install-sh: Likewise.
9072         * config/missing, config/texinfo.tex: Likewise.
9074 2005-01-29  Stepan Kasal  <kasal@ucw.cz>
9076         Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
9077         Update the long comment explaining it.
9079         m4_require no longer writes an ``is required by'' line to the
9080         execution stack.  It contains only one bit of non-redundant
9081         information: that the macro was required, not called.  And even
9082         this bit is useless in most situations: have you ever met a macro
9083         which both calls and requires the same macro?
9085         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
9086         (_m4_defun_pro_outer): ... only via this macro, for the outermost
9087           macro.
9088         (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
9089         (m4_expansion_stack_pop): Remove the misplaced comment.
9090         (m4_require): Don't put the ``is required by'' line to the
9091           execution stack; slightly improve the out-of-a-defun error message.
9092         (_m4_divert_grow): New macro, counter for the temporary diversions.
9093         (_m4_require_call): Use it.
9094         * tests/m4sugar.at (m4_require): Expect output without the
9095           ``is required by'' messages.
9097 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9099         * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
9100         rather than x for expr.
9102         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
9103         this is safe.
9104         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
9105         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
9106         * lib/autotest/general.m4 (AT_INIT): Likewise.
9107         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
9108         * tests/mktests.sh: Likewise.
9110 2005-01-27  Akim Demaille  <akim@epita.fr>
9112         Have autoheader honor --force.
9114         * doc/make-stds.texi, doc/standards.texi: Update from masters.
9115         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
9116         * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
9117         from masters, so that FileUtils.pm's update_file provide --force
9118         support.
9119         * bin/autoheader.in: Pass $force to update_file so that
9120         config.h.in is always recreated when --force.
9122 2005-01-24  Stepan Kasal  <kasal@ucw.cz>
9124         * doc/autoconf.texi (Introduction): Update Peter Simons' address.
9126 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9128         * doc/autoconf.texi (Limitations of Builtins): Clarify that
9129         "if test ! -d foo; ..." is portable.  Suggested by Stepan Kasal.
9131 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
9133         * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
9134         Warn about newline stripping in `` and $().  Update Solaris
9135         version to 9.
9136         (Limitations of Builtins): Use expr "X...", not expr "x...", as
9137         X insulates us from future changes to Posix.
9138         (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
9139         stripping.
9141 2005-01-19  Stepan Kasal  <kasal@ucw.cz>
9143         * doc/autoconf.texi (Defining Symbols): Delete the false comment that
9144           you cannot use AC_DEFINE to define macros containing `[' or `]'.
9146 2005-01-13  Paul Eggert  <eggert@cs.ucla.edu>
9148         * doc/autoconf.texi (Limitations of Usual Tools): Document bug
9149         in Solaris 8 join.  Problem reported by Tomohiro Suzuki on
9150         bug-tar mailing list.
9152 2005-01-05  Stepan Kasal  <kasal@ucw.cz>
9154         * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
9156 2005-01-05  Paul Eggert  <eggert@cs.ucla.edu>
9158         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
9159         ulongval to be static, to avoid unwanted GCC warning.  Problem
9160         reported by Michael Jennings via Daniel Reed; see
9161         <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
9163 2005-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
9165         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
9166         docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
9167         datadir, infodir, and mandir.  Adjust argument parsing code.
9168         (_AC_INIT_HELP): Update help text.
9169         * doc/autoconf.texi (Installation Directory Variables): Document
9170         new variables.
9172 2005-01-04  Noah Misch  <noah@cs.caltech.edu>
9174         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
9175         not seem to work, assume it does set $(MAKE).
9176         * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
9178 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
9180         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
9182 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
9184         A cleanup of the diversion support in m4sugar.
9186         * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
9187         (_m4_divert_n_stack): New macro; the expansion is
9188           <newline>m4_divert_stack, if m4_divert_stack is defined, and void
9189           otherwise.
9190         (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
9191         (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
9192           stored in _m4_divert_diversion or _m4_divert_dump.
9193         (m4_divert_pop): When the parameter is given, compare the symbolic
9194           name with the last diversion pushed on the stack.  Previously, the
9195           current diversion was compared with the numeric value of the
9196           diversion given as the parameter.
9197         (m4_require): If the macro hasn't been expanded yet, call ...
9198         (_m4_require_call): this new macro.
9200 2005-01-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9202         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
9203         Workarounds for documented `case' limitations.
9205 2005-01-03  Paul Eggert  <eggert@cs.ucla.edu>
9207         * doc/autoconf.texi (Limitations of Usual Tools): Warn about
9208         sed 'command1;command2'.  Problem reported by Ralf Wildenhues.
9210 2005-01-02  Paul Eggert  <eggert@cs.ucla.edu>
9212         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
9213         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
9214         bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
9216         Patch from Roger Leigh (with some minor changes) as follows:
9217         * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
9218         Resurrect AC_PROG_CC_STDC.
9219         * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
9220         AC_PROG_CC_C89, AC_PROG_CC_C99.
9221         (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
9222         * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
9223         AC_PROG_CC_C99): New macros.
9224         (AC_PROG_CC_STDC): Use them.
9225         (_AC_PROG_CC_STDC): Remove.
9226         (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
9227         * THANKS: Add Roger Leigh.
9229 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
9231         * bin/autoreconf.in (autoreconf_current_directory):  AM_INIT_AUTOMAKE
9232         signals that the package uses Automake; a `Makefile.am' is typical but
9233         not essential.  Reported by Magnus Therning.
9234         * tests/torture.at (autoreconf.): New banner.
9235         (autoreconf and non-AC configure): Rename to `Non-Autoconf
9236         AC_CONFIG_SUBDIRS'.
9237         (autoreconf an empty directory): Rename to `Empty directory'.
9238         (Unusual Automake input files): New test.
9240 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
9242         * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
9243         (AT_SETUP): Clear AT_capture_files.
9244         (_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
9245         (AT_KEYWORDS): Fix comment typo.
9246         * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
9247         * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
9248         * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
9250 2004-12-29  Albert Chin-A-Young  <china@thewrittenword.com>
9252         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
9253         If the variable to set is already set, set ac_cv_path_$1
9254         to the preset value so caller can assume ac_cv_path_$1
9255         is available.  (trivial change)
9257 2004-12-27  Noah Misch  <noah@cs.caltech.edu>
9259         * BUGS (Minor Problems): Warn about makefile limitations.
9260         * Makefile.am: Find and update `INSTALL' in $(srcdir).
9261         * man/Makefile.am: Find and update manual pages in $(srcdir).
9263 2004-12-24  Eric Blake  <ebb9@byu.net>
9265         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
9266         shells in subshell, to avoid noise from ash.  (trivial change)
9268 2004-12-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9270         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
9271         problems with SunOS ksh and backslash escaping, Bourne shells and
9272         closing brackets (both within character classes).  Bug reported
9273         against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
9274         <read>: New entry.  Mention non-availability of -r.
9276 2004-12-21  Akim Demaille  <akim@epita.fr>
9278         * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
9279         avoid cluttering displayed messages.  Rather, prepend srcdir where
9280         AT_LINE is used for log files.
9282 2004-12-21  Stepan Kasal  <kasal@ucw.cz>
9284         * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
9285         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
9286           no longer part of the macro, quote the occurrence of ``$tmp''.
9287         * doc/autoconf.texi (Forbidden Patterns): Typo.
9289 2004-12-21  Akim Demaille  <akim@epita.fr>
9291         * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
9292         separated from the test title by forcing a white space.
9294 2004-12-21  Akim Demaille  <akim@epita.fr>
9296         Enable Emacs navigation within testsuite.log files.
9298         * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
9299         use the compilation mode.
9300         (AT_LINE): Point to the srcdir.
9302 2004-12-19  Noah Misch  <noah@cs.caltech.edu>
9304         * tests/Makefile.am (installcheck-local): Use $(bindir).
9305         (check-local, installcheck-local): Pass TESTSUITEFLAGS.
9306         * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
9307         Makefile.am scheme Autoconf now uses.
9309 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
9311         * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
9312         * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
9314 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
9316         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
9317         (_AT_CHECK): Use it.
9318         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
9319         (AS_ESCAPE): Fix comment.
9320         * tests/autotest.at: Adjust section banner comments.
9321         (AT_CHECK_AT): Accept STATUS and STDERR.
9322         (AT_CHECK_AT_TEST): Likewise.
9323         (Invalid brace-enclosed parameter expansion)
9324         (Multiline command from M4 expansion)
9325         (Double-M4-quoted command): New tests.
9327 2004-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9329         * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
9331 2004-12-17  Akim Demaille  <akim@epita.fr>
9333         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
9334         m4_pattern_allow.
9335         Suggested by Alexandre Duret-Lutz.
9336         * doc/autoconf.texi (Setting Output Variables): Catch up.
9338 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
9340         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
9342 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
9344         * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
9345           remove the comment which said we cannot.
9347 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
9349         Add a specialized check for resolv.h.  Thanks to Gerrit P. Haase,
9350         Reini Urban and Paul Eggert for reporting the dependencies.
9352         * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
9353         * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
9354         (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
9356 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
9358         * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
9359           so that eg. ``autoscan --help'' doesn't truncate it.
9361 2004-12-15  Nicolas Joly  <njoly@pasteur.fr>
9363         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
9364         generated conftest files.
9366 2004-12-13  Noah Misch  <noah@cs.caltech.edu>
9368         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
9369         tracing on commands with possibly-escaped newlines.
9370         * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
9371         discontinued behavior and its implications.
9372         * tests/autotest.at (BS-newline in command, ^BS-newline in command)
9373         (BSx641-newline in command, BS-BS-newline in command)
9374         (BSx640-newline in command, Newline-CODE-BS-newline in command)
9375         (Single-quote-BS-newline in command)
9376         (Single-quote-newline-BS-newline in command): New tests.
9378 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
9380         * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
9381           on platforms where it works.
9382         (_AS_TEST_PREPARE): Test for ``test -x''.
9383         (_AS_BROKEN_TEST_PREPARE): Nuke.
9385 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
9387         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
9388         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
9389           give only 4-letter prefix to AS_TMPDIR, comment fixed.
9390         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
9391           create the temporary directory.
9392         (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
9394 2004-12-12  Kelley Cook  <kcook@gcc.gnu.org>
9396         * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
9397         (trivial change)
9399 2004-12-12  Alexandre Duret-Lutz  <adl@gnu.org>
9401         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
9403 2004-12-11  Noah Misch  <noah@cs.caltech.edu>
9405         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
9406         to avoid using a negated character class.  Reported by Nicolas Joly.
9407         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
9409 2004-12-10  Paul Eggert  <eggert@cs.ucla.edu>
9411         * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
9412         autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
9413         Don't depend on .x file explicitly, since "make" does that for us.
9414         Suggested by Stepan Kasal.
9416         * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
9417         Add *.tmp.
9418         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
9419         ifnames): Factor common code.  And they said it couldn't be done!
9421 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
9423         * bin/.cvsignore: Add autoconf.in.
9424         * tests/.cvsignore: Add wrapper.in.
9425         * lib/autotest/general.m4: Escape '$' in case pattern.
9427 2004-12-09  Noah Misch  <noah@cs.caltech.edu>
9429         * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
9431         * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
9433         * tests/autotest.at: New file.
9434         * tests/suite.at: Include it.
9435         * tests/Makefile.am: Distribute it.
9437         * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
9438           shell tracing on a command that could contain multiple lines.
9439         * doc/autoconf.text: Document that fact and its implications.
9440         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
9441         * tests/autotest.at (Multiline backquote command substitution,
9442           Multiline parameter expansion, Literal multiline command,
9443           Multiline parenthetical command substitution): Remove XFAIL.
9445 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
9447         * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
9448         and suggest AC_SEARCH_LIBS.  Suggested by Noah Misch and Stepan Kasal.
9450 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
9452         * configure.ac (test suite): Cease to generate wrapper scripts.
9453         * configure: Regenerate.
9454         * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
9455         (m4f_dependencies): Adjust accordingly.
9456         * tests/Makefile.am (Wrappers): Generate wrapper scripts.
9457         (wrapper.in): Generate it in the build directory.
9458         (MAINTAINERCLEANFILES): Delete wrapper.in.
9459         (CLEANFILES): Add wrapper.in.
9460         * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
9461         the output.  Replace each $as_me with a @wrap_program@.
9462         * tests/wrapper.in: Delete it; we always build it.
9464         * bin/Makefile.am (autoconf.in): Generate it in the build directory.
9465         (EXTRA_DIST): Remove autoconf.in.
9466         (CLEANFILES): Add autoconf.in.
9467         (autoconf): Find autoconf.in in the build directory.
9468         * bin/autoconf.in: Delete it; we always build it.
9470 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
9472         * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'.  Join
9473         PATH members so as to not prepend an empty element.  Move a comment.
9474         * Makefile.am (SUBDIRS): Build in `tests' last.
9475         * tests/Makefile.am (installcheck-local): Add check-local dependencies.
9477 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
9479         * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
9480         the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
9481         <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
9482         Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
9484 2004-12-07  Stepan Kasal  <kasal@ucw.cz>
9486         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
9487         patch: extra "-l"s.
9489 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
9491         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
9492         looking elsewhere for getmntent.  Problem reported by Mark D. Baushke.
9493         * doc/autoconf.texi (Particular Functions): Mention new behavior.
9495 2004-12-03  Stepan Kasal  <kasal@ucw.cz>
9497         * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
9498           out the common code to ...
9499         (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
9500           value of the #define--default to 1, iff the macro was called
9501           with exactly one parameter.
9503 2004-12-02  Paul Eggert  <eggert@cs.ucla.edu>
9505         * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
9506         "char c = '\200';" rather than "char c = 0x80;" as the
9507         latter doesn't conform to the strict C standard due to
9508         overflow on signed char hosts.
9510         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
9511         to -qlanglvl=ansi.  We don't want to disable extensions.
9513 2004-11-29  Paul Eggert  <eggert@cs.ucla.edu>
9515         * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
9516         (Using Autotest, testsuite Scripts, Writing testsuite.at):
9517         Reword slightly to avoid some English-language problems noted
9518         by Ralf Wildenhues in:
9519         http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
9521 2004-11-29  Stepan Kasal  <kasal@ucw.cz>
9523         * NEWS: Add ^L above each release.
9525 2004-11-28  Paul Eggert  <eggert@cs.ucla.edu>
9527         Fix documentation problems reported by Russ Boylan in
9528         <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
9529         along with some nearby cruft.
9530         * doc/autoconf.texi (Libtool): Libtool can be used without
9531         Automake (not without Autoconf).
9532         (Introduction): Mention lists.gnu.org.
9533         * BUGS: Don't mention bugs.gnu.org.
9534         Remove mention of ancient libtool compatibility problem.
9535         * NEWS: Mention that bugs.gnu.org is kaput.
9536         * README: Likewise.  Mention where mailing list archives can be found.
9538 2004-11-28  Stepan Kasal  <kasal@ucw.cz>
9540         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
9542 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
9544         * doc/autoconf.texi (Pretty Help Strings): Go back to
9545         single-quoting assignments to cache variables.
9547 2004-11-23  Stepan Kasal  <kasal@ucw.cz>
9549         * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
9550         with the examples; fix the bug in MY_ARG_WITH example reported
9551         by Alexandre Duret-Lutz.
9552         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
9553         expansion of $1 in the comment emitted to configure.
9555 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
9557         * doc/autoconf.texi (Pretty Help Strings): Fix typo
9558         in my editing of the previous patch.  Problem reported
9559         by Alexandre Duret-Lutz.
9561 2004-11-22  Stepan Kasal  <kasal@ucw.cz>
9563         * doc/autoconf.texi (Autoconf Language): Explain that
9564         ``descriptions'' may not be double quotes.
9565         (Quotation Rule Of Thumb): Likewise.
9566         (Pretty Help Strings): Likewise; remove the wrong comment;
9567         simplify the examples and improve their quoting.
9569 2004-11-13  Stepan Kasal  <kasal@ucw.cz>
9571         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
9572         the $1_found variable, don't test whether the file is executable;
9573         Both things are checked ...
9574         (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
9575         the former ``test -f''.
9576         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
9578 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9580         * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
9581         use cp -R instead.
9583 2004-11-10  Derek R. Price  <derek@ximbiot.com>
9585         * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
9586         limitations.  Reorder paragraphs for clarity.
9588 2004-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9590         * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
9591         to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
9592         variants", "Unix", and some related minor wording fixups.
9594         (Shellology, Special Shell Variables): Document that the Zsh
9595         problem with NULLCMD was fixed in zsh 3.1.6-dev-18.  Thanks
9596         to Alexandre Duret-Lutz for this info.
9598 2004-10-10  Alexandre Duret-Lutz  <adl@gnu.org>
9600         * doc/autoconf.texi (One-Shot Macros): New node.
9602 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
9604         * doc/autoconf.texi (Function Portability): Fix misdescription
9605         of putenv.  Problem reported by Michael Wardle.
9607 2004-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9609         * doc/autoconf.texi (auindex): New macro.
9610         (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
9611         Problem reported by Stepan Kasal.
9613 2004-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9615         Fix problems reported by Andreas Buening in:
9616         http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
9617         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
9618         in test makefile.
9619         * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
9620         readable; it's not true in OS/2-emx.
9622 2004-09-04  Paul Eggert  <eggert@cs.ucla.edu>
9624         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
9625         "/usr/include", clear ac_x_includes instead of leaving it as "no"
9626         (trivial change).  Problem and patch reported by Andrew Church in:
9627         http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
9629 2004-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9631         * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
9632         three args in examples.  Problem reported by Frederik Fouvry in:
9633         http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
9634         Also, fix some minor spacing and punctuation bugs.
9636 2004-09-02  Akim Demaille  <akim@epita.fr>
9638         * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
9639         "case" to restore ordering.
9640         Reported by Stepan Kasal.
9642 2004-08-26  Akim Demaille  <akim@epita.fr>
9644         * doc/autoconf.texi: Minor typos and stylos.
9646 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
9648         * configure.ac (AC_INIT): Bump to 2.59c.
9650 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
9652         Version 2.59b.
9654         * README: Add advice about m4 1.4.2.
9656         * Makefile.cfg (wget_files): Remove config.guess, config.sub,
9657         texinfo.tex for now (done by hand now).
9658         * Makefile.maint (wget_files, cvs_files):
9659         Remove ansi2knr.c; nobody uses it.
9660         (ansi2knr.c-url_prefix): Remove.
9661         (cvs-update): Fix test for failure.  I don't know why it ever
9662         worked...
9664         * doc/autoconf.texi: Update URLs, some of which went stale.
9665         Use @uref rather than @href.
9667         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
9668         handle "--" as per POSIX.  Suggested by Paul Pogonyshev.
9670         * config/config.guess, config/config.sub, config/elisp-comp,
9671         config/install-sh, config/mkinstalldirs, config/texinfo.tex,
9672         doc/fdl.texi, doc/standards.texi: Sync with master copy.
9674         * NEWS, TODO, configure.ac, bin/autoscan.in,
9675         bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
9676         doc/install.texi, lib/Autom4te/Configure_ac.pm,
9677         lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
9678         lib/autoconf/programs.m4, lib/autoconf/status.m4,
9679         lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
9680         lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
9681         tests/tools.at, tests/torture.at:
9682         Use "file name" rather than "filename" or "path",
9683         to be consistent with the terminology of the GNU coding standards.
9685 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
9687         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
9688         AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
9689         HP-UX 11.23 cc/aCC or Tru64 4.0 cc.  Problem reported by Noah Misch in
9690         <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
9692         More fixes to support spaces in the name of the build directory.
9693         This isn't a complete fix but it's an improvement.
9695         * bin/autoconf.as (autom4te_options): New var.
9696         Use it instead of appending to AUTOM4TE, so that we can allow
9697         spaces in the build directory's absolute name.
9698         * bin/autoheader.in ($autoconf): Allow spaces in file names.
9699         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
9700         AT_CHECK_NOESCAPE): Likewise.
9701         * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
9702         main program): Likewise.
9704 2004-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9706         * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
9707         From Ralf Corsepius in:
9708         http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
9710 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
9712         * doc/autoconf.texi (Function Portability): Document isinf and
9713         and isnan.  From a suggestion by Kevin Ryde.
9715         * lib/Autom4te/General.pm (END): Return correct exit status even
9716         if unlink succeeds and sets $?.  Needed with Solaris 8's perl 5.00503.
9718 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
9720         * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
9721         for compatibility with Automake 1.4.  Reported by J C Fitzgerald in
9722         <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
9724 2004-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
9726         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
9727         (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
9728         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
9729         * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
9730         * lib/autom4te.in (Automake-preselections): Preselect
9731         AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
9733 2004-08-02  Alexandre Duret-Lutz  <adl@gnu.org>
9735         * lib/autom4te.in (Automake-preselections): Preselect
9736         AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
9737         trace them.
9739 2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
9741         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
9742         Tru64.
9743         * doc/autoconf.texi (Shellology): Mention BIN_SH.
9744         Document problem with "`""`" in pdksh POSIX mode.
9746 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
9748         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
9749         with pdksh, too.  Problem reported by Patrick Welche via
9750         Gary V. Vaughan.
9751         * doc/autoconf.texi (Shellology): Note that set -o posix is
9752         useful for pkdsh, too.
9754 2004-06-24  Paul Eggert  <eggert@cs.ucla.edu>
9756         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
9757         _AS_UNSET_PREPARE, so that we can use $as_unset directly.
9758         Don't fail if ENV or BASH_ENV is readonly.
9759         (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
9760         etc. are read only.  Problem reported by Ludovic Courtes.
9762 2004-06-23  Noah Misch  <noah@cs.caltech.edu>
9764         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
9765         zsh, disable GLOB_SUBST to avoid backslash handling problems.
9766         (trivial change)
9768 2004-06-04  Paul Eggert  <eggert@cs.ucla.edu>
9770         * doc/autoconf.texi (File System Conventions): Warn about
9771         names like "aux".  Problem reported by Eric Blake.
9773         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
9774         by zero instead of array size, so that we can use any arithmetic
9775         constant expression (instead of requiring an integer constant
9776         expression).  This allows us to test expressions like DBL_MAX <
9777         LDBL_MAX, which didn't conform to the C standard using the old
9778         method.
9779         (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
9780         now that we can do floating-point tests at compile time.
9782 2004-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9784         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
9785         and LDBL_EPSILON, as the resulting expression isn't an
9786         integer constant expression and violates the C standard.
9787         Problem reported by Nelson H. F. Beebe.  Also, check
9788         for "L" suffix, and check that long double doesn't have
9789         worse range or precision than double, that mixed-mode
9790         arithmetic doesn't generate a diagnostic, that double
9791         constants fit in long double.
9793 2004-06-03  Kevin Ryde  <user42@zip.com.au>
9795         * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
9796         malloc(0) and realloc(NULL,size).
9798         * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
9799         Bob Proulx.
9801 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
9803         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
9804         in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].  Problem reported
9805         by Jim Meyering.
9807 2004-05-26  Paul Eggert  <eggert@cs.ucla.edu>
9809         * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
9810         can be rewritten using if-then-else.  Suggested by Bruno Haible.
9812 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
9814         * doc/autoconf.texi (testsuite Scripts): Fix typo.
9815         Problem reported by Stepan Kasal.
9817 2004-05-24  Paul Eggert  <eggert@cs.ucla.edu>
9819         * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
9820         change).  Patch reported by Ralf Wildenhues in
9821         <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
9823         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
9824         function F exists if the compiler and linker let you compile an
9825         expression like (F != 0).  Recent versions of GCC optimize away
9826         the reference to F in that case, since every function address must
9827         be nonzero, so the link succeeds even if F does not exist.
9828         Problem reported by Manu in
9829         <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
9831         * doc/autoconf.texi (Systemology): Standardize on the spelling of
9832         "Unix".  Many uses changed.
9833         (Limitations of Builtins): Explain better why the ! command isn't
9834         portable.
9836 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
9838         * lib/autom4te.in (Automake-preselections): Preselect
9839         LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
9841 2004-05-19  Kevin Ryde  <user42@zip.com.au>
9843         * doc/autoconf.texi (Function Portability): Add strerror_r, cross
9844         referencing AC_FUNC_STRERROR_R.
9846         * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
9847         note pessimistic assumption when cross compiling.
9849 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9851         * doc/autoconf.texi (Limitations of Make): Note that BSD make
9852         (until 2004) invoked subcommands with sh -e, contra POSIX.
9853         Reported by Kevin Ryde.
9855 2004-05-10  Eric Sunshine  <sunshine@sunshineco.com>
9857         * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
9858         _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
9859         "        $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
9860         `test -f "        /usr/bin/grep"', which _always_ failed.
9861         (AC_PROG_SED): Ditto bogus PATH fix.
9862         * autoconf.texi (AC_PROG_GREP): Properly document that this macro
9863         requires that grep correctly supports _multiple_ `-e' options, rather
9864         than stating only that grep should accept `-e'.
9866 2004-05-03  Paul Eggert  <eggert@cs.ucla.edu>
9868         Port to C99, which requires that 'exit' be declared.
9870         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
9871         to ensure that stdlib.h is included.
9872         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
9873         AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
9874         _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
9875         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
9876         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
9877         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
9878         when using 'exit' in a test; C99 requires that 'exit' be declared.
9880 2004-05-02  Paul Eggert  <eggert@cs.ucla.edu>
9882         * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
9883         now prefers 'grep' implementations that accept -e.
9884         (Limitations of Usual Tools): Describe problems of traditional
9885         egrep and fgrep with long input lines, and of traditional grep
9886         with -e.
9887         * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
9888         (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
9889         All callers changed.  Append /usr/xpg4/bin to the PATH, for
9890         Solaris.
9891         (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
9892         the user with complaints about multiple -e options.
9893         * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
9894         Define it with AC_PROG_GREP.
9895         * configure.ac (AC_PROG_GREP): Add.
9896         * lib/freeze.mk (GREP): New macro.
9898 2004-05-02  Eric Sunshine  <sunshine@sunshineco.com>
9900         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
9901         a possible candidate only after all others fail, rather than
9902         consulting it first.  This improves backward compatibility by
9903         better reflecting the way shell selection occurred in previous
9904         versions of Autoconf, and should help to avoid triggering latent
9905         problems in other packages, such as the one in Automake where zsh
9906         is not handled robustly:
9907         http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
9908         Although it is not Autoconf's responsibility to work around
9909         problems in Automake, it nevertheless makes sense to avoid
9910         introducing unnecessary incompatibilites.
9912 2004-04-22  Albert Chin-A-Young  <china@thewrittenword.com>,
9913             Gary V. Vaughan  <gary@gnu.org>
9915         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
9916         how deeply nested we are when a suitable tool is found, set the
9917         ac_path_TOOL_found flag.
9918         (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
9919         nested we are in this macro.  Break out of all 3 nested loops if
9920         ac_path_TOOL_found is set.
9922 2004-04-21  Gary V. Vaughan  <gary@gnu.org>
9924         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
9925         of the _AS_PATH_WALK loop too if GNU flavor is found.
9927 2004-04-21  Alexandre Duret-Lutz  <adl@gnu.org>
9929         * doc/autoconf.texi (Limitations of Make): Update documentation
9930         for `$<'.  New entry `Long lines', based on a report from Simon
9931         Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
9932         paragraph about DJGPP, based on a mail from Richard Dawe.
9934 2004-04-20  Paul Eggert  <eggert@twinsun.com>
9936         * tests/c.at (C keywords): Don't assume that GCC supports
9937         "restrict" and "inline", as sufficiently-old GCC versions do not
9938         (also, GCC configured to be in pedantic C89 mode does not).
9939         Problem reported by Sumit Pandya in:
9940         http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
9942         * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
9943         consider -g to work if it generates warnings when plain compiles
9944         don't.  Problem reported by Braden McDaniel in:
9945         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
9947         * doc/autoconf.texi (Slashes): New section, to document a problem
9948         reported by Jim Meyering in:
9949         http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
9951         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
9952         linker output files before linking, to work around IRIX 6 linker bug.
9953         Problem reported by Rainer Orth in:
9954         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
9956 2004-04-20  Gary V. Vaughan  <gary@gnu.org>
9958         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
9959         best tool so far counter rely on the tool path variable name to
9960         avoid checks for one tool being affected by the results of running
9961         the length check on a previous tool.
9963         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
9964         match expression argument, as different greps have different
9965         regular expression flavours.
9966         (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
9967         literals.
9968         (AC_PROG_EGREP): Pass 'EGREP$'.
9969         (AC_PROG_GREP): Pass 'GREP$'.
9971 2004-04-20  Albert Chin-A-Young  <china@thewrittenword.com>
9973         * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
9974         is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
9976 2004-03-29  Paul Eggert  <eggert@twinsun.com>
9978         * doc/autoconf.texi (Particular Headers, Particular Types, Generic
9979         Types, Specific Compiler Characteristics, System Services,
9980         Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
9981         etc. consistently instead of 'long', 'short', 'unsigned' etc.
9982         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
9983         * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
9984         Likewise.
9985         * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
9986         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
9987         AC_TYPE_OFF_T): Likewise.
9988         * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
9989         Likewise.
9991         * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
9992         pacify libtool 1.5.2.  Fix quoting problems in sed command.
9994 2004-03-28  Paul Eggert  <eggert@twinsun.com>
9996         * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
9997         now defines HAVE_DECL_TZNAME if it is declared, when
9998         HAVE_STRUCT_TM_TM_ZONE is not defined.
9999         * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
10000         Do not assume atoi.  Rely on HAVE_DECL_TZNAME when testing
10001         for HAVE_TZNAME.
10003 2004-03-28  Steven G. Johnson  <stevenj@fftw.org>
10005         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
10006         superfluous backslashing of quotes (") in sed expressions;
10007         thanks to Paul Eggert.
10009 2004-03-26  Steven G. Johnson  <stevenj@alum.mit.edu>
10011         * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
10012         Fortran compiler is ifort, also added pghpf; thanks to Nelson
10013         H. F. Beebe for the bug report.
10015 2004-03-26  Steven G. Johnson  <stevenj@fftw.org>
10017         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
10018         quoted -cmdline argument in Portland Group compiler (bug
10019         reported by Jeffrey J. Barteet).
10021 2004-03-25  Kevin Ryde  <user42@zip.com.au>
10023         * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
10024         (Run Time): ... here, where it's now mentioned.
10026 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
10028         * doc/autoconf.texi (autom4te Invocation): Language Autoconf
10029         inherits from language Autoconf-without-aclocal-m4.
10030         (Customizing autom4te): Adjust example; the cache must now be
10031         disabled for language Autoconf-without-aclocal-m4.
10033 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
10034             Nathanael Nerode  <neroden@twcny.rr.com>
10036         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
10037         AC_CHECK_TOOLS): Warn if a cross-tool is found without
10038         a prefix.
10039         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
10040         AC_CHECK_TARGET_TOOLS): New macros.
10041         * doc/autoconf.texi (Generic Programs): Document
10042         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
10043         AC_CHECK_TARGET_TOOLS, and warn for future changes
10044         in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
10045         AC_CHECK_TOOLS.
10046         (Specifying Names): Document the reason for these future
10047         behavioral changes.
10048         * tests/mktests.sh: Do not generate tests for the
10049         new macros.
10050         * NEWS: Document these changes.
10052         * doc/autoconf.texi: Avoid macros with unbraced arguments,
10053         they make TeX hang up.
10055 2004-03-15  Paul Eggert  <eggert@bogus.example.com>
10057         * NEWS: New macro AC_CHECK_ALIGNOF.
10058         * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
10059         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
10060         int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
10061         vowel.
10062         (AC_CHECK_ALIGNOF): New macro.
10063         * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
10064         * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
10065         those for sizeof.
10067 2004-03-03  Paul Eggert  <eggert@twinsun.com>
10069         * bin/Makefile.am (edit): Don't use $< in a context where
10070         POSIX doesn't require support for it.  Use $@.in instead.
10071         Problem reported by Anthony N. Frasso in
10072         <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
10073         * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
10075 2004-02-23  Gary V. Vaughan  <gary@gnu.org>
10077         * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
10078         from the next generation of Libtool.
10079         * lib/autom4te.in (Autoreconf-preselections): Ditto.
10081 2004-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
10083         * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
10084         is not always thread-safe.  Report from Nathanael Nerode.
10086 2004-02-18  Paul Eggert  <eggert@twinsun.com>
10088         Fix a dependencies problem, stemming from a Autoconf 2.59 build
10089         problem on QNX reported by Stephen Rasku in
10090         <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
10092         * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
10093         $(m4sh_m4f_dependencies); this removes a FIXME.
10094         * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
10095         (MAINTAINERCLEANFILES): Split into pieces,
10096         one per related section.  Add $(srcdir)/wrapper.in.
10098 2004-02-09  Paul Eggert  <eggert@twinsun.com>
10100         * doc/autoconf.texi (Setting Output Variables): Emphasize that
10101         AC_SUBST provides no portable way to escape literal newlines.
10103         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
10104         flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
10105         Darwin uses -lcrt2.o and there's little point to cataloging all
10106         the system variants.  Partial fix reported by Andreas Waechter in:
10107         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
10108         for bug reported by Nelson H. F. Beebe in:
10109         http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
10111 2004-02-04  Paolo Bonzini  <bonzini@gnu.org>
10113         * doc/autoconf.texi (AU_DEFUN): Fix English,
10114         suggested by Paul Eggert.
10115         * lib/autoconf/autoupdate.m4: Correct reference to
10116         acobsolete.m4, suggested by Alexandre Duret-Lutz.
10118 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
10120         * bin/autoupdate.in: Define __file__ so that warnings
10121         refer to the correct file.
10122         * doc/autoconf.texi (AU_DEFUN): Describe more correctly
10123         the behavior of the third argument.
10124         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
10125         correctly the behavior of the third argument.  Document
10126         what the three macros that AU_DEFUN defines do.  Fix
10127         warning message when the third argument includes $0
10128         (reported by Alexandre Duret-Lutz).
10130 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
10131             Eric Sunshine  <sunshine@sunshineco.com>
10132             Paul Eggert  <eggert@twinsun.com>
10134         * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
10135         (AS_INIT): Output shell initialization there. Removed optional
10136         parameter. Expand _AS_SHELL_FN_SPY.
10137         (AS_INIT_WITH_SHELL_FN): Removed.
10138         (_AS_SHELL_FN_SPY): New macro.
10139         (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
10140         macros.
10141         (AS_SHELL_SANITIZE): Remove loop to find better shell
10142         and documentation for the parameter.
10143         (_AS_DETECT_BETTER_SHELL): Move it here.
10144         (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
10145         (_AS_RUN): Move it here, support testing with eval.
10146         (AS_REQUIRE_SHELL_FN): Require shell functions when
10147         it is used.
10148         (_AS_LINENO_WORKS): Put around braces, we do not
10149         trigger the bash bug anymore.
10150         * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
10151         use AS_INIT_WITH_SHELL_FN.
10152         * bin/autoconf.in, tests/wrapper.in: Regenerated.
10154 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
10156         * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
10157         * doc/autoconf.texi: Don't say that the third parameter
10158         is broken.
10159         * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
10160         (AU_DEFUN): Honor the third parameter, create autoupdate
10161         macros with AU_DEFINE.
10162         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
10163         AC_DIR_HEADER): Use AU_DEFUN's third parameter.
10164         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
10165         * lib/autoconf/programs.m4 (AC_RSH): Likewise.
10166         * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
10167         AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
10168         AC_XENIX_DIR): Likewise.
10169         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
10170         AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
10171         * lib/autoconf/status.m4: Remove FIXME.
10172         * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
10173         that the macro is not present anymore in the updated
10174         configure.ac.
10175         * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
10176         of autoupdate.
10178 2004-01-28  Paul Eggert  <eggert@twinsun.com>
10180         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
10181         copyright years.
10182         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
10183         2003 (except 1997) to the list of copyright years.  This undoes
10184         the 2003-05-22 change, which removed the older years from the list.
10185         * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
10187 2004-01-27  Gary V. Vaughan  <gary@gnu.org>
10188             Albert Chin-A-Young  <china@thewrittenword.com>
10190         * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
10191         grep or ggrep program in PATH that accepts as long lines as
10192         possible.
10193         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
10194         AC_PROG_GREP.
10195         (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
10196         egrep and fgrep respectively if $GREP -E/-F don't work.
10197         (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
10198         _AC_PROG_GREP, and AC_PROG_SED.
10199         (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
10200         longest input length accepted by a command.
10201         (AC_PROG_SED): Use it.
10202         * doc/autoconf.texi (Particular Programs): Document the changes.
10203         * NEWS: Updated.
10205 2004-01-27  Paul Eggert  <eggert@twinsun.com>
10207         * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
10208         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
10209         bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
10210         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
10212         * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
10213         bin/autoconf.in, config/Makefile.in, config/config.guess,
10214         config/config.sub, config/install-sh, config/mdate-sh,
10215         config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
10216         lib/Makefile.in, lib/Autom4te/Makefile.in,
10217         lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
10218         lib/autotest/Makefile.in, lib/emacs/Makefile.in,
10219         lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
10220         man/autoheader.1, man/autom4te.1, man/autoreconf.1,
10221         man/autoscan.1, man/autoupdate.1, man/config.guess.1,
10222         man/config.sub.1, man/ifnames.1, tests/Makefile.in,
10223         tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
10224         tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
10225         tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
10226         tests/actypes.at: Regenerate and/or sync with original
10227         sources.
10229 2004-01-26  Paul Eggert  <eggert@twinsun.com>
10231         * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
10232         HAVE_INTTYPES_H is defined.  This is needed on Tru64 5.1b with
10233         Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
10234         not <inttypes.h>.  Problem reported by Tim Mooney in
10235         <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
10236         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
10237         Likewise.
10239         * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
10240         otherwise "make check" fails because it forbids cmp (I guess
10241         because cmp treats files as binary on DOS-like systems).
10243         * tests/mktests.sh: Update copyright date to 2004, since some tests
10244         have changed in 2004.
10246 2004-01-23  Gary V. Vaughan  <gary@gnu.org>
10248         * lib/autoconf/programs.m4 (AC_PROG_SED):  New macro to test for a
10249         non-truncating sed or gsed program in PATH.
10250         * tests/acprograms.at: Add it.
10251         * doc/autoconf.texi (Particular Programs): Document it.
10252         * NEWS: Updated.
10254 2004-01-15  Paul Eggert  <eggert@twinsun.com>
10256         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
10257         -std1 disables some useful extensions on Tru64.  Problem reported
10258         by N. Lichtmaier in
10259         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
10261 2004-01-14  Paul Eggert  <eggert@twinsun.com>
10263         * doc/autoconf.texi (Programming in M4sh): Document that
10264         AS_MKDIR_P succeeds if the destination is a symbolic link
10265         to an existing directory.
10266         (Limitations of Usual Tools): Note that mkdir -p might not
10267         succeed on symlinks to directories.
10269 2004-01-13  Paul Hilfinger  <hilfinger@CS.Berkeley.EDU>
10271         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
10272         * bin/autoheader.in: Grammar fix in message.
10273         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
10274         Test for dir before calling mkdir -p.  (trivial changes)
10276 2004-01-13  Eric Blake  <ebb9@byu.net>
10278         * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
10279         AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
10281 2004-01-10  Jim Meyering  <jim@meyering.net>
10283         * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
10285 2004-01-09  Paul Eggert  <eggert@twinsun.com>
10287         * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
10288         with `autoconf -Wall,error'.  Bug reported by Eric Blake in:
10289         http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
10290         (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
10291         AC_COMPILE_IFELSE, since we now assume our caller invokes
10292         AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
10293         (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
10294         of AC_RUN_IFELSE; this avoids the warning mentioned above.
10295         (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
10297 2004-01-07  Paul Eggert  <eggert@twinsun.com>
10299         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
10300         `"'...'"`, as it's confusing (and I suspect it may not work on
10301         some platforms).  The code was incorrect anyway, as it assumed
10302         that \$ evaluated to itself in that context.  Reported by
10303         Alexandre Duret-Lutz.
10305 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
10307         * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
10308         and _LT_AC_TAGCONFIG.
10310 2004-01-06  Paul Eggert  <eggert@twinsun.com>
10312         * doc/autoconf.texi (One Macro Call): Fix an incorrect
10313         example, and add more examples.  Reported by Eric Sunshine.
10315 2004-01-05  Paul Eggert  <eggert@twinsun.com>
10317         * doc/autoconf.texi (Limitations of Usual Tools):
10318         Remove warning against "rm -fr" introduced yesterday; it
10319         was a false alarm.
10321         * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
10322         autoscan, autoupdate, ifnames): Don't use chmod -w.
10323         * lib/Makefile.am (autom4te.cfg): Likewise.
10324         * doc/autoconf.texi (Limitations of Usual Tools): Warn against
10325         "chmod -w".
10327 2004-01-04  Paul Eggert  <eggert@twinsun.com>
10328             Paolo Bonzini  <bonzini@gnu.org>
10330         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
10331         by doing lineno substitution only on lines containing "$LINENO".
10333 2004-01-04  Paul Eggert  <eggert@twinsun.com>
10335         * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
10336         Use "rm -f" to remove conftest.sed, not plain "rm".
10337         Bug reported by David Relson in
10338         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
10340         * Makefile.am (autom4te-update):
10341         Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
10342         * Makefile.maint (my-distcheck, do-po-update): Likewise.
10343         * doc/autoconf.texi (Guidelines): Likewise.
10344         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
10345         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
10346         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
10347         * lib/autotest/general.m4 (AT_INIT): Likewise.
10348         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
10349         * tests/Makefile.am (clean-local): Likewise.
10350         * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
10351         srcdir): Likewise.
10352         * doc/autoconf.texi (Limitations of Usual Tools):
10353         Warn against "rm -fr".
10355 2004-01-03  Paul Eggert  <eggert@twinsun.com>
10357         * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
10358         -c -o might not work.  From a suggestion by Kevin Ryde.
10359         (C Compiler, Generating Sources, Limitations
10360         of Usual Tools, Limitations of Make, Making testsuite Scripts):
10361         Don't put '-o' after non-options, as POSIX doesn't allow this.
10362         Mention that cc's name might be gcc or c89 or whatever.
10364 2004-01-04  Kevin Ryde  <user42@zip.com.au>
10366         * doc/autoconf.texi: Add various further index entries.
10368 2003-12-29  Paul Eggert  <eggert@twinsun.com>
10370         * bin/autoreconf.in (autoreconf_current_directory):
10371         Fix typo: mkdir without umask arg.
10373 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
10375         * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
10376         Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
10377         `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
10378         explanation clearer.
10380 2003-12-24  Andreas Schwab  <schwab@suse.de>
10382         * doc/autoconf.texi (Default Includes): Fix misspelling of
10383         AC_INCLUDES_DEFAULT.
10385 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
10387         * configure.ac: Test if sh -n works.
10388         * configure: Regenerate.
10389         * tests/atlocal.in: Store the result here.
10390         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
10391         tools.at, looking in atlocal's ac_cv_sh_n_works instead
10392         of explicitly testing.
10393         (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
10394         (AT_CHECK_AUTOCONF): Test for the configure script syntax.
10395         * tests/tools.at (Syntax of the shell scripts): Simplify
10396         using AT_CHECK_SHELL_SYNTAX.
10397         (Syntax of the Perl scripts): Remove definition of
10398         AT_CHECK_PERL_SYNTAX.
10400 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
10402         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
10403         stderr to /dev/null.
10404         * bin/autoconf.in: Regenerate.
10405         * bin/wrapper.in: Regenerate.
10407 2003-11-26  Paolo Bonzini  <bonzini@gnu.org>
10409         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
10410         Extracted from AS_SHELL_SANITIZE.
10411         (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
10412         macros.
10413         (AS_SHELL_SANITIZE): Move reinvocation code from
10414         _AS_LINENO_WORKS, use it to find out if shell
10415         functions work.
10416         (_AS_LINENO_WORKS): Don't find another shell if $LINENO
10417         does not work.
10418         (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
10419         (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
10420         was called.
10421         * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
10422         * bin/autoconf.in: Regenerate.
10423         * tests/wrapper.in: Regenerate.
10424         * tests/tools.at: Test the syntax of tests/autoconf
10425         and tests/testsuite.
10427 2003-11-24  Akim Demaille  <akim@epita.fr>
10429         * config/announce-gen (&print_locations, &print_signatures)
10430         (&sizes): New.
10431         Use them.
10432         No longer rely on Gnus to inline the list of signatures: compute
10433         them on the fly.
10435 2003-11-24  Akim Demaille  <akim@epita.fr>
10437         * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
10438         override some files.
10439         (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
10440         From Debian Autoconf 2.58.
10442 2003-11-24  Akim Demaille  <akim@epita.fr>
10444         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
10445         uses.
10446         From Debian Autoconf 2.58.
10448 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
10450         * TODO: Remove already done things.  Update the part about finding
10451         tools for the target.
10453 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
10455         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
10456         Make wording more consistent.
10457         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
10458         Explain the transition better.
10459         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
10460         the transition better.
10462 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
10464         * doc/autoconf.texi (Obsoleting Macros): Don't document the third
10465         parameter of AU_DEFUN.
10466         * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
10467         (AU_DEFUN): Remove the third parameter, it was not used.
10468         Use AC_DEFUN directly, not AU_DEFINE.
10469         * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
10470         the expanded body, consistently with other macros such as AC_USG.
10472 2003-11-17  Paul Eggert  <eggert@twinsun.com>
10474         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
10475         into the initial confdefs.h, to work around a bug in NextStep 3.3
10476         patch 3 reported by Eric Sunshine.
10478 2003-11-15  Kevin Ryde  <user42@zip.com.au>
10480         * doc/autoconf.texi (Using System Type): Revise, showing $host rather
10481         than $target since the latter is not usual, add guidelines on when to
10482         use or not use the system type.
10484 2003-11-12  Derek Price  <derek@ximbiot.com>
10486         * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
10487         typo misrepaired by an auto-spellcheck.
10489 2003-11-12  Akim Demaille  <akim@epita.fr>
10491         * bin/autoreconf.in (&parse_args): Don't call automake with
10492         --force-missing unless it actually supports it.
10493         From Debian #219336.
10495 2003-11-12  Akim Demaille  <akim@epita.fr>
10497         * configure.ac: Bump to 2.59a.
10498         Require 2.59.
10500 2003-11-06  Akim Demaille  <akim@epita.fr>
10502         Version 2.59.
10504 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
10506         * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
10507         so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
10508         and ac_abs_top_srcdir are absolute paths.
10509         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
10511 2003-11-05  Akim Demaille  <akim@epita.fr>
10513         * configure.ac: Bump to 2.58a.
10515 2003-11-05  Kevin Ryde  <user42@zip.com.au>
10517         * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
10518         it provokes a warning from makeinfo about looking like a cross
10519         reference in info output.
10521         * doc/autoconf.texi (Function Portability): Add notes on signal
10522         handler return type, as per AC_TYPE_SIGNAL.
10524 2003-11-04  Akim Demaille  <akim@epita.fr>
10526         Version 2.58.
10527         * doc/standards.texi: Update from master.
10529         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
10531 2003-11-04  Akim Demaille  <akim@epita.fr>
10533         AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
10534         computing the absolute path to d1 in the source hierarchy: it may
10535         not exist at all.  So don't cd into it.
10536         From Alexandre Duret-Lutz.
10537         http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
10539         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
10540         From Paul Eggert, but named after Perl's IO::Spec->catfile.
10541         * doc/autoconf.texi (Programming in M4sh): Document.
10542         * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
10544 2003-11-03  Pavel Roskin  <proski@gnu.org>
10546         * doc/autoconf.texi (Generic Structure Checks): Describe
10547         action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
10549 2003-10-31  Akim Demaille  <akim@epita.fr>
10551         * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
10552         (GNU Fortran): New.
10553         * doc/autoconf.texi (Language Choice): Document.
10554         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
10555         the current language is Fortran.
10557 2003-10-31  Akim Demaille  <akim@epita.fr>
10559         * bin/autom4te.in (&freeze): Use a less likely warning separator
10560         than `\n\n', so that `\n\n\n' is valid in warnings.
10561         Reported by Steve Huston.
10563 2003-10-28  Akim Demaille  <akim@epita.fr>
10565         * Makefile.cfg (local_updates, executable-update): Tweak to be
10566         robust to parallel makes.
10567         Suggested by Alexandre Duret-Lutz.
10569 2003-10-27  Akim Demaille  <akim@epita.fr>
10571         * Makefile.cfg (executable-update): New.
10572         (local_updates): Call it.
10574 2003-10-27  Akim Demaille  <akim@epita.fr>
10576         * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
10577         Don't remove core.* as it may remove valid user files.
10578         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
10579         (AC_FUNC_UTIME_NULL): Likewise.
10581 2003-10-23  Akim Demaille  <akim@epita.fr>
10583         Version 2.57g.
10584         * config/config.guess, config/config.sub: Upgrade from masters.
10586 2003-10-23  Akim Demaille  <akim@epita.fr>
10588         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
10589         AC_COMPILE_IFELSE that use break skip the clean up.  So do it by
10590         hand...
10592 2003-10-23  Akim Demaille  <akim@epita.fr>
10594         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
10595         Don't forget to remove conftest.err.
10597 2003-10-23  Akim Demaille  <akim@epita.fr>
10599         * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
10600         same object file in $LIBOBJS.
10601         Reported by Alexandre Duret-Lutz & Derek Robert Price.
10602         * doc/autoconf.texi (Generic Functions): Adjust.
10604 2003-10-20  Paul Eggert  <eggert@twinsun.com>
10606         * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
10607         Use 'eval', so that the resulting configure scripts work even if
10608         the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
10610 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
10612         * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
10613         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
10614         (_AC_LINK_IFELSE): Check the werror flag.
10615         * doc/autoconf.texi (Generic Compiler Characteristics): Document
10616         AC_LANG_WERROR.
10617         * NEWS: Mention it.
10619 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
10621         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
10622         _AC_COMPILER_EXEEXT to attempt a link.  If linking fails,
10623         override AC_LINK_IFELSE.
10625 2003-10-15  Paul Eggert  <eggert@twinsun.com>
10627         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
10628         pdksh 5.2.14.  Bug reported by Ralf Corsepius.
10629         * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
10630         Mention /usr/dt/bin/dtksh on Solaris.
10631         (Shell Substitutions): Warn about $((...)).
10632         (Parentheses): New section.
10634 2003-10-15  Kevin Ryde  <user42@zip.com.au>
10636         * doc/autoconf.texi (Function Portability): Add @prindex for exit.
10637         Add putenv and unsetenv.  Add sysconf _SC_PAGE_SIZE.
10639 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
10641         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
10642         cross test.
10644 2003-10-11  Steven G. Johnson  <stevenj@alum.mit.edu>
10646         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
10647         name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
10649 2003-10-10  Andreas Schwab  <schwab@suse.de>
10651         * bin/autoheader.in: Avoid empty first line in --version and
10652         --help output.
10653         * bin/ifnames.in: Likewise.
10655 2003-10-09  Paul Eggert  <eggert@twinsun.com>
10657         * lib/Autom4te/XFile.pm: Don't assume -j is solo.
10658         Issue a more-informative diagnostic.
10659         Problems reported by Eric Sunshine.
10661 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
10663         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
10664         -mGLOB_options_string stuff for Intel ifc, which can cause
10665         _AC_FC_LIBRARY_LDFLAGS to fail.  Use (faster) case for
10666         pattern-matching instead of grep.
10668 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
10670         * doc/autoconf.texi: Document new FC Fortran macros.
10672 2003-10-08  Gary V. Vaughan  <gary@gnu.org>
10674         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
10675         that future autopoint/aclocal/automake/autoreconf will be able
10676         to trace to find where to install local m4 macros.
10677         * doc/autoconf.texi (Input): Document it.
10678         * NEWS: Updated.
10680 2003-10-06  Gary V. Vaughan  <gary@gnu.org>
10682         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
10683         -lcrtbegin.o to list of ignored flags and fix underquoting of
10684         -lcrt[01].o.
10686 2003-10-04  Steven G. Johnson  <stevenj@ab-initio.mit.edu>
10688         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
10689         cache variable instead of $G77 to decide whether to include -O2,
10690         since $G77 is specific to Fortran 77.
10692 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
10694         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
10695         free" flag.  Re-order flags tested into rough order of popularity.
10697 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
10699         * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
10700         arguments so that it can be used with syntax identical to
10701         AC_PROG_F77, and so that we can more easily decide to
10702         remove/deprecate the DIALECT optional argument in the future if it
10703         proves troublesome.
10704         (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
10705         non-freeform-supporting compilers.  Document freeform flags.
10707 2003-10-03  Akim Demaille  <akim@epita.fr>
10709         * configure.ac: Look for emacs, not macs.
10710         Reported by Eric Sunshine.
10712 2003-10-03  Akim Demaille  <akim@epita.fr>
10714         * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
10715         * bin/autoreconf.in (autoreconf_current_directory): Create the
10716         AUX_DIR if needed, for sake of automake --add-missing etc.
10717         Suggested by Alexandre Duret-Lutz.
10719 2003-10-03  Akim Demaille  <akim@epita.fr>
10721         * configure.ac: Quotation and formatting changes.
10722         (EMACS): Don't set it if it is not recent enough to support
10723         autoconf-mode.el.
10724         From Eric Sunshine.
10726 2003-10-02  Akim Demaille  <akim@epita.fr>
10728         * bin/ifnames.in (&scan_file): Skip C++ comments.
10729         From Jeremy Yallop.
10731 2003-10-01  Pavel Roskin  <proski@gnu.org>
10733         * doc/autoconf.texi (Particular Structure Checks):
10734         Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
10736 2003-10-01  Akim Demaille  <akim@epita.fr>
10738         Version 2.57f.
10740 2003-09-30  Paul Eggert  <eggert@twinsun.com>
10742         * lib/Autom4te/XFile.pm: Use Errno.
10743         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
10744         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
10746 2003-09-30  Akim Demaille  <akim@epita.fr>
10748         * config/announce-gen (&print_news_deltas): Extracted from...
10749         (&print_changelog_deltas): here.
10750         (&news_file): Rename as...
10751         (@news_file): this.
10753 2003-09-30  Nicolas Joly  <njoly@pasteur.fr>
10755         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
10756         have been created when invoking the compiler.
10757         * tests/fortran.at (GNU Fortran 77): Quote $G77.
10759 2003-09-29  Akim Demaille  <akim@epita.fr>
10761         Version 2.57e.
10763         * config/mkinstalldirs: Upgrade.
10765 2003-09-28  Paul Eggert  <eggert@twinsun.com>
10767         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
10768         Problem reported by Lars J. Aas in
10769         <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
10770         (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
10771         "test -d ./-p && rmdir ./-p".  Suggested by Andreas Schwab in:
10772         http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
10774 2003-09-26  Akim Demaille  <akim@epita.fr>
10776         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
10777         directory for AC_CONFIG_COMMANDS' first argument exists.
10778         This makes valid the invocation of _AC_SRCPATH that follows.
10779         Reported by Eric Sunshine.
10780         * doc/autoconf.texi (Configuration Commands): Adjust.
10782 2003-09-26  Akim Demaille  <akim@epita.fr>
10784         * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
10785         Reported by Ralf Corsepius.
10787 2003-09-26  Akim Demaille  <akim@epita.fr>
10789         * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
10790         arguments.
10791         Actually, use AU_ALIAS.
10792         From Bruno Haible.
10794 2003-09-26  Paul Eggert  <eggert@twinsun.com>
10796         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
10797         rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
10798         Problem reported by Eric Sunshine in:
10799         http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
10801 2003-09-26  Akim Demaille  <akim@epita.fr>
10803         The test suite are sometimes assigning timings incorrectly.
10804         Reported by Henk Krus.
10805         Diagnosed by Nicolas Joly.
10807         * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
10808         AT_help_all.
10809         Instead of making AT_help a sequence of assignments to grow
10810         $at_help_all, just make AT_help_all be the growing contents of
10811         $at_help_all, and make a single assignment in...
10812         (AT_INIT): here.
10813         (at_times_skip): Flip the meaning and rename as...
10814         (at_times_p): this.
10815         (AT_INIT): When summarizing the test that ran, remove
10816         $at_times_file after use, and check it is present before trying to
10817         use it.
10819 2003-09-25  Akim Demaille  <akim@epita.fr>
10821         Version 2.57d.
10823         * bin/Makefile.am (edit): Handle '@configure_input@'.
10824         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
10825         (ifnames): chmod -w.
10826         * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
10827         executables, not bin/ executables!  Otherwise all the magic needed
10828         to find non installed files is turned off.  This caused a failure
10829         of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
10830         as found in its environment (sent by tests/autoreconf): pointing
10831         to bin/autom4te that could not find its files.
10832         * tests/mktests.sh: Force the replacement of generated files, for
10833         the sake of "mv" program that are interactive when overwriting a
10834         -w file.
10835         * config/install-sh: Upgrade from CVS Automake.
10837 2003-09-23  Paul Eggert  <eggert@twinsun.com>
10839         * doc/autoconf.texi (Limitations of Builtins): Document test -h
10840         versus test -L issues.
10842 2003-09-23  Daniel Jacobowitz  <drow@mvista.com> and
10843             Paul Eggert  <eggert@twinsun.com>
10845         Trivial change to support GCC's configuration procedure.
10846         * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
10847         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
10848         about inconsistency if the preprocessor is set to give errors for
10849         any warning.
10850         * doc/autoconf.texi (C Compiler Characteristics): Document this.
10852 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
10854         * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
10855         and XFile.pm from Automake.
10856         * lib/Autom4te/XFile.pm: Update from Automake.
10858 2003-09-12  Akim Demaille  <akim@epita.fr>
10860         Version 2.57c.
10862 2003-09-12  Akim Demaille  <akim@epita.fr>
10864         * config/config.guess, config/config.sub, config/missing,
10865         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
10866         from masters.
10868 2003-09-12  Akim Demaille  <akim@epita.fr>
10870         * doc/autoconf.texi (Header Portability): Promote linux/types.h,
10871         not asm/types.h.
10873 2003-09-11  Akim Demaille  <akim@epita.fr>
10875         * doc/autoconf.texi (Header Portability): linux/random.h.
10876         From Peter Hendrickson.
10878 2003-09-10  Akim Demaille  <akim@epita.fr>
10880         * tests/mktests.sh (au_exclude_egrep): Make it harder to be
10881         willing to edit the output files.
10883 2003-09-10  Akim Demaille  <akim@epita.fr>
10885         * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
10886         and AC_FC_FREEFORM.
10887         * tests/mktests.sh: Skip AC_FC_SRCEXT.
10888         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
10890 2003-09-09  Akim Demaille  <akim@epita.fr>
10892         * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
10893         Reported by Gary Vaughan.
10894         * bin/autom4te.in (handle_m4): Likewise.
10896 2003-09-09  Akim Demaille  <akim@epita.fr>
10898         * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
10899         trailing files.
10901 2003-09-07  Paul Eggert  <eggert@twinsun.com>
10903         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
10904         Improve the accuracy of the wording about obsolescence.
10905         From a suggestion by Ian Lance Taylor in
10906         <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
10908 2003-09-05  Paul Eggert  <eggert@twinsun.com>
10910         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
10911         for the benefit of g77 3.2.  Fix suggested by Steven G. Johnson.
10913 2003-09-04  Akim Demaille  <akim@epita.fr>
10915         * tests/mktests.sh (ac_exclude_list): Fix the filtering of
10916         AC_FUNC_WAIT3.
10918 2003-09-04  Akim Demaille  <akim@epita.fr>
10920         * bin/autom4te.in: Use &fatal where more appropriate than &error.
10921         (freeze): When exiting, use $exit_code.
10922         * lib/autoconf/fortran.m4: Comment changes.
10924 2003-09-04  Akim Demaille  <akim@epita.fr>
10926         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
10928 2003-09-02  Steven G. Johnson  <stevenj@alum.mit.edu>
10930         Add support for newer Fortran dialects.  The F77 interface is
10931         unchanged, and continues to support Fortran 77.  New FC macros
10932         correspond to all the old F77 macros, with output variables FC,
10933         FCFLAGS, and FCLIBS.  AC_PROG_FC defaults to picking the newest
10934         available dialect, but older dialects can be specified.  There are
10935         new macros AC_FC_SRCEXT to set the source extension, and
10936         AC_FC_FREEFORM to accept free-form source files.
10938         * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
10939         New macros.
10940         (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
10941         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
10942         _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
10943         _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
10944         AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
10945         AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
10946         _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
10947         _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
10948         AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
10949         _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
10950         AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
10951         _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
10952         AC_FC_SRCEXT, AC_FC_FREEFORM):
10953         New macros.
10954         (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
10955         AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
10956         AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
10957         Rewrite in terms of the above.
10958         (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
10959         * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
10960         * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
10961         AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
10963 2003-09-02  Paul Eggert  <eggert@twinsun.com>
10965         * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
10966         Document problems with timestamp resolution that 'make', 'cp -p', and
10967         'touch -r' have.
10969 2003-08-27  Akim Demaille  <akim@epita.fr>
10971         * tests/m4sugar.at (cross_warning): Make sure to enable the
10972         output, so that we can track spurious m4sugar output.
10973         * tests/local.at: Require 2.57.
10974         (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
10975         are defaulted by AT_CHECK anyway.
10976         Use AT_CHECK_AUTOM4TE.
10977         * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
10978         missing dnl.
10980 2003-08-27  Akim Demaille  <akim@epita.fr>
10982         * bin/autoheader.in: Issue the "Using auxiliary..." message only
10983         when -Wobsolete is set.
10984         Set it on by default.
10985         Suggested by Klee Dienes.
10987 2003-08-27  Akim Demaille  <akim@epita.fr>
10989         * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
10990         documentation.
10991         From Guido Draheim.
10993 2003-08-26  Akim Demaille  <akim@epita.fr>
10995         * doc/autoconf.texi (Output): Make clear that one can run code
10996         after AC_OUTPUT.
10998 2003-08-25  Akim Demaille  <akim@epita.fr>
11000         * config/announce-gen, GNUmakefile, Makefile.maint: Update from
11001         CVS Bison.
11003 2003-08-25  Alexandre Duret-Lutz  <adl@gnu.org>
11005         * bin/autoreconf.in (parse_args): Do not pass --no-force to
11006         Automake versions prior to 1.8.
11008 2003-08-25  Akim Demaille  <akim@epita.fr>
11010         * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
11011         From Ville Karaila.
11013 2003-08-24  Akim Demaille  <akim@epita.fr>
11015         * configure.ac: Bump to 2.57c.
11017 2003-08-22  Akim Demaille  <akim@epita.fr>
11019         Version 2.57b.
11021         * Makefile.cfg (local-checks-to-skip): New.
11022         * Makefile.maint (local-check): Rename as...
11023         (local-checks-available): this.
11024         (local-check): New.
11026         * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
11027         * configure.ac: Require Automake 1.7.6.
11029 2003-08-22  Akim Demaille  <akim@epita.fr>
11031         Output stack traces in warnings.
11033         * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
11034         Replace the former...
11035         (m4_warn): Pass the call stack to _m4_warn.
11036         * bin/autom4te.in: Adjust to output the call stack.
11037         * tests/m4sugar.at (m4@&t@_warn): Adjust.
11039 2003-08-22  Akim Demaille  <akim@epita.fr>
11041         * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
11042         * bin/autom4te.in: Adjust.
11044 2003-08-21  Akim Demaille  <akim@epita.fr>
11046         * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
11047         (&verbose): Remove.
11048         (&getopt): Adjust the note and verb channels, depending upon
11049         --verbose.
11050         * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
11051         * bin/autoupdate.in: Adjust.
11052         Use &verb, not &verbose.
11054 2003-08-21  Akim Demaille  <akim@epita.fr>
11056         * bin/autoheader.in (&parse_args): Use &parse_warnings and
11057         &parse_WARNINGS.
11058         ($help): Use Autom4te::ChannelDefs::usage.
11059         * bin/autoscan.in: Use Autom4te::ChannelDefs.
11060         * lib/Autom4te/General.pm: Don't export error: you don't own it.
11062 2003-08-21  Akim Demaille  <akim@epita.fr>
11064         First stab at preserving warnings between calls to autom4te,
11065         including when the cache is used.
11067         There are still several issues: (i) there are too many runs of m4
11068         (one for include, one for warnings, and some more), (ii) warnings
11069         spreading on several lines are not handled gracefully, (iii) the
11070         code meant to have the call stack display for errors does not work
11071         (its handling should move from m4 to autom4te).
11073         * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
11074         Use them.
11075         (@preselect): Add m4_warn.
11076         ($exit_status): Remove, use $exit_code.
11077         ($help): Use Autom4te::ChannelDefs::usage.
11078         (&handle_m4): No longer define the m4_warnings.
11079         At each run, extract and report the warnings.
11080         Always cache the result, including if the exit status is on
11081         failure, since if nothing changes, we should result in the same
11082         failure, hence we can use the cache.
11083         * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
11084         (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
11085         Remove.
11086         (m4_warn): Redefine as a do-nothing: it is its invocation that
11087         matters, as warnings are now reported via traces.
11088         * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
11089         the contents of m4_warn: make it _call_ m4_warn, so that tracing
11090         the latter reveals calls to the former.
11092         Adjust the tests.
11094         * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
11096 2003-08-21  Akim Demaille  <akim@epita.fr>
11098         * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
11099         Use them.
11101 2003-08-21  Akim Demaille  <akim@epita.fr>
11103         * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
11104         forward order.
11105         * lib/Autom4te/ChannelDefs.pm: Doc typos.
11106         (&parse_warnings): Accept a list of warning requests.
11107         (&usage): Return a string, not a side effect.
11108         (cross): New warning category.
11110 2003-08-21  Akim Demaille  <akim@epita.fr>
11112         * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
11113         (&require_configure_ac): Accept an optional directory argument.
11114         ($configure_ac): Remove.
11115         * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
11116         (&catfile): Remove.
11117         * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
11118         * bin/autoscan.in: Adjust.
11120 2003-08-20  Akim Demaille  <akim@epita.fr>
11122         * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
11123         Reported by Alexandre Duret-Lutz.
11125 2003-08-20  Akim Demaille  <akim@epita.fr>
11127         * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
11128         * bin/autom4te: Adjust.
11129         In particular, be Autoconf tools are really silent when properly
11130         working, bind the verbosity of the 'note' channel to $verbose.
11131         * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
11132         (&xsystem, &contents): Remove, since they are exported by...
11133         * lib/Autom4te/FileUtils.pm: this.
11134         More perldoc.
11135         * lib/Autom4te/General.pm (&up_to_date_p): Move to...
11136         * lib/Autom4te/FileUtils.pm: here.
11138 2003-08-20  Akim Demaille  <akim@epita.fr>
11140         * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
11141         * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
11142         from CVS Automake.
11144 2003-08-20  Akim Demaille  <akim@epita.fr>
11146         * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
11147         (autom4te-update): New.
11148         * Makefile.cfg (update): Bind autom4te-update.
11150 2003-08-19  Derek Price  <derek@ximbiot.com>
11152         * lib/autotest/general.m4: Comment various HELP_* diversions.
11153         (PARSE_ARGS_BEGIN): New section for option parsing related
11154         initialization.
11155         (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
11156         package specific options and associated help.
11158 2003-08-19  Akim Demaille  <akim@epita.fr>
11160         * config/announce-gen, Makefile.cfg: New.
11161         * Makefile.am: Adjust.
11162         * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
11164 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
11166         * lib/autom4te.in (Automake-preselections): Preselect
11167         AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
11168         and m4_sinclude.
11170 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
11172         * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
11173         (Autoconf-without-aclocal-m4): ... this new language.
11174         * doc/autoconf.texi (autom4te Invocation): Mention
11175         Autoconf-without-aclocal-m4.
11177 2003-08-18  Derek Price  <derek@ximbiot.com>
11179         * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
11180         RUN-IF-PASS optional arguments.
11182 2003-08-18  Derek Price  <derek@ximbiot.com>
11184         * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
11186 2003-08-16  Derek Price  <derek@ximbiot.com>
11188         * doc/autoconf.texi (Writing testsuite.at): Document defaults for
11189         STDOUT & STDERR arguments.
11191 2003-08-14  Derek Price  <derek@ximbiot.com>
11193         * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
11194         DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
11195         shorter column three.  Add DESCRIPTION to log file content.
11197 2003-08-13  Derek Price  <derek@ximbiot.com>
11199         * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
11200         output.
11202 2003-08-12  Derek Price  <derek@ximbiot.com>
11204         * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
11205         (AT_CHECK_NOESCAPE): Move core functionality to...
11206         (_AT_CHECK): ...this new macro.
11208 2003-08-07  Derek Price  <derek@ximbiot.com>
11210         * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
11211         (AT_CHECK_NOESCAPE): ...to this new macro.
11213 2003-07-31  Paul Eggert  <eggert@twinsun.com>
11215         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
11216         in Bash 2.01.  Problem reported by Brian Gough in
11217         <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
11219 2003-07-25  John W. Eaton  <jwe@bevo.che.wisc.edu>
11221         * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
11222         -lcrt1.o, for OS X.  (trivial change)
11224 2003-07-07  Paul Eggert  <eggert@twinsun.com>
11226         * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
11227         inside '#ifndef __cplusplus'.  Problem reported by
11228         Bob Friesenhahn.
11230 2003-07-06  Bill Clarke  <llib@computer.org>
11232         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
11233         'long', not 'int', for benefit of Sun's recent C++ compilers
11234         (trivial change).  See:
11235         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
11236         (This really should be 'intptr_t', not 'long', but that would
11237         take more work.)
11239 2003-06-25  Akim Demaille  <akim@epita.fr>
11241         * lib/Makefile.am (autom4te.cfg): Make it read only.
11242         Depend on Makefile since it contains substitutions.
11243         From Paolo Bonzini.
11244         * lib/autom4te.in (args): Add local.at? for Autotest args.
11245         This change was made on autom4te.cfg which is generated.
11246         Reported by Raja R. Harinath.
11248 2003-06-25  Akim Demaille  <akim@epita.fr>
11250         * doc/autoconf.texi (Header Portability): sys/mount.h.
11251         From Gareth McCaughan.
11253 2003-06-23  Akim Demaille  <akim@epita.fr>
11255         * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
11256         not all of them.  This fixes 1. the fact that when testing
11257         Autoconf there are many many config.log, 2. the incorrect use of
11258         top_srcdir to find config.log.
11259         Don't mix the detailed output of failed test with the summary of
11260         failures.  Rather, append detailed log afterwards.
11262 2003-06-23  Akim Demaille  <akim@epita.fr>
11264         * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
11265         always run: output config.log on $at_group_log.
11267 2003-06-23  Akim Demaille  <akim@epita.fr>
11269         * tests/torture.at (#define header templates): Don't use quotes in
11270         C++ comments as it puzzles Emacs' sh font-lock-mode.
11272 2003-06-23  Akim Demaille  <akim@epita.fr>
11274         * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
11275         * lib/autom4te.cfg (args): Add local.at? for Autotest args.
11276         * tests/atspecific.m4: Rename as...
11277         * tests/local.at: This.
11278         * tests/suite.at: Move the globals into...
11279         * tests/local.at: here.
11280         * tests/Makefile.am: Adjust.
11281         * doc/autoconf.texi (testsuite Scripts): Adjust.
11283 2003-06-21  Kevin Ryde  <user42@zip.com.au>
11285         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
11286         error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
11287         ensuring we add -std1 for full-ANSI.
11289         * doc/autoconf.texi (hdrindex): New macro.
11290         Add index entries for portability of various standard header files.
11292 2003-06-20  Akim Demaille  <akim@epita.fr>
11294         * configure.ac: Bump to 2.57b.
11296 2003-06-20  Akim Demaille  <akim@epita.fr>
11298         Version 2.57a.
11300 2003-06-20  Akim Demaille  <akim@epita.fr>
11302         * bin/autom4te.in: Don't rely on $HOME being defined.
11303         Reported by Marc Espie as PR/233.
11305 2003-06-20  Akim Demaille  <akim@epita.fr>
11307         * lib/autotest/general.m4: Use at_times_file only if used.
11308         From Nicolas Joly.
11310 2003-06-20  Akim Demaille  <akim@epita.fr>
11312         * config/config.guess, config/config.sub, config/elisp-comp,
11313         * config/install-sh, config/mkinstalldirs, doc/standards.texi:
11314         Update from masters.
11316 2003-06-11  Paolo Bonzini  <bonzini@gnu.org>
11318         * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
11319         * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
11320         (TEST_SCRIPT): New diversion.
11321         (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
11322         (AT_CLEANUP): ...to here.  Undivert TEST_SCRIPT.
11323         (AT_INIT): Support for expected failures.
11325 2003-06-02  Akim Demaille  <akim@epita.fr>
11327         * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
11328         changes.
11329         * lib/Autom4te/General.pm (&backname): Remove, no longer used by
11330         Autoconf nor Automake.
11331         (&contents): New, from Automake.
11332         PODify.
11334 2003-05-28  Paul Eggert  <eggert@twinsun.com>
11336         * NEWS, doc/autoconf.texi (Particular Functions),
11337         lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
11338         is the inverse of localtime.
11340 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
11342         * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
11343         (handle_exec_errors): New function.  Work around $! being
11344         altered by WEXITSTATUS.
11345         (xqx, xsystem): Use handle_exec_errors.
11347 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
11349         * lib/Autom4te/General.pm (END): Rewrite exit code processing.
11350         Do not call `_exit()', simply modify `$?'.
11351         (xsystem): Reset $! before running system, and check it afterward.
11352         * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
11353         63 for version mismatches.
11355 2003-05-23  Akim Demaille  <akim@epita.fr>
11357         * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
11358         Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
11359         the middle of a line).
11360         * lib/m4sugar/m4sugar.m4: Likewise.
11361         Remove useless spaces in comments.
11363 2003-05-23  Akim Demaille  <akim@epita.fr>
11365         * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
11366         exit 63, so that we (or Automake's "missing") can tell the
11367         difference with a plain failure.
11368         * doc/autoconf.texi (Notices): Adjust.
11370 2003-05-23  Akim Demaille  <akim@epita.fr>
11372         * Makefile.am, bin/Makefile.am, config/Makefile.am,
11373         * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
11374         White spaces cleanup.
11376 2003-05-22  Jim Meyering  <jim@meyering.net>
11377             Paul Eggert  <eggert@twinsun.com>
11379         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
11380         Remove `#include <stdlib.h>' from the list; we should never
11381         make confdefs.h include <stdlib.h> or <cstdlib>, because the
11382         resulting namespace pollution would cause other tests to fail.
11383         Configure scripts run with some older versions of g++ and HP's
11384         aCC would fail due to such an #include.  Problems reported by
11385         Matthew Mueller in <http://bugs.debian.org/120704> and by
11386         Keith Bostic in
11387         <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
11388         In the test, use the test declaration before including <stdlib.h>,
11389         as that's closer to how it'll be used.
11391 2003-05-23  Akim Demaille  <akim@epita.fr>
11393         * doc/autoconf.texi (Header Portability): ucred.h.
11394         From Ian Redfern.
11396 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
11398         Overhaul Autotest's logging: generate separate log files
11399         in testsuite.dir/NNN/testsuite.log, and append them to
11400         testsuite.log instead of re-running the test verbosely.
11402         * lib/autotest/general.m4 (AT_INIT): Use a single redirected
11403         file descriptor, write 0 to at_status_file instead of setting
11404         at_status=0, initialize some new variables (at_status_file,
11405         at_group_log, at_suite_log, at_tee_pipe).  Remove the cruft
11406         to rerun the tests, instead append the at_group_log to the
11407         at_suite_log when a test fails.
11408         (AT_SETUP): pipe the test case's output into at_tee_pipe,
11409         with the AS_MESSAGE_LOG_FD redirected to stdout.
11410         (AT_CLEANUP): save the output status in $at_status_file
11411         and restore it, redirect the AS_MESSAGE_LOG_FD back to
11412         its original place.
11413         (AT_CHECK): since tests are run with a redirected stdout,
11414         and used to be re-run in verbose mode, turn some $at_verbose
11415         into echo, and don't redirect the output of testing stdout
11416         and stderr.
11418         * lib/autotest/autoconf.texi (testsuite Scripts): Update
11419         the name of the debugging directory and information about
11420         its contents.
11422 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
11424         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
11425         parameter.
11427 2003-05-22  Akim Demaille  <akim@epita.fr>
11429         * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
11430         * lib/autoconf/fortran.m4 lib/autoconf/general.m4
11431         * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
11432         * lib/autoconf/status.m4: Fix and adjust copyright notices.
11434 2003-05-22  Akim Demaille  <akim@epita.fr>
11436         * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
11437         * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
11438         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
11439         * lib/autoconf/general.m4, lib/autoconf/headers.m4,
11440         * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
11441         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
11442         * lib/autoconf/status.m4, lib/autoconf/types.m4,
11443         * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
11444         * tests/atspecific.m4, tests/base.at, tests/compile.at,
11445         * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
11446         * tests/tools.at, tests/torture.at:
11447         Whitespace clean up.
11448         Suggested by Jim Meyering.
11450 2003-05-22  Akim Demaille  <akim@epita.fr>
11452         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
11453         ' \t' as '\t ' so that Emacs' whitespace.el keep it.
11454         Reported by Jim Meyering.
11456 2003-05-22  Akim Demaille  <akim@epita.fr>
11458         * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
11459         Add AC_HELP_STRING  to the obsolete macros section.
11460         Typos.
11461         Use '@.' for sentences that ended in a capital letter.
11462         From Art Haas.
11464 2003-05-22  Akim Demaille  <akim@epita.fr>
11466         * config/config.guess, config/config.sub, config/elisp-comp,
11467         * config/install-sh, config/mdate-sh, config/mkinstalldirs,
11468         * config/texinfo.tex, doc/standards.texi: Update from masters.
11470 2003-05-21  Paolo Bonzini  <bonzini@gnu.org>
11472         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
11473         it to eval.
11475 2003-05-21  Akim Demaille  <akim@epita.fr>
11477         * bin/autoupdate.in ($m4): Fix quotation.
11478         Reported by Martin Mokrejs.
11480 2003-05-19  Paul Eggert  <eggert@twinsun.com>
11482         * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
11483         Remove non-ASCII characters.
11485 2003-05-18  Paolo Bonzini  <bonzini@gnu.org>
11487         * tests/semantics.at (AC_SEARCH_LIBS): New test.
11488         * tests/semantics.at (AC_CHECK_HEADERS_OLD,
11489         AC_CHECK_HEADERS_NEW): New tests.
11491 2003-05-17  Akim Demaille  <akim@epita.fr>
11493         * lib/autoconf/functions.m4: Use the default includes so that
11494         memcmp be declared before being tested.
11495         Reported by Sander Niemeijer.
11496         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
11497         * doc/autoconf.texi (Default Includes): Document
11498         AC_INCLUDES_DEFAULT.
11500 2003-05-17  Akim Demaille  <akim@epita.fr>
11502         * lib/autoconf/specific.m4: Include signal.h and unistd.h.
11503         * doc/autoconf.texi (Obsolete Macros): Adjust.
11504         Reported by Werner LEMBERG and Debian Bug 190886.
11506 2003-05-16  Akim Demaille  <akim@epita.fr>
11508         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
11509         user name space clashes.
11510         Reported by Bruno Haible.
11512 2003-05-16  Akim Demaille  <akim@epita.fr>
11514         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
11515         * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
11516         them uniform, and more robust to Perl special characters.
11517         Reported by Martin Mokrejs.
11519 2003-05-14  Akim Demaille  <akim@epita.fr>
11521         * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
11523 2003-05-14  Akim Demaille  <akim@epita.fr>
11525         * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
11526         linux/irda.h.
11528 2003-05-12  Akim Demaille  <akim@epita.fr>
11530         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
11531         message.
11532         From Matthias Andree.
11534 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
11536         * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
11537         and truncate.
11539 2003-05-06  Akim Demaille  <akim@epita.fr>
11541         Don't try to be smart with aclocal 1.8+ because (i) aclocal no
11542         longer updates aclocal.m4 if useless, (ii) if a file m4_included
11543         by aclocal.m4 is changed it might require the importing of another
11544         m4 extension file, i.e., aclocal must be run.
11546         * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
11547         (&parse_args): Use --force with aclocal if required and supported.
11548         (&autoreconf_current_directory): Use &run_aclocal.
11550 2003-05-06  Akim Demaille  <akim@epita.fr>
11552         Lock autom4te's cache.
11554         * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
11555         * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
11556         argument instead of a file name, so that the request file remains
11557         open during the whole autom4te run.
11558         ($icache_file): New.
11559         (&freeze): Lock the $icache_file.
11561 2003-04-29  Derek Price  <derek@ximbiot.com>
11563         * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
11564         seperator with m4_append_uniq().  It doesn't work.
11565         (AT_CLEANUP): Add `;' to end of at_help_all.
11566         (AT_INIT): Allow --keywords to be specified more than once.  When
11567         grepping $at_help_all for keywords, use the field and keyword
11568         seperators to ensure a complete keyword match.  Alter at_prev handling
11569         to support the new --keywords behavior.
11571 2003-04-27  Karl Berry  <karl@freefriends.org>
11573         * doc/autoconf.texi: Make the dir entries in the autoconf manual
11574         align better with others.  I also made some of the individual
11575         entries on one line, for brevity and to make it easier for me to
11576         sort my dir-example file in the Texinfo distribution :).
11578 2003-04-12  Jim Meyering  <jim@meyering.net>
11580         * NEWS: Mention the new macro.
11581         * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
11582         * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
11583         * tests/c.at: Test AC_C_RESTRICT.
11584         * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
11586 2003-04-08  Akim Demaille  <akim@epita.fr>
11588         * bin/ifnames.in: Skip C++ comments.
11589         From Jeremy Yallop.
11591 2003-04-08  Akim Demaille  <akim@epita.fr>
11593         * GNUmakefile (SHELL): Don't assume sh is in /bin/.
11594         From Ilya Zakharevich.
11596 2003-04-08  Akim Demaille  <akim@epita.fr>
11598         * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
11599         net/if.h, stdlib.h.
11601 2003-04-01  Derek Price  <derek@ximbiot.com>
11603         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
11604         from Akim's checkin of 2003-03-29.
11606 2003-04-01  Derek Price  <derek@ximbiot.com>
11608         * tests/torture.at (Configuring subdirectories): Add missing
11609         close-quote for Akim's change from 2003-03-28.
11611 2003-04-01  Akim Demaille  <akim@epita.fr>
11613         * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
11614         (AC, AT, MS): these.
11615         (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
11616         New.
11617         Use them.
11618         * doc/Makefile.am (CLEANFILES): Adjust.
11619         (TEXI2DVI): Make it --batch.
11621 2003-03-31  Derek Price  <derek@ximbiot.com>
11623         * lib/autotest/general.m4: Revert the checkin from 2003-03-27
11624         which removed the main loop.
11625         Thanks to Akim Demaille.
11627 2003-03-29  Akim Demaille  <akim@epita.fr>
11629         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
11630         that starts a GUI.
11631         From Ilya Zakharevich.
11633 2003-03-29  Akim Demaille  <akim@epita.fr>
11635         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
11636         documentation to read is Autoconf's.
11637         Suggested by Paul Eggert.
11639 2003-03-28  Akim Demaille  <akim@epita.fr>
11641         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
11642         reading the section "Present But Cannot Be Compiled" when the
11643         header causes problems.
11645 2003-03-28  Akim Demaille  <akim@epita.fr>
11647         * tests/torture.at (Configuring subdirectories): Require aclocal
11648         1.4, otherwise the test fails, as it does support configure.ac.
11649         This fixes the "test 40 failed" bug reports.
11651 2003-03-28  Akim Demaille  <akim@epita.fr>
11653         * doc/autoconf.texi (C Compiler): `#line' portability.
11654         From Paul Eggert and Nelson H. F. Beebe.
11656 2003-03-27  Derek Price  <derek@ximbiot.com>
11658         * lib/autotest/general.m4: Eliminate main loop and reorganize test
11659         layout in order to allow scripting around test groups.
11661 2003-03-27  Derek Price  <derek@ximbiot.com>
11663         * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
11664         HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
11665         use new diversions in preparation for accepting new arguments and
11666         allowing scripting around tests.
11667         (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
11669 2003-03-26  Derek Price  <derek@ximbiot.com>
11671         * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
11672         obsolete AC_HELP_STRING.
11673         (AC_HELP_STRING): AU_DEFUN to...
11674         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
11675         * tests/m4sh.at (AS_HELP_STRING): New test.
11677         * tests/acgeneral.at: Regenerated.
11679 2003-03-26  Derek Price  <derek@ximbiot.com>
11681         * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
11682         sense.  Verbosify the diversion definitions comment.
11684 2003-03-26  Derek Price  <derek@ximbiot.com>
11686         * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
11687         AS_PREPARE.
11689 2003-03-21  Eric Siegerman  <eric_97@pobox.com>
11691         * doc/autoconf.texi (Present But Cannot Be Compiled):
11692         Grammar fixes and minor rewording. (trivial change)
11694 2003-03-06  Paul Eggert  <eggert@twinsun.com>
11696         Work around a problem noted by Nelson H. F. Beebe with coreutils
11697         4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
11698         2002/05/09) rejects '#line 32768 "configure"' because the line
11699         number overflows.
11700         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
11701         #line directives.
11702         * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
11703         * doc/autoconf.texi (Generating Sources): Document this.
11705 2003-03-01  Richard Dawe  <rich@phekda.freeserve.co.uk>
11707         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
11708         file name for the m4 program, when it has an "exe" file extension.
11709         DJGPP's error messages include the error code in brackets -
11710         remove the error code during normalization.
11712 2003-02-28  Akim Demaille  <akim@epita.fr>
11714         * doc/autoconf.texi (Present But Cannot Be Compiled): New.
11716 2003-02-28  Alexandre Duret-Lutz  <adl@gnu.org>
11718         * doc/autoconf.texi (Limitations of Make): Remove the section
11719         about `$<' in inference rules, it was a bogus interpretation of
11720         an old Automake change.  Discuss NetBSD, FreeBSD, OpenBSD, and
11721         Tru64 make in the "target lookup" section.
11722         (Automake): Automake 1.5+ no longer requires special tools to be
11723         present on the developer's host.
11725 2003-02-26  Richard Dawe  <rich@phekda.freeserve.co.uk>
11727         * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
11728         to a shell that can handle redirection or quoting correctly.
11729         Override SHELL with the shell detected by configure.
11730         Use of $^O suggested by Tim van Holder.
11731         * bin/autom4te.in (BEGIN): Likewise.
11732         * bin/autoreconf.in (BEGIN): Likewise.
11733         * bin/autoscan.in (BEGIN): Likewise.
11734         * bin/autoupdate.in (BEGIN): Likewise.
11735         * bin/ifnames.in (BEGIN): Likewise.
11737         * bin/ifnames.in: Add final newline to help and version messages.
11739         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
11740         to cope with DOS-style absolute paths, when constructing
11741         ${ac_make}.
11743         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
11744         When constructing paths with IFS=:, quote the path. If we're
11745         constructing a DOS-style absolute path, we don't want to split it
11746         on the colon.
11748         * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
11749         in description.
11751 2003-02-25  Pavel Roskin  <proski@gnu.org>
11753         * bin/autoheader.in: Add missing newline when printing
11754         suggestion how change AC_DEFINE call.
11756 2003-02-24  Paul Eggert  <eggert@twinsun.com>
11758         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
11759         2002-09-01 patch by replacing "test -n" with "test -z".
11760         This fixes a bug found by Jeff Painter and reported by Tom Epperly in
11761         <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
11763         * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
11764         to fix a mismatch between example and discussion.
11766 2003-02-24  Kevin Ryde  <user42@zip.com.au>
11768         * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
11769         format starting with "-".
11771 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
11773         * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
11774         is not portable inside Makefile.
11776 2003-02-20  Akim Demaille  <akim@epita.fr>
11778         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
11779         compiler says yeah, but preproc says nope, compiler is right.
11780         Conversely, prompt the reader to send a bug report to the
11781         maintainers of the package, not of Autoconf.
11783 2003-02-20  Klee Dienes  <kdienes@apple.com>
11785         * bin/autoreconf.in (autoreconf_current_directory): Properly
11786         handle an empty aclocal.m4.
11788 2003-02-20  Akim Demaille  <akim@epita.fr>
11790         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
11791         $ac_prefix_program.
11792         From Larry Jones.
11794 2002-12-23  Paul Eggert  <eggert@twinsun.com>
11796         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
11797         innocuous variant befor including <limits.h> or <assert.h>.  This
11798         works around a bug reported by Albert Chin: HP-UX 11i
11799         (and earlier versions) have a <limits.h> that declares
11800         gettimeofday and many other functions.
11802 2002-12-03  Paul Eggert  <eggert@twinsun.com>
11804         Version 2.57.
11806         * NEWS, configure.ac: Update version.
11808         * doc/fdl.texi: Upgrade to FDL version 1.2.
11810         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
11811         nontrivially in main's body, so that f's external declaration is
11812         not optimized away in AIX.  This should fix the bug reported by
11813         Martin Frydl in
11814         <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
11816         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
11817         _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
11818         defined, to support freestanding compilers.  This should fix the
11819         bug reported by Momchil Velkov in
11820         <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
11822         * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
11823         arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
11824         obsolete AC_CHECK_TYPE.  The missing empty arg was reported
11825         by Simon Josefsson in
11826         <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
11828         * Makefile.maint (www-gnu): New macro.
11829         (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
11830         the location has moved.
11832 2002-12-02  Martin Frydl  <martin@systinet.com>
11834         * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
11835         \(.*\) match is too long and there is something more to be checked.
11836         <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
11838 2002-11-15  Akim Demaille  <akim@epita.fr>
11840         Version 2.56.
11842         * config/install-sh: chmod +x.
11843         From Paul Eggert.
11844         * config/move-if-change: Indenting changes.
11845         * Makefile.am (AUTOMAKE_OPTIONS): Move to...
11846         * configure.ac (AM_INIT_AUTOMAKE): here.
11847         Require 1.7.1.
11849 2002-11-14  Akim Demaille  <akim@epita.fr>
11851         Version 2.55.
11853         * config/config.guess, config/config.sub, config/install-sh:
11854         Update from masters.
11856 2002-11-14  Akim Demaille  <akim@epita.fr>
11858         * Makefile.maint: Sync with Bison, i.e.:
11859         (po-check): Scan .l and .y files instead of the
11860         .c and the .h files that they generate.  This fixes the bug
11861         reported by Tim Van Holder in:
11862         <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
11863         Look for N_ as well as for _.  Try to avoid matching #define for
11864         N_ and _.
11865         From Paul Eggert.
11867 2002-11-14  Akim Demaille  <akim@epita.fr>
11869         * doc/autoconf.texi (C Compiler): Compiling several files at once.
11870         From Paul Eggert and Albert Chin-A-Young.
11872 2002-11-14  Akim Demaille  <akim@epita.fr>
11874         * doc/autoconf.texi (C Compiler): Solitary backslashes.
11875         From Paul Eggert and Albert Chin-A-Young.
11877 2002-11-14  Kevin Ryde  <user42@zip.com.au>
11879         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
11880         than assigning in main, to avoid HP cc +O3 optimizing it away.
11882 2002-11-12  Peter Eisentraut  <peter_e@gmx.net>
11884         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
11885         option.  Process --recheck after parsing all options.  Pass -q
11886         option to configure on --recheck.
11887         (AC_OUTPUT): Pass -q from configure to config.status.
11888         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
11889         arguments to record.
11890         * doc/autoconf.texi (config.status Invocation): Document
11891         config.status -q option.
11893 2002-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
11895         * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
11896         Makefile.in if Makefile.am exists.
11897         (output): Strip `.am' from Makefiles.  Don't
11898         output AC_CONFIG_FILES if no Makefiles were found.
11900 2002-11-07  Akim Demaille  <akim@epita.fr>
11902         * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
11903         (local_updates): New.
11904         * Makefile.maint: Update, from CVS Bison.
11905         (local_updates): New.
11907 2002-11-06  Akim Demaille  <akim@epita.fr>
11909         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
11910         declaration in extern "C" too.
11911         Reported by Roberto Bagnara.
11913 2002-11-06  Akim Demaille  <akim@epita.fr>
11915         * tests/torture.at (Configuring subdirectories): Don't use grep
11916         -w.
11917         * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
11918         Reported by Ezra Peisach.
11920 2002-11-05  Akim Demaille  <akim@epita.fr>
11922         * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
11923         Remove.
11924         We _have_ to stop using the old compatibility scheme that tried to
11925         avoid useless backslashes because Libtool 1.4.3 contains a
11926         AC_DEFINE([error_t], [int],
11927         [Define to a type to use for \`error_t' if it is not
11928         otherwise available.])
11929         We _have_ to quote the single quote and backslashes with \.  The
11930         old compatibility scheme saw that ` was backslashed, and therefore
11931         did not quote the single quote.  Hence before this patch, Autoconf
11932         was not compatible with Libtool.
11934 2002-11-04  Paul Eggert  <eggert@twinsun.com>
11936         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
11937         too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
11938         LC_NAME, LC_PAPER, LC_TELEPHONE.
11939         * doc/autoconf.texi (Special Shell Variables): Mention those vars.
11941 2002-11-04  Akim Demaille  <akim@epita.fr>
11943         Version 2.54c.
11945         * Makefile.maint (update, cvs-update, po-update, do-po-update):
11946         New.
11947         * config/texinfo.tex: Update.
11949 2002-11-03  Akim Demaille  <akim@epita.fr>
11951         * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
11952         from...
11953         (&autoreconf): here.
11954         ($help, $make, &parse_args, &autoreconf_current_directory):
11955         Support -m/--make.
11956         * doc/autoconf.texi (autoreconf Invocation): Adjust.
11958 2002-10-31  Bruno Haible  <bruno@clisp.org>
11960         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
11961         Change name of cache variable to ac_cv_func_malloc_0_nonnull.
11962         (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
11963         (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
11964         to ac_cv_func_realloc_0_nonnull.
11965         (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
11967 2002-10-31  Akim Demaille  <akim@epita.fr>
11969         The test suite was no longer checking for trailing envvars and files.
11971         * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
11972         (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
11974 2002-10-31  Akim Demaille  <akim@epita.fr>
11976         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
11977         `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
11978         Make variable, not a shell variable.
11979         Suggested by Bruno Haible.
11981 2002-10-31  Akim Demaille  <akim@epita.fr>
11983         * bin/autom4te.in (load_configuration): Reject #args out of any
11984         language.
11986 2002-10-31  Akim Demaille  <akim@epita.fr>
11988         * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
11989         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
11990         (_AC_RUN_IFELSE): Use it.
11991         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
11992         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
11993         * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
11994         inline it.
11996 2002-10-30  Akim Demaille  <akim@epita.fr>
11998         * bin/autom4te.in (&parse_args, $help): Support --no-cache.
11999         * doc/autoconf.texi (autom4te Invocation): Adjust.
12000         Suggested by Tim van Holder.
12002 2002-10-29  Paul Eggert  <eggert@twinsun.com>
12004         * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
12005         AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
12006         Problem reported by Bruno Haible.
12008 2002-10-29  Akim Demaille  <akim@epita.fr>
12010         * doc/autoconf.texi (Header Templates): Put also in words what the
12011         pictures says to assist free style readers.
12012         (Customizing autom4te): s/--cache=/--cache /.
12014 2002-10-29  Akim Demaille  <akim@epita.fr>
12016         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
12017         sys/wait.h.
12018         sparc_address_test returns void.
12019         Use it with an argument, as prototyped.
12020         From Bruno Haible.
12022 2002-10-29  Akim Demaille  <akim@epita.fr>
12024         * doc/autoconf.texi (Subdirectories): Cygnus dirs have
12025         configure.in, not configure.ac.
12026         Reported by Bruno Haible.
12028 2002-10-29  Akim Demaille  <akim@epita.fr>
12030         * tests/torture.at (Deep Package): New test.
12031         (Configuring subdirectories): Don't use a testSubDir as Autotest
12032         now does it itself.
12034 2002-10-29  Akim Demaille  <akim@epita.fr>
12036         * bin/autoreconf.in (&parse_args, $help): Support --warnings.
12037         * doc/autoconf.texi (Invoking autom4te): Rename as...
12038         (autom4te Invocation): this, for consistency with the other nodes.
12040 2002-10-29  Akim Demaille  <akim@epita.fr>
12042         * lib/autom4te.in (Autoconf): s/automate/autom4te/.
12043         Reported by Ralf Corsepius.
12045 2002-10-29  Akim Demaille  <akim@epita.fr>
12047         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
12048         characters is a back as an `obsolete' warning now.
12049         Reported by Ralf Corsepius.
12051 2002-10-28  Akim Demaille  <akim@epita.fr>
12053         * configure.ac: Bump to 2.54c.
12055 2002-10-28  Akim Demaille  <akim@epita.fr>
12057         Version 2.54b.
12059         * tests/foreign.at (Libtool): Adjust to broken libtoolize.
12061 2002-10-28  Akim Demaille  <akim@epita.fr>
12063         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
12064         m4 executable names, and different GNU M4 version.
12065         Reported by Ezra Peisach and Paul Jarc.
12067 2002-10-27  Akim Demaille  <akim@epita.fr>
12069         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
12070         AC_RUN_IFELSE.
12072 2002-10-27  Akim Demaille  <akim@epita.fr>
12074         * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
12075         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
12076         Die when a simple Fortran program cannot be compiled.
12077         * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
12078         Issue a warning if no function is given.
12080 2002-10-27  Akim Demaille  <akim@epita.fr>
12082         * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
12083         Move the documentation of AC_TRY_RUN to...
12084         (Obsolete Macros): here.
12085         Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
12086         (autoconf Invocation): Remove the duplicates with `invoking
12087         autom4te'.
12088         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
12089         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
12091 2002-10-27  Akim Demaille  <akim@epita.fr>
12093         * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
12094         and AC_LANG_FUNC_LINK_TRY.
12095         (Examining Libraries): Rename as...
12096         (Running the Linker): this.
12097         Document AC_LINK_IFELSE.
12098         Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
12099         (Obsolete Macros): here.
12100         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
12101         AC_TRY_LINK_FUNC nor AC_TRY_LINK.
12102         * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
12103         * lib/autoconf/headers.m4 (AC_USG): Likewise.
12105 2002-10-27  Akim Demaille  <akim@epita.fr>
12107         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
12109         More `check config.log' messages.
12111         * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
12112         * doc/autoconf.texi (Printing Messages): Document it.
12113         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
12114         appropriate.
12115         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
12116         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
12117         (_AC_COMPILER_OBJEXT): Likewise.
12118         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
12119         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
12120         Likewise.
12121         * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
12122         Likewise.
12124         Deprecate macros with unusual interfaces.
12126         * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
12127         (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
12129         Document the new ones, and proper style.
12131         * doc/autoconf.texi (Generating Sources): New.
12132         Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
12133         (Examining Declarations): Rename as...
12134         (Running the Preprocessor): this.
12135         Document AC_PREPROC_IFELSE.
12136         (Examining Syntax): Rename as...
12137         (Running the Compiler): this.
12138         (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
12139         (Obsolete Macros): Move the definition of AC_TRY_CPP and
12140         AC_TRY_COMPILE here.
12142 2002-10-27  Akim Demaille  <akim@epita.fr>
12144         Move sections around.
12146         * doc/autoconf.texi (Customizing autom4te): Remove a lost
12147         sentence.
12148         Reported by Burno Haible.
12149         (Language Choice): Now the first section of...
12150         (Writing Tests): this section.
12151         Make the introduction less C-centric.
12152         (Guidelines, Test Functions): Move to...
12153         (Writing Test Programs): this new section.
12154         (Test Programs): Merge into...
12155         (Run Time): this.
12157 2002-10-27  Akim Demaille  <akim@epita.fr>
12159         * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
12160         autom4te.in that resulted in the need for two `make' runs.
12162 2002-10-27  Akim Demaille  <akim@epita.fr>
12164         * configure.ac: Bump to 2.54b.
12166 2002-10-25  Akim Demaille  <akim@epita.fr>
12168         Version 2.54a.
12170         * Makefile.maint: Update from the Coreutils.
12171         (AMTAR): Remove, obsolete.
12172         (automake_repo): Update to redhat.com.
12173         (cvs_file): New.
12174         Adjust to the fact that ansi2knr is now hosted by Automake.
12175         * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
12176         * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
12177         Update from masters.
12178         * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
12179         autoscan.pre is not to be installed, and autoscan.list is not to
12180         be shipped.
12181         (CLEANFILES): Add autoscan.list.
12182         (autoscan.list): Disable the cache.
12183         * bin/Makefile.am: Include freeze.mk.
12185 2002-10-25  Akim Demaille  <akim@epita.fr>
12187         * bin/autom4te.in (&load_configuration): Take the file as
12188         argument.
12189         (&parse_args): Handle -C, --cache.
12190         ($help): Adjust.
12191         (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
12192         * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
12193         * doc/autoconf.texi (Invoking autom4te): Document --cache.
12194         Now a subsection of...
12195         (Using autom4te): This new section.
12196         (Customizing autom4te): New.
12197         (autom4te.cache): Adjust.
12199 2002-10-25  Akim Demaille  <akim@epita.fr>
12201         * doc/autoconf.texi (Generic Headers): More information on how to
12202         use AC_CHECK_HEADERS.
12204 2002-10-25  Akim Demaille  <akim@epita.fr>
12206         * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
12207         Space changes.
12209 2002-10-25  Akim Demaille  <akim@epita.fr>
12211         * bin/autoscan.in (output): Output AC_PREREQ.
12212         (%needed_macros): Add AC_PREREQ so that configure.ac without one
12213         be reported.
12215 2002-10-23  Akim Demaille  <akim@epita.fr>
12217         * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
12218         document _Bool.
12220 2002-10-23  Akim Demaille  <akim@epita.fr>
12222         * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
12223         Reported by Peter Eisentraut.
12225 2002-10-23  Akim Demaille  <akim@epita.fr>
12227         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
12228         type _Bool.
12229         Fix a typo.
12230         * doc/autoconf.texi (Particular Headers): Adjust according to Paul
12231         Eggert's recommandations.
12233 2002-10-22  Akim Demaille  <akim@epita.fr>
12235         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
12236         Bison, by Paul Eggert.
12237         * doc/autoconf.texi (Particular Headers): Document it.
12239 2002-10-22  Aaron M. Ucko  <amu@alum.mit.edu>
12241         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
12242         `$ac_configure_args'.
12244 2002-10-22  Akim Demaille  <akim@epita.fr>
12246         * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
12247         (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
12248         From Art Haas.
12250 2002-10-22  Akim Demaille  <akim@epita.fr>
12252         Restore the 2002-10-11  Akim Demaille  <akim@epita.fr> patch:
12254         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
12255         (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
12256         (_AC_CHECK_HEADER_NEW): Rename as...
12257         (AC_CHECK_HEADER): this.
12259 2002-10-22  Akim Demaille  <akim@epita.fr>
12261         * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
12262         words about HP-UX cmp: it was actually a user-written cmp.
12264 2002-10-22  Akim Demaille  <akim@epita.fr>
12266         * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
12267         are a few warnings.
12268         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
12269         Quote for Perl '' strings, not "".
12270         * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
12271         strings.
12273 2002-10-22  Akim Demaille  <akim@epita.fr>
12275         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
12276         characters is a syntax warning now.
12277         (_AS_QUOTE): Accept $2 as list of characters to quote.
12278         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
12279         Quote for Perl, not sh.
12280         * bin/autoheader.in: When $debug, report the file which is
12281         `do'ne.
12282         * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
12283         `@', to tickle Perl's lists.
12284         Reported by Carlos Velasco.
12286 2002-10-18  Akim Demaille  <akim@epita.fr>
12288         * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
12289         missing included files _are_ errors.
12290         Thanks to Alexandre Duret-Lutz.
12291         * tests/tools.at (autom4te cache): Adjust.
12292         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
12293         (AT_CHECK_M4SUGAR): Use it.
12294         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
12295         Adjust.
12296         * tests/tools.at (autom4te): Now it does exit 1.
12298 2002-10-17  Akim Demaille  <akim@epita.fr>
12300         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
12301         Fixes the `AC_ARG_VAR' test failures.
12302         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
12303         * lib/freeze.mk (check-forbidden-patterns): New.
12304         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
12305         * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
12306         * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
12307         /dev/null.
12308         Reported months ago by H. Merijn Brand.
12310 2002-10-17  Akim Demaille  <akim@epita.fr>
12312         * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
12314 2002-10-16  Paul Eggert  <eggert@twinsun.com>
12316         * Makefile.maint (wget_files): Remove ansi2knr.c.
12317         (ansi2knr.c-url_prefix): Remove.
12319 2002-10-16  Akim Demaille  <akim@epita.fr>
12321         Because of caching, some files that no longer exist and are no
12322         longer required can still cause errors.
12323         Reported by Alexandre Duret-Lutz.
12325         * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
12326         to frozen files in @ARGV, as @ARGV must remain being a list of
12327         files.  Rather, at M4 call sites, use this...
12328         (&files_to_options): New function.
12329         (&freeze): Use &error.
12330         (&up_to_date): If a file that was included according to the cache
12331         is no longer there, then the output is out dated.
12332         (&main): Don't even check whether a file is up to date is anyway
12333         --force is given.
12334         * tests/tools.at (autom4te cache): New.
12336 2002-10-16  Akim Demaille  <akim@epita.fr>
12338         * bin/autoconf.as: Kill dead options.
12339         * bin/autoupdate.in (&parse_args): Kill old options.
12340         * bin/autoreconf.in (&parse_args): Remove dead options.
12341         Factor some code.
12342         (&autoreconf): Report the directories we enter *and leave*, so
12343         that error messages can be easily located, and use GNU Make
12344         format, so that Emacs' compile mode understands us.
12345         * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
12346         if some file was changed instead of `print'.
12347         * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
12348         (&parse_args): Remove the dead options.
12349         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
12350         autoheader's quiet mode.
12351         (AT_CHECK_AUTOUPDATE): Likewise.
12352         * tests/tools.at (autoupdate): Adjust.
12353         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
12355 2002-10-11  Akim Demaille  <akim@epita.fr>
12357         No longer use CPP to check for the existing of headers: use CC to
12358         check for compilability.
12360         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
12361         (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
12362         (_AC_CHECK_HEADER_NEW): Rename as...
12363         (AC_CHECK_HEADER): this.
12365         * lib/autotest/general.m4 (AT_INIT): Include the failed test
12366         numbers in the Subject suggestion.
12368 2002-10-11  Akim Demaille  <akim@epita.fr>
12370         * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
12371         Suggest using AC_CHECK_DECLS instead.
12373 2002-10-11  Akim Demaille  <akim@epita.fr>
12375         * tests/torture.at (AC_ARG_VAR): Have configure report the value
12376         of `precious'.
12378 2002-10-11  Akim Demaille  <akim@epita.fr>
12380         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
12381         file name to enable parallel executions.
12382         From Sam Varshavchik.
12384 2002-10-08  Akim Demaille  <akim@epita.fr>
12386         * bin/autoreconf.in (&autoreconf): Run autopoint before the first
12387         aclocal invocation, as Gettext macros might not be visible to
12388         aclocal.
12389         Instead of blindly running autopoint, scan configure.ac (not the
12390         traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
12391         Reported by Paul D. Smith.
12393 2002-10-08  Paul Eggert  <eggert@twinsun.com>
12395         Work around problems found when POSIXLY_CORRECT=1 is set.
12396         None of this seems to have anything to do with POSIX, really,
12397         but it's how Perl getopt works.
12398         * bin/autom4te.in (parse_args): Configure GetOpt with
12399         "permute", too.
12400         * doc/autoconf.texi (Invoking autom4te):
12401         --warning -> --warnings.
12402         * lib/autom4te.in: --warning -> --warnings.
12404 2002-09-28  Akim Demaille  <akim@epita.fr>
12406         * doc/autoconf.texi (autom4te.cache): New section.
12408 2002-09-28  Akim Demaille  <akim@epita.fr>
12410         * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
12411         (Automake-preselections): Update.
12412         * bin/autoreconf.in, bin/autoheader.in: Comment changes.
12414 2002-09-28  Akim Demaille  <akim@epita.fr>
12416         * lib/autoscan/autoscan.pre: Move all the remaining rules to...
12417         * lib/autoconf/c.m4, lib/autoconf/functions.m4,
12418         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
12419         * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
12421 2002-09-28  Akim Demaille  <akim@epita.fr>
12423         * tests/torture.at (Configuring subdirectories): Be robust to
12424         users who use config.site to require for a cache: in this case,
12425         the two last configure runs, using two different sets of
12426         arguments, trigger a legitimate error.
12428 2002-09-28  Akim Demaille  <akim@epita.fr>
12430         * tests/m4sh.at (Functions Support, Functions and return Support):
12431         New.
12433 2002-09-28  Akim Demaille  <akim@epita.fr>
12435         * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
12436         autoheader are Perl programs.
12437         (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
12438         (autom4te): Specify that the sources are in the $srcdir.
12439         * doc/autoconf.texi (Installation Directory Variables): Adjust.
12441 2002-09-28  Akim Demaille  <akim@epita.fr>
12443         * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
12444         (tm_zone): Move their rules to...
12445         * lib/autoconf/types.m4: here, using AN_ macros.
12446         * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
12447         (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
12448         (make, mawk, nawk, ranlib, yacc): Similarly, move to...
12449         * lib/autoconf/programs.m4: here.
12450         * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
12451         (ETAGS_FOR_AUTOCONF): New.
12452         Use it.
12454 2002-09-28  Akim Demaille  <akim@epita.fr>
12456         * lib/autoconf/autoscan.m4: New file.
12457         * lib/autoconf/autoconf.m4: Include it.
12458         * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
12459         that were listed in the original autoscan.list.
12460         * lib/autoconf/headers.m4: Similarly with headers.
12461         * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
12462         (.m4.m4f): Don't pass --prepend-include, since that's done by
12463         tests/autom4te itself.
12464         * lib/autoscan/Makefile.am: Include freeze.mk.
12465         (autoscan.list): New target --this file is no longer a source.
12466         (autoscan.pre): New file.
12468 2002-09-28  Akim Demaille  <akim@epita.fr>
12470         * bin/autoscan.in (@kinds): Make them singular.
12471         Adjust all uses.
12472         (&init_tables): When --debug, report the list of rules to ease
12473         tracking changes in autoscan.list.
12474         * lib/autoscan/autoscan.list (function): Strip comments, sort.
12476 2002-09-28  Akim Demaille  <akim@epita.fr>
12478         * lib/autoscan/functions, lib/autoscan/headers,
12479         * lib/autoscan/identifiers, lib/autoscan/makevars,
12480         * lib/autoscan/programs: Merge into...
12481         * lib/autoscan/autoscan.list: this.
12482         * bin/autoscan.in (&init_tables): Adjust.
12484 2002-09-28  Akim Demaille  <akim@epita.fr>
12486         * lib/autoscan/functions, lib/autoscan/headers,
12487         * lib/autoscan/identifiers, lib/autoscan/makevars,
12488         * lib/autoscan/programs: Make the `kind' explicit, i.e., each
12489         `functions' line is now prefixed with `function:'.
12490         * bin/autoscan.in (&init_tables): Adjust.
12492 2002-09-28  Akim Demaille  <akim@epita.fr>
12494         From now on, autoscan files must always map a macro name to a
12495         word: there is no `default' macro for autoscan.
12497         * bin/autoscan.in (&init_tables): Reject entries with no macro at
12498         all.
12499         * lib/autoscan/functions, lib/autoscan/headers: Make the macro
12500         explicit.
12502 2002-09-28  Akim Demaille  <akim@epita.fr>
12504         * bin/autoscan.in (%c_keywords): Remove.
12505         (&used): Keep only track of the words we might be interested in.
12506         (&output_kind): It is no longer needed to look for non active
12507         checks.
12509 2002-09-27  Akim Demaille  <akim@epita.fr>
12511         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
12512         jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
12513         * lib/autoscan/functions: Adjust.
12514         * doc/autoconf.texi (Particular Functions): Adjust.
12516 2002-09-27  Akim Demaille  <akim@epita.fr>
12518         * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
12519         from /tmp.
12520         Thanks to Bill Moseley and Paul Eggert.
12521         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
12522         the tmpdir must be created.
12523         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
12524         dir be in the build tree, instead of $TMPDIR.
12526 2002-09-27  Akim Demaille  <akim@epita.fr>
12528         * bin/autoscan.in: Improve the comments.
12529         (&parse_args): Drop obsolete undocumented options.
12530         (&output_kind): Output warnings.
12531         * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
12532         (getwd): Trigger a warning.
12534 2002-09-26  Akim Demaille  <akim@epita.fr>
12536         * bin/autoreconf.in: Clarify that -s is meaningless without -i.
12537         Reported by Ralf Corsepius.
12538         * doc/autoconf.texi (autoreconf Invocation): Likewise.
12540 2002-09-26  Akim Demaille  <akim@epita.fr>
12542         Single suffix rules and seperated dependencies are not portable.
12544         * doc/autoconf.texi (Installation Directory Variables): Update.
12545         (Limitations of Make): Some about `Single Suffix Rules and
12546         Separated Dependencies'.
12547         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
12548         (ifnames, autoscan, autom4te): Un-factor into several rules.
12550 2002-09-25  Paul Eggert  <eggert@twinsun.com>
12552         * BUGS (Interoperability bugs): New section.  Mention libtool
12553         1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
12555 2002-09-24  Paul Eggert  <eggert@twinsun.com>
12557         Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
12558         make handles suffix-rules differently from GNU make.
12560         * bin/Makefile.am (SUFFIXES, .in): Remove.
12561         (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
12562         Move the body of the old .in rule here.
12564 2002-09-16  Akim Demaille  <akim@epita.fr>
12566         i960 compilers create `b.out' files by default.
12567         Reported by Ralf Corsepius.
12569         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
12570         (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
12572 2002-09-13  Paul Eggert  <eggert@twinsun.com>
12574         * doc/autoconf.texi (Particular Headers): Remove obsolete
12575         reference to `struct timezone' in the description of
12576         AC_HEADER_TIME.
12578 2002-09-13  Akim Demaille  <akim@epita.fr>
12580         Version 2.54.
12582         * config/config.sub, config/config.guess: Update.
12583         * Makefile.maint: Update from bits of the Coreutils 4.5.1.
12584         * Makefile.am: Adjust.
12586 2002-09-13  Akim Demaille  <akim@epita.fr>
12588         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
12589         reading config.log when the compiler is rejected.
12590         Suggested by Guido Draheim.
12592 2002-09-13  Akim Demaille  <akim@epita.fr>
12594         * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
12595         (chdir_init) might hang when stat'ing mounted directories.
12596         Reported by Vance Shipley.
12598 2002-09-12  Akim Demaille  <akim@epita.fr>
12600         * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
12601         the lists.
12603 2002-09-12  Akim Demaille  <akim@epita.fr>
12605         * doc/autoconf.texi (Defining Symbols): Present two different
12606         prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
12607         difference between 1 argument calls, and 2-3 argument calls.
12609 2002-09-12  Peter Eisentraut  <peter_e@gmx.net>
12611         * doc/autoconf.texi: Review grammar and punctuation.
12613 2002-09-11  Paul Eggert  <eggert@twinsun.com>
12615         * doc/autoconf.texi: Fix minor formatting, spelling, and
12616         grammatical typos.
12617         (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
12618         AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
12619         is obsolescent.
12621 2002-09-11  Akim Demaille  <akim@epita.fr>
12623         * doc/autoconf.texi (Questions): Rename as...
12624         (FAQ): this.
12625         (Defining Directories): New.
12627 2002-09-09  Akim Demaille  <akim@epita.fr>
12629         * doc/autoconf.texi (Making testsuite Scripts): Update.
12630         Suggested by Nishio Futoshi.
12632 2002-09-09  Koji Arai  <JCA02266@nifty.ne.jp>
12634         * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
12635         plain `@' is wanted.
12637 2002-09-09  Akim Demaille  <akim@epita.fr>
12639         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
12640         `duplicates', since the algorithm was too naive and could keep
12641         `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
12642         keep `--prefix foo --prefix bar' as `--prefix foo bar'.
12643         Reported by Ralf Corsepius.
12644         * tests/torture.at (Configuring subdirectories): Exercise these
12645         cases.
12647 2002-09-09  Akim Demaille  <akim@epita.fr>
12649         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
12650         looking for a replacement file.
12651         * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
12652         directory is relative.
12653         * doc/autoconf.texi (Generic Functions): Clarify the replacement
12654         directory definition.
12655         Reported by Andreas Schwab and Jim Meyering.
12657 2002-09-06  Akim Demaille  <akim@epita.fr>
12659         * doc/autoconf.texi (Setting Output Variables): Clarify what
12660         precious variables are.
12661         Suggested by Pontus Skoeld.
12663 2002-09-05  Akim Demaille  <akim@epita.fr>
12665         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
12666         (ifnames, autoscan, autom4te): Since we don't only depend on
12667         configure.ac variables (such as VERSION etc.), but also on prefix
12668         and so forth, depend on Makefile, not configure.ac.
12669         Reported by Alexandre Duret-Lutz.
12670         * doc/autoconf.texi (Installation Directory Variables): Adjust.
12672 2002-09-05  Kevin Ryde  <user42@zip.com.au>
12674         * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
12675         doesn't seem to be confined to ia64, just say "some versions".
12677 2002-09-04  Akim Demaille  <akim@epita.fr>
12679         * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
12680         Automake 1.6c.
12681         * Makefile.am (maintainer-clean-local): Remove.
12682         (MAINTAINERCLEANFILES): Remove COPYING.
12684 2002-09-03  Paul Eggert  <eggert@twinsun.com>
12686         * doc/autoconf.texi (Configuration Commands): Remove obsolete
12687         example for AC_CONFIG_COMMANDS_PRE.  Problem reported by Marcus
12688         Brinkmann.
12690 2002-09-03  Akim Demaille  <akim@epita.fr>
12692         * configure.ac: Bump to 2.53d.
12693         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
12694         as of today, on Automake's team suggestion.
12696 2002-09-03  Akim Demaille  <akim@epita.fr>
12698         Version 2.53c.
12700 2002-09-02  Akim Demaille  <akim@epita.fr>
12702         * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
12703         SITE_MACRO_DIR.
12704         * configure.ac: Disable SITE_MACRO_DIR.
12706 2002-09-02  Jim Meyering  <meyering@lucent.com>
12708         * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
12709         i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
12710         Also, tweak grammar: s/make sure to/be sure to/.
12712 2002-09-02  Paul Eggert  <eggert@twinsun.com>
12714         * doc/autoconf.texi (Limitations of Builtins): Explain why logical
12715         directory names are generally preferable to physical names.
12717 2002-09-02  Akim Demaille  <akim@epita.fr>
12719         * lib/Autom4te/General.pm (&update_file): s/die/error/.
12720         Reported by Raja R. Harinath.
12721         * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
12722         * bin/autoupdate.in: Use error instead of die.
12724 2002-09-01  Paul Eggert  <eggert@twinsun.com>
12726         * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
12727         ordinary shell concatenation rather than echo+tr+sed command that
12728         runs afoul of a long-line-related sed bug in Solaris 8.
12730         * bin/autoheader.in (parse_args): --warning -> --warnings.
12732         * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
12733         stdout, as traditional "ls" does.
12734         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
12735         _AC_COMPILER_EXEEXT_O): Likewise.
12736         * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
12738         * bin/autoconf.as: Add --prepend-include option.  This patch was
12739         applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
12740         but bin/autoconf.in is generated automatically from bin/autoconf.as.
12742         * bin/autoconf.in, configure: Regenerate.
12744         * doc/autoconf.texi (Special Shell Variables): Mention
12745         ENV, MAIL, MAILPATH, PS1, PS2, PS4.  Index PWD.
12747         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
12748         MAILPATH and set PS1, PS2, PS4 to default values, to work
12749         around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
12750         For LC_ALL etc, first try to set to "C" as POSIX requires and as
12751         the Autoconf documentation specifies; fall back to "unset" only if
12752         this fails.  Use a shell for-loop for this rather than an m4 loop,
12753         to shorten the output script.
12755 2002-08-30  Paul Eggert  <eggert@twinsun.com>
12757         * doc/autoconf.texi (Special Shell Variables): Mention POSIX
12758         1003.1-2001's requirements for CDPATH.  Give a simpler workaround
12759         for the CDPATH problem.  Document PWD.
12760         (Limitations of Builtins): Document the problem that "cd $foo" and
12761         "ls $foo" may refer to different directories in shells conforming
12762         to POSIX 1003.1-2001.  Use PS1 rather than CDPATH for "unset"
12763         example, since the old example is now out of date.
12765         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
12766         FOO" and "ls FOO" talk about different directories; this catches
12767         problems when POSIX 1003.1-2001 "cd" fails due to symlink
12768         spaghetti.
12770         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
12771         of rolling our own unset.
12772         (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
12773         in practice we needn't worry about CDPATH if unset doesn't work.
12775         * Makefile.in, aclocal.m4, bin/Makefile.in,
12776         config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
12777         lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
12778         lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
12779         lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
12780         tests/Makefile.in: Regenerate with Automake 1.6.3.
12782         * config/config.guess, config/config.sub, config/mkinstalldirs:
12783         Update.
12785         * configure: Regenerate with self.
12787 2002-08-30  Kevin Ryde  <user42@zip.com.au>
12789         * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
12790         default output.
12792 2002-08-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12794         * bin/autom4te.in (Request::load): Correctly test for "do" read
12795         failure.
12797 2002-08-29  Akim Demaille  <akim@epita.fr>
12799         * lib/Autom4te/General.pm (&xqx): New.
12800         (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
12801         hand, which is not portable.
12802         (&error): New.
12803         * bin/autom4te.in: Use them.
12804         Use &error instead of die.
12805         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
12806         Adjust.
12808 2002-08-17  Paul Eggert  <eggert@twinsun.com>
12810         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
12811         default list of compilers to try, since it was long ago superseded
12812         by the ksh fc builtin.  Suggested by Steven G. Johnson.
12814 2002-07-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
12816         * doc/autoconf.texi (Invoking autom4te): End the option table,
12817         fixing a bug introduced by the previous patch.
12818         (Limitations of Make): Add a 'target lookup' subentry in the
12819         'VPATH' entry.  Rewrite all `make' occurences as `@command{make}'.
12821 2002-07-29  Mark D. Roth  <roth@feep.net>
12823         * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
12824         options and use $AUTOM4TE_PATH.
12825         * doc/autoconf.texi: Remove documentation of autom4te
12826         --include-envvar and --site-macro-subdir options and document
12827         use of $AUTOM4TE_PATH.
12828         * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
12829         arguments from each language section.
12831 2002-07-29  Paul Eggert  <eggert@twinsun.com>
12833         * doc/install.texi: Include copyright symbol in copyright notice.
12835         * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
12836         Replace with:
12837         (AM_MAKEINFOFLAGS): New macro.
12838         * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
12839         * Makefile.am (INSTALL): Use the new macros.
12840         Use -o rather than --output, since "missing" does not grok --output.
12842 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
12844         * doc/autoconf.texi (Limitations of Make): Escaped newlines in
12845         comments do not always work. Never trust the exit status of
12846         `make -k'.
12848 2002-07-24  Kevin Ryde  <user42@zip.com.au>
12850         * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
12851         Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
12853 2002-07-23  Paul Eggert  <eggert@twinsun.com>
12855         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
12856         Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
12857         apparently treats PATH="nonexistent" as if it contained ".".
12858         Bug reported by Stefan `Sec' Zehl.
12860 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
12862         * doc/autoconf.texi (Limitations of Make): Mention the special
12863         handling of the obj/ directory by BSD make.
12865 2002-07-20  Kevin Ryde  <user42@zip.com.au>
12867         * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
12868         backslashes.
12870 2002-07-19  Akim Demaille  <akim@epita.fr>
12872         * doc/autoconf.texi (Function Portability): `exit'.
12873         (Programming in M4sh): Ethymology of M4sh.
12875 2002-07-19  Akim Demaille  <akim@epita.fr>
12877         * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
12879 2002-07-18  Akim Demaille  <akim@epita.fr>
12881         Version 2.53b.
12883 2002-07-18  Akim Demaille  <akim@epita.fr>
12885         * config/config.guess, config/config.sub: Update.
12887 2002-07-18  Akim Demaille  <akim@epita.fr>
12889         Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
12890         Automake's parts.
12892         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
12893         * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
12894         * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
12896 2002-07-18  Akim Demaille  <akim@epita.fr>,
12897             Alexandre Duret-Lutz  <duret_g@epita.fr>
12899         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
12900         _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
12902 2002-07-17  Russ Allbery  <rra@stanford.edu>
12904         * doc/autoconf.texi (Initializing configure): Clarify the
12905         description of the tarname default.
12907 2002-07-17  Andreas Buening  <andreas.buening@nexgo.de>
12909         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
12910         ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
12911         latter was not run.
12913 2002-07-17  Akim Demaille  <akim@epita.fr>
12915         * lib/Autom4te/General.pm (find_file): Browse the directories in
12916         the order they are given.
12918 2002-07-17  Akim Demaille  <akim@epita.fr>
12920         * tests/wrapsh.as, tests/wrappl.as: Merge into...
12921         * tests/wrapper.as: this.
12922         * tests/Makefile.am, configure.ac: Adjust.
12924 2002-07-17  Mark D. Roth  <roth@feep.net>
12926         * configure.ac: Add --enable-site-macro-dir option.
12927         * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
12928         * bin/autom4te.in: Add --prepend-include, --include-envvar, and
12929         --site-macro-subdir options.
12930         * bin/autoconf.in: Add --prepend-include option.
12931         * bin/autoheader.in: Add --prepend-include option.
12932         * bin/autoreconf.in: Add --prepend-include option.
12933         * bin/autoscan.in: Add --prepend-include option.
12934         * bin/autoupdate.in: Add --prepend-include option.
12935         * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
12936         macro directory, remove note that include path directories are
12937         used in reverse order, and document --prepend-include option.
12938         * lib/autom4te.in: Use --prepend-include instead of --include.
12939         * tests/wrapsh.in: Use --prepend-include instead of --include.
12941 2002-07-17  Akim Demaille  <akim@epita.fr>
12943         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
12944         tarnames.
12945         * doc/autoconf.texi (Initializing configure): Adjust.
12947 2002-07-17  Akim Demaille  <akim@epita.fr>
12949         * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
12950         (_AC_FUNC_MALLOC): New.
12951         (AC_FUNC_MALLOC): Use the latter.
12952         Define HAVE_MALLOC to 0 if broken.
12953         * doc/autoconf.texi (Particular Functions): Adjust.
12955 2002-07-16  Akim Demaille  <akim@epita.fr>
12957         * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
12958         * doc/autoconf.texi (C Compiler): Adjust.
12960 2002-07-09  Akim Demaille  <akim@epita.fr>
12962         * doc/autoconf.texi: Properly set the ``header'' part.
12964 2002-07-09  Akim Demaille  <akim@epita.fr>
12966         * doc/autoconf.texi (Systemology): Some about Darwin.
12968 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
12970         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
12971         Don't use AC_REQUIRE in AU_DEFUN.
12973 2002-07-09  Art Haas  <ahaas@neosoft.com>
12975         * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
12977 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
12979         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
12980         bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
12981         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
12982         so that Emacs setups GNU style for perl-mode and cperl-mode.
12984 2002-06-27  Paul Eggert  <eggert@twinsun.com>
12986         * config/install-sh: Quote $src.  Prefer || to test's -o option,
12987         as per "Limitations of Builtins".
12988         * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
12989         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
12991         * tests/mktests.sh: Use grep instead of fgrep, as per
12992         "Limitations of Builtins".
12994 2002-06-15  Paul Eggert  <eggert@twinsun.com>
12996         * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
12997         autom4te_perllibdir): Set to top build dir or src dir as appropriate,
12998         so that we consistently test the just-built programs.
12999         * tests/wrappl.as: Likewise.
13001 2002-06-12  Paul Eggert  <eggert@twinsun.com>
13003         * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
13004         name, so that symlinks to 'autoconf' work properly.  Bug reported
13005         by Bruno Haible.
13006         * bin/autoheader.in (AUTOM4TE): Likewise.
13007         * bin/autoreconf.in (autoconf, autoheader): Likewise.
13008         * bin/autoscan.in (autom4te): Likewise.
13009         * bin/autoupdate.in (autom4te): Likewise.
13011         * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
13012         btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
13013         on Solaris 2.5.1.
13015 2002-06-11  Andreas Schwab  <schwab@suse.de>
13017         * doc/autoconf.texi: Add more dir entries.
13019 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
13021         * bin/autom4te.in ($cache): Don't define using `$me', the name
13022         of the cache should not depend on the name under which autom4te
13023         was installed.
13025 2002-06-07  Akim Demaille  <akim@epita.fr>
13027         * tests/tools.at (autoconf: forbidden tokens, basic)
13028         (autoconf: forbidden tokens, exceptions): Adjust to the change of
13029         words in autom4te.in.
13031 2002-06-07  Peter Eisentraut  <peter_e@gmx.net>
13033         * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
13034         _AC_LANG_PROGRAM_C_F77_HOOKS.
13036 2002-06-07  Akim Demaille  <akim@epita.fr>
13038         * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
13039         rename as...
13040         (AC_REPLACE_FNMATCH): this.
13041         * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
13042         AC_FUNC_FNMATCH_GNU.
13044 2002-06-07  Akim Demaille  <akim@epita.fr>
13046         * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
13047         Rosetta Stone for Unix.
13049 2002-06-07  Akim Demaille  <akim@epita.fr>
13051         * bin/autom4te.in (warn_forbidden): When rejecting a token,
13052         suggest m4_pattern_allow.
13053         Suggested by Adam J. Richter.
13055 2002-06-07  Akim Demaille  <akim@epita.fr>
13057         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
13058         ac_config_libobj_dir.
13059         (AC_CONFIG_LIBOBJ_DIR): New.
13060         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
13061         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
13062         Use ac_config_libobj_dir to find the replacement files.
13063         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
13064         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
13065         (AC_REPLACE_FNMATCH_GNU): these.
13066         (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
13067         * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
13068         * tests/mktests.sh (ac_exclude_list): Don't check
13069         AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
13071 2002-06-06  Paul Eggert  <eggert@twinsun.com>
13073         * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
13074         if ln doesn't work.
13075         * NEWS: Likewise.
13076         * doc/autoconf.texi (Configuration Links): Likewise.
13077         (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
13079 2002-06-05  Paul Eggert  <eggert@twinsun.com>
13081         * config/config.guess, config/config.sub, config/texinfo.tex:
13082         Update from masters.
13084 2002-05-29  Paul Eggert  <eggert@twinsun.com>
13086         * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
13087         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
13088         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
13089         Likewise.
13090         * lib/autoconf/Makefile.am (check-local): Likewise.
13091         * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
13092         * lib/autoconf/types.m4 (commentary only): Likewise.
13093         * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
13094         * lib/autotest/Makefile.am (check-local): Likewise.
13095         * lib/m4sugar/Makefile.am (check-local): Likewise.
13096         * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
13097         * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
13099         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
13100         * doc/autoconf.texi (Particular Programs): Document them.
13101         (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
13102         * NEWS: Likewise.
13104 2002-05-27  Paul Eggert  <eggert@twinsun.com>
13106         * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
13107         * NEWS, doc/autoconf.texi (Particular Types): Document it.
13108         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
13109         instead of AC_MBSTATE_T, which never existed.
13111 2002-05-23  Akim Demaille  <akim@epita.fr>
13113         * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
13114         version of Autoconf that is discussed.
13116 2002-05-22  Paul Eggert  <eggert@twinsun.com>
13118         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
13119         from the default list of compilers to try.  Suggested by
13120         Kate Hedstrom.
13121         * NEWS: Document the above.
13122         * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
13124 2002-05-17  Paul Eggert  <eggert@twinsun.com>
13126         * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
13127         the member is itself an aggregate.  Bug reported by Sergey Poznyakoff.
13128         This improves on an earlier suggestion by H. Peter Anvin.
13130 2002-05-16  Paul Eggert  <eggert@twinsun.com>
13132         AC_FUNC_FNMATCH now tests only for POSIX compatibility.
13133         AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
13134         Both macros now accept an optional source-dir arg.
13135         New macro AC_GNU_SOURCE to define _GNU_SOURCE.
13137         * NEWS: Document this.
13138         * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
13140         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
13141         (AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
13142         not for GNU extensions; this undoes part of the 2000-11-03 change,
13143         reverting to 2.13-compatible behavior.
13144         Add new optional argument DIR.
13145         (AC_FUNC_FNMATCH_GNU): New macro.
13147         * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
13149 2002-05-08  Paul Eggert  <eggert@twinsun.com>
13151         * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
13152         Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
13153         and it causes a 'test' syntax error if it fails.
13154         Bug reported by Stephen Gildea.
13156         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
13157         If prototypes are supported, use them to check this at compile-time,
13158         instead of trying to check it at run-time.  If we must do a run-time
13159         check, assume that setvbuf is standard when cross-compiling, as
13160         nonstandard setvbuf occurs only on ancient and unlikely hosts.
13161         Bug reported by Paul D. Smith.
13163         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
13164         argument specifying location of getloadavg.c.  This removes a
13165         FIXME.  This idea was taken from Jim Meyering's implementation in
13166         textutils.
13167         * doc/autoconf.texi (Particular Functions): Document this.
13168         Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
13169         that's what the code does; this fixes a bug reported by
13170         Paul D. Smith.
13172 2002-05-03  Akim Demaille  <akim@epita.fr>
13174         * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
13175         autopoint instead of gettextize.
13176         ($uses_alocal): Rename as...
13177         ($uses_aclocal): this.
13178         * doc/autoconf.texi (autoreconf Invocation): Adjust.
13179         Suggested by Bruno Haible.
13181 2002-05-03  Akim Demaille  <akim@epita.fr>
13183         * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
13185 2002-04-29  Paul Eggert  <eggert@twinsun.com>
13187         * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
13188         files to be 1 second older; just set them to be the same time.
13189         Also, sleep 1 second after the first aclocal, to work around
13190         problems with sub-second time stamps on the input files.
13192 2002-04-29  Thien-Thi Nguyen  <ttn@gnu.org>
13194         * doc/autoconf.texi: Mention "set -e -x" lossage
13195         under node "Limitations of Builtins".
13197 2002-04-29  Akim Demaille  <akim@epita.fr>
13199         * doc/install.texi: Better wording for setting variables when
13200         running configure.
13201         From Christian Cornelssen.
13203 2002-04-29  Akim Demaille  <akim@epita.fr>
13205         * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
13206         of lack of $LINENO support, then the test will compare the $LINENO
13207         in testsuite vs. the lineno in the test file.  This is wrong, of
13208         course.
13209         Be sure to protect it.
13210         Reported by Patrick Welche.
13212 2002-04-25  Akim Demaille  <akim@epita.fr>
13214         * doc/autoconf.texi (Obsolete Macros): Typo.
13215         Reported by Vladimir Volovich.
13217 2002-04-25  Akim Demaille  <akim@epita.fr>
13219         * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
13220         than some of the input files, hence, on the second run of aclocal,
13221         if some of its input are younger, make them older.
13222         Suggested by Paul Eggert.
13224 2002-04-25  Akim Demaille  <akim@epita.fr>
13226         * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
13227         Thanks to Paul Eggert.
13229 2002-04-25  Akim Demaille  <akim@epita.fr>
13231         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
13232         and ac_subst_vars be sh variables containing the list of
13233         AC_SUBST_FILES'ed and AC_SUBST'ed identifiers.  Output them in the
13234         DEFAULT diversion.
13235         (_AC_INIT_PREPARE): Use them to log them.
13236         (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
13237         (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
13238         _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
13239         _AC_SUBST_FILES and _AC_SUBST_VARS.
13240         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
13242 2002-04-24  Akim Demaille  <akim@epita.fr>
13244         * bin/autoreconf.in (autoreconf): Run automake after autoconf and
13245         autoheader, so that automake does not complain about a missing
13246         config.h.in that was to be created.
13248 2002-04-23  Akim Demaille  <akim@epita.fr>
13250         * bin/autoheader.in (parse_args): --warning takes an argument.
13251         Fixes PR/220.
13253 2002-04-22  Peter Eisentraut  <peter_e@gmx.net>
13255         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
13256         and bb.out when cleaning up.
13258 2002-04-22  Akim Demaille  <akim@epita.fr>
13260         Version 2.53a.
13262 2002-04-22  Akim Demaille  <akim@epita.fr>
13264         * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
13266 2002-04-22  Akim Demaille  <akim@epita.fr>
13268         * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
13269         comma.
13270         Reported by Gregory Giannoni.
13272 2002-04-22  Akim Demaille  <akim@epita.fr>
13274         * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
13275         Fixes false failures on Darwin.
13277 2002-04-21  Paul Eggert  <eggert@twinsun.com>
13279         * TODO, bin/autoupdate.in, doc/autoconf.texi,
13280         lib/autoconf/general.m4, lib/autoconf/libs.m4,
13281         lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
13282         tests/tools.at: Minor spelling and grammar fixes.
13284 2002-04-20  Paul Eggert  <eggert@twinsun.com>
13286         * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
13287         ZSH_VERSION fixes.  Bug reported by Raja R Harinath.
13288         * lib/autotest/general.m4 (AT_INIT): Likewise.
13289         * tests/atgeneral.m4 (AT_INIT): Likewise.
13291 2002-04-19  Paul Eggert  <eggert@twinsun.com>
13293         * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
13294         doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
13295         lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
13296         lib/autoconf/functions.m4, lib/autoconf/general.m4,
13297         lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
13298         lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
13299         tests/atspecific.m4, tests/semantics.at, tests/torture.at:
13300         Minor spelling and grammar fixes.
13302         * doc/autoconf.texi: Follow the outline suggested in the GNU
13303         Sample Texts sections of the Texinfo 4.2 manual.  Most
13304         importantly, this makes sure that the copyright notices appear in
13305         all output formats.  You probably need Texinfo 4.2 to generate
13306         the manual now.
13308         Fix some bugs when using "$@" when there might be zero positional
13309         arguments in cases where this matters.
13311         * bin/autoconf.as: Rewrite so that the problem does not come up.
13312         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
13313         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
13314         * lib/autotest/general.m4 (AT_INIT): Likewise.
13316         * bin/autoheader.in: Use 'case' statement to work around problem.
13317         * bin/auto4mte.in: Likewise.
13318         * bin/autoreconf.in: Likewise.
13319         * bin/autoscan.in: Likewise.
13320         * bin/autoupdate.in: Likewise.
13321         * bin/ifnames.in: Likewise.
13323         * doc/autoconf.texi (Shell Substitutions): Document the problem.
13325         * lib/autotest/general.m4 (AT_INIT):
13326         Use Zsh alias to work around problem.
13327         * tests/atgeneral.m4 (AT_INIT): Likewise.
13329         * tests/c.at: We can't have zero arguments, so remove workaround
13330         that is not portable to Zsh.
13332 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
13334         * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
13335         from aclocal.m4 too.
13337 2002-04-12  Akim Demaille  <akim@epita.fr>
13339         * tests/wrappl.as: New, M4sh precursor of wrappl.in.
13341 2002-04-10  Akim Demaille  <akim@epita.fr>
13343         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
13344         workaround for ${1+"$@"}.
13345         * doc/autoconf.texi (Shell Substitutions): Explain it.
13346         From Oliver Kiddle and Peter Stephenson.
13348         Have M4sh perform minimal shell sanitizing.
13350         * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
13351         part into...
13352         (_AS_PREPARE): this new macro.
13353         (AS_PREPARE): New.
13354         (AS_INIT): Invoke AS_SHELL_SANITIZE.
13355         * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
13357         Adjust Autoconf and Autotest.
13359         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
13360         AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
13361         * lib/autotest/general.m4 (AT_INIT): Likewise.
13362         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
13363         Invoke _AS_PREPARE (not AS_PREPARE) in addition to
13364         AS_SHELL_SANITIZE.
13366         Use this M4sh to generate Autoconf's shell scripts.
13368         * tests/wrapsh.as: New, precursor of wrapsh.in.
13369         * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
13370         on Autotest and M4sh.
13371         ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
13372         (wrapsh.in): New target.
13373         * bin/autoconf.as: New, precursor of autoconf.in.
13374         (autoconf.in): New target.
13376 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
13378         * doc/autoconf.texi (Limitations of Make): Mention the issue
13379         with indented comments in rules.
13381 2002-04-09  Andreas Schwab  <schwab@suse.de>
13383         * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
13384         ac_top_builddir when setting ac_abs_top_builddir.
13386 2002-04-06  Kevin Ryde  <user42@zip.com.au>
13388         * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
13389         (Portable Shell): Cross reference to Systemology.
13391 2002-04-05  Akim Demaille  <akim@epita.fr>
13393         * bin/autoreconf.in (autoreconf): Be sure to accumulate the
13394         directories when descending in a SUBDIRS.
13395         Reported by Ezra Peisach.
13397 2002-04-04  Andreas Schwab  <schwab@suse.de>
13399         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
13400         contains no literal separators.
13402 2002-04-03  Akim Demaille  <akim@epita.fr>
13404         * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
13405         (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
13406         Use dnl, not the KILL diversion.
13407         Extracted from...
13408         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
13409         (AC_CONFIG_LINKS): here.
13410         Adjust.
13411         Don't use the KILL diversion, as it kills spurious output, which
13412         results in failures being hidden.
13413         Use m4_defn where appropriate.
13414         (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
13415         after the second argument.
13416         Use m4_defn.
13417         * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
13418         syntax, as it is provided by M4sugar.
13419         * tests/torture.at (Multiple AC_CONFIG_FILES): New.
13421 2002-04-03  Andreas Schwab  <schwab@suse.de>
13423         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
13424         expanded if $# <= 2.
13426         * bin/autoreconf.in (autoreconf): Run automake after rerunning
13427         aclocal.
13429 2002-04-03  Akim Demaille  <akim@epita.fr>
13431         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
13432         (_AC_COMPILER_EXEEXT_REJECT): New.
13433         Also recognize *.bb and *.bbg as compilation byproducts.
13434         (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
13435         (_AC_COMPILER_OBJEXT): Use them.
13436         Fixes Debian #138666.
13438 2002-04-02  Peter Eisentraut  <peter_e@gmx.net>
13440         Integrate AC_PROG_CC_STDC into AC_PROG_CC.
13442         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
13443         AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
13444         (AC_PROG_CC): Call _AC_PROG_CC_STDC.
13445         (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
13446         (AC_C_CONST): Same.
13447         (AC_C_INLINE): Same.
13448         (AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
13449         * doc/autoconf.texi, NEWS: Document.
13450         * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
13451         AC_C_CROSS.
13453 2002-04-02  Akim Demaille  <akim@epita.fr>
13455         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
13456         _AS_MKDIR_P_PREPARE.
13458 2002-03-28  Kevin Ryde  <user42@zip.com.au>
13460         * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
13461         to avoid versions of HP C which don't allow that.
13463 2002-03-27  Paul Eggert  <eggert@twinsun.com>
13465         * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
13466         (AS_SHELL_SANITIZE): Invoke it.
13467         (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
13469 2002-03-26  Akim Demaille  <akim@epita.fr>
13471         * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
13473 2002-03-26  Akim Demaille  <akim@epita.fr>
13475         * doc/autoconf.texi (Introduction): The GNATS base moved.
13477 2002-03-25  Paul Eggert  <eggert@twinsun.com>
13479         * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
13480         as POSIX requires, as it doesn't work with Zsh.
13481         * doc/autoconf.texi (Assignments): Document the problem.
13483 2002-03-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
13485         * doc/autoconf.texi (Limitations of Make): Mention more issue
13486         about VPATH, overriding of macros in sub-makes, and handling of
13487         SHELL.
13489 2002-03-21  Paul Eggert  <eggert@twinsun.com>
13491         * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
13492         problem with here-document buffer boundaries.
13494         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
13495         when reinvoking the shell, to work around problems with installers
13496         who put strange things like "cd" commands in their environments.
13498 2002-03-19  Akim Demaille  <akim@epita.fr>
13500         * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
13501         From Aaron Ucko.
13503 2002-03-19  Akim Demaille  <akim@epita.fr>
13505         * bin/autoscan.in (scan_file): Specify the location in `&used'
13506         invocations.
13507         From Nicolas Joly.
13509 2002-03-19  Akim Demaille  <akim@epita.fr>
13511         * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
13512         From Nishio Futoshi.
13514 2002-03-19  Akim Demaille  <akim@epita.fr>
13516         * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
13518 2002-03-18  Paul Eggert  <eggert@twinsun.com>
13520         * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
13521         (Limitations of Usual Tools): Add mkdir section.
13523         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
13524         (AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
13525         back on AS_DIRNAME to compute prefixes otherwise; this is
13526         roughly what mkinstalldirs does.  That way, we need not have
13527         our own filename disassembler.  The old disassembler did not
13528         work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
13530         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
13531         Create at_test_all by a series of assignments,
13532         not by a single assignment of a long string.  The latter causes ksh
13533         version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
13534         presumably because of a buffer overrun.
13536 2002-03-14  Paul Eggert  <eggert@twinsun.com>
13538         * lib/autotest/general.m4 (at_times_skip):
13539         Renamed from at_times.  Now a boolean.
13540         ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
13541         says 'times: not found'.
13543 2002-03-14  Akim Demaille  <akim@epita.fr>
13545         * bin/autoreconf.in (&study_gettextize): New.
13546         (&autoreconf): Handle newest gettextize.
13547         Rerun aclocal if needed.
13548         Suggested by Andreas Schwab.
13550 2002-03-13  Akim Demaille  <akim@epita.fr>
13552         * doc/autoconf.texi (Special Shell Variables): More about IFS.
13554 2002-03-13  Akim Demaille  <akim@epita.fr>
13556         * doc/autoconf.texi (Header Portability): New.
13557         Add information about stdint.h and inttypes.h from Paul Eggert.
13559 2002-03-13  Akim Demaille  <akim@epita.fr>
13561         * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
13562         -p'.
13563         From Bob Proulx.
13565 2002-03-12  Akim Demaille  <akim@epita.fr>
13567         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
13568         m4_require.
13570 2002-03-11  Andreas Schwab  <schwab@suse.de>
13572         * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
13573         does not do it if --with-lispdir is given.
13575 2002-03-08  Akim Demaille  <akim@epita.fr>
13577         Version 2.53.
13579 2002-03-08  Akim Demaille  <akim@epita.fr>
13581         * doc/autoconf.texi (Subdirectories): Clarify that the
13582         subdirectory should exist.
13584 2002-03-08  Akim Demaille  <akim@epita.fr>
13586         * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
13588 2002-03-08  Akim Demaille  <akim@epita.fr>
13590         * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
13591         aliases the actual variables, and modifications of the former
13592         affect the latter.
13594 2002-03-08  Akim Demaille  <akim@epita.fr>
13596         * bin/autom4te.in (&handle_m4): Protect us from corrupted file
13597         because of C-c: have m4 output in tmp files, then mv them.
13599 2002-03-08  Akim Demaille  <akim@epita.fr>
13601         * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
13602         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
13603         * bin/ifnames.in: Copyright update.
13605 2002-03-08  Akim Demaille  <akim@epita.fr>
13607         * doc/autoconf.texi (Invoking autom4te): New.
13609 2002-03-05  Akim Demaille  <akim@epita.fr>
13611         * doc/autoconf.texi (Specifying Names): Clarification suggested by
13612         Kevin Ryde.
13614 2002-03-05  Akim Demaille  <akim@epita.fr>
13616         Version 2.52i.
13618 2002-03-04  Akim Demaille  <akim@epita.fr>
13620         * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
13621         * lib/autoconf/general.m4 (AC_INIT): More informative error
13622         message for LIBOBJ.
13624 2002-03-04  Akim Demaille  <akim@epita.fr>
13626         * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
13627         parallel builds.
13629 2002-03-04  Akim Demaille  <akim@epita.fr>
13631         * doc/autoconf.texi (Transforming Names): Equality between target
13632         and host is irrelevant.
13633         (Specifying Names, Canonicalizing): Remove all references to the
13634         backward compatibility hooks.  Rather, collect them all into...
13635         (Hosts and Cross-Compilation): this new section.
13636         * doc/install.texi (System Type): Ditto.
13637         * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
13638         that `--host' implies cross-compilation.
13640 2002-03-04  Akim Demaille  <akim@epita.fr>
13642         * doc/autoconf.texi (Evaluation Macros): New.
13643         * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
13644         useless.
13645         (_m4_foreach): Define the variant with immediate evaluation so
13646         that it contains exactly the items, not an expression which
13647         evaluation is the current item.
13648         (m4_re_string, m4_re_word): Don't over quote them.
13650 2002-03-04  Akim Demaille  <akim@epita.fr>
13652         Instead of having stacking `shift's evaluated at the end, let
13653         `foreach' loops immediately evaluate them.
13655         * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
13656         $*.  This is the n-th time I change my mind, but hopefully this is
13657         the last...
13658         (m4_lquote): New.
13659         (m4_text_wrap): Use m4_foreach, which is finally correct _and_
13660         efficient.
13661         (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
13662         it was only a hack for m4_text_wrap.
13663         (m4_car2): Remove, replaced by...
13664         (m4_cdr): New.
13665         (_m4_foreach): Adjust.
13666         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
13667         m4_bpatsubst for clarification.
13669 2002-03-04  Akim Demaille  <akim@epita.fr>
13671         * doc/autoconf.texi (Changequote is Evil): New.
13673 2002-03-03  Kevin Ryde  <user42@zip.com.au>
13675         * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
13676         on old systems like SunOS.
13678 2002-03-01  Peter Eisentraut  <peter_e@gmx.net>
13680         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
13681         lib/autoconf/functions.m4, lib/autoconf/general.m4,
13682         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
13683         lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
13684         of messages.
13686 2002-02-28  Akim Demaille  <akim@epita.fr>
13688         * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
13689         message to be sent.
13691 2002-02-28  Kevin Ryde  <user42@zip.com.au>
13693         * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
13695 2002-02-25  Akim Demaille  <akim@epita.fr>
13697         * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
13698         From Akinori Musha.
13700 2002-02-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
13702         * lib/Autom4te/XFile.pm (getline, getlines): New functions,
13703         translate \r\n to \n.
13705 2002-02-07  Akim Demaille  <akim@epita.fr>
13707         Version 2.52h.
13709 2002-02-07  Akim Demaille  <akim@epita.fr>
13711         Fix Autoconf PR/209.
13712         Also reported by Frank Denis.
13714         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
13716 2002-02-07  Akim Demaille  <akim@epita.fr>
13718         Fix Autoconf PR/207:
13719         AC_PREFIX_PROGRAM fails with dashed program names
13721         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
13722         variable when looking for the prefix program.
13723         Now it also works for shell variables.
13725 2002-02-07  Akim Demaille  <akim@epita.fr>
13727         * doc/autoconf.texi (Limitations of Builtins): More about
13728         case/esac.
13730 2002-02-06  Akim Demaille  <akim@epita.fr>
13732         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
13733         case/esac, some shells don't support it.
13734         Reported by Zack Weinberg.
13735         * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
13737 2002-02-06  Akim Demaille  <akim@epita.fr>
13739         * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
13740         sure not to introduce newlines in at_groups.
13741         * lib/autotest/Makefile.am (autotest.m4f): Typo.
13743 2002-02-06  Akim Demaille  <akim@epita.fr>
13745         * tests/torture.at (Configuring subdirectories): Skip if aclocal
13746         is not available.
13748 2002-02-05  Paul Eggert  <eggert@twinsun.com>
13750         * doc/autoconf.texi (Specific Compiler Characteristics):
13751         Describe HP-UX cc bug workaround more accurately.
13752         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
13753         not unsigned long.
13754         * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
13755         cross-compilers, too.  This undoes some of the most recent change
13756         to this file.
13758 2002-02-05  Akim Demaille  <akim@epita.fr>
13760         * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
13761         to make sure they are up to date when `check' is run.
13763 2002-02-05  Akim Demaille  <akim@epita.fr>
13765         * doc/autoconf.texi (Making testsuite Scripts): Document
13766         package.m4.
13768 2002-02-05  Akim Demaille  <akim@epita.fr>
13770         * lib/freeze.mk: New.
13772 2002-02-05  Akim Demaille  <akim@epita.fr>
13774         Implement `autom4te --freeze'.
13776         * bin/autom4te.in (&freeze): New.
13777         * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
13778         * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
13780 2002-02-05  Akim Demaille  <akim@epita.fr>
13782         * bin/autom4te.in (&parse_args): Implement `frozen files are
13783         optional are the sum of the previous files on the command line'.
13784         Also, pass `--reload-state=' on them, so...
13785         (handle_m4): don't.
13786         * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
13787         (M4sh): Rely on M4sugar.
13788         (Autotest, M4sh, M4sugar): Use frozen files.
13790 2002-01-31  Akim Demaille  <akim@epita.fr>
13792         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
13793         * doc/autoconf.texi (Initializing configure): Adjust.
13795 2002-01-30  Akim Demaille  <akim@epita.fr>
13797         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
13798         alphanumeric to `-' instead of `_'.
13800 2002-01-30  Akim Demaille  <akim@epita.fr>
13802         * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
13803         for plain code, the other for cross-compilation code.  The latter
13804         is now run with GCC only.
13805         * doc/autoconf.texi (Compilers and Preprocessors): New.
13807 2002-01-30  Akim Demaille  <akim@epita.fr>
13809         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
13810         values.
13811         * doc/autoconf.texi (Initializing configure): Explain how to
13812         change AC_INIT default values.
13814 2002-01-29  Akim Demaille  <akim@epita.fr>
13816         * tests/torture.at (Configuring subdirectories): Use configure.in,
13817         so that aclocal 1.4 works.
13818         Reported by Alexandre Duret-Lutz and Larry Schmitt.
13820 2002-01-28  Akim Demaille  <akim@epita.fr>
13822         * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
13823         needs an argument.
13825 2002-01-28  Akim Demaille  <akim@epita.fr>
13827         * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
13828         AUTOTEST_PATH *after* it was set.
13829         Don't put `.' in the PATH: the user should be precise and `./' if
13830         needed.  In addition, given that the test suite does some `cd', if
13831         `.' is in the path, the `tested programs' sections will report
13832         programs found in the test suite's directory, while during the
13833         tests (performed in their own directory), these programs are no
13834         longer visible.  In other words, the results is confusing and
13835         useless.
13836         * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
13838 2002-01-24  Akim Demaille  <akim@epita.fr>
13840         Version 2.52g.
13842 2002-01-24  Akim Demaille  <akim@epita.fr>
13844         * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
13845         * doc/autoconf.texi: Finally add Akim as an author.
13847 2002-01-24  Akim Demaille  <akim@epita.fr>
13849         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
13850         (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
13851         Bourne. Use /bin/sh.
13852         From Andreas Buening.
13854 2002-01-24  Akim Demaille  <akim@epita.fr>
13856         * config/config.guess, config/config.sub, config/texinfo.tex:
13857         Update from masters.
13859 2002-01-24  Akim Demaille  <akim@epita.fr>
13861         * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
13862         * config/auxdir.m4, config/cond.m4, config/depend.m4,
13863         * config/init.m4, config/install-sh.m4, config/lispdir.m4,
13864         * config/missing.m4, config/sanity.m4, config/select.m4,
13865         * config/strip.m4: Remove, to ease sync'ing with any version of
13866         Automake.
13868 2002-01-24  Akim Demaille  <akim@epita.fr>
13870         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
13871         (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
13872         Reported by Geir Ove Myhr.
13874 2002-01-21  Akim Demaille  <akim@epita.fr>
13876         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
13878 2002-01-21  Akim Demaille  <akim@epita.fr>
13880         * lib/Autom4te/General.pm (getopt): Use a more GNUish error
13881         message on invalid options.
13882         * bin/autom4te.in (parse_args): Don't use
13883         Autoconf::General::getopt with non valid options.
13885 2002-01-17  Jim Meyering  <meyering@lucent.com>
13887         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
13888         $ac_cv_exeext so we don't use an old, invalid, cached value.
13890 2002-01-11  Akim Demaille  <akim@epita.fr>
13892         * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
13893         Meyering.
13894         * doc/autoconf.texi (Function Portability): Document the strnlen
13895         limitation.
13896         (Particular Functions): Document AC_FUNC_STRNLEN.
13897         * lib/autoscan/functions: Adjust.
13899 2002-01-06  Akim Demaille  <akim@epita.fr>
13901         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
13902         package.m4, since is really depends upon configure.ac, not
13903         configure.
13904         * doc/autoconf.texi (testsuite Scripts): Adjust.
13905         * tests/Makefile.am (package.m4): New.
13906         EXTRA_DIST it since its a source.
13908 2002-01-06  Akim Demaille  <akim@epita.fr>
13910         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
13911         of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
13912         and PACKAGE_BUGREPORT from here...
13913         (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
13914         arguments.
13915         (_AC_INIT_PREPARE): AC_DEFINE these symbols.
13916         * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
13917         (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
13918         * tests/tools.at (autoheader): Adjust.
13919         * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
13921 2002-01-06  Akim Demaille  <akim@epita.fr>
13923         * bin/autoscan.in (scan_file): Use `&used'.
13925 2002-01-03  Akim Demaille  <akim@epita.fr>
13927         * doc/autoconf.texi (Output): Improved wording regarding use of
13928         AC_OUTPUT.
13929         From Olly Betts.
13931 2001-12-18  Kevin Ryde  <user42@zip.com.au>
13933         * doc/autoconf.texi (Function Portability): Add notes on sscanf
13934         sometimes needing writable input.
13936 2001-12-17  Jim Meyering  <meyering@lucent.com>
13938         * doc/autoconf.texi (New Macros): Tweak wording.
13940 2001-12-14  Akim Demaille  <akim@epita.fr>
13942         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
13943         trailing files, don't apply `-rf' to files which might not be
13944         created by configure (core, core.*, and *.core), but just `rm -f'.
13945         Suggested by Jonathan Kamens.
13947 2001-12-14  Aaron M. Ucko  <amu@alum.mit.edu>
13949         * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
13951 2001-12-14  Akim Demaille  <akim@epita.fr>
13953         * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
13955 2001-12-13  Peter Eisentraut  <peter_e@gmx.net>
13957         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
13958         abs_builddir, top_buildpath to abs_top_builddir, srcpath to
13959         abs_srcdir, top_srcpath to abs_top_srcdir.
13960         (_AC_OUTPUT_FILES): Adjust.
13961         * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
13962         * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
13963         * tests/wrappl.in, tests/wrapsh.in: Adjust.
13965 2001-12-12  Steven G. Johnson  <stevenj@alum.mit.edu>
13967         * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
13968         C/Fortran linking on HP/UX, by extracting the Fortran library
13969         search path from the LPATH line in the $F77 -v output.
13971 2001-12-12  Kevin Ryde  <user42@zip.com.au>
13973         * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
13974         forbidden file descriptors table.
13976 2001-11-26  Akim Demaille  <akim@epita.fr>
13978         * bin/autoscan.in (%c_keywords): Build it at top level.
13979         Map to 1 in order to simplify its uses.
13981 2001-11-26  Akim Demaille  <akim@epita.fr>
13983         * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
13984         Remove $filepath, useless.
13985         (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
13986         variables, they are really part of the tokens.
13987         Split the input line on spaces and then look for tokens.
13988         Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
13989         because of `lex$U.$(OBJEXT)'.
13990         (&scan_files): Use "@list" instead of join.
13991         * doc/Makefile.am (CLEANFILES): Add *.fns.
13993 2001-11-26  Akim Demaille  <akim@epita.fr>
13995         * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
13996         Remove, replaced by...
13997         * tests/wrappl.in: Be common for all the Perl executables.
13998         In particular autoscan and autoheader want -I.
13999         * configure.ac: Adjust.
14000         * lib/autoscan/headers: errno.h is portable.
14002 2001-11-26  Akim Demaille  <akim@epita.fr>
14004         * bin/autoscan.in (used): New.
14005         Use it.
14007 2001-11-26  Akim Demaille  <akim@epita.fr>
14009         * bin/autoscan.in (&scan_c_file): Better parsing of CPP
14010         directives.
14011         (&scan_sh_file): Remove a duplicate pattern.
14012         (&check_configure_ac): Use long options.
14013         * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
14015 2001-11-26  Akim Demaille  <akim@epita.fr>
14017         * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
14018         Before, having a line containing the opening of a multi line
14019         comment made the whole line be ignored.
14021 2001-11-26  Akim Demaille  <akim@epita.fr>
14023         * doc/autoconf.texi (Using an Autotest Test Suite): New.
14024         (testsuite Scripts): Be one of its subsection.
14025         (Autotest Logs): New.
14027 2001-11-26  Akim Demaille  <akim@epita.fr>
14029         Test groups are now run two directories deeper.
14031         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
14032         top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
14033         at_top_builddir.
14034         * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
14035         top_srcdir, builddir and top_builddir.
14036         Use `at_*dir' relatively to the directory containing the
14037         suite, use `*dir' when relatively to the current group dir.
14039 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
14041         * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
14042         lib/autoconf/functions.m4, lib/autoconf/headers.m4,
14043         tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
14044         spelling errors.
14046 2001-11-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
14048         * doc/autoconf.texi (Using System Type): Add an example of `case
14049         $host' usage so people quit using `case $target' everywhere.
14051 2001-11-22  Akim Demaille  <akim@epita.fr>
14053         * doc/autoconf.texi (Installation Directory Variables): Englishoes
14054         spotted by Jim Meyering.
14056 2001-11-16  Paul Eggert  <eggert@twinsun.com>
14058         This patch implements a `long double' suggestion by Oliver Kiddle.
14060         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
14061         static, to catch errors if the value isn't known at compile-time
14062         and the compiler supports dynamic arrays.  Change its name from
14063         `_array_' to `test_array' to avoid potential name clashes.
14064         (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
14065         test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
14066         better than double.  Catch a bug in GCC 2.95.2 x86.
14067         * doc/autoconf.texi (C Compiler): Document the above.
14068         * NEWS: Likewise.
14070 2001-11-13  Akim Demaille  <akim@epita.fr>
14072         * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
14073         hand.
14074         * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
14076 2001-11-13  Akim Demaille  <akim@epita.fr>
14078         * lib/autotest/general.m4 (AT_INIT): After having run the test
14079         group, go back to the initial directory, not to at_suite_dir.
14081 2001-11-13  Akim Demaille  <akim@epita.fr>
14083         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
14084         (AT_DATA_AUTOCONF):  Also protect @&t@ from autom4te.
14085         (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
14086         option.
14087         (AT_CHECK_CONFIGURE): Use absolute paths.
14088         (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
14089         The problem is still the old one: there is no means in M4 (that I
14090         know about) to create a defining macro, because there is no means
14091         to create `$1' etc., therefore, the defining macro ``swallows''
14092         all the arguments meant to the defined macro.
14094 2001-11-13  Akim Demaille  <akim@epita.fr>
14096         * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
14097         (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
14098         configure.ac.
14099         * tests/aclocal.m4: Remove, as it is no longer used.
14101 2001-11-13  Akim Demaille  <akim@epita.fr>
14103         * lib/autotest/general.m4: Change `tests?' into `groups?' in
14104         variable names when referring to a single test group, or to
14105         `suite' when referring to the whole test suite.
14106         `at_last_test' is removed: m4 compute at_format itself.
14107         (at_stdout, at_stder1, at_stderr): New variables.
14108         (AT_CHECK): Use them.
14110 2001-11-13  Akim Demaille  <akim@epita.fr>
14112         * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
14113         in PATH.
14114         Create `testsuite.dir/003/run' instead of `testsuite.003'.
14115         Do it as soon as a test fails, don't wait till the end of the test
14116         suite.
14117         Don't remove $as_me.[0-9]*, since these files no longer exist.
14119 2001-11-13  Akim Demaille  <akim@epita.fr>
14121         * tests/tools.at: Use absolute paths, since we are no longer run
14122         in place.
14124 2001-11-13  Akim Demaille  <akim@epita.fr>
14126         Now that tests are running in their own private dir, there is no
14127         need to list the files to remove at the end of tests groups.
14129         * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
14130         (AT_data_files, at_data_files): Remove.
14131         (AT_CLEANUP, AT_DATA): Simplify.
14132         (AT_INIT): Adjust.
14133         Remove the group dir if !debug && !failed.
14134         * tests/atspecific.m4: Adjust.
14136 2001-11-13  Akim Demaille  <akim@epita.fr>
14138         Start a new layout for Autotest: `testsuite' creates
14139         `testsuite.dir' in which the at-check-line etc. files are to be
14140         found, and `testsuite.dir/003' where the test group 3 is run.
14142         * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
14143         at_check_line_file, at_format, at_test_normalized, at_group_dir
14144         are new variables.
14145         Create the directories.
14146         Use absolute paths for at- files.
14147         (AT_CHECK): Adjust.
14149 2001-11-11  Michael Matz  <matz@kde.org>
14151         * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
14152         (m4_car2): New.
14153         (m4_car): Properly quote arguments.
14155 2001-11-13  Akim Demaille  <akim@epita.fr>
14157         * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
14158         with stricter rules on LIBOBJS.
14160 2001-11-12  Paul Eggert  <eggert@twinsun.com>
14162         * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
14163         * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
14164         __PROTOTYPES too.
14166 2001-11-12  Akim Demaille  <akim@epita.fr>
14168         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
14170 2001-11-12  Akim Demaille  <akim@epita.fr>
14172         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
14173         * lib/autoconf/functions.m4, lib/autoconf/general.m4,
14174         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
14175         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
14176         * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
14177         specify to what the macro should be defined (typically to 1).
14179 2001-11-12  Akim Demaille  <akim@epita.fr>
14181         * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
14182         From Jim Meyering.
14184 2001-11-12  Akim Demaille  <akim@epita.fr>
14186         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
14187         AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
14188         definition used by Automake where LEX is +/- "${missing} lex" and
14189         `missing' itself contains variables.
14191 2001-11-12  Akim Demaille  <akim@epita.fr>
14193         * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
14194         Now that M4sh pushes BODY, the comments were output at the end of
14195         the test suites.
14197 2001-11-08  Akim Demaille  <akim@epita.fr>
14199         * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
14200         that we can trace macros from aclocal.m4.
14201         Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
14202         obsoleted, and redirect to the former anyway.
14203         Reported by Ralf Corsepius.
14205 2001-11-08  Akim Demaille  <akim@epita.fr>
14207         * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
14208         processed only if present.
14209         * tests/torture.at (Configuring subdirectories): Use autoreconf
14210         instead of successive calls to autoconf.
14211         Add a nonexistent subdirectory to exercise the patch above.
14212         Reported by Ralf Corsepius.
14214 2001-11-08  Kevin Ryde  <user42@zip.com.au>
14216         * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
14217         doesn't accept .S files.
14219 2001-11-07  Akim Demaille  <akim@epita.fr>
14221         * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
14222         * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
14223         (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
14224         * bin/autom4te.in (warn_forbidden): New.
14225         (handle_output): Use it.
14226         Read m4_pattern_forbid with messages.
14228 2001-11-05  Akim Demaille  <akim@epita.fr>
14230         * bin/autom4te.in (--normalize): Remove.
14231         * lib/autom4te.in: Adjust.
14233 2001-11-05  Akim Demaille  <akim@epita.fr>
14235         * tests/Makefile.am (testsuite): Rename this target as...
14236         ($(TESTSUITE)): this.
14237         From Nicolas Joly.
14239 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
14241         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
14242         the --prefix option, also remove it's argument.
14244 2001-11-05  Akim Demaille  <akim@epita.fr>
14246         * doc/autoconf.texi (testsuite Invocation): Update.
14247         (Writing testsuite.at): Update.
14249 2001-11-03  Akim Demaille  <akim@epita.fr>
14251         * doc/autoconf.texi: s/@code/@command/ where appropriate.
14253 2001-11-03  Akim Demaille  <akim@epita.fr>
14255         * lib/Autom4te/General.pm: (&catfile, &canonfile)
14256         (&file_name_is_absolute): New, wrappers around routines from
14257         File::Spec.
14258         Use and export them.
14259         (&find_configure_ac): Optionally take a directory where to look at.
14260         * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
14261         the arguments.
14262         Default @ARGV to `.', not find_configure_ac.
14263         (&autoreconf): Argument is a directory.
14264         Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
14265         * doc/autoconf.texi (autoreconf Invocation): Update.
14267 2001-11-03  Akim Demaille  <akim@epita.fr>
14269         * lib/Autom4te/General.pm (@export_vars, @export_subs)
14270         (@export_forward_subs): New.
14271         Add basename, dirname, and fileparse.
14272         (@EXPORT): Adjust.
14273         * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
14274         Don't look for aclocal flags if we already know aclocal is not
14275         used.
14276         Move aclocal.m4t only if it exists.
14277         Reported by Ezra Peisach.
14279 2001-11-03  Akim Demaille  <akim@epita.fr>
14281         * bin/autoreconf.in (&parse_args): Work only on the configure.ac
14282         passed on command line, defaulting to ./configure.ac if present.
14283         (&maybe_autoreconf, File::Find): Remove, unused.
14284         (&autoreconf): If autoconf is not used, don't try to trace.
14286 2001-11-02  Akim Demaille  <akim@epita.fr>
14288         * configure.ac: Bump to 2.52g.
14290 2001-11-02  Akim Demaille  <akim@epita.fr>
14292         Version 2.52f.
14294 2001-11-02  Akim Demaille  <akim@epita.fr>
14296         * config/config.guess, config/config.sub, doc/standards.texi:
14297         * config/lispdir.m4: Update from masters.
14298         * configure.ac: Bump to 2.52f.
14300 2001-11-02  Akim Demaille  <akim@epita.fr>
14302         * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
14303         Don't run aclocal when aclocal.m4 is not from aclocal.
14304         From Ezra Peisach.
14305         Don't run libtoolize and gettextize if --install is not given.
14307 2001-11-01  Paul Eggert  <eggert@twinsun.com>
14309         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
14310         be invoked before _AS_LINENO_PREPARE.
14311         (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
14312         than character ranges.
14314         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
14315         invoking AS_BASENAME.  Set the locale variables to 'C' if
14316         possible, as POSIX requires this to get the traditional
14317         behavior.
14318         * doc/autoconf.texi (Special Shell Variables): Describe the above.
14320 2001-10-31  Paul Eggert  <eggert@twinsun.com>
14322         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
14323         with {}, as that triggers a bug in Bash 2.05.
14325         (_AS_LINENO_PREPARE): Use Sed rather than
14326         Awk.  Fix the sed prepass to work even if there are multiple
14327         instances of $LINENO on the same line.  Do not substitute for
14328         other variables like $LINENOT.  Do not check file dates; such a
14329         check is unreliable on sufficiently fast machines, and removing
14330         the check makes the code simpler and more reliable.  Check for
14331         output and chmod failures.
14333         * doc/autoconf.texi (Special Shell Variables): Document
14334         the above.
14336 2001-10-31  Akim Demaille  <akim@epita.fr>
14338         * tests/Makefile.am (atconfig): Remove this target, Automake
14339         handles it now.
14341 2001-10-31  Akim Demaille  <akim@epita.fr>
14343         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
14344         AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
14345         provided, while it is optional.
14346         * configure.ac: Adjust.
14348 2001-10-26  Paul Eggert  <eggert@twinsun.com>
14350         * NEWS, README, configure.ac, lib/Autom4te/General.pm,
14351           lib/Autom4te/Struct.pm:
14352         Require Perl 5.005_03 instead of just 5.005, as some tests fail
14353         with 5.005_02.
14355         * doc/autoconf.texi (Special Shell Variables): Document some
14356         more LINENO gotchas, particularly with respect to the Awk+Sed hack.
14358         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
14359         (_AS_LINENO_PREPARE): Use it instead of shell eval, since
14360         eval $LINENO is not portable in practice.
14362 2001-10-24  Akim Demaille  <akim@epita.fr>
14364         * lib/Autom4te/General.pm (backname): New.
14366 2001-10-24  Akim Demaille  <akim@epita.fr>
14368         * m4/: Remove, merged into...
14369         * config/: here.
14371 2001-10-23  Tim Van Holder  <tim.van.holder@pandora.be>
14373         * doc/autoconf.texi (Shellology): Mention the problems with bash
14374         2.05's use of ANSI quoting in its `set' builtin.
14376 2001-10-22  Paul Eggert  <eggert@twinsun.com>
14378         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
14379         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
14380         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
14381         POSIX decided to standardize on the int flavor of strerror_r.
14382         Always do char* test, as there's no reason not to.
14383         Assign to a char* var, to catch strerror_r that returns int*.
14385         * doc/autoconf.texi (Particular Functions):
14386         Document the above changes.  Also, document the fact that
14387         AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
14389         * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
14391 2001-10-20  Akim Demaille  <akim@epita.fr>
14393         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
14394         the executable was missing from the log.
14396 2001-10-20  Akim Demaille  <akim@epita.fr>
14398         * lib/Autom4te/General.pm (&update_file): If destination is
14399         unchanged, remove the source.
14400         (&up_to_date_p): Don't be verbose, be debug.
14401         * bin/autoreconf.in: No longer support --m4dir.
14402         (&autoreconf): Display the full path of the configure.ac we are
14403         studying.
14404         Trace it only once.
14405         Be sure to honor --force with gettextize.
14406         Always run aclocal.
14407         * doc/autoconf.texi: Adjust.
14409 2001-10-20  Akim Demaille  <akim@epita.fr>
14411         * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
14412         Remove, dead.
14413         * bin/autoreconf.in (&autoreconf): Do not run gettextize when
14414         `intl' is already present, as it refuses unless --force.
14415         (&parse_args): Use -I, --include instead of the old Autoconf
14416         options.
14417         ($localdir, $autoconf_dir): Remove.
14418         (@include): New.
14419         (&maybe_autoreconf): New, to preserve $_ for File::Find.
14421 2001-10-19  Jens Petersen  <petersen@redhat.com>
14423         * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
14424         * doc/autoconf.texi (Particular Programs): Likewise.
14426 2001-10-19  Akim Demaille  <akim@epita.fr>
14428         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
14429         file in @configure_input@.
14430         Don't mention `automatically' in addition to `generated'.
14431         * tests/torture.at (#define header templates): Adjust.
14433 2001-10-19  Akim Demaille  <akim@epita.fr>
14435         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
14436         comment, explain how to install automatic mode selection.
14437         From Russ Allbery.
14439 2001-10-19  Ezra Peisach  <epeisach@zif.mit.edu>
14441         * bin/autoreconf.in (autoreconf): Display the path to the
14442         configure.ac being studied.
14444 2001-10-18  Paul Eggert  <eggert@twinsun.com>
14446         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
14447         long, to work around a bug in the HP C compiler version HP92453-01
14448         B.11.11.23709.GP.
14450         * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
14451         (AS_BASENAME_EXPR): New macro.
14452         (AS_BASENAME_SED): Do not assume GNU sed semantics.
14453         (AS_BASENAME): Use 'basename' if that works; then try 'expr';
14454         and fall back on 'sed' only if the other two fail.  This makes
14455         AS_BASENAME act more like AS_DIRNAME.
14456         (as_me): Shell-quote the argument of AS_BASENAME, in case $0
14457         contains white space.
14458         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
14459         Use AS_DIRNAME, since I think it's now DOS-friendly.
14460         * tests/m4sh.at (DIRNAME_TEST): New arg $3.
14461         Allow "dirname //FOO" to return either / or //, as POSIX allows
14462         either behavior.
14464 2001-10-10  Akim Demaille  <akim@epita.fr>
14466         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
14467         `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
14468         From Eric Sharkey.
14470 2001-10-10  Akim Demaille  <akim@epita.fr>
14472         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
14473         m4_define, since...
14474         (_AS_ECHO_N): AS_REQUIREs it.
14476 2001-10-10  Akim Demaille  <akim@epita.fr>
14478         * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
14479         (AC_INCLUDES_DEFAULT): Move to...
14480         * lib/autoconf/headers.m4: here.
14481         * lib/autoconf/types.m4: Comment changes.
14482         * doc/autoconf.texi: Specify where the default includes are used
14483         in the macro prototypes.
14485 2001-10-09  Akim Demaille  <akim@epita.fr>
14487         * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
14488         transition code.
14490 2001-10-08  Akim Demaille  <akim@epita.fr>
14492         * bin/autoreconf.in (&autoreconf): Remove debugging code.
14493         (&parse_args): Pass verbosity/debugging options to subtools when
14494         --debug, not when --verbose.
14495         * lib/autom4te.in (Autoreconf-preselections): New.
14496         (Autoconf): Use it.
14498 2001-10-08  Akim Demaille  <akim@epita.fr>
14500         * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
14502 2001-10-08  Akim Demaille  <akim@epita.fr>
14504         * doc/autoconf.texi (autoreconf Invocation): Adjust.
14505         * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
14507 2001-10-08  Akim Demaille  <akim@epita.fr>
14509         * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
14510         (Syntax of the shell scripts): Don't.
14511         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
14512         bother with $force since...
14513         * lib/Autom4te/General.pm: does.
14515 2001-10-08  Akim Demaille  <akim@epita.fr>
14517         * bin/autoreconf.in: Rewrite in Perl.
14518         * configure.ac: Adjust.
14519         * lib/Autom4te/General.pm (&up_to_date_p): New.
14520         * bin/autom4te.in (&up_to_date_p): Use it.
14521         Rename as...
14522         (&up_to_date): this.
14524 2001-10-08  Akim Demaille  <akim@epita.fr>
14526         * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
14527         (m4_list_cmp): Use $0 to reinvoke yourself.
14528         (m4_patsubsts): New.
14529         (m4_strip, m4_version_unletter): Use it.
14530         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
14532 2001-10-08  Akim Demaille  <akim@epita.fr>
14534         * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
14535         * lib/autoconf/libs.m4, lib/autoconf/status.m4,
14536         * lib/autoconf/types.m4, lib/autotest/general.m4,
14537         * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
14538         * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
14539         m4_bregexp, m4_bpatsubst, and m4_bmatch.
14540         * doc/autoconf.texi (Redefined M4 Macros): Adjust.
14542 2001-10-08  Akim Demaille  <akim@epita.fr>
14544         * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
14546 2001-10-08  Akim Demaille  <akim@epita.fr>
14548         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
14549         * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
14550         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
14551         * tests/tools.at, tests/m4sh.at: Use it.
14552         * tests/m4sh.at: Don't rely on Autoconf macros.
14553         (DIRNAME_TEST): Also exercise the expr variant.
14554         * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
14555         preferred M4sugar extension is now `.4s'.
14556         * tests/README: Remove.
14558 2001-10-08  Akim Demaille  <akim@epita.fr>
14560         * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
14561         (m4_provide_if): this.
14562         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
14563         * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
14564         (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
14565         M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
14567 2001-10-08  Akim Demaille  <akim@epita.fr>
14569         Use `add-log-current-defun-function' for ChangeLog creation.
14570         Suggested by Tom Tromey.
14572         * lib/emacs/autotest-mode.el (autotest-mode-map): New.
14573         (autotest-mode): Adjust.
14574         * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
14575         'comment-region onto `C-c ;'.
14576         Comments are `#', not `dnl'.
14577         (autoconf-current-defun): New.
14578         (autoconf-font-lock-keywords): Recognize `m4_defun'.
14580 2001-10-08  Akim Demaille  <akim@epita.fr>
14582         * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
14583         * lib/m4sugar/m4sh.m4: here.
14584         (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
14585         * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
14586         (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
14587         include handle the m4_pattern_*, no longer push the
14588         BODY diversion nor set the /bin/sh line, AS_INIT does it.
14589         * lib/autotest/general.m4 (AT_INIT): Likewise.
14590         * tests/base.at: Adjust the tests to use AS_INIT.
14591         * tests/tools.at (AT_DATA_FORBIDDEN): New.
14592         (autoconf: forbidden tokens): Adjust to work on M4sh instead of
14593         Autoconf.
14595 2001-10-07  Paul Eggert  <eggert@twinsun.com>
14597         * doc/autoconf.texi (config.status Invocation):
14598         CONFIG_SHELL defaults to a shell that supports LINENO if available.
14600         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
14601         shell does not support LINENO, and if CONFIG_SHELL is unset or
14602         empty, and if we can find a shell that does support LINENO,
14603         then set CONFIG_SHELL to that shell and then re-execute
14604         ourselves with CONFIG_SHELL.
14606 2001-10-05  Paul Eggert  <eggert@twinsun.com>
14608         * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
14609         doesn't exist.  Remove *.tmp, as a .tmp file is created during the
14610         build of $(TESTSUITE).
14612 2001-10-05  Akim Demaille  <akim@epita.fr>
14614         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
14615         iff we are a bareword.
14616         Reported by Raja R Harinath.
14618 2001-10-05  Akim Demaille  <akim@epita.fr>
14620         * tests/m4sh.at (LINENO): New.
14621         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
14622         PATH_SEPARATOR before using it.
14623         Fix the absolute path case/esac pattern.
14624         Provide $0 as fallback for as_myself.
14625         Reported by Raja R Harinath.
14627 2001-10-05  Akim Demaille  <akim@epita.fr>
14629         * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
14630         * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
14632 2001-10-05  Akim Demaille  <akim@epita.fr>
14634         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
14635         (AS_SHELL_SANITIZE): here.  Use it.
14636         (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
14637         From Paul Eggert.
14639 2001-10-04  Akim Demaille  <akim@epita.fr>
14641         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
14642         combination of Awk and sed to replace $LINENO.
14644 2001-10-02  Paul Eggert  <eggert@twinsun.com>
14646         * doc/autoconf.texi (Limitations of Builtins): You can't use
14647         "source"; it's not portable.  Remove confusing and
14648         somewhat-incorrect example involving "." and "/".
14650         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
14651         compatibility with POSIX shells.
14653 2001-10-02  Akim Demaille  <akim@epita.fr>
14655         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
14656         instead of exec'ing to preserve $0 and $@.
14658 2001-10-01  Akim Demaille  <akim@epita.fr>
14660         * tests/testsuite (AT_INIT) <at_pass_list>: New.
14661         Don't run twice the same test.
14663 2001-10-01  Akim Demaille  <akim@epita.fr>
14665         * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
14666         No longer output the list of tests.
14667         <--list>: New option.
14668         <--full-help>: Remove.
14669         Complete the short/long options duality.
14670         Various small adjustments.
14672 2001-10-01  Akim Demaille  <akim@epita.fr>
14674         * doc/autoconf.texi: Use @kbd for user input.
14675         Always use `$' as shell prompt.
14677 2001-09-30  Paul Eggert  <eggert@twinsun.com>
14679         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
14680         Don't use nested parenthesization.  This patch was originally
14681         suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
14682         but somehow it didn't get incorporated then.
14683         * doc/autoconf.texi (Limitations of Usual Tools):
14684         Clarify remark about sed and nested parenthesization.
14686         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
14687         Report an error if the size cannot be determined even though
14688         the type exists.
14689         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
14690         Check for `expr' arithmetic overflow, and for compilation failure,
14691         and invoke a new argument $4 if either is discovered.
14692         This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
14693         (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
14695 2001-09-28  Akim Demaille  <akim@epita.fr>
14697         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
14698         * m4/lispdir.m4: New.
14699         * aclocal.m4, configure.ac: Adjust.
14701 2001-09-28  Akim Demaille  <akim@epita.fr>
14703         * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
14704         (AT_TESTED): this.
14705         (AT_INIT): More the wrapped section to where it will be expanded.
14706         Output `AT_tested' only when existing.
14707         Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
14709 2001-09-27  Akim Demaille  <akim@epita.fr>
14711         Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
14712         generates too many bug reports.
14714         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
14715         status when executing the ACTION-IF-FALSE.
14716         * tests/base.at (AC_TRY_*): Rename as...
14717         (AC_TRY_COMMAND): this.
14718         (AC_RUN_IFELSE): New.
14719         * tests/compile.at (Extensions, C keywords)
14720         (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
14721         (Broken/missing compilers, AC_PROG_CPP with warnings)
14722         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
14723         * tests/c.at (Extensions, C keywords)
14724         (Broken/missing compilers, AC_PROG_CPP with warnings)
14725         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
14726         (AC_PROG_CPP requires AC_PROG_CC): here and...
14727         * tests/fortran.at (GNU Fortran 77): there.
14728         * doc/autoconf.texi (autoconf Invocation): Fix the example:
14729         AC_TRY_RUN is about compilation, not shell commands.
14730         (Test Programs): AC_TRY_RUN works as used to be advertised.
14732 2001-09-27  Akim Demaille  <akim@epita.fr>
14734         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
14735         Raja R Harinath:
14736         Be sure to detect when $LINENO always returns the same value.
14737         Look for the original script, basename($0) is certainly not
14738         enough.
14739         Pass the CLI arguments to `$as_me.lineno'.
14741 2001-09-25  Akim Demaille  <akim@epita.fr>
14743         * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
14744         Be sure the close and reopen the LOG fd before and after using tee
14745         to extend the log.
14746         <at_tests_pattern>: Adjust to the new format of at_help_all.
14748 2001-09-23  Akim Demaille  <akim@epita.fr>
14750         * bin/autom4te.in (parse_args): There can be several invocations
14751         of --language now.
14753 2001-09-23  Akim Demaille  <akim@epita.fr>
14755         * doc/autoconf.texi (Top): Wrap in @ifnottex.
14757 2001-09-23  Akim Demaille  <akim@epita.fr>
14759         * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
14760         ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
14761         (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
14762         builddir, buildpath, top_builddir, and top_buildpath.
14763         (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
14764         the current directory.
14765         * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
14766         variables *before* changing the current directory.
14767         Skip nonexistent dirs.
14768         * doc/autoconf.texi (Preset Output Variables): Document these
14769         variables.
14771         * lib/autotest/general.m4: Do not reset AT_victims.
14772         Don't compute at_srcdir nor at_top_srcdir.
14774         * tests/tools.at: Hence use top_srcdir.
14776         * tests/Makefile.am, tests/autoconf, tests/autoheader,
14777         * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
14778         Remove.
14779         * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
14780         * tests/wrapsh.in, tests/autoupdate.in: New.
14781         * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
14782         * configure.ac: Build the position independent wrappers.
14784         * man/Makefile.am: Now that test wrappers are position
14785         independent, use them and drop dark envvar magic.
14787 2001-09-23  Akim Demaille  <akim@epita.fr>
14789         * doc/autoconf.texi (Common Shell Constructs): Rename as...
14790         (Programming in M4sh): this.
14791         Promote to @section.
14793 2001-09-23  Akim Demaille  <akim@epita.fr>
14795         * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
14796         Pass $at_debug_args to the rerun test suite.
14797         * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
14798         * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
14799         From Paul Eggert.
14801 2001-09-23  Akim Demaille  <akim@epita.fr>
14803         * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
14805 2001-09-23  Akim Demaille  <akim@epita.fr>
14807         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
14808         over-escaping.
14810 2001-09-23  Akim Demaille  <akim@epita.fr>
14812         * lib/Autom4te/General.pm (&debug): New.
14813         * bin/autom4te.in ($language): Move to...
14814         (parse_args): here.
14815         Handle --language in languages.
14816         * lib/autom4te.in (Automake-selections, Autoheader-selections)
14817         (Autoscan-selections): New.
14818         (Autoconf): Adjust.
14820 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
14822         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
14823         * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
14824         to match current versions from CVS Automake.
14826 2001-09-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
14828         * doc/autoconf.texi (Special Shell Variables): Add pdksh output
14829         for $LINENO.
14831 2001-09-22  Akim Demaille  <akim@epita.fr>
14833         * lib/autoconf/autotest.m4: Create `package.m4'.
14834         * tests/Makefile.am (package.m4): Remove.
14836 2001-09-22  Akim Demaille  <akim@epita.fr>
14838         Rely on `$LINENO' when possible instead of `__oline__'.
14840         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
14841         `$LINENO' support replacement when not supported.
14842         (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
14843         them explicitly to be sure they are not output before this section
14844         (via m4_require).  Cosmetic only.
14845         * lib/autoconf/c.m4, lib/autoconf/general.m4,
14846         * lib/autoconf/programs.m4: Replace all the occurrences of
14847         `__oline__' with `$LINENO'.
14848         * doc/autoconf.texi (Special Shell Variables): Document LINENO.
14850 2001-09-21  Tim Van Holder  <tim.van.holder@pandora.be>
14852         * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
14853         character (u: -> ue) in a code comment.
14854         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
14855         it works.
14857 2001-09-21  Akim Demaille  <akim@epita.fr>
14859         * Makefile.maint (AUTOM4TE): Neutralize autom4te.
14860         Suggested by Jim Meyering.
14862 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
14864         * lib/autoconf/programs.m4: Use extensions listed in
14865         $ac_executable_extensions when looking for programs.
14867 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
14869         * lib/autoconf/general.m4: Fix a small Englisho.
14870         * lib/autoconf/status.m4: Fix a small typo.  Handle DOS paths when
14871         setting up ac_dir_suffix and ac_top_builddir.
14872         * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
14874 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
14876         * doc/autoconf.texi (File System Conventions): Clarify the use of
14877         PATH_SEPARATOR.
14878         (Special Shell Variables[PATH_SEPARATOR]): Ditto.
14879         (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
14880         be used instead of ':'.
14881         * lib/autotest/general.m4: Replace occurrences of ':' in
14882         AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
14884 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
14886         * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
14887         arguments.  Fixed a typo.
14889 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
14891         * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
14892         $PATH.  Also set AUTOM4TE_CFG, so we can process autom4te properly.
14894 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
14896         * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
14897         * bin/autoupdate.in: Ditto.
14898         * bin/autoheader.in: Reworded a few comments.
14899         * bin/autoconf.in: Reworded help text for a few options.
14900         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
14901         * bin/autoscan.in, bin/autoupdate.in: Ditto.
14903 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
14905         * lib/Autom4te/XFile.pm (open): Simplified the error message (we
14906         already have $file).  Set output files to binary mode (helps avoid
14907         CR issues on DOSish systems).
14909 2001-09-19  Akim Demaille  <akim@epita.fr>
14911         * lib/autotest/general.m4: Englishoes.
14912         From Tim Van Holder and Alexey Mahotkin.
14914 2001-09-18  Paul Eggert  <eggert@twinsun.com>
14916         * doc/autoconf.texi (Common Shell Constructs): New node,
14917         documenting AS_DIRNAME.
14918         (Limitations of Usual Tools): Refer to it when discussing dirname.
14919         Also, update discussion of POSIX standard to reflect latest draft.
14921         * lib/autoconf/c.m4:
14922         (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
14924         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
14925         Do not pass a first argument with leading '-'
14926         to expr, by parenthesizing initial integers that might be negative.
14928         * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
14929         now merely checks whether it is an error to pass an argument
14930         to getpgrp.
14932         * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
14933         (AC_FUNC_GETPGRP): Don't bother with a runtime test.  Just check
14934         whether it is a (compile-time) error to pass an argument to
14935         getpgrp.  This simpler test supports the revised documentation,
14936         and is all that AC_FUNC_GETPGRP's users really need.
14938 2001-09-18  Akim Demaille  <akim@epita.fr>
14940         * doc/autoconf.texi (Limitations of Make) <$<>: New.
14942 2001-09-18  Akim Demaille  <akim@epita.fr>
14944         * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
14945         `{}'.
14946         * lib/autotest/general.m4 (AT_INIT): Adjust.
14948 2001-09-18  Paul Wagland  <paul@wagland.net>
14950         * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
14951         correctly.
14952         Add test for AS_BASENAME.
14953         * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
14954         added test. It now correctly handles /1/2/3/, returning '3' not ''.
14955         Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
14956         * tests/base.at: Fixed the expected responses. The old ones were
14957         one line out...
14958         * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
14959         the documentation claims it should (and how it behaved in 2.13).
14961 2001-09-18  Akim Demaille  <akim@epita.fr>
14963         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
14964         the AC_CONFIG_COMMANDS invocation.
14965         This also solves the name clash problems.
14966         Don't set the package's ID.
14967         * lib/m4sugar/Makefile.am (version.m4): Revamp.
14968         No longer to be shipped.
14969         (version.in): Remove.
14970         * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
14971         * lib/autoconf/status.m4: Adjust.
14972         Use `m4_PACKAGE_STRING'.
14973         * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
14974         the only optional argument is the name of the test suite.
14975         Expect `package.m4' to define the package signature.
14976         * lib/autom4te.in (Autotest): Add `package.m4?'.
14977         * tests/Makefile.am (package.m4): New.
14978         * tests/suite.at: ifnames is a victim.
14980 2001-09-18  Akim Demaille  <akim@epita.fr>
14982         * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
14983         AC_LIBSOURCE, AC_CONFIG_FILES.
14984         * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
14985         program version string doesn't match the package's.
14986         * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
14987         after `(cached)'.
14989 2001-09-17  Paul Eggert  <eggert@twinsun.com>
14991         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
14992         Allow expression to return any value that can fit into unsigned long
14993         (not int, as before).  Check for output errors.
14995 2001-09-17  Bruno Haible  <haible@ilog.fr>
14997         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
14998         Always include <stdio.h> and <stdlib.h>. Evaluate
14999         the expression in an extra function before these includes. Call
15000         fprintf "%d" only after ensuring the argument is of type 'int'.
15001         Reported by Wayne Chapeskie <waynec@spinnaker.com>.
15003 2001-09-17  Paul Eggert  <eggert@twinsun.com>
15005         Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
15006         or CFLAGS=-O5.  In that case, the linker has a relaxed view of
15007         fatal errors, and AC_CHECK_LIB causes it to include libraries even
15008         when they don't exist.
15010         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
15011         not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
15012         need it.
15014         * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
15015         version with the version used by fileutils 4.1, except use
15016         AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
15017         we don't need it.
15019         * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
15021 2001-09-13  Akim Demaille  <akim@epita.fr>
15023         * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
15024         _first_.
15025         Reported by Gerrit P. Haase.
15027 2001-09-13  Akim Demaille  <akim@epita.fr>
15029         * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
15030         m4_defn'ing is valid.
15032 2001-09-13  Akim Demaille  <akim@epita.fr>
15034         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
15035         * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
15036         Use it.
15038 2001-09-13  Akim Demaille  <akim@epita.fr>
15040         * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
15041         m4_match.
15042         (m4_re_escape): New.
15043         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
15044         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
15045         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
15046         Likewise.
15047         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
15048         (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
15049         * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
15050         AT_tests_all for consistency.
15051         Set at_victims.
15052         (AT_VICTIMS): Similar to AT_KEYWORDS.
15053         (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
15055 2001-09-13  Akim Demaille  <akim@epita.fr>
15057         * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
15059 2001-09-13  Akim Demaille  <akim@epita.fr>
15061         * lib/autotest/general.m4 (AT_INIT): Create and remove
15062         `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
15063         test suites can cohabit.
15065 2001-09-13  Akim Demaille  <akim@epita.fr>
15067         * tests/mktests.sh: Don't output banners for empty test files.
15069 2001-09-13  Akim Demaille  <akim@epita.fr>
15071         Test suites can be run independently of configure.
15073         * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
15074         * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
15075         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
15076         ECHO_N etc.
15077         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
15078         and at_c.
15079         * lib/autotest/general.m4: Use ECHO_*.
15081 2001-09-13  Akim Demaille  <akim@epita.fr>
15083         * bin/ifnames.in: Rewrite in Perl.
15084         * configure.ac: Don't look for AWK.
15085         * tests/tools.at (AWK portability): Remove.
15086         (Syntax of the shell scripts): Don't check ifnames.
15087         (AT_CHECK_PERL_SYNTAX): New.
15088         (Syntax of the Perl scripts): Check ifnames.
15089         * tests/ifnames: New.
15091 2001-09-13  Akim Demaille  <akim@epita.fr>
15093         * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
15094         test group titles.
15095         * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
15096         Remove all the other keywords.
15098 2001-09-10  Akim Demaille  <akim@epita.fr>
15100         * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
15101         SETUP: no longer used.
15102         Support -k, --keywords.
15103         <at_help>: Be `no', `short', or `long'.
15104         <at_help_all>: New variable.
15105         (AT_KEYWORDS): New.
15106         (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
15107         (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
15108         (_AT_CLEANUP_FILE_IF): Simplify the regexp.
15109         (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
15110         No longer fill the HELP diversion.
15111         (AT_CLEANUP): Use them.
15112         * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
15113         (m4_list_append): Remove.
15115         Spread a few keywords in the Autoconf test suite.
15117 2001-09-10  Akim Demaille  <akim@epita.fr>
15119         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
15120         PATH_SEPARATOR, let M4sh compute it.
15121         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
15122         * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
15123         Move to...
15124         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
15125         Simplify when the path is not a literal.
15126         (AS_UNAME): Use it to report PATH.
15127         * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
15128         (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
15129         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
15130         * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
15131         normalize the path, and to look for victims.
15132         * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
15133         (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
15135 2001-09-07  Akim Demaille  <akim@epita.fr>
15137         * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
15138         doesn't neutralize SIGINT, making autoconf etc. non interruptible.
15139         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
15140         related variables into `at_package_*'.
15141         * lib/autotest/general.m4 (AT_VICTIMS): New.
15142         (AT_INIT): Adjust for stand-alone/embedded test suites.
15143         (AS_MESSAGE_LOG_FD): Define and use it.
15144         * tests/suite.at (AT_VICTIMS): Use it.
15145         * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
15146         at_version.
15148 2001-09-07  Akim Demaille  <akim@epita.fr>
15150         Move toward possibly stand-alone test suites.
15152         * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
15153         in addition, it introduces useless differences in logs.
15154         (AT_INIT): Let atconfig and atlocal be both optional.
15155         Adjust PATH computation.
15156         * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
15158 2001-09-07  Akim Demaille  <akim@epita.fr>
15160         * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
15161         m4sugar/version.m4.
15163 2001-09-05  Akim Demaille  <akim@epita.fr>
15165         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
15166         to avoid GCC warnings.
15167         From Uwe Seimet.
15169 2001-09-05  Akim Demaille  <akim@epita.fr>
15171         * bin/autom4te.in: --language is -l, not -s.
15173 2001-09-05  Akim Demaille  <akim@epita.fr>
15175         Be ready to handle filenames as stupid as `dnl.at', for if even
15176         the maintainer is dumb enough to do that...
15178         * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
15179         excellence in M4 quotation: consider `__file__' is active.
15181         And BTW, when invoking m4, pass the --include in the right order:
15182         the wrong one.
15184         * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
15185         4m.
15187 2001-09-05  Akim Demaille  <akim@epita.fr>
15189         * lib/Autom4te/XFile.pm: New lib file.
15190         * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
15191         * bin/autoheader.in: Use it.
15193 2001-09-05  Akim Demaille  <akim@epita.fr>
15195         * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
15196         defined.
15198 2001-09-05  Akim Demaille  <akim@epita.fr>
15200         * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
15201         * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
15203         * bin/autoscan.in: Use `getopt' and `find_files' etc.
15204         Add -I, --include support.
15205         * doc/autoconf.texi (autoscan Invocation): Adjust.
15207 2001-09-05  Akim Demaille  <akim@epita.fr>
15209         CVS GNU M4 doesn't like `undefine(undefined)'.
15211         * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
15212         New, extracted from main.
15213         Use IO::File wherever possible.
15214         (input.m4): Be constant, use -I instead of hard coding $tmp.
15215         Therefore be a quoted heredoc.
15216         Don't invoke `_au_disable', since ac was not loaded, but just
15217         `unm4.m4'.
15219 2001-08-31  Akim Demaille  <akim@epita.fr>
15221         Version 2.52d.
15223 2001-08-31  Akim Demaille  <akim@epita.fr>
15225         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
15226         previous patch.
15227         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
15229 2001-08-31  Akim Demaille  <akim@epita.fr>
15231         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
15232         serious problems handling heredocs in heredocs.
15233         Reported by Nicolas Joly.
15235 2001-08-31  Akim Demaille  <akim@epita.fr>
15237         * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
15238         (Making testsuite Scripts): Update.
15240 2001-08-31  Akim Demaille  <akim@epita.fr>
15242         * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
15244 2001-08-31  Akim Demaille  <akim@epita.fr>
15246         * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
15247         (testsuite Scripts): There is no such thing as `atconfig.in'.
15248         And actually one diagram is missing: test suite runtime.
15250 2001-08-31  Akim Demaille  <akim@epita.fr>
15252         * lib/Autom4te/General.pm (&find_file): Browse the includes in the
15253         inverse order.
15255 2001-08-31  Akim Demaille  <akim@epita.fr>
15257         * bin/autoupdate.in (@include): `installcheck' revealed the path
15258         to m4sugar was lacking!
15260 2001-08-31  Akim Demaille  <akim@epita.fr>
15262         * man/Makefile.am (.x.1): We really have to pass
15263         autom4te_perllibdir.
15265 2001-08-31  Akim Demaille  <akim@epita.fr>
15267         * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
15268         debug scripts, in particular passing explicitly listed tests to
15269         run is stupid.
15271 2001-08-31  Akim Demaille  <akim@epita.fr>
15273         * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
15274         * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
15275         Use directly autom4te, not autoconf.
15276         * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
15278 2001-08-31  Akim Demaille  <akim@epita.fr>
15280         * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
15281         * bin/autoheader.in (%symbol): Strip arguments of macros.
15283 2001-08-31  Akim Demaille  <akim@epita.fr>
15285         * doc/autoconf.texi: Catch up -I, --include changes.
15287 2001-08-31  Akim Demaille  <akim@epita.fr>
15289         * bin/autom4te.in (&parse_args): Die on unknown languages.
15290         * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
15291         need for autoconf.
15292         Promote --include over --macrodir and other obsolete options.
15294 2001-08-31  Akim Demaille  <akim@epita.fr>
15296         * lib/Autom4te/General.pm ($version, $help, &getopt): New.
15297         * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
15298         * bin/autom4te.in ($autoconf): Pass --force.
15299         `print $out' doesn't print `$_' but `$out'.
15300         * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
15301         (autoheader): Pass --force since the test suite goes too fast for
15302         the time stamps.
15303         Adjust to the new autoheader messages.
15305 2001-08-31  Akim Demaille  <akim@epita.fr>
15307         * bin/autoheader.in: Handle the acconfig.h etc. junk files.
15308         Check the completeness of the #template.
15309         * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
15310         * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
15311         invocation.
15313 2001-08-31  Akim Demaille  <akim@epita.fr>
15315         * lib/Autom4te/General.pm (&find_file, &update_file): New.
15316         * bin/autoupdate.in, bin/autoheader.in: Adjust.
15317         Drop AC_MACRODIR dead for real.
15318         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
15319         `autoheader: `config.hin' is created'.
15320         * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
15322 2001-08-31  Akim Demaille  <akim@epita.fr>
15324         * bin/autoheader.in: Rewrite in Perl.
15325         * tests/autoheader: Adjust.
15327 2001-08-31  Akim Demaille  <akim@epita.fr>
15329         * bin/autoconf.in (--include, -I): New option.
15330         Map --localdir, --autoconf-dir onto it.
15331         Forward autom4te's options instead of interpreting them.
15332         * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
15333         There is no such envvar since the inception of autom4te.cfg.
15334         * bin/autom4te.in (&parse_args): Uniquify `@include'.
15335         * bin/autoupdate.in: Adjust, and perform more control.
15336         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
15337         * tests/autoconf: Dittowise.
15339 2001-08-31  Akim Demaille  <akim@epita.fr>
15341         * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
15342         * bin/autom4te.in (&find_file): Support `FILE?' standing for
15343         optionally `FILE'.
15344         Use -e, not -f, since /dev/null for instance is OK.
15345         (&parse_args): Adjust.
15346         * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
15348 2001-08-31  Akim Demaille  <akim@epita.fr>
15350         * configure.ac: Also find tested executables in bin.
15351         * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
15352         * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
15353         installed peer executables, only PATH is allowed to resolve it.
15354         Pass `autoconf_dir' via options, not via invisible envvars.
15355         * lib/Autom4te/General.pm (&find_peer): Remove.
15356         * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
15357         `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
15358         * man/Makefile.am: Let help2man rely on PATH instead of trying to
15359         find the executables for it.
15360         * tests/Makefile.am: Major cleanup.  Too lazy to document...
15361         * tests/atlocal.in: Remove all the obscure envvar manipulations.
15362         We only need PERL.
15363         * tests/atspecific.m4, tests/tools.at: Passing --localdir is
15364         indeed related to running the test suite, while passing
15365         --autoconf-dir and others is related to running non installed
15366         Autoconf executables.  So don't do that, leave it to...
15367         * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
15368         * tests/autoscan: New.
15369         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
15370         refer to library files: rely on --language.
15372 2001-08-29  Akim Demaille  <akim@epita.fr>
15374         * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
15375         s/--set/--language/.
15377 2001-08-29  Akim Demaille  <akim@epita.fr>
15379         * doc/autoconf.texi: Strip the @nodes.
15380         Suggested by Paul Eggert.
15381         (Initializing configure): Typo.
15383 2001-08-29  Akim Demaille  <akim@epita.fr>
15385         * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
15386         Suggested by Paul Eggert.
15388 2001-08-29  Akim Demaille  <akim@epita.fr>
15390         * Makefile.maint (do-po-update): Wget refuses to overwrite files:
15391         download in a tmp dir.
15393 2001-08-29  Akim Demaille  <akim@epita.fr>
15395         * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
15396         case insensitive OSes out there :(
15397         From Tim Van Holder.
15399 2001-08-29  Akim Demaille  <akim@epita.fr>
15401         * lib/autom4te.in: New.
15402         * lib/Makefile.am (edit, autom4te.cfg): New.
15403         * bin/autom4te.in (BEGIN): Simplify.
15404         Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
15405         (&load_configuration): New.  Use it.
15406         (&parse_args): Support --mode, --set, and --melt.
15407         * bin/autoconf.in: Simplify and adjust.
15408         * tests/Makefile.am (AUTOMAKE): Use --set.
15409         * tests/atlocal.in: Adjust.
15410         * BUGS: distcheck and check are weak.
15412 2001-08-29  Akim Demaille  <akim@epita.fr>
15414         * lib/autotest/general.m4: Use
15415                 foo=`(command) 2>/dev/null`
15416         not
15417                 foo=`command` 2>/dev/null
15418         (at-devnull): Rename as...
15419         (AT-devnull): this.
15420         (--clean): Remove AT-* files too.
15421         * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
15422         Reported by Nicolas Joly.
15424 2001-08-28  Akim Demaille  <akim@epita.fr>
15426         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
15427         quotes inside single quotes.
15428         Reported by Nicolas Joly.
15430 2001-08-28  Kevin Ryde  <user42@zip.com.au>
15432         * doc/autoconf.texi (Function Portability): Mention C right shifts.
15434 2001-08-27  Tim Van Holder  <tim.van.holder@pandora.be>
15436         * lib/autotest/general.m4: Reword some messages.
15437         (AT_INIT): Check for the `times' builtin before using it.
15438         Support test ranges as arguments to the testsuite.
15439         Have -e imply -d as the help text suggested.
15441 2001-08-27  Akim Demaille  <akim@epita.fr>
15443         * Makefile.maint: Formatting changes.
15444         (do-po-update, po-update, cvs-update, update): New targets.
15445         (AMTAR): Remove.
15447 2001-08-27  Akim Demaille  <akim@epita.fr>
15449         * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
15450         <at_cmd_line>: New.
15451         Pass it to debug-*.sh scripts.
15452         <AUTOTEST_PATH>: May contain absolute dir names.
15454 2001-08-27  Akim Demaille  <akim@epita.fr>
15456         * lib/autotest/general.m4 (AT_INIT): Log the command line.
15457         Support `VAR=VAL' as arguments.
15458         Compute PATH _after_ the options processing, so that AUTOTEST_PATH
15459         may be set via the command line.
15461 2001-08-27  Akim Demaille  <akim@epita.fr>
15463         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
15464         * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
15465         first the build dirs, then the src dirs.
15466         * configure.ac (AC_CONFIG_TESTDIR): Adjust.
15468 2001-08-27  Akim Demaille  <akim@epita.fr>
15470         * lib/autotest/general.m4 (AT_INIT): Output the definition of
15471         at_data_files earlier.
15472         (--clean, -c): New option.
15473         * tests/Makefile.am: Use this option.
15475 2001-08-27  Akim Demaille  <akim@epita.fr>
15477         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
15478         `ac_top_builddir' to mimic Automake's vocabulary, which much more
15479         readable.
15480         Adjust callers.
15481         * doc/autoconf.texi (Configuration Actions): Document the vars
15482         available in commands.
15483         Emphasize the risks of collisions in init-cmds.
15485 2001-08-27  Akim Demaille  <akim@epita.fr>
15487         * doc/autoconf.texi (Input) <AC_INIT>: Move to..
15488         (Initializing configure): this new node.
15490 2001-08-27  Akim Demaille  <akim@epita.fr>
15492         * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
15494 2001-08-27  Akim Demaille  <akim@epita.fr>
15496         * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
15497         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
15498         New file.
15499         * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
15501 2001-08-27  Akim Demaille  <akim@epita.fr>
15503         * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
15504         to...
15505         * lib/autoconf/autoheader.m4: this new file.
15506         * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
15507         (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
15508         Move to...
15509         * lib/autoconf/autoupdate.m4: this new file.
15511 2001-08-27  Akim Demaille  <akim@epita.fr>
15513         * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
15514         (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
15515         Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
15516         -> ac_dir).
15517         (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
15518         * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
15520 2001-08-27  Akim Demaille  <akim@epita.fr>
15522         * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
15523         (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
15524         (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
15525         (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
15526         (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
15527         (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
15528         (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
15529         (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
15530         (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
15531         (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
15532         (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
15533         (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
15534         (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
15535         (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
15536         (_AC_OUTPUT_SUBDIRS): Move to...
15537         * lib/autoconf/status.m4: this new file.
15538         * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
15539         * tests/Makefile.am, tests/suite.at: Adjust.
15541 2001-08-27  Akim Demaille  <akim@epita.fr>
15543         Automake 1.5.
15545         * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
15546         (AMTAR): Help automake define it.
15547         (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
15548         needed, 1.5 can have a macro and a target with the same name.
15549         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
15550         * m4/strip.m4: New.
15551         * m4/init.m4, m4/sanity.m4: Update.
15552         * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
15553         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
15554         * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
15555         * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
15557 2001-08-27  Akim Demaille  <akim@epita.fr>
15559         Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
15561         * lib/autoconf/version.in: Remove.
15562         * lib/m4sugar/version.in: New.
15563         * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
15564         Adjust callers.
15565         * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
15566         the name of the directory they're in, instead of the filename,
15567         since version.m4 is now in m4sugar, but m4_acversion must not be
15568         classified as an Autoconf macro.
15569         ($input_m4): Don't qualify the path to m4sugar.
15570         Rather, pass autoconf_dir to m4.
15571         * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
15572         * tests/suite.at: Require 2.52c.
15574 2001-08-27  Akim Demaille  <akim@epita.fr>
15576         testsuite.log should include config.log.
15578         * lib/autotest/autotest.m4: New.
15579         * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
15580         * tests/suite.at : Adjust.
15581         (AT_INIT): Log config.log.
15582         * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
15583         * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
15584         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
15585         (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
15586         of config.log on traps.
15587         (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
15588         Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
15589         for config.status'.
15590         Open the log as soon as possible.
15591         Use the same log introduction as configure's.
15593 2001-08-22  Paul Eggert  <eggert@twinsun.com>
15595         * doc/autoconf.texi (Indices): New node.
15596         Move indices out of the top level menu and into this submenu.
15598 2001-08-22  Akim Demaille  <akim@epita.fr>
15600         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
15601         AC_TRY_COMMAND.
15602         (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
15604 2001-08-22  Akim Demaille  <akim@epita.fr>
15606         * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
15607         (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
15608         (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
15609         * lib/autoconf/programs.m4: here.
15610         * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
15611         (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
15612         (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
15613         * lib/autoconf/programs.m4: here.
15614         (_AC_DECL_YYTEXT): Rename as...
15615         (_AC_PROG_LEX_YYTEXT_DECL): this.
15616         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
15617         * tests/Makefile.am, tests/suite.am: Adjust.
15619 2001-08-22  Akim Demaille  <akim@epita.fr>
15621         * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
15622         Move to...
15623         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
15624         here.
15625         * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
15626         * lib/autoconf/functions.m4: here.
15627         * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
15628         (AH_CHECK_LIB): Move to...
15629         * lib/autoconf/libs: this new file.
15630         * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
15631         (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
15632         * lib/autoconf/libs.m4: here.
15633         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
15635 2001-08-22  Akim Demaille  <akim@epita.fr>
15637         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
15638         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
15639         (AC_SITE_LOAD): Better logging of config.site.
15641 2001-08-20  Akim Demaille  <akim@epita.fr>
15643         * configure.ac (AT_CONFIG): Fix the path.
15644         * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
15645         can be used.
15647 2001-08-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
15649         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
15650         program with AC_LANG_PROGRAM before feeding it to
15651         AC_COMPILE_IFELSE.  Cleanup grep usage.
15653 2001-08-20  Akim Demaille  <akim@epita.fr>
15655         * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
15656         * NEWS, README, README-alpha, TODO, tests/README: This package is
15657         `Autoconf', not `autoconf' (the executable).
15659 2001-08-20  Akim Demaille  <akim@epita.fr>
15661         Info readers seem to need `Index' in the index node title :(
15663         * doc/autoconf.texi: Reverse the 2001-08-15 change which
15664         simplified index node names.
15666 2001-08-20  Akim Demaille  <akim@epita.fr>
15668         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
15669         arguments are not literals.
15670         * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
15671         Specify the output variables, and macros defined.
15673 2001-08-20  Akim Demaille  <akim@epita.fr>
15675         * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
15676         (Examining Syntax) <AC_TRY_COMPILE>
15677         (Examining Libraries) <AC_TRY_LINK>
15678         (Test Programs) <AC_TRY_RUN>: These macros double quote some of
15679         their arguments.
15680         Reported by Werner Lemberg.
15682 2001-08-20  Akim Demaille  <akim@epita.fr>
15684         * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
15685         top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
15686         Load atlocal late enough to dump it in the log.
15687         * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
15689 2001-08-20  Akim Demaille  <akim@epita.fr>
15691         * tests/torture.at (Configuring subdirectories): New test.
15692         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
15693         looking for.
15694         * m4/atconfig.m4: Be sure the let $[0] be expandable.
15695         (top_srcdir): Fix its computation.
15697 2001-08-20  Akim Demaille  <akim@epita.fr>
15699         * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
15700         * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
15701         test suite lives.
15702         Create `atconfig' automagically.
15703         Configure atlocal.in if present.
15704         * tests/atconfig.in: Remove.
15705         * tests/atlocal.in: New.
15706         * tests/Makefile.am: Adjust.
15708 2001-08-20  Akim Demaille  <akim@epita.fr>
15710         Huh!?!?!  There are still some user EOF tags used, which prevents
15711         their use in AC_CONFIG_COMMANDS for instance...
15713         * lib/autoconf/general.m4, lib/autoconf/specific.m4,
15714         * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
15715         `_CSEOF', or `_ATEOF', as appropriate.
15716         * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
15717         * lib/autotest/Makefile.am (check-local): Enforce this constraint.
15719 2001-08-20  Akim Demaille  <akim@epita.fr>
15721         * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
15722         * tests/semantics.at, tests/tools.at, tests/torture.at:
15723         s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
15725 2001-08-20  Akim Demaille  <akim@epita.fr>
15727         Autotest invokes M4sh's initialization.
15729         * lib/autotest/general.m4: Adjust the diversion names.
15730         (AT_INIT): Run AS_INIT.
15731         Use the BINSH diversion to invoke /bin/sh.
15732         * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
15733         * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
15735 2001-08-20  Akim Demaille  <akim@epita.fr>
15737         Let M4sh have its own diversions.
15739         * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
15740         (_m4_divert(NOTICE)): Rename as...
15741         * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
15742         (_m4_divert(HEADER-COMMENT)): these.
15743         (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
15744         (_m4_divert(NOTICE)): New, for Libtool.
15745         * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
15746         long ago with `_m4_divert(GROW)'.
15747         (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
15749 2001-08-20  Akim Demaille  <akim@epita.fr>
15751         * tests/base.at, tests/compile.at, tests/foreign.at,
15752         * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
15753         * tests/semantics.at, tests/suite.at, tests/tools.at,
15754         * tests/torture.at: Ask Autotest mode, not Autoconf mode.
15756 2001-08-20  Akim Demaille  <akim@epita.fr>
15758         * bin/autom4te.in (handle_output): Handle @__@.
15760 2001-08-20  Akim Demaille  <akim@epita.fr>
15762         * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
15763         * lib/autotest/general.m4: Adjust the license.
15765 2001-08-17  Paul Eggert  <eggert@twinsun.com>
15767         * doc/autoconf.texi (Function Portability): Mention snprintf,
15768         following up on a suggestion by Kevin Ryde.
15770 2001-08-17  Akim Demaille  <akim@epita.fr>
15772         * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
15773         `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
15775 2001-08-17  Akim Demaille  <akim@epita.fr>
15777         * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
15778         `$0.log' as for projects where testsuite is in src, we'd have
15779         testsuite.log created in src.
15781 2001-08-17  Akim Demaille  <akim@epita.fr>
15783         * bin/autom4te.in (&parse_args): Recognize --normalize.
15785 2001-08-17  Akim Demaille  <akim@epita.fr>
15787         Start implementing the AC_CHECK_HEADER transition scheme.
15789         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
15790         (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
15791         (AC_CHECK_HEADER): Use them.
15793 2001-08-17  Akim Demaille  <akim@epita.fr>
15795         * doc/autoconf.texi: Work around Texinfo buglets.
15796         (Transformation Rules): One example is enough, users are expected
15797         to have their brains on. And BTW, use DESTDIR.
15798         (dvar): New macro.  Use it.
15800 2001-08-17  Akim Demaille  <akim@epita.fr>
15802         * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
15803         * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
15804         looking for ChangeLogs.
15806 2001-08-17  Akim Demaille  <akim@epita.fr>
15808         * bin/autom4te.in: --normalize is a new option.
15809         * bin/autoconf.in: Use it.
15811 2001-08-17  Akim Demaille  <akim@epita.fr>
15813         * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
15814         * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
15816 2001-08-16  Paul Eggert  <eggert@twinsun.com>
15818         * doc/autoconf.texi, doc/install.texi: Put copyright notice at
15819         start, not at end.
15821 2001-08-15  Akim Demaille  <akim@epita.fr>
15823         * doc/Makefile.am (fu): New index, can't use fn because of defmac.
15824         Use it.
15826 2001-08-15  Akim Demaille  <akim@epita.fr>
15828         * doc/autoconf.texi (pr): New index.
15829         (prindex, findex): Use, merge, and output them.
15830         (Environment Variable Index, Output Variable Index)
15831         (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
15832         (Autotest Macro Index): Rename as...
15833         (Environment Variables, Output Variables,Preprocessor Symbols)
15834         (Autoconf Macros, M4 Macros, Autotest Macros): these.
15835         * doc/install.texi: Use @command.
15836         (Environment Variables): Rename as...
15837         (Defining Variables): this.
15839 2001-08-15  Akim Demaille  <akim@epita.fr>
15841         * doc/autoconf.texi (Function Portability): sprintf's return
15842         value.
15843         From Kevin Ryde.
15845 2001-08-15  Akim Demaille  <akim@epita.fr>
15847         * Makefile.maint (CVS): New.
15848         (local-check): Run changelog-check. last.
15849         (alpha): Don't depend upon local-check, since...
15850         (cvs-dist): depends upon it.
15852 2001-08-15  Tim Van Holder  <tim.van.holder@pandora.be>
15854         * tests/Makefile.am: Use a clean-local rule to remove
15855         autom4te.cache (it's a directory, not a file.
15856         * Makefile.am: Ditto (but maintainer-clean-local).
15858 2001-08-15  Akim Demaille  <akim@epita.fr>
15860         * bin/autom4te.in (@m4_warning): New.
15861         (&handle_m4): Use it.
15862         * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
15863         warnings are issued at each run.
15864         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
15865         is in the src tree.
15867 2001-08-15  Akim Demaille  <akim@epita.fr>
15869         * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
15870         don't waste time running `autoupdate --version' works.
15871         * tests/tools.at (autoupdating AC_PREREQ): Likewise.
15873 2001-08-13  Akim Demaille  <akim@epita.fr>
15875         * doc/autoconf.texi (ma): Rename this index as...
15876         (ac): this.
15878 2001-08-13  Akim Demaille  <akim@epita.fr>
15880         * Makefile.am: Remove dead code and dead comments.
15881         (pdf, html): New targets.
15882         * doc/autoconf.texi (Using Autotest): New chapter.
15883         * doc/Makefile.am (pdf): New targets.
15884         (CLEANFILES): Adjust.
15886 2001-08-13  Akim Demaille  <akim@epita.fr>
15888         * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
15889         duration of the test suite.
15891 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
15893         * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
15894         endianness for comparison instead of relying on AT_CHECK_ENV.
15896 2001-08-11  Paul Eggert  <eggert@twinsun.com>
15898         * doc/autoconf.texi, doc/install.texi: Add a copyright notice
15899         to the INSTALL file.
15901 2001-08-11  Paul Eggert  <eggert@twinsun.com>
15903         * NEWS: The autoconf manual now is distributed under the terms
15904         of the GNU Free Documentation License.
15906         * doc/autoconf.texi: Switch from old style copyright notice to FDL.
15907         Add an appendix "Copying This Manual" for the FDL.
15909         * doc/fdl.texi: New file, from
15910         <http://www.gnu.org/licenses/fdl.texi>.
15912         * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
15914 2001-08-10  Paul Eggert  <eggert@twinsun.com>
15916         * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
15917         ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
15918         README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
15919         m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
15920         m4/sanity.m4, tests/README, tests/aclocal.m4,
15921         tests/atspecific.m4, tests/base.at, tests/compile.at,
15922         tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
15923         tests/semantics.at, tests/suite.at, tests/tools.at,
15924         tests/torture.at: Add copyright notice.
15926         * tests/mktests.sh: Update year in copyright notice.
15928 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
15930         * tests/semantics.at (AC_C_BIGENDIAN): New test.
15932 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
15934         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
15935         ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
15936         * doc/autoconf.texi (C Compiler Characteristics): Update
15937         documentation for AC_C_BIGENDIAN.
15939 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
15941         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
15942         magic values from an object file when cross-compiling.
15943         Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
15945 2001-08-10  Akim Demaille  <akim@epita.fr>
15947         * bin/autom4te.in (&handle_output): Don't use `grep' with side
15948         effects.
15949         Suggested by Russ Allbery.
15951 2001-08-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
15953         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
15954         current $prefix to the sub-configures.
15956 2001-08-09  Tim Van Holder  <tim.van.holder@pandora.be>
15958         * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
15959         extension (needed on BeOS).  Reported by Guido van Rossum.
15961 2001-08-09  Akim Demaille  <akim@epita.fr>
15963         * bin/autom4te.in ($icache): Load it only if older than autom4te.
15965 2001-08-07  Akim Demaille  <akim@epita.fr>
15967         * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
15968         removed.
15969         (at-setup-line): Huh?  Be a variable `at_setup_line', not a file.
15970         No need to remove the files before and after the each test, before
15971         each test and at the end of the suite is enough.
15972         Display only the children `times', not the shell's.
15973         If the test failed or was skipped, at-times is not available.
15975 2001-08-07  Akim Demaille  <akim@epita.fr>
15977         Always produce testsuite.log, including when there are no
15978         failures.  This helps getting information on skipped tests, and
15979         duration of the tests.  Err, implement the latter btw.
15981         * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
15982         Dump information on the first run of each test.
15983         (AT_CLEANUP): Create `at-times' containing the duration of the
15984         test group.
15986 2001-08-07  Akim Demaille  <akim@epita.fr>
15988         The use of `dumpstat' revealed that `len' was used although it
15989         should not.  m4_text_wrap was using it, but in the Autoconf world
15990         where it is legal.  Hence (i) test M4sh in its own world, not
15991         Autoconf's, and (ii), ahem, fix the bug :)
15993         * lib/autotest/general.m4: Be sure the set good quotes, as tracing
15994         does not like `' instead of [].
15995         (AT_INIT): Forbid `^_?AT_'.
15996         And don't output such tokens.
15997         * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
15998         `script.as', and `autom4te.cache'.
15999         Remove `empty' and `macro' which are no longer used.
16000         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
16001         * tests/m4sugar.at: Use it.
16002         * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
16004 2001-08-07  Akim Demaille  <akim@epita.fr>
16006         * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
16008 2001-08-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
16010         * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
16012 2001-08-04  Akim Demaille  <akim@epita.fr>
16014         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
16015         (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
16016         AC_TRY_LINK.
16017         * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
16018         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
16019         (AC_F77_MAIN): Likewise.
16021 2001-08-04  Akim Demaille  <akim@epita.fr>
16023         Don't rely on M4sugar outputting the patterns in files, since we
16024         might process the output _without_ running m4, hence without these
16025         files.
16027         * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
16028         * bin/autom4te.in (@Request::includes): Remove, unused.
16029         (@Request::source): Rename as...
16030         (@Request::input): this.
16031         (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
16032         (&handle_output): Fetch the patterns from the traces.
16033         `$forbidden' and `$allowed' are constant: use m//o.
16034         (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
16035         (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
16037 2001-08-04  Akim Demaille  <akim@epita.fr>
16039         `autoconf && autoheader' is sped up.  Now, speed up `autoheader &&
16040         autoconf', i.e., in addition to caching traces, cache the output.
16042         * bin/autom4te.in (Request::cache): Rename as...
16043         (Request::id): this.
16044         ($cache, $icache, $tcache, $ocache): New.
16045         (&handle_m4): Save M4 output in the cache instead of $tmp.
16046         (&handle_output): Adjust.
16047         (&up_to_date_p): Check that the output cache is up to date too.
16048         (top level): Run `&handle_m4' iff force or the cache is invalid.
16049         Run `&handle_output' if the output cache is more recent.
16051 2001-08-04  Akim Demaille  <akim@epita.fr>
16053         * bin/autom4te.in ($force): New.
16054         (&parse_args, &print_usage): -f, --force is a new option.
16055         (&handle_output): CPP directives might have spaces after `#'.
16056         (&parse_args): The first file only can be frozen.
16058 2001-08-04  Akim Demaille  <akim@epita.fr>
16060         Don't let autom4te compute the `include' traces several times:
16061         first check that the trace cache file is up to date, and then
16062         compare its timestamp with that of the output.
16064         * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
16065         the preamble.  Don't require 5.005 as Autom4te::General does it,
16066         and better yet (use `use', not `require'!).
16067         * lib/Autom4te/Struct.pm: Rename the last occurrences of
16068         Class::Struct as Autom4te::Struct.
16069         * lib/Autom4te/General.pm (File::stat): Use it.
16070         (&mtime): New, export it.
16071         * bin/autom4te.in: Use it.
16072         Declare `$req' is invalid if it is outdated.
16073         Don't declare it valid before saving it if something went wrong.
16075 2001-08-04  Akim Demaille  <akim@epita.fr>
16077         Autom4te shall not encode Autoconf data, and preselecting traces
16078         must be proposed to the users.
16080         * bin/autom4te.in (@required_trace): Remove.
16081         (@preselect): New.
16082         (&parse_args, &print_usage): -p, --preselect is a new option.
16083         (&up_to_date_p): Adjust.
16084         * bin/autoconf.in: Preselect some Autoconf macros.
16086 2001-08-04  Akim Demaille  <akim@epita.fr>
16088         * tests/tools.at (autoconf --trace: user macros): Check traces on
16089         macros invoked without arguments, and macros invoked with multiple
16090         lines arguments.
16092 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
16094         * bin/autom4te.in (handle_traces): Fix rewriting of traces without
16095         arguments.
16097 2001-08-03  Akim Demaille  <akim@epita.fr>
16099         * bin/autoconf.in ($@): Work around the usual sh bug.
16100         From Nicolas Joly.
16102 2001-08-03  Akim Demaille  <akim@epita.fr>
16104         Clean up the handling of the M4 builtins tracing exception.
16106         * bin/autom4te.in (Request::request): Don't complete M4 builtins
16107         trace requests.
16108         (@m4_builtins): Rename as...
16109         (@m4_builtin): this.
16110         (%m4_builtin_alternate_name): New.
16111         (&parse_args): Complete the trace requests with alternate names.
16112         (&handle_traces): Hence no longer do it here.
16113         (&trace_requests): Remove, unused.
16115 2001-08-03  Akim Demaille  <akim@epita.fr>
16117         * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
16118         m4_if, and m4_wrap.
16120 2001-08-03  Akim Demaille  <akim@epita.fr>
16122         * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
16123         (m4_divert_pop): Dump the whole diversion stack when a diversion
16124         mismatch happens.
16125         * bin/autom4te.in (&handle_output): Remember of the first
16126         occurrence of a possibly undefined macro, not the last.
16127         Complain about the possibly undefined macros in the same order as
16128         the appear in the output.
16129         * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
16130         * tests/tools.at (autoconf: forbidden tokens, basic)
16131         (autoconf: forbidden tokens, exceptions): No longer sort
16132         autoconf's stderr, as it is now deterministic.
16133         Check that `dnl' is caught.
16135 2001-08-01  Akim Demaille  <akim@epita.fr>
16137         * configure.ac: Bump to 2.52c.
16139 2001-08-01  Akim Demaille  <akim@epita.fr>
16141         Version 2.52b.
16143         * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
16145 2001-08-01  Akim Demaille  <akim@epita.fr>
16147         Version 2.52a.
16149 2001-08-01  Akim Demaille  <akim@epita.fr>
16151         * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
16152         `die'.
16153         (&END): New.
16154         * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
16155         `END', as `Autom4te::General::END' will be triggered.
16156         * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
16157         * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
16158         system to run `mv', `rm', and `cmp'.
16160 2001-08-01  Akim Demaille  <akim@epita.fr>
16162         * lib/Autom4te/General.pm (&unique): New.
16163         * bin/autoscan.in (&output): Use it to issue trace requests once.
16165 2001-08-01  Akim Demaille  <akim@epita.fr>
16167         * lib/Autom4te/General.pm: New.
16168         * bin/autom4te.in (Autom4te::General): Use it.
16169         ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
16170         (&find_configure_ac, &find_slave): Remove.
16171         * bin/autoscan.in: Likewise.
16172         * bin/autoupdate.in: Likewise.
16174 2001-08-01  Akim Demaille  <akim@epita.fr>
16176         * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
16177         * autoheader.in, autoreconf.in, autoupdate.in: Move to...
16178         * bin: here, new directory.
16179         * lib/Autoconf: Rename as...
16180         * lib/Autom4te: this, to please case insensitive junkie OSes.
16182 2001-08-01  Akim Demaille  <akim@epita.fr>
16184         * autom4te.in ($m4): Handle the --nesting-limit.
16185         * autoconf.in (M4): Remove.
16187 2001-08-01  Akim Demaille  <akim@epita.fr>
16189         * autoconf.in ($AWK): Remove, no longer used.
16190         * test/tools.at: Use AT_CHECK_AUTOCONF.
16191         (AWK portability): Remove, for autoconf no longer uses AWK.
16192         (Syntax of the Perl scripts): New.
16193         * configure.ac: autoconf no longer needs an AWK with a good
16194         regexp engine.
16195         Use a static test on AC_PACKAGE_VERSION.
16196         * autom4te.in (&up_to_date_p): Output depends on the arguments.
16197         * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
16198         * tests/atconfig.in (PERL): New.
16200 2001-08-01  Akim Demaille  <akim@epita.fr>
16202         * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
16203         (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
16204         (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
16205         (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
16206         (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
16207         (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
16208         (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
16209         (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
16210         (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
16211         (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
16212         (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
16213         (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
16214         (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
16215         * lib/autoconf/c.m4: here, new file.
16217         * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
16218         (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
16219         (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
16220         (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
16221         (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
16222         (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
16223         (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
16224         (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
16225         (AC_F77_FUNC): Move to...
16226         * lib/autoconf/fortran.m4: here, new file.
16228 2001-08-01  Akim Demaille  <akim@epita.fr>
16230         * acfunctions.m4: Rename as...
16231         * lib/autoconf/functions.m4: this.
16232         * acgeneral.m4: Rename as...
16233         * lib/autoconf/general.m4: this.
16234         * acheaders.m4: Rename as...
16235         * lib/autoconf/headers.m4: this.
16236         * aclang.m4: Rename as...
16237         * lib/autoconf/lang.m4: this.
16238         * acoldnames.m4: Rename as...
16239         * lib/autoconf/oldnames.m4: this.
16240         * acspecific.m4: Rename as...
16241         * lib/autoconf/specific.m4: this.
16242         * actypes.m4: Rename as...
16243         * lib/autoconf/types.m4: this.
16244         * autoconf.m4: Rename as...
16245         * lib/autoconf/autoconf.m4: this.
16247         * m4sugar.m4: Rename as...
16248         * lib/m4sugar/m4sugar.m4: this.
16249         * m4sh.m4: Rename as...
16250         * lib/m4sugar/m4sh.m4: this.
16252         * tests/atgeneral.m4: Rename as...
16253         * lib/autotest/general.m4: this.
16255         * acfunctions: Rename as...
16256         * lib/autoscan/functions: this.
16257         * acheaders: Rename as...
16258         * lib/autoscan/headers: this.
16259         * acidentifiers: Rename as...
16260         * lib/autoscan/identifiers: this.
16261         * aclibraries: Rename as...
16262         * lib/autoscan/libraries: this.
16263         * acmakevars: Rename as...
16264         * lib/autoscan/makevars: this.
16265         * acprograms: Rename as...
16266         * lib/autoscan/programs: this.
16268 2001-08-01  Akim Demaille  <akim@epita.fr>
16270         * doc/autoconf.texi: Moving/deleting open files is not portable.
16271         Portability issues for `.' (source), and more information about sed.
16273 2001-07-25  Steven G. Johnson  <stevenj@alum.mit.edu>
16275         * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
16276         which has a special meaning and is not a reference to libibmil.a.
16277         Reported by Matteo Frigo.
16279 2001-07-25  Pavel Roskin  <proski@gnu.org>
16281         * autom4te.in (mktmpdir): Strip trailing newline from mktemp
16282         output.
16284 2001-07-25  Akim Demaille  <akim@epita.fr>
16286         * autoconf.in: Try to define the variables before using them.
16287         * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
16288         instead of `$perllibdir'.
16289         * tests/atconfig.in ($autom4te_perllibdir): Export it.
16291 2001-07-25  Akim Demaille  <akim@epita.fr>
16293         * autoconf.in (ac_LF_and_DOT): Remove, unused.
16295 2001-07-24  Akim Demaille  <akim@epita.fr>
16297         Let autoconf use autom4te for traces.
16299         * autoconf.in ($task, task trace): Remove, merely pass --trace to
16300         autom4te.
16301         * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
16302         (Because I found no way for autom4te to accept `-').
16303         * autom4te.in (&Request::request): Beware of M4 builtins.
16304         (END): Don't try to remove the content of an empty dir.
16305         (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
16306         (&handle_output): Set a default value to `$forbidden'.
16307         * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
16308         ($autoconf): Pass --debug and --verbose.
16309         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
16310         cache.
16312 2001-07-24  Akim Demaille  <akim@epita.fr>
16314         Let autoconf use autom4te to create configure.
16316         * autoconf.in ($automate): New var.
16317         (task script): Use autom4te.
16318         * autom4te.in (File::Spec): Use it.
16319         (&find_file): New.
16320         (&parse_args): --warning is -W, not -w.
16321         Find the top level files.
16322         (&handle_m4): Pass the warnings flags.
16323         Don't report verbosely m4's failures, unless requested.
16324         (&handle_output): Don't complain for forbidden tokens in comments.
16325         Be sure to report all the forbidden tokens within a single line.
16326         (&trace_format_to_m4): Preserve `$_'.
16327         (&handle_traces): Sort the output macros.
16328         (&up_to_date_p): Find the files before trying to get its time stamp.
16330 2001-07-24  Akim Demaille  <akim@epita.fr>
16332         * Makefile.am: Ship, build and install Autom4te.
16333         (SUBDIRS): Add lib.
16334         * lib/Autoconf/Struct.pm: New, from Automake 1.5.
16335         * configure.in: Require Perl.
16336         * man/autom4te.in: New.
16338 2001-07-19  Paul Eggert  <eggert@twinsun.com>
16340         * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
16341         example, rather than (exit 1); exit (which isn't portable).
16343 2001-07-18  Akim Demaille  <akim@epita.fr>
16345         Version 2.52.
16347 2001-07-18  Akim Demaille  <akim@epita.fr>
16349         The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
16350         was run, while they are needed also when it is expanded.
16351         Reported by Nicolas Joly.
16353         * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
16354         (AC_LANG_PROGRAM(C)): Use it instead of depending upon
16355         AC_F77_DUMMY_MAIN being expanded.
16357 2001-07-18  Akim Demaille  <akim@epita.fr>
16359         * configure.in: Bump to 2.51a.
16361 2001-07-17  Akim Demaille  <akim@epita.fr>
16363         Version 2.51.
16365 2001-07-17  Akim Demaille  <akim@epita.fr>
16367         * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
16368         Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
16370 2001-07-17  Akim Demaille  <akim@epita.fr>
16372         The runtime test for AC_FUNC_GETPGRP fails when prototypes are
16373         used.  Well, then use the prototypes when you can, and runtime as
16374         a last resort.
16375         Reported by Artur Frysiak
16377         * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
16378         (AC_FUNC_GETPGRP): Use it.
16379         First try to compile with 0-ary or 1-ary calls.
16381 2001-07-17  Akim Demaille  <akim@epita.fr>
16383         * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
16384         replacement type.
16385         From Paul Eggert.
16387 2001-07-17  Akim Demaille  <akim@epita.fr>
16389         * Makefile.maint: Sync. with cppi 1.10.
16391 2001-07-17  Akim Demaille  <akim@epita.fr>
16393         * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
16394         AC_F77_DUMMY_MAIN has been run.
16395         From Pavel Roskin and Steven G. Johnson.
16397 2001-07-17  Akim Demaille  <akim@epita.fr>
16399         * configure.in: Rename as...
16400         * configure.ac: this.
16402 2001-07-17  Akim Demaille  <akim@epita.fr>
16404         * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
16405         rules.
16406         From Marc Espie.
16407         * Makefile.maint (release-archive-dir): Rename as...
16408         (release_archive_dir): this, so that it can be specialized in
16409         Makefile.
16411 2001-07-14  Akim Demaille  <akim@epita.fr>
16413         * configure.in: Bump to 2.50d.
16415 2001-07-14  Akim Demaille  <akim@epita.fr>
16417         Version 2.50c.
16418         * Makefile.maint (alpha): Typo.
16420 2001-07-14  Akim Demaille  <akim@epita.fr>
16422         * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
16424 2001-07-14  Akim Demaille  <akim@epita.fr>
16426         * config/config.guess, config/config.sub, config/texinfo.tex
16427         * doc/standards.texi, doc/make-stds.texi: Update.
16429 2001-07-14  Akim Demaille  <akim@epita.fr>
16431         * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
16433 2001-07-14  Akim Demaille  <akim@epita.fr>
16435         * Makefile.maint (maintainer-check): Rename as...
16436         (maintainer-distcheck): this.
16437         (changelog-check, static-check): New.
16438         Use them.
16440 2001-07-14  Kevin Ryde  <user42@zip.com.au>
16442         * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
16443         for CXX is g++, not gcc.
16445 2001-07-14  Akim Demaille  <akim@epita.fr>
16447         * doc/autoconf.texi (Files): New subsection.
16449 2001-07-14  Akim Demaille  <akim@epita.fr>
16451         * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
16452         of...
16453         (Generic Compiler Characteristics): this.
16454         (C++ Compiler): New subsection.
16456 2001-07-14  Akim Demaille  <akim@epita.fr>
16458         * autoscan.in: Use IO::File.
16459         Adjust all the routines to use it.
16460         ($log): New file (autoscan.log).
16461         (output): Dump detailed logs into $log, and a shortened version to
16462         stderr.
16463         (&scan_makefile): Refine the regexp catching tokens in the code.
16464         * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
16465         and the `configure.ac' checking feature.
16467 2001-07-12  Akim Demaille  <akim@epita.fr>
16469         For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
16470         Reported by Michael Elizabeth Chastain.
16472         * autoconf.in: Refuse such AWK.
16473         * configure.in: Likewise.
16474         * Makefile.am (acversion.m4): Do not use move-if-change this file
16475         has dependencies.
16476         * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
16478 2001-07-10  Jens Petersen  <petersen@redhat.com>
16480         * autoscan.in (&scan_makefile): Improve programs regexp to parse
16481         things like "g++", "file.c" and "some-conf" as tokens.
16482         (&scan_file): Match C++ files extensions.
16483         If the filename extension is C++ then ask for c++.
16485 2001-07-05  Steven G. Johnson  <stevenj@alum.mit.edu>
16487         * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
16488         AC_TRY_LINK_FUNC, to check whether defining a dummy
16489         main-like routine is needed for linking with F77 libs.
16491 2001-07-05  Pavel Roskin  <proski@gnu.org>
16493         * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
16494         after using break.
16495         (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
16496         linking.
16498 2001-07-05  Akim Demaille  <akim@epita.fr>
16500         * Makefile.am (move_if_change): New.  Use it instead of `mv'.
16501         (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
16502         Makes' lives.
16503         Reported by Nicolas Joly.
16505 2001-07-04  Akim Demaille  <akim@epita.fr>
16507         * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
16508         up.
16509         * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
16510         warnings from compilers.
16511         * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
16512         for all the compilers, not only GNU.  Hence move from here...
16513         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
16515 2001-07-04  Akim Demaille  <akim@epita.fr>
16517         * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
16518         (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
16519         AC_COMPILE_IFELSE.
16521 2001-07-04  Akim Demaille  <akim@epita.fr>
16523         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
16524         the ``strings.h'' change claimed below.
16526 2001-07-04  Akim Demaille  <akim@epita.fr>
16528         * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
16530 2001-07-04  Akim Demaille  <akim@epita.fr>
16532         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
16533         strings.h if usable with string.h.
16534         Suggested by Paul Eggert.
16536 2001-07-04  Akim Demaille  <akim@epita.fr>
16538         * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
16539         From Jens Petersen.
16541 2001-07-03  Akim Demaille  <akim@epita.fr>
16543         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
16544         etc. in the log.
16546 2001-07-03  Akim Demaille  <akim@epita.fr>
16548         * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
16549         compiler, not the preprocessor.
16550         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
16551         dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
16552         the right thing.
16553         * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
16554         earlier if there are.
16556 2001-07-03  Akim Demaille  <akim@epita.fr>
16558         * autoscan.in ($initfile): Remove.
16559         (&find_file): Rename as...
16560         (&scan_file): this.
16561         Immediately scan the current file, instead of gathering them, and
16562         later having them handled by &scan_files.
16563         (&scan_files): Merely invoke Find::File.
16564         Adjust.
16566 2001-07-02  Akim Demaille  <akim@epita.fr>
16568         * autoscan.in: Formatting changes, matching the invocation order.
16569         (File::Find): Use it instead of Perl 4's `find.pl'.
16570         (&wanted): Rename as...
16571         (&find_file): this.
16573 2001-07-01  Pavel Roskin  <proski@gnu.org>
16575         * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
16576         break in the argument to AC_TRY_LINK_FUNC.
16577         (AC_F77_MAIN): Remove conftest* after using break in the
16578         argument to AC_TRY_LINK.
16580 2001-07-01  Steven G. Johnson  <stevenj@alum.mit.edu>
16582         Add alternate 'main' routine detection for linking C/C++ with Fortran,
16583         fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
16585         * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
16586         dummy alternate main is required even if the user provides her own
16587         'main'.
16588         (AC_F77_MAIN): New macro to detect whether it is possible to
16589         provide an alternate 'main' function name, using the 'main' from
16590         the Fortran libraries.
16591         (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
16592         cross-language link tests can be performed successfully.
16593         (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN.  Also put $FLIBS
16594         after $LIBS, for consistency; this should be the general rule since
16595         the user may want to link to Fortran libraries that require $FLIBS.
16596         * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
16598 2001-06-29  Pavel Roskin  <proski@gnu.org>
16600         * atgeneral.m4 (AT_CHECK): Add a newline to the end of
16601         at-stdout and at-stderr instead of removing the newline
16602         from the echo output, which is not guaranteed to work.
16604 2001-06-28  Jens Petersen  <petersen@redhat.com>
16606         * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
16607         confdefs.h when non-zero.
16609 2001-06-28  Akim Demaille  <akim@epita.fr>
16611         * configure.in: Bump to 2.50c.
16613 2001-06-26  Akim Demaille  <akim@epita.fr>
16615         Version 2.50b.
16617 2001-06-26  Akim Demaille  <akim@epita.fr>
16619         Version 2.50a.
16621 2001-06-25  Pavel Roskin  <proski@gnu.org>
16623         * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
16624         argument, AUTOCONF-FLAGS.
16625         * tests/mktests.sh (update_exclude_list): Add
16626         AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
16627         * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
16628         AC_FUNC_WAIT3 with "-W no-obsolete".
16630 2001-06-25  Akim Demaille  <akim@epita.fr>
16632         * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
16634 2001-06-25  Akim Demaille  <akim@epita.fr>
16636         * autoscan.in (%macro): Now maps from word to list of macros.
16637         (&init_tables): Die when a word which is already handled by
16638         explicit macros is mapped to the default macro.
16639         (&print_unique): Remove, inlined in...
16640         (&output_kind): here.
16641         (File::Basename): Use it.
16642         (&output): Sort the CONFIG_FILES.
16643         * acheaders: Normalize.
16644         * acfunctions: Likewise.
16646 2001-06-25  Akim Demaille  <akim@epita.fr>
16648         * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
16649         characteristics in the logs.
16650         Suggested by Mo DeJong.
16652 2001-06-24  Akim Demaille  <akim@epita.fr>
16654         * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
16655         (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
16656         * doc/autoconf.texi (Autoconf 2.13): New section.
16658 2001-06-24  Akim Demaille  <akim@epita.fr>
16660         * autoconf.in (Task traces): Separate the error messages from the
16661         traces to improve robustness.
16663 2001-06-23  Akim Demaille  <akim@epita.fr>
16665         * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
16666         three as failures are unlikely, and speed matters.
16668 2001-06-23  Akim Demaille  <akim@epita.fr>
16670         * doc/autoconf.texi (Redefined M4 Macros): New.
16672 2001-06-23  Akim Demaille  <akim@epita.fr>
16674         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
16675         inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
16676         5.3.
16678 2001-06-23  Paolo Bonzini  <bonzini@gnu.org>
16680         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
16681         config.status targets to after the evaluation of the INIT-CMDS.
16682         Double quote config.status targets (used to be single quoted).
16684 2001-06-23  Akim Demaille  <akim@epita.fr>
16686         * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
16687         Check the content of the created file.
16688         Check the ./config.status command line invocation.
16690 2001-06-23  Akim Demaille  <akim@epita.fr>
16692         * tests/foreign.at (Libtool): Reject prehistoric versions.
16694 2001-06-23  Akim Demaille  <akim@epita.fr>
16696         * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
16697         preexisting files matching a.*.
16699 2001-06-23  Akim Demaille  <akim@epita.fr>
16701         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
16702         stderr.
16703         * doc/autoconf.texi (AC_ARG_VAR): Update.
16705 2001-06-21  Akim Demaille  <akim@epita.fr>
16707         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
16708         precious variables have changed.
16709         * tests/torture.at (AC_ARG_VAR): Adjust.
16711 2001-06-21  Akim Demaille  <akim@epita.fr>
16713         ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
16714         but some sed choke on multiple `;', and other tools (e.g.,
16715         Automake), include the separator themselves.
16717         * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
16719 2001-06-19  Tim Van Holder  <tim.van.holder@pandora.be>
16721         * doc/autoconf.texi (Functions Portability): Rename as...
16722         (Function Portability): this.
16723         (Function Portability): Document potential problems with unlink().
16725 2001-06-19  Paul Eggert  <eggert@twinsun.com>
16727         * NEWS, doc/autoconf.texi: Document quadrigraphs.
16729 2001-06-18  Akim Demaille  <akim@epita.fr>
16731         * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
16733 2001-06-18  Ruediger Kuhlmann  <info@ruediger-kuhlmann.de>
16735         * acfunctions.m4: (AC_FUNC_VFORK) rename as...
16736         (_AC_FUNC_VFORK): this.
16737         Remove AC_DEFINEs and don't guess cross-compilation values.
16738         (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
16739         (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
16740         define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
16741         vfork doesn't work.
16742         Guess values if cross-compiling, but warn.
16743         * acfunctions: Add AC_FUNC_FORK.
16744         * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
16745         and vfork appropriately.
16747 2001-06-18  Akim Demaille  <akim@epita.fr>
16749         * doc/autoconf.texi (Functions Portability): New section.
16751 2001-06-18  Akim Demaille  <akim@epita.fr>
16753         * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
16754         in $M4.
16755         Suggested by Andreas Schwab.
16757 2001-06-18  Akim Demaille  <akim@epita.fr>
16759         * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
16760         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
16761         (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
16762         (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
16763         Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
16764         and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
16765         (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
16766         the converse).
16768 2001-06-18  Akim Demaille  <akim@epita.fr>
16770         * doc/autoconf.texi (ms): New index.
16771         (Macro Index): Rename as...
16772         (Autoconf Macro Index): this.
16773         (M4 Macro Index): New appendix.
16774         (Programming in M4): New chapter.
16775         Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
16776         (Quoting): Rename as...
16777         (M$ Quotation): this.
16778         Be part of `Programming in M4).
16780 2001-06-18  Nicolas Joly  <njoly@pasteur.fr>
16782         * tests/torture.at (AC_ARG_VAR): Set variables and export them
16783         in separate statements for compatibility with Tru64 v5.1.
16785 2001-06-17  Akim Demaille  <akim@epita.fr>
16787         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
16788         current values of the precious variables, not the previously
16789         cached values.
16790         Pass precious variables which are set to config.status.
16791         * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
16792         * tests/torture.at (AC_ARG_VAR): New.
16794 2001-06-15  Paul Eggert  <eggert@twinsun.com>
16796         * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
16797         AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
16798         and explain why and how to replace them.
16799         * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
16800         * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
16802 2001-06-15  Akim Demaille  <akim@epita.fr>
16804         `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
16805         Reported by Bruno Haible.
16807         * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
16808          (_AC_ARG_VAR_PRECIOUS): to here.
16810 2001-06-15  Pavel Roskin  <proski@gnu.org>
16812         * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
16813         an unused pointer use cast to this type and `if' statement to
16814         avoid warnings from the compiler.
16815         (AC_HEADER_TIME): Likewise.
16816         * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
16817         in `if' statement to avoid warnings from the compiler. Declare
16818         ac_aggr static to avoid the need to initialize it.
16820 2001-06-14  Akim Demaille  <akim@epita.fr>
16822         * doc/autoconf.texi (Portable Shell): Move to follow `Writing
16823         Macros'.
16825 2001-06-13  Akim Demaille  <akim@epita.fr>
16827         * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
16828         Suggested by Alexander Mai.
16830 2001-06-13  Akim Demaille  <akim@epita.fr>
16832         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
16833         sys/types.h and sys/stat.h, and check for them.
16835 2001-06-13  Akim Demaille  <akim@epita.fr>
16837         * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
16838         INCLUDES.
16840 2001-06-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
16842         * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
16843         succeeds and only try adding libdnet upon a failure.
16845 2001-06-12  Akim Demaille  <akim@epita.fr>
16847         * autoscan.in (&output_kind): Output the comment only if it exists.
16848         (%kind_comment): Add entry for `programs'.
16849         (&output_programs): Use &output_kind.
16850         (&output_functions, &output_identifiers, &output_headers)
16851         (&output_programs): Inline, and remove.
16853 2001-06-12  Akim Demaille  <akim@epita.fr>
16855         * autoscan.in (%kind_comment): New.
16856         (output_kind): New.
16857         (output_functions, output_identifiers, output_headers): Use it.
16859 2001-06-12  Akim Demaille  <akim@epita.fr>
16861         * autoscan.in (&print_unique): Take `$kind' and `$word' as
16862         arguments, to factor indirections into `%macro' and `%used'.
16863         (%generic_macro): Fix a typo.
16865 2001-06-12  Akim Demaille  <akim@epita.fr>
16867         * aclibraries: New.
16868         * autoscan.in (@kinds): Add `libraries'.
16869         Use `@kinds' instead of hard coded lists.
16870         (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
16871         Remove, replaced by...
16872         (%used): this.
16874 2001-06-12  Akim Demaille  <akim@epita.fr>
16876         * autoscan.in (%functions_macros %headers_macros)
16877         (%identifiers_macros %programs_macros %makevars_macros): Remove,
16878         replaced by...
16879         (%macro): New.
16881 2001-06-11  Raja R Harinath  <harinath@cs.umn.edu>
16883         * aclang.m4 (AC_NO_EXECUTABLES): Override
16884         _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
16886 2001-06-11  Akim Demaille  <akim@epita.fr>
16888         * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
16889         trailing new line.
16890         Reported by Andreas Schwab.
16892 2001-06-11  Akim Demaille  <akim@epita.fr>
16894         * Makefile.am, Makefile.maint: Typos.
16896 2001-06-09  Akim Demaille  <akim@epita.fr>
16898         * doc/autoconf.texi (Here-Documents): New section, gathering
16899         documentation about here-documents.
16900         Use `href', not `uref', and other changes.
16902 2001-06-09  Akim Demaille  <akim@epita.fr>
16904         * doc/autoconf.texi (Portable Shell Programming): Promoted as a
16905         chapter.
16907 2001-06-09  Akim Demaille  <akim@epita.fr>
16909         * doc/autoconf.texi (Limitations of Builtins): Complete the
16910         description of the here-docs penalties with Alexandre Oliva's
16911         explanations.
16913 2001-06-01  Paul Eggert  <eggert@twinsun.com>
16915         * doc/autoconf.texi: Talk about here documents and speedups.
16916         Do not use "echo" on arbitrary strings.
16917         Spell "here-documents" consistently with the standard.
16919 2001-06-09  Akim Demaille  <akim@epita.fr>
16921         * doc/autoconf.texi (Concept Index): Introduce it.
16922         Regenerate the menus.
16924 2001-06-09  Akim Demaille  <akim@epita.fr>
16926         * Makefile.maint, GNUmakefile: New, from Jim Meyering.
16927         * config/prev-version.txt: New.
16928         * config/move-if-change: New, for GNU libc.
16930 2001-06-06  Pavel Roskin  <proski@gnu.org>
16932         * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
16934 2001-06-06  Akim Demaille  <akim@epita.fr>
16936         * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
16937         properly when $1 is not a literal.
16938         Fixes PR Autoconf/187, reported by Bram Moolenaar.
16940 2001-06-06  Akim Demaille  <akim@epita.fr>
16942         Invoking AC_COPYRIGHT before AC_INIT fails.
16944         * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
16945         * acgeneral.m4 (_m4_divert(VERSION_FSF))
16946         (_m4_divert(VERSION_USER)): New.
16947         (AC_COPYRIGHT): $2 is the diversion to use.
16948         (_AC_INIT_COPYRIGHT): Use the FSF diversion.
16949         (AC_INIT): Remove dead comments as now it's commutative.
16951 2001-06-06  Akim Demaille  <akim@epita.fr>
16953         * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
16954         PR autoconf/187.
16956 2001-06-05  Akim Demaille  <akim@epita.fr>
16958         * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
16959         can be empty.
16960         `*dir' variables cannot be NONE.
16961         Reported by Mark Kettenis.
16963 2001-06-05  Paul Eggert  <eggert@twinsun.com>
16965         * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
16967 2001-06-04  Akim Demaille  <akim@epita.fr>
16969         * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
16970         (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
16971         (AC_TR_SH): Move as...
16972         * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
16973         (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
16974         (AS_TR_SH): these.
16975         (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
16976         (_AS_TR_SH_PREPARE): New.
16977         (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
16978         * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
16980 2001-06-02  Akim Demaille  <akim@epita.fr>
16982         * Makefile.am (.m4.m4f): Pass the options first.
16983         Fixes PR autoconf/182.
16985 2001-06-02  Nathan Sidwell  <nathan@codesourcery.com>
16987         GNU getopt, when POSIXLY_CORRECT does not permute options and
16988         arguments.  So pass the options first.
16989         Fixes PR autoconf/184.
16991         * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
16992         (run_m4): Remove files.
16993         (run_m4f): Remove.
16994         Update remainder of script to use them.
16995         (for warning in): Do not use a literal comma as it will not be
16996         split by IFS.
16998 2001-06-02  Christian Marquardt  <marq@gfz-potsdam.de>
17000         * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
17001         Fortran compilers to check.
17002         (_AC_PROG_F77_V): Add '-###' as a possible option to print
17003         information on library and object files.
17004         (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
17005         to check.
17007 2001-06-02  Akim Demaille  <akim@epita.fr>
17009         * autom4te.in (Request::@request): Declare with `vars', not `my',
17010         as it prevents updates via `do FILENAME'.
17012 2001-06-02  Akim Demaille  <akim@epita.fr>
17014         * configure.in (standards_texi): Remove, dead code.
17016 2001-06-02  Akim Demaille  <akim@epita.fr>
17018         * autom4te.in: New.
17020 2001-06-02  Pavel Roskin  <proski@gnu.org>
17022         * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
17023         for signals other than 0 - exit with code 1.
17024         * m4sh.m4 (AS_TMPDIR): Likewise.
17025         * autoconf.in: Likewise. Also don't rely on exit == exit $?.
17026         * autoheader.in: Likewise.
17027         * autoreconf.in: Likewise.
17028         * tests/torture.at (Signal handling): New test for the above.
17030 2001-06-01  Akim Demaille  <akim@epita.fr>
17032         * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
17033         message.
17035 2001-05-31  Akim Demaille  <akim@epita.fr>
17037         * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
17038         Add copyright and comments.
17039         * acheaders: Add stdint.h.
17040         Suggested by Paul Eggert.
17042 2001-05-31  Akim Demaille  <akim@epita.fr>
17044         * atgeneral.m4 (AT_INIT): Use $SHELL.
17045         * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
17047 2001-05-31  Akim Demaille  <akim@epita.fr>
17049         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
17050         stdint.h.
17051         From Paul Eggert and Lars Hecking.
17053 2001-05-31  Akim Demaille  <akim@epita.fr>
17055         * tests/base.at: Adjust line numbers in error messages.
17057 2001-05-31  Akim Demaille  <akim@epita.fr>
17059         * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
17060         to emit the bangshe line.
17061         Reported by David Carter.
17063 2001-05-30  Steven G. Johnson  <stevenj@alum.mit.edu>
17065         * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
17066         Fortran (95) compilers to check.
17068 2001-05-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
17070         * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
17071         Macro Archive URL.
17073 2001-05-23  Pavel Roskin  <proski@gnu.org>
17075         * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
17076         _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
17077         (AC_PROG_CXXCPP): Likewise.
17079 2001-05-22  Akim Demaille  <akim@epita.fr>
17081         * config: New directory.
17082         * configure.in: AC_CONFIG_AUX_DIR it.
17083         * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
17085 2001-05-22  Akim Demaille  <akim@epita.fr>
17087         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
17088         * autoupdate.in: Specify the Emacs mode.
17089         * acversion.m4.in: Rename as...
17090         * acversion.m4: this.
17091         * tests/Makefile.am (CLEANFILES): More garbage.
17093 2001-05-22  Akim Demaille  <akim@epita.fr>
17095         * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
17096         Rename as...
17097         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
17098         these.
17100 2001-05-21  Akim Demaille  <akim@epita.fr>
17102         * configure.in: Bump to 2.50a.
17105         -----
17107         Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free
17108         Software Foundation, Inc.
17110         Copying and distribution of this file, with or without
17111         modification, are permitted provided the copyright notice and this
17112         notice are preserved.