* lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
[autoconf.git] / ChangeLog
blobbb5424909c650838eeebf3cb0f161213e0199d39
1 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
4         FOO" to "defined (FOO)".
5         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
6         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
7         * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
8         * tests/tools.at (ifnames): Likewise.
10 2006-01-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
13         * lib/Autom4te/General.pm (mktmpdir): Likewise.
14         (END): Improve error message a bit.
15         Reported by Bruce Korb <bkorb@gnu.org>.
17 2006-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
20         `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
22 2006-01-11  Stepan Kasal  <kasal@ucw.cz>
24         * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
25         requires sys/stream.h.  Reported by Oliver Kiddle.
27 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28             Stepan Kasal  <kasal@ucw.cz>
30         * lib/autotest/general.m4 (AT_INIT): When ensuring writability
31         before the removals of test dirs, use `find' to avoid modification
32         of symlinked directories.
34 2006-01-11  Steven G. Johnson  <stevenj@alum.mit.edu>
36         * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
37         Don't ignore the macro arguments.
39 2006-01-11  David Thompson  <dthompsn@vizsolutions.com>
41         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
42         declaration that works for MSVC.
44 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
47         Add `*.map' and `.inf' for Green Hills compiler.
48         Reported by Stefan Seefeld <stefan@codesourcery.com>.
50         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
51         correctly: pad with spaces after FIRST_PREFIX if necessary,
52         and compute string lenghts with `m4_qlen' instead of `m4_len'.
53         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
54         * tests/m4sh.at (AS_HELP_STRING): Test extended.
55         * NEWS: Updated.
56         Reported by numerous people, numerous times.
58 2006-01-05  Paul Eggert  <eggert@cs.ucla.edu>
60         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
61         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
62         * lib/autoconf/general.m4, lib/autoconf/status.m4:
63         * lib/autotest/general.m4, tests/local.at:
64         Update copyright year to 2006.
66         * Makefile.maint (sc_root_tests): Use recommend style s/a/b/ for
67         sed substitutions.
68         * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
69         for file names, again.  Reported by Noah Misch.
70         (Coding Style): Explain that s|a|b| is preferred for file names.
71         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
72         (AC_OUTPUT_MAKE_DEFS): Likewise.
73         * lib/autotest/general.m4 (AT_INIT): Likewise.
74         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
75         * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
77         Fix Posix-conformance bugs re use of { command in sed scripts,
78         and improve the sed-related documentation a bit.
79         * doc/autoconf.texi (Installation Directory Variables): Use
80         our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
81         rather than "sed" when talking about Sed in general.
82         (Particular Programs): Likewise.
83         (Coding Style): y is like s with respect to / and ,.
84         (Limitations of Usual Tools): Document the weird restrictions
85         that Posix has about { }.  Use better quoting.
86         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
87         Rewrite to conform to Posix rules about { } in sed scripts.
88         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
89         * tests/foreign.at (Libtool): Likewise.
90         * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
91         Use our own style advice re 's,a,b,' versus 's|a|b|'.
93 2006-01-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95         * lib/autoconf/status.m4: Fix typo.
97         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
98         singly- or doubly-quoted arguments to `-cmdline', `-ignore',
99         `-def', for the benefit of Portland `pgf90 -Mipa'.
100         Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
102 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
104         * doc/autoconf.texi: Update copyright (and other) dates to 2006.
105         * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
106         shell from zsh to bash.
108 2005-12-31  Stepan Kasal  <kasal@ucw.cz>
110         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
111           ":" caused problems on OS/2-EMX.  Suggested by Andrew Belov.
113 2005-12-29  Paul Eggert  <eggert@cs.ucla.edu>
115         * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
116         parentheses in $(...).  Problem reported by Eric Blake.
118 2005-12-12  Paul Eggert  <eggert@cs.ucla.edu>
120         * doc/autoconf.texi (Limitations of Usual Tools):
121         Mention which characters can be escaped with \ in portable regular
122         expressions used in grep, sed, expr.  Mention the leading ^ problem
123         with expr.  Clean up some confusing wording.  Mention which
124         grep options are portable.
126 2005-12-09  Stepan Kasal  <kasal@ucw.cz>
128         * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
130 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
132         * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
133         patch, noted by Ralf Wildenhues.
135 2005-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
137         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
138         posix' unconditionally, for pdksh in `native sh' emulation.
140 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
142         * doc/autoconf.texi (Shellology): Document eval $? problem
143         with ash.
144         (Limitations of Builtins): Likewise.
146 2005-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
148         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
149         CONFIG_SHELL in the environment of the configure rerun.
150         * doc/autoconf.texi (Here-Documents, config.status Invocation):
151         Suggest passing CONFIG_SHELL absolute, and in the environment
152         rather than as option.
154 2005-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
156         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
157         Fix quoting of output line (triggered for many AC_SUBST_FILEs).
158         Fix macro quoting.  Fix output for n * 98 substituted variables.
160 2005-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
162         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
163         `tmp' to avoid file removal race.
165 2005-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
167         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
168         ac_clean_files and LIBOBJS.
170 2005-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
172         * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
173         Factor functionality to..
174         (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
175         `AC_SUBST($1)' in the public version.
176         (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
177         (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
178         ac_pt_* variables.
180 2005-11-01  Stepan Kasal  <kasal@ucw.cz>
182         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
183         filesystems.
185 2005-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
187         * NEWS: Move AH_HEADER mention to right place.
189 2005-10-27  Stepan Kasal  <kasal@ucw.cz>
191         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
192         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
194 2005-10-25  Stepan Kasal  <kasal@ucw.cz>
196         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
197         conftst2.$ac_objext.
198         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
200 2005-10-24  Stepan Kasal  <kasal@ucw.cz>
202         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
203         conftest.o, to see whether the compiler really obeys; rm the object
204         file before and after the test and register it with ac_clean_files.
205         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
207 2005-10-21  Stepan Kasal  <kasal@ucw.cz>
209         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
210         the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
211         code so that the most common case requires less forks.
213 2005-10-20  Stepan Kasal  <kasal@ucw.cz>
215         * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
216         not portable; thanks to Paul Eggert and Alexandre.
218         * NEWS: Fix an old typo.
220 2005-10-20  Jim Meyering  <jim@meyering.net>
222         * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
223         the latter'', in two places.
225 2005-10-19  Paul Eggert  <eggert@cs.ucla.edu>
227         * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
228         AC_LANG_PROGRAM, fixing a typo.  Don't give details about
229         the inner workings of AC_LANG_FUNC_LINK_TRY.
230         * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
231         AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
232         by the function rather than ignoring it.
233         (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
234         comparing its address.  Intel's interprocedural optimization was
235         outsmarting the old heuristic.  Problem reported by
236         Mikulas Patocka.
238 2005-10-19  Stepan Kasal  <kasal@ucw.cz>
240         * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
242 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
244         * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
245         (m4_map, m4_map_sep): Use it.  Handle the empty list correctly.
247 2005-10-04  Stepan Kasal  <kasal@ucw.cz>
249         * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
250         before removing it (chmod -R u+rwx); there are three instances of this.
252 2005-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
253             Stepan Kasal  <kasal@ucw.cz>
255         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
256         * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
257         make its content writable before removing it.  Remove an errorneous
258         comment from the end, where the logs of the failed tests are copied
259         to the main log file.
261 2005-09-27  Stepan Kasal  <kasal@ucw.cz>
263         * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
264           in case the computer is too quick.  Double quote the configure.ac
265           snippets.
267         * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
268           problems if the testsuite were running too fast.
270 2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
272         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
273         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
274         (which belong to Xt, not X itself).  See Debian bug 327655.
275         * NEWS: Mention this.
277 2005-09-07  Stepan Kasal  <kasal@ucw.cz>
279         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
281 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
283         * config/move-if-change: Don't output "$2 is unchanged";
284         suggested by Ben Elliston.  Handle weird characters correctly.
286 2005-09-06  Stepan Kasal  <kasal@ucw.cz>
288         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
289           calls, so that the final expansion of this macro is shorter.
290           Create the conftest.$ac_ext outside the `for' loop, to speed the run.
291           Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
292           the cleanup there.  Use AS_VAR_* macros, to be more general.
293         * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
295         * lib/autoconf/general.m4: Use AS_IF where appropriate.
297         * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
299 2005-09-01  Stepan Kasal  <kasal@ucw.cz>
301         * doc/autoconf.texi (Configuration Headers): Add an index entry
302           for AH_HEADER.
304 2005-08-26  Pavel Roskin  <proski@gnu.org>
306         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
307         XMKMF to locate xmkmf.  Make XMKMF precious.  Export CC when
308         running xmkmf.
310 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
312         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
313         The previous patch didn't work, so try a better one.
315 2005-08-26  Stepan Kasal  <kasal@ucw.cz>
317         * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
318         in the example.  Reported by Bruno Haible.
319         <AS_TR_SH>: Likewise.  Also modify the example to be more convincing:
320         "if $undefined_var;" succeeds with my shell.
322         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
323         AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
324         but change the m4_divert_text to m4_divert_once.
326 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
328         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
329         Work around bug in Solaris /usr/xpg4/bin/awk.
330         The bug is present in at least Solaris 8 through 10.
332 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
334         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
335         some evil values and relying on the fact that $* concatenates the
336         parameters by the first character from IFS.
338 2005-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
339             Stepan Kasal  <kasal@ucw.cz>
341         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
342         first header appears, define AH_HEADER.
343         * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
344         Update limitations about when to call AC_CONFIG_HEADERS.
345         (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
346         parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
347         that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
348         ``Configuration Actions''; fix their index entries.
350         * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
351         options correctly.  Process N-M as M-N if M is smaller than N.
352         Process ranges correctly so that N-N will run only N.
353         Sort and uniquify the tests that will be run.  If there is more
354         than one test, reinsert the banners for the tests.
355         * tests/autotest.at (Keywords): Unmark XFAIL.
357 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
359         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
360           before passing the macro name to AH_TEMPLATE.
362         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
363           now opens log after option processing; in particular, --version
364           and --help do not touch config.log.
366         * Makefile.maint: Revert the change from 2005-08-12.
368 2005-08-22  Stepan Kasal  <kasal@ucw.cz>
370         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
371           common code to...
372         (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
374 2005-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
376         * doc/autoconf.texi (Using Autotest, testsuite Scripts)
377         (Autotest Logs, Writing testsuite.at, testsuite Invocation):
378         Language cleanup.
380         * doc/autoconf.texi (Defining Symbols, Changed Results):
381         Prepend to LIBS, not append, in examples.
383 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
385         When building in place, set srcdir="."; suggested by Tim Van Holder.
387         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
388           build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
389         (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
390         * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
391           does not mean "no --srcdir option".
393 2005-08-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
395         * tests/autoscan.at (autoscan): New file.
396         * tests/suite.at: Use it.
397         * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
398         Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
400         * tests/autotest.at (Keywords): Test keywords combinations.
402 2005-08-12  Stepan Kasal  <kasal@ucw.cz>
404         * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
405           add "2>&1"; gzip 1.2.4 prints help on stderr.
407 2005-07-27  Stepan Kasal  <kasal@ucw.cz>
409         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
410         was pushdef'ed twice while popped only once.  Push it only once.
411         (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
413 2005-07-26  Stepan Kasal  <kasal@ucw.cz>
415         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
416         prefixed by mere "===", not "configure: === ".
418 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
420         * Makefile.maint: Update from Bison.
422         * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
423         "<tab>" in comment, so that the point is understandable.
425 2005-07-25  Stepan Kasal  <kasal@ucw.cz>
427         Rewrite substantial part of lib/autoconf/status.m4.
428         The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
429         and CONFIG_COMMANDS are not processed in four separate loops.
430         Instead, there is one main loop.  This alows that the common code
431         is expanded only once, thus config.status (and configure) is smaller.
433         The registration mechnism in AC_CONFIG_FILES and cousins also changed;
434         the AC_LIST_FILES and cousins macros are no longer used.
436         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
437         _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
438         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
439         _AC_OUTPUT_COMMAND): ..., respectively.  These macros no longer
440         contain the initialization, nor the for loop, nor the associated
441         commands; all these go to ...
442         (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
443         _AC_OUTPUT_CONFIG_STATUS.
444         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
445         Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
446         (_AC_OUTPUT_FILE): The creation of the sed script ...
447         (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
448         (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
449         _AC_OUTPUT_MAIN_LOOP.
450         (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
451         _AC_CONFIG_COMMANDS): Use ...
452         (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
453         (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
454         (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
455         _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
456         (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
457         (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
458         ... new macros.
459         (_AC_CONFIG_UNIQUE): Update.
460         (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
461         Replaced by this ...
462         (_AC_LIST_TAGS): ... new common macro.
463         (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
464         AC_LIST_COMMAND_COMMANDS): Replaced by this ...
465         (_AC_LIST_TAG_COMMANDS): ... new common macro.
466         (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
467         this didn't belong to the `config commands' section.
468         (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
469         (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
470         AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
471         to the `config commands' section either.
472         (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
473         (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
475         ... and many changes to the comments nearby.
477         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
478         set ac_subdirs_all='_AC_LIST_SUBDIRS'.
479         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
480         AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
481         (#define header templates): The comment at the top of the generated
482         header now includes the name(s) of the source file(s).
484         Several unrelated small changes:
486         * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
487         parameter to AC_DIAGNOSE.
488         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
489         (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
490         with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
491         (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
492         with AU::AC_OUTPUT.
493         (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
494         in AC_OUTPUT doesn't double-quote it either.
495         * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
496         parameters.
498 2005-07-10  Stepan Kasal  <kasal@ucw.cz>
500         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
501         versions of Portland Group compiler produce single- and double-quoted
502         -cmdline argument.  Reported by Steven G. Johnson <stevenj@fftw.org>
503         and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
505 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
507         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
508         This is a corrected version of yesterday's patch.
510 2005-07-07  Stepan Kasal  <kasal@ucw.cz>
512         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
513         path, too; insert a "===" to emphasize the line.
515         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
516           ac_cv_build_alias to ac_build_alias.
517         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
519         On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
520         change eliminates it.  Problem reported by Alexandre Duret-Lutz.
521         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
522         (AC_ARG_VAR): ... here.
523         (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
524           target_alias.
526         Keep a list of all precious variables and process them with one simple
527         for loop, instead of expanding all commands, or, OTOH, complicated
528         processing of output of "set".
529         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
530         variable names in new macro...
531         (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
532         (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
533           a loop to assign all ac_env_* and ac_cv_env_* variables.
534         (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
535           to INIT_PREPARE.
536         (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
537           its value to shell variable ac_precious_vars and call
538           _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
539         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
540           _AC_ARG_VAR_VALIDATE.
542         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
543           and the AC_SUBSTs ...
544         (AC_INIT): ... here.
546         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
547           the ac_subst_files section in config.log.
549         * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
551 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
553         * NEWS: New macro AC_C_TYPEOF.
554         * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
555         * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
556         * tests/c.at (C keywords): Test AC_C_TYPEOF.
558         Fix problems reported by Nicolas Joly.
559         * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
560         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
561         They are generated by the Tru64 v5.1B shell.
563 2005-07-05  Stepan Kasal  <kasal@ucw.cz>
565         Fix my changes from 2005-07-01; reported by Noah Misch.
566         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
567         description, the macro now accepts only a single tag.
568         (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
570         Fix cases when the varsions of Autoconf and Autotest don't match.
571         Reported by Noah Misch.
572         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
573         at_top_builddir, for compatibility with older autotest.
574         * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
575         is not set, use at_top_builddir, for compatibility with older
576         versions of autoconf.
578 2005-07-04  Paul Eggert  <eggert@cs.ucla.edu>
580         * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
581         Problem reported by Patrick Welche.
583 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
585         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
586         sed substitution command, so that we allow | in program prefixes
587         and program suffixes.  (& is a problem anyway; we're not fixing
588         that here.)
589         * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
590         configure_input, top_builddir, srcdir, etc.
591         * lib/autotest/general.m4 (AT_INIT): Likewise, for
592         PATH_SEPARATOR in AUTOTEST_PATH.
594 2005-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
596         * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
597         for loop over config.site files using `set', to allow
598         directory names containing IFS characters.
600 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
602         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
603         directories with weird names.  Apparently some people like living
604         on the edge.  However, improve the test that "pwd" actually does
605         report a name for the working directory.
606         * NEWS: Remove the claim that we test for funny chars in dir names.
608 2005-07-01  Stepan Kasal  <kasal@ucw.cz>
610         * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
611         replaced ...
612         * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
613         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
614         Now accept a single tag, not whitespace separated list.
615         (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
617 2005-06-30  Stepan Kasal  <kasal@ucw.cz>
619         * doc/autoconf.texi (Configuration Headers): Change the explanation
620         about #include <config.h>.
621         (Generic Functions): Mention the Gnulib project.
622         (Limitations of Usual Tools) <sed>: Another minor rephrasing.
624         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
625         document to output the default config_* lists to config.status.
626         Don't recognize option --file, if the functionality is not there.
627         Likewise for --header; moreover, recognize --he and --h as shortcuts
628         for --help in that case.
630         * lib/autoconf/status.m4: Fix the order of the "sections", so that it
631         matches the order of execution.  No code changed.
633 2005-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
635         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
636         single-quoted -cmdline argument in Portland Group compiler.
637         Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
639 2005-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
641         * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
643 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
645         * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
646         descriptors to child processes; reported by Norman Gray.
648 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
650         * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
652         * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
653         instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
654         (AC_SUBST): Call it.
655         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
656         the directory specific variables; but don't call it for configure_input.
658 2005-06-28  Derek Price  <derek@ximbiot.com>
660         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
661         addition.
663 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
665         * NEWS: Don't worry about spaces in bindir etc.  Only srcdir and working
666         directory have inherent problems with special characters like spaces,
667         due to limitations in Make syntax.  Problem reported by Alexandre
668         Duret-Lutz.
669         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
670         Also, fix Tru64 porting problem with shell patterns,
671         reported by Ralf Wildenhues.
673 2005-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
675         * doc/autoconf.texi (Subdirectories): Fix markup typos.
677 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
679         * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
681         Fix some more shell quoting problems.  Prompted by a bug report
682         from Justace Clutter.
683         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
684         variable into diagnostic.  Make the diagnostic an error, not a warning,
685         because we really don't support spaces and suchlike in dir names.
686         (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
687         Don't worry about backslashes in srcdir; it can't happen now.
688         (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
689         Simplify ac_optarg handling.
690         (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
692 2005-06-22  Stepan Kasal  <kasal@ucw.cz>
694         Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
695         * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
696         * tests/atlocal.in: Propagate $EGREP and $SED.
697         * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
698         (AT_CONFIG_CMP): Use sed instead of grep plumbing.
700         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
701         that '\|' is not allowed in BREs; recommend using newline separated
702         list of patterns instead of multiple -e options.
704         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
706         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
708 2005-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
710         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
712 2005-06-21  Stepan Kasal  <kasal@ucw.cz>
714         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
715         b, t, r, w commands require single space, while : cannot have any.
716         (Special Shell Variables): Fix sed code this in the example.
717         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
718         * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
720         * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
721         expand to the empty list.  Don't use two pairs of m4_changequote,
722         it's not necessary.
724 2005-06-20  Derek Price  <derek@ximbiot.com>
726         * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
728 2005-06-17  Paul Eggert  <eggert@cs.ucla.edu>
730         * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
731         * doc/autoconf.texi:
732         Don't mention Solaris versions so much, if a
733         problem is common to all extant versions of Solaris.  Say "SunOS
734         4" instead of "SunOS" for SunOS 4.
735         (awk): Mention more of the limitations of traditional Awk.
736         (cat): Don't talk about cat -v.
738 2005-06-16  Paul Eggert  <eggert@cs.ucla.edu>
740         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
741         (AS_VERSION_COMPARE): New macro.  The API is taken from CVS,
742         but the implementation is entirely different and is designed
743         to be compatible with glibc strverscmp.
744         * tests/m4sh.at (AS_VERSION_COMPARE): New test.
746         * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
747         on Mac OS X 10.4 reported by Peter O'Gorman in:
748         http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
749         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
750         Use shell builtins rather than 'expr', to work around expr bug.
752 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
754         * doc/autoconf.texi: "filesystem" -> "file system".
755         "behaviour" -> "behavior".
756         Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
757         * lib/autoconf/general.m4: Omit blank after ":" sed command,
758         as per POSIX.
759         * lib/m4sugar/m4sh.m4: Likewise.
760         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
761         with Solaris sed.  Fix by Ralf Menzel and Stepan Kasal.
763         * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
764         (.x.1): Ignore the time stamp in the .TH line when deciding whether
765         to update the man page.  That way, we don't have to check in new
766         man pages every month.
768         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
769         quotes and backslashes.  Patch from Derek Price.
771 2005-06-10  Derek Price  <derek@ximbiot.com>
773         * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
774         AS_TR_SH.
776 2005-06-08  Paul Eggert  <eggert@cs.ucla.edu>
778         * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
779         -u, since it outputs chatter if the input files are the same.
780         Problem reported by Ralf Menzel.
782 2005-06-08  Derek Price  <derek@ximbiot.com>
784         * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
785         renaming them since they are about to be redefined anyhow.
787 2005-06-08  Derek Price  <derek@ximbiot.com>
789         * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
790         redefined M4 macros to this node.  Document m4_include & m4_sinclude.
791         Move m4_undefine to alphabetical order.
793 2005-06-07  Paul Eggert  <eggert@cs.ucla.edu>
795         * README: Recommend GNU M4 1.4.3 or later.
796         * doc/autoconf.texi (Introduction): Likewise.
797         Reword to avoid some formatting glitches.
798         Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
799         Clarify explanation of HP compiler bug.
800         Redo example output tp match current CVS snapshot.
801         Use @example.org in email addresses when the examples
802         might get inadvertently cut-and-pasted into user code.
803         Remove example of autom4te usage that doesn't seem to work now.
804         Use modern AC_INIT (except when the example is meant to be
805         shown with Autoconf 2.13).
806         Update ksh info for Solaris 9 and later.
807         KB -> kB.
808         Modernize description of Automake versions a bit.
809         Don't claim a future version of Autoconf is near.
810         * doc/install.texi: Reword to avoid some formatting glitches.
812 2005-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
814         * doc/autoconf.texi: Add [] to examples, so that the manual
815         follows its own advice about quoting better.
816         Reword to avoid some formatting glitches.
817         * doc/installt.exi: Reword to avoid some formatting glitches.
819         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
820         Tru64 ksh pattern matching bug.  Reported against Libtool by
821         Albert Chin <libtool@mlists.thewrittenword.com> and
822         Nicolas Joly <njoly@pasteur.fr>.
824 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
826         m4_cdr of one-member list was [[]] (one-member list containing an
827         empty string) instead of [] (an empty list.  Callers were skewed to
828         match this misbehaviour.  As a consequence of this:
829          - m4_foreach([x], [], [foo]) expanded to `foo', while
830          - the expansion of m4_foreach([x], [[]], [foo]) was empty.
831         This bug has been fixed:
833         * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
834           expand to an empty string; print error msg if called without
835           an argument list.
836         (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
837           misbehaviour; handle [] and [[]] correctly.
839 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
841         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
842         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
843           scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
845 2005-06-06  Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>  (trivial change)
847         * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
848           swallow records with more than 99 fields.
849         * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
850           parse the long line.
852 2005-06-04  Stepan Kasal  <kasal@ucw.cz>
854         * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
855           swallow literals longer than 399.  Reported by Ralf Wildenhues.
856         * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
857           to workaround this limitation.
859 2005-06-03  Steven G. Johnson  <stevenj@alum.mit.edu>
861         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
862         to gfortran, and make these the first two compiler names
863         checked (following the general autoconf preference for gcc).
865 2005-06-03  Stepan Kasal  <kasal@ucw.cz>
867         * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
868         (DISTCLEANFILES): Remove $(check_SCRIPTS).
869         (testsuite): Make sure autotest.m4f is up-to-date before using it.
871 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
873         * lib/autotest/general.m4 (AT_INIT): Don't create a regular
874         expression of unbounded size when processing the --list
875         option.  This runs afoul of a limit of 399 bytes per regular
876         expression on AIX.  Problem reported by Ralf Wildenhues.
878 2005-06-01  Paul Eggert  <eggert@cs.ucla.edu>
880         * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
881         * doc/autoconf.texi (Particular Headers): Reword example
882         for multiline stdbool replacement.
883         (Setting Output Variables): Reword text a bit.  Don't
884         give all the details about |#_!!_#|.
885         Reword description of line replacement.
887 2005-05-31  Dan Manthey  <dan_manthey@partech.com>
889         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
890         now contain newlines, and substituted files must be referenced on
891         a line alone; the sed scripts to substitute them are now very
892         different.
893         (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
894         commands can be put in a sed script portably.
895         * doc/autoconf.texi (Setting Output Variables): Document above
896         changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
897         use of multiline substitution.
898         * tests/torture.at: No longer expect substitution of newline to fail.
900 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
902         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
903         From Ralf Menzel (trivial change).
905 2005-05-25  Paul Eggert  <eggert@cs.ucla.edu>
907         * tests/local.at: Don't attempt to check for negated character
908         classes in shell scripts.  The test was too brittle.
910 2005-05-25  Stepan Kasal  <kasal@ucw.cz>
912         * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
913         * doc/autoconf.texi (Limitations of Builtins): Document this
914           limitation.
916 2005-05-24  Stepan Kasal  <kasal@ucw.cz>
918         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
919           common code; used in many places in the tree.
920         (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
921         (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
923         * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
925         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
926           messages when ac_unique_file is not found.
927         (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
928         (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
929           commands, for consistency with AC_MSG_ERROR and such.
931         * bin/autoconf.as: Make more use of "shift 2" in option processing.
933         * bin/Makefile.am: Merge the two rules for creating scripts.
935 2005-05-23  Stepan Kasal  <kasal@ucw.cz>
937         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
938         obsolete; it was never documented.
939         (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
941 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
943         * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
944         * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
945         (ac_top_builddir): ... this ...
946         (ac_top_build_prefix): ... to this; the old name is also kept, for
947           backward compatibility.
948         (ac_top_builddir_sub): New variable, without the trailing slash,
949           always nonempty.
950         (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
951         * doc/autoconf.texi (Configuration Actions): Rename
952           ac_top_builddir to ac_top_build_prefix.
953         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
954           at_top_builddir to at_top_build_prefix.
955         * lib/autotest/general.m4 (AT_INIT): Likewise.
957 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
959         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
960           of confdefs.h .
962 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
964         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
965           argument to m4_foreach.  I guess it was necessary in the past,
966           but I think it's a no-op now.
968 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
970         * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
971           ``cat <<_ACEOF'' commands to one.
972         (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
973         * lib/autoconf/status.m4: On various places, use expr instead of
974           ``echo|sed.''
975         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
976         (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
977         * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
978           a range.
979         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
980           the wrong patterns between ``case'' and ``esac.''  The previous
981           code had false positives.
983 2005-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
985         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
986         as on 2005-05-02.
987         * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
988         Mention LIBOBJDIR.
990 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
992         * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
993         ChangeLog.2, GNUmakefile, HACKING, Makefile.am, Makefile.cfg,
994         Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
995         bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
996         bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
997         bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
998         config/config.guess, config/config.sub, config/elisp-comp,
999         config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
1000         doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
1001         lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
1002         lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
1003         lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
1004         lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
1005         lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
1006         lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
1007         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
1008         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
1009         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
1010         lib/autoconf/general.m4, lib/autoconf/headers.m4,
1011         lib/autoconf/lang.m4, lib/autoconf/libs.m4,
1012         lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
1013         lib/autoconf/specific.m4, lib/autoconf/status.m4,
1014         lib/autoconf/types.m4, lib/autoscan/Makefile.am,
1015         lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
1016         lib/autotest/Makefile.am, lib/autotest/autotest.m4,
1017         lib/autotest/general.m4, lib/emacs/Makefile.am,
1018         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
1019         lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
1020         lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
1021         tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
1022         tests/compile.at, tests/foreign.at, tests/fortran.at,
1023         tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
1024         tests/semantics.at, tests/suite.at, tests/tools.at,
1025         tests/torture.at, tests/wrapper.as:
1026         Update FSF postal mail address.
1028 2005-05-13  Stepan Kasal  <kasal@ucw.cz>
1030         * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
1031           check.
1032         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
1033           enough arguments, similarly as in m4_bpatsubsts.
1035 2005-05-12  Stepan Kasal  <kasal@ucw.cz>
1037         * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
1038           of absolute paths.
1040 2005-05-11  Stepan Kasal  <kasal@ucw.cz>
1042         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
1043           for absolute directory names in one loop.
1044         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
1045           abbreviations of --version and --debug.
1047 2005-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1049         * doc/autoconf.texi (Autoconf Language): Be more precise about
1050         quoting rules.  Problems noted by Stepan Kasal.
1051         Also, throughout this document, be more careful about white space.
1052         "blank", "white space", and "space" all have different meanings
1053         and we should be careful to say what we mean.
1055 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1057         Fix C++ related problems reported by Werner Lemberg.
1058         * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
1059         * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
1060         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
1061         avoid problems with C++ and throw.
1062         * tests/compile.at: .cpp, not .cc.
1064         * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
1066 2005-05-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1068         * doc/autoconf.texi (Generic Functions): Typos.
1070 2005-05-02  Gary V. Vaughan  <gary@gnu.org>
1072         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
1073         object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
1074         set by latest automake.
1076 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
1078         * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
1079         outputs 0 on GNU/Linux these days.
1081 2005-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1083         * doc/autoconf.texi (Autoconf Language): Add more description
1084         about quoting heuristics.
1085         (Limitations of Builtins): Describe "set -" problems.
1087 2005-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1089         * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
1090         not newline.
1092         * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
1093         by AC_DEFINE; it was a mistake.
1094         From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
1096 2005-04-25  Stepan Kasal  <kasal@ucw.cz>
1098         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
1100 2005-04-22  Stepan Kasal  <kasal@ucw.cz>
1102         * doc/autoconf.texi (External Software): Quadrigraphs are not
1103           processed correctly in AS_HELP_STRING; avoid this in the examples.
1104         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
1105         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
1106           comment and reduce m4_default([foo], []) to [foo].
1107         (m4_strip): Update the explanation.
1109 2005-04-19  Paul Eggert  <eggert@cs.ucla.edu>
1111         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
1112         Remove core.conftest.* too; it's generated by Tru64 5.1.
1113         Problem reported by Jennis Pruett.
1114         * lib/autoconf/functions.m4
1115         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
1116         Don't bother to remove core files; AC_RUN_IFELSE should do that
1117         for you.
1119 2005-04-19  Stepan Kasal  <kasal@ucw.cz>
1121         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
1123 2005-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
1125         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
1126         Report from Horst Wente.
1128 2005-04-15  Stepan Kasal  <kasal@ucw.cz>
1130         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
1131           the comment.
1133 2005-04-14  Gregorio Guidi  <greg_g@gentoo.org>
1135         * doc/autoconf.texi (External Software, Package Options): Add
1136           examples showing how to implement --with-* and --enable-* options.
1138 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
1140         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
1141         as well as configure.in.  Problem reported by Gregorio Guidi.
1143 2005-04-10  Paul Eggert  <eggert@cs.ucla.edu>
1145         * doc/autoconf.texi (Particular Functions): Use gnulib's current
1146         pattern for alloca snippet.
1148 2005-04-04  Stepan Kasal  <kasal@ucw.cz>
1150         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
1152 2005-04-01  Stepan Kasal  <kasal@ucw.cz>
1154         * doc/autoconf.texi (Generic Programs): Fix a typo.
1156 2005-04-01  Paul Eggert  <eggert@cs.ucla.edu>
1158         * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
1159         fails if %s isn't supported.  Problem reported by Ralf Wildenhues.
1161 2005-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1163         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
1164         Merge `-z option' as well for the benefit of Solaris link flags.  Pass
1165         whole-archive (-zallextract, -zdefaultextract) options in the hope of
1166         unique libraries, for the Sun Fortran 95 8.0 compiler.  Bug reported
1167         against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
1169 2005-03-22  Paul Eggert  <eggert@cs.ucla.edu>
1171         * NEWS: The configure command now warns you if you attempt to use
1172         a directory whose name contains a special character like space,
1173         newline, or "\".
1174         * doc/autoconf.texi (Installation Directory Variables): Allow
1175         "," in file names.  Do not use \@; it's not a portable regexp.
1176         * bin/Makefile.am (edit): Likewise.
1177         * lib/Makefile.am (edit): Likewise.
1178         * tests/Makefile.am (edit): Likewise.
1179         * tests/semantics.at: Likewise.
1180         * tests/torture.at: Likewise.
1181         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
1182         * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
1183         * doc/autoconf.texi (File System Conventions): Warn about
1184         unportable file names.
1185         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
1186         (AC_INIT): Use it.
1187         (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
1188         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
1189         ac_pwd, and quote srcdir.
1190         * lib/autotest/general.m4 (AT_INIT): Quote file name args.
1192         * doc/autoconf.texi: Fix some systematic formatting problems.
1193         ".)"  needs a following @: if not at the end of a sentence, and
1194         similarly for "!)".  "etc." should be preceded by a comma.
1195         "n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
1197 2005-03-22  Bruno Haible  <bruno@clisp.org>
1199         * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
1200         argument is often called 'build-aux'.
1202 2005-03-07  Stepan Kasal  <kasal@ucw.cz>
1204         * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
1205           macro AC_TRY_LINK is obsolete.
1206         (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
1207           `AC_CONFIG_FILES'.
1209 2005-02-24  Stepan Kasal  <kasal@ucw.cz>
1211         * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
1212           `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
1213           from a Common Lisp's `cl'.
1214         (AC_PROG_CXX): Behave according to the documentation: don't
1215           search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
1216           make the variable CCC precious; use `cl.exe', not `cl'.
1218 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
1219             Alexandre Duret-Lutz  <adl@gnu.org>
1221         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
1222         /dev/null, as "configure" shouldn't read stdin, and this insulates
1223         us from problems (e.g., when testing for "cl").  Also, do this
1224         redirection before invoking "hostname" or "uname", and keep the
1225         original input stream available via...
1226         (AS_ORIGINAL_STDIN_FD): ... this new macro.
1227         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
1228         bother with "</dev/null" since it's now done at the top of
1229         'configure'.
1230         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
1231         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
1232         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
1233         * doc/autoconf.texi (File Descriptor Macros): New section.
1234         (Printing Messages): Mention it.
1235         * tests/base.at (Input/Output): New test.
1237 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
1239         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
1240         newline if neither \c nor -n work, as that would output two
1241         newlines.  Prefer -n to \c.  Reported by Stepan Kasal.
1243 2005-02-12  Stepan Kasal  <kasal@ucw.cz>
1245         * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
1246         This causes that any required macros inside will get before the if.
1247         * doc/autoconf.texi (autom4te.cache): A typo.
1249 2005-02-12  Paul Eggert  <eggert@cs.ucla.edu>
1251         Undo previous change, except keep the change to
1252         lib/autoconf/programs.m4 that replaced grep with shell
1253         pattern-matching.  This is because net-snmp configure reads stdin.
1254         Reported by Noah Misch.
1256 2005-02-11  Paul Eggert  <eggert@cs.ucla.edu>
1258         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
1259         from /dev/null, as "configure" shouldn't read stdin, and this
1260         insulates us from problems (e.g., when testing for "cl").
1261         Suggested by Alexandre Duret-Lutz.  Also, do this redirection
1262         before invoking "hostname" or "uname".
1263         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
1264         _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
1265         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
1266         "</dev/null" since it's now done at the top of 'configure'.
1267         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
1268         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
1269         Also, replace grep with shell pattern-matching, to save a process.
1271 2005-02-10  Paul Eggert  <eggert@cs.ucla.edu>
1273         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
1274         _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
1275         avoid thinking that Allegro Common Lisp's "cl" command is a C++
1276         compiler.
1278 2005-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1280         * doc/autoconf.texi (Limitations of Usual Tools): Document that
1281         grep -q isn't portable.  Improve grep -s explanation.
1282         Problem reported by Dan Manthey.
1284 2005-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1286         * doc/autoconf.texi (Special Shell Variables): Clarify
1287         PATH_SEPARATOR wording; fix typo in IFS.  Reported by Gary V. Vaughan.
1289 2005-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1291         * doc/autoconf.texi: Use @acronym for DJGPP.
1292         Fix some @code's that should have been @env's, and vice versa.
1293         Sort environment variable names.
1294         Mention that shells no longer inherit IFS.
1295         Don't recommend PATH_SEPARATOR=';' so strongly.
1296         Mention that $RANDOM might expand to the empty string.
1297         "symlink" and "soft link" -> "symbolic link".
1298         Improve mktemp description (reported by Bruno Haible).
1300 2005-02-05  Paul Eggert  <eggert@cs.ucla.edu>
1302         * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
1303         * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
1304         Likewise.
1305         * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
1306         Likewise.
1308 2005-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1310         * NEWS: Mention AT_COPYRIGHT.
1312         * tests/local.at (AT_CMP): Use diff directly on input files rather
1313         than copying them.
1315         * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
1316         /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
1318 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
1319         and Paul Eggert  <eggert@cs.ucla.edu>
1321         * tests/autotest.at (Empty test suite): New test.
1322         * tests/torture.at (Substitute and define special characters)
1323         (Substitute a 2000-byte string, Define to a 2000-byte string)
1324         (Substitute a newline, Define a newline): New tests.
1326 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
1328         * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
1329         * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
1330         (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
1331         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
1332         (Standard regular expressions): New test.
1333         (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
1334         excess test name quoting.
1335         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
1336         CPPFLAGS to `configure' instead of setting it in `configure'.
1338         * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
1339         any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
1340         on some platforms.
1342         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
1343         s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
1345         * tests/local.at (AT_CMP): New macro.
1346         (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
1347         (AC_SAVE_STATE): Move environment grep...
1348         (AT_CHECK_ENV): to here.  Filter out `'$''.  Use AT_CMP.
1349         (AT_CONFIG_CMP): New macro.
1350         (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
1351         * tests/c.at (Extensions): Do not exit early.
1352         * tests/atlocal.in: Inherit $GREP.
1354         * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
1355         (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
1357         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
1358         (AC_COPYRIGHT): Factor header comment portion out and move into...
1359         * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
1360         * lib/autotest/general.at (AT_COPYRIGHT): New macro.
1361         (AT_INIT): Add Autotest copyright notice.  Display copyright notices in
1362         --version output.
1363         * tests/local.at: Add Autoconf test suite copyright notice.
1364         * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
1366 2005-02-04  Bruno Haible  <bruno@clisp.org>
1367         and Paul Eggert  <eggert@cs.ucla.edu>
1369         * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
1371 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
1373         * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
1374         this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
1376         Try not to generated lines of unlimited length, as POSIX places a
1377         2047-byte limit on line length of portable text files.
1378         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
1379         Use newline as a separator, not space.
1380         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
1381         (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
1382         space.
1384 2005-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1386         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
1387         as_func_*.  Add test to check whether positional parameters
1388         are restored after function return.
1390 2005-02-02  Paul Eggert  <eggert@cs.ucla.edu>
1392         * doc/autoconf.texi (Special Shell Variables): Mention _,
1393         BIN_SH, DUALCASE.  Say that variables other than "status" are safe
1394         if they contain a lower-case letter.  The DUALCASE problem was
1395         reported by Ralf Wildenhues.
1397         * bin/autoconf.as: Don't exit with status 0 after write failure
1398         with --help or --version.
1399         * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
1400         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
1402 2005-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1404         * doc/autoconf.texi (Limitations of Usual Tools):
1405         Unicos 9 sed limitations.
1406         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
1407         to get the option-enhanced interface on older Crays.  Try ftn for
1408         Fortran 95 (newer Crays).
1410 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
1412         * man/Makefile.am (.x.1): Go back to the simple solution, but take
1413         care to echo the commands, so the user knows what's going on.
1414         Modified from a suggestion by Stepan Kasal.
1416         * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
1417         with a cross reference.  Derived from a suggestion by Bruce Korb.
1419 2005-01-31  Paul Eggert  <eggert@cs.ucla.edu>
1421         * doc/autoconf.texi (config.status Invocation): Warn about
1422         discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
1423         * doc/install.texi (Defining Variables): Likewise.
1424         Based on a proposed patch by Ralf Wildenhues.
1426         * man/Makefile.am (.x.1): Make sure the required generated files
1427         are up to date.  Problem and original solution proposed by Stepan Kasal.
1428         $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
1429         implicit-man-prerequisites): New rules, used by the above.
1431         * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
1432         * config/config.guess, config/config.sub, config/install-sh: Likewise.
1433         * config/missing, config/texinfo.tex: Likewise.
1435 2005-01-29  Stepan Kasal  <kasal@ucw.cz>
1437         Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
1438         Update the long comment explaining it.
1440         m4_require no longer writes an ``is required by'' line to the
1441         execution stack.  It contains only one bit of non-redundant
1442         information: that the macro was required, not called.  And even
1443         this bit is useless in most situations: have you ever met a macro
1444         which both calls and requires the same macro?
1446         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
1447         (_m4_defun_pro_outer): ... only via this macro, for the outermost
1448           macro.
1449         (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
1450         (m4_expansion_stack_pop): Remove the misplaced comment.
1451         (m4_require): Don't put the ``is required by'' line to the
1452           execution stack; slightly improve the out-of-a-defun error message.
1453         (_m4_divert_grow): New macro, counter for the temporary diversions.
1454         (_m4_require_call): Use it.
1455         * tests/m4sugar.at (m4_require): Expect output without the
1456           ``is required by'' messages.
1458 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
1460         * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
1461         rather than x for expr.
1463         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
1464         this is safe.
1465         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
1466         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
1467         * lib/autotest/general.m4 (AT_INIT): Likewise.
1468         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
1469         * tests/mktests.sh: Likewise.
1471 2005-01-27  Akim Demaille  <akim@epita.fr>
1473         Have autoheader honor --force.
1475         * doc/make-stds.texi, doc/standards.texi: Update from masters.
1476         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
1477         * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
1478         from masters, so that FileUtils.pm's update_file provide --force
1479         support.
1480         * bin/autoheader.in: Pass $force to update_file so that
1481         config.h.in is always recreated when --force.
1483 2005-01-24  Stepan Kasal  <kasal@ucw.cz>
1485         * doc/autoconf.texi (Introduction): Update Peter Simons' address.
1487 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
1489         * doc/autoconf.texi (Limitations of Builtins): Clarify that
1490         "if test ! -d foo; ..." is portable.  Suggested by Stepan Kasal.
1492 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
1494         * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
1495         Warn about newline stripping in `` and $().  Update Solaris
1496         version to 9.
1497         (Limitations of Builtins): Use expr "X...", not expr "x...", as
1498         X insulates us from future changes to Posix.
1499         (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
1500         stripping.
1502 2005-01-19  Stepan Kasal  <kasal@ucw.cz>
1504         * doc/autoconf.texi (Defining Symbols): Delete the false comment that
1505           you cannot use AC_DEFINE to define macros containing `[' or `]'.
1507 2005-01-13  Paul Eggert  <eggert@cs.ucla.edu>
1509         * doc/autoconf.texi (Limitations of Usual Tools): Document bug
1510         in Solaris 8 join.  Problem reported by Tomohiro Suzuki on
1511         bug-tar mailing list.
1513 2005-01-05  Stepan Kasal  <kasal@ucw.cz>
1515         * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
1517 2005-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1519         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
1520         ulongval to be static, to avoid unwanted GCC warning.  Problem
1521         reported by Michael Jennings via Daniel Reed; see
1522         <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
1524 2005-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
1526         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
1527         docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
1528         datadir, infodir, and mandir.  Adjust argument parsing code.
1529         (_AC_INIT_HELP): Update help text.
1530         * doc/autoconf.texi (Installation Directory Variables): Document
1531         new variables.
1533 2005-01-04  Noah Misch  <noah@cs.caltech.edu>
1535         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
1536         not seem to work, assume it does set $(MAKE).
1537         * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
1539 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
1541         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
1543 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
1545         A cleanup of the diversion support in m4sugar.
1547         * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
1548         (_m4_divert_n_stack): New macro; the expansion is
1549           <newline>m4_divert_stack, if m4_divert_stack is defined, and void
1550           otherwise.
1551         (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
1552         (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
1553           stored in _m4_divert_diversion or _m4_divert_dump.
1554         (m4_divert_pop): When the parameter is given, compare the symbolic
1555           name with the last diversion pushed on the stack.  Previously, the
1556           current diversion was compared with the numeric value of the
1557           diversion given as the parameter.
1558         (m4_require): If the macro hasn't been expanded yet, call ...
1559         (_m4_require_call): this new macro.
1561 2005-01-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1563         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
1564         Workarounds for documented `case' limitations.
1566 2005-01-03  Paul Eggert  <eggert@cs.ucla.edu>
1568         * doc/autoconf.texi (Limitations of Usual Tools): Warn about
1569         sed 'command1;command2'.  Problem reported by Ralf Wildenhues.
1571 2005-01-02  Paul Eggert  <eggert@cs.ucla.edu>
1573         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
1574         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
1575         bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
1577         Patch from Roger Leigh (with some minor changes) as follows:
1578         * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
1579         Resurrect AC_PROG_CC_STDC.
1580         * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
1581         AC_PROG_CC_C89, AC_PROG_CC_C99.
1582         (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
1583         * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
1584         AC_PROG_CC_C99): New macros.
1585         (AC_PROG_CC_STDC): Use them.
1586         (_AC_PROG_CC_STDC): Remove.
1587         (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
1588         * THANKS: Add Roger Leigh.
1590 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
1592         * bin/autoreconf.in (autoreconf_current_directory):  AM_INIT_AUTOMAKE
1593         signals that the package uses Automake; a `Makefile.am' is typical but
1594         not essential.  Reported by Magnus Therning.
1595         * tests/torture.at (autoreconf.): New banner.
1596         (autoreconf and non-AC configure): Rename to `Non-Autoconf
1597         AC_CONFIG_SUBDIRS'.
1598         (autoreconf an empty directory): Rename to `Empty directory'.
1599         (Unusual Automake input files): New test.
1601 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
1603         * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
1604         (AT_SETUP): Clear AT_capture_files.
1605         (_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
1606         (AT_KEYWORDS): Fix comment typo.
1607         * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
1608         * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
1609         * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
1611 2004-12-29  Albert Chin-A-Young  <china@thewrittenword.com>
1613         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
1614         If the variable to set is already set, set ac_cv_path_$1
1615         to the preset value so caller can assume ac_cv_path_$1
1616         is available.  (trivial change)
1618 2004-12-27  Noah Misch  <noah@cs.caltech.edu>
1620         * BUGS (Minor Problems): Warn about makefile limitations.
1621         * Makefile.am: Find and update `INSTALL' in $(srcdir).
1622         * man/Makefile.am: Find and update manual pages in $(srcdir).
1624 2004-12-24  Eric Blake  <ebb9@byu.net>
1626         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
1627         shells in subshell, to avoid noise from ash.  (trivial change)
1629 2004-12-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1631         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
1632         problems with SunOS ksh and backslash escaping, Bourne shells and
1633         closing brackets (both within character classes).  Bug reported
1634         against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
1635         <read>: New entry.  Mention non-availability of -r.
1637 2004-12-21  Akim Demaille  <akim@epita.fr>
1639         * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
1640         avoid cluttering displayed messages.  Rather, prepend srcdir where
1641         AT_LINE is used for log files.
1643 2004-12-21  Stepan Kasal  <kasal@ucw.cz>
1645         * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
1646         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
1647           no longer part of the macro, quote the occurrence of ``$tmp''.
1648         * doc/autoconf.texi (Forbidden Patterns): Typo.
1650 2004-12-21  Akim Demaille  <akim@epita.fr>
1652         * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
1653         separated from the test title by forcing a white space.
1655 2004-12-21  Akim Demaille  <akim@epita.fr>
1657         Enable Emacs navigation within testsuite.log files.
1659         * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
1660         use the compilation mode.
1661         (AT_LINE): Point to the srcdir.
1663 2004-12-19  Noah Misch  <noah@cs.caltech.edu>
1665         * tests/Makefile.am (installcheck-local): Use $(bindir).
1666         (check-local, installcheck-local): Pass TESTSUITEFLAGS.
1667         * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
1668         Makefile.am scheme Autoconf now uses.
1670 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
1672         * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
1673         * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
1675 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
1677         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
1678         (_AT_CHECK): Use it.
1679         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
1680         (AS_ESCAPE): Fix comment.
1681         * tests/autotest.at: Adjust section banner comments.
1682         (AT_CHECK_AT): Accept STATUS and STDERR.
1683         (AT_CHECK_AT_TEST): Likewise.
1684         (Invalid brace-enclosed parameter expansion)
1685         (Multiline command from M4 expansion)
1686         (Double-M4-quoted command): New tests.
1688 2004-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1690         * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
1692 2004-12-17  Akim Demaille  <akim@epita.fr>
1694         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
1695         m4_pattern_allow.
1696         Suggested by Alexandre Duret-Lutz.
1697         * doc/autoconf.texi (Setting Output Variables): Catch up.
1699 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
1701         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
1703 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
1705         * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
1706           remove the comment which said we cannot.
1708 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
1710         Add a specialized check for resolv.h.  Thanks to Gerrit P. Haase,
1711         Reini Urban and Paul Eggert for reporting the dependencies.
1713         * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
1714         * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
1715         (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
1717 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
1719         * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
1720           so that eg. ``autoscan --help'' doesn't truncate it.
1722 2004-12-15  Nicolas Joly  <njoly@pasteur.fr>
1724         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
1725         generated conftest files.
1727 2004-12-13  Noah Misch  <noah@cs.caltech.edu>
1729         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
1730         tracing on commands with possibly-escaped newlines.
1731         * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
1732         discontinued behavior and its implications.
1733         * tests/autotest.at (BS-newline in command, ^BS-newline in command)
1734         (BSx641-newline in command, BS-BS-newline in command)
1735         (BSx640-newline in command, Newline-CODE-BS-newline in command)
1736         (Single-quote-BS-newline in command)
1737         (Single-quote-newline-BS-newline in command): New tests.
1739 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
1741         * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
1742           on platforms where it works.
1743         (_AS_TEST_PREPARE): Test for ``test -x''.
1744         (_AS_BROKEN_TEST_PREPARE): Nuke.
1746 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
1748         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
1749         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
1750           give only 4-letter prefix to AS_TMPDIR, comment fixed.
1751         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
1752           create the temporary directory.
1753         (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
1755 2004-12-12  Kelley Cook  <kcook@gcc.gnu.org>
1757         * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
1758         (trivial change)
1760 2004-12-12  Alexandre Duret-Lutz  <adl@gnu.org>
1762         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
1764 2004-12-11  Noah Misch  <noah@cs.caltech.edu>
1766         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
1767         to avoid using a negated character class.  Reported by Nicolas Joly.
1768         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
1770 2004-12-10  Paul Eggert  <eggert@cs.ucla.edu>
1772         * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
1773         autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
1774         Don't depend on .x file explicitly, since "make" does that for us.
1775         Suggested by Stepan Kasal.
1777         * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
1778         Add *.tmp.
1779         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
1780         ifnames): Factor common code.  And they said it couldn't be done!
1782 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
1784         * bin/.cvsignore: Add autoconf.in.
1785         * tests/.cvsignore: Add wrapper.in.
1786         * lib/autotest/general.m4: Escape '$' in case pattern.
1788 2004-12-09  Noah Misch  <noah@cs.caltech.edu>
1790         * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
1792         * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
1794         * tests/autotest.at: New file.
1795         * tests/suite.at: Include it.
1796         * tests/Makefile.am: Distribute it.
1798         * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
1799           shell tracing on a command that could contain multiple lines.
1800         * doc/autoconf.text: Document that fact and its implications.
1801         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
1802         * tests/autotest.at (Multiline backquote command substitution,
1803           Multiline parameter expansion, Literal multiline command,
1804           Multiline parenthetical command substitution): Remove XFAIL.
1806 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
1808         * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
1809         and suggest AC_SEARCH_LIBS.  Suggested by Noah Misch and Stepan Kasal.
1811 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
1813         * configure.ac (test suite): Cease to generate wrapper scripts.
1814         * configure: Regenerate.
1815         * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
1816         (m4f_dependencies): Adjust accordingly.
1817         * tests/Makefile.am (Wrappers): Generate wrapper scripts.
1818         (wrapper.in): Generate it in the build directory.
1819         (MAINTAINERCLEANFILES): Delete wrapper.in.
1820         (CLEANFILES): Add wrapper.in.
1821         * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
1822         the output.  Replace each $as_me with a @wrap_program@.
1823         * tests/wrapper.in: Delete it; we always build it.
1825         * bin/Makefile.am (autoconf.in): Generate it in the build directory.
1826         (EXTRA_DIST): Remove autoconf.in.
1827         (CLEANFILES): Add autoconf.in.
1828         (autoconf): Find autoconf.in in the build directory.
1829         * bin/autoconf.in: Delete it; we always build it.
1831 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
1833         * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'.  Join
1834         PATH members so as to not prepend an empty element.  Move a comment.
1835         * Makefile.am (SUBDIRS): Build in `tests' last.
1836         * tests/Makefile.am (installcheck-local): Add check-local dependencies.
1838 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
1840         * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
1841         the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
1842         <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
1843         Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
1845 2004-12-07  Stepan Kasal  <kasal@ucw.cz>
1847         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
1848         patch: extra "-l"s.
1850 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
1852         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
1853         looking elsewhere for getmntent.  Problem reported by Mark D. Baushke.
1854         * doc/autoconf.texi (Particular Functions): Mention new behavior.
1856 2004-12-03  Stepan Kasal  <kasal@ucw.cz>
1858         * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
1859           out the common code to ...
1860         (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
1861           value of the #define--default to 1, iff the macro was called
1862           with exactly one parameter.
1864 2004-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1866         * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
1867         "char c = '\200';" rather than "char c = 0x80;" as the
1868         latter doesn't conform to the strict C standard due to
1869         overflow on signed char hosts.
1871         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
1872         to -qlanglvl=ansi.  We don't want to disable extensions.
1874 2004-11-29  Paul Eggert  <eggert@cs.ucla.edu>
1876         * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
1877         (Using Autotest, testsuite Scripts, Writing testsuite.at):
1878         Reword slightly to avoid some English-language problems noted
1879         by Ralf Wildenhues in:
1880         http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
1882 2004-11-29  Stepan Kasal  <kasal@ucw.cz>
1884         * NEWS: Add ^L above each release.
1886 2004-11-28  Paul Eggert  <eggert@cs.ucla.edu>
1888         Fix documentation problems reported by Russ Boylan in
1889         <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
1890         along with some nearby cruft.
1891         * doc/autoconf.texi (Libtool): Libtool can be used without
1892         Automake (not without Autoconf).
1893         (Introduction): Mention lists.gnu.org.
1894         * BUGS: Don't mention bugs.gnu.org.
1895         Remove mention of ancient libtool compatibility problem.
1896         * NEWS: Mention that bugs.gnu.org is kaput.
1897         * README: Likewise.  Mention where mailing list archives can be found.
1899 2004-11-28  Stepan Kasal  <kasal@ucw.cz>
1901         * HACKING: Refer to "coreutils", not "File, Shell or Text utils".
1902         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
1904 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
1906         * doc/autoconf.texi (Pretty Help Strings): Go back to
1907         single-quoting assignments to cache variables.
1909 2004-11-23  Stepan Kasal  <kasal@ucw.cz>
1911         * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
1912         with the examples; fix the bug in MY_ARG_WITH example reported
1913         by Alexandre Duret-Lutz.
1914         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
1915         expansion of $1 in the comment emitted to configure.
1917 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
1919         * doc/autoconf.texi (Pretty Help Strings): Fix typo
1920         in my editing of the previous patch.  Problem reported
1921         by Alexandre Duret-Lutz.
1923 2004-11-22  Stepan Kasal  <kasal@ucw.cz>
1925         * doc/autoconf.texi (Autoconf Language): Explain that
1926         ``descriptions'' may not be double quotes.
1927         (Quotation Rule Of Thumb): Likewise.
1928         (Pretty Help Strings): Likewise; remove the wrong comment;
1929         simplify the examples and improve their quoting.
1931 2004-11-13  Stepan Kasal  <kasal@ucw.cz>
1933         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
1934         the $1_found variable, don't test whether the file is executable;
1935         Both things are checked ...
1936         (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
1937         the former ``test -f''.
1938         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
1940 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
1942         * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
1943         use cp -R instead.
1945 2004-11-10  Derek R. Price  <derek@ximbiot.com>
1947         * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
1948         limitations.  Reorder paragraphs for clarity.
1950 2004-10-11  Paul Eggert  <eggert@cs.ucla.edu>
1952         * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
1953         to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
1954         variants", "Unix", and some related minor wording fixups.
1956         (Shellology, Special Shell Variables): Document that the Zsh
1957         problem with NULLCMD was fixed in zsh 3.1.6-dev-18.  Thanks
1958         to Alexandre Duret-Lutz for this info.
1960 2004-10-10  Alexandre Duret-Lutz  <adl@gnu.org>
1962         * doc/autoconf.texi (One-Shot Macros): New node.
1964 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
1966         * doc/autoconf.texi (Function Portability): Fix misdescription
1967         of putenv.  Problem reported by Michael Wardle.
1969 2004-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1971         * doc/autoconf.texi (auindex): New macro.
1972         (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
1973         Problem reported by Stepan Kasal.
1975 2004-09-05  Paul Eggert  <eggert@cs.ucla.edu>
1977         Fix problems reported by Andreas Buening in:
1978         http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
1979         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
1980         in test makefile.
1981         * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
1982         readable; it's not true in OS/2-emx.
1984 2004-09-04  Paul Eggert  <eggert@cs.ucla.edu>
1986         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
1987         "/usr/include", clear ac_x_includes instead of leaving it as "no"
1988         (trivial change).  Problem and patch reported by Andrew Church in:
1989         http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
1991 2004-09-03  Paul Eggert  <eggert@cs.ucla.edu>
1993         * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
1994         three args in examples.  Problem reported by Frederik Fouvry in:
1995         http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
1996         Also, fix some minor spacing and punctuation bugs.
1998 2004-09-02  Akim Demaille  <akim@epita.fr>
2000         * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
2001         "case" to restore ordering.
2002         Reported by Stepan Kasal.
2004 2004-08-26  Akim Demaille  <akim@epita.fr>
2006         * doc/autoconf.texi: Minor typos and stylos.
2008 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2010         * configure.ac (AC_INIT): Bump to 2.59c.
2012 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2014         Version 2.59b.
2016         * README: Add advice about m4 1.4.2.
2018         * Makefile.cfg (wget_files): Remove config.guess, config.sub,
2019         texinfo.tex for now (done by hand now).
2020         * Makefile.maint (wget_files, cvs_files):
2021         Remove ansi2knr.c; nobody uses it.
2022         (ansi2knr.c-url_prefix): Remove.
2023         (cvs-update): Fix test for failure.  I don't know why it ever
2024         worked...
2026         * doc/autoconf.texi: Update URLs, some of which went stale.
2027         Use @uref rather than @href.
2029         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
2030         handle "--" as per POSIX.  Suggested by Paul Pogonyshev.
2032         * config/config.guess, config/config.sub, config/elisp-comp,
2033         config/install-sh, config/mkinstalldirs, config/texinfo.tex,
2034         doc/fdl.texi, doc/standards.texi: Sync with master copy.
2036         * NEWS, TODO, configure.ac, bin/autoscan.in,
2037         bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
2038         doc/install.texi, lib/Autom4te/Configure_ac.pm,
2039         lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
2040         lib/autoconf/programs.m4, lib/autoconf/status.m4,
2041         lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
2042         lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
2043         tests/tools.at, tests/torture.at:
2044         Use "file name" rather than "filename" or "path",
2045         to be consistent with the terminology of the GNU coding standards.
2047 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
2049         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
2050         AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
2051         HP-UX 11.23 cc/aCC or Tru64 4.0 cc.  Problem reported by Noah Misch in
2052         <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
2054         More fixes to support spaces in the name of the build directory.
2055         This isn't a complete fix but it's an improvement.
2057         * bin/autoconf.as (autom4te_options): New var.
2058         Use it instead of appending to AUTOM4TE, so that we can allow
2059         spaces in the build directory's absolute name.
2060         * bin/autoheader.in ($autoconf): Allow spaces in file names.
2061         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
2062         AT_CHECK_NOESCAPE): Likewise.
2063         * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
2064         main program): Likewise.
2066 2004-08-18  Paul Eggert  <eggert@cs.ucla.edu>
2068         * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
2069         From Ralf Corsepius in:
2070         http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
2072 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
2074         * doc/autoconf.texi (Function Portability): Document isinf and
2075         and isnan.  From a suggestion by Kevin Ryde.
2077         * lib/Autom4te/General.pm (END): Return correct exit status even
2078         if unlink succeeds and sets $?.  Needed with Solaris 8's perl 5.00503.
2080 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
2082         * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
2083         for compatibility with Automake 1.4.  Reported by J C Fitzgerald in
2084         <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
2086 2004-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
2088         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
2089         (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
2090         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
2091         * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
2092         * lib/autom4te.in (Automake-preselections): Preselect
2093         AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
2095 2004-08-02  Alexandre Duret-Lutz  <adl@gnu.org>
2097         * lib/autom4te.in (Automake-preselections): Preselect
2098         AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
2099         trace them.
2101 2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
2103         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
2104         Tru64.
2105         * doc/autoconf.texi (Shellology): Mention BIN_SH.
2106         Document problem with "`""`" in pdksh POSIX mode.
2108 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
2110         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
2111         with pdksh, too.  Problem reported by Patrick Welche via
2112         Gary V. Vaughan.
2113         * doc/autoconf.texi (Shellology): Note that set -o posix is
2114         useful for pkdsh, too.
2116 2004-06-24  Paul Eggert  <eggert@cs.ucla.edu>
2118         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
2119         _AS_UNSET_PREPARE, so that we can use $as_unset directly.
2120         Don't fail if ENV or BASH_ENV is readonly.
2121         (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
2122         etc. are read only.  Problem reported by Ludovic Courtes.
2124 2004-06-23  Noah Misch  <noah@cs.caltech.edu>
2126         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
2127         zsh, disable GLOB_SUBST to avoid backslash handling problems.
2128         (trivial change)
2130 2004-06-04  Paul Eggert  <eggert@cs.ucla.edu>
2132         * doc/autoconf.texi (File System Conventions): Warn about
2133         names like "aux".  Problem reported by Eric Blake.
2135         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
2136         by zero instead of array size, so that we can use any arithmetic
2137         constant expression (instead of requiring an integer constant
2138         expression).  This allows us to test expressions like DBL_MAX <
2139         LDBL_MAX, which didn't conform to the C standard using the old
2140         method.
2141         (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
2142         now that we can do floating-point tests at compile time.
2144 2004-06-02  Paul Eggert  <eggert@cs.ucla.edu>
2146         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
2147         and LDBL_EPSILON, as the resulting expression isn't an
2148         integer constant expression and violates the C standard.
2149         Problem reported by Nelson H. F. Beebe.  Also, check
2150         for "L" suffix, and check that long double doesn't have
2151         worse range or precision than double, that mixed-mode
2152         arithmetic doesn't generate a diagnostic, that double
2153         constants fit in long double.
2155 2004-06-03  Kevin Ryde  <user42@zip.com.au>
2157         * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
2158         malloc(0) and realloc(NULL,size).
2160         * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
2161         Bob Proulx.
2163 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
2165         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
2166         in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].  Problem reported
2167         by Jim Meyering.
2169 2004-05-26  Paul Eggert  <eggert@cs.ucla.edu>
2171         * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
2172         can be rewritten using if-then-else.  Suggested by Bruno Haible.
2174 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
2176         * doc/autoconf.texi (testsuite Scripts): Fix typo.
2177         Problem reported by Stepan Kasal.
2179 2004-05-24  Paul Eggert  <eggert@cs.ucla.edu>
2181         * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
2182         change).  Patch reported by Ralf Wildenhues in
2183         <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
2185         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
2186         function F exists if the compiler and linker let you compile an
2187         expression like (F != 0).  Recent versions of GCC optimize away
2188         the reference to F in that case, since every function address must
2189         be nonzero, so the link succeeds even if F does not exist.
2190         Problem reported by Manu in
2191         <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
2193         * doc/autoconf.texi (Systemology): Standardize on the spelling of
2194         "Unix".  Many uses changed.
2195         (Limitations of Builtins): Explain better why the ! command isn't
2196         portable.
2198 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
2200         * lib/autom4te.in (Automake-preselections): Preselect
2201         LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
2203 2004-05-19  Kevin Ryde  <user42@zip.com.au>
2205         * doc/autoconf.texi (Function Portability): Add strerror_r, cross
2206         referencing AC_FUNC_STRERROR_R.
2208         * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
2209         note pessimistic assumption when cross compiling.
2211 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2213         * doc/autoconf.texi (Limitations of Make): Note that BSD make
2214         (until 2004) invoked subcommands with sh -e, contra POSIX.
2215         Reported by Kevin Ryde.
2217 2004-05-10  Eric Sunshine  <sunshine@sunshineco.com>
2219         * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
2220         _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
2221         "        $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
2222         `test -f "        /usr/bin/grep"', which _always_ failed.
2223         (AC_PROG_SED): Ditto bogus PATH fix.
2224         * autoconf.texi (AC_PROG_GREP): Properly document that this macro
2225         requires that grep correctly supports _multiple_ `-e' options, rather
2226         than stating only that grep should accept `-e'.
2228 2004-05-03  Paul Eggert  <eggert@cs.ucla.edu>
2230         Port to C99, which requires that 'exit' be declared.
2232         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
2233         to ensure that stdlib.h is included.
2234         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
2235         AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
2236         _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
2237         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
2238         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
2239         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
2240         when using 'exit' in a test; C99 requires that 'exit' be declared.
2242 2004-05-02  Paul Eggert  <eggert@cs.ucla.edu>
2244         * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
2245         now prefers 'grep' implementations that accept -e.
2246         (Limitations of Usual Tools): Describe problems of traditional
2247         egrep and fgrep with long input lines, and of traditional grep
2248         with -e.
2249         * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
2250         (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
2251         All callers changed.  Append /usr/xpg4/bin to the PATH, for
2252         Solaris.
2253         (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
2254         the user with complaints about multiple -e options.
2255         * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
2256         Define it with AC_PROG_GREP.
2257         * configure.ac (AC_PROG_GREP): Add.
2258         * lib/freeze.mk (GREP): New macro.
2260 2004-05-02  Eric Sunshine  <sunshine@sunshineco.com>
2262         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
2263         a possible candidate only after all others fail, rather than
2264         consulting it first.  This improves backward compatibility by
2265         better reflecting the way shell selection occurred in previous
2266         versions of Autoconf, and should help to avoid triggering latent
2267         problems in other packages, such as the one in Automake where zsh
2268         is not handled robustly:
2269         http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
2270         Although it is not Autoconf's responsibility to work around
2271         problems in Automake, it nevertheless makes sense to avoid
2272         introducing unnecessary incompatibilites.
2274 2004-04-22  Albert Chin-A-Young  <china@thewrittenword.com>,
2275             Gary V. Vaughan  <gary@gnu.org>
2277         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
2278         how deeply nested we are when a suitable tool is found, set the
2279         ac_path_TOOL_found flag.
2280         (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
2281         nested we are in this macro.  Break out of all 3 nested loops if
2282         ac_path_TOOL_found is set.
2284 2004-04-21  Gary V. Vaughan  <gary@gnu.org>
2286         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
2287         of the _AS_PATH_WALK loop too if GNU flavor is found.
2289 2004-04-21  Alexandre Duret-Lutz  <adl@gnu.org>
2291         * doc/autoconf.texi (Limitations of Make): Update documentation
2292         for `$<'.  New entry `Long lines', based on a report from Simon
2293         Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
2294         paragraph about DJGPP, based on a mail from Richard Dawe.
2296 2004-04-20  Paul Eggert  <eggert@twinsun.com>
2298         * tests/c.at (C keywords): Don't assume that GCC supports
2299         "restrict" and "inline", as sufficiently-old GCC versions do not
2300         (also, GCC configured to be in pedantic C89 mode does not).
2301         Problem reported by Sumit Pandya in:
2302         http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
2304         * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
2305         consider -g to work if it generates warnings when plain compiles
2306         don't.  Problem reported by Braden McDaniel in:
2307         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
2309         * doc/autoconf.texi (Slashes): New section, to document a problem
2310         reported by Jim Meyering in:
2311         http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
2313         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
2314         linker output files before linking, to work around IRIX 6 linker bug.
2315         Problem reported by Rainer Orth in:
2316         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
2318 2004-04-20  Gary V. Vaughan  <gary@gnu.org>
2320         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
2321         best tool so far counter rely on the tool path variable name to
2322         avoid checks for one tool being affected by the results of running
2323         the length check on a previous tool.
2325         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
2326         match expression argument, as different greps have different
2327         regular expression flavours.
2328         (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
2329         literals.
2330         (AC_PROG_EGREP): Pass 'EGREP$'.
2331         (AC_PROG_GREP): Pass 'GREP$'.
2333 2004-04-20  Albert Chin-A-Young  <china@thewrittenword.com>
2335         * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
2336         is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
2338 2004-03-29  Paul Eggert  <eggert@twinsun.com>
2340         * doc/autoconf.texi (Particular Headers, Particular Types, Generic
2341         Types, Specific Compiler Characteristics, System Services,
2342         Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
2343         etc. consistently instead of 'long', 'short', 'unsigned' etc.
2344         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
2345         * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
2346         Likewise.
2347         * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
2348         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
2349         AC_TYPE_OFF_T): Likewise.
2350         * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
2351         Likewise.
2353         * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
2354         pacify libtool 1.5.2.  Fix quoting problems in sed command.
2356 2004-03-28  Paul Eggert  <eggert@twinsun.com>
2358         * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
2359         now defines HAVE_DECL_TZNAME if it is declared, when
2360         HAVE_STRUCT_TM_TM_ZONE is not defined.
2361         * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
2362         Do not assume atoi.  Rely on HAVE_DECL_TZNAME when testing
2363         for HAVE_TZNAME.
2365 2004-03-28  Steven G. Johnson  <stevenj@fftw.org>
2367         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
2368         superfluous backslashing of quotes (") in sed expressions;
2369         thanks to Paul Eggert.
2371 2004-03-26  Steven G. Johnson  <stevenj@alum.mit.edu>
2373         * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
2374         Fortran compiler is ifort, also added pghpf; thanks to Nelson
2375         H. F. Beebe for the bug report.
2377 2004-03-26  Steven G. Johnson  <stevenj@fftw.org>
2379         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
2380         quoted -cmdline argument in Portland Group compiler (bug
2381         reported by Jeffrey J. Barteet).
2383 2004-03-25  Kevin Ryde  <user42@zip.com.au>
2385         * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
2386         (Run Time): ... here, where it's now mentioned.
2388 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
2390         * doc/autoconf.texi (autom4te Invocation): Language Autoconf
2391         inherits from language Autoconf-without-aclocal-m4.
2392         (Customizing autom4te): Adjust example; the cache must now be
2393         disabled for language Autoconf-without-aclocal-m4.
2395 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
2396             Nathanael Nerode  <neroden@twcny.rr.com>
2398         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
2399         AC_CHECK_TOOLS): Warn if a cross-tool is found without
2400         a prefix.
2401         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
2402         AC_CHECK_TARGET_TOOLS): New macros.
2403         * doc/autoconf.texi (Generic Programs): Document
2404         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
2405         AC_CHECK_TARGET_TOOLS, and warn for future changes
2406         in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
2407         AC_CHECK_TOOLS.
2408         (Specifying Names): Document the reason for these future
2409         behavioral changes.
2410         * tests/mktests.sh: Do not generate tests for the
2411         new macros.
2412         * NEWS: Document these changes.
2414         * doc/autoconf.texi: Avoid macros with unbraced arguments,
2415         they make TeX hang up.
2417 2004-03-15  Paul Eggert  <eggert@bogus.example.com>
2419         * NEWS: New macro AC_CHECK_ALIGNOF.
2420         * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
2421         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
2422         int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
2423         vowel.
2424         (AC_CHECK_ALIGNOF): New macro.
2425         * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
2426         * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
2427         those for sizeof.
2429 2004-03-03  Paul Eggert  <eggert@twinsun.com>
2431         * bin/Makefile.am (edit): Don't use $< in a context where
2432         POSIX doesn't require support for it.  Use $@.in instead.
2433         Problem reported by Anthony N. Frasso in
2434         <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
2435         * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
2437 2004-02-23  Gary V. Vaughan  <gary@gnu.org>
2439         * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
2440         from the next generation of Libtool.
2441         * lib/autom4te.in (Autoreconf-preselections): Ditto.
2443 2004-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
2445         * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
2446         is not always thread-safe.  Report from Nathanael Nerode.
2448 2004-02-18  Paul Eggert  <eggert@twinsun.com>
2450         Fix a dependencies problem, stemming from a Autoconf 2.59 build
2451         problem on QNX reported by Stephen Rasku in
2452         <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
2454         * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
2455         $(m4sh_m4f_dependencies); this removes a FIXME.
2456         * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
2457         (MAINTAINERCLEANFILES): Split into pieces,
2458         one per related section.  Add $(srcdir)/wrapper.in.
2460 2004-02-09  Paul Eggert  <eggert@twinsun.com>
2462         * doc/autoconf.texi (Setting Output Variables): Emphasize that
2463         AC_SUBST provides no portable way to escape literal newlines.
2465         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
2466         flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
2467         Darwin uses -lcrt2.o and there's little point to cataloging all
2468         the system variants.  Partial fix reported by Andreas Waechter in:
2469         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
2470         for bug reported by Nelson H. F. Beebe in:
2471         http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
2473 2004-02-04  Paolo Bonzini  <bonzini@gnu.org>
2475         * doc/autoconf.texi (AU_DEFUN): Fix English,
2476         suggested by Paul Eggert.
2477         * lib/autoconf/autoupdate.m4: Correct reference to
2478         acobsolete.m4, suggested by Alexandre Duret-Lutz.
2480 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
2482         * bin/autoupdate.in: Define __file__ so that warnings
2483         refer to the correct file.
2484         * doc/autoconf.texi (AU_DEFUN): Describe more correctly
2485         the behavior of the third argument.
2486         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
2487         correctly the behavior of the third argument.  Document
2488         what the three macros that AU_DEFUN defines do.  Fix
2489         warning message when the third argument includes $0
2490         (reported by Alexandre Duret-Lutz).
2492 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
2493             Eric Sunshine  <sunshine@sunshineco.com>
2494             Paul Eggert  <eggert@twinsun.com>
2496         * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
2497         (AS_INIT): Output shell initialization there. Removed optional
2498         parameter. Expand _AS_SHELL_FN_SPY.
2499         (AS_INIT_WITH_SHELL_FN): Removed.
2500         (_AS_SHELL_FN_SPY): New macro.
2501         (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
2502         macros.
2503         (AS_SHELL_SANITIZE): Remove loop to find better shell
2504         and documentation for the parameter.
2505         (_AS_DETECT_BETTER_SHELL): Move it here.
2506         (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
2507         (_AS_RUN): Move it here, support testing with eval.
2508         (AS_REQUIRE_SHELL_FN): Require shell functions when
2509         it is used.
2510         (_AS_LINENO_WORKS): Put around braces, we do not
2511         trigger the bash bug anymore.
2512         * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
2513         use AS_INIT_WITH_SHELL_FN.
2514         * bin/autoconf.in, tests/wrapper.in: Regenerated.
2516 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
2518         * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
2519         * doc/autoconf.texi: Don't say that the third parameter
2520         is broken.
2521         * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
2522         (AU_DEFUN): Honor the third parameter, create autoupdate
2523         macros with AU_DEFINE.
2524         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
2525         AC_DIR_HEADER): Use AU_DEFUN's third parameter.
2526         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
2527         * lib/autoconf/programs.m4 (AC_RSH): Likewise.
2528         * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
2529         AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
2530         AC_XENIX_DIR): Likewise.
2531         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
2532         AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
2533         * lib/autoconf/status.m4: Remove FIXME.
2534         * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
2535         that the macro is not present anymore in the updated
2536         configure.ac.
2537         * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
2538         of autoupdate.
2540 2004-01-28  Paul Eggert  <eggert@twinsun.com>
2542         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
2543         copyright years.
2544         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
2545         2003 (except 1997) to the list of copyright years.  This undoes
2546         the 2003-05-22 change, which removed the older years from the list.
2547         * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
2549 2004-01-27  Gary V. Vaughan  <gary@gnu.org>
2550             Albert Chin-A-Young  <china@thewrittenword.com>
2552         * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
2553         grep or ggrep program in PATH that accepts as long lines as
2554         possible.
2555         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
2556         AC_PROG_GREP.
2557         (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
2558         egrep and fgrep respectively if $GREP -E/-F don't work.
2559         (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
2560         _AC_PROG_GREP, and AC_PROG_SED.
2561         (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
2562         longest input length accepted by a command.
2563         (AC_PROG_SED): Use it.
2564         * doc/autoconf.texi (Particular Programs): Document the changes.
2565         * NEWS: Updated.
2567 2004-01-27  Paul Eggert  <eggert@twinsun.com>
2569         * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
2570         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
2571         bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
2572         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
2574         * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
2575         bin/autoconf.in, config/Makefile.in, config/config.guess,
2576         config/config.sub, config/install-sh, config/mdate-sh,
2577         config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
2578         lib/Makefile.in, lib/Autom4te/Makefile.in,
2579         lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
2580         lib/autotest/Makefile.in, lib/emacs/Makefile.in,
2581         lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
2582         man/autoheader.1, man/autom4te.1, man/autoreconf.1,
2583         man/autoscan.1, man/autoupdate.1, man/config.guess.1,
2584         man/config.sub.1, man/ifnames.1, tests/Makefile.in,
2585         tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
2586         tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
2587         tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
2588         tests/actypes.at: Regenerate and/or sync with original
2589         sources.
2591 2004-01-26  Paul Eggert  <eggert@twinsun.com>
2593         * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
2594         HAVE_INTTYPES_H is defined.  This is needed on Tru64 5.1b with
2595         Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
2596         not <inttypes.h>.  Problem reported by Tim Mooney in
2597         <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
2598         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
2599         Likewise.
2601         * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
2602         otherwise "make check" fails because it forbids cmp (I guess
2603         because cmp treats files as binary on DOS-like systems).
2605         * tests/mktests.sh: Update copyright date to 2004, since some tests
2606         have changed in 2004.
2608 2004-01-23  Gary V. Vaughan  <gary@gnu.org>
2610         * lib/autoconf/programs.m4 (AC_PROG_SED):  New macro to test for a
2611         non-truncating sed or gsed program in PATH.
2612         * tests/acprograms.at: Add it.
2613         * doc/autoconf.texi (Particular Programs): Document it.
2614         * NEWS: Updated.
2616 2004-01-15  Paul Eggert  <eggert@twinsun.com>
2618         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
2619         -std1 disables some useful extensions on Tru64.  Problem reported
2620         by N. Lichtmaier in
2621         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
2623 2004-01-14  Paul Eggert  <eggert@twinsun.com>
2625         * doc/autoconf.texi (Programming in M4sh): Document that
2626         AS_MKDIR_P succeeds if the destination is a symbolic link
2627         to an existing directory.
2628         (Limitations of Usual Tools): Note that mkdir -p might not
2629         succeed on symlinks to directories.
2631 2004-01-13  Paul Hilfinger  <hilfinger@CS.Berkeley.EDU>
2633         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
2634         * bin/autoheader.in: Grammar fix in message.
2635         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
2636         Test for dir before calling mkdir -p.  (trivial changes)
2638 2004-01-13  Eric Blake  <ebb9@byu.net>
2640         * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
2641         AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
2643 2004-01-10  Jim Meyering  <jim@meyering.net>
2645         * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
2647 2004-01-09  Paul Eggert  <eggert@twinsun.com>
2649         * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
2650         with `autoconf -Wall,error'.  Bug reported by Eric Blake in:
2651         http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
2652         (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
2653         AC_COMPILE_IFELSE, since we now assume our caller invokes
2654         AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
2655         (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
2656         of AC_RUN_IFELSE; this avoids the warning mentioned above.
2657         (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
2659 2004-01-07  Paul Eggert  <eggert@twinsun.com>
2661         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
2662         `"'...'"`, as it's confusing (and I suspect it may not work on
2663         some platforms).  The code was incorrect anyway, as it assumed
2664         that \$ evaluated to itself in that context.  Reported by
2665         Alexandre Duret-Lutz.
2667 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
2669         * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
2670         and _LT_AC_TAGCONFIG.
2672 2004-01-06  Paul Eggert  <eggert@twinsun.com>
2674         * doc/autoconf.texi (One Macro Call): Fix an incorrect
2675         example, and add more examples.  Reported by Eric Sunshine.
2677 2004-01-05  Paul Eggert  <eggert@twinsun.com>
2679         * doc/autoconf.texi (Limitations of Usual Tools):
2680         Remove warning against "rm -fr" introduced yesterday; it
2681         was a false alarm.
2683         * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
2684         autoscan, autoupdate, ifnames): Don't use chmod -w.
2685         * lib/Makefile.am (autom4te.cfg): Likewise.
2686         * doc/autoconf.texi (Limitations of Usual Tools): Warn against
2687         "chmod -w".
2689 2004-01-04  Paul Eggert  <eggert@twinsun.com>
2690             Paolo Bonzini  <bonzini@gnu.org>
2692         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
2693         by doing lineno substitution only on lines containing "$LINENO".
2695 2004-01-04  Paul Eggert  <eggert@twinsun.com>
2697         * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
2698         Use "rm -f" to remove conftest.sed, not plain "rm".
2699         Bug reported by David Relson in
2700         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
2702         * Makefile.am (autom4te-update):
2703         Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
2704         * Makefile.maint (my-distcheck, do-po-update): Likewise.
2705         * doc/autoconf.texi (Guidelines): Likewise.
2706         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
2707         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
2708         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
2709         * lib/autotest/general.m4 (AT_INIT): Likewise.
2710         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
2711         * tests/Makefile.am (clean-local): Likewise.
2712         * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
2713         srcdir): Likewise.
2714         * doc/autoconf.texi (Limitations of Usual Tools):
2715         Warn against "rm -fr".
2717 2004-01-03  Paul Eggert  <eggert@twinsun.com>
2719         * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
2720         -c -o might not work.  From a suggestion by Kevin Ryde.
2721         (C Compiler, Generating Sources, Limitations
2722         of Usual Tools, Limitations of Make, Making testsuite Scripts):
2723         Don't put '-o' after non-options, as POSIX doesn't allow this.
2724         Mention that cc's name might be gcc or c89 or whatever.
2726 2004-01-04  Kevin Ryde  <user42@zip.com.au>
2728         * doc/autoconf.texi: Add various further index entries.
2730 2003-12-29  Paul Eggert  <eggert@twinsun.com>
2732         * bin/autoreconf.in (autoreconf_current_directory):
2733         Fix typo: mkdir without umask arg.
2735 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
2737         * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
2738         Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
2739         `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
2740         explanation clearer.
2742 2003-12-24  Andreas Schwab  <schwab@suse.de>
2744         * doc/autoconf.texi (Default Includes): Fix misspelling of
2745         AC_INCLUDES_DEFAULT.
2747 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
2749         * configure.ac: Test if sh -n works.
2750         * configure: Regenerate.
2751         * tests/atlocal.in: Store the result here.
2752         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
2753         tools.at, looking in atlocal's ac_cv_sh_n_works instead
2754         of explicitly testing.
2755         (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
2756         (AT_CHECK_AUTOCONF): Test for the configure script syntax.
2757         * tests/tools.at (Syntax of the shell scripts): Simplify
2758         using AT_CHECK_SHELL_SYNTAX.
2759         (Syntax of the Perl scripts): Remove definition of
2760         AT_CHECK_PERL_SYNTAX.
2762 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
2764         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
2765         stderr to /dev/null.
2766         * bin/autoconf.in: Regenerate.
2767         * bin/wrapper.in: Regenerate.
2769 2003-11-26  Paolo Bonzini  <bonzini@gnu.org>
2771         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
2772         Extracted from AS_SHELL_SANITIZE.
2773         (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
2774         macros.
2775         (AS_SHELL_SANITIZE): Move reinvocation code from
2776         _AS_LINENO_WORKS, use it to find out if shell
2777         functions work.
2778         (_AS_LINENO_WORKS): Don't find another shell if $LINENO
2779         does not work.
2780         (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
2781         (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
2782         was called.
2783         * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
2784         * bin/autoconf.in: Regenerate.
2785         * tests/wrapper.in: Regenerate.
2786         * tests/tools.at: Test the syntax of tests/autoconf
2787         and tests/testsuite.
2789 2003-11-24  Akim Demaille  <akim@epita.fr>
2791         * config/announce-gen (&print_locations, &print_signatures)
2792         (&sizes): New.
2793         Use them.
2794         No longer rely on Gnus to inline the list of signatures: compute
2795         them on the fly.
2797 2003-11-24  Akim Demaille  <akim@epita.fr>
2799         * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
2800         override some files.
2801         (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
2802         From Debian Autoconf 2.58.
2804 2003-11-24  Akim Demaille  <akim@epita.fr>
2806         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
2807         uses.
2808         From Debian Autoconf 2.58.
2810 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
2812         * TODO: Remove already done things.  Update the part about finding
2813         tools for the target.
2815 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
2817         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
2818         Make wording more consistent.
2819         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
2820         Explain the transition better.
2821         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
2822         the transition better.
2824 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
2826         * doc/autoconf.texi (Obsoleting Macros): Don't document the third
2827         parameter of AU_DEFUN.
2828         * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
2829         (AU_DEFUN): Remove the third parameter, it was not used.
2830         Use AC_DEFUN directly, not AU_DEFINE.
2831         * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
2832         the expanded body, consistently with other macros such as AC_USG.
2834 2003-11-17  Paul Eggert  <eggert@twinsun.com>
2836         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
2837         into the initial confdefs.h, to work around a bug in NextStep 3.3
2838         patch 3 reported by Eric Sunshine.
2840 2003-11-15  Kevin Ryde  <user42@zip.com.au>
2842         * doc/autoconf.texi (Using System Type): Revise, showing $host rather
2843         than $target since the latter is not usual, add guidelines on when to
2844         use or not use the system type.
2846 2003-11-12  Derek Price  <derek@ximbiot.com>
2848         * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
2849         typo misrepaired by an auto-spellcheck.
2851 2003-11-12  Akim Demaille  <akim@epita.fr>
2853         * bin/autoreconf.in (&parse_args): Don't call automake with
2854         --force-missing unless it actually supports it.
2855         From Debian #219336.
2857 2003-11-12  Akim Demaille  <akim@epita.fr>
2859         * configure.ac: Bump to 2.59a.
2860         Require 2.59.
2862 2003-11-06  Akim Demaille  <akim@epita.fr>
2864         Version 2.59.
2866 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
2868         * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
2869         so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
2870         and ac_abs_top_srcdir are absolute paths.
2871         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
2873 2003-11-05  Akim Demaille  <akim@epita.fr>
2875         * configure.ac: Bump to 2.58a.
2877 2003-11-05  Kevin Ryde  <user42@zip.com.au>
2879         * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
2880         it provokes a warning from makeinfo about looking like a cross
2881         reference in info output.
2883         * doc/autoconf.texi (Function Portability): Add notes on signal
2884         handler return type, as per AC_TYPE_SIGNAL.
2886 2003-11-04  Akim Demaille  <akim@epita.fr>
2888         Version 2.58.
2889         * doc/standards.texi: Update from master.
2891         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
2893 2003-11-04  Akim Demaille  <akim@epita.fr>
2895         AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
2896         computing the absolute path to d1 in the source hierarchy: it may
2897         not exist at all.  So don't cd into it.
2898         From Alexandre Duret-Lutz.
2899         http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
2901         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
2902         From Paul Eggert, but named after Perl's IO::Spec->catfile.
2903         * doc/autoconf.texi (Programming in M4sh): Document.
2904         * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
2906 2003-11-03  Pavel Roskin  <proski@gnu.org>
2908         * doc/autoconf.texi (Generic Structure Checks): Describe
2909         action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
2911 2003-10-31  Akim Demaille  <akim@epita.fr>
2913         * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
2914         (GNU Fortran): New.
2915         * doc/autoconf.texi (Language Choice): Document.
2916         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
2917         the current language is Fortran.
2919 2003-10-31  Akim Demaille  <akim@epita.fr>
2921         * bin/autom4te.in (&freeze): Use a less likely warning separator
2922         than `\n\n', so that `\n\n\n' is valid in warnings.
2923         Reported by Steve Huston.
2925 2003-10-28  Akim Demaille  <akim@epita.fr>
2927         * Makefile.cfg (local_updates, executable-update): Tweak to be
2928         robust to parallel makes.
2929         Suggested by Alexandre Duret-Lutz.
2931 2003-10-27  Akim Demaille  <akim@epita.fr>
2933         * Makefile.cfg (executable-update): New.
2934         (local_updates): Call it.
2936 2003-10-27  Akim Demaille  <akim@epita.fr>
2938         * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
2939         Don't remove core.* as it may remove valid user files.
2940         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
2941         (AC_FUNC_UTIME_NULL): Likewise.
2943 2003-10-23  Akim Demaille  <akim@epita.fr>
2945         Version 2.57g.
2946         * config/config.guess, config/config.sub: Upgrade from masters.
2948 2003-10-23  Akim Demaille  <akim@epita.fr>
2950         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
2951         AC_COMPILE_IFELSE that use break skip the clean up.  So do it by
2952         hand...
2954 2003-10-23  Akim Demaille  <akim@epita.fr>
2956         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
2957         Don't forget to remove conftest.err.
2959 2003-10-23  Akim Demaille  <akim@epita.fr>
2961         * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
2962         same object file in $LIBOBJS.
2963         Reported by Alexandre Duret-Lutz & Derek Robert Price.
2964         * doc/autoconf.texi (Generic Functions): Adjust.
2966 2003-10-20  Paul Eggert  <eggert@twinsun.com>
2968         * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
2969         Use 'eval', so that the resulting configure scripts work even if
2970         the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
2972 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
2974         * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
2975         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
2976         (_AC_LINK_IFELSE): Check the werror flag.
2977         * doc/autoconf.texi (Generic Compiler Characteristics): Document
2978         AC_LANG_WERROR.
2979         * NEWS: Mention it.
2981 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
2983         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
2984         _AC_COMPILER_EXEEXT to attempt a link.  If linking fails,
2985         override AC_LINK_IFELSE.
2987 2003-10-15  Paul Eggert  <eggert@twinsun.com>
2989         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
2990         pdksh 5.2.14.  Bug reported by Ralf Corsepius.
2991         * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
2992         Mention /usr/dt/bin/dtksh on Solaris.
2993         (Shell Substitutions): Warn about $((...)).
2994         (Parentheses): New section.
2996 2003-10-15  Kevin Ryde  <user42@zip.com.au>
2998         * doc/autoconf.texi (Function Portability): Add @prindex for exit.
2999         Add putenv and unsetenv.  Add sysconf _SC_PAGE_SIZE.
3001 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
3003         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
3004         cross test.
3006 2003-10-11  Steven G. Johnson  <stevenj@alum.mit.edu>
3008         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
3009         name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
3011 2003-10-10  Andreas Schwab  <schwab@suse.de>
3013         * bin/autoheader.in: Avoid empty first line in --version and
3014         --help output.
3015         * bin/ifnames.in: Likewise.
3017 2003-10-09  Paul Eggert  <eggert@twinsun.com>
3019         * lib/Autom4te/XFile.pm: Don't assume -j is solo.
3020         Issue a more-informative diagnostic.
3021         Problems reported by Eric Sunshine.
3023 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
3025         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
3026         -mGLOB_options_string stuff for Intel ifc, which can cause
3027         _AC_FC_LIBRARY_LDFLAGS to fail.  Use (faster) case for
3028         pattern-matching instead of grep.
3030 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
3032         * doc/autoconf.texi: Document new FC Fortran macros.
3034 2003-10-08  Gary V. Vaughan  <gary@gnu.org>
3036         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
3037         that future autopoint/aclocal/automake/autoreconf will be able
3038         to trace to find where to install local m4 macros.
3039         * doc/autoconf.texi (Input): Document it.
3040         * NEWS: Updated.
3042 2003-10-06  Gary V. Vaughan  <gary@gnu.org>
3044         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
3045         -lcrtbegin.o to list of ignored flags and fix underquoting of
3046         -lcrt[01].o.
3048 2003-10-04  Steven G. Johnson  <stevenj@ab-initio.mit.edu>
3050         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
3051         cache variable instead of $G77 to decide whether to include -O2,
3052         since $G77 is specific to Fortran 77.
3054 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
3056         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
3057         free" flag.  Re-order flags tested into rough order of popularity.
3059 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
3061         * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
3062         arguments so that it can be used with syntax identical to
3063         AC_PROG_F77, and so that we can more easily decide to
3064         remove/deprecate the DIALECT optional argument in the future if it
3065         proves troublesome.
3066         (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
3067         non-freeform-supporting compilers.  Document freeform flags.
3069 2003-10-03  Akim Demaille  <akim@epita.fr>
3071         * configure.ac: Look for emacs, not macs.
3072         Reported by Eric Sunshine.
3074 2003-10-03  Akim Demaille  <akim@epita.fr>
3076         * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
3077         * bin/autoreconf.in (autoreconf_current_directory): Create the
3078         AUX_DIR if needed, for sake of automake --add-missing etc.
3079         Suggested by Alexandre Duret-Lutz.
3081 2003-10-03  Akim Demaille  <akim@epita.fr>
3083         * configure.ac: Quotation and formatting changes.
3084         (EMACS): Don't set it if it is not recent enough to support
3085         autoconf-mode.el.
3086         From Eric Sunshine.
3088 2003-10-02  Akim Demaille  <akim@epita.fr>
3090         * bin/ifnames.in (&scan_file): Skip C++ comments.
3091         From Jeremy Yallop.
3093 2003-10-01  Pavel Roskin  <proski@gnu.org>
3095         * doc/autoconf.texi (Particular Structure Checks):
3096         Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
3098 2003-10-01  Akim Demaille  <akim@epita.fr>
3100         Version 2.57f.
3102 2003-09-30  Paul Eggert  <eggert@twinsun.com>
3104         * lib/Autom4te/XFile.pm: Use Errno.
3105         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
3106         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
3108 2003-09-30  Akim Demaille  <akim@epita.fr>
3110         * config/announce-gen (&print_news_deltas): Extracted from...
3111         (&print_changelog_deltas): here.
3112         (&news_file): Rename as...
3113         (@news_file): this.
3115 2003-09-30  Nicolas Joly  <njoly@pasteur.fr>
3117         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
3118         have been created when invoking the compiler.
3119         * tests/fortran.at (GNU Fortran 77): Quote $G77.
3121 2003-09-29  Akim Demaille  <akim@epita.fr>
3123         Version 2.57e.
3125         * config/mkinstalldirs: Upgrade.
3127 2003-09-28  Paul Eggert  <eggert@twinsun.com>
3129         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
3130         Problem reported by Lars J. Aas in
3131         <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
3132         (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
3133         "test -d ./-p && rmdir ./-p".  Suggested by Andreas Schwab in:
3134         http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
3136 2003-09-26  Akim Demaille  <akim@epita.fr>
3138         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
3139         directory for AC_CONFIG_COMMANDS' first argument exists.
3140         This makes valid the invocation of _AC_SRCPATH that follows.
3141         Reported by Eric Sunshine.
3142         * doc/autoconf.texi (Configuration Commands): Adjust.
3144 2003-09-26  Akim Demaille  <akim@epita.fr>
3146         * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
3147         Reported by Ralf Corsepius.
3149 2003-09-26  Akim Demaille  <akim@epita.fr>
3151         * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
3152         arguments.
3153         Actually, use AU_ALIAS.
3154         From Bruno Haible.
3156 2003-09-26  Paul Eggert  <eggert@twinsun.com>
3158         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
3159         rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
3160         Problem reported by Eric Sunshine in:
3161         http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
3163 2003-09-26  Akim Demaille  <akim@epita.fr>
3165         The test suite are sometimes assigning timings incorrectly.
3166         Reported by Henk Krus.
3167         Diagnosed by Nicolas Joly.
3169         * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
3170         AT_help_all.
3171         Instead of making AT_help a sequence of assignments to grow
3172         $at_help_all, just make AT_help_all be the growing contents of
3173         $at_help_all, and make a single assignment in...
3174         (AT_INIT): here.
3175         (at_times_skip): Flip the meaning and rename as...
3176         (at_times_p): this.
3177         (AT_INIT): When summarizing the test that ran, remove
3178         $at_times_file after use, and check it is present before trying to
3179         use it.
3181 2003-09-25  Akim Demaille  <akim@epita.fr>
3183         Version 2.57d.
3185         * bin/Makefile.am (edit): Handle '@configure_input@'.
3186         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
3187         (ifnames): chmod -w.
3188         * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
3189         executables, not bin/ executables!  Otherwise all the magic needed
3190         to find non installed files is turned off.  This caused a failure
3191         of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
3192         as found in its environment (sent by tests/autoreconf): pointing
3193         to bin/autom4te that could not find its files.
3194         * tests/mktests.sh: Force the replacement of generated files, for
3195         the sake of "mv" program that are interactive when overwriting a
3196         -w file.
3197         * config/install-sh: Upgrade from CVS Automake.
3199 2003-09-23  Paul Eggert  <eggert@twinsun.com>
3201         * doc/autoconf.texi (Limitations of Builtins): Document test -h
3202         versus test -L issues.
3204 2003-09-23  Daniel Jacobowitz  <drow@mvista.com> and
3205             Paul Eggert  <eggert@twinsun.com>
3207         Trivial change to support GCC's configuration procedure.
3208         * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
3209         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
3210         about inconsistency if the preprocessor is set to give errors for
3211         any warning.
3212         * doc/autoconf.texi (C Compiler Characteristics): Document this.
3214 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
3216         * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
3217         and XFile.pm from Automake.
3218         * lib/Autom4te/XFile.pm: Update from Automake.
3220 2003-09-12  Akim Demaille  <akim@epita.fr>
3222         Version 2.57c.
3224 2003-09-12  Akim Demaille  <akim@epita.fr>
3226         * config/config.guess, config/config.sub, config/missing,
3227         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
3228         from masters.
3230 2003-09-12  Akim Demaille  <akim@epita.fr>
3232         * doc/autoconf.texi (Header Portability): Promote linux/types.h,
3233         not asm/types.h.
3235 2003-09-11  Akim Demaille  <akim@epita.fr>
3237         * doc/autoconf.texi (Header Portability): linux/random.h.
3238         From Peter Hendrickson.
3240 2003-09-10  Akim Demaille  <akim@epita.fr>
3242         * tests/mktests.sh (au_exclude_egrep): Make it harder to be
3243         willing to edit the output files.
3245 2003-09-10  Akim Demaille  <akim@epita.fr>
3247         * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
3248         and AC_FC_FREEFORM.
3249         * tests/mktests.sh: Skip AC_FC_SRCEXT.
3250         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
3252 2003-09-09  Akim Demaille  <akim@epita.fr>
3254         * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
3255         Reported by Gary Vaughan.
3256         * bin/autom4te.in (handle_m4): Likewise.
3258 2003-09-09  Akim Demaille  <akim@epita.fr>
3260         * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
3261         trailing files.
3263 2003-09-07  Paul Eggert  <eggert@twinsun.com>
3265         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
3266         Improve the accuracy of the wording about obsolescence.
3267         From a suggestion by Ian Lance Taylor in
3268         <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
3270 2003-09-05  Paul Eggert  <eggert@twinsun.com>
3272         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
3273         for the benefit of g77 3.2.  Fix suggested by Steven G. Johnson.
3275 2003-09-04  Akim Demaille  <akim@epita.fr>
3277         * tests/mktests.sh (ac_exclude_list): Fix the filtering of
3278         AC_FUNC_WAIT3.
3280 2003-09-04  Akim Demaille  <akim@epita.fr>
3282         * bin/autom4te.in: Use &fatal where more appropriate than &error.
3283         (freeze): When exiting, use $exit_code.
3284         * lib/autoconf/fortran.m4: Comment changes.
3286 2003-09-04  Akim Demaille  <akim@epita.fr>
3288         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
3290 2003-09-02  Steven G. Johnson  <stevenj@alum.mit.edu>
3292         Add support for newer Fortran dialects.  The F77 interface is
3293         unchanged, and continues to support Fortran 77.  New FC macros
3294         correspond to all the old F77 macros, with output variables FC,
3295         FCFLAGS, and FCLIBS.  AC_PROG_FC defaults to picking the newest
3296         available dialect, but older dialects can be specified.  There are
3297         new macros AC_FC_SRCEXT to set the source extension, and
3298         AC_FC_FREEFORM to accept free-form source files.
3300         * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
3301         New macros.
3302         (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
3303         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
3304         _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
3305         _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
3306         AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
3307         AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
3308         _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
3309         _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
3310         AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
3311         _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
3312         AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
3313         _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
3314         AC_FC_SRCEXT, AC_FC_FREEFORM):
3315         New macros.
3316         (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
3317         AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
3318         AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
3319         Rewrite in terms of the above.
3320         (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
3321         * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
3322         * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
3323         AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
3325 2003-09-02  Paul Eggert  <eggert@twinsun.com>
3327         * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
3328         Document problems with timestamp resolution that 'make', 'cp -p', and
3329         'touch -r' have.
3331 2003-08-27  Akim Demaille  <akim@epita.fr>
3333         * tests/m4sugar.at (cross_warning): Make sure to enable the
3334         output, so that we can track spurious m4sugar output.
3335         * tests/local.at: Require 2.57.
3336         (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
3337         are defaulted by AT_CHECK anyway.
3338         Use AT_CHECK_AUTOM4TE.
3339         * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
3340         missing dnl.
3342 2003-08-27  Akim Demaille  <akim@epita.fr>
3344         * bin/autoheader.in: Issue the "Using auxiliary..." message only
3345         when -Wobsolete is set.
3346         Set it on by default.
3347         Suggested by Klee Dienes.
3349 2003-08-27  Akim Demaille  <akim@epita.fr>
3351         * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
3352         documentation.
3353         From Guido Draheim.
3355 2003-08-26  Akim Demaille  <akim@epita.fr>
3357         * doc/autoconf.texi (Output): Make clear that one can run code
3358         after AC_OUTPUT.
3360 2003-08-25  Akim Demaille  <akim@epita.fr>
3362         * config/announce-gen, GNUmakefile, Makefile.maint: Update from
3363         CVS Bison.
3365 2003-08-25  Alexandre Duret-Lutz  <adl@gnu.org>
3367         * bin/autoreconf.in (parse_args): Do not pass --no-force to
3368         Automake versions prior to 1.8.
3370 2003-08-25  Akim Demaille  <akim@epita.fr>
3372         * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
3373         From Ville Karaila.
3375 2003-08-24  Akim Demaille  <akim@epita.fr>
3377         * configure.ac: Bump to 2.57c.
3379 2003-08-22  Akim Demaille  <akim@epita.fr>
3381         Version 2.57b.
3383         * Makefile.cfg (local-checks-to-skip): New.
3384         * Makefile.maint (local-check): Rename as...
3385         (local-checks-available): this.
3386         (local-check): New.
3388         * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
3389         * configure.ac: Require Automake 1.7.6.
3391 2003-08-22  Akim Demaille  <akim@epita.fr>
3393         Output stack traces in warnings.
3395         * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
3396         Replace the former...
3397         (m4_warn): Pass the call stack to _m4_warn.
3398         * bin/autom4te.in: Adjust to output the call stack.
3399         * tests/m4sugar.at (m4@&t@_warn): Adjust.
3401 2003-08-22  Akim Demaille  <akim@epita.fr>
3403         * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
3404         * bin/autom4te.in: Adjust.
3406 2003-08-21  Akim Demaille  <akim@epita.fr>
3408         * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
3409         (&verbose): Remove.
3410         (&getopt): Adjust the note and verb channels, depending upon
3411         --verbose.
3412         * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
3413         * bin/autoupdate.in: Adjust.
3414         Use &verb, not &verbose.
3416 2003-08-21  Akim Demaille  <akim@epita.fr>
3418         * bin/autoheader.in (&parse_args): Use &parse_warnings and
3419         &parse_WARNINGS.
3420         ($help): Use Autom4te::ChannelDefs::usage.
3421         * bin/autoscan.in: Use Autom4te::ChannelDefs.
3422         * lib/Autom4te/General.pm: Don't export error: you don't own it.
3424 2003-08-21  Akim Demaille  <akim@epita.fr>
3426         First stab at preserving warnings between calls to autom4te,
3427         including when the cache is used.
3429         There are still several issues: (i) there are too many runs of m4
3430         (one for include, one for warnings, and some more), (ii) warnings
3431         spreading on several lines are not handled gracefully, (iii) the
3432         code meant to have the call stack display for errors does not work
3433         (its handling should move from m4 to autom4te).
3435         * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
3436         Use them.
3437         (@preselect): Add m4_warn.
3438         ($exit_status): Remove, use $exit_code.
3439         ($help): Use Autom4te::ChannelDefs::usage.
3440         (&handle_m4): No longer define the m4_warnings.
3441         At each run, extract and report the warnings.
3442         Always cache the result, including if the exit status is on
3443         failure, since if nothing changes, we should result in the same
3444         failure, hence we can use the cache.
3445         * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
3446         (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
3447         Remove.
3448         (m4_warn): Redefine as a do-nothing: it is its invocation that
3449         matters, as warnings are now reported via traces.
3450         * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
3451         the contents of m4_warn: make it _call_ m4_warn, so that tracing
3452         the latter reveals calls to the former.
3454         Adjust the tests.
3456         * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
3458 2003-08-21  Akim Demaille  <akim@epita.fr>
3460         * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
3461         Use them.
3463 2003-08-21  Akim Demaille  <akim@epita.fr>
3465         * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
3466         forward order.
3467         * lib/Autom4te/ChannelDefs.pm: Doc typos.
3468         (&parse_warnings): Accept a list of warning requests.
3469         (&usage): Return a string, not a side effect.
3470         (cross): New warning category.
3472 2003-08-21  Akim Demaille  <akim@epita.fr>
3474         * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
3475         (&require_configure_ac): Accept an optional directory argument.
3476         ($configure_ac): Remove.
3477         * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
3478         (&catfile): Remove.
3479         * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
3480         * bin/autoscan.in: Adjust.
3482 2003-08-20  Akim Demaille  <akim@epita.fr>
3484         * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
3485         Reported by Alexandre Duret-Lutz.
3487 2003-08-20  Akim Demaille  <akim@epita.fr>
3489         * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
3490         * bin/autom4te: Adjust.
3491         In particular, be Autoconf tools are really silent when properly
3492         working, bind the verbosity of the 'note' channel to $verbose.
3493         * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
3494         (&xsystem, &contents): Remove, since they are exported by...
3495         * lib/Autom4te/FileUtils.pm: this.
3496         More perldoc.
3497         * lib/Autom4te/General.pm (&up_to_date_p): Move to...
3498         * lib/Autom4te/FileUtils.pm: here.
3500 2003-08-20  Akim Demaille  <akim@epita.fr>
3502         * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
3503         * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
3504         from CVS Automake.
3506 2003-08-20  Akim Demaille  <akim@epita.fr>
3508         * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
3509         (autom4te-update): New.
3510         * Makefile.cfg (update): Bind autom4te-update.
3512 2003-08-19  Derek Price  <derek@ximbiot.com>
3514         * lib/autotest/general.m4: Comment various HELP_* diversions.
3515         (PARSE_ARGS_BEGIN): New section for option parsing related
3516         initialization.
3517         (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
3518         package specific options and associated help.
3520 2003-08-19  Akim Demaille  <akim@epita.fr>
3522         * config/announce-gen, Makefile.cfg: New.
3523         * Makefile.am: Adjust.
3524         * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
3526 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
3528         * lib/autom4te.in (Automake-preselections): Preselect
3529         AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
3530         and m4_sinclude.
3532 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
3534         * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
3535         (Autoconf-without-aclocal-m4): ... this new language.
3536         * doc/autoconf.texi (autom4te Invocation): Mention
3537         Autoconf-without-aclocal-m4.
3539 2003-08-18  Derek Price  <derek@ximbiot.com>
3541         * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
3542         RUN-IF-PASS optional arguments.
3544 2003-08-18  Derek Price  <derek@ximbiot.com>
3546         * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
3548 2003-08-16  Derek Price  <derek@ximbiot.com>
3550         * doc/autoconf.texi (Writing testsuite.at): Document defaults for
3551         STDOUT & STDERR arguments.
3553 2003-08-14  Derek Price  <derek@ximbiot.com>
3555         * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
3556         DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
3557         shorter column three.  Add DESCRIPTION to log file content.
3559 2003-08-13  Derek Price  <derek@ximbiot.com>
3561         * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
3562         output.
3564 2003-08-12  Derek Price  <derek@ximbiot.com>
3566         * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
3567         (AT_CHECK_NOESCAPE): Move core functionality to...
3568         (_AT_CHECK): ...this new macro.
3570 2003-08-07  Derek Price  <derek@ximbiot.com>
3572         * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
3573         (AT_CHECK_NOESCAPE): ...to this new macro.
3575 2003-07-31  Paul Eggert  <eggert@twinsun.com>
3577         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
3578         in Bash 2.01.  Problem reported by Brian Gough in
3579         <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
3581 2003-07-25  John W. Eaton  <jwe@bevo.che.wisc.edu>
3583         * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
3584         -lcrt1.o, for OS X.  (trivial change)
3586 2003-07-07  Paul Eggert  <eggert@twinsun.com>
3588         * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
3589         inside '#ifndef __cplusplus'.  Problem reported by
3590         Bob Friesenhahn.
3592 2003-07-06  Bill Clarke  <llib@computer.org>
3594         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
3595         'long', not 'int', for benefit of Sun's recent C++ compilers
3596         (trivial change).  See:
3597         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
3598         (This really should be 'intptr_t', not 'long', but that would
3599         take more work.)
3601 2003-06-25  Akim Demaille  <akim@epita.fr>
3603         * lib/Makefile.am (autom4te.cfg): Make it read only.
3604         Depend on Makefile since it contains substitutions.
3605         From Paolo Bonzini.
3606         * lib/autom4te.in (args): Add local.at? for Autotest args.
3607         This change was made on autom4te.cfg which is generated.
3608         Reported by Raja R. Harinath.
3610 2003-06-25  Akim Demaille  <akim@epita.fr>
3612         * doc/autoconf.texi (Header Portability): sys/mount.h.
3613         From Gareth McCaughan.
3615 2003-06-23  Akim Demaille  <akim@epita.fr>
3617         * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
3618         not all of them.  This fixes 1. the fact that when testing
3619         Autoconf there are many many config.log, 2. the incorrect use of
3620         top_srcdir to find config.log.
3621         Don't mix the detailed output of failed test with the summary of
3622         failures.  Rather, append detailed log afterwards.
3624 2003-06-23  Akim Demaille  <akim@epita.fr>
3626         * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
3627         always run: output config.log on $at_group_log.
3629 2003-06-23  Akim Demaille  <akim@epita.fr>
3631         * tests/torture.at (#define header templates): Don't use quotes in
3632         C++ comments as it puzzles Emacs' sh font-lock-mode.
3634 2003-06-23  Akim Demaille  <akim@epita.fr>
3636         * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
3637         * lib/autom4te.cfg (args): Add local.at? for Autotest args.
3638         * tests/atspecific.m4: Rename as...
3639         * tests/local.at: This.
3640         * tests/suite.at: Move the globals into...
3641         * tests/local.at: here.
3642         * tests/Makefile.am: Adjust.
3643         * doc/autoconf.texi (testsuite Scripts): Adjust.
3645 2003-06-21  Kevin Ryde  <user42@zip.com.au>
3647         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
3648         error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
3649         ensuring we add -std1 for full-ANSI.
3651         * doc/autoconf.texi (hdrindex): New macro.
3652         Add index entries for portability of various standard header files.
3654 2003-06-20  Akim Demaille  <akim@epita.fr>
3656         * configure.ac: Bump to 2.57b.
3658 2003-06-20  Akim Demaille  <akim@epita.fr>
3660         Version 2.57a.
3662 2003-06-20  Akim Demaille  <akim@epita.fr>
3664         * bin/autom4te.in: Don't rely on $HOME being defined.
3665         Reported by Marc Espie as PR/233.
3667 2003-06-20  Akim Demaille  <akim@epita.fr>
3669         * lib/autotest/general.m4: Use at_times_file only if used.
3670         From Nicolas Joly.
3672 2003-06-20  Akim Demaille  <akim@epita.fr>
3674         * config/config.guess, config/config.sub, config/elisp-comp,
3675         * config/install-sh, config/mkinstalldirs, doc/standards.texi:
3676         Update from masters.
3678 2003-06-11  Paolo Bonzini  <bonzini@gnu.org>
3680         * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
3681         * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
3682         (TEST_SCRIPT): New diversion.
3683         (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
3684         (AT_CLEANUP): ...to here.  Undivert TEST_SCRIPT.
3685         (AT_INIT): Support for expected failures.
3687 2003-06-02  Akim Demaille  <akim@epita.fr>
3689         * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
3690         changes.
3691         * lib/Autom4te/General.pm (&backname): Remove, no longer used by
3692         Autoconf nor Automake.
3693         (&contents): New, from Automake.
3694         PODify.
3696 2003-05-28  Paul Eggert  <eggert@twinsun.com>
3698         * NEWS, doc/autoconf.texi (Particular Functions),
3699         lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
3700         is the inverse of localtime.
3702 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
3704         * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
3705         (handle_exec_errors): New function.  Work around $! being
3706         altered by WEXITSTATUS.
3707         (xqx, xsystem): Use handle_exec_errors.
3709 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
3711         * lib/Autom4te/General.pm (END): Rewrite exit code processing.
3712         Do not call `_exit()', simply modify `$?'.
3713         (xsystem): Reset $! before running system, and check it afterward.
3714         * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
3715         63 for version mismatches.
3717 2003-05-23  Akim Demaille  <akim@epita.fr>
3719         * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
3720         Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
3721         the middle of a line).
3722         * lib/m4sugar/m4sugar.m4: Likewise.
3723         Remove useless spaces in comments.
3725 2003-05-23  Akim Demaille  <akim@epita.fr>
3727         * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
3728         exit 63, so that we (or Automake's "missing") can tell the
3729         difference with a plain failure.
3730         * doc/autoconf.texi (Notices): Adjust.
3732 2003-05-23  Akim Demaille  <akim@epita.fr>
3734         * Makefile.am, bin/Makefile.am, config/Makefile.am,
3735         * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
3736         White spaces cleanup.
3738 2003-05-22  Jim Meyering  <jim@meyering.net>
3739             Paul Eggert  <eggert@twinsun.com>
3741         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
3742         Remove `#include <stdlib.h>' from the list; we should never
3743         make confdefs.h include <stdlib.h> or <cstdlib>, because the
3744         resulting namespace pollution would cause other tests to fail.
3745         Configure scripts run with some older versions of g++ and HP's
3746         aCC would fail due to such an #include.  Problems reported by
3747         Matthew Mueller in <http://bugs.debian.org/120704> and by
3748         Keith Bostic in
3749         <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
3750         In the test, use the test declaration before including <stdlib.h>,
3751         as that's closer to how it'll be used.
3753 2003-05-23  Akim Demaille  <akim@epita.fr>
3755         * doc/autoconf.texi (Header Portability): ucred.h.
3756         From Ian Redfern.
3758 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
3760         Overhaul Autotest's logging: generate separate log files
3761         in testsuite.dir/NNN/testsuite.log, and append them to
3762         testsuite.log instead of re-running the test verbosely.
3764         * lib/autotest/general.m4 (AT_INIT): Use a single redirected
3765         file descriptor, write 0 to at_status_file instead of setting
3766         at_status=0, initialize some new variables (at_status_file,
3767         at_group_log, at_suite_log, at_tee_pipe).  Remove the cruft
3768         to rerun the tests, instead append the at_group_log to the
3769         at_suite_log when a test fails.
3770         (AT_SETUP): pipe the test case's output into at_tee_pipe,
3771         with the AS_MESSAGE_LOG_FD redirected to stdout.
3772         (AT_CLEANUP): save the output status in $at_status_file
3773         and restore it, redirect the AS_MESSAGE_LOG_FD back to
3774         its original place.
3775         (AT_CHECK): since tests are run with a redirected stdout,
3776         and used to be re-run in verbose mode, turn some $at_verbose
3777         into echo, and don't redirect the output of testing stdout
3778         and stderr.
3780         * lib/autotest/autoconf.texi (testsuite Scripts): Update
3781         the name of the debugging directory and information about
3782         its contents.
3784 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
3786         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
3787         parameter.
3789 2003-05-22  Akim Demaille  <akim@epita.fr>
3791         * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
3792         * lib/autoconf/fortran.m4 lib/autoconf/general.m4
3793         * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
3794         * lib/autoconf/status.m4: Fix and adjust copyright notices.
3796 2003-05-22  Akim Demaille  <akim@epita.fr>
3798         * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
3799         * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
3800         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
3801         * lib/autoconf/general.m4, lib/autoconf/headers.m4,
3802         * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
3803         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
3804         * lib/autoconf/status.m4, lib/autoconf/types.m4,
3805         * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
3806         * tests/atspecific.m4, tests/base.at, tests/compile.at,
3807         * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
3808         * tests/tools.at, tests/torture.at:
3809         Whitespace clean up.
3810         Suggested by Jim Meyering.
3812 2003-05-22  Akim Demaille  <akim@epita.fr>
3814         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
3815         ' \t' as '\t ' so that Emacs' whitespace.el keep it.
3816         Reported by Jim Meyering.
3818 2003-05-22  Akim Demaille  <akim@epita.fr>
3820         * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
3821         Add AC_HELP_STRING  to the obsolete macros section.
3822         Typos.
3823         Use '@.' for sentences that ended in a capital letter.
3824         From Art Haas.
3826 2003-05-22  Akim Demaille  <akim@epita.fr>
3828         * config/config.guess, config/config.sub, config/elisp-comp,
3829         * config/install-sh, config/mdate-sh, config/mkinstalldirs,
3830         * config/texinfo.tex, doc/standards.texi: Update from masters.
3832 2003-05-21  Paolo Bonzini  <bonzini@gnu.org>
3834         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
3835         it to eval.
3837 2003-05-21  Akim Demaille  <akim@epita.fr>
3839         * bin/autoupdate.in ($m4): Fix quotation.
3840         Reported by Martin Mokrejs.
3842 2003-05-19  Paul Eggert  <eggert@twinsun.com>
3844         * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
3845         Remove non-ASCII characters.
3847 2003-05-18  Paolo Bonzini  <bonzini@gnu.org>
3849         * tests/semantics.at (AC_SEARCH_LIBS): New test.
3850         * tests/semantics.at (AC_CHECK_HEADERS_OLD,
3851         AC_CHECK_HEADERS_NEW): New tests.
3853 2003-05-17  Akim Demaille  <akim@epita.fr>
3855         * lib/autoconf/functions.m4: Use the default includes so that
3856         memcmp be declared before being tested.
3857         Reported by Sander Niemeijer.
3858         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
3859         * doc/autoconf.texi (Default Includes): Document
3860         AC_INCLUDES_DEFAULT.
3862 2003-05-17  Akim Demaille  <akim@epita.fr>
3864         * lib/autoconf/specific.m4: Include signal.h and unistd.h.
3865         * doc/autoconf.texi (Obsolete Macros): Adjust.
3866         Reported by Werner LEMBERG and Debian Bug 190886.
3868 2003-05-16  Akim Demaille  <akim@epita.fr>
3870         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
3871         user name space clashes.
3872         Reported by Bruno Haible.
3874 2003-05-16  Akim Demaille  <akim@epita.fr>
3876         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
3877         * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
3878         them uniform, and more robust to Perl special characters.
3879         Reported by Martin Mokrejs.
3881 2003-05-14  Akim Demaille  <akim@epita.fr>
3883         * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
3885 2003-05-14  Akim Demaille  <akim@epita.fr>
3887         * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
3888         linux/irda.h.
3890 2003-05-12  Akim Demaille  <akim@epita.fr>
3892         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
3893         message.
3894         From Matthias Andree.
3896 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
3898         * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
3899         and truncate.
3901 2003-05-06  Akim Demaille  <akim@epita.fr>
3903         Don't try to be smart with aclocal 1.8+ because (i) aclocal no
3904         longer updates aclocal.m4 if useless, (ii) if a file m4_included
3905         by aclocal.m4 is changed it might require the importing of another
3906         m4 extension file, i.e., aclocal must be run.
3908         * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
3909         (&parse_args): Use --force with aclocal if required and supported.
3910         (&autoreconf_current_directory): Use &run_aclocal.
3912 2003-05-06  Akim Demaille  <akim@epita.fr>
3914         Lock autom4te's cache.
3916         * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
3917         * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
3918         argument instead of a file name, so that the request file remains
3919         open during the whole autom4te run.
3920         ($icache_file): New.
3921         (&freeze): Lock the $icache_file.
3923 2003-04-29  Derek Price  <derek@ximbiot.com>
3925         * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
3926         seperator with m4_append_uniq().  It doesn't work.
3927         (AT_CLEANUP): Add `;' to end of at_help_all.
3928         (AT_INIT): Allow --keywords to be specified more than once.  When
3929         grepping $at_help_all for keywords, use the field and keyword
3930         seperators to ensure a complete keyword match.  Alter at_prev handling
3931         to support the new --keywords behavior.
3933 2003-04-27  Karl Berry  <karl@freefriends.org>
3935         * doc/autoconf.texi: Make the dir entries in the autoconf manual
3936         align better with others.  I also made some of the individual
3937         entries on one line, for brevity and to make it easier for me to
3938         sort my dir-example file in the Texinfo distribution :).
3940 2003-04-12  Jim Meyering  <jim@meyering.net>
3942         * NEWS: Mention the new macro.
3943         * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
3944         * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
3945         * tests/c.at: Test AC_C_RESTRICT.
3946         * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
3948 2003-04-08  Akim Demaille  <akim@epita.fr>
3950         * bin/ifnames.in: Skip C++ comments.
3951         From Jeremy Yallop.
3953 2003-04-08  Akim Demaille  <akim@epita.fr>
3955         * GNUmakefile (SHELL): Don't assume sh is in /bin/.
3956         From Ilya Zakharevich.
3958 2003-04-08  Akim Demaille  <akim@epita.fr>
3960         * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
3961         net/if.h, stdlib.h.
3963 2003-04-01  Derek Price  <derek@ximbiot.com>
3965         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
3966         from Akim's checkin of 2003-03-29.
3968 2003-04-01  Derek Price  <derek@ximbiot.com>
3970         * tests/torture.at (Configuring subdirectories): Add missing
3971         close-quote for Akim's change from 2003-03-28.
3973 2003-04-01  Akim Demaille  <akim@epita.fr>
3975         * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
3976         (AC, AT, MS): these.
3977         (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
3978         New.
3979         Use them.
3980         * doc/Makefile.am (CLEANFILES): Adjust.
3981         (TEXI2DVI): Make it --batch.
3983 2003-03-31  Derek Price  <derek@ximbiot.com>
3985         * lib/autotest/general.m4: Revert the checkin from 2003-03-27
3986         which removed the main loop.
3987         Thanks to Akim Demaille.
3989 2003-03-29  Akim Demaille  <akim@epita.fr>
3991         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
3992         that starts a GUI.
3993         From Ilya Zakharevich.
3995 2003-03-29  Akim Demaille  <akim@epita.fr>
3997         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
3998         documentation to read is Autoconf's.
3999         Suggested by Paul Eggert.
4001 2003-03-28  Akim Demaille  <akim@epita.fr>
4003         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
4004         reading the section "Present But Cannot Be Compiled" when the
4005         header causes problems.
4007 2003-03-28  Akim Demaille  <akim@epita.fr>
4009         * tests/torture.at (Configuring subdirectories): Require aclocal
4010         1.4, otherwise the test fails, as it does support configure.ac.
4011         This fixes the "test 40 failed" bug reports.
4013 2003-03-28  Akim Demaille  <akim@epita.fr>
4015         * doc/autoconf.texi (C Compiler): `#line' portability.
4016         From Paul Eggert and Nelson H. F. Beebe.
4018 2003-03-27  Derek Price  <derek@ximbiot.com>
4020         * lib/autotest/general.m4: Eliminate main loop and reorganize test
4021         layout in order to allow scripting around test groups.
4023 2003-03-27  Derek Price  <derek@ximbiot.com>
4025         * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
4026         HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
4027         use new diversions in preparation for accepting new arguments and
4028         allowing scripting around tests.
4029         (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
4031 2003-03-26  Derek Price  <derek@ximbiot.com>
4033         * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
4034         obsolete AC_HELP_STRING.
4035         (AC_HELP_STRING): AU_DEFUN to...
4036         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
4037         * tests/m4sh.at (AS_HELP_STRING): New test.
4039         * tests/acgeneral.at: Regenerated.
4041 2003-03-26  Derek Price  <derek@ximbiot.com>
4043         * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
4044         sense.  Verbosify the diversion definitions comment.
4046 2003-03-26  Derek Price  <derek@ximbiot.com>
4048         * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
4049         AS_PREPARE.
4051 2003-03-21  Eric Siegerman  <eric_97@pobox.com>
4053         * doc/autoconf.texi (Present But Cannot Be Compiled):
4054         Grammar fixes and minor rewording. (trivial change)
4056 2003-03-06  Paul Eggert  <eggert@twinsun.com>
4058         Work around a problem noted by Nelson H. F. Beebe with coreutils
4059         4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
4060         2002/05/09) rejects '#line 32768 "configure"' because the line
4061         number overflows.
4062         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
4063         #line directives.
4064         * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
4065         * doc/autoconf.texi (Generating Sources): Document this.
4067 2003-03-01  Richard Dawe  <rich@phekda.freeserve.co.uk>
4069         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
4070         file name for the m4 program, when it has an "exe" file extension.
4071         DJGPP's error messages include the error code in brackets -
4072         remove the error code during normalization.
4074 2003-02-28  Akim Demaille  <akim@epita.fr>
4076         * doc/autoconf.texi (Present But Cannot Be Compiled): New.
4078 2003-02-28  Alexandre Duret-Lutz  <adl@gnu.org>
4080         * doc/autoconf.texi (Limitations of Make): Remove the section
4081         about `$<' in inference rules, it was a bogus interpretation of
4082         an old Automake change.  Discuss NetBSD, FreeBSD, OpenBSD, and
4083         Tru64 make in the "target lookup" section.
4084         (Automake): Automake 1.5+ no longer requires special tools to be
4085         present on the developer's host.
4087 2003-02-26  Richard Dawe  <rich@phekda.freeserve.co.uk>
4089         * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
4090         to a shell that can handle redirection or quoting correctly.
4091         Override SHELL with the shell detected by configure.
4092         Use of $^O suggested by Tim van Holder.
4093         * bin/autom4te.in (BEGIN): Likewise.
4094         * bin/autoreconf.in (BEGIN): Likewise.
4095         * bin/autoscan.in (BEGIN): Likewise.
4096         * bin/autoupdate.in (BEGIN): Likewise.
4097         * bin/ifnames.in (BEGIN): Likewise.
4099         * bin/ifnames.in: Add final newline to help and version messages.
4101         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
4102         to cope with DOS-style absolute paths, when constructing
4103         ${ac_make}.
4105         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
4106         When constructing paths with IFS=:, quote the path. If we're
4107         constructing a DOS-style absolute path, we don't want to split it
4108         on the colon.
4110         * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
4111         in description.
4113 2003-02-25  Pavel Roskin  <proski@gnu.org>
4115         * bin/autoheader.in: Add missing newline when printing
4116         suggestion how change AC_DEFINE call.
4118 2003-02-24  Paul Eggert  <eggert@twinsun.com>
4120         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
4121         2002-09-01 patch by replacing "test -n" with "test -z".
4122         This fixes a bug found by Jeff Painter and reported by Tom Epperly in
4123         <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
4125         * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
4126         to fix a mismatch between example and discussion.
4128 2003-02-24  Kevin Ryde  <user42@zip.com.au>
4130         * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
4131         format starting with "-".
4133 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
4135         * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
4136         is not portable inside Makefile.
4138 2003-02-20  Akim Demaille  <akim@epita.fr>
4140         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
4141         compiler says yeah, but preproc says nope, compiler is right.
4142         Conversely, prompt the reader to send a bug report to the
4143         maintainers of the package, not of Autoconf.
4145 2003-02-20  Klee Dienes  <kdienes@apple.com>
4147         * bin/autoreconf.in (autoreconf_current_directory): Properly
4148         handle an empty aclocal.m4.
4150 2003-02-20  Akim Demaille  <akim@epita.fr>
4152         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
4153         $ac_prefix_program.
4154         From Larry Jones.
4156 2002-12-23  Paul Eggert  <eggert@twinsun.com>
4158         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
4159         innocuous variant befor including <limits.h> or <assert.h>.  This
4160         works around a bug reported by Albert Chin: HP-UX 11i
4161         (and earlier versions) have a <limits.h> that declares
4162         gettimeofday and many other functions.
4164 2002-12-03  Paul Eggert  <eggert@twinsun.com>
4166         Version 2.57.
4168         * NEWS, configure.ac: Update version.
4170         * doc/fdl.texi: Upgrade to FDL version 1.2.
4172         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
4173         nontrivially in main's body, so that f's external declaration is
4174         not optimized away in AIX.  This should fix the bug reported by
4175         Martin Frydl in
4176         <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
4178         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
4179         _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
4180         defined, to support freestanding compilers.  This should fix the
4181         bug reported by Momchil Velkov in
4182         <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
4184         * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
4185         arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
4186         obsolete AC_CHECK_TYPE.  The missing empty arg was reported
4187         by Simon Josefsson in
4188         <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
4190         * Makefile.maint (www-gnu): New macro.
4191         (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
4192         the location has moved.
4194 2002-12-02  Martin Frydl  <martin@systinet.com>
4196         * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
4197         \(.*\) match is too long and there is something more to be checked.
4198         <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
4200 2002-11-15  Akim Demaille  <akim@epita.fr>
4202         Version 2.56.
4204         * config/install-sh: chmod +x.
4205         From Paul Eggert.
4206         * config/move-if-change: Indenting changes.
4207         * Makefile.am (AUTOMAKE_OPTIONS): Move to...
4208         * configure.ac (AM_INIT_AUTOMAKE): here.
4209         Require 1.7.1.
4211 2002-11-14  Akim Demaille  <akim@epita.fr>
4213         Version 2.55.
4215         * config/config.guess, config/config.sub, config/install-sh:
4216         Update from masters.
4218 2002-11-14  Akim Demaille  <akim@epita.fr>
4220         * Makefile.maint: Sync with Bison, i.e.:
4221         (po-check): Scan .l and .y files instead of the
4222         .c and the .h files that they generate.  This fixes the bug
4223         reported by Tim Van Holder in:
4224         <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
4225         Look for N_ as well as for _.  Try to avoid matching #define for
4226         N_ and _.
4227         From Paul Eggert.
4229 2002-11-14  Akim Demaille  <akim@epita.fr>
4231         * doc/autoconf.texi (C Compiler): Compiling several files at once.
4232         From Paul Eggert and Albert Chin-A-Young.
4234 2002-11-14  Akim Demaille  <akim@epita.fr>
4236         * doc/autoconf.texi (C Compiler): Solitary backslashes.
4237         From Paul Eggert and Albert Chin-A-Young.
4239 2002-11-14  Kevin Ryde  <user42@zip.com.au>
4241         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
4242         than assigning in main, to avoid HP cc +O3 optimizing it away.
4244 2002-11-12  Peter Eisentraut  <peter_e@gmx.net>
4246         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
4247         option.  Process --recheck after parsing all options.  Pass -q
4248         option to configure on --recheck.
4249         (AC_OUTPUT): Pass -q from configure to config.status.
4250         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
4251         arguments to record.
4252         * doc/autoconf.texi (config.status Invocation): Document
4253         config.status -q option.
4255 2002-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
4257         * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
4258         Makefile.in if Makefile.am exists.
4259         (output): Strip `.am' from Makefiles.  Don't
4260         output AC_CONFIG_FILES if no Makefiles were found.
4262 2002-11-07  Akim Demaille  <akim@epita.fr>
4264         * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
4265         (local_updates): New.
4266         * Makefile.maint: Update, from CVS Bison.
4267         (local_updates): New.
4269 2002-11-06  Akim Demaille  <akim@epita.fr>
4271         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
4272         declaration in extern "C" too.
4273         Reported by Roberto Bagnara.
4275 2002-11-06  Akim Demaille  <akim@epita.fr>
4277         * tests/torture.at (Configuring subdirectories): Don't use grep
4278         -w.
4279         * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
4280         Reported by Ezra Peisach.
4282 2002-11-05  Akim Demaille  <akim@epita.fr>
4284         * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
4285         Remove.
4286         We _have_ to stop using the old compatibility scheme that tried to
4287         avoid useless backslashes because Libtool 1.4.3 contains a
4288         AC_DEFINE([error_t], [int],
4289         [Define to a type to use for \`error_t' if it is not
4290         otherwise available.])
4291         We _have_ to quote the single quote and backslashes with \.  The
4292         old compatibility scheme saw that ` was backslashed, and therefore
4293         did not quote the single quote.  Hence before this patch, Autoconf
4294         was not compatible with Libtool.
4296 2002-11-04  Paul Eggert  <eggert@twinsun.com>
4298         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
4299         too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
4300         LC_NAME, LC_PAPER, LC_TELEPHONE.
4301         * doc/autoconf.texi (Special Shell Variables): Mention those vars.
4303 2002-11-04  Akim Demaille  <akim@epita.fr>
4305         Version 2.54c.
4307         * Makefile.maint (update, cvs-update, po-update, do-po-update):
4308         New.
4309         * config/texinfo.tex: Update.
4311 2002-11-03  Akim Demaille  <akim@epita.fr>
4313         * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
4314         from...
4315         (&autoreconf): here.
4316         ($help, $make, &parse_args, &autoreconf_current_directory):
4317         Support -m/--make.
4318         * doc/autoconf.texi (autoreconf Invocation): Adjust.
4320 2002-10-31  Bruno Haible  <bruno@clisp.org>
4322         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
4323         Change name of cache variable to ac_cv_func_malloc_0_nonnull.
4324         (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
4325         (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
4326         to ac_cv_func_realloc_0_nonnull.
4327         (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
4329 2002-10-31  Akim Demaille  <akim@epita.fr>
4331         The test suite was no longer checking for trailing envvars and files.
4333         * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
4334         (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
4336 2002-10-31  Akim Demaille  <akim@epita.fr>
4338         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
4339         `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
4340         Make variable, not a shell variable.
4341         Suggested by Bruno Haible.
4343 2002-10-31  Akim Demaille  <akim@epita.fr>
4345         * bin/autom4te.in (load_configuration): Reject #args out of any
4346         language.
4348 2002-10-31  Akim Demaille  <akim@epita.fr>
4350         * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
4351         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
4352         (_AC_RUN_IFELSE): Use it.
4353         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
4354         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
4355         * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
4356         inline it.
4358 2002-10-30  Akim Demaille  <akim@epita.fr>
4360         * bin/autom4te.in (&parse_args, $help): Support --no-cache.
4361         * doc/autoconf.texi (autom4te Invocation): Adjust.
4362         Suggested by Tim van Holder.
4364 2002-10-29  Paul Eggert  <eggert@twinsun.com>
4366         * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
4367         AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
4368         Problem reported by Bruno Haible.
4370 2002-10-29  Akim Demaille  <akim@epita.fr>
4372         * doc/autoconf.texi (Header Templates): Put also in words what the
4373         pictures says to assist free style readers.
4374         (Customizing autom4te): s/--cache=/--cache /.
4376 2002-10-29  Akim Demaille  <akim@epita.fr>
4378         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
4379         sys/wait.h.
4380         sparc_address_test returns void.
4381         Use it with an argument, as prototyped.
4382         From Bruno Haible.
4384 2002-10-29  Akim Demaille  <akim@epita.fr>
4386         * doc/autoconf.texi (Subdirectories): Cygnus dirs have
4387         configure.in, not configure.ac.
4388         Reported by Bruno Haible.
4390 2002-10-29  Akim Demaille  <akim@epita.fr>
4392         * tests/torture.at (Deep Package): New test.
4393         (Configuring subdirectories): Don't use a testSubDir as Autotest
4394         now does it itself.
4396 2002-10-29  Akim Demaille  <akim@epita.fr>
4398         * bin/autoreconf.in (&parse_args, $help): Support --warnings.
4399         * doc/autoconf.texi (Invoking autom4te): Rename as...
4400         (autom4te Invocation): this, for consistency with the other nodes.
4402 2002-10-29  Akim Demaille  <akim@epita.fr>
4404         * lib/autom4te.in (Autoconf): s/automate/autom4te/.
4405         Reported by Ralf Corsepius.
4407 2002-10-29  Akim Demaille  <akim@epita.fr>
4409         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
4410         characters is a back as an `obsolete' warning now.
4411         Reported by Ralf Corsepius.
4413 2002-10-28  Akim Demaille  <akim@epita.fr>
4415         * configure.ac: Bump to 2.54c.
4417 2002-10-28  Akim Demaille  <akim@epita.fr>
4419         Version 2.54b.
4421         * tests/foreign.at (Libtool): Adjust to broken libtoolize.
4423 2002-10-28  Akim Demaille  <akim@epita.fr>
4425         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
4426         m4 executable names, and different GNU M4 version.
4427         Reported by Ezra Peisach and Paul Jarc.
4429 2002-10-27  Akim Demaille  <akim@epita.fr>
4431         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
4432         AC_RUN_IFELSE.
4434 2002-10-27  Akim Demaille  <akim@epita.fr>
4436         * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
4437         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
4438         Die when a simple Fortran program cannot be compiled.
4439         * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
4440         Issue a warning if no function is given.
4442 2002-10-27  Akim Demaille  <akim@epita.fr>
4444         * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
4445         Move the documentation of AC_TRY_RUN to...
4446         (Obsolete Macros): here.
4447         Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
4448         (autoconf Invocation): Remove the duplicates with `invoking
4449         autom4te'.
4450         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
4451         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
4453 2002-10-27  Akim Demaille  <akim@epita.fr>
4455         * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
4456         and AC_LANG_FUNC_LINK_TRY.
4457         (Examining Libraries): Rename as...
4458         (Running the Linker): this.
4459         Document AC_LINK_IFELSE.
4460         Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
4461         (Obsolete Macros): here.
4462         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
4463         AC_TRY_LINK_FUNC nor AC_TRY_LINK.
4464         * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
4465         * lib/autoconf/headers.m4 (AC_USG): Likewise.
4467 2002-10-27  Akim Demaille  <akim@epita.fr>
4469         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
4471         More `check config.log' messages.
4473         * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
4474         * doc/autoconf.texi (Printing Messages): Document it.
4475         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
4476         appropriate.
4477         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
4478         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
4479         (_AC_COMPILER_OBJEXT): Likewise.
4480         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
4481         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
4482         Likewise.
4483         * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
4484         Likewise.
4486         Deprecate macros with unusual interfaces.
4488         * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
4489         (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
4491         Document the new ones, and proper style.
4493         * doc/autoconf.texi (Generating Sources): New.
4494         Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
4495         (Examining Declarations): Rename as...
4496         (Running the Preprocessor): this.
4497         Document AC_PREPROC_IFELSE.
4498         (Examining Syntax): Rename as...
4499         (Running the Compiler): this.
4500         (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
4501         (Obsolete Macros): Move the definition of AC_TRY_CPP and
4502         AC_TRY_COMPILE here.
4504 2002-10-27  Akim Demaille  <akim@epita.fr>
4506         Move sections around.
4508         * doc/autoconf.texi (Customizing autom4te): Remove a lost
4509         sentence.
4510         Reported by Burno Haible.
4511         (Language Choice): Now the first section of...
4512         (Writing Tests): this section.
4513         Make the introduction less C-centric.
4514         (Guidelines, Test Functions): Move to...
4515         (Writing Test Programs): this new section.
4516         (Test Programs): Merge into...
4517         (Run Time): this.
4519 2002-10-27  Akim Demaille  <akim@epita.fr>
4521         * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
4522         autom4te.in that resulted in the need for two `make' runs.
4524 2002-10-27  Akim Demaille  <akim@epita.fr>
4526         * configure.ac: Bump to 2.54b.
4528 2002-10-25  Akim Demaille  <akim@epita.fr>
4530         Version 2.54a.
4532         * Makefile.maint: Update from the Coreutils.
4533         (AMTAR): Remove, obsolete.
4534         (automake_repo): Update to redhat.com.
4535         (cvs_file): New.
4536         Adjust to the fact that ansi2knr is now hosted by Automake.
4537         * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
4538         * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
4539         Update from masters.
4540         * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
4541         autoscan.pre is not to be installed, and autoscan.list is not to
4542         be shipped.
4543         (CLEANFILES): Add autoscan.list.
4544         (autoscan.list): Disable the cache.
4545         * bin/Makefile.am: Include freeze.mk.
4547 2002-10-25  Akim Demaille  <akim@epita.fr>
4549         * bin/autom4te.in (&load_configuration): Take the file as
4550         argument.
4551         (&parse_args): Handle -C, --cache.
4552         ($help): Adjust.
4553         (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
4554         * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
4555         * doc/autoconf.texi (Invoking autom4te): Document --cache.
4556         Now a subsection of...
4557         (Using autom4te): This new section.
4558         (Customizing autom4te): New.
4559         (autom4te.cache): Adjust.
4561 2002-10-25  Akim Demaille  <akim@epita.fr>
4563         * doc/autoconf.texi (Generic Headers): More information on how to
4564         use AC_CHECK_HEADERS.
4566 2002-10-25  Akim Demaille  <akim@epita.fr>
4568         * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
4569         Space changes.
4571 2002-10-25  Akim Demaille  <akim@epita.fr>
4573         * bin/autoscan.in (output): Output AC_PREREQ.
4574         (%needed_macros): Add AC_PREREQ so that configure.ac without one
4575         be reported.
4577 2002-10-23  Akim Demaille  <akim@epita.fr>
4579         * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
4580         document _Bool.
4582 2002-10-23  Akim Demaille  <akim@epita.fr>
4584         * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
4585         Reported by Peter Eisentraut.
4587 2002-10-23  Akim Demaille  <akim@epita.fr>
4589         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
4590         type _Bool.
4591         Fix a typo.
4592         * doc/autoconf.texi (Particular Headers): Adjust according to Paul
4593         Eggert's recommandations.
4595 2002-10-22  Akim Demaille  <akim@epita.fr>
4597         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
4598         Bison, by Paul Eggert.
4599         * doc/autoconf.texi (Particular Headers): Document it.
4601 2002-10-22  Aaron M. Ucko  <amu@alum.mit.edu>
4603         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
4604         `$ac_configure_args'.
4606 2002-10-22  Akim Demaille  <akim@epita.fr>
4608         * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
4609         (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
4610         From Art Haas.
4612 2002-10-22  Akim Demaille  <akim@epita.fr>
4614         Restore the 2002-10-11  Akim Demaille  <akim@epita.fr> patch:
4616         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
4617         (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
4618         (_AC_CHECK_HEADER_NEW): Rename as...
4619         (AC_CHECK_HEADER): this.
4621 2002-10-22  Akim Demaille  <akim@epita.fr>
4623         * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
4624         words about HP-UX cmp: it was actually a user-written cmp.
4626 2002-10-22  Akim Demaille  <akim@epita.fr>
4628         * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
4629         are a few warnings.
4630         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
4631         Quote for Perl '' strings, not "".
4632         * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
4633         strings.
4635 2002-10-22  Akim Demaille  <akim@epita.fr>
4637         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
4638         characters is a syntax warning now.
4639         (_AS_QUOTE): Accept $2 as list of characters to quote.
4640         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
4641         Quote for Perl, not sh.
4642         * bin/autoheader.in: When $debug, report the file which is
4643         `do'ne.
4644         * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
4645         `@', to tickle Perl's lists.
4646         Reported by Carlos Velasco.
4648 2002-10-18  Akim Demaille  <akim@epita.fr>
4650         * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
4651         missing included files _are_ errors.
4652         Thanks to Alexandre Duret-Lutz.
4653         * tests/tools.at (autom4te cache): Adjust.
4654         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
4655         (AT_CHECK_M4SUGAR): Use it.
4656         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
4657         Adjust.
4658         * tests/tools.at (autom4te): Now it does exit 1.
4660 2002-10-17  Akim Demaille  <akim@epita.fr>
4662         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
4663         Fixes the `AC_ARG_VAR' test failures.
4664         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
4665         * lib/freeze.mk (check-forbidden-patterns): New.
4666         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
4667         * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
4668         * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
4669         /dev/null.
4670         Reported months ago by H. Merijn Brand.
4672 2002-10-17  Akim Demaille  <akim@epita.fr>
4674         * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
4676 2002-10-16  Paul Eggert  <eggert@twinsun.com>
4678         * Makefile.maint (wget_files): Remove ansi2knr.c.
4679         (ansi2knr.c-url_prefix): Remove.
4681 2002-10-16  Akim Demaille  <akim@epita.fr>
4683         Because of caching, some files that no longer exist and are no
4684         longer required can still cause errors.
4685         Reported by Alexandre Duret-Lutz.
4687         * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
4688         to frozen files in @ARGV, as @ARGV must remain being a list of
4689         files.  Rather, at M4 call sites, use this...
4690         (&files_to_options): New function.
4691         (&freeze): Use &error.
4692         (&up_to_date): If a file that was included according to the cache
4693         is no longer there, then the output is out dated.
4694         (&main): Don't even check whether a file is up to date is anyway
4695         --force is given.
4696         * tests/tools.at (autom4te cache): New.
4698 2002-10-16  Akim Demaille  <akim@epita.fr>
4700         * bin/autoconf.as: Kill dead options.
4701         * bin/autoupdate.in (&parse_args): Kill old options.
4702         * bin/autoreconf.in (&parse_args): Remove dead options.
4703         Factor some code.
4704         (&autoreconf): Report the directories we enter *and leave*, so
4705         that error messages can be easily located, and use GNU Make
4706         format, so that Emacs' compile mode understands us.
4707         * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
4708         if some file was changed instead of `print'.
4709         * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
4710         (&parse_args): Remove the dead options.
4711         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
4712         autoheader's quiet mode.
4713         (AT_CHECK_AUTOUPDATE): Likewise.
4714         * tests/tools.at (autoupdate): Adjust.
4715         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
4717 2002-10-11  Akim Demaille  <akim@epita.fr>
4719         No longer use CPP to check for the existing of headers: use CC to
4720         check for compilability.
4722         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
4723         (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
4724         (_AC_CHECK_HEADER_NEW): Rename as...
4725         (AC_CHECK_HEADER): this.
4727         * lib/autotest/general.m4 (AT_INIT): Include the failed test
4728         numbers in the Subject suggestion.
4730 2002-10-11  Akim Demaille  <akim@epita.fr>
4732         * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
4733         Suggest using AC_CHECK_DECLS instead.
4735 2002-10-11  Akim Demaille  <akim@epita.fr>
4737         * tests/torture.at (AC_ARG_VAR): Have configure report the value
4738         of `precious'.
4740 2002-10-11  Akim Demaille  <akim@epita.fr>
4742         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
4743         file name to enable parallel executions.
4744         From Sam Varshavchik.
4746 2002-10-08  Akim Demaille  <akim@epita.fr>
4748         * bin/autoreconf.in (&autoreconf): Run autopoint before the first
4749         aclocal invocation, as Gettext macros might not be visible to
4750         aclocal.
4751         Instead of blindly running autopoint, scan configure.ac (not the
4752         traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
4753         Reported by Paul D. Smith.
4755 2002-10-08  Paul Eggert  <eggert@twinsun.com>
4757         Work around problems found when POSIXLY_CORRECT=1 is set.
4758         None of this seems to have anything to do with POSIX, really,
4759         but it's how Perl getopt works.
4760         * bin/autom4te.in (parse_args): Configure GetOpt with
4761         "permute", too.
4762         * doc/autoconf.texi (Invoking autom4te):
4763         --warning -> --warnings.
4764         * lib/autom4te.in: --warning -> --warnings.
4766 2002-09-28  Akim Demaille  <akim@epita.fr>
4768         * doc/autoconf.texi (autom4te.cache): New section.
4770 2002-09-28  Akim Demaille  <akim@epita.fr>
4772         * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
4773         (Automake-preselections): Update.
4774         * bin/autoreconf.in, bin/autoheader.in: Comment changes.
4776 2002-09-28  Akim Demaille  <akim@epita.fr>
4778         * lib/autoscan/autoscan.pre: Move all the remaining rules to...
4779         * lib/autoconf/c.m4, lib/autoconf/functions.m4,
4780         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
4781         * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
4783 2002-09-28  Akim Demaille  <akim@epita.fr>
4785         * tests/torture.at (Configuring subdirectories): Be robust to
4786         users who use config.site to require for a cache: in this case,
4787         the two last configure runs, using two different sets of
4788         arguments, trigger a legitimate error.
4790 2002-09-28  Akim Demaille  <akim@epita.fr>
4792         * tests/m4sh.at (Functions Support, Functions and return Support):
4793         New.
4795 2002-09-28  Akim Demaille  <akim@epita.fr>
4797         * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
4798         autoheader are Perl programs.
4799         (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
4800         (autom4te): Specify that the sources are in the $srcdir.
4801         * doc/autoconf.texi (Installation Directory Variables): Adjust.
4803 2002-09-28  Akim Demaille  <akim@epita.fr>
4805         * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
4806         (tm_zone): Move their rules to...
4807         * lib/autoconf/types.m4: here, using AN_ macros.
4808         * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
4809         (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
4810         (make, mawk, nawk, ranlib, yacc): Similarly, move to...
4811         * lib/autoconf/programs.m4: here.
4812         * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
4813         (ETAGS_FOR_AUTOCONF): New.
4814         Use it.
4816 2002-09-28  Akim Demaille  <akim@epita.fr>
4818         * lib/autoconf/autoscan.m4: New file.
4819         * lib/autoconf/autoconf.m4: Include it.
4820         * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
4821         that were listed in the original autoscan.list.
4822         * lib/autoconf/headers.m4: Similarly with headers.
4823         * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
4824         (.m4.m4f): Don't pass --prepend-include, since that's done by
4825         tests/autom4te itself.
4826         * lib/autoscan/Makefile.am: Include freeze.mk.
4827         (autoscan.list): New target --this file is no longer a source.
4828         (autoscan.pre): New file.
4830 2002-09-28  Akim Demaille  <akim@epita.fr>
4832         * bin/autoscan.in (@kinds): Make them singular.
4833         Adjust all uses.
4834         (&init_tables): When --debug, report the list of rules to ease
4835         tracking changes in autoscan.list.
4836         * lib/autoscan/autoscan.list (function): Strip comments, sort.
4838 2002-09-28  Akim Demaille  <akim@epita.fr>
4840         * lib/autoscan/functions, lib/autoscan/headers,
4841         * lib/autoscan/identifiers, lib/autoscan/makevars,
4842         * lib/autoscan/programs: Merge into...
4843         * lib/autoscan/autoscan.list: this.
4844         * bin/autoscan.in (&init_tables): Adjust.
4846 2002-09-28  Akim Demaille  <akim@epita.fr>
4848         * lib/autoscan/functions, lib/autoscan/headers,
4849         * lib/autoscan/identifiers, lib/autoscan/makevars,
4850         * lib/autoscan/programs: Make the `kind' explicit, i.e., each
4851         `functions' line is now prefixed with `function:'.
4852         * bin/autoscan.in (&init_tables): Adjust.
4854 2002-09-28  Akim Demaille  <akim@epita.fr>
4856         From now on, autoscan files must always map a macro name to a
4857         word: there is no `default' macro for autoscan.
4859         * bin/autoscan.in (&init_tables): Reject entries with no macro at
4860         all.
4861         * lib/autoscan/functions, lib/autoscan/headers: Make the macro
4862         explicit.
4864 2002-09-28  Akim Demaille  <akim@epita.fr>
4866         * bin/autoscan.in (%c_keywords): Remove.
4867         (&used): Keep only track of the words we might be interested in.
4868         (&output_kind): It is no longer needed to look for non active
4869         checks.
4871 2002-09-27  Akim Demaille  <akim@epita.fr>
4873         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
4874         jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
4875         * lib/autoscan/functions: Adjust.
4876         * doc/autoconf.texi (Particular Functions): Adjust.
4878 2002-09-27  Akim Demaille  <akim@epita.fr>
4880         * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
4881         from /tmp.
4882         Thanks to Bill Moseley and Paul Eggert.
4883         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
4884         the tmpdir must be created.
4885         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
4886         dir be in the build tree, instead of $TMPDIR.
4888 2002-09-27  Akim Demaille  <akim@epita.fr>
4890         * bin/autoscan.in: Improve the comments.
4891         (&parse_args): Drop obsolete undocumented options.
4892         (&output_kind): Output warnings.
4893         * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
4894         (getwd): Trigger a warning.
4896 2002-09-26  Akim Demaille  <akim@epita.fr>
4898         * bin/autoreconf.in: Clarify that -s is meaningless without -i.
4899         Reported by Ralf Corsepius.
4900         * doc/autoconf.texi (autoreconf Invocation): Likewise.
4902 2002-09-26  Akim Demaille  <akim@epita.fr>
4904         Single suffix rules and seperated dependencies are not portable.
4906         * doc/autoconf.texi (Installation Directory Variables): Update.
4907         (Limitations of Make): Some about `Single Suffix Rules and
4908         Separated Dependencies'.
4909         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
4910         (ifnames, autoscan, autom4te): Un-factor into several rules.
4912 2002-09-25  Paul Eggert  <eggert@twinsun.com>
4914         * BUGS (Interoperability bugs): New section.  Mention libtool
4915         1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
4917 2002-09-24  Paul Eggert  <eggert@twinsun.com>
4919         Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
4920         make handles suffix-rules differently from GNU make.
4922         * bin/Makefile.am (SUFFIXES, .in): Remove.
4923         (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
4924         Move the body of the old .in rule here.
4926 2002-09-16  Akim Demaille  <akim@epita.fr>
4928         i960 compilers create `b.out' files by default.
4929         Reported by Ralf Corsepius.
4931         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
4932         (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
4934 2002-09-13  Paul Eggert  <eggert@twinsun.com>
4936         * doc/autoconf.texi (Particular Headers): Remove obsolete
4937         reference to `struct timezone' in the description of
4938         AC_HEADER_TIME.
4940 2002-09-13  Akim Demaille  <akim@epita.fr>
4942         Version 2.54.
4944         * config/config.sub, config/config.guess: Update.
4945         * Makefile.maint: Update from bits of the Coreutils 4.5.1.
4946         * Makefile.am: Adjust.
4948 2002-09-13  Akim Demaille  <akim@epita.fr>
4950         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
4951         reading config.log when the compiler is rejected.
4952         Suggested by Guido Draheim.
4954 2002-09-13  Akim Demaille  <akim@epita.fr>
4956         * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
4957         (chdir_init) might hang when stat'ing mounted directories.
4958         Reported by Vance Shipley.
4960 2002-09-12  Akim Demaille  <akim@epita.fr>
4962         * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
4963         the lists.
4965 2002-09-12  Akim Demaille  <akim@epita.fr>
4967         * doc/autoconf.texi (Defining Symbols): Present two different
4968         prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
4969         difference between 1 argument calls, and 2-3 argument calls.
4971 2002-09-12  Peter Eisentraut  <peter_e@gmx.net>
4973         * doc/autoconf.texi: Review grammar and punctuation.
4975 2002-09-11  Paul Eggert  <eggert@twinsun.com>
4977         * doc/autoconf.texi: Fix minor formatting, spelling, and
4978         grammatical typos.
4979         (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
4980         AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
4981         is obsolescent.
4983 2002-09-11  Akim Demaille  <akim@epita.fr>
4985         * doc/autoconf.texi (Questions): Rename as...
4986         (FAQ): this.
4987         (Defining Directories): New.
4989 2002-09-09  Akim Demaille  <akim@epita.fr>
4991         * doc/autoconf.texi (Making testsuite Scripts): Update.
4992         Suggested by Nishio Futoshi.
4994 2002-09-09  Koji Arai  <JCA02266@nifty.ne.jp>
4996         * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
4997         plain `@' is wanted.
4999 2002-09-09  Akim Demaille  <akim@epita.fr>
5001         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
5002         `duplicates', since the algorithm was too naive and could keep
5003         `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
5004         keep `--prefix foo --prefix bar' as `--prefix foo bar'.
5005         Reported by Ralf Corsepius.
5006         * tests/torture.at (Configuring subdirectories): Exercise these
5007         cases.
5009 2002-09-09  Akim Demaille  <akim@epita.fr>
5011         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
5012         looking for a replacement file.
5013         * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
5014         directory is relative.
5015         * doc/autoconf.texi (Generic Functions): Clarify the replacement
5016         directory definition.
5017         Reported by Andreas Schwab and Jim Meyering.
5019 2002-09-06  Akim Demaille  <akim@epita.fr>
5021         * doc/autoconf.texi (Setting Output Variables): Clarify what
5022         precious variables are.
5023         Suggested by Pontus Skoeld.
5025 2002-09-05  Akim Demaille  <akim@epita.fr>
5027         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
5028         (ifnames, autoscan, autom4te): Since we don't only depend on
5029         configure.ac variables (such as VERSION etc.), but also on prefix
5030         and so forth, depend on Makefile, not configure.ac.
5031         Reported by Alexandre Duret-Lutz.
5032         * doc/autoconf.texi (Installation Directory Variables): Adjust.
5034 2002-09-05  Kevin Ryde  <user42@zip.com.au>
5036         * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
5037         doesn't seem to be confined to ia64, just say "some versions".
5039 2002-09-04  Akim Demaille  <akim@epita.fr>
5041         * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
5042         Automake 1.6c.
5043         * Makefile.am (maintainer-clean-local): Remove.
5044         (MAINTAINERCLEANFILES): Remove COPYING.
5046 2002-09-03  Paul Eggert  <eggert@twinsun.com>
5048         * doc/autoconf.texi (Configuration Commands): Remove obsolete
5049         example for AC_CONFIG_COMMANDS_PRE.  Problem reported by Marcus
5050         Brinkmann.
5052 2002-09-03  Akim Demaille  <akim@epita.fr>
5054         * configure.ac: Bump to 2.53d.
5055         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
5056         as of today, on Automake's team suggestion.
5058 2002-09-03  Akim Demaille  <akim@epita.fr>
5060         Version 2.53c.
5062 2002-09-02  Akim Demaille  <akim@epita.fr>
5064         * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
5065         SITE_MACRO_DIR.
5066         * configure.ac: Disable SITE_MACRO_DIR.
5068 2002-09-02  Jim Meyering  <meyering@lucent.com>
5070         * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
5071         i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
5072         Also, tweak grammar: s/make sure to/be sure to/.
5074 2002-09-02  Paul Eggert  <eggert@twinsun.com>
5076         * doc/autoconf.texi (Limitations of Builtins): Explain why logical
5077         directory names are generally preferable to physical names.
5079 2002-09-02  Akim Demaille  <akim@epita.fr>
5081         * lib/Autom4te/General.pm (&update_file): s/die/error/.
5082         Reported by Raja R. Harinath.
5083         * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
5084         * bin/autoupdate.in: Use error instead of die.
5086 2002-09-01  Paul Eggert  <eggert@twinsun.com>
5088         * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
5089         ordinary shell concatenation rather than echo+tr+sed command that
5090         runs afoul of a long-line-related sed bug in Solaris 8.
5092         * bin/autoheader.in (parse_args): --warning -> --warnings.
5094         * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
5095         stdout, as traditional "ls" does.
5096         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
5097         _AC_COMPILER_EXEEXT_O): Likewise.
5098         * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
5100         * bin/autoconf.as: Add --prepend-include option.  This patch was
5101         applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
5102         but bin/autoconf.in is generated automatically from bin/autoconf.as.
5104         * bin/autoconf.in, configure: Regenerate.
5106         * doc/autoconf.texi (Special Shell Variables): Mention
5107         ENV, MAIL, MAILPATH, PS1, PS2, PS4.  Index PWD.
5109         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
5110         MAILPATH and set PS1, PS2, PS4 to default values, to work
5111         around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
5112         For LC_ALL etc, first try to set to "C" as POSIX requires and as
5113         the Autoconf documentation specifies; fall back to "unset" only if
5114         this fails.  Use a shell for-loop for this rather than an m4 loop,
5115         to shorten the output script.
5117 2002-08-30  Paul Eggert  <eggert@twinsun.com>
5119         * doc/autoconf.texi (Special Shell Variables): Mention POSIX
5120         1003.1-2001's requirements for CDPATH.  Give a simpler workaround
5121         for the CDPATH problem.  Document PWD.
5122         (Limitations of Builtins): Document the problem that "cd $foo" and
5123         "ls $foo" may refer to different directories in shells conforming
5124         to POSIX 1003.1-2001.  Use PS1 rather than CDPATH for "unset"
5125         example, since the old example is now out of date.
5127         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
5128         FOO" and "ls FOO" talk about different directories; this catches
5129         problems when POSIX 1003.1-2001 "cd" fails due to symlink
5130         spaghetti.
5132         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
5133         of rolling our own unset.
5134         (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
5135         in practice we needn't worry about CDPATH if unset doesn't work.
5137         * Makefile.in, aclocal.m4, bin/Makefile.in,
5138         config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
5139         lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
5140         lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
5141         lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
5142         tests/Makefile.in: Regenerate with Automake 1.6.3.
5144         * config/config.guess, config/config.sub, config/mkinstalldirs:
5145         Update.
5147         * configure: Regenerate with self.
5149 2002-08-30  Kevin Ryde  <user42@zip.com.au>
5151         * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
5152         default output.
5154 2002-08-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5156         * bin/autom4te.in (Request::load): Correctly test for "do" read
5157         failure.
5159 2002-08-29  Akim Demaille  <akim@epita.fr>
5161         * lib/Autom4te/General.pm (&xqx): New.
5162         (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
5163         hand, which is not portable.
5164         (&error): New.
5165         * bin/autom4te.in: Use them.
5166         Use &error instead of die.
5167         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
5168         Adjust.
5170 2002-08-17  Paul Eggert  <eggert@twinsun.com>
5172         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
5173         default list of compilers to try, since it was long ago superseded
5174         by the ksh fc builtin.  Suggested by Steven G. Johnson.
5176 2002-07-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
5178         * doc/autoconf.texi (Invoking autom4te): End the option table,
5179         fixing a bug introduced by the previous patch.
5180         (Limitations of Make): Add a 'target lookup' subentry in the
5181         'VPATH' entry.  Rewrite all `make' occurences as `@command{make}'.
5183 2002-07-29  Mark D. Roth  <roth@feep.net>
5185         * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
5186         options and use $AUTOM4TE_PATH.
5187         * doc/autoconf.texi: Remove documentation of autom4te
5188         --include-envvar and --site-macro-subdir options and document
5189         use of $AUTOM4TE_PATH.
5190         * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
5191         arguments from each language section.
5193 2002-07-29  Paul Eggert  <eggert@twinsun.com>
5195         * doc/install.texi: Include copyright symbol in copyright notice.
5197         * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
5198         Replace with:
5199         (AM_MAKEINFOFLAGS): New macro.
5200         * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
5201         * Makefile.am (INSTALL): Use the new macros.
5202         Use -o rather than --output, since "missing" does not grok --output.
5204 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
5206         * doc/autoconf.texi (Limitations of Make): Escaped newlines in
5207         comments do not always work. Never trust the exit status of
5208         `make -k'.
5210 2002-07-24  Kevin Ryde  <user42@zip.com.au>
5212         * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
5213         Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
5215 2002-07-23  Paul Eggert  <eggert@twinsun.com>
5217         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
5218         Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
5219         apparently treats PATH="nonexistent" as if it contained ".".
5220         Bug reported by Stefan `Sec' Zehl.
5222 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
5224         * doc/autoconf.texi (Limitations of Make): Mention the special
5225         handling of the obj/ directory by BSD make.
5227 2002-07-20  Kevin Ryde  <user42@zip.com.au>
5229         * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
5230         backslashes.
5232 2002-07-19  Akim Demaille  <akim@epita.fr>
5234         * doc/autoconf.texi (Function Portability): `exit'.
5235         (Programming in M4sh): Ethymology of M4sh.
5237 2002-07-19  Akim Demaille  <akim@epita.fr>
5239         * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
5241 2002-07-18  Akim Demaille  <akim@epita.fr>
5243         Version 2.53b.
5245 2002-07-18  Akim Demaille  <akim@epita.fr>
5247         * config/config.guess, config/config.sub: Update.
5249 2002-07-18  Akim Demaille  <akim@epita.fr>
5251         Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
5252         Automake's parts.
5254         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
5255         * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
5256         * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
5258 2002-07-18  Akim Demaille  <akim@epita.fr>,
5259             Alexandre Duret-Lutz  <duret_g@epita.fr>
5261         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
5262         _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
5264 2002-07-17  Russ Allbery  <rra@stanford.edu>
5266         * doc/autoconf.texi (Initializing configure): Clarify the
5267         description of the tarname default.
5269 2002-07-17  Andreas Buening  <andreas.buening@nexgo.de>
5271         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
5272         ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
5273         latter was not run.
5275 2002-07-17  Akim Demaille  <akim@epita.fr>
5277         * lib/Autom4te/General.pm (find_file): Browse the directories in
5278         the order they are given.
5280 2002-07-17  Akim Demaille  <akim@epita.fr>
5282         * tests/wrapsh.as, tests/wrappl.as: Merge into...
5283         * tests/wrapper.as: this.
5284         * tests/Makefile.am, configure.ac: Adjust.
5286 2002-07-17  Mark D. Roth  <roth@feep.net>
5288         * configure.ac: Add --enable-site-macro-dir option.
5289         * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
5290         * bin/autom4te.in: Add --prepend-include, --include-envvar, and
5291         --site-macro-subdir options.
5292         * bin/autoconf.in: Add --prepend-include option.
5293         * bin/autoheader.in: Add --prepend-include option.
5294         * bin/autoreconf.in: Add --prepend-include option.
5295         * bin/autoscan.in: Add --prepend-include option.
5296         * bin/autoupdate.in: Add --prepend-include option.
5297         * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
5298         macro directory, remove note that include path directories are
5299         used in reverse order, and document --prepend-include option.
5300         * lib/autom4te.in: Use --prepend-include instead of --include.
5301         * tests/wrapsh.in: Use --prepend-include instead of --include.
5303 2002-07-17  Akim Demaille  <akim@epita.fr>
5305         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
5306         tarnames.
5307         * doc/autoconf.texi (Initializing configure): Adjust.
5309 2002-07-17  Akim Demaille  <akim@epita.fr>
5311         * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
5312         (_AC_FUNC_MALLOC): New.
5313         (AC_FUNC_MALLOC): Use the latter.
5314         Define HAVE_MALLOC to 0 if broken.
5315         * doc/autoconf.texi (Particular Functions): Adjust.
5317 2002-07-16  Akim Demaille  <akim@epita.fr>
5319         * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
5320         * doc/autoconf.texi (C Compiler): Adjust.
5322 2002-07-09  Akim Demaille  <akim@epita.fr>
5324         * doc/autoconf.texi: Properly set the ``header'' part.
5326 2002-07-09  Akim Demaille  <akim@epita.fr>
5328         * doc/autoconf.texi (Systemology): Some about Darwin.
5330 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
5332         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
5333         Don't use AC_REQUIRE in AU_DEFUN.
5335 2002-07-09  Art Haas  <ahaas@neosoft.com>
5337         * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
5339 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
5341         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
5342         bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
5343         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
5344         so that Emacs setups GNU style for perl-mode and cperl-mode.
5346 2002-06-27  Paul Eggert  <eggert@twinsun.com>
5348         * config/install-sh: Quote $src.  Prefer || to test's -o option,
5349         as per "Limitations of Builtins".
5350         * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
5351         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
5353         * tests/mktests.sh: Use grep instead of fgrep, as per
5354         "Limitations of Builtins".
5356 2002-06-15  Paul Eggert  <eggert@twinsun.com>
5358         * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
5359         autom4te_perllibdir): Set to top build dir or src dir as appropriate,
5360         so that we consistently test the just-built programs.
5361         * tests/wrappl.as: Likewise.
5363 2002-06-12  Paul Eggert  <eggert@twinsun.com>
5365         * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
5366         name, so that symlinks to 'autoconf' work properly.  Bug reported
5367         by Bruno Haible.
5368         * bin/autoheader.in (AUTOM4TE): Likewise.
5369         * bin/autoreconf.in (autoconf, autoheader): Likewise.
5370         * bin/autoscan.in (autom4te): Likewise.
5371         * bin/autoupdate.in (autom4te): Likewise.
5373         * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
5374         btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
5375         on Solaris 2.5.1.
5377 2002-06-11  Andreas Schwab  <schwab@suse.de>
5379         * doc/autoconf.texi: Add more dir entries.
5381 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
5383         * bin/autom4te.in ($cache): Don't define using `$me', the name
5384         of the cache should not depend on the name under which autom4te
5385         was installed.
5387 2002-06-07  Akim Demaille  <akim@epita.fr>
5389         * tests/tools.at (autoconf: forbidden tokens, basic)
5390         (autoconf: forbidden tokens, exceptions): Adjust to the change of
5391         words in autom4te.in.
5393 2002-06-07  Peter Eisentraut  <peter_e@gmx.net>
5395         * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
5396         _AC_LANG_PROGRAM_C_F77_HOOKS.
5398 2002-06-07  Akim Demaille  <akim@epita.fr>
5400         * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
5401         rename as...
5402         (AC_REPLACE_FNMATCH): this.
5403         * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
5404         AC_FUNC_FNMATCH_GNU.
5406 2002-06-07  Akim Demaille  <akim@epita.fr>
5408         * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
5409         Rosetta Stone for Unix.
5411 2002-06-07  Akim Demaille  <akim@epita.fr>
5413         * bin/autom4te.in (warn_forbidden): When rejecting a token,
5414         suggest m4_pattern_allow.
5415         Suggested by Adam J. Richter.
5417 2002-06-07  Akim Demaille  <akim@epita.fr>
5419         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
5420         ac_config_libobj_dir.
5421         (AC_CONFIG_LIBOBJ_DIR): New.
5422         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
5423         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
5424         Use ac_config_libobj_dir to find the replacement files.
5425         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
5426         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
5427         (AC_REPLACE_FNMATCH_GNU): these.
5428         (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
5429         * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
5430         * tests/mktests.sh (ac_exclude_list): Don't check
5431         AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
5433 2002-06-06  Paul Eggert  <eggert@twinsun.com>
5435         * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
5436         if ln doesn't work.
5437         * NEWS: Likewise.
5438         * doc/autoconf.texi (Configuration Links): Likewise.
5439         (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
5441 2002-06-05  Paul Eggert  <eggert@twinsun.com>
5443         * config/config.guess, config/config.sub, config/texinfo.tex:
5444         Update from masters.
5446 2002-05-29  Paul Eggert  <eggert@twinsun.com>
5448         * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
5449         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
5450         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
5451         Likewise.
5452         * lib/autoconf/Makefile.am (check-local): Likewise.
5453         * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
5454         * lib/autoconf/types.m4 (commentary only): Likewise.
5455         * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
5456         * lib/autotest/Makefile.am (check-local): Likewise.
5457         * lib/m4sugar/Makefile.am (check-local): Likewise.
5458         * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
5459         * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
5461         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
5462         * doc/autoconf.texi (Particular Programs): Document them.
5463         (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
5464         * NEWS: Likewise.
5466 2002-05-27  Paul Eggert  <eggert@twinsun.com>
5468         * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
5469         * NEWS, doc/autoconf.texi (Particular Types): Document it.
5470         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
5471         instead of AC_MBSTATE_T, which never existed.
5473 2002-05-23  Akim Demaille  <akim@epita.fr>
5475         * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
5476         version of Autoconf that is discussed.
5478 2002-05-22  Paul Eggert  <eggert@twinsun.com>
5480         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
5481         from the default list of compilers to try.  Suggested by
5482         Kate Hedstrom.
5483         * NEWS: Document the above.
5484         * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
5486 2002-05-17  Paul Eggert  <eggert@twinsun.com>
5488         * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
5489         the member is itself an aggregate.  Bug reported by Sergey Poznyakoff.
5490         This improves on an earlier suggestion by H. Peter Anvin.
5492 2002-05-16  Paul Eggert  <eggert@twinsun.com>
5494         AC_FUNC_FNMATCH now tests only for POSIX compatibility.
5495         AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
5496         Both macros now accept an optional source-dir arg.
5497         New macro AC_GNU_SOURCE to define _GNU_SOURCE.
5499         * NEWS: Document this.
5500         * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
5502         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
5503         (AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
5504         not for GNU extensions; this undoes part of the 2000-11-03 change,
5505         reverting to 2.13-compatible behavior.
5506         Add new optional argument DIR.
5507         (AC_FUNC_FNMATCH_GNU): New macro.
5509         * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
5511 2002-05-08  Paul Eggert  <eggert@twinsun.com>
5513         * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
5514         Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
5515         and it causes a 'test' syntax error if it fails.
5516         Bug reported by Stephen Gildea.
5518         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
5519         If prototypes are supported, use them to check this at compile-time,
5520         instead of trying to check it at run-time.  If we must do a run-time
5521         check, assume that setvbuf is standard when cross-compiling, as
5522         nonstandard setvbuf occurs only on ancient and unlikely hosts.
5523         Bug reported by Paul D. Smith.
5525         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
5526         argument specifying location of getloadavg.c.  This removes a
5527         FIXME.  This idea was taken from Jim Meyering's implementation in
5528         textutils.
5529         * doc/autoconf.texi (Particular Functions): Document this.
5530         Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
5531         that's what the code does; this fixes a bug reported by
5532         Paul D. Smith.
5534 2002-05-03  Akim Demaille  <akim@epita.fr>
5536         * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
5537         autopoint instead of gettextize.
5538         ($uses_alocal): Rename as...
5539         ($uses_aclocal): this.
5540         * doc/autoconf.texi (autoreconf Invocation): Adjust.
5541         Suggested by Bruno Haible.
5543 2002-05-03  Akim Demaille  <akim@epita.fr>
5545         * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
5547 2002-04-29  Paul Eggert  <eggert@twinsun.com>
5549         * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
5550         files to be 1 second older; just set them to be the same time.
5551         Also, sleep 1 second after the first aclocal, to work around
5552         problems with sub-second time stamps on the input files.
5554 2002-04-29  Thien-Thi Nguyen  <ttn@gnu.org>
5556         * doc/autoconf.texi: Mention "set -e -x" lossage
5557         under node "Limitations of Builtins".
5559 2002-04-29  Akim Demaille  <akim@epita.fr>
5561         * doc/install.texi: Better wording for setting variables when
5562         running configure.
5563         From Christian Cornelssen.
5565 2002-04-29  Akim Demaille  <akim@epita.fr>
5567         * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
5568         of lack of $LINENO support, then the test will compare the $LINENO
5569         in testsuite vs. the lineno in the test file.  This is wrong, of
5570         course.
5571         Be sure to protect it.
5572         Reported by Patrick Welche.
5574 2002-04-25  Akim Demaille  <akim@epita.fr>
5576         * doc/autoconf.texi (Obsolete Macros): Typo.
5577         Reported by Vladimir Volovich.
5579 2002-04-25  Akim Demaille  <akim@epita.fr>
5581         * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
5582         than some of the input files, hence, on the second run of aclocal,
5583         if some of its input are younger, make them older.
5584         Suggested by Paul Eggert.
5586 2002-04-25  Akim Demaille  <akim@epita.fr>
5588         * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
5589         Thanks to Paul Eggert.
5591 2002-04-25  Akim Demaille  <akim@epita.fr>
5593         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
5594         and ac_subst_vars be sh variables containing the list of
5595         AC_SUBST_FILES'ed and AC_SUBST'ed identifiers.  Output them in the
5596         DEFAULT diversion.
5597         (_AC_INIT_PREPARE): Use them to log them.
5598         (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
5599         (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
5600         _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
5601         _AC_SUBST_FILES and _AC_SUBST_VARS.
5602         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
5604 2002-04-24  Akim Demaille  <akim@epita.fr>
5606         * bin/autoreconf.in (autoreconf): Run automake after autoconf and
5607         autoheader, so that automake does not complain about a missing
5608         config.h.in that was to be created.
5610 2002-04-23  Akim Demaille  <akim@epita.fr>
5612         * bin/autoheader.in (parse_args): --warning takes an argument.
5613         Fixes PR/220.
5615 2002-04-22  Peter Eisentraut  <peter_e@gmx.net>
5617         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
5618         and bb.out when cleaning up.
5620 2002-04-22  Akim Demaille  <akim@epita.fr>
5622         Version 2.53a.
5624 2002-04-22  Akim Demaille  <akim@epita.fr>
5626         * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
5628 2002-04-22  Akim Demaille  <akim@epita.fr>
5630         * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
5631         comma.
5632         Reported by Gregory Giannoni.
5634 2002-04-22  Akim Demaille  <akim@epita.fr>
5636         * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
5637         Fixes false failures on Darwin.
5639 2002-04-21  Paul Eggert  <eggert@twinsun.com>
5641         * TODO, bin/autoupdate.in, doc/autoconf.texi,
5642         lib/autoconf/general.m4, lib/autoconf/libs.m4,
5643         lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
5644         tests/tools.at: Minor spelling and grammar fixes.
5646 2002-04-20  Paul Eggert  <eggert@twinsun.com>
5648         * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
5649         ZSH_VERSION fixes.  Bug reported by Raja R Harinath.
5650         * lib/autotest/general.m4 (AT_INIT): Likewise.
5651         * tests/atgeneral.m4 (AT_INIT): Likewise.
5653 2002-04-19  Paul Eggert  <eggert@twinsun.com>
5655         * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
5656         doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
5657         lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
5658         lib/autoconf/functions.m4, lib/autoconf/general.m4,
5659         lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
5660         lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
5661         tests/atspecific.m4, tests/semantics.at, tests/torture.at:
5662         Minor spelling and grammar fixes.
5664         * doc/autoconf.texi: Follow the outline suggested in the GNU
5665         Sample Texts sections of the Texinfo 4.2 manual.  Most
5666         importantly, this makes sure that the copyright notices appear in
5667         all output formats.  You probably need Texinfo 4.2 to generate
5668         the manual now.
5670         Fix some bugs when using "$@" when there might be zero positional
5671         arguments in cases where this matters.
5673         * bin/autoconf.as: Rewrite so that the problem does not come up.
5674         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
5675         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
5676         * lib/autotest/general.m4 (AT_INIT): Likewise.
5678         * bin/autoheader.in: Use 'case' statement to work around problem.
5679         * bin/auto4mte.in: Likewise.
5680         * bin/autoreconf.in: Likewise.
5681         * bin/autoscan.in: Likewise.
5682         * bin/autoupdate.in: Likewise.
5683         * bin/ifnames.in: Likewise.
5685         * doc/autoconf.texi (Shell Substitutions): Document the problem.
5687         * lib/autotest/general.m4 (AT_INIT):
5688         Use Zsh alias to work around problem.
5689         * tests/atgeneral.m4 (AT_INIT): Likewise.
5691         * tests/c.at: We can't have zero arguments, so remove workaround
5692         that is not portable to Zsh.
5694 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
5696         * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
5697         from aclocal.m4 too.
5699 2002-04-12  Akim Demaille  <akim@epita.fr>
5701         * tests/wrappl.as: New, M4sh precursor of wrappl.in.
5703 2002-04-10  Akim Demaille  <akim@epita.fr>
5705         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
5706         workaround for ${1+"$@"}.
5707         * doc/autoconf.texi (Shell Substitutions): Explain it.
5708         From Oliver Kiddle and Peter Stephenson.
5710         Have M4sh perform minimal shell sanitizing.
5712         * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
5713         part into...
5714         (_AS_PREPARE): this new macro.
5715         (AS_PREPARE): New.
5716         (AS_INIT): Invoke AS_SHELL_SANITIZE.
5717         * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
5719         Adjust Autoconf and Autotest.
5721         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
5722         AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
5723         * lib/autotest/general.m4 (AT_INIT): Likewise.
5724         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
5725         Invoke _AS_PREPARE (not AS_PREPARE) in addition to
5726         AS_SHELL_SANITIZE.
5728         Use this M4sh to generate Autoconf's shell scripts.
5730         * tests/wrapsh.as: New, precursor of wrapsh.in.
5731         * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
5732         on Autotest and M4sh.
5733         ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
5734         (wrapsh.in): New target.
5735         * bin/autoconf.as: New, precursor of autoconf.in.
5736         (autoconf.in): New target.
5738 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
5740         * doc/autoconf.texi (Limitations of Make): Mention the issue
5741         with indented comments in rules.
5743 2002-04-09  Andreas Schwab  <schwab@suse.de>
5745         * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
5746         ac_top_builddir when setting ac_abs_top_builddir.
5748 2002-04-06  Kevin Ryde  <user42@zip.com.au>
5750         * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
5751         (Portable Shell): Cross reference to Systemology.
5753 2002-04-05  Akim Demaille  <akim@epita.fr>
5755         * bin/autoreconf.in (autoreconf): Be sure to accumulate the
5756         directories when descending in a SUBDIRS.
5757         Reported by Ezra Peisach.
5759 2002-04-04  Andreas Schwab  <schwab@suse.de>
5761         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
5762         contains no literal separators.
5764 2002-04-03  Akim Demaille  <akim@epita.fr>
5766         * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
5767         (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
5768         Use dnl, not the KILL diversion.
5769         Extracted from...
5770         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
5771         (AC_CONFIG_LINKS): here.
5772         Adjust.
5773         Don't use the KILL diversion, as it kills spurious output, which
5774         results in failures being hidden.
5775         Use m4_defn where appropriate.
5776         (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
5777         after the second argument.
5778         Use m4_defn.
5779         * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
5780         syntax, as it is provided by M4sugar.
5781         * tests/torture.at (Multiple AC_CONFIG_FILES): New.
5783 2002-04-03  Andreas Schwab  <schwab@suse.de>
5785         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
5786         expanded if $# <= 2.
5788         * bin/autoreconf.in (autoreconf): Run automake after rerunning
5789         aclocal.
5791 2002-04-03  Akim Demaille  <akim@epita.fr>
5793         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
5794         (_AC_COMPILER_EXEEXT_REJECT): New.
5795         Also recognize *.bb and *.bbg as compilation byproducts.
5796         (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
5797         (_AC_COMPILER_OBJEXT): Use them.
5798         Fixes Debian #138666.
5800 2002-04-02  Peter Eisentraut  <peter_e@gmx.net>
5802         Integrate AC_PROG_CC_STDC into AC_PROG_CC.
5804         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
5805         AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
5806         (AC_PROG_CC): Call _AC_PROG_CC_STDC.
5807         (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
5808         (AC_C_CONST): Same.
5809         (AC_C_INLINE): Same.
5810         (AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
5811         * doc/autoconf.texi, NEWS: Document.
5812         * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
5813         AC_C_CROSS.
5815 2002-04-02  Akim Demaille  <akim@epita.fr>
5817         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
5818         _AS_MKDIR_P_PREPARE.
5820 2002-03-28  Kevin Ryde  <user42@zip.com.au>
5822         * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
5823         to avoid versions of HP C which don't allow that.
5825 2002-03-27  Paul Eggert  <eggert@twinsun.com>
5827         * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
5828         (AS_SHELL_SANITIZE): Invoke it.
5829         (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
5831 2002-03-26  Akim Demaille  <akim@epita.fr>
5833         * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
5835 2002-03-26  Akim Demaille  <akim@epita.fr>
5837         * doc/autoconf.texi (Introduction): The GNATS base moved.
5839 2002-03-25  Paul Eggert  <eggert@twinsun.com>
5841         * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
5842         as POSIX requires, as it doesn't work with Zsh.
5843         * doc/autoconf.texi (Assignments): Document the problem.
5845 2002-03-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
5847         * doc/autoconf.texi (Limitations of Make): Mention more issue
5848         about VPATH, overriding of macros in sub-makes, and handling of
5849         SHELL.
5851 2002-03-21  Paul Eggert  <eggert@twinsun.com>
5853         * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
5854         problem with here-document buffer boundaries.
5856         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
5857         when reinvoking the shell, to work around problems with installers
5858         who put strange things like "cd" commands in their environments.
5860 2002-03-19  Akim Demaille  <akim@epita.fr>
5862         * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
5863         From Aaron Ucko.
5865 2002-03-19  Akim Demaille  <akim@epita.fr>
5867         * bin/autoscan.in (scan_file): Specify the location in `&used'
5868         invocations.
5869         From Nicolas Joly.
5871 2002-03-19  Akim Demaille  <akim@epita.fr>
5873         * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
5874         From Nishio Futoshi.
5876 2002-03-19  Akim Demaille  <akim@epita.fr>
5878         * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
5880 2002-03-18  Paul Eggert  <eggert@twinsun.com>
5882         * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
5883         (Limitations of Usual Tools): Add mkdir section.
5885         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
5886         (AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
5887         back on AS_DIRNAME to compute prefixes otherwise; this is
5888         roughly what mkinstalldirs does.  That way, we need not have
5889         our own filename disassembler.  The old disassembler did not
5890         work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
5892         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
5893         Create at_test_all by a series of assignments,
5894         not by a single assignment of a long string.  The latter causes ksh
5895         version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
5896         presumably because of a buffer overrun.
5898 2002-03-14  Paul Eggert  <eggert@twinsun.com>
5900         * lib/autotest/general.m4 (at_times_skip):
5901         Renamed from at_times.  Now a boolean.
5902         ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
5903         says 'times: not found'.
5905 2002-03-14  Akim Demaille  <akim@epita.fr>
5907         * bin/autoreconf.in (&study_gettextize): New.
5908         (&autoreconf): Handle newest gettextize.
5909         Rerun aclocal if needed.
5910         Suggested by Andreas Schwab.
5912 2002-03-13  Akim Demaille  <akim@epita.fr>
5914         * doc/autoconf.texi (Special Shell Variables): More about IFS.
5916 2002-03-13  Akim Demaille  <akim@epita.fr>
5918         * doc/autoconf.texi (Header Portability): New.
5919         Add information about stdint.h and inttypes.h from Paul Eggert.
5921 2002-03-13  Akim Demaille  <akim@epita.fr>
5923         * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
5924         -p'.
5925         From Bob Proulx.
5927 2002-03-12  Akim Demaille  <akim@epita.fr>
5929         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
5930         m4_require.
5932 2002-03-11  Andreas Schwab  <schwab@suse.de>
5934         * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
5935         does not do it if --with-lispdir is given.
5937 2002-03-08  Akim Demaille  <akim@epita.fr>
5939         Version 2.53.
5941 2002-03-08  Akim Demaille  <akim@epita.fr>
5943         * doc/autoconf.texi (Subdirectories): Clarify that the
5944         subdirectory should exist.
5946 2002-03-08  Akim Demaille  <akim@epita.fr>
5948         * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
5950 2002-03-08  Akim Demaille  <akim@epita.fr>
5952         * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
5953         aliases the actual variables, and modifications of the former
5954         affect the latter.
5956 2002-03-08  Akim Demaille  <akim@epita.fr>
5958         * bin/autom4te.in (&handle_m4): Protect us from corrupted file
5959         because of C-c: have m4 output in tmp files, then mv them.
5961 2002-03-08  Akim Demaille  <akim@epita.fr>
5963         * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
5964         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
5965         * bin/ifnames.in: Copyright update.
5967 2002-03-08  Akim Demaille  <akim@epita.fr>
5969         * doc/autoconf.texi (Invoking autom4te): New.
5971 2002-03-05  Akim Demaille  <akim@epita.fr>
5973         * doc/autoconf.texi (Specifying Names): Clarification suggested by
5974         Kevin Ryde.
5976 2002-03-05  Akim Demaille  <akim@epita.fr>
5978         Version 2.52i.
5980 2002-03-04  Akim Demaille  <akim@epita.fr>
5982         * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
5983         * lib/autoconf/general.m4 (AC_INIT): More informative error
5984         message for LIBOBJ.
5986 2002-03-04  Akim Demaille  <akim@epita.fr>
5988         * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
5989         parallel builds.
5991 2002-03-04  Akim Demaille  <akim@epita.fr>
5993         * doc/autoconf.texi (Transforming Names): Equality between target
5994         and host is irrelevant.
5995         (Specifying Names, Canonicalizing): Remove all references to the
5996         backward compatibility hooks.  Rather, collect them all into...
5997         (Hosts and Cross-Compilation): this new section.
5998         * doc/install.texi (System Type): Ditto.
5999         * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
6000         that `--host' implies cross-compilation.
6002 2002-03-04  Akim Demaille  <akim@epita.fr>
6004         * doc/autoconf.texi (Evaluation Macros): New.
6005         * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
6006         useless.
6007         (_m4_foreach): Define the variant with immediate evaluation so
6008         that it contains exactly the items, not an expression which
6009         evaluation is the current item.
6010         (m4_re_string, m4_re_word): Don't over quote them.
6012 2002-03-04  Akim Demaille  <akim@epita.fr>
6014         Instead of having stacking `shift's evaluated at the end, let
6015         `foreach' loops immediately evaluate them.
6017         * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
6018         $*.  This is the n-th time I change my mind, but hopefully this is
6019         the last...
6020         (m4_lquote): New.
6021         (m4_text_wrap): Use m4_foreach, which is finally correct _and_
6022         efficient.
6023         (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
6024         it was only a hack for m4_text_wrap.
6025         (m4_car2): Remove, replaced by...
6026         (m4_cdr): New.
6027         (_m4_foreach): Adjust.
6028         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
6029         m4_bpatsubst for clarification.
6031 2002-03-04  Akim Demaille  <akim@epita.fr>
6033         * doc/autoconf.texi (Changequote is Evil): New.
6035 2002-03-03  Kevin Ryde  <user42@zip.com.au>
6037         * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
6038         on old systems like SunOS.
6040 2002-03-01  Peter Eisentraut  <peter_e@gmx.net>
6042         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
6043         lib/autoconf/functions.m4, lib/autoconf/general.m4,
6044         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
6045         lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
6046         of messages.
6048 2002-02-28  Akim Demaille  <akim@epita.fr>
6050         * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
6051         message to be sent.
6053 2002-02-28  Kevin Ryde  <user42@zip.com.au>
6055         * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
6057 2002-02-25  Akim Demaille  <akim@epita.fr>
6059         * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
6060         From Akinori Musha.
6062 2002-02-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
6064         * lib/Autom4te/XFile.pm (getline, getlines): New functions,
6065         translate \r\n to \n.
6067 2002-02-07  Akim Demaille  <akim@epita.fr>
6069         Version 2.52h.
6071 2002-02-07  Akim Demaille  <akim@epita.fr>
6073         Fix Autoconf PR/209.
6074         Also reported by Frank Denis.
6076         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
6078 2002-02-07  Akim Demaille  <akim@epita.fr>
6080         Fix Autoconf PR/207:
6081         AC_PREFIX_PROGRAM fails with dashed program names
6083         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
6084         variable when looking for the prefix program.
6085         Now it also works for shell variables.
6087 2002-02-07  Akim Demaille  <akim@epita.fr>
6089         * doc/autoconf.texi (Limitations of Builtins): More about
6090         case/esac.
6092 2002-02-06  Akim Demaille  <akim@epita.fr>
6094         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
6095         case/esac, some shells don't support it.
6096         Reported by Zack Weinberg.
6097         * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
6099 2002-02-06  Akim Demaille  <akim@epita.fr>
6101         * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
6102         sure not to introduce newlines in at_groups.
6103         * lib/autotest/Makefile.am (autotest.m4f): Typo.
6105 2002-02-06  Akim Demaille  <akim@epita.fr>
6107         * tests/torture.at (Configuring subdirectories): Skip if aclocal
6108         is not available.
6110 2002-02-05  Paul Eggert  <eggert@twinsun.com>
6112         * doc/autoconf.texi (Specific Compiler Characteristics):
6113         Describe HP-UX cc bug workaround more accurately.
6114         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
6115         not unsigned long.
6116         * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
6117         cross-compilers, too.  This undoes some of the most recent change
6118         to this file.
6120 2002-02-05  Akim Demaille  <akim@epita.fr>
6122         * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
6123         to make sure they are up to date when `check' is run.
6125 2002-02-05  Akim Demaille  <akim@epita.fr>
6127         * doc/autoconf.texi (Making testsuite Scripts): Document
6128         package.m4.
6130 2002-02-05  Akim Demaille  <akim@epita.fr>
6132         * lib/freeze.mk: New.
6134 2002-02-05  Akim Demaille  <akim@epita.fr>
6136         Implement `autom4te --freeze'.
6138         * bin/autom4te.in (&freeze): New.
6139         * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
6140         * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
6142 2002-02-05  Akim Demaille  <akim@epita.fr>
6144         * bin/autom4te.in (&parse_args): Implement `frozen files are
6145         optional are the sum of the previous files on the command line'.
6146         Also, pass `--reload-state=' on them, so...
6147         (handle_m4): don't.
6148         * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
6149         (M4sh): Rely on M4sugar.
6150         (Autotest, M4sh, M4sugar): Use frozen files.
6152 2002-01-31  Akim Demaille  <akim@epita.fr>
6154         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
6155         * doc/autoconf.texi (Initializing configure): Adjust.
6157 2002-01-30  Akim Demaille  <akim@epita.fr>
6159         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
6160         alphanumeric to `-' instead of `_'.
6162 2002-01-30  Akim Demaille  <akim@epita.fr>
6164         * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
6165         for plain code, the other for cross-compilation code.  The latter
6166         is now run with GCC only.
6167         * doc/autoconf.texi (Compilers and Preprocessors): New.
6169 2002-01-30  Akim Demaille  <akim@epita.fr>
6171         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
6172         values.
6173         * doc/autoconf.texi (Initializing configure): Explain how to
6174         change AC_INIT default values.
6176 2002-01-29  Akim Demaille  <akim@epita.fr>
6178         * tests/torture.at (Configuring subdirectories): Use configure.in,
6179         so that aclocal 1.4 works.
6180         Reported by Alexandre Duret-Lutz and Larry Schmitt.
6182 2002-01-28  Akim Demaille  <akim@epita.fr>
6184         * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
6185         needs an argument.
6187 2002-01-28  Akim Demaille  <akim@epita.fr>
6189         * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
6190         AUTOTEST_PATH *after* it was set.
6191         Don't put `.' in the PATH: the user should be precise and `./' if
6192         needed.  In addition, given that the test suite does some `cd', if
6193         `.' is in the path, the `tested programs' sections will report
6194         programs found in the test suite's directory, while during the
6195         tests (performed in their own directory), these programs are no
6196         longer visible.  In other words, the results is confusing and
6197         useless.
6198         * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
6200 2002-01-24  Akim Demaille  <akim@epita.fr>
6202         Version 2.52g.
6204 2002-01-24  Akim Demaille  <akim@epita.fr>
6206         * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
6207         * doc/autoconf.texi: Finally add Akim as an author.
6209 2002-01-24  Akim Demaille  <akim@epita.fr>
6211         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
6212         (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
6213         Bourne. Use /bin/sh.
6214         From Andreas Buening.
6216 2002-01-24  Akim Demaille  <akim@epita.fr>
6218         * config/config.guess, config/config.sub, config/texinfo.tex:
6219         Update from masters.
6221 2002-01-24  Akim Demaille  <akim@epita.fr>
6223         * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
6224         * config/auxdir.m4, config/cond.m4, config/depend.m4,
6225         * config/init.m4, config/install-sh.m4, config/lispdir.m4,
6226         * config/missing.m4, config/sanity.m4, config/select.m4,
6227         * config/strip.m4: Remove, to ease sync'ing with any version of
6228         Automake.
6230 2002-01-24  Akim Demaille  <akim@epita.fr>
6232         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
6233         (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
6234         Reported by Geir Ove Myhr.
6236 2002-01-21  Akim Demaille  <akim@epita.fr>
6238         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
6240 2002-01-21  Akim Demaille  <akim@epita.fr>
6242         * lib/Autom4te/General.pm (getopt): Use a more GNUish error
6243         message on invalid options.
6244         * bin/autom4te.in (parse_args): Don't use
6245         Autoconf::General::getopt with non valid options.
6247 2002-01-17  Jim Meyering  <meyering@lucent.com>
6249         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
6250         $ac_cv_exeext so we don't use an old, invalid, cached value.
6252 2002-01-11  Akim Demaille  <akim@epita.fr>
6254         * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
6255         Meyering.
6256         * doc/autoconf.texi (Function Portability): Document the strnlen
6257         limitation.
6258         (Particular Functions): Document AC_FUNC_STRNLEN.
6259         * lib/autoscan/functions: Adjust.
6261 2002-01-06  Akim Demaille  <akim@epita.fr>
6263         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
6264         package.m4, since is really depends upon configure.ac, not
6265         configure.
6266         * doc/autoconf.texi (testsuite Scripts): Adjust.
6267         * tests/Makefile.am (package.m4): New.
6268         EXTRA_DIST it since its a source.
6270 2002-01-06  Akim Demaille  <akim@epita.fr>
6272         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
6273         of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
6274         and PACKAGE_BUGREPORT from here...
6275         (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
6276         arguments.
6277         (_AC_INIT_PREPARE): AC_DEFINE these symbols.
6278         * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
6279         (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
6280         * tests/tools.at (autoheader): Adjust.
6281         * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
6283 2002-01-06  Akim Demaille  <akim@epita.fr>
6285         * bin/autoscan.in (scan_file): Use `&used'.
6287 2002-01-03  Akim Demaille  <akim@epita.fr>
6289         * doc/autoconf.texi (Output): Improved wording regarding use of
6290         AC_OUTPUT.
6291         From Olly Betts.
6293 2001-12-18  Kevin Ryde  <user42@zip.com.au>
6295         * doc/autoconf.texi (Function Portability): Add notes on sscanf
6296         sometimes needing writable input.
6298 2001-12-17  Jim Meyering  <meyering@lucent.com>
6300         * doc/autoconf.texi (New Macros): Tweak wording.
6302 2001-12-14  Akim Demaille  <akim@epita.fr>
6304         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
6305         trailing files, don't apply `-rf' to files which might not be
6306         created by configure (core, core.*, and *.core), but just `rm -f'.
6307         Suggested by Jonathan Kamens.
6309 2001-12-14  Aaron M. Ucko  <amu@alum.mit.edu>
6311         * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
6313 2001-12-14  Akim Demaille  <akim@epita.fr>
6315         * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
6317 2001-12-13  Peter Eisentraut  <peter_e@gmx.net>
6319         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
6320         abs_builddir, top_buildpath to abs_top_builddir, srcpath to
6321         abs_srcdir, top_srcpath to abs_top_srcdir.
6322         (_AC_OUTPUT_FILES): Adjust.
6323         * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
6324         * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
6325         * tests/wrappl.in, tests/wrapsh.in: Adjust.
6327 2001-12-12  Steven G. Johnson  <stevenj@alum.mit.edu>
6329         * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
6330         C/Fortran linking on HP/UX, by extracting the Fortran library
6331         search path from the LPATH line in the $F77 -v output.
6333 2001-12-12  Kevin Ryde  <user42@zip.com.au>
6335         * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
6336         forbidden file descriptors table.
6338 2001-11-26  Akim Demaille  <akim@epita.fr>
6340         * bin/autoscan.in (%c_keywords): Build it at top level.
6341         Map to 1 in order to simplify its uses.
6343 2001-11-26  Akim Demaille  <akim@epita.fr>
6345         * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
6346         Remove $filepath, useless.
6347         (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
6348         variables, they are really part of the tokens.
6349         Split the input line on spaces and then look for tokens.
6350         Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
6351         because of `lex$U.$(OBJEXT)'.
6352         (&scan_files): Use "@list" instead of join.
6353         * doc/Makefile.am (CLEANFILES): Add *.fns.
6355 2001-11-26  Akim Demaille  <akim@epita.fr>
6357         * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
6358         Remove, replaced by...
6359         * tests/wrappl.in: Be common for all the Perl executables.
6360         In particular autoscan and autoheader want -I.
6361         * configure.ac: Adjust.
6362         * lib/autoscan/headers: errno.h is portable.
6364 2001-11-26  Akim Demaille  <akim@epita.fr>
6366         * bin/autoscan.in (used): New.
6367         Use it.
6369 2001-11-26  Akim Demaille  <akim@epita.fr>
6371         * bin/autoscan.in (&scan_c_file): Better parsing of CPP
6372         directives.
6373         (&scan_sh_file): Remove a duplicate pattern.
6374         (&check_configure_ac): Use long options.
6375         * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
6377 2001-11-26  Akim Demaille  <akim@epita.fr>
6379         * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
6380         Before, having a line containing the opening of a multi line
6381         comment made the whole line be ignored.
6383 2001-11-26  Akim Demaille  <akim@epita.fr>
6385         * doc/autoconf.texi (Using an Autotest Test Suite): New.
6386         (testsuite Scripts): Be one of its subsection.
6387         (Autotest Logs): New.
6389 2001-11-26  Akim Demaille  <akim@epita.fr>
6391         Test groups are now run two directories deeper.
6393         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
6394         top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
6395         at_top_builddir.
6396         * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
6397         top_srcdir, builddir and top_builddir.
6398         Use `at_*dir' relatively to the directory containing the
6399         suite, use `*dir' when relatively to the current group dir.
6401 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
6403         * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
6404         lib/autoconf/functions.m4, lib/autoconf/headers.m4,
6405         tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
6406         spelling errors.
6408 2001-11-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
6410         * doc/autoconf.texi (Using System Type): Add an example of `case
6411         $host' usage so people quit using `case $target' everywhere.
6413 2001-11-22  Akim Demaille  <akim@epita.fr>
6415         * doc/autoconf.texi (Installation Directory Variables): Englishoes
6416         spotted by Jim Meyering.
6418 2001-11-16  Paul Eggert  <eggert@twinsun.com>
6420         This patch implements a `long double' suggestion by Oliver Kiddle.
6422         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
6423         static, to catch errors if the value isn't known at compile-time
6424         and the compiler supports dynamic arrays.  Change its name from
6425         `_array_' to `test_array' to avoid potential name clashes.
6426         (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
6427         test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
6428         better than double.  Catch a bug in GCC 2.95.2 x86.
6429         * doc/autoconf.texi (C Compiler): Document the above.
6430         * NEWS: Likewise.
6432 2001-11-13  Akim Demaille  <akim@epita.fr>
6434         * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
6435         hand.
6436         * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
6438 2001-11-13  Akim Demaille  <akim@epita.fr>
6440         * lib/autotest/general.m4 (AT_INIT): After having run the test
6441         group, go back to the initial directory, not to at_suite_dir.
6443 2001-11-13  Akim Demaille  <akim@epita.fr>
6445         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
6446         (AT_DATA_AUTOCONF):  Also protect @&t@ from autom4te.
6447         (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
6448         option.
6449         (AT_CHECK_CONFIGURE): Use absolute paths.
6450         (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
6451         The problem is still the old one: there is no means in M4 (that I
6452         know about) to create a defining macro, because there is no means
6453         to create `$1' etc., therefore, the defining macro ``swallows''
6454         all the arguments meant to the defined macro.
6456 2001-11-13  Akim Demaille  <akim@epita.fr>
6458         * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
6459         (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
6460         configure.ac.
6461         * tests/aclocal.m4: Remove, as it is no longer used.
6463 2001-11-13  Akim Demaille  <akim@epita.fr>
6465         * lib/autotest/general.m4: Change `tests?' into `groups?' in
6466         variable names when referring to a single test group, or to
6467         `suite' when referring to the whole test suite.
6468         `at_last_test' is removed: m4 compute at_format itself.
6469         (at_stdout, at_stder1, at_stderr): New variables.
6470         (AT_CHECK): Use them.
6472 2001-11-13  Akim Demaille  <akim@epita.fr>
6474         * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
6475         in PATH.
6476         Create `testsuite.dir/003/run' instead of `testsuite.003'.
6477         Do it as soon as a test fails, don't wait till the end of the test
6478         suite.
6479         Don't remove $as_me.[0-9]*, since these files no longer exist.
6481 2001-11-13  Akim Demaille  <akim@epita.fr>
6483         * tests/tools.at: Use absolute paths, since we are no longer run
6484         in place.
6486 2001-11-13  Akim Demaille  <akim@epita.fr>
6488         Now that tests are running in their own private dir, there is no
6489         need to list the files to remove at the end of tests groups.
6491         * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
6492         (AT_data_files, at_data_files): Remove.
6493         (AT_CLEANUP, AT_DATA): Simplify.
6494         (AT_INIT): Adjust.
6495         Remove the group dir if !debug && !failed.
6496         * tests/atspecific.m4: Adjust.
6498 2001-11-13  Akim Demaille  <akim@epita.fr>
6500         Start a new layout for Autotest: `testsuite' creates
6501         `testsuite.dir' in which the at-check-line etc. files are to be
6502         found, and `testsuite.dir/003' where the test group 3 is run.
6504         * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
6505         at_check_line_file, at_format, at_test_normalized, at_group_dir
6506         are new variables.
6507         Create the directories.
6508         Use absolute paths for at- files.
6509         (AT_CHECK): Adjust.
6511 2001-11-11  Michael Matz  <matz@kde.org>
6513         * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
6514         (m4_car2): New.
6515         (m4_car): Properly quote arguments.
6517 2001-11-13  Akim Demaille  <akim@epita.fr>
6519         * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
6520         with stricter rules on LIBOBJS.
6522 2001-11-12  Paul Eggert  <eggert@twinsun.com>
6524         * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
6525         * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
6526         __PROTOTYPES too.
6528 2001-11-12  Akim Demaille  <akim@epita.fr>
6530         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
6532 2001-11-12  Akim Demaille  <akim@epita.fr>
6534         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
6535         * lib/autoconf/functions.m4, lib/autoconf/general.m4,
6536         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
6537         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
6538         * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
6539         specify to what the macro should be defined (typically to 1).
6541 2001-11-12  Akim Demaille  <akim@epita.fr>
6543         * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
6544         From Jim Meyering.
6546 2001-11-12  Akim Demaille  <akim@epita.fr>
6548         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
6549         AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
6550         definition used by Automake where LEX is +/- "${missing} lex" and
6551         `missing' itself contains variables.
6553 2001-11-12  Akim Demaille  <akim@epita.fr>
6555         * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
6556         Now that M4sh pushes BODY, the comments were output at the end of
6557         the test suites.
6559 2001-11-08  Akim Demaille  <akim@epita.fr>
6561         * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
6562         that we can trace macros from aclocal.m4.
6563         Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
6564         obsoleted, and redirect to the former anyway.
6565         Reported by Ralf Corsepius.
6567 2001-11-08  Akim Demaille  <akim@epita.fr>
6569         * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
6570         processed only if present.
6571         * tests/torture.at (Configuring subdirectories): Use autoreconf
6572         instead of successive calls to autoconf.
6573         Add a nonexistent subdirectory to exercise the patch above.
6574         Reported by Ralf Corsepius.
6576 2001-11-08  Kevin Ryde  <user42@zip.com.au>
6578         * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
6579         doesn't accept .S files.
6581 2001-11-07  Akim Demaille  <akim@epita.fr>
6583         * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
6584         * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
6585         (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
6586         * bin/autom4te.in (warn_forbidden): New.
6587         (handle_output): Use it.
6588         Read m4_pattern_forbid with messages.
6590 2001-11-05  Akim Demaille  <akim@epita.fr>
6592         * bin/autom4te.in (--normalize): Remove.
6593         * lib/autom4te.in: Adjust.
6595 2001-11-05  Akim Demaille  <akim@epita.fr>
6597         * tests/Makefile.am (testsuite): Rename this target as...
6598         ($(TESTSUITE)): this.
6599         From Nicolas Joly.
6601 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
6603         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
6604         the --prefix option, also remove it's argument.
6606 2001-11-05  Akim Demaille  <akim@epita.fr>
6608         * doc/autoconf.texi (testsuite Invocation): Update.
6609         (Writing testsuite.at): Update.
6611 2001-11-03  Akim Demaille  <akim@epita.fr>
6613         * doc/autoconf.texi: s/@code/@command/ where appropriate.
6615 2001-11-03  Akim Demaille  <akim@epita.fr>
6617         * lib/Autom4te/General.pm: (&catfile, &canonfile)
6618         (&file_name_is_absolute): New, wrappers around routines from
6619         File::Spec.
6620         Use and export them.
6621         (&find_configure_ac): Optionally take a directory where to look at.
6622         * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
6623         the arguments.
6624         Default @ARGV to `.', not find_configure_ac.
6625         (&autoreconf): Argument is a directory.
6626         Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
6627         * doc/autoconf.texi (autoreconf Invocation): Update.
6629 2001-11-03  Akim Demaille  <akim@epita.fr>
6631         * lib/Autom4te/General.pm (@export_vars, @export_subs)
6632         (@export_forward_subs): New.
6633         Add basename, dirname, and fileparse.
6634         (@EXPORT): Adjust.
6635         * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
6636         Don't look for aclocal flags if we already know aclocal is not
6637         used.
6638         Move aclocal.m4t only if it exists.
6639         Reported by Ezra Peisach.
6641 2001-11-03  Akim Demaille  <akim@epita.fr>
6643         * bin/autoreconf.in (&parse_args): Work only on the configure.ac
6644         passed on command line, defaulting to ./configure.ac if present.
6645         (&maybe_autoreconf, File::Find): Remove, unused.
6646         (&autoreconf): If autoconf is not used, don't try to trace.
6648 2001-11-02  Akim Demaille  <akim@epita.fr>
6650         * configure.ac: Bump to 2.52g.
6652 2001-11-02  Akim Demaille  <akim@epita.fr>
6654         Version 2.52f.
6656 2001-11-02  Akim Demaille  <akim@epita.fr>
6658         * config/config.guess, config/config.sub, doc/standards.texi:
6659         * config/lispdir.m4: Update from masters.
6660         * configure.ac: Bump to 2.52f.
6662 2001-11-02  Akim Demaille  <akim@epita.fr>
6664         * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
6665         Don't run aclocal when aclocal.m4 is not from aclocal.
6666         From Ezra Peisach.
6667         Don't run libtoolize and gettextize if --install is not given.
6669 2001-11-01  Paul Eggert  <eggert@twinsun.com>
6671         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
6672         be invoked before _AS_LINENO_PREPARE.
6673         (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
6674         than character ranges.
6676         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
6677         invoking AS_BASENAME.  Set the locale variables to 'C' if
6678         possible, as POSIX requires this to get the traditional
6679         behavior.
6680         * doc/autoconf.texi (Special Shell Variables): Describe the above.
6682 2001-10-31  Paul Eggert  <eggert@twinsun.com>
6684         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
6685         with {}, as that triggers a bug in Bash 2.05.
6687         (_AS_LINENO_PREPARE): Use Sed rather than
6688         Awk.  Fix the sed prepass to work even if there are multiple
6689         instances of $LINENO on the same line.  Do not substitute for
6690         other variables like $LINENOT.  Do not check file dates; such a
6691         check is unreliable on sufficiently fast machines, and removing
6692         the check makes the code simpler and more reliable.  Check for
6693         output and chmod failures.
6695         * doc/autoconf.texi (Special Shell Variables): Document
6696         the above.
6698 2001-10-31  Akim Demaille  <akim@epita.fr>
6700         * tests/Makefile.am (atconfig): Remove this target, Automake
6701         handles it now.
6703 2001-10-31  Akim Demaille  <akim@epita.fr>
6705         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
6706         AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
6707         provided, while it is optional.
6708         * configure.ac: Adjust.
6710 2001-10-26  Paul Eggert  <eggert@twinsun.com>
6712         * NEWS, README, configure.ac, lib/Autom4te/General.pm,
6713           lib/Autom4te/Struct.pm:
6714         Require Perl 5.005_03 instead of just 5.005, as some tests fail
6715         with 5.005_02.
6717         * doc/autoconf.texi (Special Shell Variables): Document some
6718         more LINENO gotchas, particularly with respect to the Awk+Sed hack.
6720         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
6721         (_AS_LINENO_PREPARE): Use it instead of shell eval, since
6722         eval $LINENO is not portable in practice.
6724 2001-10-24  Akim Demaille  <akim@epita.fr>
6726         * lib/Autom4te/General.pm (backname): New.
6728 2001-10-24  Akim Demaille  <akim@epita.fr>
6730         * m4/: Remove, merged into...
6731         * config/: here.
6733 2001-10-23  Tim Van Holder  <tim.van.holder@pandora.be>
6735         * doc/autoconf.texi (Shellology): Mention the problems with bash
6736         2.05's use of ANSI quoting in its `set' builtin.
6738 2001-10-22  Paul Eggert  <eggert@twinsun.com>
6740         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
6741         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
6742         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
6743         POSIX decided to standardize on the int flavor of strerror_r.
6744         Always do char* test, as there's no reason not to.
6745         Assign to a char* var, to catch strerror_r that returns int*.
6747         * doc/autoconf.texi (Particular Functions):
6748         Document the above changes.  Also, document the fact that
6749         AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
6751         * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
6753 2001-10-20  Akim Demaille  <akim@epita.fr>
6755         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
6756         the executable was missing from the log.
6758 2001-10-20  Akim Demaille  <akim@epita.fr>
6760         * lib/Autom4te/General.pm (&update_file): If destination is
6761         unchanged, remove the source.
6762         (&up_to_date_p): Don't be verbose, be debug.
6763         * bin/autoreconf.in: No longer support --m4dir.
6764         (&autoreconf): Display the full path of the configure.ac we are
6765         studying.
6766         Trace it only once.
6767         Be sure to honor --force with gettextize.
6768         Always run aclocal.
6769         * doc/autoconf.texi: Adjust.
6771 2001-10-20  Akim Demaille  <akim@epita.fr>
6773         * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
6774         Remove, dead.
6775         * bin/autoreconf.in (&autoreconf): Do not run gettextize when
6776         `intl' is already present, as it refuses unless --force.
6777         (&parse_args): Use -I, --include instead of the old Autoconf
6778         options.
6779         ($localdir, $autoconf_dir): Remove.
6780         (@include): New.
6781         (&maybe_autoreconf): New, to preserve $_ for File::Find.
6783 2001-10-19  Jens Petersen  <petersen@redhat.com>
6785         * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
6786         * doc/autoconf.texi (Particular Programs): Likewise.
6788 2001-10-19  Akim Demaille  <akim@epita.fr>
6790         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
6791         file in @configure_input@.
6792         Don't mention `automatically' in addition to `generated'.
6793         * tests/torture.at (#define header templates): Adjust.
6795 2001-10-19  Akim Demaille  <akim@epita.fr>
6797         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
6798         comment, explain how to install automatic mode selection.
6799         From Russ Allbery.
6801 2001-10-19  Ezra Peisach  <epeisach@zif.mit.edu>
6803         * bin/autoreconf.in (autoreconf): Display the path to the
6804         configure.ac being studied.
6806 2001-10-18  Paul Eggert  <eggert@twinsun.com>
6808         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
6809         long, to work around a bug in the HP C compiler version HP92453-01
6810         B.11.11.23709.GP.
6812         * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
6813         (AS_BASENAME_EXPR): New macro.
6814         (AS_BASENAME_SED): Do not assume GNU sed semantics.
6815         (AS_BASENAME): Use 'basename' if that works; then try 'expr';
6816         and fall back on 'sed' only if the other two fail.  This makes
6817         AS_BASENAME act more like AS_DIRNAME.
6818         (as_me): Shell-quote the argument of AS_BASENAME, in case $0
6819         contains white space.
6820         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
6821         Use AS_DIRNAME, since I think it's now DOS-friendly.
6822         * tests/m4sh.at (DIRNAME_TEST): New arg $3.
6823         Allow "dirname //FOO" to return either / or //, as POSIX allows
6824         either behavior.
6826 2001-10-10  Akim Demaille  <akim@epita.fr>
6828         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
6829         `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
6830         From Eric Sharkey.
6832 2001-10-10  Akim Demaille  <akim@epita.fr>
6834         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
6835         m4_define, since...
6836         (_AS_ECHO_N): AS_REQUIREs it.
6838 2001-10-10  Akim Demaille  <akim@epita.fr>
6840         * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
6841         (AC_INCLUDES_DEFAULT): Move to...
6842         * lib/autoconf/headers.m4: here.
6843         * lib/autoconf/types.m4: Comment changes.
6844         * doc/autoconf.texi: Specify where the default includes are used
6845         in the macro prototypes.
6847 2001-10-09  Akim Demaille  <akim@epita.fr>
6849         * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
6850         transition code.
6852 2001-10-08  Akim Demaille  <akim@epita.fr>
6854         * bin/autoreconf.in (&autoreconf): Remove debugging code.
6855         (&parse_args): Pass verbosity/debugging options to subtools when
6856         --debug, not when --verbose.
6857         * lib/autom4te.in (Autoreconf-preselections): New.
6858         (Autoconf): Use it.
6860 2001-10-08  Akim Demaille  <akim@epita.fr>
6862         * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
6864 2001-10-08  Akim Demaille  <akim@epita.fr>
6866         * doc/autoconf.texi (autoreconf Invocation): Adjust.
6867         * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
6869 2001-10-08  Akim Demaille  <akim@epita.fr>
6871         * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
6872         (Syntax of the shell scripts): Don't.
6873         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
6874         bother with $force since...
6875         * lib/Autom4te/General.pm: does.
6877 2001-10-08  Akim Demaille  <akim@epita.fr>
6879         * bin/autoreconf.in: Rewrite in Perl.
6880         * configure.ac: Adjust.
6881         * lib/Autom4te/General.pm (&up_to_date_p): New.
6882         * bin/autom4te.in (&up_to_date_p): Use it.
6883         Rename as...
6884         (&up_to_date): this.
6886 2001-10-08  Akim Demaille  <akim@epita.fr>
6888         * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
6889         (m4_list_cmp): Use $0 to reinvoke yourself.
6890         (m4_patsubsts): New.
6891         (m4_strip, m4_version_unletter): Use it.
6892         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
6894 2001-10-08  Akim Demaille  <akim@epita.fr>
6896         * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
6897         * lib/autoconf/libs.m4, lib/autoconf/status.m4,
6898         * lib/autoconf/types.m4, lib/autotest/general.m4,
6899         * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
6900         * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
6901         m4_bregexp, m4_bpatsubst, and m4_bmatch.
6902         * doc/autoconf.texi (Redefined M4 Macros): Adjust.
6904 2001-10-08  Akim Demaille  <akim@epita.fr>
6906         * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
6908 2001-10-08  Akim Demaille  <akim@epita.fr>
6910         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
6911         * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
6912         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
6913         * tests/tools.at, tests/m4sh.at: Use it.
6914         * tests/m4sh.at: Don't rely on Autoconf macros.
6915         (DIRNAME_TEST): Also exercise the expr variant.
6916         * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
6917         preferred M4sugar extension is now `.4s'.
6918         * tests/README: Remove.
6920 2001-10-08  Akim Demaille  <akim@epita.fr>
6922         * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
6923         (m4_provide_if): this.
6924         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
6925         * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
6926         (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
6927         M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
6929 2001-10-08  Akim Demaille  <akim@epita.fr>
6931         Use `add-log-current-defun-function' for ChangeLog creation.
6932         Suggested by Tom Tromey.
6934         * lib/emacs/autotest-mode.el (autotest-mode-map): New.
6935         (autotest-mode): Adjust.
6936         * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
6937         'comment-region onto `C-c ;'.
6938         Comments are `#', not `dnl'.
6939         (autoconf-current-defun): New.
6940         (autoconf-font-lock-keywords): Recognize `m4_defun'.
6942 2001-10-08  Akim Demaille  <akim@epita.fr>
6944         * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
6945         * lib/m4sugar/m4sh.m4: here.
6946         (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
6947         * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
6948         (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
6949         include handle the m4_pattern_*, no longer push the
6950         BODY diversion nor set the /bin/sh line, AS_INIT does it.
6951         * lib/autotest/general.m4 (AT_INIT): Likewise.
6952         * tests/base.at: Adjust the tests to use AS_INIT.
6953         * tests/tools.at (AT_DATA_FORBIDDEN): New.
6954         (autoconf: forbidden tokens): Adjust to work on M4sh instead of
6955         Autoconf.
6957 2001-10-07  Paul Eggert  <eggert@twinsun.com>
6959         * doc/autoconf.texi (config.status Invocation):
6960         CONFIG_SHELL defaults to a shell that supports LINENO if available.
6962         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
6963         shell does not support LINENO, and if CONFIG_SHELL is unset or
6964         empty, and if we can find a shell that does support LINENO,
6965         then set CONFIG_SHELL to that shell and then re-execute
6966         ourselves with CONFIG_SHELL.
6968 2001-10-05  Paul Eggert  <eggert@twinsun.com>
6970         * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
6971         doesn't exist.  Remove *.tmp, as a .tmp file is created during the
6972         build of $(TESTSUITE).
6974 2001-10-05  Akim Demaille  <akim@epita.fr>
6976         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
6977         iff we are a bareword.
6978         Reported by Raja R Harinath.
6980 2001-10-05  Akim Demaille  <akim@epita.fr>
6982         * tests/m4sh.at (LINENO): New.
6983         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
6984         PATH_SEPARATOR before using it.
6985         Fix the absolute path case/esac pattern.
6986         Provide $0 as fallback for as_myself.
6987         Reported by Raja R Harinath.
6989 2001-10-05  Akim Demaille  <akim@epita.fr>
6991         * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
6992         * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
6994 2001-10-05  Akim Demaille  <akim@epita.fr>
6996         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
6997         (AS_SHELL_SANITIZE): here.  Use it.
6998         (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
6999         From Paul Eggert.
7001 2001-10-04  Akim Demaille  <akim@epita.fr>
7003         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
7004         combination of Awk and sed to replace $LINENO.
7006 2001-10-02  Paul Eggert  <eggert@twinsun.com>
7008         * doc/autoconf.texi (Limitations of Builtins): You can't use
7009         "source"; it's not portable.  Remove confusing and
7010         somewhat-incorrect example involving "." and "/".
7012         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
7013         compatibility with POSIX shells.
7015 2001-10-02  Akim Demaille  <akim@epita.fr>
7017         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
7018         instead of exec'ing to preserve $0 and $@.
7020 2001-10-01  Akim Demaille  <akim@epita.fr>
7022         * tests/testsuite (AT_INIT) <at_pass_list>: New.
7023         Don't run twice the same test.
7025 2001-10-01  Akim Demaille  <akim@epita.fr>
7027         * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
7028         No longer output the list of tests.
7029         <--list>: New option.
7030         <--full-help>: Remove.
7031         Complete the short/long options duality.
7032         Various small adjustments.
7034 2001-10-01  Akim Demaille  <akim@epita.fr>
7036         * doc/autoconf.texi: Use @kbd for user input.
7037         Always use `$' as shell prompt.
7039 2001-09-30  Paul Eggert  <eggert@twinsun.com>
7041         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
7042         Don't use nested parenthesization.  This patch was originally
7043         suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
7044         but somehow it didn't get incorporated then.
7045         * doc/autoconf.texi (Limitations of Usual Tools):
7046         Clarify remark about sed and nested parenthesization.
7048         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
7049         Report an error if the size cannot be determined even though
7050         the type exists.
7051         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
7052         Check for `expr' arithmetic overflow, and for compilation failure,
7053         and invoke a new argument $4 if either is discovered.
7054         This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
7055         (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
7057 2001-09-28  Akim Demaille  <akim@epita.fr>
7059         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
7060         * m4/lispdir.m4: New.
7061         * aclocal.m4, configure.ac: Adjust.
7063 2001-09-28  Akim Demaille  <akim@epita.fr>
7065         * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
7066         (AT_TESTED): this.
7067         (AT_INIT): More the wrapped section to where it will be expanded.
7068         Output `AT_tested' only when existing.
7069         Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
7071 2001-09-27  Akim Demaille  <akim@epita.fr>
7073         Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
7074         generates too many bug reports.
7076         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
7077         status when executing the ACTION-IF-FALSE.
7078         * tests/base.at (AC_TRY_*): Rename as...
7079         (AC_TRY_COMMAND): this.
7080         (AC_RUN_IFELSE): New.
7081         * tests/compile.at (Extensions, C keywords)
7082         (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
7083         (Broken/missing compilers, AC_PROG_CPP with warnings)
7084         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
7085         * tests/c.at (Extensions, C keywords)
7086         (Broken/missing compilers, AC_PROG_CPP with warnings)
7087         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
7088         (AC_PROG_CPP requires AC_PROG_CC): here and...
7089         * tests/fortran.at (GNU Fortran 77): there.
7090         * doc/autoconf.texi (autoconf Invocation): Fix the example:
7091         AC_TRY_RUN is about compilation, not shell commands.
7092         (Test Programs): AC_TRY_RUN works as used to be advertised.
7094 2001-09-27  Akim Demaille  <akim@epita.fr>
7096         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
7097         Raja R Harinath:
7098         Be sure to detect when $LINENO always returns the same value.
7099         Look for the original script, basename($0) is certainly not
7100         enough.
7101         Pass the CLI arguments to `$as_me.lineno'.
7103 2001-09-25  Akim Demaille  <akim@epita.fr>
7105         * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
7106         Be sure the close and reopen the LOG fd before and after using tee
7107         to extend the log.
7108         <at_tests_pattern>: Adjust to the new format of at_help_all.
7110 2001-09-23  Akim Demaille  <akim@epita.fr>
7112         * bin/autom4te.in (parse_args): There can be several invocations
7113         of --language now.
7115 2001-09-23  Akim Demaille  <akim@epita.fr>
7117         * doc/autoconf.texi (Top): Wrap in @ifnottex.
7119 2001-09-23  Akim Demaille  <akim@epita.fr>
7121         * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
7122         ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
7123         (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
7124         builddir, buildpath, top_builddir, and top_buildpath.
7125         (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
7126         the current directory.
7127         * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
7128         variables *before* changing the current directory.
7129         Skip nonexistent dirs.
7130         * doc/autoconf.texi (Preset Output Variables): Document these
7131         variables.
7133         * lib/autotest/general.m4: Do not reset AT_victims.
7134         Don't compute at_srcdir nor at_top_srcdir.
7136         * tests/tools.at: Hence use top_srcdir.
7138         * tests/Makefile.am, tests/autoconf, tests/autoheader,
7139         * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
7140         Remove.
7141         * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
7142         * tests/wrapsh.in, tests/autoupdate.in: New.
7143         * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
7144         * configure.ac: Build the position independent wrappers.
7146         * man/Makefile.am: Now that test wrappers are position
7147         independent, use them and drop dark envvar magic.
7149 2001-09-23  Akim Demaille  <akim@epita.fr>
7151         * doc/autoconf.texi (Common Shell Constructs): Rename as...
7152         (Programming in M4sh): this.
7153         Promote to @section.
7155 2001-09-23  Akim Demaille  <akim@epita.fr>
7157         * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
7158         Pass $at_debug_args to the rerun test suite.
7159         * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
7160         * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
7161         From Paul Eggert.
7163 2001-09-23  Akim Demaille  <akim@epita.fr>
7165         * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
7167 2001-09-23  Akim Demaille  <akim@epita.fr>
7169         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
7170         over-escaping.
7172 2001-09-23  Akim Demaille  <akim@epita.fr>
7174         * lib/Autom4te/General.pm (&debug): New.
7175         * bin/autom4te.in ($language): Move to...
7176         (parse_args): here.
7177         Handle --language in languages.
7178         * lib/autom4te.in (Automake-selections, Autoheader-selections)
7179         (Autoscan-selections): New.
7180         (Autoconf): Adjust.
7182 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
7184         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
7185         * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
7186         to match current versions from CVS Automake.
7188 2001-09-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
7190         * doc/autoconf.texi (Special Shell Variables): Add pdksh output
7191         for $LINENO.
7193 2001-09-22  Akim Demaille  <akim@epita.fr>
7195         * lib/autoconf/autotest.m4: Create `package.m4'.
7196         * tests/Makefile.am (package.m4): Remove.
7198 2001-09-22  Akim Demaille  <akim@epita.fr>
7200         Rely on `$LINENO' when possible instead of `__oline__'.
7202         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
7203         `$LINENO' support replacement when not supported.
7204         (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
7205         them explicitly to be sure they are not output before this section
7206         (via m4_require).  Cosmetic only.
7207         * lib/autoconf/c.m4, lib/autoconf/general.m4,
7208         * lib/autoconf/programs.m4: Replace all the occurrences of
7209         `__oline__' with `$LINENO'.
7210         * doc/autoconf.texi (Special Shell Variables): Document LINENO.
7212 2001-09-21  Tim Van Holder  <tim.van.holder@pandora.be>
7214         * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
7215         character (u: -> ue) in a code comment.
7216         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
7217         it works.
7219 2001-09-21  Akim Demaille  <akim@epita.fr>
7221         * Makefile.maint (AUTOM4TE): Neutralize autom4te.
7222         Suggested by Jim Meyering.
7224 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
7226         * lib/autoconf/programs.m4: Use extensions listed in
7227         $ac_executable_extensions when looking for programs.
7229 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
7231         * lib/autoconf/general.m4: Fix a small Englisho.
7232         * lib/autoconf/status.m4: Fix a small typo.  Handle DOS paths when
7233         setting up ac_dir_suffix and ac_top_builddir.
7234         * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
7236 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
7238         * doc/autoconf.texi (File System Conventions): Clarify the use of
7239         PATH_SEPARATOR.
7240         (Special Shell Variables[PATH_SEPARATOR]): Ditto.
7241         (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
7242         be used instead of ':'.
7243         * lib/autotest/general.m4: Replace occurrences of ':' in
7244         AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
7246 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
7248         * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
7249         arguments.  Fixed a typo.
7251 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
7253         * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
7254         $PATH.  Also set AUTOM4TE_CFG, so we can process autom4te properly.
7256 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
7258         * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
7259         * bin/autoupdate.in: Ditto.
7260         * bin/autoheader.in: Reworded a few comments.
7261         * bin/autoconf.in: Reworded help text for a few options.
7262         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
7263         * bin/autoscan.in, bin/autoupdate.in: Ditto.
7265 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
7267         * lib/Autom4te/XFile.pm (open): Simplified the error message (we
7268         already have $file).  Set output files to binary mode (helps avoid
7269         CR issues on DOSish systems).
7271 2001-09-19  Akim Demaille  <akim@epita.fr>
7273         * lib/autotest/general.m4: Englishoes.
7274         From Tim Van Holder and Alexey Mahotkin.
7276 2001-09-18  Paul Eggert  <eggert@twinsun.com>
7278         * doc/autoconf.texi (Common Shell Constructs): New node,
7279         documenting AS_DIRNAME.
7280         (Limitations of Usual Tools): Refer to it when discussing dirname.
7281         Also, update discussion of POSIX standard to reflect latest draft.
7283         * lib/autoconf/c.m4:
7284         (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
7286         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
7287         Do not pass a first argument with leading '-'
7288         to expr, by parenthesizing initial integers that might be negative.
7290         * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
7291         now merely checks whether it is an error to pass an argument
7292         to getpgrp.
7294         * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
7295         (AC_FUNC_GETPGRP): Don't bother with a runtime test.  Just check
7296         whether it is a (compile-time) error to pass an argument to
7297         getpgrp.  This simpler test supports the revised documentation,
7298         and is all that AC_FUNC_GETPGRP's users really need.
7300 2001-09-18  Akim Demaille  <akim@epita.fr>
7302         * doc/autoconf.texi (Limitations of Make) <$<>: New.
7304 2001-09-18  Akim Demaille  <akim@epita.fr>
7306         * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
7307         `{}'.
7308         * lib/autotest/general.m4 (AT_INIT): Adjust.
7310 2001-09-18  Paul Wagland  <paul@wagland.net>
7312         * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
7313         correctly.
7314         Add test for AS_BASENAME.
7315         * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
7316         added test. It now correctly handles /1/2/3/, returning '3' not ''.
7317         Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
7318         * tests/base.at: Fixed the expected responses. The old ones were
7319         one line out...
7320         * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
7321         the documentation claims it should (and how it behaved in 2.13).
7323 2001-09-18  Akim Demaille  <akim@epita.fr>
7325         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
7326         the AC_CONFIG_COMMANDS invocation.
7327         This also solves the name clash problems.
7328         Don't set the package's ID.
7329         * lib/m4sugar/Makefile.am (version.m4): Revamp.
7330         No longer to be shipped.
7331         (version.in): Remove.
7332         * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
7333         * lib/autoconf/status.m4: Adjust.
7334         Use `m4_PACKAGE_STRING'.
7335         * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
7336         the only optional argument is the name of the test suite.
7337         Expect `package.m4' to define the package signature.
7338         * lib/autom4te.in (Autotest): Add `package.m4?'.
7339         * tests/Makefile.am (package.m4): New.
7340         * tests/suite.at: ifnames is a victim.
7342 2001-09-18  Akim Demaille  <akim@epita.fr>
7344         * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
7345         AC_LIBSOURCE, AC_CONFIG_FILES.
7346         * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
7347         program version string doesn't match the package's.
7348         * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
7349         after `(cached)'.
7351 2001-09-17  Paul Eggert  <eggert@twinsun.com>
7353         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
7354         Allow expression to return any value that can fit into unsigned long
7355         (not int, as before).  Check for output errors.
7357 2001-09-17  Bruno Haible  <haible@ilog.fr>
7359         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
7360         Always include <stdio.h> and <stdlib.h>. Evaluate
7361         the expression in an extra function before these includes. Call
7362         fprintf "%d" only after ensuring the argument is of type 'int'.
7363         Reported by Wayne Chapeskie <waynec@spinnaker.com>.
7365 2001-09-17  Paul Eggert  <eggert@twinsun.com>
7367         Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
7368         or CFLAGS=-O5.  In that case, the linker has a relaxed view of
7369         fatal errors, and AC_CHECK_LIB causes it to include libraries even
7370         when they don't exist.
7372         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
7373         not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
7374         need it.
7376         * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
7377         version with the version used by fileutils 4.1, except use
7378         AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
7379         we don't need it.
7381         * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
7383 2001-09-13  Akim Demaille  <akim@epita.fr>
7385         * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
7386         _first_.
7387         Reported by Gerrit P. Haase.
7389 2001-09-13  Akim Demaille  <akim@epita.fr>
7391         * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
7392         m4_defn'ing is valid.
7394 2001-09-13  Akim Demaille  <akim@epita.fr>
7396         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
7397         * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
7398         Use it.
7400 2001-09-13  Akim Demaille  <akim@epita.fr>
7402         * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
7403         m4_match.
7404         (m4_re_escape): New.
7405         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
7406         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
7407         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
7408         Likewise.
7409         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
7410         (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
7411         * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
7412         AT_tests_all for consistency.
7413         Set at_victims.
7414         (AT_VICTIMS): Similar to AT_KEYWORDS.
7415         (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
7417 2001-09-13  Akim Demaille  <akim@epita.fr>
7419         * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
7421 2001-09-13  Akim Demaille  <akim@epita.fr>
7423         * lib/autotest/general.m4 (AT_INIT): Create and remove
7424         `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
7425         test suites can cohabit.
7427 2001-09-13  Akim Demaille  <akim@epita.fr>
7429         * tests/mktests.sh: Don't output banners for empty test files.
7431 2001-09-13  Akim Demaille  <akim@epita.fr>
7433         Test suites can be run independently of configure.
7435         * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
7436         * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
7437         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
7438         ECHO_N etc.
7439         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
7440         and at_c.
7441         * lib/autotest/general.m4: Use ECHO_*.
7443 2001-09-13  Akim Demaille  <akim@epita.fr>
7445         * bin/ifnames.in: Rewrite in Perl.
7446         * configure.ac: Don't look for AWK.
7447         * tests/tools.at (AWK portability): Remove.
7448         (Syntax of the shell scripts): Don't check ifnames.
7449         (AT_CHECK_PERL_SYNTAX): New.
7450         (Syntax of the Perl scripts): Check ifnames.
7451         * tests/ifnames: New.
7453 2001-09-13  Akim Demaille  <akim@epita.fr>
7455         * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
7456         test group titles.
7457         * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
7458         Remove all the other keywords.
7460 2001-09-10  Akim Demaille  <akim@epita.fr>
7462         * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
7463         SETUP: no longer used.
7464         Support -k, --keywords.
7465         <at_help>: Be `no', `short', or `long'.
7466         <at_help_all>: New variable.
7467         (AT_KEYWORDS): New.
7468         (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
7469         (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
7470         (_AT_CLEANUP_FILE_IF): Simplify the regexp.
7471         (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
7472         No longer fill the HELP diversion.
7473         (AT_CLEANUP): Use them.
7474         * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
7475         (m4_list_append): Remove.
7477         Spread a few keywords in the Autoconf test suite.
7479 2001-09-10  Akim Demaille  <akim@epita.fr>
7481         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
7482         PATH_SEPARATOR, let M4sh compute it.
7483         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
7484         * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
7485         Move to...
7486         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
7487         Simplify when the path is not a literal.
7488         (AS_UNAME): Use it to report PATH.
7489         * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
7490         (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
7491         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
7492         * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
7493         normalize the path, and to look for victims.
7494         * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
7495         (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
7497 2001-09-07  Akim Demaille  <akim@epita.fr>
7499         * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
7500         doesn't neutralize SIGINT, making autoconf etc. non interruptible.
7501         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
7502         related variables into `at_package_*'.
7503         * lib/autotest/general.m4 (AT_VICTIMS): New.
7504         (AT_INIT): Adjust for stand-alone/embedded test suites.
7505         (AS_MESSAGE_LOG_FD): Define and use it.
7506         * tests/suite.at (AT_VICTIMS): Use it.
7507         * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
7508         at_version.
7510 2001-09-07  Akim Demaille  <akim@epita.fr>
7512         Move toward possibly stand-alone test suites.
7514         * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
7515         in addition, it introduces useless differences in logs.
7516         (AT_INIT): Let atconfig and atlocal be both optional.
7517         Adjust PATH computation.
7518         * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
7520 2001-09-07  Akim Demaille  <akim@epita.fr>
7522         * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
7523         m4sugar/version.m4.
7525 2001-09-05  Akim Demaille  <akim@epita.fr>
7527         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
7528         to avoid GCC warnings.
7529         From Uwe Seimet.
7531 2001-09-05  Akim Demaille  <akim@epita.fr>
7533         * bin/autom4te.in: --language is -l, not -s.
7535 2001-09-05  Akim Demaille  <akim@epita.fr>
7537         Be ready to handle filenames as stupid as `dnl.at', for if even
7538         the maintainer is dumb enough to do that...
7540         * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
7541         excellence in M4 quotation: consider `__file__' is active.
7543         And BTW, when invoking m4, pass the --include in the right order:
7544         the wrong one.
7546         * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
7547         4m.
7549 2001-09-05  Akim Demaille  <akim@epita.fr>
7551         * lib/Autom4te/XFile.pm: New lib file.
7552         * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
7553         * bin/autoheader.in: Use it.
7555 2001-09-05  Akim Demaille  <akim@epita.fr>
7557         * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
7558         defined.
7560 2001-09-05  Akim Demaille  <akim@epita.fr>
7562         * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
7563         * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
7565         * bin/autoscan.in: Use `getopt' and `find_files' etc.
7566         Add -I, --include support.
7567         * doc/autoconf.texi (autoscan Invocation): Adjust.
7569 2001-09-05  Akim Demaille  <akim@epita.fr>
7571         CVS GNU M4 doesn't like `undefine(undefined)'.
7573         * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
7574         New, extracted from main.
7575         Use IO::File wherever possible.
7576         (input.m4): Be constant, use -I instead of hard coding $tmp.
7577         Therefore be a quoted heredoc.
7578         Don't invoke `_au_disable', since ac was not loaded, but just
7579         `unm4.m4'.
7581 2001-08-31  Akim Demaille  <akim@epita.fr>
7583         Version 2.52d.
7585 2001-08-31  Akim Demaille  <akim@epita.fr>
7587         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
7588         previous patch.
7589         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
7591 2001-08-31  Akim Demaille  <akim@epita.fr>
7593         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
7594         serious problems handling heredocs in heredocs.
7595         Reported by Nicolas Joly.
7597 2001-08-31  Akim Demaille  <akim@epita.fr>
7599         * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
7600         (Making testsuite Scripts): Update.
7602 2001-08-31  Akim Demaille  <akim@epita.fr>
7604         * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
7606 2001-08-31  Akim Demaille  <akim@epita.fr>
7608         * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
7609         (testsuite Scripts): There is no such thing as `atconfig.in'.
7610         And actually one diagram is missing: test suite runtime.
7612 2001-08-31  Akim Demaille  <akim@epita.fr>
7614         * lib/Autom4te/General.pm (&find_file): Browse the includes in the
7615         inverse order.
7617 2001-08-31  Akim Demaille  <akim@epita.fr>
7619         * bin/autoupdate.in (@include): `installcheck' revealed the path
7620         to m4sugar was lacking!
7622 2001-08-31  Akim Demaille  <akim@epita.fr>
7624         * man/Makefile.am (.x.1): We really have to pass
7625         autom4te_perllibdir.
7627 2001-08-31  Akim Demaille  <akim@epita.fr>
7629         * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
7630         debug scripts, in particular passing explicitly listed tests to
7631         run is stupid.
7633 2001-08-31  Akim Demaille  <akim@epita.fr>
7635         * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
7636         * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
7637         Use directly autom4te, not autoconf.
7638         * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
7640 2001-08-31  Akim Demaille  <akim@epita.fr>
7642         * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
7643         * bin/autoheader.in (%symbol): Strip arguments of macros.
7645 2001-08-31  Akim Demaille  <akim@epita.fr>
7647         * doc/autoconf.texi: Catch up -I, --include changes.
7649 2001-08-31  Akim Demaille  <akim@epita.fr>
7651         * bin/autom4te.in (&parse_args): Die on unknown languages.
7652         * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
7653         need for autoconf.
7654         Promote --include over --macrodir and other obsolete options.
7656 2001-08-31  Akim Demaille  <akim@epita.fr>
7658         * lib/Autom4te/General.pm ($version, $help, &getopt): New.
7659         * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
7660         * bin/autom4te.in ($autoconf): Pass --force.
7661         `print $out' doesn't print `$_' but `$out'.
7662         * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
7663         (autoheader): Pass --force since the test suite goes too fast for
7664         the time stamps.
7665         Adjust to the new autoheader messages.
7667 2001-08-31  Akim Demaille  <akim@epita.fr>
7669         * bin/autoheader.in: Handle the acconfig.h etc. junk files.
7670         Check the completeness of the #template.
7671         * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
7672         * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
7673         invocation.
7675 2001-08-31  Akim Demaille  <akim@epita.fr>
7677         * lib/Autom4te/General.pm (&find_file, &update_file): New.
7678         * bin/autoupdate.in, bin/autoheader.in: Adjust.
7679         Drop AC_MACRODIR dead for real.
7680         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
7681         `autoheader: `config.hin' is created'.
7682         * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
7684 2001-08-31  Akim Demaille  <akim@epita.fr>
7686         * bin/autoheader.in: Rewrite in Perl.
7687         * tests/autoheader: Adjust.
7689 2001-08-31  Akim Demaille  <akim@epita.fr>
7691         * bin/autoconf.in (--include, -I): New option.
7692         Map --localdir, --autoconf-dir onto it.
7693         Forward autom4te's options instead of interpreting them.
7694         * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
7695         There is no such envvar since the inception of autom4te.cfg.
7696         * bin/autom4te.in (&parse_args): Uniquify `@include'.
7697         * bin/autoupdate.in: Adjust, and perform more control.
7698         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
7699         * tests/autoconf: Dittowise.
7701 2001-08-31  Akim Demaille  <akim@epita.fr>
7703         * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
7704         * bin/autom4te.in (&find_file): Support `FILE?' standing for
7705         optionally `FILE'.
7706         Use -e, not -f, since /dev/null for instance is OK.
7707         (&parse_args): Adjust.
7708         * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
7710 2001-08-31  Akim Demaille  <akim@epita.fr>
7712         * configure.ac: Also find tested executables in bin.
7713         * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
7714         * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
7715         installed peer executables, only PATH is allowed to resolve it.
7716         Pass `autoconf_dir' via options, not via invisible envvars.
7717         * lib/Autom4te/General.pm (&find_peer): Remove.
7718         * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
7719         `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
7720         * man/Makefile.am: Let help2man rely on PATH instead of trying to
7721         find the executables for it.
7722         * tests/Makefile.am: Major cleanup.  Too lazy to document...
7723         * tests/atlocal.in: Remove all the obscure envvar manipulations.
7724         We only need PERL.
7725         * tests/atspecific.m4, tests/tools.at: Passing --localdir is
7726         indeed related to running the test suite, while passing
7727         --autoconf-dir and others is related to running non installed
7728         Autoconf executables.  So don't do that, leave it to...
7729         * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
7730         * tests/autoscan: New.
7731         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
7732         refer to library files: rely on --language.
7734 2001-08-29  Akim Demaille  <akim@epita.fr>
7736         * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
7737         s/--set/--language/.
7739 2001-08-29  Akim Demaille  <akim@epita.fr>
7741         * doc/autoconf.texi: Strip the @nodes.
7742         Suggested by Paul Eggert.
7743         (Initializing configure): Typo.
7745 2001-08-29  Akim Demaille  <akim@epita.fr>
7747         * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
7748         Suggested by Paul Eggert.
7750 2001-08-29  Akim Demaille  <akim@epita.fr>
7752         * Makefile.maint (do-po-update): Wget refuses to overwrite files:
7753         download in a tmp dir.
7755 2001-08-29  Akim Demaille  <akim@epita.fr>
7757         * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
7758         case insensitive OSes out there :(
7759         From Tim Van Holder.
7761 2001-08-29  Akim Demaille  <akim@epita.fr>
7763         * lib/autom4te.in: New.
7764         * lib/Makefile.am (edit, autom4te.cfg): New.
7765         * bin/autom4te.in (BEGIN): Simplify.
7766         Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
7767         (&load_configuration): New.  Use it.
7768         (&parse_args): Support --mode, --set, and --melt.
7769         * bin/autoconf.in: Simplify and adjust.
7770         * tests/Makefile.am (AUTOMAKE): Use --set.
7771         * tests/atlocal.in: Adjust.
7772         * BUGS: distcheck and check are weak.
7774 2001-08-29  Akim Demaille  <akim@epita.fr>
7776         * lib/autotest/general.m4: Use
7777                 foo=`(command) 2>/dev/null`
7778         not
7779                 foo=`command` 2>/dev/null
7780         (at-devnull): Rename as...
7781         (AT-devnull): this.
7782         (--clean): Remove AT-* files too.
7783         * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
7784         Reported by Nicolas Joly.
7786 2001-08-28  Akim Demaille  <akim@epita.fr>
7788         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
7789         quotes inside single quotes.
7790         Reported by Nicolas Joly.
7792 2001-08-28  Kevin Ryde  <user42@zip.com.au>
7794         * doc/autoconf.texi (Function Portability): Mention C right shifts.
7796 2001-08-27  Tim Van Holder  <tim.van.holder@pandora.be>
7798         * lib/autotest/general.m4: Reword some messages.
7799         (AT_INIT): Check for the `times' builtin before using it.
7800         Support test ranges as arguments to the testsuite.
7801         Have -e imply -d as the help text suggested.
7803 2001-08-27  Akim Demaille  <akim@epita.fr>
7805         * Makefile.maint: Formatting changes.
7806         (do-po-update, po-update, cvs-update, update): New targets.
7807         (AMTAR): Remove.
7809 2001-08-27  Akim Demaille  <akim@epita.fr>
7811         * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
7812         <at_cmd_line>: New.
7813         Pass it to debug-*.sh scripts.
7814         <AUTOTEST_PATH>: May contain absolute dir names.
7816 2001-08-27  Akim Demaille  <akim@epita.fr>
7818         * lib/autotest/general.m4 (AT_INIT): Log the command line.
7819         Support `VAR=VAL' as arguments.
7820         Compute PATH _after_ the options processing, so that AUTOTEST_PATH
7821         may be set via the command line.
7823 2001-08-27  Akim Demaille  <akim@epita.fr>
7825         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
7826         * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
7827         first the build dirs, then the src dirs.
7828         * configure.ac (AC_CONFIG_TESTDIR): Adjust.
7830 2001-08-27  Akim Demaille  <akim@epita.fr>
7832         * lib/autotest/general.m4 (AT_INIT): Output the definition of
7833         at_data_files earlier.
7834         (--clean, -c): New option.
7835         * tests/Makefile.am: Use this option.
7837 2001-08-27  Akim Demaille  <akim@epita.fr>
7839         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
7840         `ac_top_builddir' to mimic Automake's vocabulary, which much more
7841         readable.
7842         Adjust callers.
7843         * doc/autoconf.texi (Configuration Actions): Document the vars
7844         available in commands.
7845         Emphasize the risks of collisions in init-cmds.
7847 2001-08-27  Akim Demaille  <akim@epita.fr>
7849         * doc/autoconf.texi (Input) <AC_INIT>: Move to..
7850         (Initializing configure): this new node.
7852 2001-08-27  Akim Demaille  <akim@epita.fr>
7854         * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
7856 2001-08-27  Akim Demaille  <akim@epita.fr>
7858         * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
7859         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
7860         New file.
7861         * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
7863 2001-08-27  Akim Demaille  <akim@epita.fr>
7865         * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
7866         to...
7867         * lib/autoconf/autoheader.m4: this new file.
7868         * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
7869         (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
7870         Move to...
7871         * lib/autoconf/autoupdate.m4: this new file.
7873 2001-08-27  Akim Demaille  <akim@epita.fr>
7875         * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
7876         (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
7877         Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
7878         -> ac_dir).
7879         (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
7880         * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
7882 2001-08-27  Akim Demaille  <akim@epita.fr>
7884         * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
7885         (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
7886         (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
7887         (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
7888         (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
7889         (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
7890         (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
7891         (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
7892         (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
7893         (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
7894         (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
7895         (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
7896         (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
7897         (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
7898         (_AC_OUTPUT_SUBDIRS): Move to...
7899         * lib/autoconf/status.m4: this new file.
7900         * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
7901         * tests/Makefile.am, tests/suite.at: Adjust.
7903 2001-08-27  Akim Demaille  <akim@epita.fr>
7905         Automake 1.5.
7907         * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
7908         (AMTAR): Help automake define it.
7909         (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
7910         needed, 1.5 can have a macro and a target with the same name.
7911         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
7912         * m4/strip.m4: New.
7913         * m4/init.m4, m4/sanity.m4: Update.
7914         * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
7915         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
7916         * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
7917         * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
7919 2001-08-27  Akim Demaille  <akim@epita.fr>
7921         Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
7923         * lib/autoconf/version.in: Remove.
7924         * lib/m4sugar/version.in: New.
7925         * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
7926         Adjust callers.
7927         * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
7928         the name of the directory they're in, instead of the filename,
7929         since version.m4 is now in m4sugar, but m4_acversion must not be
7930         classified as an Autoconf macro.
7931         ($input_m4): Don't qualify the path to m4sugar.
7932         Rather, pass autoconf_dir to m4.
7933         * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
7934         * tests/suite.at: Require 2.52c.
7936 2001-08-27  Akim Demaille  <akim@epita.fr>
7938         testsuite.log should include config.log.
7940         * lib/autotest/autotest.m4: New.
7941         * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
7942         * tests/suite.at : Adjust.
7943         (AT_INIT): Log config.log.
7944         * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
7945         * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
7946         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
7947         (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
7948         of config.log on traps.
7949         (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
7950         Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
7951         for config.status'.
7952         Open the log as soon as possible.
7953         Use the same log introduction as configure's.
7955 2001-08-22  Paul Eggert  <eggert@twinsun.com>
7957         * doc/autoconf.texi (Indices): New node.
7958         Move indices out of the top level menu and into this submenu.
7960 2001-08-22  Akim Demaille  <akim@epita.fr>
7962         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
7963         AC_TRY_COMMAND.
7964         (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
7966 2001-08-22  Akim Demaille  <akim@epita.fr>
7968         * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
7969         (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
7970         (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
7971         * lib/autoconf/programs.m4: here.
7972         * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
7973         (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
7974         (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
7975         * lib/autoconf/programs.m4: here.
7976         (_AC_DECL_YYTEXT): Rename as...
7977         (_AC_PROG_LEX_YYTEXT_DECL): this.
7978         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
7979         * tests/Makefile.am, tests/suite.am: Adjust.
7981 2001-08-22  Akim Demaille  <akim@epita.fr>
7983         * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
7984         Move to...
7985         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
7986         here.
7987         * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
7988         * lib/autoconf/functions.m4: here.
7989         * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
7990         (AH_CHECK_LIB): Move to...
7991         * lib/autoconf/libs: this new file.
7992         * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
7993         (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
7994         * lib/autoconf/libs.m4: here.
7995         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
7997 2001-08-22  Akim Demaille  <akim@epita.fr>
7999         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
8000         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
8001         (AC_SITE_LOAD): Better logging of config.site.
8003 2001-08-20  Akim Demaille  <akim@epita.fr>
8005         * configure.ac (AT_CONFIG): Fix the path.
8006         * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
8007         can be used.
8009 2001-08-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
8011         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
8012         program with AC_LANG_PROGRAM before feeding it to
8013         AC_COMPILE_IFELSE.  Cleanup grep usage.
8015 2001-08-20  Akim Demaille  <akim@epita.fr>
8017         * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
8018         * NEWS, README, README-alpha, TODO, tests/README: This package is
8019         `Autoconf', not `autoconf' (the executable).
8021 2001-08-20  Akim Demaille  <akim@epita.fr>
8023         Info readers seem to need `Index' in the index node title :(
8025         * doc/autoconf.texi: Reverse the 2001-08-15 change which
8026         simplified index node names.
8028 2001-08-20  Akim Demaille  <akim@epita.fr>
8030         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
8031         arguments are not literals.
8032         * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
8033         Specify the output variables, and macros defined.
8035 2001-08-20  Akim Demaille  <akim@epita.fr>
8037         * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
8038         (Examining Syntax) <AC_TRY_COMPILE>
8039         (Examining Libraries) <AC_TRY_LINK>
8040         (Test Programs) <AC_TRY_RUN>: These macros double quote some of
8041         their arguments.
8042         Reported by Werner Lemberg.
8044 2001-08-20  Akim Demaille  <akim@epita.fr>
8046         * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
8047         top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
8048         Load atlocal late enough to dump it in the log.
8049         * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
8051 2001-08-20  Akim Demaille  <akim@epita.fr>
8053         * tests/torture.at (Configuring subdirectories): New test.
8054         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
8055         looking for.
8056         * m4/atconfig.m4: Be sure the let $[0] be expandable.
8057         (top_srcdir): Fix its computation.
8059 2001-08-20  Akim Demaille  <akim@epita.fr>
8061         * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
8062         * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
8063         test suite lives.
8064         Create `atconfig' automagically.
8065         Configure atlocal.in if present.
8066         * tests/atconfig.in: Remove.
8067         * tests/atlocal.in: New.
8068         * tests/Makefile.am: Adjust.
8070 2001-08-20  Akim Demaille  <akim@epita.fr>
8072         Huh!?!?!  There are still some user EOF tags used, which prevents
8073         their use in AC_CONFIG_COMMANDS for instance...
8075         * lib/autoconf/general.m4, lib/autoconf/specific.m4,
8076         * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
8077         `_CSEOF', or `_ATEOF', as appropriate.
8078         * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
8079         * lib/autotest/Makefile.am (check-local): Enforce this constraint.
8081 2001-08-20  Akim Demaille  <akim@epita.fr>
8083         * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
8084         * tests/semantics.at, tests/tools.at, tests/torture.at:
8085         s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
8087 2001-08-20  Akim Demaille  <akim@epita.fr>
8089         Autotest invokes M4sh's initialization.
8091         * lib/autotest/general.m4: Adjust the diversion names.
8092         (AT_INIT): Run AS_INIT.
8093         Use the BINSH diversion to invoke /bin/sh.
8094         * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
8095         * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
8097 2001-08-20  Akim Demaille  <akim@epita.fr>
8099         Let M4sh have its own diversions.
8101         * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
8102         (_m4_divert(NOTICE)): Rename as...
8103         * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
8104         (_m4_divert(HEADER-COMMENT)): these.
8105         (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
8106         (_m4_divert(NOTICE)): New, for Libtool.
8107         * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
8108         long ago with `_m4_divert(GROW)'.
8109         (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
8111 2001-08-20  Akim Demaille  <akim@epita.fr>
8113         * tests/base.at, tests/compile.at, tests/foreign.at,
8114         * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
8115         * tests/semantics.at, tests/suite.at, tests/tools.at,
8116         * tests/torture.at: Ask Autotest mode, not Autoconf mode.
8118 2001-08-20  Akim Demaille  <akim@epita.fr>
8120         * bin/autom4te.in (handle_output): Handle @__@.
8122 2001-08-20  Akim Demaille  <akim@epita.fr>
8124         * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
8125         * lib/autotest/general.m4: Adjust the license.
8127 2001-08-17  Paul Eggert  <eggert@twinsun.com>
8129         * doc/autoconf.texi (Function Portability): Mention snprintf,
8130         following up on a suggestion by Kevin Ryde.
8132 2001-08-17  Akim Demaille  <akim@epita.fr>
8134         * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
8135         `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
8137 2001-08-17  Akim Demaille  <akim@epita.fr>
8139         * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
8140         `$0.log' as for projects where testsuite is in src, we'd have
8141         testsuite.log created in src.
8143 2001-08-17  Akim Demaille  <akim@epita.fr>
8145         * bin/autom4te.in (&parse_args): Recognize --normalize.
8147 2001-08-17  Akim Demaille  <akim@epita.fr>
8149         Start implementing the AC_CHECK_HEADER transition scheme.
8151         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
8152         (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
8153         (AC_CHECK_HEADER): Use them.
8155 2001-08-17  Akim Demaille  <akim@epita.fr>
8157         * doc/autoconf.texi: Work around Texinfo buglets.
8158         (Transformation Rules): One example is enough, users are expected
8159         to have their brains on. And BTW, use DESTDIR.
8160         (dvar): New macro.  Use it.
8162 2001-08-17  Akim Demaille  <akim@epita.fr>
8164         * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
8165         * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
8166         looking for ChangeLogs.
8168 2001-08-17  Akim Demaille  <akim@epita.fr>
8170         * bin/autom4te.in: --normalize is a new option.
8171         * bin/autoconf.in: Use it.
8173 2001-08-17  Akim Demaille  <akim@epita.fr>
8175         * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
8176         * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
8178 2001-08-16  Paul Eggert  <eggert@twinsun.com>
8180         * doc/autoconf.texi, doc/install.texi: Put copyright notice at
8181         start, not at end.
8183 2001-08-15  Akim Demaille  <akim@epita.fr>
8185         * doc/Makefile.am (fu): New index, can't use fn because of defmac.
8186         Use it.
8188 2001-08-15  Akim Demaille  <akim@epita.fr>
8190         * doc/autoconf.texi (pr): New index.
8191         (prindex, findex): Use, merge, and output them.
8192         (Environment Variable Index, Output Variable Index)
8193         (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
8194         (Autotest Macro Index): Rename as...
8195         (Environment Variables, Output Variables,Preprocessor Symbols)
8196         (Autoconf Macros, M4 Macros, Autotest Macros): these.
8197         * doc/install.texi: Use @command.
8198         (Environment Variables): Rename as...
8199         (Defining Variables): this.
8201 2001-08-15  Akim Demaille  <akim@epita.fr>
8203         * doc/autoconf.texi (Function Portability): sprintf's return
8204         value.
8205         From Kevin Ryde.
8207 2001-08-15  Akim Demaille  <akim@epita.fr>
8209         * Makefile.maint (CVS): New.
8210         (local-check): Run changelog-check. last.
8211         (alpha): Don't depend upon local-check, since...
8212         (cvs-dist): depends upon it.
8214 2001-08-15  Tim Van Holder  <tim.van.holder@pandora.be>
8216         * tests/Makefile.am: Use a clean-local rule to remove
8217         autom4te.cache (it's a directory, not a file.
8218         * Makefile.am: Ditto (but maintainer-clean-local).
8220 2001-08-15  Akim Demaille  <akim@epita.fr>
8222         * bin/autom4te.in (@m4_warning): New.
8223         (&handle_m4): Use it.
8224         * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
8225         warnings are issued at each run.
8226         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
8227         is in the src tree.
8229 2001-08-15  Akim Demaille  <akim@epita.fr>
8231         * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
8232         don't waste time running `autoupdate --version' works.
8233         * tests/tools.at (autoupdating AC_PREREQ): Likewise.
8235 2001-08-13  Akim Demaille  <akim@epita.fr>
8237         * doc/autoconf.texi (ma): Rename this index as...
8238         (ac): this.
8240 2001-08-13  Akim Demaille  <akim@epita.fr>
8242         * Makefile.am: Remove dead code and dead comments.
8243         (pdf, html): New targets.
8244         * doc/autoconf.texi (Using Autotest): New chapter.
8245         * doc/Makefile.am (pdf): New targets.
8246         (CLEANFILES): Adjust.
8248 2001-08-13  Akim Demaille  <akim@epita.fr>
8250         * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
8251         duration of the test suite.
8253 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
8255         * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
8256         endianness for comparison instead of relying on AT_CHECK_ENV.
8258 2001-08-11  Paul Eggert  <eggert@twinsun.com>
8260         * doc/autoconf.texi, doc/install.texi: Add a copyright notice
8261         to the INSTALL file.
8263 2001-08-11  Paul Eggert  <eggert@twinsun.com>
8265         * NEWS: The autoconf manual now is distributed under the terms
8266         of the GNU Free Documentation License.
8268         * doc/autoconf.texi: Switch from old style copyright notice to FDL.
8269         Add an appendix "Copying This Manual" for the FDL.
8271         * doc/fdl.texi: New file, from
8272         <http://www.gnu.org/licenses/fdl.texi>.
8274         * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
8276 2001-08-10  Paul Eggert  <eggert@twinsun.com>
8278         * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
8279         ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
8280         README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
8281         m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
8282         m4/sanity.m4, tests/README, tests/aclocal.m4,
8283         tests/atspecific.m4, tests/base.at, tests/compile.at,
8284         tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
8285         tests/semantics.at, tests/suite.at, tests/tools.at,
8286         tests/torture.at: Add copyright notice.
8288         * tests/mktests.sh: Update year in copyright notice.
8290 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
8292         * tests/semantics.at (AC_C_BIGENDIAN): New test.
8294 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
8296         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
8297         ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
8298         * doc/autoconf.texi (C Compiler Characteristics): Update
8299         documentation for AC_C_BIGENDIAN.
8301 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
8303         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
8304         magic values from an object file when cross-compiling.
8305         Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
8307 2001-08-10  Akim Demaille  <akim@epita.fr>
8309         * bin/autom4te.in (&handle_output): Don't use `grep' with side
8310         effects.
8311         Suggested by Russ Allbery.
8313 2001-08-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
8315         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
8316         current $prefix to the sub-configures.
8318 2001-08-09  Tim Van Holder  <tim.van.holder@pandora.be>
8320         * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
8321         extension (needed on BeOS).  Reported by Guido van Rossum.
8323 2001-08-09  Akim Demaille  <akim@epita.fr>
8325         * bin/autom4te.in ($icache): Load it only if older than autom4te.
8327 2001-08-07  Akim Demaille  <akim@epita.fr>
8329         * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
8330         removed.
8331         (at-setup-line): Huh?  Be a variable `at_setup_line', not a file.
8332         No need to remove the files before and after the each test, before
8333         each test and at the end of the suite is enough.
8334         Display only the children `times', not the shell's.
8335         If the test failed or was skipped, at-times is not available.
8337 2001-08-07  Akim Demaille  <akim@epita.fr>
8339         Always produce testsuite.log, including when there are no
8340         failures.  This helps getting information on skipped tests, and
8341         duration of the tests.  Err, implement the latter btw.
8343         * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
8344         Dump information on the first run of each test.
8345         (AT_CLEANUP): Create `at-times' containing the duration of the
8346         test group.
8348 2001-08-07  Akim Demaille  <akim@epita.fr>
8350         The use of `dumpstat' revealed that `len' was used although it
8351         should not.  m4_text_wrap was using it, but in the Autoconf world
8352         where it is legal.  Hence (i) test M4sh in its own world, not
8353         Autoconf's, and (ii), ahem, fix the bug :)
8355         * lib/autotest/general.m4: Be sure the set good quotes, as tracing
8356         does not like `' instead of [].
8357         (AT_INIT): Forbid `^_?AT_'.
8358         And don't output such tokens.
8359         * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
8360         `script.as', and `autom4te.cache'.
8361         Remove `empty' and `macro' which are no longer used.
8362         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
8363         * tests/m4sugar.at: Use it.
8364         * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
8366 2001-08-07  Akim Demaille  <akim@epita.fr>
8368         * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
8370 2001-08-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
8372         * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
8374 2001-08-04  Akim Demaille  <akim@epita.fr>
8376         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
8377         (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
8378         AC_TRY_LINK.
8379         * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
8380         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
8381         (AC_F77_MAIN): Likewise.
8383 2001-08-04  Akim Demaille  <akim@epita.fr>
8385         Don't rely on M4sugar outputting the patterns in files, since we
8386         might process the output _without_ running m4, hence without these
8387         files.
8389         * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
8390         * bin/autom4te.in (@Request::includes): Remove, unused.
8391         (@Request::source): Rename as...
8392         (@Request::input): this.
8393         (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
8394         (&handle_output): Fetch the patterns from the traces.
8395         `$forbidden' and `$allowed' are constant: use m//o.
8396         (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
8397         (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
8399 2001-08-04  Akim Demaille  <akim@epita.fr>
8401         `autoconf && autoheader' is sped up.  Now, speed up `autoheader &&
8402         autoconf', i.e., in addition to caching traces, cache the output.
8404         * bin/autom4te.in (Request::cache): Rename as...
8405         (Request::id): this.
8406         ($cache, $icache, $tcache, $ocache): New.
8407         (&handle_m4): Save M4 output in the cache instead of $tmp.
8408         (&handle_output): Adjust.
8409         (&up_to_date_p): Check that the output cache is up to date too.
8410         (top level): Run `&handle_m4' iff force or the cache is invalid.
8411         Run `&handle_output' if the output cache is more recent.
8413 2001-08-04  Akim Demaille  <akim@epita.fr>
8415         * bin/autom4te.in ($force): New.
8416         (&parse_args, &print_usage): -f, --force is a new option.
8417         (&handle_output): CPP directives might have spaces after `#'.
8418         (&parse_args): The first file only can be frozen.
8420 2001-08-04  Akim Demaille  <akim@epita.fr>
8422         Don't let autom4te compute the `include' traces several times:
8423         first check that the trace cache file is up to date, and then
8424         compare its timestamp with that of the output.
8426         * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
8427         the preamble.  Don't require 5.005 as Autom4te::General does it,
8428         and better yet (use `use', not `require'!).
8429         * lib/Autom4te/Struct.pm: Rename the last occurrences of
8430         Class::Struct as Autom4te::Struct.
8431         * lib/Autom4te/General.pm (File::stat): Use it.
8432         (&mtime): New, export it.
8433         * bin/autom4te.in: Use it.
8434         Declare `$req' is invalid if it is outdated.
8435         Don't declare it valid before saving it if something went wrong.
8437 2001-08-04  Akim Demaille  <akim@epita.fr>
8439         Autom4te shall not encode Autoconf data, and preselecting traces
8440         must be proposed to the users.
8442         * bin/autom4te.in (@required_trace): Remove.
8443         (@preselect): New.
8444         (&parse_args, &print_usage): -p, --preselect is a new option.
8445         (&up_to_date_p): Adjust.
8446         * bin/autoconf.in: Preselect some Autoconf macros.
8448 2001-08-04  Akim Demaille  <akim@epita.fr>
8450         * tests/tools.at (autoconf --trace: user macros): Check traces on
8451         macros invoked without arguments, and macros invoked with multiple
8452         lines arguments.
8454 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
8456         * bin/autom4te.in (handle_traces): Fix rewriting of traces without
8457         arguments.
8459 2001-08-03  Akim Demaille  <akim@epita.fr>
8461         * bin/autoconf.in ($@): Work around the usual sh bug.
8462         From Nicolas Joly.
8464 2001-08-03  Akim Demaille  <akim@epita.fr>
8466         Clean up the handling of the M4 builtins tracing exception.
8468         * bin/autom4te.in (Request::request): Don't complete M4 builtins
8469         trace requests.
8470         (@m4_builtins): Rename as...
8471         (@m4_builtin): this.
8472         (%m4_builtin_alternate_name): New.
8473         (&parse_args): Complete the trace requests with alternate names.
8474         (&handle_traces): Hence no longer do it here.
8475         (&trace_requests): Remove, unused.
8477 2001-08-03  Akim Demaille  <akim@epita.fr>
8479         * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
8480         m4_if, and m4_wrap.
8482 2001-08-03  Akim Demaille  <akim@epita.fr>
8484         * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
8485         (m4_divert_pop): Dump the whole diversion stack when a diversion
8486         mismatch happens.
8487         * bin/autom4te.in (&handle_output): Remember of the first
8488         occurrence of a possibly undefined macro, not the last.
8489         Complain about the possibly undefined macros in the same order as
8490         the appear in the output.
8491         * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
8492         * tests/tools.at (autoconf: forbidden tokens, basic)
8493         (autoconf: forbidden tokens, exceptions): No longer sort
8494         autoconf's stderr, as it is now deterministic.
8495         Check that `dnl' is caught.
8497 2001-08-01  Akim Demaille  <akim@epita.fr>
8499         * configure.ac: Bump to 2.52c.
8501 2001-08-01  Akim Demaille  <akim@epita.fr>
8503         Version 2.52b.
8505         * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
8507 2001-08-01  Akim Demaille  <akim@epita.fr>
8509         Version 2.52a.
8511 2001-08-01  Akim Demaille  <akim@epita.fr>
8513         * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
8514         `die'.
8515         (&END): New.
8516         * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
8517         `END', as `Autom4te::General::END' will be triggered.
8518         * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
8519         * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
8520         system to run `mv', `rm', and `cmp'.
8522 2001-08-01  Akim Demaille  <akim@epita.fr>
8524         * lib/Autom4te/General.pm (&unique): New.
8525         * bin/autoscan.in (&output): Use it to issue trace requests once.
8527 2001-08-01  Akim Demaille  <akim@epita.fr>
8529         * lib/Autom4te/General.pm: New.
8530         * bin/autom4te.in (Autom4te::General): Use it.
8531         ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
8532         (&find_configure_ac, &find_slave): Remove.
8533         * bin/autoscan.in: Likewise.
8534         * bin/autoupdate.in: Likewise.
8536 2001-08-01  Akim Demaille  <akim@epita.fr>
8538         * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
8539         * autoheader.in, autoreconf.in, autoupdate.in: Move to...
8540         * bin: here, new directory.
8541         * lib/Autoconf: Rename as...
8542         * lib/Autom4te: this, to please case insensitive junkie OSes.
8544 2001-08-01  Akim Demaille  <akim@epita.fr>
8546         * autom4te.in ($m4): Handle the --nesting-limit.
8547         * autoconf.in (M4): Remove.
8549 2001-08-01  Akim Demaille  <akim@epita.fr>
8551         * autoconf.in ($AWK): Remove, no longer used.
8552         * test/tools.at: Use AT_CHECK_AUTOCONF.
8553         (AWK portability): Remove, for autoconf no longer uses AWK.
8554         (Syntax of the Perl scripts): New.
8555         * configure.ac: autoconf no longer needs an AWK with a good
8556         regexp engine.
8557         Use a static test on AC_PACKAGE_VERSION.
8558         * autom4te.in (&up_to_date_p): Output depends on the arguments.
8559         * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
8560         * tests/atconfig.in (PERL): New.
8562 2001-08-01  Akim Demaille  <akim@epita.fr>
8564         * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
8565         (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
8566         (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
8567         (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
8568         (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
8569         (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
8570         (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
8571         (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
8572         (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
8573         (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
8574         (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
8575         (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
8576         (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
8577         * lib/autoconf/c.m4: here, new file.
8579         * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
8580         (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
8581         (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
8582         (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
8583         (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
8584         (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
8585         (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
8586         (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
8587         (AC_F77_FUNC): Move to...
8588         * lib/autoconf/fortran.m4: here, new file.
8590 2001-08-01  Akim Demaille  <akim@epita.fr>
8592         * acfunctions.m4: Rename as...
8593         * lib/autoconf/functions.m4: this.
8594         * acgeneral.m4: Rename as...
8595         * lib/autoconf/general.m4: this.
8596         * acheaders.m4: Rename as...
8597         * lib/autoconf/headers.m4: this.
8598         * aclang.m4: Rename as...
8599         * lib/autoconf/lang.m4: this.
8600         * acoldnames.m4: Rename as...
8601         * lib/autoconf/oldnames.m4: this.
8602         * acspecific.m4: Rename as...
8603         * lib/autoconf/specific.m4: this.
8604         * actypes.m4: Rename as...
8605         * lib/autoconf/types.m4: this.
8606         * autoconf.m4: Rename as...
8607         * lib/autoconf/autoconf.m4: this.
8609         * m4sugar.m4: Rename as...
8610         * lib/m4sugar/m4sugar.m4: this.
8611         * m4sh.m4: Rename as...
8612         * lib/m4sugar/m4sh.m4: this.
8614         * tests/atgeneral.m4: Rename as...
8615         * lib/autotest/general.m4: this.
8617         * acfunctions: Rename as...
8618         * lib/autoscan/functions: this.
8619         * acheaders: Rename as...
8620         * lib/autoscan/headers: this.
8621         * acidentifiers: Rename as...
8622         * lib/autoscan/identifiers: this.
8623         * aclibraries: Rename as...
8624         * lib/autoscan/libraries: this.
8625         * acmakevars: Rename as...
8626         * lib/autoscan/makevars: this.
8627         * acprograms: Rename as...
8628         * lib/autoscan/programs: this.
8630 2001-08-01  Akim Demaille  <akim@epita.fr>
8632         * doc/autoconf.texi: Moving/deleting open files is not portable.
8633         Portability issues for `.' (source), and more information about sed.
8635 2001-07-25  Steven G. Johnson  <stevenj@alum.mit.edu>
8637         * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
8638         which has a special meaning and is not a reference to libibmil.a.
8639         Reported by Matteo Frigo.
8641 2001-07-25  Pavel Roskin  <proski@gnu.org>
8643         * autom4te.in (mktmpdir): Strip trailing newline from mktemp
8644         output.
8646 2001-07-25  Akim Demaille  <akim@epita.fr>
8648         * autoconf.in: Try to define the variables before using them.
8649         * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
8650         instead of `$perllibdir'.
8651         * tests/atconfig.in ($autom4te_perllibdir): Export it.
8653 2001-07-25  Akim Demaille  <akim@epita.fr>
8655         * autoconf.in (ac_LF_and_DOT): Remove, unused.
8657 2001-07-24  Akim Demaille  <akim@epita.fr>
8659         Let autoconf use autom4te for traces.
8661         * autoconf.in ($task, task trace): Remove, merely pass --trace to
8662         autom4te.
8663         * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
8664         (Because I found no way for autom4te to accept `-').
8665         * autom4te.in (&Request::request): Beware of M4 builtins.
8666         (END): Don't try to remove the content of an empty dir.
8667         (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
8668         (&handle_output): Set a default value to `$forbidden'.
8669         * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
8670         ($autoconf): Pass --debug and --verbose.
8671         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
8672         cache.
8674 2001-07-24  Akim Demaille  <akim@epita.fr>
8676         Let autoconf use autom4te to create configure.
8678         * autoconf.in ($automate): New var.
8679         (task script): Use autom4te.
8680         * autom4te.in (File::Spec): Use it.
8681         (&find_file): New.
8682         (&parse_args): --warning is -W, not -w.
8683         Find the top level files.
8684         (&handle_m4): Pass the warnings flags.
8685         Don't report verbosely m4's failures, unless requested.
8686         (&handle_output): Don't complain for forbidden tokens in comments.
8687         Be sure to report all the forbidden tokens within a single line.
8688         (&trace_format_to_m4): Preserve `$_'.
8689         (&handle_traces): Sort the output macros.
8690         (&up_to_date_p): Find the files before trying to get its time stamp.
8692 2001-07-24  Akim Demaille  <akim@epita.fr>
8694         * Makefile.am: Ship, build and install Autom4te.
8695         (SUBDIRS): Add lib.
8696         * lib/Autoconf/Struct.pm: New, from Automake 1.5.
8697         * configure.in: Require Perl.
8698         * man/autom4te.in: New.
8700 2001-07-19  Paul Eggert  <eggert@twinsun.com>
8702         * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
8703         example, rather than (exit 1); exit (which isn't portable).
8705 2001-07-18  Akim Demaille  <akim@epita.fr>
8707         Version 2.52.
8709 2001-07-18  Akim Demaille  <akim@epita.fr>
8711         The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
8712         was run, while they are needed also when it is expanded.
8713         Reported by Nicolas Joly.
8715         * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
8716         (AC_LANG_PROGRAM(C)): Use it instead of depending upon
8717         AC_F77_DUMMY_MAIN being expanded.
8719 2001-07-18  Akim Demaille  <akim@epita.fr>
8721         * configure.in: Bump to 2.51a.
8723 2001-07-17  Akim Demaille  <akim@epita.fr>
8725         Version 2.51.
8727 2001-07-17  Akim Demaille  <akim@epita.fr>
8729         * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
8730         Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
8732 2001-07-17  Akim Demaille  <akim@epita.fr>
8734         The runtime test for AC_FUNC_GETPGRP fails when prototypes are
8735         used.  Well, then use the prototypes when you can, and runtime as
8736         a last resort.
8737         Reported by Artur Frysiak
8739         * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
8740         (AC_FUNC_GETPGRP): Use it.
8741         First try to compile with 0-ary or 1-ary calls.
8743 2001-07-17  Akim Demaille  <akim@epita.fr>
8745         * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
8746         replacement type.
8747         From Paul Eggert.
8749 2001-07-17  Akim Demaille  <akim@epita.fr>
8751         * Makefile.maint: Sync. with cppi 1.10.
8753 2001-07-17  Akim Demaille  <akim@epita.fr>
8755         * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
8756         AC_F77_DUMMY_MAIN has been run.
8757         From Pavel Roskin and Steven G. Johnson.
8759 2001-07-17  Akim Demaille  <akim@epita.fr>
8761         * configure.in: Rename as...
8762         * configure.ac: this.
8764 2001-07-17  Akim Demaille  <akim@epita.fr>
8766         * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
8767         rules.
8768         From Marc Espie.
8769         * Makefile.maint (release-archive-dir): Rename as...
8770         (release_archive_dir): this, so that it can be specialized in
8771         Makefile.
8773 2001-07-14  Akim Demaille  <akim@epita.fr>
8775         * configure.in: Bump to 2.50d.
8777 2001-07-14  Akim Demaille  <akim@epita.fr>
8779         Version 2.50c.
8780         * Makefile.maint (alpha): Typo.
8782 2001-07-14  Akim Demaille  <akim@epita.fr>
8784         * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
8786 2001-07-14  Akim Demaille  <akim@epita.fr>
8788         * config/config.guess, config/config.sub, config/texinfo.tex
8789         * doc/standards.texi, doc/make-stds.texi: Update.
8791 2001-07-14  Akim Demaille  <akim@epita.fr>
8793         * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
8795 2001-07-14  Akim Demaille  <akim@epita.fr>
8797         * Makefile.maint (maintainer-check): Rename as...
8798         (maintainer-distcheck): this.
8799         (changelog-check, static-check): New.
8800         Use them.
8802 2001-07-14  Kevin Ryde  <user42@zip.com.au>
8804         * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
8805         for CXX is g++, not gcc.
8807 2001-07-14  Akim Demaille  <akim@epita.fr>
8809         * doc/autoconf.texi (Files): New subsection.
8811 2001-07-14  Akim Demaille  <akim@epita.fr>
8813         * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
8814         of...
8815         (Generic Compiler Characteristics): this.
8816         (C++ Compiler): New subsection.
8818 2001-07-14  Akim Demaille  <akim@epita.fr>
8820         * autoscan.in: Use IO::File.
8821         Adjust all the routines to use it.
8822         ($log): New file (autoscan.log).
8823         (output): Dump detailed logs into $log, and a shortened version to
8824         stderr.
8825         (&scan_makefile): Refine the regexp catching tokens in the code.
8826         * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
8827         and the `configure.ac' checking feature.
8829 2001-07-12  Akim Demaille  <akim@epita.fr>
8831         For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
8832         Reported by Michael Elizabeth Chastain.
8834         * autoconf.in: Refuse such AWK.
8835         * configure.in: Likewise.
8836         * Makefile.am (acversion.m4): Do not use move-if-change this file
8837         has dependencies.
8838         * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
8840 2001-07-10  Jens Petersen  <petersen@redhat.com>
8842         * autoscan.in (&scan_makefile): Improve programs regexp to parse
8843         things like "g++", "file.c" and "some-conf" as tokens.
8844         (&scan_file): Match C++ files extensions.
8845         If the filename extension is C++ then ask for c++.
8847 2001-07-05  Steven G. Johnson  <stevenj@alum.mit.edu>
8849         * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
8850         AC_TRY_LINK_FUNC, to check whether defining a dummy
8851         main-like routine is needed for linking with F77 libs.
8853 2001-07-05  Pavel Roskin  <proski@gnu.org>
8855         * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
8856         after using break.
8857         (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
8858         linking.
8860 2001-07-05  Akim Demaille  <akim@epita.fr>
8862         * Makefile.am (move_if_change): New.  Use it instead of `mv'.
8863         (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
8864         Makes' lives.
8865         Reported by Nicolas Joly.
8867 2001-07-04  Akim Demaille  <akim@epita.fr>
8869         * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
8870         up.
8871         * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
8872         warnings from compilers.
8873         * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
8874         for all the compilers, not only GNU.  Hence move from here...
8875         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
8877 2001-07-04  Akim Demaille  <akim@epita.fr>
8879         * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
8880         (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
8881         AC_COMPILE_IFELSE.
8883 2001-07-04  Akim Demaille  <akim@epita.fr>
8885         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
8886         the ``strings.h'' change claimed below.
8888 2001-07-04  Akim Demaille  <akim@epita.fr>
8890         * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
8892 2001-07-04  Akim Demaille  <akim@epita.fr>
8894         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
8895         strings.h if usable with string.h.
8896         Suggested by Paul Eggert.
8898 2001-07-04  Akim Demaille  <akim@epita.fr>
8900         * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
8901         From Jens Petersen.
8903 2001-07-03  Akim Demaille  <akim@epita.fr>
8905         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
8906         etc. in the log.
8908 2001-07-03  Akim Demaille  <akim@epita.fr>
8910         * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
8911         compiler, not the preprocessor.
8912         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
8913         dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
8914         the right thing.
8915         * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
8916         earlier if there are.
8918 2001-07-03  Akim Demaille  <akim@epita.fr>
8920         * autoscan.in ($initfile): Remove.
8921         (&find_file): Rename as...
8922         (&scan_file): this.
8923         Immediately scan the current file, instead of gathering them, and
8924         later having them handled by &scan_files.
8925         (&scan_files): Merely invoke Find::File.
8926         Adjust.
8928 2001-07-02  Akim Demaille  <akim@epita.fr>
8930         * autoscan.in: Formatting changes, matching the invocation order.
8931         (File::Find): Use it instead of Perl 4's `find.pl'.
8932         (&wanted): Rename as...
8933         (&find_file): this.
8935 2001-07-01  Pavel Roskin  <proski@gnu.org>
8937         * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
8938         break in the argument to AC_TRY_LINK_FUNC.
8939         (AC_F77_MAIN): Remove conftest* after using break in the
8940         argument to AC_TRY_LINK.
8942 2001-07-01  Steven G. Johnson  <stevenj@alum.mit.edu>
8944         Add alternate 'main' routine detection for linking C/C++ with Fortran,
8945         fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
8947         * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
8948         dummy alternate main is required even if the user provides her own
8949         'main'.
8950         (AC_F77_MAIN): New macro to detect whether it is possible to
8951         provide an alternate 'main' function name, using the 'main' from
8952         the Fortran libraries.
8953         (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
8954         cross-language link tests can be performed successfully.
8955         (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN.  Also put $FLIBS
8956         after $LIBS, for consistency; this should be the general rule since
8957         the user may want to link to Fortran libraries that require $FLIBS.
8958         * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
8960 2001-06-29  Pavel Roskin  <proski@gnu.org>
8962         * atgeneral.m4 (AT_CHECK): Add a newline to the end of
8963         at-stdout and at-stderr instead of removing the newline
8964         from the echo output, which is not guaranteed to work.
8966 2001-06-28  Jens Petersen  <petersen@redhat.com>
8968         * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
8969         confdefs.h when non-zero.
8971 2001-06-28  Akim Demaille  <akim@epita.fr>
8973         * configure.in: Bump to 2.50c.
8975 2001-06-26  Akim Demaille  <akim@epita.fr>
8977         Version 2.50b.
8979 2001-06-26  Akim Demaille  <akim@epita.fr>
8981         Version 2.50a.
8983 2001-06-25  Pavel Roskin  <proski@gnu.org>
8985         * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
8986         argument, AUTOCONF-FLAGS.
8987         * tests/mktests.sh (update_exclude_list): Add
8988         AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
8989         * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
8990         AC_FUNC_WAIT3 with "-W no-obsolete".
8992 2001-06-25  Akim Demaille  <akim@epita.fr>
8994         * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
8996 2001-06-25  Akim Demaille  <akim@epita.fr>
8998         * autoscan.in (%macro): Now maps from word to list of macros.
8999         (&init_tables): Die when a word which is already handled by
9000         explicit macros is mapped to the default macro.
9001         (&print_unique): Remove, inlined in...
9002         (&output_kind): here.
9003         (File::Basename): Use it.
9004         (&output): Sort the CONFIG_FILES.
9005         * acheaders: Normalize.
9006         * acfunctions: Likewise.
9008 2001-06-25  Akim Demaille  <akim@epita.fr>
9010         * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
9011         characteristics in the logs.
9012         Suggested by Mo DeJong.
9014 2001-06-24  Akim Demaille  <akim@epita.fr>
9016         * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
9017         (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
9018         * doc/autoconf.texi (Autoconf 2.13): New section.
9020 2001-06-24  Akim Demaille  <akim@epita.fr>
9022         * autoconf.in (Task traces): Separate the error messages from the
9023         traces to improve robustness.
9025 2001-06-23  Akim Demaille  <akim@epita.fr>
9027         * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
9028         three as failures are unlikely, and speed matters.
9030 2001-06-23  Akim Demaille  <akim@epita.fr>
9032         * doc/autoconf.texi (Redefined M4 Macros): New.
9034 2001-06-23  Akim Demaille  <akim@epita.fr>
9036         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
9037         inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
9038         5.3.
9040 2001-06-23  Paolo Bonzini  <bonzini@gnu.org>
9042         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
9043         config.status targets to after the evaluation of the INIT-CMDS.
9044         Double quote config.status targets (used to be single quoted).
9046 2001-06-23  Akim Demaille  <akim@epita.fr>
9048         * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
9049         Check the content of the created file.
9050         Check the ./config.status command line invocation.
9052 2001-06-23  Akim Demaille  <akim@epita.fr>
9054         * tests/foreign.at (Libtool): Reject prehistoric versions.
9056 2001-06-23  Akim Demaille  <akim@epita.fr>
9058         * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
9059         preexisting files matching a.*.
9061 2001-06-23  Akim Demaille  <akim@epita.fr>
9063         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
9064         stderr.
9065         * doc/autoconf.texi (AC_ARG_VAR): Update.
9067 2001-06-21  Akim Demaille  <akim@epita.fr>
9069         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
9070         precious variables have changed.
9071         * tests/torture.at (AC_ARG_VAR): Adjust.
9073 2001-06-21  Akim Demaille  <akim@epita.fr>
9075         ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
9076         but some sed choke on multiple `;', and other tools (e.g.,
9077         Automake), include the separator themselves.
9079         * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
9081 2001-06-19  Tim Van Holder  <tim.van.holder@pandora.be>
9083         * doc/autoconf.texi (Functions Portability): Rename as...
9084         (Function Portability): this.
9085         (Function Portability): Document potential problems with unlink().
9087 2001-06-19  Paul Eggert  <eggert@twinsun.com>
9089         * NEWS, doc/autoconf.texi: Document quadrigraphs.
9091 2001-06-18  Akim Demaille  <akim@epita.fr>
9093         * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
9095 2001-06-18  Ruediger Kuhlmann  <info@ruediger-kuhlmann.de>
9097         * acfunctions.m4: (AC_FUNC_VFORK) rename as...
9098         (_AC_FUNC_VFORK): this.
9099         Remove AC_DEFINEs and don't guess cross-compilation values.
9100         (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
9101         (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
9102         define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
9103         vfork doesn't work.
9104         Guess values if cross-compiling, but warn.
9105         * acfunctions: Add AC_FUNC_FORK.
9106         * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
9107         and vfork appropriately.
9109 2001-06-18  Akim Demaille  <akim@epita.fr>
9111         * doc/autoconf.texi (Functions Portability): New section.
9113 2001-06-18  Akim Demaille  <akim@epita.fr>
9115         * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
9116         in $M4.
9117         Suggested by Andreas Schwab.
9119 2001-06-18  Akim Demaille  <akim@epita.fr>
9121         * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
9122         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
9123         (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
9124         (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
9125         Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
9126         and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
9127         (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
9128         the converse).
9130 2001-06-18  Akim Demaille  <akim@epita.fr>
9132         * doc/autoconf.texi (ms): New index.
9133         (Macro Index): Rename as...
9134         (Autoconf Macro Index): this.
9135         (M4 Macro Index): New appendix.
9136         (Programming in M4): New chapter.
9137         Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
9138         (Quoting): Rename as...
9139         (M$ Quotation): this.
9140         Be part of `Programming in M4).
9142 2001-06-18  Nicolas Joly  <njoly@pasteur.fr>
9144         * tests/torture.at (AC_ARG_VAR): Set variables and export them
9145         in separate statements for compatibility with Tru64 v5.1.
9147 2001-06-17  Akim Demaille  <akim@epita.fr>
9149         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
9150         current values of the precious variables, not the previously
9151         cached values.
9152         Pass precious variables which are set to config.status.
9153         * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
9154         * tests/torture.at (AC_ARG_VAR): New.
9156 2001-06-15  Paul Eggert  <eggert@twinsun.com>
9158         * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
9159         AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
9160         and explain why and how to replace them.
9161         * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
9162         * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
9164 2001-06-15  Akim Demaille  <akim@epita.fr>
9166         `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
9167         Reported by Bruno Haible.
9169         * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
9170          (_AC_ARG_VAR_PRECIOUS): to here.
9172 2001-06-15  Pavel Roskin  <proski@gnu.org>
9174         * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
9175         an unused pointer use cast to this type and `if' statement to
9176         avoid warnings from the compiler.
9177         (AC_HEADER_TIME): Likewise.
9178         * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
9179         in `if' statement to avoid warnings from the compiler. Declare
9180         ac_aggr static to avoid the need to initialize it.
9182 2001-06-14  Akim Demaille  <akim@epita.fr>
9184         * doc/autoconf.texi (Portable Shell): Move to follow `Writing
9185         Macros'.
9187 2001-06-13  Akim Demaille  <akim@epita.fr>
9189         * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
9190         Suggested by Alexander Mai.
9192 2001-06-13  Akim Demaille  <akim@epita.fr>
9194         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
9195         sys/types.h and sys/stat.h, and check for them.
9197 2001-06-13  Akim Demaille  <akim@epita.fr>
9199         * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
9200         INCLUDES.
9202 2001-06-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
9204         * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
9205         succeeds and only try adding libdnet upon a failure.
9207 2001-06-12  Akim Demaille  <akim@epita.fr>
9209         * autoscan.in (&output_kind): Output the comment only if it exists.
9210         (%kind_comment): Add entry for `programs'.
9211         (&output_programs): Use &output_kind.
9212         (&output_functions, &output_identifiers, &output_headers)
9213         (&output_programs): Inline, and remove.
9215 2001-06-12  Akim Demaille  <akim@epita.fr>
9217         * autoscan.in (%kind_comment): New.
9218         (output_kind): New.
9219         (output_functions, output_identifiers, output_headers): Use it.
9221 2001-06-12  Akim Demaille  <akim@epita.fr>
9223         * autoscan.in (&print_unique): Take `$kind' and `$word' as
9224         arguments, to factor indirections into `%macro' and `%used'.
9225         (%generic_macro): Fix a typo.
9227 2001-06-12  Akim Demaille  <akim@epita.fr>
9229         * aclibraries: New.
9230         * autoscan.in (@kinds): Add `libraries'.
9231         Use `@kinds' instead of hard coded lists.
9232         (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
9233         Remove, replaced by...
9234         (%used): this.
9236 2001-06-12  Akim Demaille  <akim@epita.fr>
9238         * autoscan.in (%functions_macros %headers_macros)
9239         (%identifiers_macros %programs_macros %makevars_macros): Remove,
9240         replaced by...
9241         (%macro): New.
9243 2001-06-11  Raja R Harinath  <harinath@cs.umn.edu>
9245         * aclang.m4 (AC_NO_EXECUTABLES): Override
9246         _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
9248 2001-06-11  Akim Demaille  <akim@epita.fr>
9250         * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
9251         trailing new line.
9252         Reported by Andreas Schwab.
9254 2001-06-11  Akim Demaille  <akim@epita.fr>
9256         * Makefile.am, Makefile.maint: Typos.
9258 2001-06-09  Akim Demaille  <akim@epita.fr>
9260         * doc/autoconf.texi (Here-Documents): New section, gathering
9261         documentation about here-documents.
9262         Use `href', not `uref', and other changes.
9264 2001-06-09  Akim Demaille  <akim@epita.fr>
9266         * doc/autoconf.texi (Portable Shell Programming): Promoted as a
9267         chapter.
9269 2001-06-09  Akim Demaille  <akim@epita.fr>
9271         * doc/autoconf.texi (Limitations of Builtins): Complete the
9272         description of the here-docs penalties with Alexandre Oliva's
9273         explanations.
9275 2001-06-01  Paul Eggert  <eggert@twinsun.com>
9277         * doc/autoconf.texi: Talk about here documents and speedups.
9278         Do not use "echo" on arbitrary strings.
9279         Spell "here-documents" consistently with the standard.
9281 2001-06-09  Akim Demaille  <akim@epita.fr>
9283         * doc/autoconf.texi (Concept Index): Introduce it.
9284         Regenerate the menus.
9286 2001-06-09  Akim Demaille  <akim@epita.fr>
9288         * Makefile.maint, GNUmakefile: New, from Jim Meyering.
9289         * config/prev-version.txt: New.
9290         * config/move-if-change: New, for GNU libc.
9292 2001-06-06  Pavel Roskin  <proski@gnu.org>
9294         * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
9296 2001-06-06  Akim Demaille  <akim@epita.fr>
9298         * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
9299         properly when $1 is not a literal.
9300         Fixes PR Autoconf/187, reported by Bram Moolenaar.
9302 2001-06-06  Akim Demaille  <akim@epita.fr>
9304         Invoking AC_COPYRIGHT before AC_INIT fails.
9306         * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
9307         * acgeneral.m4 (_m4_divert(VERSION_FSF))
9308         (_m4_divert(VERSION_USER)): New.
9309         (AC_COPYRIGHT): $2 is the diversion to use.
9310         (_AC_INIT_COPYRIGHT): Use the FSF diversion.
9311         (AC_INIT): Remove dead comments as now it's commutative.
9313 2001-06-06  Akim Demaille  <akim@epita.fr>
9315         * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
9316         PR autoconf/187.
9318 2001-06-05  Akim Demaille  <akim@epita.fr>
9320         * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
9321         can be empty.
9322         `*dir' variables cannot be NONE.
9323         Reported by Mark Kettenis.
9325 2001-06-05  Paul Eggert  <eggert@twinsun.com>
9327         * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
9329 2001-06-04  Akim Demaille  <akim@epita.fr>
9331         * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
9332         (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
9333         (AC_TR_SH): Move as...
9334         * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
9335         (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
9336         (AS_TR_SH): these.
9337         (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
9338         (_AS_TR_SH_PREPARE): New.
9339         (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
9340         * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
9342 2001-06-02  Akim Demaille  <akim@epita.fr>
9344         * Makefile.am (.m4.m4f): Pass the options first.
9345         Fixes PR autoconf/182.
9347 2001-06-02  Nathan Sidwell  <nathan@codesourcery.com>
9349         GNU getopt, when POSIXLY_CORRECT does not permute options and
9350         arguments.  So pass the options first.
9351         Fixes PR autoconf/184.
9353         * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
9354         (run_m4): Remove files.
9355         (run_m4f): Remove.
9356         Update remainder of script to use them.
9357         (for warning in): Do not use a literal comma as it will not be
9358         split by IFS.
9360 2001-06-02  Christian Marquardt  <marq@gfz-potsdam.de>
9362         * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
9363         Fortran compilers to check.
9364         (_AC_PROG_F77_V): Add '-###' as a possible option to print
9365         information on library and object files.
9366         (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
9367         to check.
9369 2001-06-02  Akim Demaille  <akim@epita.fr>
9371         * autom4te.in (Request::@request): Declare with `vars', not `my',
9372         as it prevents updates via `do FILENAME'.
9374 2001-06-02  Akim Demaille  <akim@epita.fr>
9376         * configure.in (standards_texi): Remove, dead code.
9378 2001-06-02  Akim Demaille  <akim@epita.fr>
9380         * autom4te.in: New.
9382 2001-06-02  Pavel Roskin  <proski@gnu.org>
9384         * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
9385         for signals other than 0 - exit with code 1.
9386         * m4sh.m4 (AS_TMPDIR): Likewise.
9387         * autoconf.in: Likewise. Also don't rely on exit == exit $?.
9388         * autoheader.in: Likewise.
9389         * autoreconf.in: Likewise.
9390         * tests/torture.at (Signal handling): New test for the above.
9392 2001-06-01  Akim Demaille  <akim@epita.fr>
9394         * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
9395         message.
9397 2001-05-31  Akim Demaille  <akim@epita.fr>
9399         * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
9400         Add copyright and comments.
9401         * acheaders: Add stdint.h.
9402         Suggested by Paul Eggert.
9404 2001-05-31  Akim Demaille  <akim@epita.fr>
9406         * atgeneral.m4 (AT_INIT): Use $SHELL.
9407         * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
9409 2001-05-31  Akim Demaille  <akim@epita.fr>
9411         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
9412         stdint.h.
9413         From Paul Eggert and Lars Hecking.
9415 2001-05-31  Akim Demaille  <akim@epita.fr>
9417         * tests/base.at: Adjust line numbers in error messages.
9419 2001-05-31  Akim Demaille  <akim@epita.fr>
9421         * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
9422         to emit the bangshe line.
9423         Reported by David Carter.
9425 2001-05-30  Steven G. Johnson  <stevenj@alum.mit.edu>
9427         * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
9428         Fortran (95) compilers to check.
9430 2001-05-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
9432         * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
9433         Macro Archive URL.
9435 2001-05-23  Pavel Roskin  <proski@gnu.org>
9437         * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
9438         _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
9439         (AC_PROG_CXXCPP): Likewise.
9441 2001-05-22  Akim Demaille  <akim@epita.fr>
9443         * config: New directory.
9444         * configure.in: AC_CONFIG_AUX_DIR it.
9445         * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
9447 2001-05-22  Akim Demaille  <akim@epita.fr>
9449         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
9450         * autoupdate.in: Specify the Emacs mode.
9451         * acversion.m4.in: Rename as...
9452         * acversion.m4: this.
9453         * tests/Makefile.am (CLEANFILES): More garbage.
9455 2001-05-22  Akim Demaille  <akim@epita.fr>
9457         * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
9458         Rename as...
9459         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
9460         these.
9462 2001-05-21  Akim Demaille  <akim@epita.fr>
9464         * configure.in: Bump to 2.50a.
9466 -----
9468 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9470 This file is part of GNU Autoconf.
9472 GNU Autoconf is free software; you can redistribute it and/or modify
9473 it under the terms of the GNU General Public License as published by
9474 the Free Software Foundation; either version 2, or (at your option)
9475 any later version.
9477 GNU Autoconf is distributed in the hope that it will be useful,
9478 but WITHOUT ANY WARRANTY; without even the implied warranty of
9479 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
9480 GNU General Public License for more details.
9482 You should have received a copy of the GNU General Public License
9483 along with autoconf; see the file COPYING.  If not, write to
9484 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
9485 Boston, MA 02110-1301, USA.