1 2008-11-09 Paolo Bonzini <bonzini@gnu.org>
3 Balance parentheses in _AC_CACHE_DUMP.
4 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Balance parentheses
5 without introducing \).
7 2008-11-07 Eric Blake <ebb9@byu.net>
9 Further doc updates for AC_CHECK_HEADER change.
10 * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
11 new default, and make it more obvious that using [-] is generally
14 2008-11-07 Eric Blake <ebb9@byu.net>
16 * ChangeLog: Enforce UTF-8 encoding.
18 2008-11-06 Eric Blake <ebb9@byu.net>
20 Skip preprocessor check in AC_CHECK_HEADERS_ONCE.
21 * lib/autoconf/headers.m4 (_AC_HEADERS_EXPANSION): Provide fourth
22 argument to speed up check.
24 2008-11-06 Eric Blake <ebb9@byu.net>
26 Speed up AC_CHECK_TYPE.
27 * lib/autoconf/types.m4 (AC_CHECK_TYPE): Factor out $@, and avoid
28 regex when enough arguments are present.
30 2008-11-06 Paolo Bonzini <bonzini@gnu.org>
32 Remove three forks per _AC_RUN_LOG_STDERR in the common case.
33 * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR): Avoid grep/rm/cat
34 sequence when the program's stderr was empty, while providing a
35 conftest.err file even in that case.
36 (_AC_CACHE_DUMP): Fix mismatched parenthesis.
38 2008-11-06 Paolo Bonzini <bonzini@gnu.org>
40 Change `present but cannot be compiled' behavior to use compiler result.
42 * doc/autoconf.texi (Present But Cannot Be Compiled): Document it.
43 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Implement it
45 * tests/semantics.at (AC_CHECK_HEADERS): Test new semantics.
47 2008-11-05 Eric Blake <ebb9@byu.net>
50 * lib/m4sugar/m4sugar.m4 (m4_map_args_w): New macro, undocumented
52 (_m4_split): Allow user control over separator.
53 (m4_split): Adjust caller.
54 (m4_foreach_w, m4_append_uniq_w, _m4_text_wrap): Rewrite to use
56 * tests/m4sugar.at (m4@&t@_append): Augment test keywords.
57 (M4 loops): Test new interface.
59 Use m4_set_map_sep in more places.
60 * lib/m4sugar/m4sugar.m4 (m4_set_difference, m4_set_intersection)
61 (m4_set_union): Use m4_set_map_sep rather than m4_set_foreach.
62 * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
63 Enhance documentation.
64 <m4_set_foreach>: Mention faster alternative.
65 (Looping constructs) <m4_foreach>: Likewise.
67 Unify m4_set_foreach and m4_set_map.
68 * lib/m4sugar/m4sugar.m4 (m4_set_map_sep): New macro, undocumented
70 (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
71 (m4_set_map): Adjust callers.
73 Use _m4_foreach in more places.
74 * lib/m4sugar/foreach.m4 (m4_dquote_elt, m4_join, m4_joinall)
75 (_m4_minmax, m4_set_add_all): Use _m4_foreach instead of
77 * lib/m4sugar/m4sugar.m4 (_m4_joinall): Use m4_map_args_sep
78 instead of m4_foreach or m4_map_args.
80 Unify _m4_foreach and _m4_map.
81 * lib/m4sugar/m4sugar.m4 (_m4_map): Delete, merged with...
82 (_m4_foreach): ...this.
83 (m4_foreach, m4_map, m4_mapall, m4_map_sep, _m4_mapall_sep)
84 (m4_map_args, m4_map_args_sep): Adjust callers.
85 * lib/m4sugar/foreach.m4 (_m4_map): Rename...
86 (_m4_foreach): ...to this, overwriting old definition.
88 2008-11-04 Eric Blake <ebb9@byu.net>
90 Add m4_map_args_sep, undocumented for now.
91 * lib/m4sugar/m4sugar.m4 (m4_map_args_sep): New macro.
92 (_m4_map): Change API to cover more of m4_map*.
93 * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new API.
94 (m4_map_args): Delete.
95 * tests/m4sugar.at (m4@&t@_map_args and m4@&t@_curry): Enhance
98 Improve m4_for performance.
99 * lib/m4sugar/m4sugar.m4 (_m4_for): Alter API to make it easier to
100 avoid m4_define by some clients.
101 (m4_for): Adjust caller.
102 * lib/m4sugar/foreach.m4 (_m4_foreach, m4_case, m4_bmatch)
103 (_m4_cond, _m4_bpatsubsts, _m4_shiftn, m4_do, m4_reverse)
104 (_m4_map, m4_map_args, m4_map_args_pair, _m4_list_pad)
105 (_m4_list_cmp): Likewise.
107 2008-11-04 Eric Blake <ebb9@byu.net>
109 Adjust expected output.
110 * tests/torture.at (Missing templates): Reflect added quoting.
111 Detected by Bob Proulx's buildbot.
113 Reject arguments with leading =.
114 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Detect case of
115 missing variable name, with fewer forks. Quote invalid arguments
116 in message, in case they include spaces.
117 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS)
118 (_AC_OUTPUT_MAIN_LOOP): Quote invalid arguments.
119 * lib/autotest/general.m4 (AT_INIT): Likewise.
120 * tests/base.at (configure arguments): Test this.
121 Reported by Jeff Squyres.
123 2008-11-04 Eric Blake <ebb9@byu.net>
126 * cfg.mk (fetch): Add fdl-1.3.texi.
127 * .gitattributes: Likewise.
128 * doc/autoconf.texi (GNU Free Documentation License): Point to new
130 * doc/Makefile.am (autoconf_TEXINFOS): Likewise.
131 (standards_TEXINFOS): Mention current dependence on older license.
132 * doc/fdl-1.3.texi: New upstream file.
133 * GNUmakefile: Resync from upstream.
134 * build-aux/announce-gen: Likewise.
135 * build-aux/texinfo.tex: Likewise.
137 2008-11-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
139 Point at AM_SUBST_NOTMAKE.
140 * doc/autoconf.texi (Setting Output Variables): Add cross
141 reference to new Automake macro AM_SUBST_NOTMAKE.
143 2008-11-03 Paolo Bonzini <bonzini@gnu.org>
145 Eliminate a fork per invocation of AC_LANG_CONFTEST.
146 * lib/autoconf/c.m4 (AC_LANG_CONFTEST(C)): Define instead of
148 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Add a comment at the
149 top of confdefs.h, which also works around cpp deficiencies.
150 * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Define AC_LANG_CONFTEST(xyz)
151 (AC_LANG_CONFTEST): Dispatch based on _AC_LANG.
152 (AC_LANG_CONFTEST()): New.
154 2008-11-03 Paolo Bonzini <bonzini@gnu.org>
156 Reorganize definition of languages.
157 * lib/autoconf/c.m4 (AC_LANG(C), AC_LANG(C++), AC_LANG(Objective C),
158 _AC_LANG_ABBREV(C), _AC_LANG_ABBREV(C++), _AC_LANG_ABBREV(Objective C),
159 _AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++), _AC_LANG_PREFIX(Objective C)):
160 Replace definitions with usage of AC_LANG_DEFINE.
161 (Sections 2b, 2c): Delete.
162 (Sections 1b, 1c): Move after section 2a.
163 * lib/autoconf/erlang.m4 (AC_LANG(Erlang), _AC_LANG_ABBREV(Erlang),
164 _AC_LANG_PREFIX(Erlang), AC_LANG_SOURCE(Erlang)): Replace definitions
165 with usage of AC_LANG_DEFINE.
166 (AC_LANG_ERLANG): Define using AU_DEFUN.
167 * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_LANG(Fortran 77),
168 _AC_LANG_ABBREV(Fortran), _AC_LANG_ABBREV(Fortran 77),
169 _AC_LANG_PREFIX(Fortran), _AC_LANG_PREFIX(Fortran 77),
170 _AC_LANG_SOURCE(Fortran), AC_LANG_SOURCE(Fortran 77)): Replace
171 definitions with usage of AC_LANG_DEFINE.
172 * lib/autoconf/lang.m4 (AC_LANG_DEFINE, AC_LANG_SOURCE()): New.
174 2008-11-03 Paolo Bonzini <bonzini@gnu.org>
176 Use preprocessor in cpp tests.
177 * tests/c.at (CPP tests): Use AC_CHECK_HEADERS(..., [-]).
179 2008-10-31 Paolo Bonzini <bonzini@gnu.org>
181 Rename _AC_CHECK_HEADER_OLD and _AC_CHECK_HEADER_NEW.
182 * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Adjust naming.
183 (_AC_CHECK_HEADER_PREPROC_BODY): New name of _AC_CHECK_HEADER_OLD_BODY.
184 (_AC_CHECK_HEADER_COMPILE_BODY): New name of _AC_CHECK_HEADER_NEW_BODY.
185 (_AC_CHECK_HEADER_PREPROC): New name of _AC_CHECK_HEADER_OLD.
186 (_AC_CHECK_HEADER_COMPILE): New name of _AC_CHECK_HEADER_NEW.
187 * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADER_NEW):
190 2008-10-31 Eric Blake <ebb9@byu.net>
192 Support multiple undiverts and dumpdefs at once.
193 * lib/m4sugar/m4sugar.m4 (m4_dumpdefs, m4_undivert): Allow extra
195 * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>,
196 <m4_undivert>: Document argument list change.
197 * tests/m4sugar.at (m4@&t@_divert_stack, m4@&t@_dumpdef): Test
200 Simplify diversion stack handling.
201 * lib/m4sugar/m4sugar.m4 (m4_divert_stack): Use fewer macros, and
202 avoid extra newlines.
203 (m4_divert_stack_push): Compute location here, rather than caller.
204 (m4_divert_push): Update caller.
205 (m4_divert): Likewise, and also adjust current diversion name.
206 (m4_divert_pop): Simplify rule that diversion stack must never go
208 (_m4_require_call): Bypass diversion stack when collecting
210 (m4_init): Set current diversion without requiring m4_init.
211 * lib/m4sugar/m4sh.m4 (AS_INIT): Avoid too many pops.
212 * lib/autotest/general.m4 (AT_INIT): Likewise.
213 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Schedule wrapped
214 text to run prior to m4sugar cleanup.
215 * doc/autoconf.texi (Text processing Macros) <m4_newline>: Mention
217 (Conditional constructs) <m4_ifvaln, m4_n>: Mention use of dnl.
218 * NEWS: Undo blurb about m4_divert.
219 * tests/m4sugar.at (m4@&t@_divert_stack): New test.
221 Simplify expansion stack handling.
222 * lib/m4sugar/m4sugar.m4 (m4_expansion_stack): Use fewer macros;
223 always output 'top level'.
224 (_m4_expansion_stack_entry): New macro, to format the string only
226 (m4_expansion_stack_push): Only push a macro name.
227 (m4_warn, _m4_defun_pro): Update callers.
228 (m4_expansion_stack_pop, m4_expansion_stack_dump): Delete.
229 (_m4_defun_epi, m4_fatal): Inline the calls.
230 * tests/m4sugar.at (m4@&t@_expansion_stack): New test.
232 2008-10-30 Eric Blake <ebb9@byu.net>
234 Better documentation of AC_CHECK_HEADER's fourth argument.
235 * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
236 how to suppress compiler or preprocessor header check.
237 Reported by Jeff Squyres.
239 2008-10-30 Eric Blake <ebb9@byu.net>
241 Fix LINENO testsuite failure.
242 * tests/m4sh.at (AT_DATA_LINENO): Use AS_LINENO_PREPARE, not
243 undocumented _AS_PREPARE, and move unset earlier in script.
245 Update LINENO documentation.
246 * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
247 (Special Shell Variables) <LINENO>: Mention that LINENO support in
248 child scripts may be broken. Modernize example.
250 2008-10-30 Paolo Bonzini <bonzini@gnu.org>
252 Do not check for $LINENO in generated scripts.
253 * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Do not call _AS_LINENO_PREPARE,
256 2008-10-30 Eric Blake <ebb9@byu.net>
258 Don't check for non-POSIX extensions in suggested tests.
259 * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_WORKS): Remove suggestion;
260 we still use += if available, but should not reject shells (like
261 dash) that don't provide it.
262 (_AS_DETECT_SUGGESTED): Document a policy for m4sh.
263 Reported by Paolo Bonzini.
265 2008-10-30 Paolo Bonzini <bonzini@gnu.org>
267 Pass CONFIG_SHELL down to generated scripts, and re-export SHELL.
268 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): If proceeding
269 with a given CONFIG_SHELL, move it to SHELL.
270 (AS_INIT_GENERATED): Re-export SHELL.
272 2008-10-30 Eric Blake <ebb9@byu.net>
274 Work around Solaris /bin/sh case bug.
275 * lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT): Always provide
276 a non-empty command list.
277 (AS_CASE): Always guarantee that a case will match.
278 * doc/autoconf.texi (Limitations of Builtins) <case>: Document the
279 Solaris bug, and mention AS_CASE.
281 2008-10-30 Paolo Bonzini <bonzini@gnu.org>
283 Require _AS_CR_PREPARE where appropriate.
284 * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Call _AS_CR_PREPARE.
285 (AS_PREPARE): Require _AS_CR_PREPARE.
287 Avoid walking the entire PATH when looking for a better shell.
288 * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Test shell characteristics
289 as the PATH is walked.
291 Add third argument to _AS_PATH_WALK
292 * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Do not call _AS_CR_PREPARE.
293 (_AS_PATH_WALK): Add third optional argument.
295 Trim down the length of the shell function test.
296 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Condense.
298 2008-10-29 Eric Blake <ebb9@byu.net>
300 Fix LINENO detection to work around bash and pdksh limitations.
301 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Enhance the test, so
302 that we can choose which of two tests to trust.
303 (_AS_RUN): Set flag when alternate shell is running.
304 (_AS_DETECT_EXPAND): New macro.
305 (_AS_DETECT_BETTER_SHELL): Use it to massage LINENO tests.
307 2008-10-29 Eric Blake <ebb9@byu.net>
309 Mention proper fix for zsh users.
310 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Recommend zsh
311 version known to work.
312 Suggested by Paolo Bonzini.
314 Document current beta-quality status.
315 * configure.ac: Reflect fact that change to git-version-gen
316 produces -, but not always a letter, on non-release builds.
317 * BUGS: Mention known issues.
318 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Ask for help in
319 debugging platforms with deficient shells.
321 2008-10-29 Eric Blake <ebb9@byu.net>
323 Alter signature of AS_INIT_GENERATED.
324 * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): Add parameters, and
325 manage here-doc and chmod in place. This also allows future
326 changes for optimizing the child via diversion/m4_wrap magic.
327 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
329 * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
330 Update the documentation.
332 2008-10-29 Eric Blake <ebb9@byu.net>
334 Use _m4_stack_reverse in m4_set.
335 * lib/m4sugar/m4sugar.m4 (_m4_set_contents_1)
336 (_m4_set_contents_2): Rewrite to share _m4_stack_reverse
338 (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
339 (m4_set_map): Adjust callers to new API.
341 Add m4_stack_foreach_sep.
342 * lib/m4sugar/m4sugar.m4 (m4_stack_foreach_sep)
343 (m4_stack_foreach_sep_lifo): New macros.
344 (_m4_stack_reverse): Adjust prototype, to support it.
345 (m4_copy): Use fewer macros.
346 * tests/m4sugar.at (m4@&t@_stack_foreach): Rename...
347 (m4@&t@_stack): ...and add m4_stack_foreach_sep tests.
349 2008-10-29 Bruno Haible <bruno@clisp.org>
351 Mention Sun WorkShop 6.2 OpenMP bug.
352 * doc/autoconf.texi (AC_OPENMP): Document portability pitfall.
354 2008-10-29 Paolo Bonzini <bonzini@gnu.org>
356 Rewrite handling of diversion and expansion stack.
357 * NEWS: Document stricter requirement on m4_init.
358 * lib/m4sugar/m4sugar.m4 (m4_divert_stack): New, replacing
360 (_m4_divert_stack_push): New.
361 (m4_divert): Use _m4_divert_stack_push and replace m4_define with
363 (m4_divert_push): Use _m4_divert_stack_push.
364 (m4_divert_pop): Use m4_divert_stack instead of _m4_divert_n_stack,
365 pop _m4_divert_stack instead of m4_divert_stack.
366 (m4_expansion_stack): New. Update comment above it.
367 (m4_expansion_stack_push, m4_expansion_stack_pop): Work on
368 _m4_expansion_stack instead of m4_expansion_stack.
369 (m4_expansion_stack_dump): Check presence of _m4_expansion_stack
370 instead of m4_expansion_stack. Use m4_expansion_stack's expansion
371 instead of the definition, and compensate for the trailing newline
373 (m4_warn, _m4_defun_pro, _m4_defun_epi): Check presence of
374 _m4_expansion_stack instead of m4_expansion_stack.
375 (m4_newline): Expand first argument after the newline.
376 (m4_init): Use m4_divert_stack instead of _m4_divert_n_stack,
377 * tests/m4sugar.at (m4_append, m4_text_wrap): Invoke m4_init.
378 * tests/tools.at (whitespace in file names, the empty token): Likewise.
380 2008-10-28 Eric Blake <ebb9@byu.net>
382 Reduce forks while searching for better shell.
383 * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED)
384 (_AS_DETECT_SUGGESTED): No need to provide extra subshell; _AS_RUN
385 already does the job.
386 (_AS_DETECT_BETTER_SHELL): Simplify AS_EXIT when not run in a trap
389 Undo needless efforts to protect $2 in $2_t.
390 * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY)
391 (_AC_TYPE_UNSIGNED_INT_BODY): Reduce extra quoting.
393 2008-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
395 Fix parallel test execution output lossage.
396 * lib/autotest/general.m4 (_AT_CHECK): Truncate files to hold
397 standard output and standard error before the test, use append
400 Caught by Bob Proulx' build daemons, analysis and suggested fix
401 by Stéphane Chazelas.
403 2008-10-28 Eric Blake <ebb9@byu.net>
405 Use m4_map_args in more places.
406 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_dumpdef, m4_popdef)
407 (m4_undefine, m4_combine): Use m4_map_args, rather than
410 2008-10-28 Eric Blake <ebb9@byu.net>
412 Override m4 1.4.x dumpdef, as it breaks autom4te.
413 * lib/m4sugar/m4sugar.m4 (m4_dumpdef): New implementation.
414 (m4_copy): Formatting touchup.
415 * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
416 semantic differences as well as m4_dumpdefs.
418 * tests/m4sugar.at (m4@&t@_dumpdef): New test.
420 2008-10-28 Eric Blake <ebb9@byu.net>
422 Allow m4sugar to be used without autom4te, such as in bison.
423 * lib/m4sugar/m4sugar.m4 (m4_text_wrap, m4_qlen): Document that
424 alternate escape sequences can be used.
425 (m4_text_box): Likewise. Don't output quadrigraphs.
426 (m4_qdelta): Delete unused macro.
428 2008-10-28 Paolo Bonzini <bonzini@gnu.org>
430 Add m4_stack_foreach and m4_stack_foreach_lifo.
431 * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): New from _m4_copy.
432 (m4_stack_foreach, m4_stack_foreach_lifo): New.
433 (m4_copy): Use m4_stack_foreach and m4_curry.
434 (_m4_dumpdefs_down, _m4_dumpdefs_up): Remove.
435 (m4_dumpdefs): Rewrite using m4_stack_foreach_lifo.
436 * tests/m4sugar.at (m4_stack_foreach): New test.
438 2008-10-28 Paolo Bonzini <bonzini@gnu.org>
440 use a shell function for AC_TYPE_INTx_T
441 * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY, _AC_TYPE_UNSIGNED_INT_BODY):
443 (_AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT): Define and use a shell function.
445 2008-10-28 Paolo Bonzini <bonzini@gnu.org>
447 * lib/autoconf/general.m4 (AC_CHECK_DECL): Fix AS_ESCAPE usage.
448 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL,
449 _AC_CHECK_HEADER_NEW): Likewise.
450 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
452 2008-10-28 Paolo Bonzini <bonzini@gnu.org>
454 * lib/autoconf/types.m4 (_AC_CHECK_MEMBER_BODY): New.
455 (AC_CHECK_MEMBER): Define and use a shell function.
457 2008-10-27 Eric Blake <ebb9@byu.net>
459 Prefer m4_fatal over AC_FATAL.
460 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF)
461 (AC_CHECK_MEMBER): Use non-obsolete macro name.
462 * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF): Likewise.
463 * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE, AC_SUBST):
465 * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
466 * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCY_DEFAULT)
467 (_AC_CONFIG_UNIQUE, _AC_CONFIG_REGISTER_DEST): Likewise.
469 2008-10-27 Eric Blake <ebb9@byu.net>
471 Avoid raw carriage return in scripts.
472 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Generate CR
473 via tr, rather than with literal byte.
475 Reported by Steven R. Loomis; patch suggested by Thomas Dickey.
477 2008-10-27 Eric Blake <ebb9@byu.net>
480 * lib/autotest/general.m4 (at_func_arith): Delete; replace all
481 clients with AS_VAR_ARITH instead.
482 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE): Use new
484 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Likewise.
485 * tests/torture.at (Torturing config.status): Likewise.
486 * tests/tools.at (autom4te --force): Likewise.
489 * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE, _AS_VAR_ARITH_WORKS)
490 (AS_VAR_ARITH): New macros.
491 (_AS_PREPARE, AS_PREPARE): Emit preparation.
492 * tests/m4sh.at (AS@&t@_VAR_ARITH): New test.
493 * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_ARITH>:
495 (Limitations of Usual Tools) <expr>: Mention portability problem
496 if first argument starts with -.
497 (Shell Substitutions) <$((expression))>: Mention it.
500 2008-10-27 Eric Blake <ebb9@byu.net>
502 Use read, rather than `cat`, for safe one-line files.
503 * lib/autotest/general.m4 (AT_CLEANUP): Avoid a fork, since it is
504 known that the file has only one line and no \.
505 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_RUN): Likewise.
507 2008-10-27 Paolo Bonzini <bonzini@gnu.org>
509 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE,
510 _AC_COMPUTE_INT_RUN): Add IF-SUCCESS argument.
511 (_AC_COMPUTE_INT_BODY): New.
512 (AC_COMPUTE_INT): Define and use a shell function.
514 2008-10-27 Paolo Bonzini <bonzini@gnu.org>
516 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW_BODY): Extract
517 test body here. Move head comment of _AC_CHECK_TYPE_NEW here.
518 (_AC_CHECK_TYPE_NEW): Define a shell function and call it.
520 2008-10-27 Paolo Bonzini <bonzini@gnu.org>
522 * lib/autoconf/general.m4 (_AC_CHECK_DECL_BODY): New.
523 (AC_CHECK_DECL): Use a shell function.
525 2008-10-27 Paolo Bonzini <bonzini@gnu.org>
527 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_OLD,
528 _AC_CHECK_HEADER_NEW): Use a shell function.
530 2008-10-25 Eric Blake <ebb9@byu.net>
532 Track recent copyright assignments.
535 2008-10-25 Paolo Bonzini <bonzini@gnu.org>
536 and Eric Blake <ebb9@byu.net>
538 Use a shell function for _AC_CHECK_HEADER_MONGREL.
539 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL_BODY): New
541 (_AC_CHECK_HEADER_MONGREL): Use a shell function.
543 2008-10-25 Eric Blake <ebb9@byu.net>
545 Simplify _AS_PREPARE handling of functions.
546 * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Factor...
547 (_AS_REQUIRE_SHELL_FN): ...into new helper macro.
548 (_AS_PREPARE): Temporarily redefine AS_REQUIRE_SHELL_FN to make
550 (_AS_LINENO_PREPARE): Make more efficient.
551 (_AS_MKDIR_P_PREPARE): Simplify use in _AS_PREPARE.
552 (_AS_UNSET_PREPARE): Avoid blank newline.
553 (AS_INIT): Emit as_func_unset alongside other functions.
555 2008-10-25 Eric Blake <ebb9@byu.net>
558 * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Document
560 (Limitations of Builtins): Mention AS_EXIT.
563 Use AS_EXIT in autoconf.as.
564 * bin/autoconf.as: Consistently use AS_EXIT.
566 2008-10-24 Eric Blake <ebb9@byu.net>
568 Fix m4 underquoting in AC_PROG_INSTALL.
569 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Produce accurate
572 Speed up AC_CHECK_HEADER.
573 * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Factor out $@.
575 2008-10-24 Paolo Bonzini <bonzini@gnu.org>
576 and Eric Blake <ebb9@byu.net>
578 Use a shell function for AC_CHECK_FUNC.
579 * lib/autoconf/functions.m4 (_AC_CHECK_FUNC_BODY): New macro.
580 (AC_CHECK_FUNC): Use a shell function.
581 * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Reduce number of forks.
583 2008-10-24 Eric Blake <ebb9@byu.net>
585 Work around fact that gnulib-tool doesn't use m4_copy.
586 * lib/autoconf/general.m4 (AC_LIBOBJ, AC_LIBSOURCES): Defun, not
587 define, so that an initial location is present, to account for
588 fact that gnulib-tool pushes another AC_DEFUN'd macro on top.
590 Make m4_defun_init more robust.
591 * lib/m4sugar/m4sugar.m4 (m4_defun_init): Handle indirect macro
592 names, and correct number of arguments.
593 (m4_copy): Also set up location of the copy.
594 (m4_defun): When copied, use current macro name, not original.
595 * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
598 Optimize clients of AS_REQUIRE.
599 * lib/m4sugar/m4sugar.m4 (m4_defun): Add undocumented third
601 (m4_defun_init): New undocumented macro.
602 * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG, AS_MESSAGE, AS_BASENAME)
603 (_AS_DIRNAME_EXPR, AS_DIRNAME, AS_ECHO, AS_ECHO_N, AS_TEST_X)
604 (AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK, AS_VERSION_COMPARE)
605 (AS_TR_SH, AS_TR_CPP, AS_VAR_APPEND, AS_VAR_PUSHDEF): Use it to
606 simplify these macros once the one-shot initialization is
608 * tests/m4sugar.at (m4@&t@_require: one-shot initialization): New
612 * lib/m4sugar/m4sugar.m4 (m4_copy): Add second implementation for
614 (_m4_copy): New macro, which preserves pushdef stacks.
615 (_m4_defun_pro_outer): Bypass it, for speed.
616 (m4_init): Bypass new implementation, since it breaks on m4_defn.
617 * bin/autoupdate.in (handle_autoconf_macros): Likewise.
618 * lib/autoconf/general.m4 (AC_PREREQ): Undefine before redefining,
619 now that m4_copy checks this.
620 * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
621 this, as well as m4_rename.
622 * lib/autoconf/autoconf.m4 (m4_copy): Temporarily redefine when
623 renaming builtins, since it breaks on m4_ifdef.
625 * tests/m4sugar.at (m4@&t@_defn): Enhance test.
627 2008-10-24 Eric Blake <ebb9@byu.net>
629 AC_FUNC_GETGROUPS: Revert regression.
630 * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Only set
631 ac_cv_func_getgroups_works=no when it is not available.
633 2008-10-23 Eric Blake <ebb9@byu.net>
636 * lib/autoconf/fortran.m4: Consistently use tabs.
638 2008-10-23 Chikama Masaki <masaki.chikama@gmail.com> (tiny change)
640 For gfortran on sh, ignore -little.
641 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add -little to
642 list of ignored arguments.
645 2008-10-23 Paolo Bonzini <bonzinI@gnu.org>
647 Eliminate empty lines after AC_*_IFELSE.
648 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
649 _AC_LINK_IFELSE, _AC_RUN_IFELSE): Add a dnl at end.
651 2008-10-23 Paolo Bonzini <bonzinI@gnu.org>
653 Avoid a fork in _AC_RUN_LOG and _AC_RUN_LOG_STDERR
654 * lib/autoconf/general.m4 (_AC_RUN_LOG, _AC_RUN_LOG_STDERR):
655 Return a boolean status code based on $ac_status.
657 2008-10-23 Paolo Bonzini <bonzinI@gnu.org>
659 Ensure actions can look at conftest* files.
660 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY,
661 _AC_COMPILE_IFELSE_BODY, _AC_LINK_IFELSE_BODY, _AC_RUN_IFELSE_BODY):
662 Move rm commands, except IPA files and Apple debug symbols...
663 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE,
664 _AC_RUN_IFELSE): ...in here.
665 * tests/compile.at: Add regression test.
667 2008-10-23 Eric Blake <ebb9@byu.net>
669 Remove excess dnl from m4sh.
670 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_PREPARE)
671 (_AS_SHELL_FN_WORK, _AS_SHELL_SANITIZE, AS_IF, _AS_ECHO_LOG)
672 (AS_MESSAGE, AS_ERROR, AS_BASENAME, _AS_BASENAME_PREPARE)
673 (_AS_DIRNAME_EXPR, AS_DIRNAME, _AS_DIRNAME_PREPARE, AS_ECHO)
674 (AS_ECHO_N, AS_TEST_X, AS_EXECUTABLE_P, _AS_ME_PREPARE)
675 (_AS_LINENO_PREPARE, AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK)
676 (AS_SET_CATFILE, AS_HELP_STRING, AS_TMPDIR, AS_VERSION_COMPARE)
677 (_AS_TR_SH_PREPARE, AS_TR_SH, _AS_TR_CPP_PREPARE, AS_TR_CPP)
678 (_AS_TR_PREPARE, AS_VAR_APPEND, AS_VAR_PUSHDEF)
679 (AS_INIT_GENERATED): Use fewer dnl in m4sh macro bodies.
681 2008-10-23 Paolo Bonzini <bonzini@gnu.org>
682 and Eric Blake <ebb9@byu.net>
684 Use a shell function for _AC_RUN_IFELSE.
685 * lib/autoconf/general.m4 (_AC_RUN_IFELSE_BODY): New macro.
686 (_AC_RUN_IFELSE): Use a shell function.
687 (_AC_RUN_LOG): Avoid subshell for logging.
689 2008-10-23 Eric Blake <ebb9@byu.net>
691 Formatting tweak: balance () with m4sh case statements.
692 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
693 (_AS_SHELL_SANITIZE, _AS_ECHO_N_PREPARE, _AS_ECHO_PREPARE)
694 (AS_SET_CATFILE, _AS_TEST_PREPARE): Add strategic shell comments.
695 (_AS_CASE, _AS_CASE_DEFAULT, AS_CASE): Rearrange newlines, to
696 allow output of strategic shell comments.
697 (AS_VERSION_COMPARE): Use AS_CASE.
698 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
700 2008-10-22 Jim Meyering <meyering@redhat.com>
702 AC_FUNC_GETGROUPS: always define $ac_cv_func_getgroups_works
703 * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Always define
704 the shell variable, $ac_cv_func_getgroups_works. Otherwise, if
705 it is set to "yes" in the environment and configure is run on
706 a system like mingw that lacks the getgroups function, it would
707 mistakenly define HAVE_GETGROUPS. Reported by Simon Josefsson in
708 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/15354>.
710 2008-10-22 Paolo Bonzini <bonzini@gnu.org>
711 and Eric Blake <ebb9@byu.net>
713 Use a shell function for _AC_LINK_IFELSE.
714 * lib/autoconf/general.m4 (_AC_LINK_IFELSE_BODY): New macro.
715 (_AC_LINK_IFELSE): Use a shell function.
717 2008-10-22 Eric Blake <ebb9@byu.net>
719 Fix autoconf logging commands.
720 * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED, _AC_EVAL)
721 (_AC_EVAL_STDERR, AC_RUN_LOG): Respect as_lineno.
722 (_AC_DO_ECHO): Likewise, and use fewer dnl.
723 (_AC_RUN_LOG_STDERR): Avoid subshell for logging.
725 2008-10-22 Eric Blake <ebb9@byu.net>
727 Fix testsuite failure.
728 * tests/mktests.sh (ac_exclude_list): Don't generate test for
731 2008-10-21 Eric Blake <ebb9@byu.net>
733 Improve wording related to automake and autotest.
734 * doc/autoconf.texi (Making testsuite Scripts): Clarify wording in
735 relation to automake. Mention dependency on package.m4.
736 Consolidate examples. Define AUTOM4TE.
738 Reported by William Pursell.
740 2008-10-21 Eric Blake <ebb9@byu.net>
742 Allow AS_VAR_SET_IF in shell lists.
743 * lib/m4sugar/m4sh.m4 (AS_VAR_SET_IF): Allow continuation of
745 * lib/autoconf/general.m4 (AC_CACHE_VAL): Supply newline no longer
746 provided by AS_VAR_SET_IF.
747 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Adjust
749 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
750 * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
752 Allow AS_VAR_IF in shell lists.
753 * lib/m4sugar/m4sh.m4 (AS_VAR_IF): Allow continuation of line.
754 * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Adjust clients.
755 * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
757 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
758 (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD)
759 (_AC_CHECK_HEADER_DIRENT): Likewise.
760 * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
761 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
763 * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
765 Allow AS_CASE in shell lists.
766 * lib/m4sugar/m4sh.m4 (AS_CASE): Always execute test, in case of
767 side effects. Allow continuation of script on same line as esac.
768 * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Adjust client.
769 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
770 * NEWS: Document the subtle change.
772 Allow AS_IF in shell lists.
773 * lib/m4sugar/m4sh.m4 (AS_IF): Always execute test, in case of
774 side effects. Allow continuation of script on same line as fi.
775 (_AS_DETECT_BETTER_SHELL): Adjust clients.
776 (AS_VAR_IF, AS_VAR_SET_IF): For now, supply newline no longer
778 * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Likewise.
779 * lib/autoconf/general.m4 (_AC_ENABLE_IF): Likewise.
780 (AC_EGREP_CPP, _AC_RUN_IFELSE): Adjust client.
781 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
782 * doc/autoconf.texi (Common Shell Constructs) <AS_IF>: Fix typo.
783 (Polymorphic Variables): Move mention of dnl to the only two
784 AS_VAR functions that need it.
786 2008-10-21 Paolo Bonzini <bonzini@gnu.org>
787 and Eric Blake <ebb9@byu.net>
789 Use a shell function for _AC_COMPILE_IFELSE.
790 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE_BODY): New macro.
791 (_AC_COMPILE_IFELSE): Use a shell function.
793 2008-10-21 Eric Blake <ebb9@byu.net>
796 * lib/autoconf/functions.m4 (AC_CHECK_FUNCS_ONCE): Use new macro.
797 * lib/autoconf/general.m4 (_AC_INIT_PREPARE)
798 (_AC_LIBOBJS_NORMALIZE): Likewise.
799 * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): Likewise.
800 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS)
801 (_AC_OUTPUT_CONFIG_STATUS, _AC_OUTPUT_MAIN_LOOP): Likewise.
802 * lib/autotest/general.m4 (AT_INIT): Likewise.
805 * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
806 (_AS_VAR_APPEND_WORKS, AS_VAR_APPEND): New macros.
807 (AS_PREPARE, _AS_PREPARE): Emit preparation.
808 * tests/m4sh.at (AS@&t@_VAR_APPEND): New test.
809 * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_APPEND>:
811 <AS_VAR_SET>: Mention ramification of `""` rules.
812 * NEWS: Mention new macro.
814 2008-10-21 Paolo Bonzini <bonzini@gnu.org>
815 and Eric Blake <ebb9@byu.net>
817 Use a shell function for _AC_PREPROC_IFELSE.
818 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY): New macro.
819 (_AC_PREPROC_IFELSE): Use a shell function.
820 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Factor for faster execution.
821 (AS_REQUIRE_SHELL_FN): Bypass AS_REQUIRE if function has already
824 2008-10-21 Eric Blake <ebb9@byu.net>
826 Add banners to generated files.
827 * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Use m4_text_box for
829 (AS_INIT): Add new banners at strategic points.
830 * lib/autoconf/general.m4 (AC_INIT): Alter banner location, and
831 make consistent with other banners.
832 * lib/autotest/general.m4 (AT_INIT): Make banners consistent.
834 2008-10-20 Paolo Bonzini <bonzini@gnu.org>
836 Add AC_REQUIRE_SHELL_FN and the SHELL_FN diversion.
837 * lib/autoconf/general.m4 (AC_REQUIRE_SHELL_FN): New.
838 (m4_divert(SHELL_FN)): New.
840 2008-10-20 Eric Blake <ebb9@byu.net>
842 Avoid unportable use of echo in testsuite.
843 * tests/m4sh.at (AS@&t@_VAR basics): Use AS_ECHO, since string
846 2008-10-18 Paolo Bonzini <bonzini@gnu.org>
848 Make sure that nested AS_REQUIRE do not lose the desired diversion.
849 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Expand _m4_divert_desired before
850 passing it to m4_divert_require, so that its content is not used
852 * tests/m4sh.at (Nested AS_REQUIRE): New testcase.
854 2008-10-18 Eric Blake <ebb9@byu.net>
856 Document bugs in { } handling.
857 * doc/autoconf.texi (Limitations of Builtins): Mention bug on
860 Fix some testsuite failures introduced two days ago.
861 * tests/m4sh.at (Nested AS@&t@_REQUIRE_SHELL_FN)
862 (AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require): Adjust to changed
864 Reported by Ralf Wildenhues.
866 2008-10-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
868 Show how to extract single substitutions from config.status.
869 * doc/autoconf.texi (config.status Invocation): Show example
872 2008-10-17 Eric Blake <ebb9@byu.net>
875 * lib/m4sugar/m4sugar.m4 (m4_curry, _m4_curry): New macros.
876 * tests/m4sugar.at (m4@&t@_map_args): Rename...
877 (m4@&t@_map_args and m4@&t@_curry): ...and add currying tests.
878 * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
879 currying as a way to add parameters.
880 (Evaluation Macros) <m4_curry>: Document the new macro.
883 Improve suggested test filtering.
884 * lib/m4sugar/m4sh.m4 (_AS_DETECT_SUGGESTED_PRUNE): New macro,
886 (_AS_DETECT_BETTER_SHELL): ...here, to use faster API. No need to
887 check for an empty required set.
890 * lib/m4sugar/m4sugar.m4 (m4_set_foreach): New macro.
891 * tests/m4sugar.at (m4@&t@_set): Enhance test.
892 * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
896 Document m4_map_args.
897 * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair):
899 (m4_map_args, m4_map_args_pair): ...to these names, and document.
900 (m4_version_unletter): Use the interface.
901 * lib/m4sugar/foreach.m4 (m4_map_args, m4_map_args_pair)
902 (_m4_map_args_, _m4_map_args_pair_, _m4_map_args_pair_end):
903 Perform same renames.
904 * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Adjust callers.
905 * tests/m4sugar.at (m4@&t@_map_args): New test.
906 (recursion): Adjust caller.
907 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Likewise.
908 * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
910 * NEWS: Mention the new macros.
912 2008-10-17 Eric Blake <ebb9@byu.net>
914 Reduce vertical whitespace in configure.
915 * lib/autoconf/general.m4 (AC_INIT): Silence newline output during
916 m4 side effect initializations.
917 * lib/m4sugar/m4sh.m4 (AS_PREPARE): Likewise.
919 2008-10-17 Eric Blake <ebb9@byu.net>
921 Document AS_VAR interfaces.
922 * doc/autoconf.texi (Programming in M4sh): M4sh is now prime-time.
923 (Polymorphic Variables): New node.
924 * NEWS: Update accordingly.
926 Test AS_VAR interfaces.
927 * tests/m4sh.at (AS@&t@_VAR): New test.
928 * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Force expansion of
929 _AS_TR_SH_PREPARE at top level, rather than argument collection.
930 (AS_TR_SH): Support command substitution.
933 * lib/m4sugar/m4sh.m4 (AS_VAR_COPY): New macro.
934 (AS_VAR_IF): Use it, instead of the broken AS_VAR_GET.
935 * lib/autoconf/general.m4 (AC_CACHE_CHECK): Likewise.
936 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
937 * lib/autotest/general.m4 (_AT_FINISH): Likewise.
939 Sort AS_VAR_* interfaces.
940 * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Reduce output to one line.
941 (AS_VAR_TEST_SET, AS_VAR_SET, AS_VAR_SET_IF, AS_VAR_POPDEF): Sort,
944 2008-10-16 Eric Blake <ebb9@byu.net>
946 Allow comments before functions emitted by m4sh.
947 * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Add comment
948 argument. Supply closing comment, to ease readability.
949 (_AS_MKDIR_P_PREPARE): Adjust caller.
950 (_AS_UNSET_PREPARE): Add comment.
952 Add AS_FUNCTION_DESCRIBE.
953 * lib/m4sugar/m4sh.m4 (AS_FUNCTION_DESCRIBE): New macro.
954 * lib/autotest/general.m4 (AT_INIT): Use it.
956 2008-10-16 Eric Blake <ebb9@byu.net>
958 Speed up m4_qlen with caching.
959 * lib/m4sugar/m4sugar.m4 (_m4_qlen): Renamed from old m4_qlen.
960 (m4_qlen): Cache results for speed.
962 2008-10-16 Paolo Bonzini <bonzini@gnu.org>
964 Add a testcase using more then one language.
965 * tests/compile.at (Multiple languages): New test.
967 2008-10-16 Paolo Bonzini <bonzini@gnu.org>
969 Fix Libtool's config.lt test.
970 * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Disable AS_REQUIRE while
973 2008-10-15 Eric Blake <ebb9@byu.net>
975 Break circular require chain in _AS_LINENO_PREPARE.
976 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Ensure that logging is
977 disabled when reporting LINENO failure, since logging requires
979 * doc/autoconf.texi (Initialization Macros): Recommend m4_pushdef,
980 not m4_rename, since the latter is undocumented.
981 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid
982 m4_rename, as it does not yet handle pushdef stacks.
983 Reported by Ralf Wildenhues.
985 2008-10-15 Eric Blake <ebb9@byu.net>
987 Cleanups to previous patches.
988 * doc/autoconf.texi (Portable Shell): Minor edits.
989 (Limitations of Builtins): Touch up wording.
990 * lib/m4sugar/m4sh.m4 (AS_LINENO_PUSH): Nuke trailing whitespace.
991 (_AS_SHELL_SANITIZE): Wrap comments less than 80 columns.
993 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
995 Updates to shell portability documentation.
996 * doc/autoconf.texi: Updates all references to "Portable Shell" and
997 "Limitations of Builtins" to use three-argument commands.
998 (Programming in M4sh): Document AS_ECHO, AS_ECHO_N, AS_UNSET.
999 (Portable Shell): Move here discussion about "Where is the POSIX
1000 shell?" Mention that M4sh provides a SVR2 shell and takes care
1001 of unsetting variables if necessary. Talk about M4sh and not only
1002 Autoconf-generated scripts.
1003 (Special Shell Variables): Talk about M4sh and not only
1004 Autoconf-generated scripts. Don't talk about things that Autoconf
1005 does not do. Mention problems of $LINENO with shell functions.
1006 (Limitations of Builtins). Mention AS_ECHO and AS_ECHO_N. Move
1007 discussion of eval bugs before discussion on proper use of eval.
1008 Mention AS_IF. Reword why not to use "shift N". Mention "foo=;
1009 unset foo" trick. Include M4sh code that unsets MAIL for Bash 2.01.
1010 * NEWS: Update list of documented M4sh macros.
1012 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
1014 Assume a (possibly buggy) `unset' is present after a
1015 `better shell' was found.
1016 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Use AS_UNSET.
1017 * lib/autoconf/programs.m4 (AC_PROG_SED): Use AS_UNSET.
1018 * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Provide $as_unset as an
1019 alias for AS_UNSET, for backwards compatibility.
1020 (_AS_DETECT_BETTER_SHELL): Set BASH_ENV and ENV to /dev/null in case
1021 the shell does not support unset.
1022 (_AS_SHELL_SANITIZE): Work around Bash 2.01 bugs. Unset BASH_ENV.
1023 (AS_INIT, _AS_PREPARE, AS_PREPARE): Call it.
1024 (AS_UNSET): Assume it is there but it might fail if the variable is
1025 not set. Use it throughout instead of $as_unset.
1027 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
1029 Turn AS_SHELL_SANITIZE into a for-Libtool-only wrapper.
1030 * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED): Remove
1031 m4_require of _AS_DETECT_BETTER_SHELL.
1032 (_AS_CLEANUP): Add it here.
1033 (_AS_DETECT_BETTER_SHELL): Just expand the test instead of appending it
1035 (_AS_SHELL_SANITIZE): New name of the old AS_SHELL_SANITIZE macro.
1036 (AS_SHELL_SANITIZE): New macro hacking around Libtool misuse.
1037 (AS_PREPARE): Use _AS_SHELL_SANITIZE.
1038 (AS_INIT): Add m4_provide of itself.
1040 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
1042 Use "test x$foo = xyes" to avoid upsetting Libtool's sh.test.
1043 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_SHELL_FN_WORK): Use
1044 "test x$foo = xyes".
1046 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
1048 Trim down the size of the better-shell test.
1049 * lib/m4sugar/m4sh.at (_AT_DETECT_BETTER_SHELL): Store the common
1050 snippets into shell variables.
1053 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
1055 Support a stack of LINENO values for AS_MESSAGE.
1056 * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): If defined, use $as_lineno as
1057 the line number emitted to the log file.
1058 (AS_LINENO_PUSH, AS_LINENO_POP): New.
1059 * tests/m4sh.at (LINENO Stack): New test.
1061 2008-10-14 Eric Blake <ebb9@byu.net>
1063 Correct previous patch.
1064 * doc/autoconf.texi (Shell Functions): Bash obeys Posix, after
1067 Document shell function environment pitfall.
1068 * doc/autoconf.texi (Shell Functions): Document bugs in bash,
1071 2008-10-14 Paolo Bonzini <bonzini@gnu.org>
1073 Use m4_require to implement AS_REQUIRE.
1074 * lib/m4sugar/m4sugar.m4 (_m4_require_call): Accept a third argument.
1075 (m4_require): Pass it.
1076 (m4_divert_require): New.
1077 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Rewrite using m4_divert_require.
1078 Remove comment about differences with m4_require.
1079 * tests/m4sh.at (AS_REQUIRE_SHELL_FN and m4_require): Update to test
1080 the expected behavior.
1081 (Nested AS_REQUIRE_SHELL_FN): New test.
1083 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
1085 Test AS_LINENO_PREPARE.
1086 * tests/m4sh.at: Use documented AS_LINENO_PREPARE.
1088 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
1091 * tests/m4sh.at (as_me): New test.
1093 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
1095 Add and document AS_INIT_GENERATED.
1096 * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): New.
1097 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use it.
1098 * doc/autoconf.texi (Initialization macros): Document it.
1100 2008-10-13 Eric Blake <ebb9@byu.net>
1102 Use consistent shell function style.
1103 * lib/m4sugar/m4sh.m4 (_AS_PREPARE, AS_REQUIRE_SHELL_FN)
1104 (_AS_SHELL_FN_WORK): Imitate GNU Coding Standards for C
1107 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
1109 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Place names of
1110 contributors under m4 rather than shell comments.
1112 2008-10-10 Paolo Bonzini <bonzini@gnu.org>
1114 * lib/m4sugar/m4sh.m4 (AS_ME_PREPARE, AS_LINENO_PREPARE): New.
1115 * doc/autoconf.texi (Initialization macros): Document them.
1116 (Portable Shell): Refer to AS_LINENO_PREPARE.
1117 * NEWS: Mention them.
1119 * bin/autoconf.as: Invoke AS_ME_PREPARE.
1120 * lib/autotest/general.m4: Likewise.
1122 2008-10-10 Paolo Bonzini <bonzini@gnu.org>
1124 * doc/autoconf.texi (Programming in M4sh): Make its own chapter.
1126 2008-10-10 Eric Blake <ebb9@byu.net>
1128 Fix _AS_MKDIR_P usage.
1129 * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P): Correct documentation to
1130 match implementation.
1131 (_AS_PREPARE, _AS_MKDIR_P_PREPARE): Adjust callers.
1132 * doc/autoconf.texi (Programming in M4sh) <AS_MKDIR_P>: Tweak
1133 wording to better match behavior.
1135 2008-10-10 Paolo Bonzini <bonzini@gnu.org>
1137 * doc/autoconf.texi: Be less wary of shell functions.
1138 * NEWS: Document the increased use of shell functions.
1140 2008-10-10 Paolo Bonzini <bonzini@gnu.org>
1142 * m4sugar/m4sh.m4 (_AS_MKDIR_P): New, from AS_MKDIR_P. Adjust
1143 meaning of as_mkdir_p to be `false' or a full `mkdir -p' command.
1144 (AS_MKDIR_P): Just dispatch to as_func_mkdir_p.
1145 (_AS_PREPARE): Define shell functions.
1146 (_AS_MKDIR_P_PREPARE): Set as_mkdir_p according to the above change.
1147 Define shell functions.
1149 2008-10-09 Eric Blake <ebb9@byu.net>
1151 Only prepare $as_me if it will be used.
1152 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Avoid unconditional
1154 (_AS_ECHO_LOG): Depend on $LINENO preparation.
1155 (AS_MESSAGE): Depend on $as_me preparation.
1156 (AS_TMPDIR): Use AS_ERROR, rather than a hand-rolled copy.
1158 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
1160 * m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Delay setting as_me
1161 until the M4SH-INIT diversion using _AS_ME_PREPARE.
1162 (_AS_PREPARE): Invoke _AS_EXPR_PREPARE before _AS_BASENAME_PREPARE
1163 and _AS_DIRNAME_PREPARE, and _AS_BASENAME_PREPARE and _AS_ME_PREPARE
1164 before _AS_LINENO_PREPARE.
1165 (AS_PREPARE): Include all the AS_REQUIREs manually.
1166 (_AS_ME_PREPARE): New.
1167 (_AS_LINENO_PREPARE): Use m4_defun.
1169 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
1171 * m4sugar/m4sh.m4 (_AS_BASENAME_EXPR, _AS_DIRNAME_EXPR): Do not
1172 require _AS_EXPR_PREPARE.
1173 (_AS_BASENAME_PREPARE, _AS_DIRNAME_PREPARE): Do it here.
1174 (_AS_PREPARE): Add _AS_BASENAME_PREPARE.
1176 2008-10-08 Eric Blake <ebb9@byu.net>
1179 * cfg.mk (cvs_executable_files, cvs_files): Rewrite...
1180 (fetch): ...into new target.
1181 (executable-update): Delete, now that it is unused.
1182 * maint.mk (update, local_updates, cvs_files, gnulib_repo)
1183 (wget-update, cvs-update): Likewise.
1184 * HACKING (Update the foreign files): Document new procedure.
1185 * GNUmakefile: Resync from upstream, via new 'make fetch'.
1186 * build-aux/config.guess: Likewise.
1188 2008-10-08 Paolo Bonzini <bonzini@gnu.org>
1190 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Remove.
1191 (AS_INIT): Do not call it.
1193 2008-10-08 Paolo Bonzini <bonzini@gnu.org>
1195 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Expand
1196 _AS_UNSET_PREPARE in M4SH-SANITIZE.
1198 2008-10-08 Eric Blake <ebb9@byu.net>
1200 Avoid repeating required shell tests in suggested set.
1201 * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED):
1202 Use m4_set, rather than m4_expand_once/m4_append.
1203 (_AS_DETECT_SUGGESTED): Adjust to new storage layout, and filter
1204 required tests out of suggested tests.
1205 Reported by Paolo Bonzini.
1207 2008-10-08 Paolo Bonzini <bonzini@gnu.org>
1209 Add m4sh keyword to all m4sh.at tests.
1210 * tests/m4sh.at: Add m4sh keyword to all tests. Fix comment
1213 2008-10-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1215 Document AS_VERSION_COMPARE.
1216 * doc/autoconf.texi (Programming in M4sh): Document
1220 Do not write to testsuite log fd before initialization.
1221 * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD, AT_JOB_FIFO_FD):
1222 Define fds only when initializing the log fd so early error
1223 messages do not try to write to it.
1224 * tests/autotest.at (Startup error messages): New test.
1225 * NEWS: Document this 2.63 regression.
1227 2008-10-07 Eric Blake <ebb9@byu.net>
1229 Ensure _AS_CLEANUP is defined.
1230 * lib/m4sugar/m4sh.m4 (_AS_CLEANUP): Give initial definition.
1231 * tests/m4sh.at (AS@&t@_INIT cleanup): Expose the need for this.
1233 Improve m4sh maintainability.
1234 * lib/m4sugar/m4sh.m4: Sort macros for sanitizing the shell; no
1237 Fix m4 quoting in previous patch.
1238 * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Determine diversion
1239 name prior to invoking AS_REQUIRE.
1240 Reported by Ralf Wildenhues.
1242 2008-09-18 Paolo Bonzini <bonzini@gnu.org>
1243 and Eric Blake <ebb9@byu.net>
1245 Add a separate diversion for shell functions.
1246 * lib/m4sugar/m4sh.m4 (M4SH-INIT-FN): New diversion.
1247 (AS_REQUIRE): Accept diversion parameter.
1248 (AS_REQUIRE_SHELL_FN): Use it.
1250 2008-10-06 Eric Blake <ebb9@byu.net>
1252 Add m4_default_quoted.
1253 * lib/m4sugar/m4sugar.m4 (m4_default_quoted): New macro.
1254 (m4_for, m4_expand_once, m4_text_wrap, m4_text_box): Use it.
1255 * doc/autoconf.texi (Conditional constructs): Document it.
1258 Fix build with case-insensitive make, again.
1259 * Makefile.am (pkgdata_DATA): Protect by MAKE_CASE_SENSITIVE.
1260 Reported via Keith Marshall, originally by newthinker in
1261 <http://thread.gmane.org/gmane.comp.gnu.mingw.user/27725>.
1263 2008-10-06 Bruno Haible <bruno@clisp.org>
1265 Warn about /usr/ucb on Solaris.
1266 * doc/install.texi (Particular Systems): Recommend putting
1267 /usr/ucb late in PATH, if at all.
1269 2008-10-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1271 Fix more testsuite hang corner cases.
1272 * lib/autotest/general.m4: Use the serial code path if no test
1274 * tests/autotest.at (parallel test execution): Test -j and -jN
1275 with `-k notmatched'.
1277 2008-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1279 Fix hang with `testsuite -k notmatched'.
1280 * lib/autotest/general.m4: Do not reset $at_jobs if it is equal
1281 to one. Fixes hang with `-k notmatched'.
1283 2008-10-02 Eric Blake <ebb9@byu.net>
1285 Document more binary file portability traps.
1286 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Remind
1287 reader that NUL and sed don't always mix.
1288 <tr>: Mention Solaris /usr/ucb/tr bug with \0.
1290 2008-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1292 Implement parallel Autotest test execution: testsuite --jobs.
1293 * lib/autotest/general.m4 (AT_JOB_FIFO_FD): New macro.
1294 (AT_INIT): <at_jobs>: New variable.
1295 Accept -j, -jN, --jobs[=N], document them in --help output.
1296 Implement parallel driver loop using a FIFO, enabled with --jobs
1297 and if mkfifo works; otherwise, fall back to sequential loop.
1298 (AT_SETUP): Store, do not output summary progress line if
1300 * tests/autotest.at (parallel test execution, parallel truth)
1301 (parallel fallacy, parallel skip): New tests.
1302 * doc/autoconf.texi (testsuite Invocation): Document -j, --jobs,
1303 the mkfifo requirement, and that --errexit may cause concurrent
1307 2008-09-20 Eric Blake <ebb9@byu.net>
1309 Fix sample isinf definition.
1310 * doc/autoconf.texi (Function Portability) <isinf>: Filter out NaN
1313 Reported by David Cournapeau.
1315 2008-09-16 Eric Blake <ebb9@byu.net>
1317 Fix Erlang regression, introduced 2006-11-17.
1318 * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Avoid M4 comment
1319 caused by underquoting.
1320 * NEWS: Mention this fix.
1322 Reported by BJ Terry.
1324 2008-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1326 * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Improve a bit.
1328 Mention Solaris sh ':' redirection bug.
1329 * doc/autoconf.texi (File Descriptors): Redirecting ':'
1330 in a loop causes bogus optimization with Solaris sh.
1332 2008-09-10 Eric Blake <ebb9@byu.net>
1334 Avoid testsuite bug when autom4te cache is disabled by user.
1335 * tests/tools.at (autoconf: forbidden tokens, basic): Enable
1336 cache, even if user normally disabled it.
1337 Reported by Bruno Haible.
1339 Avoid testsuite bug in presence of verbose config.site.
1340 * tests/base.at (Input/Output): Nullify config.site during test.
1341 Reported by Bob Friesenhahn.
1343 2008-09-09 Eric Blake <ebb9@byu.net>
1345 Release Version 2.63.
1346 * NEWS: Mention the release.
1348 Formatting tweaks to the manual.
1349 * doc/autoconf.texi (Introduction, Systemology)
1350 (File System Conventions, Portable C and C++)
1351 (Floating Point Portability): Allow URLs to split as needed.
1352 (Indices): Add entries, to work around texinfo bug on indices that
1353 start too close to a page break.
1354 (Particular Functions): Mention ftello.
1355 (Introduction, Language Choice): Use @enddots at sentence end.
1358 * cfg.mk (cvs_executable_files, cvs_files): Update list of files,
1359 although for now, they are still manually sync'd.
1360 * build-aux/gnupload: Update.
1361 * build-aux/config.sub: Likewise.
1362 * GNUmakefile: Likewise.
1364 2008-09-06 Eric Blake <ebb9@byu.net>
1366 Mention that Automake already supports VPATH.
1367 * doc/autoconf.texi (Build Directories): Details in this section
1368 only apply to users avoiding automake.
1370 Reported by Matej Tyc.
1372 Relax tone when warning about cross-compiler names.
1373 * lib/autoconf/programs.m4 (_AC_TOOL_WARN): Support cross-compiles
1374 with poorly named tools; the issue has been reported too many
1375 times in the last four years to pull support.
1376 * doc/autoconf.texi (Specifying Names, Generic Programs): Update
1377 documentation accordingly.
1379 Reported by Josef Tran and others, wording suggested by Ralf
1382 2008-09-01 Eric Blake <ebb9@byu.net>
1384 Improve AC_C_BIGENDIAN.
1385 * doc/autoconf.texi (C Compiler) <AC_C_BIGENDIAN>: Mention that
1386 universal builds require a config header.
1387 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Enhance comments. Check
1388 AH_HEADER at the last possible moment, so that users can use
1389 AC_CONFIG_HEADER after this macro.
1390 Reported by Stepan Kasal.
1392 Fix manual date information.
1393 * doc/autoconf.tex: UPDATED refers to the day the manual was
1394 built, not the release date of Autoconf.
1395 Based on a bison patch by Akim Demaille.
1397 2008-08-27 Eric Blake <ebb9@byu.net>
1399 Fix off-by-one bug in _m4_shiftn.
1400 * lib/m4sugar/foreach.m4 (_m4_shiftn): Handle case when shifting
1402 * tests/m4sugar.at (M4 loops): Test it.
1403 Reported by Akim Demaille.
1405 2008-08-26 Eric Blake <ebb9@byu.net>
1407 Improve INSTALL formatting.
1408 * doc/install.texi [!autoconf]: Ensure first paragraphs are
1409 indented like all others in a plain text rendering.
1410 * Makefile.am ($(srcdir)/INSTALL): Ensure plaintext formatting.
1411 Reported by Bruno Haible.
1413 2008-08-26 Stepan Kasal <skasal@redhat.com>
1415 Check for case sensitive make.
1416 * m4/make-check.m4 (AC_PROG_MAKE_CASE_SENSITIVE): New macro,...
1417 * configure.ac: ... called here.
1418 * Makefile.am ($(abs_srcdir)/INSTALL, INSTALL): Return to...
1419 ($(srcdir)/INSTALL): ...this, but enclose the rule in
1420 "if MAKE_CASE_SENSITIVE".
1422 2008-08-26 Eric Blake <ebb9@byu.net>
1424 Update invocation documentation.
1425 * doc/autoconf.texi (autoscan Invocation): Mention --debug.
1426 (autoreconf Invocation): Mention -v.
1427 (autom4te Invocation): Tie --freeze to -F, not -f.
1428 (autoupdate Invocation): Mention --prepend-include.
1429 * doc/install.texi (configure Invocation): Mention --help=short,
1430 --help=recursive, -n/--no-create, --prefix. Avoid TABs.
1431 * bin/autoscan.in ($help): Omit space before `...'.
1432 * bin/ifnames.in ($help): Likewise.
1433 * bin/autoconf.as (Usage): Likewise.
1434 * bin/autoreconf.in ($help): Likewise.
1435 * bin/autoheader.in ($help): Likewise.
1436 * bin/autom4te.in ($help): Likewise.
1437 * bin/autoupdate.in ($help): Likewise.
1438 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use
1439 `[OPTION]...', rather than `[OPTIONS]'. Mention --silent. Indent
1442 Don't let frozen __m4_version__ break downgrade to m4 1.4.x.
1443 * bin/autom4te.in: Adjust comments, now that we rely on 1.4.5+.
1444 (files_to_options): Avoid inheriting __m4_version__ from frozen
1445 file if current M4 does not support it.
1447 2008-08-25 Eric Blake <ebb9@byu.net>
1449 Adjust to recent m4 1.6 change to support m4_debugmode(d).
1450 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Move
1451 freeze-time decision of using faster 1.6 implementation...
1452 (m4_init): ...to a runtime decision, and add use of new debugmode
1455 2008-08-22 Peter O'Gorman <pogma@thewrittenword.com>
1457 Limit AC_C_BIGENDIAN univeral checks to Mac OS X.
1458 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Limit the check to
1459 __APPLE_CC__ with possible -arch flags.
1460 * NEWS: Document it.
1462 2008-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1466 2008-08-22 Eric Blake <ebb9@byu.net>
1468 * TODO: Add an item for additional m4sugar looping constructs.
1469 Suggested by Ralf Wildenhues.
1471 Add reminder to keep dual implementations in sync.
1472 * lib/m4sugar/m4sugar.m4: Add comments.
1473 * lib/m4sugar/foreach.m4: Likewise.
1474 Suggested by Ralf Wildenhues.
1476 2008-08-22 Peter Eisentraut <peter_e@gmx.net> (tiny change)
1478 Format warning and error messages to match GCS.
1479 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK)
1480 (_AC_INIT_PARSE_ARGS, _AC_CACHE_DUMP): Start warning and error
1481 messages with a lowercase letter, end them without punctuation.
1482 * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Likewise.
1483 * lib/autoconf/libs.m4 (AC_PATH_X): Likewise.
1484 * lib/autoconf/status.m4 (AC_OUTPUT, _AC_OUTPUT_MAIN_LOOP):
1486 * tests/fortran.at (GNU Fortran): Likewise.
1487 * tests/torture.at (Deep Package): Likewise.
1489 2008-08-21 Eric Blake <ebb9@byu.net>
1491 Avoid extra side effects in m4sugar list expansion.
1492 * lib/m4sugar/m4sugar.m4 (m4_mapall_sep, m4_list_cmp): Wrap
1494 (_m4_mapall_sep, _m4_list_cmp_raw): ...new helpers, to avoid
1495 duplicate side effects.
1496 (m4_version_compare): Adjust caller.
1497 * lib/m4sugar/foreach.m4 (m4_list_cmp): Rename...
1498 (_m4_list_cmp_raw): ...to match m4sugar.
1499 * doc/autoconf.texi (Looping constructs): Document the behavior of
1501 * tests/m4sugar.at (M4 loops, m4@&t@_map, m4@&t@_version_compare):
1502 Ensure only one side effect.
1503 (recursion): Fix test typo.
1504 Reported by Ralf Wildenhues.
1506 2008-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1508 * TODO: Add item for compiler default flags.
1509 Suggested by Bruno Haible.
1511 * tests/m4sh.at (AS_IF and AS_CASE): Set the expansion limit
1514 2008-08-21 Eric Blake <ebb9@byu.net>
1516 Formatting improvements.
1517 * doc/autoconf.texi: Use @file and @command, rather than @code,
1520 Document another make bug.
1521 * doc/autoconf.texi (The Make Macro SHELL): Mention bug in BSD
1522 make, GNU make <= 3.80.
1524 Tweak wording about SHELL in Makefile.
1525 * doc/autoconf.texi (The Make Macro SHELL): Stronger wording on
1526 the importance of proper SHELL settings.
1527 Reported by Bruno Haible, in
1528 http://lists.gnu.org/archive/html/bug-libtool/2008-04/msg00029.html.
1530 2008-08-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1532 Avoid timestamp races for updated input.
1533 * tests/m4sh.at (AS_IF and AS_CASE): Use `autom4te --force' for
1535 * tests/tools.at (autotools and whitespace in file names): Add
1536 --force for repeated invocations.
1538 2008-08-20 Bruno Haible <bruno@clisp.org>
1540 Add section to INSTALL about particular systems.
1541 * doc/install.texi (Particular systems): New node.
1542 * doc/autoconf.texi: Adjust menus.
1544 2008-08-19 Bruno Haible <bruno@clisp.org>
1545 and Peter O'Gorman <peter@pogma.com>
1547 Mention universal binaries in INSTALL.
1548 * doc/install.texi (Compiling For Multiple Architectures): Explain
1549 how to create universal binaries on MacOS X.
1551 2008-08-19 Jim Meyering <jim@meyering.net>
1552 Eric Blake <ebb9@byu.net>
1553 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1555 Avoid shell parse errors after interrupt due to empty ``.
1556 * doc/autoconf.texi (Shell Substitutions): Document the issue.
1557 * lib/m4sugar/m4sh.m4 (AS_VAR_IF): New function.
1558 * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Use it in place of
1559 "test AS_VAR_GET([...]) = yes"
1560 * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL): Likewise.
1561 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Likewise.
1562 (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD): Likewise.
1563 (_AC_CHECK_HEADER_DIRENT): Likewise.
1564 * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
1565 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
1566 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use
1567 temporary variable to work around the issue.
1568 * tests/foreign.at (Libtool): Quote result of command
1571 2008-08-18 Eric Blake <ebb9@byu.net>
1573 Test m4_transform without tickling shell bugs.
1574 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Relax test to
1575 something more manageable.
1576 * tests/m4sugar.at (recursion): Move stress test of
1577 m4_transform_pair here.
1578 Reported by Ralf Wildenhues.
1580 Let 'git diff' give better context for doc updates.
1581 * .gitattributes (*.texi*): Add new entry.
1582 * README-hacking: Mention how to use it.
1583 Inspired by a coreutils patch by Jim Meyering.
1585 2008-08-15 Eric Blake <ebb9@byu.net>
1587 Fix m4_map regression from 2007-10-16.
1588 * lib/m4sugar/m4sugar.m4 (_m4_apply): New macro.
1589 (m4_map): Ignore empty sublists. For a list consisting of only an
1590 empty sublist, this restores 2.61 behavior of being a no-op.
1591 (m4_map_sep): Likewise, and expand separator.
1592 (m4_mapall, m4_mapall_sep): New macros, to regain 2.62 behavior.
1593 (_m4_map): Rewrite, to be common base for all four variants.
1594 * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new prototype.
1595 * tests/m4sugar.at (m4@&t@_map): Add tests.
1596 * doc/autoconf.texi (Looping constructs) <m4_map>: Document new
1597 macros, and mention ramifications of expanded separator.
1598 * NEWS: Mention the change.
1600 2008-08-14 Eric Blake <ebb9@byu.net>
1602 Implement m4_transform_pair, to speed up AS_IF.
1603 * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair): New
1604 macros, undocumented for now.
1605 * lib/m4sugar/foreach.m4 (m4_transform, m4_transform_pair): Also
1606 the m4 1.4.x counterparts.
1607 * lib/m4sugar/m4sh.m4 (AS_IF, AS_CASE): Use it.
1608 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Test it.
1610 2008-08-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1612 * lib/autoconf/programs.m4 (AC_PATH_TARGET_TOOL)
1613 (AC_CHECK_TARGET_TOOL, AC_CHECK_TARGET_TOOLS): Require, do not
1614 warn about previous AC_CANONICAL_TARGET.
1615 (AC_CHECK_TARGET_TOOL): Add missing `$' making the macro
1616 unusable in the non-cross-compiling case.
1617 * NEWS, THANKS: Update.
1618 Report by Dave Erickson.
1620 2008-08-12 Eric Blake <ebb9@byu.net>
1623 * lib/m4sugar/foreach.m4 (m4_bmatch): Provide linear
1624 implementation for m4 1.4.x.
1625 * tests/m4sugar.at (m4@&t@_bmatch): New test.
1626 (recursion): Test the linear nature.
1627 * NEWS: Document the fix.
1629 Fix m4_cond corner case.
1630 * lib/m4sugar/foreach.m4 (_m4_cond): Ensure alternate
1631 implementation allows concatenation with subsequent text.
1632 * tests/m4sugar.at (m4@&t@_cond): Enhance test.
1634 Add test for m4_cond.
1635 * tests/m4sugar.at (m4@&t@_cond): New test.
1636 Reported by Ralf Wildenhues.
1638 2008-08-06 Eric Blake <ebb9@byu.net>
1640 Fix autoheader 2.62 regression on AC_DEFINE([__EXTENSIONS__]).
1641 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Use a
1642 unique key for the AH_VERBATIM.
1643 * tests/c.at (AC_USE_SYSTEM_EXTENSIONS): New test.
1644 * NEWS: Mention the fix.
1645 Reported by Andreas Schwab, analyzed by Stepan Kasal.
1647 Add linear m4_cond for m4 1.4.x.
1648 * lib/m4sugar/m4sugar.m4 (m4_cond): Split into...
1649 (_m4_cond): ...this, for fewer macros per iteration.
1650 * lib/m4sugar/foreach.m4 (_m4_cond): New implementation.
1651 * tests/m4sugar.at (recursion): Test it.
1652 * NEWS: Document the linear guarantee.
1654 Speed up diversion handling.
1655 * lib/m4sugar/m4sugar.m4 (m4_divert, m4_divert_push)
1656 (m4_divert_pop, m4_divert_text): Avoid dnl for fewer macro
1659 AC_C_CHAR_UNSIGNED is not strictly necessary.
1660 * doc/autoconf.texi (C Compiler) <AC_C_CHAR_UNSIGNED>: Mention a
1661 portable alternative to this macro.
1663 Reported by Hallvard B Furuseth.
1665 Update some files from upstream.
1666 * GNUmakefile: Update.
1667 * build-aux/announce-gen: Likewise.
1668 * build-aux/config.guess: Likewise.
1669 * build-aux/config.sub: Likewise.
1670 * build-aux/git-version-gen: Likewise.
1671 * build-aux/texinfo.tex: Likewise.
1672 * build-aux/vc-list-files: Likewise.
1673 * doc/make-stds.texi: Likewise.
1674 * doc/standards.texi: Likewise.
1676 2008-08-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1678 Fix AC_CONFIG_FILES([$var]) 2.62 regression.
1679 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Flatten
1680 whitespace in $ac_config_files and $ac_config_headers.
1681 * tests/torture.at (Parameterized AC_CONFIG_FILES): New test.
1682 Report by Andreas Schwab and Per Øyvind Karlsen.
1685 2008-07-30 Eric Blake <ebb9@byu.net>
1687 Fix bugs in previous version of m4_bpatsubsts.
1688 * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): Don't expand $1, and
1689 allow concatenation with subsequent text.
1690 * tests/m4sugar.at (m4@&t@_bpatsubsts): Enhance test.
1692 2008-07-29 Eric Blake <ebb9@byu.net>
1694 Add linear m4_bpatsubsts for m4 1.4.x.
1695 * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Match documentation
1696 about anchors, even for only one substitution.
1697 * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): New implementation.
1698 * doc/autoconf.texi (Conditional constructs) <m4_bpatsubsts>:
1699 Clarify behavior with regard to quoting.
1700 * tests/m4sugar.at (recursion): Test scaling of m4_bpatsubsts.
1701 (m4@&t@_bpatsubsts): New test.
1702 * NEWS: Document the linear guarantee.
1704 Tweak m4_do semantics.
1705 * lib/m4sugar/m4sugar.m4 (m4_do): Don't concat final argument with
1707 * lib/m4sugar/foreach.m4 (m4_do): Don't concat intermediate
1708 arguments, and avoid infinite loop.
1709 * doc/autoconf.texi (Evaluation Macros) <m4_do>: Document the
1711 * tests/m4sugar.at (m4@&t@_do): New test.
1714 * lib/m4sugar/m4sugar.m4 (m4_for): Use fewer macros.
1715 (_m4_for): Take additional parameter, for fewer m4_indir calls.
1716 * lib/m4sugar/foreach.m4 (_m4_foreach, _m4_shiftn, m4_do)
1717 (m4_reverse, _m4_list_pad, _m4_list_cmp): Adjust all callers.
1718 * doc/autoconf.texi (Looping constructs) <m4_for>: Document subtle
1719 semantic change caused by the optimization.
1720 * tests/m4sugar.at (M4 loops): Test the new semantics.
1722 One more m4_list_cmp tweak.
1723 * lib/m4sugar/m4sugar.m4 (_m4_list_cmp_1): Don't defer shift.
1724 * lib/m4sugar/foreach.m4 (m4_list_cmp): Fix comment.
1725 * tests/m4sugar.at (recursion): Test both directions of list
1728 Add m4_reverse, and improve m4_list_cmp.
1729 * lib/m4sugar/m4sugar.m4 (m4_reverse): New macro.
1730 (m4_list_cmp): Rewrite to give linear behavior with M4 1.6 on an
1732 * lib/m4sugar/foreach.m4 (m4_reverse): Add the M4 1.4.x
1734 * tests/m4sugar.at (recursion): Test it.
1735 * doc/autoconf.texi (Evaluation Macros) <m4_reverse>: Document
1737 (Text processing Macros) <m4_append>: Cross-reference to m4_set.
1738 * NEWS: Mention new macro.
1740 2008-07-28 Eric Blake <ebb9@byu.net>
1742 Avoid _m4_shiftn for m4 1.6 speedup.
1743 * lib/m4sugar/m4sugar.m4 (m4_foreach, _m4_foreach, m4_map)
1744 (_m4_map, m4_map_sep): Rewrite recursion to use one less m4_if.
1745 * lib/m4sugar/foreach.m4 (_m4_map): Accomodate changed signature.
1747 Implement O(n) unique element set creation.
1748 * lib/m4sugar/m4sugar.m4 (m4_set_add, m4_set_add_all)
1749 (m4_set_contains, m4_set_contents, m4_set_delete)
1750 (m4_set_difference, m4_set_dump, m4_set_empty, m4_set_foreach)
1751 (m4_set_intersection, m4_set_list, m4_set_listc, m4_set_remove)
1752 (m4_set_size, m4_set_union): New macros.
1753 * lib/m4sugar/foreach.m4 (m4_set_add_all): Add O(n) fallback for
1755 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, AC_SUBST): Use
1756 new m4_set API for the set most likely to be large.
1757 * doc/autoconf.texi (Set manipulation Macros): New node.
1758 * NEWS: Mention new macros.
1759 * tests/m4sugar.at (m4@&t@_set): New test.
1761 2008-07-25 Eric Blake <ebb9@byu.net>
1763 Avoid infinite aclocal loop.
1764 * lib/m4sugar/m4sugar.m4 (m4_init): Bypass m4_include tracing, so
1765 that aclocal doesn't insist on finding m4sugar/foreach.m4.
1767 Provide O(n) replacement macros for M4 1.4.x.
1768 * lib/m4sugar/foreach.m4: New file.
1769 (m4_foreach, m4_case, _m4_shiftn, m4_do, m4_dquote_elt, _m4_map)
1770 (m4_join, m4_joinall, m4_list_cmp, _m4_minmax): Replace m4sugar
1771 macros based on $@ recursion [fast on M4 1.6, but quadratic on M4
1772 1.4.x] with versions based on m4_for/m4_foreach [slow on 1.6, but
1774 * lib/m4sugar/m4sugar.m4 (m4_init): Dynamically load new file if
1775 older M4 is assumed.
1776 (m4_map_sep): Optimize.
1777 (m4_max, m4_min): Refactor, by adding...
1778 (_m4_max, _m4_min, _m4_minmax): ...more efficient helpers.
1779 (m4_defn, m4_popdef, m4_undefine): Use foreach recursion.
1780 * lib/m4sugar/Makefile.am (dist_m4sugarlib_DATA): Distribute new
1782 * tests/m4sugar.at (M4 loops): Add a stress test that takes
1783 forever if m4_foreach and friends are quadratic.
1784 * NEWS: Mention this.
1786 2008-07-21 Eric Blake <ebb9@byu.net>
1788 Ignore undefined macros, necessary with m4 1.6.
1789 * bin/autoupdate.in (_au___undefine): New macro,...
1790 (_au__undefine): ...wrapped by ifdef to silence m4 warnings.
1791 Reported by Ralf Wildenhues.
1794 * GNUmakefile: Grab from upstream, to fix issue where 'make
1795 install' would allow installation of stale version string.
1797 2008-07-19 Eric Blake <ebb9@byu.net>
1799 Support multiple arguments to m4_defn, m4_popdef, and m4_undefine.
1800 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Loop
1801 through all variables, per POSIX and newer m4.
1802 (_m4_text_wrap): Exploit the looping capabilities.
1803 * tests/m4sugar.at (m4@&t@_defn): Test this.
1804 * NEWS: Document it.
1805 * doc/autoconf.texi (Redefined M4 Macros) <m4_defn, m4_popdef>
1806 <m4_undefine>: Likewise.
1808 Reduce overhead of m4_builtin([defn]).
1809 * lib/m4sugar/m4sugar.m4 (_m4_defn, _m4_popdef, _m4_undefine): New
1810 internal macros, which are slightly more efficient than
1811 m4_builtin([defn]) and company.
1812 (m4_defn, m4_popdef, m4_undefine, m4_warn, m4_ifset)
1813 (_m4_dumpdefs_up, _m4_dumpdefs_down, _m4_wrap, m4_for)
1814 (_m4_divert_n_stack, m4_divert_pop, m4_expansion_stack_push)
1815 (m4_expansion_stack_dump, _m4_defun_pro, _m4_defun_epi)
1816 (_m4_defun_epi_outer, _m4_require_call, m4_combine, m4_append)
1817 (_m4_append_uniq, m4_append_uniq_w, _m4_text_wrap, m4_text_box)
1818 (m4_version_prereq): Use them.
1820 Use warnings from m4 when available.
1821 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Don't
1822 define slower wrapper if m4 will warn on our behalf; key off of
1823 __m4_version__, added alongside the new warnings in m4 1.6.
1824 * tests/m4sugar.at (m4@&t@_defn): New test.
1826 2008-07-18 Eric Blake <ebb9@byu.net>
1829 * lib/m4sugar/m4sugar.m4 (m4_joinall, _m4_joinall): New macros.
1830 * tests/m4sugar.at (m4@&t@_join): Test them.
1831 * doc/autoconf.texi (Text processing Macros) <m4_join>: Document
1835 2008-07-17 Stepan Kasal <skasal@redhat.com>
1836 and Eric Blake <ebb9@byu.net>
1838 Improve documentation of config.h.in template rules.
1839 * doc/autoconf.texi (Header Templates): Mention rules on comments
1840 and whitespace, and that the user cannot rely on #undef to survive
1841 through config.status.
1843 2008-07-16 Eric Blake <ebb9@byu.net>
1845 Revert m4_prepend; it is less efficient, and unused by bison.
1846 * lib/m4sugar/m4sugar.m4 (m4_prepend, m4_prepend_uniq)
1847 (m4_prepend_uniq_w): Delete addition from 2008-07-11.
1848 (_m4_grow_uniq_1): Rename back...
1849 (_m4_append_uniq): ...to this.
1850 * NEWS: Revert NEWS blurb.
1851 * doc/autoconf.texi (Text processing Macros) <m4_prepend>: Delete.
1852 * tests/m4sugar.at (m4@&t@_prepend): Delete.
1854 2008-07-15 Eric Blake <ebb9@byu.net>
1856 Avoid failure if version.m4 is omitted but m4_PACKAGE_* unused.
1857 * lib/m4sugar/m4sugar.m4 (m4_version_compare): Provide alternate
1858 definition for non-Autoconf clients of m4sugar.
1860 2008-07-14 Eric Blake <ebb9@byu.net>
1862 Tighten bound of potential speed of m4_append.
1863 * doc/autoconf.texi (Text processing Macros) <m4_append>
1864 <m4_prepend>: If m4 is fixed, m4_append can be linear rather than
1866 * lib/m4sugar/m4sugar.m4 (m4_append, m4_append_uniq): Fix comments.
1867 Analysis by Bruno Haible.
1869 2008-07-11 Eric Blake <ebb9@byu.net>
1871 Inherit improvements from bison's fork of m4sugar.
1872 * lib/m4sugar/m4sugar.m4 (m4_PACKAGE_VERSION): Ignore failure to
1873 find version.texi, since bison does not provide it.
1874 (m4_prepend): Add new macro, from bison.
1875 (m4_prepend_uniq, m4_prepend_uniq_w): Add new macros, for
1877 (_m4_append_uniq): Rename...
1878 (_m4_grow_uniq_1): ...to this to share implementation, and
1879 optimize initial assignment.
1880 (m4_append_uniq_w): Adjust caller.
1881 * NEWS: Document new macros.
1882 * doc/autoconf.texi (Text processing Macros) <m4_append>: Mention
1883 speed consideration.
1884 <m4_prepend>: Document the new prepend variants.
1885 * tests/m4sugar.at (m4@&t@_prepend): New test.
1887 Work around M4 1.6 warning on undefined macros.
1888 * lib/m4sugar/m4sugar.m4 (changeword, symbols): Don't rename if
1889 not already available as builtins.
1891 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1893 * doc/autoconf.texi (@dvar): Remove trailing newline.
1894 (@ovar): Likewise. Fix macro documentation.
1896 2008-07-02 Stepan Kasal <skasal@redhat.com>
1898 Add quotes to the header of autoscan-generated source.
1899 * bin/autoscan.in: Add quotes to AC_PREREQ and AC_INIT.
1901 2008-06-28 Andreas Schwab <schwab@suse.de>
1903 * doc/autoconf.texi (autoscan Invocation): Fix spacing.
1904 (autoconf Invocation): Likewise.
1905 (autoreconf Invocation): Likewise.
1906 (autoheader Invocation): Likewise.
1907 (autom4te Invocation): Likewise.
1909 2008-06-19 Eric Blake <ebb9@byu.net>
1911 Add comment explaining recent patch.
1912 * lib/autotest/general.m4 (AT_INIT) <at_pass_list>: Explain choice
1913 of * vs. ? globbing.
1915 2008-06-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1917 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not warn when not
1918 linking a file to itself.
1919 Report by Bruno Haible.
1921 2008-06-19 Eric Blake <ebb9@byu.net>
1924 * GNUmakefile: Grab from upstream, to fix VPATH 'make dist' bug.
1925 Reported by Stepan Kasal.
1927 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1929 Reorganize autotest files, factorize for parallel execution.
1930 * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD): Move definition
1931 earlier in the file.
1932 (AT_INIT): Create line number cache in
1933 $at_suite_dir/at-source-lines.
1934 <at_helper_dir>: New directory at-groups below $at_suite_dir.
1935 Add comment explaining the new directory structure.
1936 (at_func_group_prepare, at_func_group_postprocess): New shell
1937 functions to factorize per-test group work. Keep the actual
1938 test execution outside of a shell function in order to avoid
1939 zsh 4.x exit status bugs.
1940 <at_check_line_file, at_status_file, at_stdout, at_stder1>
1941 <at_stderr, at_test_source>: Turn these into per-group files
1942 below $at_helper_dir. Also store test results there in files
1943 named pass, fail, xpass, xfail, skip. Let the parent collect
1944 results from $at_helper_dir. Adjust summary statistics
1945 computation and result output.
1947 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1949 Fix '#undef variable /* comment */' transform in config headers.
1950 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): For
1951 undefined preprocessor macros that are followed by a comment
1952 in the header template, do not create nested comments in the
1954 * tests/torture.at (@%:@define header templates): Extend test.
1956 Report by Karsten Hopp <karsten@redhat.com>.
1958 2008-06-09 Eric Blake <ebb9@byu.net>
1960 Mark AC_TYPE_SIGNAL as obsolete.
1961 * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Switch to AU_DEFUN.
1962 * doc/autoconf.texi (Function Portability): Update documentation.
1963 (Particular Types): Move AC_TYPE_SIGNAL...
1964 (Obsolete Macros): ...here, and mention why.
1965 * NEWS: Mention the change.
1967 Allow lib64 as a default X library location.
1968 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Add lib64.
1969 * NEWS: Mention the change.
1971 Reported by Brad Walker.
1973 2008-06-05 Eric Blake <ebb9@byu.net>
1975 Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
1976 * lib/autotest/general.m4 (AT_KEYWORDS): Expand argument prior to
1977 converting it to lower case.
1978 * tests/autotest.at (Keywords and ranges): Test this.
1979 * NEWS: Document the fix.
1981 Reported via Karsten Hopp, by Jochen Schmitt in
1982 https://bugzilla.redhat.com/show_bug.cgi?id=449973
1984 2008-06-03 Eric Blake <ebb9@byu.net>
1986 Fix 'make dist' regression from 2008-05-08.
1987 * Makefile.am (INSTALL): Add rule, to accomodate 'make dist' after
1988 GNUmakefile's _autoconf rule removes INSTALL.
1990 2008-05-27 Eric Blake <ebb9@byu.net>
1992 Document Solaris /bin/sh redirection pitfall.
1993 * doc/autoconf.texi (File Descriptors): Mention redirection bug.
1995 2008-05-14 Eric Blake <ebb9@byu.net>
1997 Improve documentation of ! issues.
1998 * doc/autoconf.texi (Limitations of Builtins) <!>: Touch up.
1999 Reported by Noah Misch.
2001 Document some FreeBSD shell bugs.
2002 * doc/autoconf.texi (Limitations of Builtins) <!>: Mention ! issue
2003 in compound pipe commands.
2004 <export>: Mention difference of exporting an undefined variable.
2005 (Shell Functions): Mention loss of $? in entry to shell functions.
2006 Extracted from the git mailing list.
2008 2008-05-13 Stepan Kasal <kasal@ucw.cz>
2010 Work around MSYS and Cygwin bugs when dealing with trailing space.
2011 * tests/atlocal.in (func_sanitize_dir_name): Let atlocal succeed,
2012 even when platform bugs are tickled.
2013 Reported by Keith Marshall and Eric Blake.
2015 2008-05-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2017 Let AC_MSG_FAILURE report pwd.
2018 * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE):
2019 Output $ac_pwd along with fatal failure.
2020 * tests/torture.at (Deep Package): Extend test.
2021 Reported numerous times against GCC, and probably other packages.
2023 2008-05-12 Eric Blake <ebb9@byu.net>
2025 Enforce --help and --version compliance.
2026 * configure.ac (AM_INIT_AUTOMAKE): Add std-options option.
2028 2008-05-08 Keith Marshall <keithmarshall@users.sourceforge.net> (tiny change)
2030 Avoid case-insensitive `make install' vs. `INSTALL' conflict.
2031 * Makefile.am ($(srcdir)/INSTALL): Replace all references...
2032 ($(abs_srcdir)/INSTALL): ...with this.
2034 2008-05-06 Eric Blake <ebb9@byu.net>
2037 * doc/autoconf.texi (Shell Substitutions): Drop at_ prefix.
2039 Avoid overfull \hbox.
2040 * doc/autoconf.texi (Versioning): Reword to fit line size.
2042 Document $(( )) pitfalls.
2043 * doc/autoconf.texi (Shell Substitutions): Mention octal
2044 vs. decimal. Mention autotest's at_func_arith.
2046 Improve behavior of './testsuite 01'.
2047 * lib/autotest/general.m4 (AT_INIT) <at_func_validate_ranges>:
2048 Alter usage to eval its arguments, in order to normalize away
2049 leading zero. All callers updated.
2050 * tests/autotest.at (Keywords and ranges): Test range
2051 normalization with leading 0.
2053 2008-04-26 Eric Blake <ebb9@byu.net>
2055 Mention Solaris /usr/ucb/tr pitfall.
2056 * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Add section.
2057 Reported by Bruno Haible and Jim Meyering.
2059 2008-04-24 Eric Blake <ebb9@byu.net>
2061 Mention m4sugar's internal quote strings.
2062 * doc/autoconf.texi (Quadrigraphs): Mention alternate quote used
2063 in m4sugar, and how to still output it literally.
2064 * tests/m4sugar.at (m4@&t@_split): And test it.
2065 Reported by Joel E. Denny.
2067 2008-04-23 Eric Blake <ebb9@byu.net>
2069 Allow unbalanced () in m4_expand.
2070 * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Use more complex
2072 (m4_noquote, _m4_split): Use consistent complex quote.
2073 * tests/autotest.at (Left paren, Right paren): Test this.
2074 (Parentheses): Ensure new quadrigraphs still work.
2075 (AT_CHECK_AT_TITLE_CHAR): All title char tests exercise m4_expand.
2076 * NEWS: Mention the fix.
2077 * doc/autoconf.texi (Quadrigraphs): Revert mention of macros that
2078 require quadrigraphs for ().
2079 (Evaluation Macros) <m4_expand>: Relax the restriction against
2081 (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
2082 (Writing Testsuites) <AT_SETUP>: Likewise.
2083 Reported by Joel E. Denny, fix suggested by Noah Misch.
2085 2008-04-22 Eric Blake <ebb9@byu.net>
2087 Support unbalanced () in AT_SETUP by adding two new quadrigraphs.
2088 * bin/autom4te.in (handle_output): Substitute @{:@ and @:}@.
2089 (handle_traces): Likewise.
2090 * lib/m4sugar/m4sugar.m4 (m4_qlen): Account for new quadrigraphs.
2091 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Add new tests.
2092 * doc/autoconf.texi (Quadrigraphs): Document them.
2093 (Evaluation Macros) <m4_expand>: Enhance documentation.
2094 (Text processing Macros) <m4_text_box>: Document cases where
2095 quadrigraphs can help for problemetic unbalanced parentheses.
2096 (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
2097 (Writing Testsuites) <AT_SETUP>: Likewise.
2098 (Limitations of Builtins) <case>: Consolidate text on unbalanced
2099 parentheses, and add an example of creative comments.
2100 * NEWS: Document the addition.
2101 Reported by Joel E. Denny.
2103 2008-04-16 Eric Blake <ebb9@byu.net>
2105 Document pdksh exec behavior.
2106 * doc/autoconf.texi (Limitations of Builtins) <exec>: New
2108 Discovered by Jim Meyering.
2110 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2112 * tests/autotest.at (AT_CHECK_AT): Allow to pass additional
2113 arguments to the inner suite.
2114 (errexit, input from stdin): New tests.
2116 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2118 * NEWS: Post-release update.
2120 2008-04-10 Eric Blake <ebb9@byu.net>
2122 AC_AUTOCONF_VERSION might contain arbitrary macro names.
2123 * doc/autoconf.texi (Versioning): Mention problem with expansion.
2124 * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Adjust test.
2126 2008-04-09 Slava Sysoltsev <Viatcheslav.Sysoltsev@h-d-gmbh.de> (tiny change)
2128 Flush buffered output before exit.
2129 * bin/autom4te.in (handle_output): Explicitly close file.
2131 See http://lists.gnu.org/archive/html/autoconf/2008-04/msg00026.html.
2133 2008-04-08 Eric Blake <ebb9@byu.net>
2135 Generate web docs for 2.62.
2136 * doc/autoconf.texi (Evaluation Macros): Fix typo.
2137 (Notices): Use recommended means to escape RCS keyword.
2138 * cfg.mk (gnulib_dir): New macro.
2139 (web-manual): New target.
2141 2008-04-05 Eric Blake <ebb9@byu.net>
2143 Release Version 2.62.
2144 * NEWS: Mention the release.
2146 2008-04-04 Stepan Kasal <kasal@ucw.cz>
2147 and Eric Blake <ebb9@byu.net>
2149 Return back to GPLv2+, until the text of the exceptions is
2150 finalized, reverting the change from 2007-07-03 and the first
2151 part of the change from 2007-07-20.
2152 * COPYING: Revert to GPLv2.
2153 * COPYINGv3: New file, since some auxiliary build tools, used for
2154 building autoconf and not installed, are GPLv3.
2155 * Makefile.am (EXTRA_DIST): Distribute COPYINGv3.
2156 * NEWS: Remove mention of GPLv3.
2157 * README: Clarify situation regarding GPLv3.
2159 2008-04-05 Eric Blake <ebb9@byu.net>
2161 Prepare for release.
2162 * maint.mk (announcement): Avoid deleted option.
2163 * cfg.mk (release_archive_dir): Use default.
2164 * build-aux/gnupload: New file, from automake/gnulib.
2165 * Makefile.am (EXTRA_DIST): Distribute it.
2166 * .x-sc_two_space_separator_in_usage: New file, to exempt gnupload
2169 2008-04-05 Jim Meyering <meyering@redhat.com>
2170 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2172 Work around CR EOL markers on OS/2 (www.ecomstation.com Ecs v2 rc4)
2173 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When CR
2174 is the EOL marker, skip a step that would remove and translate
2175 carriage return bytes.
2177 Reported by Elbert Pol.
2179 2008-04-05 Eric Blake <ebb9@byu.net>
2181 Avoid some autoreconf -Wall warnings.
2182 * configure.ac: Use proper quoting, to be a good example.
2183 (PACKAGE_NAME): Remove setting covered by autoconf.
2184 (AM_INIT_AUTOMAKE): Bump automake requirement, for html rules.
2185 * doc/Makefile.am (TEXI2DVI): Remove settings covered by
2187 (html, autoconf_1.html, standards_1.html): Likewise.
2188 (TEXI2HTML, TEXI2HTML_FLAGS): Remove unused macros.
2189 * Makefile.am (html): Likewise.
2190 * doc/autoconf.texi (Quoting and Parameters): Add missing section
2192 * tests/Makefile.am (AUTOMAKE_OPTIONS): Intentionally ignore
2193 warning about our override, until Automake is fixed.
2194 * README-hacking: Document minimum requirements for bootstrap.
2196 2008-04-03 Eric Blake <ebb9@byu.net>
2198 Fix version number generation in man pages.
2199 * Makefile.am (EXTRA_DIST): Distribute .version.
2200 (.version): New rule.
2201 * man/Makefile.am (common_dep): Depend on .version, not
2203 (.x.1): Use package name for version string.
2204 * GNUmakefile [!_have-Makefile]: Sync from upstream, again.
2205 * build-aux/git-version-gen: Sync from upstream.
2207 More maintainer tweaks: pass 'make maintainer-distcheck'.
2208 * GNUmakefile (_is-dist-target): Sync from upstream.
2209 * build-aux/vc-list-files: Sync from upstream, yet again.
2210 * tests/atlocal.in (unsupported_fs_chars): Always remove tdir.
2211 * tests/Makefile.am (EXTRA_DIST): Don't distribute the built
2213 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump year.
2215 Fix VPATH 'make syntax-check'.
2216 * maint.mk (VC_LIST, VC_LIST_EXCEPT, sc_changelog)
2217 (sc_prohibit_jm_in_m4, makefile-check): Support VPATH.
2218 (author_mark_check): Avoid error message.
2219 * build-aux/vc-list-files: Sync from upstream again.
2220 * build-aux/texinfo.tex: Likewise.
2222 Sync files from upstream, and pass 'make syntax-check'.
2223 * config/announce-gen: Move...
2224 * build-aux/announce-gen: ...here, and sync from gnulib.
2225 * Makefile.am (EXTRA_DIST): Adjust accordingly.
2226 * cfg.mk (announce_gen): Likewise.
2227 (prev_version_file): Delete, relying on default in maint.mk.
2228 (gpg_key_ID): New macro.
2229 (url_dir_list): Rewrite to match coreutils.
2230 * config/prev-version.txt: Move...
2231 * .prev-version: ...here, and adjust to 2.61.
2232 * build-aux/vc-list-files: Sync from coreutils.
2233 * maint.mk: Resynchronize with coreutils, where possible.
2234 (ME): Remove $(srcdir) from definition.
2236 (GIT, VC, VC-tag): New macros.
2237 (CVS_LIST, CVS_LIST_EXCEPT): Rename...
2238 (VC_LIST, VC_LIST_EXCEPT): ...to this.
2239 (cvs-tag-check): Delete.
2240 (cvs-diff-check): Rename...
2241 (vc-diff-check): ...to this.
2242 (sc_file_system): Allow FHS acronym.
2243 * doc/autoconf.texi (Particular Functions): Recommend
2244 unconditional <config.h>.
2245 * build-aux/config.guess: Sync from upstream (manually).
2246 * build-aux/config.sub: Likewise.
2247 * build-aux/texinfo.tex: Likewise.
2248 * doc/make-stds.texi: Likewise.
2249 * doc/standards.texi: Likewise.
2250 * .gitattributes: Ignore whitespace problems in upstream files.
2252 2008-04-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2254 * doc/autoconf.texi (Limitations of Usual Tools): Mention awk %u
2256 Report by Peter O'Gorman.
2258 2008-04-02 Eric Blake <ebb9@byu.net>
2260 Recommend the just-released M4 1.4.11.
2261 * NEWS: Update recommendation.
2263 * doc/autoconf.texi (Introduction): Likewise.
2264 * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
2266 2008-04-01 Eric Blake <ebb9@byu.net>
2268 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Bump
2271 2008-03-28 Peter O'Gorman <peter@pogma.com>
2273 Find X11 on Mac OS X too.
2274 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT,_AC_PATH_X_XMKMF):
2275 Check for libX11 with extensions dylib la and dll too.
2277 Reported by Martin Costabel.
2279 2008-03-28 Eric Blake <ebb9@byu.net>
2281 Update TODO based on completed tasks.
2282 * TODO (AC_PROG_INSTALL takes multiple files): Done.
2283 (AC_GNU_SOURCE deprecation): Done, see AC_USE_SYSTEM_EXTENSIONS.
2284 (AC_COMPILE_IFELSE documentation): Done.
2285 (Tracing builtins): Done, now that we require M4 1.4.5.
2286 (AC_PROG_CC_POSIX suggestion, providing header files)
2287 (AC_TYPE_SIGNAL): Not needed; gnulib's approach is better.
2288 (cache consistency): Done with precious variables.
2290 2008-03-26 Eric Blake <ebb9@byu.net>
2292 Document --trace=macro:format in --help output.
2293 * bin/autom4te.in (help): Mention optional trace format.
2294 * bin/autoconf.as (usage): Likewise.
2296 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Fix
2297 typos in last patch.
2298 Reported by Ralf Wildenhues.
2300 2008-03-26 Jim Meyering <meyering@redhat.com>
2302 Fix texinfo syntax error.
2303 * doc/autoconf.texi (Limitations of Usual Tools): s/@kbd {/@kbd{/
2305 2008-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2307 Warn, not fail on whitespace-only precious variable differences.
2308 * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Output
2309 precious variable differences less ambiguous with `ugly-quotes'.
2310 If their settings differ only in whitespace, do not fail, but
2311 reuse the old value.
2312 * tests/torture.at (AT_CHECK_AC_ARG_VAR): Extend macro to allow
2313 an optional status and expected-warning argument. Fix m4
2314 quotation for initial value.
2315 (AC_ARG_VAR): Also test for whitespace-only differences, and
2316 that the old value is retained in this case.
2317 * doc/autoconf.texi (Setting Output Variables): Document this.
2319 Report and initial patch by Paolo Bonzini.
2321 2008-03-26 Eric Blake <ebb9@byu.net>
2323 Document busybox sed bug.
2324 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Mention
2325 restrictions when using back-references.
2326 Reported by Vincent Lefevre:
2327 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13013>.
2329 Document Automake interaction with AC_CONFIG_MACRO_DIR.
2330 * doc/autoconf.texi (Input): Mention ACLOCAL_AMFLAGS for automake
2333 Reported by Chris Pickett.
2335 2008-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2337 * tests/autotest.at (Using atlocal): Quote instances of `pwd`.
2339 * tests/local.at (AT_CHECK_M4): Factorize warning output
2341 Suggested by Eric Blake.
2343 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2345 Fix .exe-related test failure on MinGW.
2346 * tests/local.at (AT_CHECK_M4): Normalize `/bin/m4.exe' correctly
2347 for comparing warning output.
2349 Fix Fortran testsuite failures with gfortran 4.3.
2350 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): When scanning
2351 verbose compiler output, skip lines that set variables; gfortran
2352 4.3 sets LIBRARY_PATH, COMPILER_PATH, COLLECT_GCC_OPTIONS.
2354 Report by Vincent Lefèvre.
2356 2008-03-21 Eric Blake <ebb9@byu.net>
2358 * GNUmakefile: Resynchronize with gnulib.
2360 Document more uses of $cross_compiling.
2361 * doc/autoconf.texi (Runtime): Document that a temporary override
2364 Reported by Ineiev, example by Ralf Wildenhues.
2366 Don't swallow $1 in textual local variables.
2367 * lib/m4sugar/m4sugar.m4 (m4_combine): Don't use overquoting and
2368 expansion of text arguments, as that swallows $1.
2369 (m4_text_wrap): Likewise, by splitting out...
2370 (_m4_text_wrap): ...new helper macro. Also, allow arbitrary
2371 expression for width.
2372 * tests/m4sugar.at (m4@&t@_text_wrap): Test this.
2373 (m4@&t@_combine): Likewise.
2375 2008-03-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2377 Avoid leftover files on Leopard.
2378 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove a.out.dSYM
2379 directory created on darwin.
2380 (AC_NO_EXECUTABLES): Likewise; also remove objects which may be
2381 left over from a broken link.
2382 * tests/c.at (AC_NO_EXECUTABLES (working linker))
2383 (AC_NO_EXECUTABLES (broken linker)): New tests.
2384 Report by Gary V. Vaughan.
2386 * lib/autom4te.in (Automake-preselections): Trace
2387 _AM_COND_IF, _AM_COND_ELSE, _AM_COND_ENDIF.
2389 2008-03-20 Eric Blake <ebb9@byu.net>
2391 Kill more CVS references.
2392 * README-cvs: Delete. See README-hacking instead.
2393 * README-hacking: Update wording, based on older file.
2394 * BUGS: Remove CVS mention.
2396 2008-03-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2398 * tests/tools.at (autotools and whitespace in file names): Skip
2399 if aclocal is not present.
2401 2008-03-20 Eric Blake <ebb9@byu.net>
2403 Sync GNUmakefile with gnulib.
2404 * GNUmakefile (Makefile.cfg): Rename...
2405 (cfg.mk): ...to this, and make optional.
2406 (GNUmakefile.cfg): Delete, redundant with cfg.mk.
2407 (Makefile.maint): Rename...
2408 (maint.mk): ...to this.
2409 (all) [!_have-Makefile]: Rename...
2410 (abort-due-to-no-makefile): ...to this, and invoke via
2411 .DEFAULT_GOAL to pick up all targets.
2412 * Makefile.cfg: Rename...
2413 * cfg.mk: ...to this.
2414 * Makefile.maint: Rename...
2415 * maint.mk ...to this.
2416 (ME): Reflect name change.
2417 (makefile-check, m4-check, author_mark_check, msg): Use $(ME)
2418 rather than hard-coded name.
2419 * GNUmakefile.cfg: Delete; move rules into cfg.mk.
2420 * Makefile.am (EXTRA_DIST): Reflect file name changes.
2421 * .x-sc_prohibit_atoi_atof: Likewise.
2422 * lib/freeze.mk: Likewise.
2424 2008-03-19 Stepan Kasal <kasal@ucw.cz>
2426 * doc/autoconf.texi (Introduction): Improve the paraphrase of
2427 Henry Spencer's quotation.
2429 2008-03-19 Eric Blake <ebb9@byu.net>
2431 AC_CONFIG_HEADERS replaced AC_CONFIG_HEADER.
2432 * bin/autoscan.in (output): Avoid obsolete spelling.
2433 * tests/local.at (AC_STATE_SAVE): Update usage.
2435 Reported by John Calcote.
2437 Emphasize that ease of configure triumphs over ease of autoconf.
2438 * doc/autoconf.texi (Introduction): Expand on primary
2439 vs. secondary goal of autoconf.
2441 Inspired by Paul Smith.
2443 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2445 * lib/Autom4te/FileUtils.pm (handle_exec_errors): New argument
2446 $hint, show if the executing program does not exist.
2447 (xsystem_hint): New function, like xsystem but allows to pass
2449 * bin/autoreconf.in: Use xsystem_hint for spawning autopoint and
2451 Report by Bruce Korb.
2453 2008-03-14 Stepan Kasal <kasal@ucw.cz>
2455 * lib/Autom4te/ChannelDefs.pm, tests/fortran.at,
2456 tests/mktests.sh, tests/wrapper.as: Fix typos.
2458 2008-03-12 Eric Blake <ebb9@byu.net>
2460 Fix yesterday's regression in m4_wrap([$1]).
2461 * lib/m4sugar/m4sugar.m4 (_m4_wrap): Don't directly invoke wrapped
2462 text, since it may contain text that looks like parameters.
2463 * tests/m4sh.at (AS@&t@_INIT cleanup): Enhance test.
2465 2008-03-11 Eric Blake <ebb9@byu.net>
2467 Improve error messages for common testsuite bugs.
2468 * lib/autotest/general.m4 (_AT_DEFINE_INIT, _AT_DEFINE_SETUP): New
2469 macros for defining order-enforced macros.
2470 (AT_INIT, AT_SETUP, AT_CLEANUP, AT_BANNER, AT_XFAIL_IF)
2471 (AT_CAPTURE_FILE, AT_DATA, AT_CHECK, AT_CHECK_NOESCAPE): Add error
2472 messages when order violations are detected.
2473 * tests/autotest.at (AT_CHECK_AT_SYNTAX): New helper macro.
2474 (AT_SETUP without AT_INIT, AT_BANNER without AT_INIT)
2475 (AT_CLEANUP without AT_INIT, Missing AT_CLEANUP)
2476 (AT_CHECK without AT_SETUP, AT_DATA without AT_SETUP)
2477 (AT_XFAIL_IF without AT_DATA, AT_KEYWORDS without AT_SETUP,
2478 (AT_CLEANUP without AT_SETUP, AT_BANNER inside AT_SETUP)
2479 (AT_SETUP inside AT_SETUP, Multiple AT_INIT)
2480 (Banner-only test suite): New tests.
2481 Reported by Christopher Hulbert.
2483 Tweak m4_wrap to force FIFO or LIFO semantics.
2484 * lib/m4sugar/m4sugar.m4 (m4_wrap): Override M4 implementation.
2485 (m4_wrap_lifo, _m4_wrap): New macros.
2486 * lib/m4sugar/m4sh.m4 (AS_INIT): Combine all cleanup into known
2487 order, prior to m4sugar's.
2488 (_AS_DETECT_BETTER_SHELL): Use cleanup parameter, rather than
2490 * lib/autotest/general.m4 (AT_INIT): Combine all cleanup into
2491 known order, prior to m4sh's.
2492 * doc/autoconf.texi (Diagnostic Macros) <m4_fatal>: Document
2494 (Redefined M4 Macros) <m4_wrap>: Rewrite documentation to match
2496 * tests/m4sh.at (AS_INIT cleanup): New test.
2497 * NEWS: Document the change.
2499 2008-03-10 Eric Blake <ebb9@byu.net>
2501 Encode nested autotest data.
2502 * tests/autotest.at (AT_CHECK_AT_PREP): Avoid raw AT_ in output.
2503 (unusual file names): Likewise.
2504 (m4_pattern_allow): Remove loophole, to make it easier to catch
2505 poorly written tests.
2507 Factor some autotest tests.
2508 * tests/autotest.at (AT_CHECK_AT_PREP): New macro, to factor out
2509 common initialization.
2510 (AT_CHECK_AT, Banners, Keywords and ranges, srcdir propagation)
2511 (whitespace in absolute testdir, unusual file names): Use it.
2513 2008-03-06 Eric Blake <ebb9@byu.net>
2515 Minor documentation fix.
2516 * doc/autoconf.texi (Evaluation Macros): Fix typo.
2518 2008-03-04 Eric Blake <ebb9@byu.net>
2520 Make AT_CHECK act like a simple command.
2521 * lib/autotest/general.m4 (_AT_CHECK): Wrap commands in {;}.
2522 * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Test it.
2524 2008-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2526 On MinGW, substitution of CR and 0xFF fails.
2527 * tests/torture.at (Substitute and define special characters):
2528 MinGW awk cannot handle 0xFF, and on MinGW, the test does the
2531 2008-03-04 Eric Blake <ebb9@byu.net>
2533 Pull in recent maintainer improvements from coreutils.
2534 * GNUmakefile (_is-dist-target): 'make distclean' should not
2536 (_dummy): Change directories before removing autom4te.cache.
2537 (check dist distcheck install) [!_have-Makefile]: Provide nicer
2539 * configure.ac (AC_CONFIG_LINKS): Copy GNUmakefile into VPATH
2540 builds, after initial bootstrap.
2541 * Makefile.am (distclean-local): Work around current automake bug.
2542 * Makefile.maint (ME): Allow VPATH usage.
2544 Use git-merge-changelog when available.
2545 * .gitattributes: New file.
2546 * README-hacking: Document use of git-merge-changelog.
2548 Work around cygwin bug.
2549 * tests/atlocal.in (unsupported_fs_chars): Avoid cygwin bug where
2550 "touch 't\'" creates regular file 't'.
2552 Ignore tests that require read-only directories under root.
2553 * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Skip
2554 no-write portion if user has root-like privileges.
2556 2008-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2558 * lib/autotest/general.m4 (AT_INIT): Fix detection of '-C -'.
2560 2008-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2562 autoreconf -m now honors $MAKE.
2563 * bin/autoreconf.in ($run_make): Renamed from ...
2564 ($make): ... this. Use now as command to run `make',
2565 overridden by $MAKE. Document this in --help output.
2566 * doc/autoconf.texi (autoreconf Invocation): Document
2567 all environment variables honored by autoreconf.
2569 Report by Paul Eggert.
2571 2008-03-03 Eric Blake <ebb9@byu.net>
2573 Documentation improvements.
2574 * doc/autoconf.texi (Looping constructs): s/recurses/repeats/.
2575 (Evaluation Macros): Drop `1' suffix from metasyntax variable name
2576 that preceeds @dots. Improve wording.
2577 (Text processing Macros): Drop `1' suffix from metasyntax variable
2578 name that preceeds @dots.
2579 (Number processing Macros): Drop `1' suffix from metasyntax
2580 variable name that preceeds @dots. Improve wording.
2581 * lib/m4sugar/m4sugar.m4 (m4_cmp): Comment wording fix.
2582 Suggested by Ralf Wildenhues.
2584 2008-03-02 Jim Meyering <meyering@redhat.com>
2586 Don't infloop upon "make dist".
2587 * GNUmakefile: Merge from coreutils.
2588 * Makefile.am (dist-hook): Inject .tarball-version into tarball,
2590 * configure.ac (AC_INIT): Use .tarball-version, not .version.
2591 * build-aux/git-version-gen: Update from gnulib.
2593 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2595 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
2596 Before using /dev/full, check that it is a writable character
2598 Report by Benoit Sigoure and Eric Blake.
2600 Actually test that @configure_input@ is expanded correctly.
2601 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
2602 Actually check generated file contents for the name of the
2603 generated file, using AC_PROG_FGREP and $FGREP.
2605 2008-03-01 Benoit Sigoure <tsuna@lrde.epita.fr>
2607 Be nice with file systems that don't handle unusual characters.
2608 * tests/atlocal.in (func_sanitize_file_name)
2609 (func_sanitize_dir_name): New shell functions.
2610 * tests/tools.at (autom4te and whitespace in file names)
2611 (autotools and whitespace in file names): Use them.
2612 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
2613 Cover more potentially problemtic file names. Use the new
2616 Properly handle funny file names for headers in config.status.
2617 The test suite did not cover this bug because the code was not
2618 quoting properly the arguments of `rm -f' (which "fails" silently)
2619 as well as the arguments of `diff' (whose output was redirected to
2620 /dev/null so we couldn't see its error message).
2621 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Properly quote the
2622 file names passed to `rm' and `diff'.
2623 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
2624 Add a regression test.
2626 2008-03-01 Benoit Sigoure <tsuna@lrde.epita.fr>
2627 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2629 Properly expand @configure_input@ in config.status.
2630 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_MAIN_LOOP):
2631 Escape the backslashes and ampersands in $configure_input before
2632 using it in the sed replacement string to expand @configure_input@.
2633 Report by Eric Blake and Patrick Welche.
2635 2008-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2637 Ignore errors from ./run on w32.
2638 * tests/autotest.at (whitespace in absolute testdir):
2639 Ignore stderr for `./run' which fails to remove the
2640 busy test directory on w32.
2642 2008-02-22 Eric Blake <ebb9@byu.net>
2644 Improve documentation for writing autotest suites.
2645 * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention that
2646 checks must live inside a test group.
2647 Reported by Christopher Hulbert.
2649 2008-02-21 Eric Blake <ebb9@byu.net>
2651 Sync git-version-gen from upstream.
2652 * build-aux/git-version-gen: Pull from gnulib.
2653 * configure.ac (AC_INIT): Adjust to new calling convention.
2655 2008-02-12 Eric Blake <ebb9@byu.net>
2657 Avoid trailing space in config.h with AC_DEFINE([var], []).
2658 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Explicitly mark empty
2659 defines with a comment.
2661 2008-02-08 Eric Blake <ebb9@byu.net>
2663 Fix texinfo typos in previous patch.
2664 * doc/autoconf.texi (Site Defaults): s/[{}]/@&/g.
2665 Reported by Ralf Wildenhues.
2667 Describe a config.site that can be used for FHS compliance.
2668 * doc/autoconf.texi (Site Defaults): Fix typo. Add new example
2671 Reported by Jules Colding and Ralf Wildenhues.
2673 2008-02-02 Eric Blake <ebb9@byu.net>
2675 * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Fix typo.
2677 2008-02-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2679 * lib/autotest/general.m4 (AT_INIT): Fix --clean to work
2680 again, broken since introduction of `-C dir'.
2681 * tests/autotest.at (Choosing where testsuite is run): Test it.
2683 2008-01-30 Paul Eggert <eggert@cs.ucla.edu>
2685 * doc/autoconf.texi: Update Back-Cover text to reflect new GNU wording.
2687 2008-01-29 Eric Blake <ebb9@byu.net>
2689 Fix more autotest regressions.
2690 * lib/autotest/general.m4 (AT_LINE): Fix regression from
2691 2007-10-04 when file name is `dnl'.
2692 (AT_INIT) <PREPARE_TESTS>: Move command-line assignments...
2693 <TESTS_BEGIN>: ...to this new diversion, to fix regression from
2694 yesterday in libtool's testsuite.
2695 (_AT_ARG_OPTION): Detect write failure.
2696 * doc/autoconf.texi (Diversion support): Document PREPARE_TESTS to
2697 make libtool's use kosher. Document m4_init.
2698 (Programming in M4sh): Document AS_INIT.
2699 (Writing Testsuites): Document limitation of AT_DATA file name.
2700 * tests/autotest.at (unusual file names): New test.
2701 (Banners, Keywords and ranges): Use correct shell.
2703 More corner cases in testsuite VAR=VALUE handling.
2704 * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS): Fix quoting
2706 <PARSE_ARGS_END>: Also detect leading digits in assignments.
2707 * tests/autotest.at (Using atlocal): Enhance test to catch last
2710 * doc/autoconf.texi (Limitations of Builtins) <.>: Mention bash
2713 2008-01-28 Eric Blake <ebb9@byu.net>
2715 Fix regression in handling VAR=VALUE arguments to testsuite.
2716 * lib/autotest/general.m4 (AT_INIT) <PARSE_ARGS_END>: Detect
2717 leading = as invalid. Defer use of command-line variable
2719 <PREPARE_TESTS>: ...here, after atconfig has been sourced. Fix
2720 regression in sourcing files.
2721 * tests/autotest.at (Using atlocal): New test to catch this.
2722 (Debugging a successful test, Choosing where testsuite is run):
2724 Reported by Ralf Wildenhues.
2726 Document grep peculiarity.
2727 * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
2728 BSD behavior on binary input.
2730 Minor testsuite improvements.
2731 * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Use fewer
2732 forks when sanitizing PATH. Always output machine information,
2733 not just when atconfig was located.
2735 Add 'testsuite -C dir'.
2736 * lib/autotest/general.m4 (_AT_ARG_OPTION): Move missing argument
2738 (AT_INIT) <PARSE_ARGS_END>: ...here, since -k always takes
2740 <DEFAULTS>: Delay computation of variables based on $at_dir...
2741 <PREPARE_TESTS>: ...to here, since -C can change $at_dir.
2742 <TESTS>: Re-invoke via absolute name, since -C may be in effect.
2743 <PARSE_ARGS>: Parse new option.
2744 <HELP_TUNING>: Document it.
2745 * tests/autotest.at (Choosing where testsuite is run): New test
2747 (Keywords and ranges): Add test for missing -k argument.
2748 * NEWS: Document this.
2749 * doc/autoconf.texi (testsuite Invocation): Likewise.
2751 2008-01-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2753 * build-aux/config.guess, build-aux/config.sub,
2754 build-aux/texinfo.tex: Sync from gnulib.
2755 * doc/fdl.texi, doc/make-stds.texi, doc/standards.texi:
2758 2008-01-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2760 * doc/autoconf.texi (Particular Programs): Do not mention the
2761 Autoconf version in which the AC_PROG_INSTALL change was done.
2762 Suggested by Paul Eggert.
2764 2008-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2766 Fix --help=recursive with multiple AC_CONFIG_SUBDIRS.
2767 * lib/autoconf/general.m4 (_AC_INIT_HELP): If, for recursive help
2768 mode, we change to the source directory, also set $ac_pwd so we
2769 do not go back to the build tree for the next config subdir.
2770 * tests/torture.at (Deep Package): Extend test to contain two
2771 config subdirs on the top level.
2773 Fix parallel `maintainer-check'.
2774 * Makefile.am (maintainer-check-tests): Depend on `all'.
2775 Use `$(MAKE) $(AM_MAKEFLAGS)' instead of plain `make'.
2776 * tests/Makefile.am (maintainer-check-c++, maintainer-check-posix):
2778 (maintainer-check): Serialize the testsuite runs.
2780 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE2): Accept `+'
2781 in feature string for --enable/--with. Convert to underscore
2784 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Require that
2785 `install -c file1 file2 dir' works.
2786 * doc/autoconf.texi (Particular Programs): Document this.
2789 2008-01-21 Eric Blake <ebb9@byu.net>
2791 Improve documentation about default include directives.
2792 * doc/autoconf.texi (Generic Headers, Generic Declarations)
2793 (Generic Structures, Generic Types)
2794 (Generic Compiler Characteristics): Add links to
2795 AC_INCLUDES_DEFAULT.
2796 Reported by Reuben Thomas.
2798 2008-01-15 Eric Blake <ebb9@byu.net>
2800 * lib/m4sugar/m4sugar.m4 (m4_qlen): Use fewer macros.
2802 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2804 * tests/Makefile.am (noinst_SCRIPTS): Renamed from
2805 check_SCRIPTS. Building the wrappers for `all' allows help2man
2806 to use them for the manpages.
2807 Report by Benoit Sigoure.
2809 * bin/autoreconf.in: Discard stderr for $autoconf/$aclocal --help.
2811 2007-12-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2813 Fix some write failure cases in Autotest.
2814 * lib/autotest/general.m4 (AT_INIT): Do not exit successfully
2815 upon write failures for --help, --version, --list.
2816 Guard against write failures for intermediate created scripts.
2817 <at_func_create_debugging_script>: Do not make the debugging
2818 script executable if it is not complete.
2820 2007-12-12 Eric Blake <ebb9@byu.net>
2822 Fix thinko in earlier patch - m4_join isn't defined yet.
2823 * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
2824 (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
2825 (m4_require): Use m4_do, not m4_join.
2827 Fix some whitespace tests on cygwin.
2828 * tests/tools.at (autom4te and whitespace in file names): Restore
2829 font-lock. Create $TMPDIR before it might be used.
2831 Fix spurious testsuite failure with M4 1.4.11.
2832 * tests/local.at (AT_CHECK_M4): Cater to new m4 error message.
2834 Optimize AC_REQUIRE.
2835 * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
2836 (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
2837 (m4_require): Avoid extra macro calls.
2839 2007-12-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2841 * tests/torture.at (srcdir): Fix quoting.
2843 Do not pass top_srcdir to configure scripts in testsuite.
2844 * tests/autotest.at (srcdir propagation): Copy install-sh to
2846 (my only test): Drop setting of `top_srcdir'.
2847 * tests/base.at (Input/Output): Likewise.
2848 * tests/local.at (AT_CONFIGURE_AC): Copy install-sh,
2849 config.guess, and config.sub to test source tree.
2850 Drop AC_CONFIG_AUX_DIR setting.
2851 (AT_CHECK_CONFIGURE): Drop setting of `top_srcdir'.
2852 * tests/torture.at (Substitute a 2000-byte string): Drop
2853 AC_CONFIG_AUX_DIR setting, copy install-sh to test source tree.
2854 (Substitute a newline, datarootdir workaround): Likewise.
2855 (Define a newline): Adjust for linenumber changes in configure.ac.
2856 * tests/foreign.at (Libtool): Adjust comment to reflect changes.
2858 * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): Skip test
2859 if `pwd` contains whitespace.
2861 Quote $abs_top_srcdir in tests.
2862 * tests/local.at (AT_CHECK_PERL_SYNTAX): Likewise.
2863 * tests/tools.at (Syntax of the shell scripts): Likewise.
2865 * tests/m4sh.at (LINENO): Quote $0.
2867 Fix testsuite program wrapper for whitespace in `pwd`.
2868 The problem here is that the usual mantra is that command
2869 variables can contain arguments, thus we cannot just escape
2870 $AUTOCONF, $AUTOM4TE etc. The compromise is to put the
2871 $top_builddir/tests directory early in $PATH, so that the
2872 wrappers are found by their plain name.
2873 * tests/wrapper.as: Put $testdir early in $PATH.
2874 (AUTOCONF, AUTOHEADER, AUTOM4TE): Set to plain command names.
2876 Proper config.status --file/--header and $srcdir escaping.
2877 * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Quote special
2878 characters in $ac_file_inputs.
2879 (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER): eval $ac_file_inputs
2881 * tests/torture.at (datarootdir workaround): Adjust.
2882 (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): Extend test.
2884 Fix Autotest for whitespace in `pwd`.
2885 * lib/autotest/general.m4 (AT_INIT)
2886 <at_func_create_debugging_script, Driver Loop>:
2887 Quote $at_group_dir.
2888 * tests/autotest.at (whitespace in absolute testdir): New test.
2890 * lib/autom4te.in: Quote @datadir@.
2892 Proper file name escaping in Autoconf programs and Perl modules.
2893 This includes escaping of characters special to the shell
2894 as well as special to Perl, e.g., leading `<' or `>'.
2895 For example, when $file starts with `>', `open ">$file"'
2896 wrongly tries to append to a different file.
2897 * bin/autoconf.as: Fix quoting for autom4te options.
2898 * lib/Autom4te/General.pm (shell_quote): New function, taken
2899 from coreutils, written by Jim Meyering.
2901 * bin/autom4te.in (files_to_options, handle_m4): Use shell_quote
2903 * bin/autoreconf.in (parse_args): Likewise.
2904 * bin/autoscan.in (main): Likewise.
2905 * bin/autoupdate.in (main): Likewise.
2906 * bin/autoheader.in: Likewise, fixing old insufficient escaping.
2907 * bin/ifnames.in: Likewise, XFile usage fixes.
2908 * tests/tools.at (autom4te and whitespace in file names): Extend
2909 test. Test twice, with special characters allowed on w32, and the
2910 rest. Test leading and trailing whitespace, for `open_quote'.
2911 (autotools and whitespace in file names): New, analogous test.
2912 Reported by Paul Eggert and Benoit Sigoure, additional suggestions
2913 by Russ Allbery and Eric Blake.
2916 * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
2917 lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Likewise.
2918 * lib/Autom4te/FileUtils.pm (open_quote): New function.
2919 (update_file, contents): Use it.
2921 * Makefile.am (autom4te-update): Rewrite for git.
2923 2007-12-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2925 * doc/autoconf.texi (autom4te Invocation, Autom4te Cache): Fix typos.
2927 Fix copyright years.
2928 * Makefile.am, doc/install.texi, lib/autoconf/fortran.m4,
2929 lib/autoconf/lang.m4, lib/freeze.mk: Likewise.
2931 2007-12-04 Eric Blake <ebb9@byu.net>
2933 Manually resync with gnulib, since 'make cvs-update' no longer works.
2934 * build-aux/config.guess: New upstream version.
2935 * build-aux/config.sub: Likewise.
2937 When using older automake, don't downgrade build-aux/texinfo.tex.
2938 * configure.ac (AM_INIT_AUTOMAKE): Add no-texinfo.tex option.
2939 * doc/Makefile.am (TEXINFO_TEX): Add.
2941 2007-11-27 Paul Eggert <eggert@cs.ucla.edu>
2943 Fix AC_C_BIGENDIAN bug caused by new awk method of substitution.
2944 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Don't comment out the
2945 #undef as this runs afoul of our new way of creating config.h.
2946 Problem reported by Jim Meyering in
2947 <http://lists.gnu.org/archive/html/autoconf-patches/2007-11/msg00164.html>.
2949 2007-11-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2951 Fix autom4te for unusual characters in input file names.
2952 * bin/autom4te.in (files_to_options): Quote active characters
2954 * tests/tools.at (autom4te and white space in file names):
2957 * doc/autoconf.texi (Limitations of Usual Tools) <awk>:
2958 Document that Tru64 awk always splits $0.
2960 2007-11-24 Stepan Kasal <kasal@ucw.cz>
2962 * lib/autotest/general.m4 (AT_INIT): Do not extract the
2963 `#AT_STOP_...' line at the end of each test.
2965 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2967 * lib/autotest/general.m4 (AT_INIT): For awk line number
2968 extraction script, ensure `$at_group' has a defined value
2969 even for the empty set, and properly quote its usage inside
2972 2007-11-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2974 * doc/autoconf.texi (Shell Functions): New chapter. Document
2975 IRIX sh $0 issue in functions, move content from ...
2976 (Portable Shell): ... here.
2977 (Shell Script Compiler): Note that shell functions are not
2978 totally unportable any more.
2980 2007-11-22 Stepan Kasal <kasal@ucw.cz>
2981 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2983 * lib/autotest/general.m4 (AT_INIT): Exit awk script after
2984 extracting the line numbers of the last needed test.
2986 2007-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2988 * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
2991 2007-11-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2993 Fix IRIX testsuite debugging failures: $0 in functions.
2994 * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
2995 Do not use $0 inside a function, as IRIX sh will set that to the
2996 function name rather than the script invocation name.
2998 2007-11-19 Paolo Bonzini <bonzini@gnu.org>
2999 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3001 * lib/autotest/general.m4 (at_func_test): Use cached line numbers
3002 to extract test scripts.
3003 (AT_INIT): Extract and cache test script line numbers.
3005 2007-11-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3007 * lib/autotest/general.m4: Revert 2007-11-15 patch and
3008 subsequent fixups; the awk -> here-document conversion trashes
3009 performance too much with AIX sh.
3011 2007-11-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3013 * tests/local.at: Do not test m4, perl with AT_TESTED.
3015 Diagnose and guard against write errors dealing with config.status.
3016 The general idea is this: all write failures from `configure'
3017 writing `config.status' are indicated by $ac_write_error, which
3018 is only checked at the end. This is safe because config.status
3019 code is not executed before the file is complete. Other write
3020 failures, be they inside config.status, or in sub shell/awk
3021 scripts spawned from configure or config.status, typically need
3022 earlier checking, as their results are used right afterwards.
3023 * lib/autoconf/status.m4 (AC_OUTPUT): Initialize `ac_write_fail'
3024 before writing config.status, check afterwards.
3025 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
3026 (_AC_OUTPUT_HEADERS_PREPARE,_AC_OUTPUT_CONFIG_STATUS):
3027 Set `ac_write_error' for write failures to config.status. Barf
3028 upon write failures to temporary files.
3029 Adjust note about closing and reopening the here-document.
3030 (_AC_OUTPUT_HEADER, _AC_OUTPUT_LINK, _AC_OUTPUT_COMMAND)
3031 (_AC_OUTPUT_MAIN_LOOP): Likewise, adjust note about closing and
3032 reopening the here-document.
3033 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
3034 Ensure `ac_write_error' does not escape into config.status.
3035 Also, add a couple of code paths not yet exercised in the test
3036 suite: a config file with input from stdin, and a config header
3038 Suggestion for catching write errors by Bruno Haible.
3040 2007-11-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3042 Avoid error with Tru64 awk and testsuite lines with many words.
3043 * lib/autotest/general.m4 (AT_INIT): In the awk script that
3044 reads the testsuite, set the field separator to an unusual value,
3045 in order to not run over the limit of 199 fields. Tru64 4.0D awk
3046 even splits the input if $i, i>0, was never accessed in the script.
3048 Revert 2007-10-17 change.
3049 * TODO: Multiline args in config files and headers mean something
3050 different and are not fixed, see
3051 <http://lists.gnu.org/archive/html/autoconf-patches/2007-05/msg00017.html>
3052 Report by Stepan Kasal.
3054 * doc/autoconf.texi (Generic Programs): Fix typo.
3056 2007-11-16 Stepan Kasal <kasal@ucw.cz>
3058 AC_*_TOOL does not canonicalize the prefix
3059 * doc/autoconf.texi (Generic Programs): Do not say that
3060 the *_TOOL macros canonicalize, they simply use the `host_alias'.
3062 2007-11-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3064 Diagnose write errors in config.status instantiations.
3065 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE)
3066 (_AC_OUTPUT_HEADER, _AC_OUTPUT_MAIN_LOOP): Bail out
3068 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
3069 Extend test to also check for some write error failures, using...
3070 <AT_CHECK_CONFIG_CREATION_NOWRITE>: ...this new macro.
3071 Report by Bruno Haible.
3074 * lib/autotest/general.m4 (AT_INIT) <at_func_log_failure>: Fix
3076 (_AT_CHECK): Use less indentation, to save space.
3078 2007-11-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3080 Add witness macro for @top_build_prefix@ substitution.
3081 * lib/autoconf/status.m4 (_AC_HAVE_TOP_BUILD_PREFIX): New macro.
3082 (_AC_OUTPUT_FILE): Mention it here.
3084 2007-11-15 Paolo Bonzini <bonzini@gnu.org>
3085 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3087 * lib/autotest/general.m4 (at_func_test): Remove.
3088 (AT_INIT): Pre-extract test groups into separate files.
3089 (AT_CLEANUP): Source pre-extracted file instead of calling at_func_test.
3090 Remove at-test-source files together with the $at_group_dir.
3091 * tests/autotest.at (Long test source lines): New test.
3093 2007-11-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3095 Shell functions and variables may share a namespace.
3096 * doc/autoconf.texi (Portable Shell): Mention Solaris sh
3099 2007-11-14 Paul Eggert <eggert@cs.ucla.edu>
3101 * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Make comment match
3104 2007-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3106 * lib/autoconf/status.m4: Fix a couple of comment typos.
3108 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Use $as_me, not $me.
3110 2007-11-13 Jim Meyering <meyering@redhat.com>
3112 Clean up the rule to create "expr".
3113 * tests/Makefile.am (expr): Don't redirect directly to target.
3114 Redirect just once, not for each echo statement.
3115 Use $@, not literal "expr".
3117 2007-11-13 Paul Eggert <eggert@cs.ucla.edu>
3119 Don't worry about preprocessor when testing long long.
3120 See: http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00075.html
3121 * doc/autoconf.texi (Preprocessor Arithmetic): New section.
3122 (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT):
3123 These no longer check for preprocessor flaws.
3124 * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET):
3125 Do not check for preprocessor flaws.
3127 2007-11-13 Jim Meyering <meyering@redhat.com>
3129 Adapt dependencies, now that a version change doesn't modify configure.ac
3130 * GNUmakefile: Remove "make clean" kludge.
3131 * lib/m4sugar/Makefile.am (version.m4): Depend on Makefile, not
3133 Don't redirect directly to target.
3134 Use $@, not literal "version.m4".
3136 2007-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3138 * doc/autoconf.texi (Making testsuite Scripts): Document
3139 ":;{" shorthand as in previous patch.
3141 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
3143 * doc/autoconf.texi (Limitations of Builtins): Document problem
3144 with { ... } a bit more clearly. Suggest ":;{" as a shorthand
3146 * lib/m4sugar/Makefile.am (version.m4): Detect 'echo' failure.
3147 Use ":;{" shorthand.
3148 * tests/Makefile.am ($(srcdir)/package.m4): Likewise.
3150 2007-11-12 Jim Meyering <meyering@redhat.com>
3152 Add more non-srcdir build support.
3153 * GNUmakefile (dummy): Split a long line.
3154 Add -v option to autoreconf invocation.
3156 Remove the autoreconf-provided INSTALL, so that we regenerate it.
3157 * GNUmakefile (dummy): Remove INSTALL.
3159 Remove racy commands to build scripts in bin/ and tests/.
3160 * man/Makefile.am (.x.1): Now that scripts in bin/ and tests/
3161 are guaranteed to be built, remove the rules that tried to build
3162 them. Before, with a parallel build, these rules could lead to
3163 two processes writing tests/wrapper.in concurrently.
3165 Build in man/ only *after* building in bin/ and tests/.
3166 * Makefile.am (SUBDIRS): The man-page-creation process runs $(MAKE)
3167 in both bin/ and tests/.
3169 Accommodate non-srcdir build-from-checkout.
3170 * build-aux/git-version-gen: Require an additional parameter: $srcdir.
3171 Use git's --git-dir=$srcdir/.git option.
3172 Add quotes, in case tarball_version_file contains shell meta-characters.
3173 * GNUmakefile (_curr-ver): Pass $(srcdir) to git-version-gen.
3174 * configure.ac: Pass "." to git-version-gen.
3176 Avoid spurious test failures due to version skew.
3177 * GNUmakefile (dummy): Run $(MAKE) clean after autoreconf -i.
3179 2007-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3181 Avoid warnings about conftest.dSYM directories on Mac OS X Leopard.
3182 * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_RUN_IFELSE):
3183 Remove conftest.dSYM directory.
3184 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT)
3185 (_AC_LANG_PROGRAM_C_, _AC_FC_MAIN, __AC_FC_NAME_MANGLING):
3186 Remove `conftest.*' recursively.
3187 * lib/autoconf/lang.m4 (AC_LINK_IFELSE): Likewise.
3188 * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
3190 (_AC_COMPILER_OBJEXT_REJECT): Reject *.dSYM.
3192 Report and analysis by Jeff Squyres and Peter O'Gorman.
3194 2007-11-12 Benoit Sigoure <tsuna@lrde.epita.fr>
3196 Fix typos in variable names.
3197 * tests/semantics.at (test for AC_CHECK_LIB): s/at_m/ac_m/.
3199 2007-11-11 Benoit Sigoure <tsuna@lrde.epita.fr>
3201 Document that $((expression)) is not portable.
3202 * doc/autoconf.texi (Shell Substitutions): Here.
3204 2007-11-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3206 Ignore configure --help* errors due to LINENO-impaired shells.
3207 * tests/torture.at (Configuring subdirectories, Deep Package):
3208 In the --help* tests in read-only trees, make `.' temporarily
3209 writable again for the `stderr' file, and ignore errors due to
3210 the attempt to write configure.lineno.
3211 Report by Patrick Welche.
3213 2007-11-10 Jim Meyering <meyering@redhat.com>
3215 Generate package.m4 in build-dir, not srcdir.
3216 * tests/Makefile.am (package.m4): Adjust target.
3217 Don't redirect directly to $@.
3218 (CLEANFILES): Add package.m4.
3219 ($(TESTSUITE)): Depend on just-built package.m4, not the one
3221 When running $(AUTOTEST), search "." before searching $(srcdir).
3223 Avoid a race condition that would make parallel "distclean" fail.
3224 * tests/Makefile.am (distclean-generic): Replace the default,
3225 automake-provided rule with an identical one, but with an additional
3226 dependency on distclean-local. Simply adding the dependency would
3227 cause automake not to emit the rule at all.
3228 * BUGS: Building with -jN works, now.
3230 Distribute git-version-gen.
3231 * Makefile.am (EXTRA_DIST): Add build-aux/git-version-gen,
3232 since GNUmakefile is distributed, and requires it for dist* rules.
3234 Remove two more generated files from version control.
3235 * INSTALL: Remove generated file.
3236 * lib/autoscan/autoscan.list: Remove generated file.
3238 2007-11-09 Paul Eggert <eggert@cs.ucla.edu>
3240 * GNUmakefile (PATH): Remove stray apostrophes; they become
3241 part of PATH, which isn't wanted here.
3243 2007-11-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3245 New config files output variable `top_build_prefix'.
3246 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Substitute
3248 * doc/autoconf.texi (Preset Output Variables): Document it.
3250 Report by Bob Friesenhahn.
3252 Avoid expr for arithmetic evaluation if the shell accepts $((...)).
3253 * lib/autotest/general.m4 (AT_INIT) <at_func_arith>: New
3254 function, to parametrize arithmetic with expr vs. the shell.
3255 Use it where possible.
3256 Suggestion by Benoit Sigoure.
3258 2007-11-03 Benoit Sigoure <tsuna@lrde.epita.fr>
3260 Adjust the documentation of autotest WRT atlocal.
3261 * doc/autoconf.texi (Making testsuite Scripts): It is not necessary,
3262 when using Automake, to write a rule to produce atlocal, since it's
3263 an AC_CONFIG_FILES. Mention that atlocal.in needs to be
3264 distributed, not atconfig.in.
3266 2007-11-04 Eric Blake <ebb9@byu.net>
3268 Update list information.
3269 * README: Mention new autoconf-commit list.
3270 * doc/autoconf.texi (Introduction): Mention autoconf-commit list.
3272 2007-11-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3274 * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Fix comment typo.
3276 * lib/m4sugar/Makefile.am (version.m4): Another bash bug workaround.
3278 * build-aux/.gitignore: Ignore mkinstalldirs.
3280 * doc/autoconf.texi (autoreconf Invocation): Fix an underfull line.
3282 2007-11-03 Jim Meyering <meyering@redhat.com>
3284 s/-/./ in snapshot version string: 2.61a-256-8b556 -> 2.61a.256-8b556
3285 * build-aux/git-version-gen: This syncs from coreutils.
3287 Adjust the build procedure so "make check" works reliably.
3288 * README-hacking: Include an extra step between "make" and
3289 "make check" to ensure that the latter passes.
3291 Use just-built tools, when possible.
3292 * GNUmakefile (PATH): Set and export here, ...
3293 (dummy): ... rather than here.
3295 2007-11-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3296 and Andreas Schwab <schwab@suse.de>
3298 * tests/Makefile.am ($(srcdir)/package.m4): Work around bash
3301 2007-11-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3303 * configure.ac (AC_PREREQ): Require version 2.60, for
3304 AC_PROG_SED, AC_PROG_GREP.
3306 2007-11-02 Benoit Sigoure <tsuna@lrde.epita.fr>
3307 and Jim Meyering <meyering@redhat.com>
3308 and Andreas Schwab <schwab@suse.de>
3309 and Eric Blake <ebb9@byu.net>
3311 Document a bug in GNU Bash with compound commands and redirections.
3312 * doc/autoconf.texi (Limitations of Builtins): Mention that GNU
3313 Bash doesn't properly set $? when `{ ... } >/bad' fails, and give
3316 2007-11-03 Eric Blake <ebb9@byu.net>
3318 Support m4 1.4.5 in testsuite.
3319 * tests/torture.at (Define a newline): Exclude line numbers in
3321 Reported by Ralf Wildenhues.
3323 2007-11-03 Jim Meyering <meyering@redhat.com>
3325 Remove automake-provided files from version control.
3326 * build-aux/elisp-comp: Remove file.
3327 * build-aux/install-sh: Remove file.
3328 * build-aux/missing: Remove file.
3329 * build-aux/mdate-sh: Remove file.
3330 * build-aux/.gitignore: New file.
3331 Suggestion from Ralf Wildenhues.
3333 2007-11-03 Eric Blake <ebb9@byu.net>
3335 Adjust version comparison to account for git snapshot numbers.
3336 * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Also treat - as a
3337 component separator.
3338 * doc/autoconf.texi (Number processing Macros)
3339 <m4_version_compare>: Document this change.
3340 * tests/m4sugar.at (m4@&t@_version_compare): Test it.
3342 2007-10-30 Bruno Haible <bruno@clisp.org>
3344 * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro,
3345 extracted from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
3346 (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT): Use it.
3347 Fixes problem with Sun C 5.[0-8] in 32-bit mode, reported in
3348 <http://lists.gnu.org/archive/html/autoconf-patches/2007-10/msg00210.html>
3349 Suggested by Paul Eggert.
3351 2007-10-28 Jim Meyering <meyering@redhat.com>
3353 * README-hacking: Autoconf, Automake, and Perl are required to build.
3354 List Gzip and Tar separately. Suggested by Ralf Wildenhues.
3356 2007-10-28 Jim Meyering <meyering@redhat.com>
3358 README-hacking: Recommend running autoreconf -vi.
3359 * GNUmakefile (dummy): Use autoreconf -i, with appropriate PATH,
3360 so that we use just-built tools when they're available.
3361 Suggestions from Ralf Wildenhues.
3363 2007-10-28 Jim Meyering <meyering@redhat.com>
3365 Make inter-release --version output more useful.
3367 Now, each unofficial build has a version "number" like 2.61a-19-58dd,
3368 which indicates that it is built using the 19th change set
3369 (in _some_ repository) following the "v2.61a" tag, and that 58dd
3370 is a prefix of the commit SHA1.
3371 * build-aux/git-version-gen: New file.
3372 * configure.ac: Run it to set the version.
3373 (AM_INIT_AUTOMAKE): Don't check NEWS here.
3374 * Makefile.am (dist-hook): Arrange so that .version appears only
3375 in distribution tarballs, never in a checked-out repository.
3376 * .gitignore: Add .version here, too. Just in case.
3377 * tests/Makefile.am ($(srcdir)/package.m4): Depend on Makefile,
3378 not configure.ac, now that the version number changes automatically.
3380 Ensure that $(VERSION) is up to date for dist-related targets.
3381 * GNUmakefile: Arrange to rerun autoconf, if the version reported by
3382 git-version-gen doesn't match $(VERSION), but only for dist targets.
3384 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3386 Fix `Deep Package' failure with a configure script early in PATH
3387 * tests/torture.at (Deep Package): Add `.' early in PATH.
3388 Report by Jim Meyering.
3390 2007-10-27 Jim Meyering <meyering@redhat.com>
3392 Remove all generated files from version control.
3393 * aclocal.m4: Remove.
3394 * configure: Remove.
3395 * Makefile.in: Remove, along with all other Makefile.in in subdirs.
3396 * .gitignore: Add aclocal.m4, configure and Makefile.in. Sort.
3397 * README-hacking: New file: how to build from just-checked-out sources.
3399 2007-10-23 Eric Blake <ebb9@byu.net>
3401 Improve corner case of m4_expand.
3402 * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Rewrite more
3404 * tests/m4sh.at (AS@&t@_HELP_STRING): Test overquoted comma.
3405 * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Update
3408 2007-10-23 Paul Eggert <eggert@cs.ucla.edu>
3410 * doc/make-stds.texi: Update from gnulib.
3412 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
3413 and Eric Blake <ebb9@byu.net>
3415 * lib/autoconf/c.m4 (AC_C_RESTRICT): Work around Sun C++ compatibility
3416 problem reported by Bruno Haible in
3417 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00027.html>.
3419 2007-10-22 Eric Blake <ebb9@byu.net>
3421 * doc/autoconf.texi (Particular Types): Mention bug in HP-UX 11.00
3424 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
3426 Don't check for bug in HP-UX 11.00 cpp.
3427 * lib/autoconf/types.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
3428 Use -1ull rather than -1u, since that causes problems with gnulib; see
3429 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
3431 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3433 * tests/autotest.at (Backquote command substitution)
3434 (Multiline backquote command substitution)
3435 (Parenthetical command substitution)
3436 (Multiline parenthetical command substitution): Fix typos in
3439 2007-10-21 Eric Blake <ebb9@byu.net>
3441 * configure: Regenerate.
3443 2007-10-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3445 Fix config status generation with Tru64 ksh.
3446 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix
3447 escaping of backslash in here-documents.
3449 Fix `Deep Package' test failure on FreeBSD.
3450 * tests/torture.at (Deep Package): Do not add `.' to $PATH
3451 unnecessarily. Do not try running `/bin/sh configure' with a
3452 configure script to be found in $PATH, if the shell does not do
3453 this resolution. Fixes test failure on FreeBSD.
3455 Fix config header generation with AIX awk.
3456 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): In awk
3457 script, use helper array D_is_set, as `" 0"' does not evaluate
3458 to true for AIX awk.
3460 2007-10-21 Eric Blake <ebb9@byu.net>
3462 * tests/autotest.at (Banners): Reinstate test, with typo
3465 2007-10-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3467 * lib/autotest/general.m4 (Defaults): Validate input ranges ...
3468 <at_func_validate_ranges>: ... using this new function.
3469 * tests/autotest.at (Keywords and ranges): Test invalid ranges.
3470 Test --list with ranges and keywords.
3471 (Banners): Remove one now-failing test.
3473 2007-10-20 Eric Blake <ebb9@byu.net>
3475 Fix testsuite --list subset.
3476 * lib/autotest/general.m4 (AT_INIT) <at_list_p>: Swap newlines
3477 back to spaces, before listing subset of tests.
3478 Reported by Ralf Wildenhues.
3480 2007-10-19 Eric Blake <ebb9@byu.net>
3482 s/parenthesis/parentheses/ where appropriate.
3483 * doc/autoconf.texi: Fix typos.
3484 * lib/m4sugar/m4sugar.m4: Likewise.
3485 Reported by Ralf Wildenhues.
3487 Document m4_expand limitation.
3488 * lib/m4sugar/m4sugar.m4 (m4_expand): Mention problem with
3490 * doc/autoconf.texi (Pretty Help Strings, Evaluation Macros)
3491 (Writing Testsuites): Mention limitations inherited from
3494 Improve AT_BANNER handling.
3495 * lib/autotest/general.m4 (BANNERS): New named diversion.
3496 (TESTS_END): Diversion no longer used.
3497 (AT_INIT) <at_func_banner, BANNERS>: Factor all banners into a
3498 shell function, which prints only as needed, using an associative
3499 array of banner text from a special diversion.
3500 <PARSE_ARGS_END>: No longer need awk to find banners.
3501 <TESTS>: Banners are no longer processed by main driver loop, so
3502 we no longer need case statement.
3503 (AT_BANNER): Rewrite to populate new diversion.
3504 (AT_SETUP): Each test invokes its own banner. No output is needed
3505 to the TESTS diversion.
3506 * doc/autoconf.texi (Writing Testsuites): Document slight
3508 * tests/autotest.at (AT_BANNERS): Enhance test.
3509 * NEWS: Document AT_BANNER.
3511 Document and test AT_BANNER.
3512 * doc/autoconf.texi (Writing Testsuites): Document AT_BANNER.
3513 * tests/autotest.at (AT_CHECK_EGREP): Share between tests.
3514 (AT_CHECK_BANNERS): New test.
3517 * doc/autoconf.texi (Text processing Macros) <m4_strip>
3518 <m4_text_wrap>: Clarify and fix typos.
3520 2007-10-18 Eric Blake <ebb9@byu.net>
3522 Ignore `make dist' changelogs in testsuite.log.
3523 * lib/autotest/general.m4 (AT_INIT) <ChangeLogs>: Prune
3524 directories matching AT_PACKAGE_TARNAME-*.
3526 Fix AT_TESTED, AT_KEYWORDS.
3527 * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Warn if separator
3528 occurs in string, as duplicates may be added.
3529 (_m4_append_uniq): New helper macro.
3530 (m4_append_uniq_w): New macro.
3531 * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Fix
3532 duplication bug by using new macro.
3533 (AT_INIT) <at_tested>: Restore newline separators. Invoke tested
3534 programs with stdin redirected, so programs that don't
3535 understand --version won't try to behave interactively.
3536 * tests/autotest.at (Tested programs): Catch this bug.
3537 * tests/m4sugar.at (m4@&t@_append): Test new macro.
3538 * tests/local.at (AT_TESTED): Add m4, perl.
3539 * doc/autoconf.texi (Text processing Macros): Document
3540 m4_append_uniq_w, and update text on m4_append.
3541 * NEWS: Document the addition.
3543 2007-10-17 Eric Blake <ebb9@byu.net>
3546 * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Convert
3548 (AT_INIT) <at_func_create_debugging_script>: ...to shell
3550 (AT_INIT): Defer function declarations until after --help,
3551 --version. Format functions consistently, trying to fit in 80
3553 (TEST_FUNCTIONS): Based on recent changes, rename...
3554 (TEST_GROUPS): ...to this.
3557 * m4/m4.m4 (AC_PROG_GNU_M4): Also check for frozen file support.
3558 * configure: Regenerate.
3559 Reported by Bob Friesenhahn.
3561 Test recent additions.
3562 * tests/m4sugar.at (m4@&t@_map, m4@&t@_combine)
3563 (m4@&t_max and m4@&t_min): New tests.
3564 * doc/autoconf.texi (Evaluation Macros) <m4_apply>: Enhance
3567 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3569 * TODO: multiline args in config files and headers work now.
3571 Autotest: do not use shell functions for individual tests.
3572 * lib/autotest/general.m4 (AT_INIT) <at_func_test>: Merely
3573 extract the source test source, do not invoke it.
3574 (AT_SETUP, AT_CLEANUP): Source test code outside shell function.
3575 * tests/autotest.at (Fallacy): Actually let the inner suite fail,
3576 expect exit status of 1.
3577 * tests/autotest.at (Skip): New test, for bogus zsh exit status.
3579 * lib/autotest/general.m4 (at_func_test): Fix test extraction
3582 2007-10-17 Eric Blake <ebb9@byu.net>
3584 Fix m4_combine for empty suffix list.
3585 * lib/m4sugar/m4sugar.m4 (m4_combine): Check for suffix list.
3586 * doc/autoconf.texi (Text processing Macros): Document this.
3588 Add m4_combine, based on Libtool's lt_combine.
3589 * lib/m4sugar/m4sugar.m4 (m4_combine): New macro.
3590 * doc/autoconf.texi (Text processing Macros): Document it.
3593 2007-10-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3595 Fix `configure --help=recursive' in unconfigured/read-only trees.
3596 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Avoid errors when `.'
3597 is not writable, use 'cp -p' in this case, in the hope that it
3598 will not actually be needed. Still try removing files, in case
3599 of other write errors.
3600 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): For ac_confdir,
3601 use $as_myself, not $0.
3602 (_AC_INIT_HELP): For --help=recursive, if the subdir does not
3603 exist, try again in the the source tree. This change assumes
3604 that the subpackage configure script is capable of running
3605 --help=recursive in the source tree.
3606 * tests/torture.at (Configuring subdirectories, Deep Package):
3607 Adjust tests to expose both issues, also try invocation as
3608 `sh configure ...' and plain `configure ...' with PATH adjusted.
3609 * NEWS, THANKS: Update.
3610 Report by Hans Ulrich Niedermann.
3612 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
3614 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
3615 Problem reported by H.Merijn Brand in
3616 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
3617 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
3618 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
3619 Check that preprocessor handles 64-bit ints, too.
3621 2007-10-16 Eric Blake <ebb9@byu.net>
3623 m4_map is a looping construct.
3624 * lib/m4sugar/m4sugar.m4 (m4_map, _m4_map, m4_map_sep): Move.
3626 Fix m4_map, and add some more utility macros.
3627 * lib/m4sugar/m4sugar.m4 (m4_apply, m4_count, m4_dquote_elt)
3628 (m4_echo, m4_make_list): New documented macros.
3629 (_m4_quote, _m4_shift2): New helper macros.
3630 (m4_map): Change semantics to allow calling macro without
3632 (m4_map_sep): Likewise. Also change semantics to quote separator,
3633 to match m4_join and m4_append.
3634 (m4_version_unletter): Fix use of m4_map.
3635 * doc/autoconf.texi (Evaluation Macros): Document m4_apply,
3636 m4_count, m4_dquote_elt, m4_echo, m4_make_list.
3637 (Text processing Macros): Mention m4_dquote as a faster
3638 alternative to joining with commas.
3639 (Looping constructs): Document m4_map, m4_map_sep.
3640 * NEWS: Mention new macros.
3642 A few more m4sugar improvements, to benefit libtool.
3643 * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts, _m4_shiftn): Reduce size
3644 of expansion by avoiding extra uses of $@.
3645 (m4_shiftn): Avoid extra dnl, and forbid shifting by 0.
3646 (_m4_cdr): New helper macro.
3647 (_m4_map, m4_map_sep): Use it to reduce size of expansion.
3648 (_m4_shift3): New helper macro.
3649 (_m4_foreach): Swap argument order, and use new macro to reduce
3651 * doc/autoconf.texi (Looping constructs) <m4_shiftn>: Mention that
3652 count must be positive.
3654 * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Fix typo.
3655 Reported by Ralf Wildenhues.
3657 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3659 * doc/autoconf.texi (Portable Shell): Improve description of zsh
3660 4.x function subshell bug with exit and trap.
3662 2007-10-15 Eric Blake <ebb9@byu.net>
3664 Enhance AS_HELP_STRING.
3665 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't expand arguments,
3666 and reduce number of expansions.
3667 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Rework to use m4_expand,
3668 and to take indent and wrap column numbers.
3669 * tests/m4sh.at (AS@&t@_HELP_STRING): Update the test.
3670 * doc/autoconf.texi (Pretty Help Strings): Document details about
3672 (Text processing Macros): Minor tweaks.
3673 * NEWS: Document this change.
3675 Fix 2007-10-03 regression with AT_SETUP([a, b]).
3676 * lib/m4sugar/m4sugar.m4 (m4_expand): New macro.
3677 (m4_text_box): Use it.
3678 * lib/autotest/general.m4 (AT_SETUP): Use it.
3679 * lib/m4sugar/m4sh.m4 (_AS_RUN): Use it.
3680 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Test this.
3681 * NEWS: Revert caveat about semantics change on comma.
3682 * doc/autoconf.texi (Evaluation Macros): Document m4_expand.
3684 2007-10-13 Eric Blake <ebb9@byu.net>
3686 Change m4_join to match libtool's ltsugar semantics.
3687 * lib/m4sugar/m4sugar.m4 (m4_join): Just define this, not defun.
3688 Ignore empty arguments, using...
3689 (_m4_join): ...this new helper.
3690 * tests/m4sugar.at (m4@&t@_join): New test.
3691 * doc/autoconf.texi (Text processing Macros): Document new
3692 semantics of m4_join.
3694 Make AC_PREREQ faster and more robust.
3695 * lib/m4sugar/m4sugar.m4 (m4_ignore, m4_unquote): New macros.
3696 (m4_version_prereq): Inline constant expansions.
3697 (m4_list_cmp): Reduce number of expansions, by avoiding m4_case.
3698 Rewrite in terms of [] list, not () list.
3699 (_m4_list_cmp, _m4_version_unletter): New helper macros.
3700 (m4_version_unletter): Write wrapper around new implementation to
3701 preserve old semantics.
3702 (m4_version_compare): Pass correct type of list, and avoid
3703 overhead of flattening expressions too early.
3704 (m4_do): Move to be near other quoting macros.
3705 (m4_max, m4_min): Always result in decimal output.
3706 * doc/autoconf.texi (Looping constructs): Add m4_car, m4_cdr.
3708 (Evaluation Macros): ...here. Add m4_ignore, m4_unquote.
3709 (Text processing Macros): Move m4_version_compare...
3710 (Number processing Macros): ...to this new node; document m4_cmp,
3711 m4_list_cmp, m4_sign, m4_max, m4_min.
3712 * tests/m4sugar.at (m4@&t@_version_compare): Enhance test, to pick
3713 up on bugs fixed by this patch.
3714 * NEWS: Document new macros.
3716 2007-10-12 Eric Blake <ebb9@byu.net>
3718 * doc/autoconf.texi (Text processing Macros): Fix bad merge.
3719 (Reporting Messages): Fix underfull hbox.
3721 Some more m4sugar documentation.
3722 * lib/m4sugar/m4sugar.m4: Clean up macro order.
3723 * doc/autoconf.texi (Programming in M4): Lighten the warning on
3724 using m4sugar; it is stabilizing and useful.
3725 (Redefined M4 Macros): Touch up wording on M4 builtins; sort. Add
3726 m4_divert, m4_undivert, __file__, __line__, __oline__.
3727 (Diagnostics): New node, documenting m4_assert, m4_errprintn,
3728 m4_fatal, m4_location, m4_warn.
3729 (Diversion support): New node, documenting m4_divert_push,
3730 m4_divert_pop, m4_divert_text, m4_divert_once.
3731 (Text processing Macros): Sort. Add m4_flatten, m4_join,
3732 m4_newline, m4_strip, m4_text_box, m4_text_wrap.
3733 (Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
3735 (Printing Messages): Change cross-reference.
3737 Document interaction of recent m4_append change with Libtool HEAD.
3738 * lib/m4sugar/m4sugar.m4 (m4_append): Document semantics change.
3739 (m4_append_uniq): Add new parameters, based on lt_append_uniq.
3740 * tests/m4sugar.at (m4@&t@_append): New test.
3741 * NEWS: Document semantics change.
3742 * doc/autoconf.texi (Text processing Macros): Likewise.
3744 s/AC_VERSION/AC_AUTOCONF_VERSION/.
3745 * doc/autoconf.texi (Versioning): Change the name.
3747 * lib/autoconf/general.m4 (AC_AUTOCONF_VERSION): Likewise.
3748 * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Likewise.
3749 Suggested by Ralf Wildenhues.
3752 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE)
3753 (_AC_OUTPUT_HEADERS_PREPARE): Convert here-doc delimiters into
3755 * doc/autoconf.texi (Programming in M4sugar, Forbidden Patterns)
3756 (Programming in M4sh, Macro Names): Beef up description of
3757 namespaces reserved for autoconf.
3758 * configure: Regenerate.
3760 2007-10-12 Eric Blake <ebb9@byu.net>
3761 and Paolo Bonzini <bonzini@gnu.org>
3763 Speed up execution of subset of testsuite.
3764 * lib/autotest/general.m4 (TEST_FUNCTIONS): New diversion.
3765 (AT_INIT) <at_func_test>: New shell function.
3766 (AT_INIT) <at_myself>: New variable, set to absolute $as_myself.
3767 (AT_INIT) <at_test_source> New variable, names file that holds
3768 current test function definition.
3769 (AT_SETUP): Start the shell function at_func_test_#, into the
3770 TEST_FUNCTIONS diversion.
3771 (AT_CLEANUP): End the shell function. Simplify the TESTS
3772 diversion to invoke the function.
3774 2007-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3776 * .gitignore: Ignore tags and TAGS files.
3778 2007-10-11 Eric Blake <ebb9@byu.net>
3780 Config header generation followup.
3781 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Check for raw newlines,
3782 which won't work with the preprocessor nor with the awk
3784 * tests/torture.at (Define a newline): Test raw newline detection,
3786 * doc/autoconf.texi (Defining Symbols): Document recent change to
3787 allow backslash-newline.
3790 2007-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3792 * lib/autotest/general.m4: Put function braces in separate line.
3794 2007-10-10 Eric Blake <ebb9@byu.net>
3796 Avoid some overhead from m4_defn and m4_popdef.
3797 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Only
3798 pass on first argument, since we are documented that way.
3799 (m4_for, m4_append_uniq, m4_text_wrap): Optimize out defined-ness
3800 check where it is safe to do so.
3801 (m4_append): Likewise, and quote the separator.
3802 (m4_text_box): Likewise, and avoid regex, also be robust to
3803 expansion and quadrigraphs.
3805 Another AC_DEFINE speedup.
3806 * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Move parameter
3808 (_AC_DEFINE_Q): ...here, and only do it once.
3809 * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid overquoting.
3810 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix m4_defn overquoting
3811 introduced 2007-10-05.
3814 * lib/autoconf/general.m4: Use consistent indentation.
3815 * configure: Regenerate.
3817 * NEWS: Announce recent round of speed optimizations.
3819 2007-10-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3821 * NEWS: Announce shell function usage in Autotest.
3823 2007-10-10 Eric Blake <ebb9@byu.net>
3824 and Paul Eggert <eggert@cs.ucla.edu>
3826 Reduce number of forks at startup.
3827 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Speed up NLS
3829 * configure: Regenerate.
3831 2007-10-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3832 and Paul Eggert <eggert@cs.ucla.edu>
3834 Use awk for config header generation.
3835 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix comments.
3836 (_AC_OUTPUT_HEADERS_PREPARE): New macro. Rewrite of the config
3837 header machinery for use with awk and placement outside the main
3838 config.status instantiation loop. Retain multi-line defines
3839 through backslash-newline combinations, do not split the script
3841 (_AC_OUTPUT_HEADER): Simplify accordingly, use $AWK.
3842 (_AC_OUTPUT_MAIN_LOOP): Call _AC_OUTPUT_HEADERS_PREPARE if
3844 (AC_OUTPUT_MAKE_DEFS): Remove backslash-newline combinations
3847 * tests/torture.at (#define header templates): Extend test by
3848 several more cases: white space before and after `#', macros
3849 with parameters in config.hin and as defines, multi-line macro
3851 (Torturing config.status): Use a define value twice the length
3852 in order to exercise the awk literal string limit.
3853 (Substitute and define special characters): Also try special
3854 delimiter, to exercise the special-case code.
3855 Suggestion by Eric Lemings.
3857 2007-10-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3859 * tests/local.at (AT_COPYRIGHT): Bump copyright years.
3861 2007-10-09 Eric Blake <ebb9@byu.net>
3863 Improve header of bin/autoconf.
3864 * lib/m4sugar/m4sh.m4 (AS_INIT): Add a 'generated from' notice.
3865 * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Override new notice
3867 * bin/autoconf.as: Put copyright up front in generated file.
3869 * bin/autoconf.as (exit_missing_arg): Font-lock tweak.
3871 2007-10-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3873 * doc/install.texi (Basic Installation): Document `uninstall'.
3874 * INSTALL: Regenerate.
3875 Suggestion by Roberto Bagnara.
3877 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
3879 * doc/autoconf.texi (Limitations of Usual Tools): V7 awk had 'index'.
3881 Adjust doc. to match latest gnulib.
3882 * build-aux/texinfo.tex: Sync from gnulib.
3883 * doc/standards.texi: Likewise.
3884 * doc/autoconf.texi (Copying This Manual): Rename to "GNU Free
3885 Documentation License" and remove the subsection. This simplifies
3886 the manual a bit and is more like what other GNU projects do
3889 2007-10-08 Eric Blake <ebb9@byu.net>
3892 * configure: Regenerate.
3894 Fix regression in m4_text_wrap from 2007-10-05.
3895 * lib/m4sugar/m4sugar.m4 (m4_max, m4_min): New macros.
3897 (m4_text_wrap): Fix off-by-one error in rewrite from m4_for to
3899 * lib/autotest/general.m4 (AT_SETUP): Avoid negative width.
3900 * tests/autotest.at (Long test title, Longer test title): Test
3901 this fix, beyond what AS_HELP_STRING already tests.
3903 Avoid m4 warnings on bad m4_format usage.
3904 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Use %*s, in case width
3906 * lib/autotest/general.m4 (AT_SETUP): Likewise; also ensure that
3907 enough arguments are provided.
3909 2007-10-06 Paolo Bonzini <bonzini@gnu.org>
3911 * doc/autoconf.texi (Shell portability): Document shell function
3914 2007-10-06 Paolo Bonzini <bonzini@gnu.org>
3916 * lib/autotest/general.m4 (AT_INIT): Add at_func_diff_devnull,
3917 at_func_check_skip, at_func_check_status, at_func_filter_trace,
3918 at_func_log_failure shell functions. Use test -s to avoid
3919 useless diff invocations.
3920 (at_func_check_newline): Renamed from at_check_newline.
3921 (AT_SETUP): Define AT_captured_files to empty.
3922 (AT_DIFF_STDERR(*), AT_DIFF_STDOUT(*)): New, extracted from _AT_CHECK.
3923 (_AT_CHECK): Replace m4_case with m4_ifdef/m4_indir. Use all
3924 the shell functions.
3926 2007-10-05 Paul Eggert <eggert@cs.ucla.edu>
3928 Don't assume "." is writeable, for commands like "autoconf --version".
3929 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use a
3930 different heuristic instead, one that doesn't rely on creating
3933 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle "///"
3936 2007-10-05 Jim Meyering <meyering@redhat.com>
3938 Avoid makeinfo warnings.
3939 * doc/autoconf.texi (Redefined M4 Macros): Add a `,' after @xref.
3940 (Looping constructs): Add ` ' after @defmac'd name, m4_do.
3942 2007-10-05 Eric Blake <ebb9@byu.net>
3944 Resolve Python issue 1676135 regarding configure directory args.
3945 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Strip trailing
3946 slashes from directory arguments.
3947 * tests/base.at (configure directories): New test.
3948 * doc/autoconf.texi (Installation Directory Variables): Document
3952 Reported by Björn Lindqvist.
3954 Provide better short-circuiting operation.
3955 * lib/m4sugar/m4sugar.m4 (m4_cond, m4_newline): New macros.
3956 (m4_text_wrap): Use it. Also avoid useless m4_for.
3957 * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE, AS_LITERAL_IF): Use
3959 (_AS_IDENTIFIER_IF): Likewise, and fix bug when $1 is [,].
3960 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Use new macros
3962 * doc/autoconf.texi (Redefined M4 Macros): Expand m4_if
3963 documentation. Sort m4_mkstemp, m4_undefine. Move m4_ifndef...
3964 (Conditional constructs): ...here, to new section. Also document
3965 m4_cond, m4_ifval, m4_n, m4_ifvaln, m4_ifset, m4_case, m4_bmatch,
3966 m4_bpatsubsts, and m4_default.
3967 (Looping constructs): Document m4_shiftn, m4_shift2, m4_shift3,
3970 2007-10-04 Eric Blake <ebb9@byu.net>
3972 Fix recent testsuite failures.
3973 * lib/autotest/general.m4 (AT_INIT, AT_SETUP): Double-quote text
3974 that must not be re-expanded after AS_ESCAPE.
3975 * lib/m4sugar/m4sh.m4 (_AS_IDENTIFIER_IF): Don't expand $1 when
3976 checking if it is an identifier.
3979 * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Avoid
3980 leading whitespace, as it caused space-tab in testsuite.
3981 (AT_INIT): Avoid trailing newlines in testsuite.
3983 One more round of m4_foreach_w speedups.
3984 * lib/m4sugar/m4sugar.m4 (m4_flatten): Only use regex if newline
3986 (_m4_split): Avoid useless expansions inside definition. Move
3987 argument defaulting...
3988 (m4_split): ...here. Change alternate quote to something less
3989 likely to appear in $1. Also, special case space as regexp...
3990 (m4_foreach_w): ...to avoid regexp on single-term list.
3991 (m4_default, m4_defn, m4_popdef, m4_undefine, _m4_foreach): Avoid
3992 useless expansions inside definition.
3993 * tests/m4sugar.at (m4@&t@_split): Add tests.
3995 2007-10-04 Paolo Bonzini <bonzini@gnu.org>
3997 * general.m4 (AT_INIT): Add at_check_newline function.
3998 (_AT_DECIDE_TRACEABLE): Include at_traceon test, use shell function.
3999 (_AT_CHECK): Don't use at_trace_this.
4001 2007-10-04 Paolo Bonzini <bonzini@gnu.org>
4003 Fix previous commit.
4004 * lib/autotest/general.m4 (AT_LINE): Fix regex.
4006 2007-10-04 Eric Blake <ebb9@byu.net>
4008 Speed up building testsuites.
4009 * lib/autotest/general.m4 (AT_LINE): Only use regex when file
4010 changed since last time. Use simpler regex.
4012 2007-10-03 Eric Blake <ebb9@byu.net>
4014 Optimize checking for identifiers.
4015 * lib/m4sugar/m4sh.m4 (AS_IDENTIFIER_IF, _AS_IDENTIFIER_IF): New
4016 macros, more efficient than regex on m4_re_word.
4017 * lib/autoconf/general.m4 (AC_SUBST, AC_DEFINE_TRACE_LITERAL):
4018 Rewrite in terms of new macro. As a side-effect, AC_DEFINE can
4020 * configure: Regenerate.
4022 Remove some XFAILs, and make AT_SETUP output line up.
4023 * lib/autotest/general.m4 (AT_SETUP): Only expand description
4024 once; thereafter, use its expansion, properly quoted.
4025 * tests/autotest.at (AT_CHECK_AT_TITLE): Also check macro
4026 expansion with arguments, and check for aligned output.
4027 (AT_CHECK_AT_TITLE_CHAR): Remove XFAILs for tests that now pass.
4028 Add a test for macros with parameters.
4029 * NEWS: Document the semantics change.
4030 * tests/base.at: Fix test titles containing commas.
4031 * tests/compile.at: Likewise.
4032 * tests/tools.at: Likewise.
4033 * tests/torture.at: Likewise.
4035 Another round of regex avoidance.
4036 * lib/m4sugar/m4sugar.m4 (m4_cr_alnum, m4_cr_all)
4037 (_m4_define_cr_not, m4_cr_not_letters, m4_cr_not_LETTERS)
4038 (m4_cr_not_Letters, m4_cr_not_digits, m4_cr_not_alnum)
4039 (m4_cr_not_symbols1, m4_cr_not_symbols2): New macros, implementing
4040 character ranges useful in m4_translit.
4041 (m4_toupper, m4_tolower): Optimize the constant portion of
4043 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Also reject @S|@ because it
4044 creates $, and reject [] thanks to AS_TR_SH rewrite.
4045 (AS_TR_SH, AS_TR_CPP): Use just translit, not bpatsubst.
4046 (AS_ESCAPE): Factor...
4047 (_AS_ESCAPE): ...into new macro, with second argument required.
4048 Avoid regex in common case.
4049 (_AS_QUOTE): Use new macro.
4052 * lib/autoconf/types.m4: Avoid space-tab.
4053 * lib/m4sugar/m4sh.m4: Use tab consistently.
4055 2007-10-03 Paul Eggert <eggert@cs.ucla.edu>
4057 * lib/m4sugar/m4sugar.m4 (m4_shift2, m4_shift3): New macros.
4058 (m4_shiftn): Remove no-longer-needed optimization. Perhaps we
4059 should remove m4_shiftn entirely?
4060 (m4_case, b4_bmatch, m4_map_sep, m4_bpatsubsts, m4_join):
4061 Prefer m4_shift2 and m4_shift3 to m4_shiftn.
4062 * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
4063 * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Likewise.
4064 * tests/autotest.at (AT_CHECK_AT_TEST): Likewise.
4066 2007-10-03 Eric Blake <ebb9@byu.net>
4069 * lib/m4sugar/m4sugar.m4: Grammar fixes in comments.
4071 2007-10-02 Eric Blake <ebb9@byu.net>
4073 Optimize appending text.
4074 * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Use index, not regular
4078 * lib/m4sugar/m4sugar.m4 (m4_shiftn): This macro is called in a
4079 lot of hot spots; optimize it for 2 and 3 shifts.
4081 Optimize AC_PREREQ and other m4sugar numerics.
4082 * lib/m4sugar/m4sugar.m4 (m4_sign): Write with m4_eval.
4083 (m4_cmp): Compare arbitrary expressions, without overflow.
4084 (m4_version_unletter): Also recognize capital letters.
4085 (m4_version_compare): Avoid regex when splitting version number
4088 2007-10-01 Eric Blake <ebb9@byu.net>
4090 Once again, reject IRIX m4.
4091 * m4/m4.m4 (AC_PROG_GNU_M4): Use indir builtin to root out non-GNU
4092 implementations that ignore --trace.
4093 * configure: Regenerate.
4094 Reported by Ralf Wildenhues.
4096 Fix regression in AC_DEFINE([macro(with_arg)]).
4097 * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't chop off close
4098 quotes with a careless m4_substr.
4100 2007-09-30 Eric Blake <ebb9@byu.net>
4102 Allow nameless iteration.
4103 * lib/m4sugar/m4sugar.m4 (m4_for, _m4_for): Access variable
4105 * tests/m4sugar.at (myvar): Test this.
4107 2007-09-29 Eric Blake <ebb9@byu.net>
4109 Speed optimization: avoid m4 regex when other algorithms work.
4110 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Rewrite without regex.
4111 (_AS_QUOTE_IFELSE): Likewise.
4112 * lib/m4sugar/m4sugar.m4 (m4_strip): Reduce from 3 to 2 regex.
4113 (m4_bpatsubsts): Split...
4114 (_m4_bpatsubsts): ...so that recursion can avoid patsubst on empty
4116 (_m4_divert()): Define, to avoid m4 warning on `m4_divert'.
4117 (m4_qlen): Optimize on short strings, to avoid regex.
4118 (m4_sign): Avoid regex, and fix bug with `01' and `-0'.
4119 * lib/autoconf/general.m4 (AC_CACHE_VAL): Rewrite without regex.
4120 (AC_DEFINE_TRACE): Likewise.
4122 2007-09-28 Eric Blake <ebb9@byu.net>
4124 Oops - my earlier 'optimization' caused a regression.
4125 * tests/local.at (AT_CHECK_M4): Fix typo.
4127 2007-09-27 Eric Blake <ebb9@byu.net>
4128 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4130 Catch even more common AC_CACHE_VAL mistakes.
4131 * lib/autoconf/general.m4 (AC_CACHE_VAL): Warn if cache variable
4132 lacks '_cv_', or if AC_SUBST appears in body.
4133 * tests/base.at (AC_CACHE_CHECK): Test this change.
4135 2007-09-27 Stepan Kasal <kasal@ucw.cz>
4136 and Eric Blake <ebb9@byu.net>
4138 Autotest no longer caters to Ultrix redirection limitation.
4139 * doc/autoconf.texi (Writing testsuite.at): Remove the
4140 limitation that the first parameter of AT_CHECK cannot
4141 contain redirection.
4142 (File Descriptors): Mention that Ultrix limitation is no longer a
4143 show-stopper in modern code.
4144 * tests/local.at (AT_CHECK_M4): Fix for cases when the fourth
4145 parameter is `stderr' or `experr'. Optimize if it was `ignore'.
4146 * lib/autotest/general.m4 (AT_CHECK): Update comment.
4148 2007-09-27 Eric Blake <ebb9@byu.net>
4150 Squelch changeword in m4sugar.
4151 * lib/m4sugar/m4sugar.m4 (changeword): Disable this experimental
4152 feature of m4 1.4.x.
4154 Configure whitespace touchups.
4155 * lib/autoconf/general.m4 (_AC_INIT_HELP): Fix alignment of
4156 installation directories, and avoid TAB, in configure --help
4158 * configure.ac: Avoid extra trailing newline.
4159 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Avoid space-tab.
4160 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid TAB in
4161 config.status --help output.
4162 * configure: Regenerate.
4164 Fix underquotation in AS_HELP_STRING.
4165 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Don't underquote lhs
4167 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't underquote
4168 first-prefix argument.
4169 * tests/m4sh.at (AS@&t@_HELP_STRING): Test this fix.
4170 * NEWS: Document AS_HELP_STRING fix.
4172 Autotest formatting touchups.
4173 * lib/autotest/general.m4 (HELP_TUNING): Avoid TAB in terminal
4175 (PATH): Simplify computation of new PATH.
4177 2007-09-26 Eric Blake <ebb9@byu.net>
4179 Fix testsuite breakage in last patch.
4180 * tests/autotest.at (AT_CHECK_AT_TITLE): Properly quote the
4182 * tests/torture.at (@%:@define header templates): Rename, so that
4183 output lines up correctly.
4185 More font-lock happiness.
4186 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Clean up font
4189 2007-09-25 Eric Blake <ebb9@byu.net>
4192 * lib/autoconf/general.m4 (AC_SUBST): Fix typo in comment.
4193 * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Likewise.
4195 Improve documentation of M4 parameter expansion.
4196 * doc/autoconf.texi (Quoting and Parameters): New section.
4197 (Quotation and Nested Macros): Improve wording.
4199 Improve C99 detection.
4200 * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and
4201 avoid deprecation warning with icc.
4203 Reported by Ted Bullock.
4205 2007-09-24 Jim Meyering <jim@meyering.net>
4207 Whenever possible, use the vertical bar as sed delimiter.
4208 * lib/autoconf/functions.m4 (GETLOADAVG_LIBS) [AC_FUNC_GETLOADAVG]:
4210 * lib/autoconf/status.m4 (_AC_SRCDIRS) [ac_top_builddir_sub]:
4211 [ac_dir_suffix]: Use "|", not "," as sed delimiter.
4212 * tests/mktests.sh (as_me): Likewise.
4213 * lib/freeze.mk (check-forbidden-patterns): Likewise.
4214 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
4215 * configure: Regenerate.
4216 * doc/autoconf.texi (Shell Substitutions): Use "|", not "," in examples.
4217 * lib/autotest/general.m4 (AT_INIT): Use "|", not "&" as sed delimiter
4218 in the : -> $PATH_SEPARATOR transformation of $AUTOTEST_PATH.
4219 This is fine, as long as $PATH_SEPARATOR doesn't contain "|".
4221 2007-09-22 Jim Meyering <jim@meyering.net>
4224 * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Document the
4225 2004-05-31 change also with a comment in the code.
4227 2007-09-20 Eric Blake <ebb9@byu.net>
4229 More contribution housekeeping.
4231 * AUTHORS: Sort, reflect recent assignment from Helge Deller.
4233 Ignore additional files, when copying cross-repository.
4234 * .gitignore: Ignore CVS directories, emacs edits.
4235 * .cvsignore: Ignore .git directory, emacs edits.
4237 2007-09-15 Eric Blake <ebb9@byu.net>
4239 Provide AC_VERSION, not m4_AUTOCONF_VERSION.
4240 * doc/autoconf.texi (Text processing Macros): Remove mention of
4241 m4_AUTOCONF_VERSION, and leave m4_PACKAGE_VERSION undocumented
4243 (Notices): Move AC_PREREQ...
4244 (Versioning): ...to this new section, alongside the new AC_VERSION
4245 alias for the undocumented m4_PACKAGE_VERSION.
4246 * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): Revert change.
4247 * lib/autoconf/general.m4 (AC_VERSION): New macro.
4248 * NEWS: Update to match this rename.
4249 * tests/m4sugar.at (m4@&t@_version_compare): Remove tests of
4251 * tests/tools.at (autoconf: AC_VERSION): New test.
4252 Suggested by Paolo Bonzini and Benoit Sigoure.
4254 2007-09-14 Eric Blake <ebb9@byu.net>
4256 Prepare for conversion to git.
4257 * doc/.cvsignore: Avoid multiple listings on one line.
4258 * bin/.cvsignore: Likewise.
4259 * .gitignore, bin/.gitignore, config/.gitignore, doc/.gitignore,
4260 lib/.gitignore, lib/Autom4te/.gitignore, lib/autoconf/.gitignore,
4261 lib/autoscan/.gitignore, lib/autotest/.gitignore,
4262 lib/emacs/.gitignore, lib/m4sugar/.gitignore, man/.gitignore,
4263 tests/.gitignore: New files, identical to .cvsignore counterpart.
4265 2007-09-13 Eric Blake <ebb9@byu.net>
4268 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Restore
4270 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Likewise.
4271 * lib/autoconf/general.m4 (_AC_DO_ECHO): Likewise.
4272 * configure: Regenerate.
4274 Clean up 'make dist' of previous patch.
4275 * tests/Makefile.am (EXTRA_DIST): Distribute mktests.stamp.
4276 (CLEANFILES): Don't clean the stamp, since we distribute the
4277 generated files pre-built.
4278 (MAINTAINERCLEANFILES): Clean it here instead.
4279 * tests/Makefile.in: Regenerate.
4281 Avoid parallel 'make check' issue.
4282 * tests/Makefile.am (mktests.stamp): New witness.
4283 (TESTSUITE_GENERATED_AT): Use it.
4284 (CLEANFILES): Clean the witness.
4285 * tests/.cvsignore (mktests.stamp): Ignore the witness.
4287 Document another awk pitfall.
4288 * doc/autoconf.texi (Limitations of Usual Tools) <awk>: Document
4289 limitation of field variables in END.
4290 Reported by Gary V. Vaughan.
4292 * AUTHORS: Add missing entries.
4294 2007-09-12 Eric Blake <ebb9@byu.net>
4296 Publish m4_ifndef, m4_version_compare, m4_AUTOCONF_VERSION.
4297 * doc/autoconf.texi (Text processing Macros): Document
4298 m4_version_compare, m4_AUTOCONF_VERSION, m4_PACKAGE_VERSION.
4299 (Redefined M4 Macros): Document m4_ifndef.
4300 * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): New macro; we
4301 can't obsolete m4_PACKAGE_VERSION at this time since Autoconf 1.10
4302 used it while it was undocumented.
4303 * NEWS: Document this change.
4304 * lib/m4sugar/Makefile.am (version.m4): Update copyright dates.
4305 * lib/m4sugar/Makefile.in: Regenerate.
4306 * tests/m4sugar.at (m4@&t@_version_compare): New test.
4307 Reported by Bruno Haible.
4309 * doc/autoconf.texi (Generic Compiler Characteristics): Add
4310 missing index entries.
4312 2007-09-11 Eric Blake <ebb9@byu.net>
4314 Centralize all system extensions checks.
4315 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
4316 from AC_AIX, AC_GNU_SOURCE, AC_MINIX. Add Interix support.
4317 (AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
4318 AC_USE_SYSTEM_EXTENSIONS.
4319 (AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
4320 (AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
4321 * doc/autoconf.texi (Posix Variants): Reword this section,
4322 emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
4323 rather than a series of system-specific checks.
4324 (Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
4326 * NEWS: Document this change.
4328 Reported by Martin Koeppe.
4330 2007-09-08 Eric Blake <ebb9@byu.net>
4332 Clean up obsolete macros references.
4333 * doc/autoconf.texi: Add anchors to support better
4335 (Particular Structures): Move obsolete macros descriptions...
4336 (External Software): Likewise.
4337 (Package Options): Likewise.
4338 (Obsolete Macros): ...to here. Add cross-references to
4339 documentation on replacements.
4340 * NEWS: Mention that these macros have been obsolete for a while
4341 now: AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_RDEV AC_WITH AC_ENABLE.
4343 Improve M4 path searching during configure.
4344 * lib/autoconf/programs.m4 (AC_PATH_PROGS_FEATURE_CHECK): New
4346 (_AC_PATH_PROG_FEATURE_CHECK): Rename...
4347 (_AC_PATH_PROGS_FEATURE_CHECK): ...to this, add defaulted action
4348 parameter, and kill side effects.
4349 (_AC_PROG_GREP, AC_PROG_SED): Adjust callers.
4350 (_AC_FEATURE_CHECK_LENGTH): Kill extra whitespace.
4351 * m4/m4.m4 (AC_PROG_GNU_M4): Don't stop searching until working m4
4353 (AC_PATH_PROGS_FEATURE_CHECK): Add backwards compatibility hack to
4354 allow bootstrapping with autoconf 2.61.
4355 * configure.ac (M4): AC_PROG_GNU_M4 now exits on failure.
4356 * configure: Regenerate.
4357 * doc/autoconf.texi (Generic Programs): Document new macro.
4358 * tests/mktests.sh (au_exclude_script): Exclude auto-testing new
4360 * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): New test.
4361 * NEWS: Document the change.
4363 Reported by Hans Aberg.
4365 * doc/autoconf.texi (Generic Programs): Fix typo.
4367 2007-09-06 Eric Blake <ebb9@byu.net>
4369 * doc/autoconf.texi (Generic Programs): Use $PATH_SEPARATOR, not
4370 :, and make it clear that optional @var{path} defaults to $PATH.
4371 (Erlang Compiler and Interpreter): Likewise.
4374 * doc/autoconf.texi: Avoid lines > 80 columns when possible.
4375 Reword some paragraphs to avoid overfull, underfull hbox
4376 warnings. Add index entries to avoid overfull vbox warnings.
4378 2007-09-05 Eric Blake <ebb9@byu.net>
4380 * NEWS: Adjust wording for AC_CONFIG_LINKS.
4381 Reported by Ralf Wildenhues.
4383 2007-09-03 Eric Blake <ebb9@byu.net>
4385 * NEWS: Document fixes that have been applied since 2.61a.
4388 * THANKS: Update, and convert to UTF-8 encoding.
4389 * AUTHORS: Likewise.
4391 2007-08-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4393 * lib/autoconf/general.m4 (AC_SITE_LOAD): Guard against file
4394 names beginning with `-' again.
4396 2007-08-22 Stepan Kasal <kasal@ucw.cz>
4397 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4399 * doc/autoconf.texi (Defining Directories): Mention
4400 AM_CPPFLAGS, as the way to modify CPPFLAGS when using Automake.
4402 2007-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4404 * lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
4405 here, this macro is expanded by AC_INIT. Fixes 2.60 regression.
4406 * tests/base.at (configure arguments): New test.
4408 Report by Olaf Lenz.
4410 * lib/autoconf/general.m4 (_AC_ENABLE_IF): Expand macro
4411 arguments in comment.
4412 Report by Vincent Torri <vtorri at univ minus evry dot fr>.
4414 2007-08-20 Benoit Sigoure <tsuna@lrde.epita.fr>
4416 * doc/autoconf.texi (File System Conventions): Index the proper
4417 way of detecting absolute file names.
4419 2007-08-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4421 * build-aux/config.guess, build-aux/config.sub,
4422 build-aux/elisp-comp, build-aux/install-sh, build-aux/mdate-sh,
4423 build-aux/missing, build-aux/texinfo.tex, doc/fdl.texi,
4424 doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
4425 * doc/autoconf.texi (GNU Free Documentation License): Adjust for
4426 sectioning change in fdl.texi.
4428 * bin/autoconf.as: Update --version output to match current GCS.
4429 * bin/autoheader.in: Likewise.
4430 * bin/autom4te.in: Likewise.
4431 * bin/autoreconf.in: Likewise.
4432 * bin/autoscan.in: Likewise.
4433 * bin/autoupdate.in: Likewise.
4434 * bin/ifnames.in: Likewise.
4436 2007-08-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4438 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not try to link a
4439 file to itself if source and build trees coincide.
4440 * tests/torture.at (AC_CONFIG_LINKS and identical files): New
4442 Report by Sebastian Freundt <hroptatyr@gna.org>.
4444 2007-07-20 Paul Eggert <eggert@cs.ucla.edu>
4446 Reword the copyright notices to match what's suggested in GPLv3.
4447 In ChangeLog files, use more-permissive notice rather than GPL, as
4448 per usual GNU standards these days.
4450 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
4452 * doc/autoconf.texi (autoreconf Invocation): Document ACLOCAL_AMFLAGS
4453 limitation reported by Leo Moisio in
4454 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432941>.
4456 2007-07-03 Paul Eggert <eggert@cs.ucla.edu>
4458 * COPYING: Update to GPLv3. All uses changed.
4460 2007-06-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4461 and Paul Eggert <eggert@cs.ucla.edu>
4463 * doc/autoconf.texi (Limitations of Usual Tools): sed -e ''
4466 2007-06-17 Noah Misch <noah@cs.caltech.edu>
4468 * lib/autotest/general.m4 (AT_INIT): Handle absolute `srcdir'.
4469 * tests/autotest.at (srcdir propagation): Test absolute `srcdir' and
4470 `srcdir' as subdirectory of `builddir'.
4472 2007-06-13 Noah Misch <noah@cs.caltech.edu>
4474 * lib/autotest/general.m4 (AT_INIT): Compute $srcdir correctly.
4475 * tests/autotest.at (srcdir propagation): New test.
4477 Reported by Mike Frysinger.
4479 2007-06-13 Paul Eggert <eggert@cs.ucla.edu>
4481 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Set FPATH too.
4482 Problem reported by Fred Kreek in
4483 <http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00009.html>.
4484 * doc/autoconf.texi (Special Shell Variables): Warn about FPATH.
4485 (Macro Names, Defining Directories): Don't mention PATH as a name
4486 for a fully qualified file name, as this usage violates the GNU
4487 coding standards and we shouldn't recommend it.
4489 * lib/autotest/general.m4 (AT_INIT): Don't set PATH to the empty
4490 string and then assume shell builtins like "test" will work.
4492 2007-06-12 Noah Misch <noah@cs.caltech.edu>
4494 * lib/autoconf/general.m4 (AC_SUBST): Raise a fatal error if VARIABLE is
4495 not a valid shell variable name.
4496 * tests/mktests.sh (ac_exclude_list): Add AC_ARG_VAR.
4497 * tests/torture.at (AC_SUBST: variable name validation): New test.
4498 Reported by Andreas Schwab.
4500 2007-06-04 Noah Misch <noah@cs.caltech.edu>
4502 * doc/autoconf.texi (AC_F77_MAIN): Give a specific usage example that
4503 works with both C and C++.
4505 2007-06-03 Noah Misch <noah@cs.caltech.edu>,
4506 Bruno Haible <bruno@clisp.org>
4508 * lib/autoconf/c.m4 (AC_OPENMP): Use a simple loop instead of compiler
4511 2007-05-31 Paul Eggert <eggert@cs.ucla.edu>
4513 * doc/autoconf.texi (Particular Types): Give example of use for
4516 2007-05-29 Stepan Kasal <kasal@ucw.cz>
4518 * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Fix a typo.
4520 2007-05-28 Paul Eggert <eggert@cs.ucla.edu>
4522 * doc/autoconf.texi (Particular Types): AC_TYPE_INT8_T does not
4523 define HAVE_INT8_T, and likewise for similar macros.
4524 Problem reported by Patrick Welche in
4525 <http://lists.gnu.org/archive/html/autoconf/2007-05/msg00062.html>.
4527 2007-05-25 Noah Misch <noah@cs.caltech.edu>
4529 * bin/Makefile.am ($(top_builddir)/bin/autom4te): New dependency.
4531 2007-05-21 Paul Eggert <eggert@cs.ucla.edu>
4533 * lib/autoconf/c.m4 (AC_OPENMP): Don't echo --enable-openmp
4534 choice, since that's what we do with --enable-largefile etc.
4535 Redo indenting and assignments to simplify things a bit, and make
4536 the parens work with Emacs.
4538 * doc/autoconf.texi (Generic Compiler Characteristics): Fix typo
4539 in my previous change: AC_C_OPENMP -> AC_OPENMP. Reported by Bruno
4542 2007-05-21 Noah Misch <noah@cs.caltech.edu>
4544 * lib/autoconf/c.m4 (AC_OPENMP): Simplify use of AC_ARG_ENABLE.
4545 * tests/local.at (AT_CHECK_ENV): Exempt OPENMP_CFLAGS.
4547 2007-05-21 Bruno Haible <bruno@clisp.org>
4549 * NEWS: Rename AC_C_OPENMP to AC_OPENMP.
4550 * lib/autoconf/c.m4 (AC_OPENMP): Renamed from AC_C_OPENMP.
4551 * doc/autoconf.texi (Generic Compiler Characteristics): Move
4552 renamed AC_OPENMP documentation here, from "C compiler".
4553 Mention C++ and Fortran.
4555 2007-05-21 Paul Eggert <eggert@cs.ucla.edu>
4557 * doc/autoconf.texi (C Compiler): Tweak OpenMP documentation a bit.
4559 2007-05-21 Bruno Haible <bruno@clisp.org>
4561 * NEWS: Mention AC_C_OPENMP.
4562 * lib/autoconf/c.m4 (AC_C_OPENMP): New macro.
4563 * doc/autoconf.texi (C Compiler): Document AC_C_OPENMP.
4564 Based in part on Steven G. Johnson's investigations for the AX_OPENMP
4565 macro in the Autoconf macro archive.
4567 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4569 * bin/autom4te.in: Fix typos.
4571 2007-05-16 Noah Misch <noah@cs.caltech.edu>
4573 * bin/autoconf.as: Handle `-' just like other input files.
4574 * bin/autom4te.in (parse_args): Pass `-' through.
4575 (handle_output): Skip the forbidden token search if we read from stdin.
4576 (up_to_date): Always treat stdin as out of date.
4577 * tests/tools.at (autoconf: input from stdin): New test.
4578 (autoconf: forbidden tokens, basic): Check a second `autoconf' run.
4580 2007-05-16 Stepan Kasal <kasal@ucw.cz>
4582 * tests/foreign.at tests/semantics.at, tests/tools.at: Remove
4583 parameters for AT_CLEANUP.
4584 * tests/local.at (AT_CHECK_AU_MACRO): Likewise.
4586 2007-05-14 Paul Eggert <eggert@cs.ucla.edu>
4588 * NEWS: Document that AC_C_RESTRICT checks 'restrict' last.
4589 * doc/autoconf.texi (C Compiler): Likewise.
4591 2007-05-14 Noah Misch <noah@cs.caltech.edu>
4593 * lib/autoconf/c.m4 (AC_C_RESTRICT): Check `restrict' last.
4595 2007-05-09 Stepan Kasal <kasal@ucw.cz>
4597 * doc/autoconf.texi: Direntry for "autoconf Invocation"
4598 renamed to "autoconf-invocation"
4600 * doc/autoconf.texi (Caching Results): The CACHE-ID variable
4601 in the examples should not use the internal "ac_" prefix.
4603 2007-05-05 Noah Misch <noah@cs.caltech.edu>
4605 * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): Use `eval'.
4606 * doc/autoconf.texi ($@, case): Document Zsh limitations.
4608 2007-05-03 Stepan Kasal <kasal@ucw.cz>
4610 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
4611 Reorganize the comments before and in the macro.
4613 2007-05-02 Stepan Kasal <kasal@ucw.cz>
4615 * lib/autoconf/lang.m4, lib/autoconf/c.m4,
4616 lib/autoconf/fortran.m4, lib/autoconf/erlang.m4: Cleanup of
4617 section titles and other comments; no code change.
4619 2007-05-01 Kevin Ryde <user42@zip.com.au>
4621 * doc/autoconf.texi (Particular Programs): Typo
4622 @acindex{AC_PROG_MKDIR_P} shouldn't have "AC" in that call.
4624 2007-04-30 Paul Eggert <eggert@cs.ucla.edu>
4626 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Don't imply that
4627 'configure' will fail if the shell lacks proper support for shell
4628 functions. Suggested by RMS.
4630 2007-04-29 Paul Eggert <eggert@cs.ucla.edu>
4632 * doc/autoconf.texi (Limitations of Builtins): Correct the warning
4633 about Solaris /bin/printf '%010000x' 123. Problem reported by
4636 2007-04-28 Paul Eggert <eggert@cs.ucla.edu>
4638 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look
4639 for a.* when searching for executables, as this prevents users
4640 from having files like a.c. Problem reported by Ralf Wildenhues in:
4641 http://lists.gnu.org/archive/html/autoconf-patches/2007-04/msg00029.html
4642 This fixes a problem introduced on 2000-12-19.
4644 2007-04-26 Paul Eggert <eggert@cs.ucla.edu>
4646 * doc/autoconf.texi (Limitations of Builtins): Warn about Solaris
4647 /bin/printf '%010000x' 123. Problem reported by Arto C. Nirkko
4650 2007-04-12 Paul Eggert <eggert@cs.ucla.edu>
4652 * NEWS: Document recent changes to AC_CHECK_ALIGNOF, AC_CHECK_SIZEOF,
4653 AC_CHECK_TYPE, AC_CHECK_TYPES.
4654 * doc/autoconf.texi (Generic types): C types must be type-names
4655 (the C terminology), not type-ids (the C++ term). C++ types
4656 must not be anonymous.
4657 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Remove special case
4658 for C++; this drops support for anonymous struct and union types,
4659 which were problematic anyway.
4660 * tests/semantics.at (AC_CHECK_HEADERS_NEW): Adjust test to work even
4663 2007-04-12 Jim Meyering <jim@meyering.net>
4665 * doc/autoconf.texi (Libraries): Typo fix: insert missing "in".
4667 2007-04-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4669 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Fix AC_CONFIG_LINKS
4670 to prefer a link source from the build tree, if it exists.
4671 Report by Pallav Gupta <pallavgupta@gmail.com>.
4673 2007-04-11 Paul Eggert <eggert@cs.ucla.edu>
4675 * doc/autoconf.texi (Generic Types): Document the restrictions
4676 on types imposed by AC_CHECK_TYPE, AC_CHECK_TYPES.
4677 (Generic Compiler Characteristics): AC_CHECK_SIZEOF now works
4678 with objects too. Document the restrictions on its use.
4679 Document the restrictions on AC_CHECK_ALIGNOF's type argument.
4680 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW):
4681 For C, just try sizeof (TYPE) and sizeof ((TYPE)); if the former
4682 works but the latter doesn't, then it's a valid type.
4683 This lets people use function types and so forth.
4684 For C++ there doesn't seem to be a simple solution, so leave it alone.
4685 (AC_CHECK_SIZEOF): Allow argument to be a variable.
4686 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Don't bother to invoke
4687 AC_CHECK_TYPE; that wasn't documented or necessary.
4689 2007-04-11 Stepan Kasal <kasal@ucw.cz>
4691 * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Skip AS_TEST_X
4692 when cross-compiling.
4694 2007-04-11 Stepan Kasal <kasal@ucw.cz>
4696 * doc/autoconf.texi (External Software): Fix a typo in the
4699 2007-04-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4701 * doc/autoconf.texi (External Software, Package Options):
4702 Fix ambiguous wording. Report by Reuben Thomas <rrt@sc3d.org>.
4704 2007-04-06 Paul Eggert <eggert@cs.ucla.edu>
4706 * doc/autoconf.texi (Particular Types): AC_C_LONG_DOUBLE is now
4707 obsolescent. Suggested by Bruno Haible.
4708 * NEWS: Document this.
4710 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
4712 * doc/autoconf.texi (Here-Documents, Limitations of Builtins):
4713 (Limitations of Usual Tools): Don't say "older" if Solaris 10 by
4714 default still has the problem. Problem reported by Bruce Korb.
4716 2007-03-28 Stepan Kasal <kasal@ucw.cz>
4717 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4719 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix a
4720 comment in the generated config.status.
4722 2007-03-27 Stepan Kasal <kasal@ucw.cz>
4724 * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Update comment.
4726 2007-03-26 Paul Eggert <eggert@cs.ucla.edu>
4728 * doc/autoconf.texi (Shellology): Rework treatment of the 'test'
4729 command and case statements to make it a bit clearer and describe
4732 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
4734 * doc/autoconf.texi (C Compiler): Mention that AC_PROG_CC_C99 also
4735 checks for unsigned long long int.
4737 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
4739 * doc/autoconf.texi (Limitations of Usual Tools): Warn about other
4740 nonstandard grep R.E. escape sequences.
4742 2007-03-17 Jim Meyering <jim@meyering.net>
4744 * doc/autoconf.texi: Adjust grammar around use of "heuristics".
4745 (Limitations of Usual Tools): Also list \< and \>, and mention that
4746 HP-UX's grep, like the one from Solaris, does not support that syntax.
4748 2007-03-09 Stepan Kasal <kasal@ucw.cz>
4750 * doc/autoconf.texi (Specifying Names): `--host' does not
4751 change the build type.
4753 2007-03-05 Paul Eggert <eggert@cs.ucla.edu>
4755 * doc/autoconf.texi (C Compiler): Warn that AC_C_BIGENDIAN
4756 suggests AC_CONFIG_HEADERS.
4757 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Warn if not using
4758 AC_CONFIG_HEADERS. Problem reported by
4761 2007-02-28 Paul Eggert <eggert@cs.ucla.edu>
4763 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Fix typo "__LITLE_ENDIAN__".
4764 Problem reported by Paolo Bonzini in:
4765 http://lists.gnu.org/archive/html/autoconf-patches/2007-02/msg00024.html
4766 * tests/semantics.at (AC_C_BIGENDIAN): Don't reject hosts that have
4767 universal binaries. Problem reported by Elias Pipping.
4769 2007-02-27 Paul Eggert <eggert@cs.ucla.edu>
4771 * NEWS: AC_C_BIGENDIAN now supports universal binaries a la Mac OS X.
4772 * doc/autoconf.texi (C Compiler): Document this. There is a new
4773 extra argument ACTION-IF-UNIVERSAL.
4774 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Implement this.
4775 Add support for Solaris-style _LITTLE_ENDIAN and _BIG_ENDIAN.
4776 Reindent for sanity's sake.
4778 2007-02-24 Eric Blake <ebb9@byu.net>
4780 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
4782 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
4783 * lib/autotest/general.m4 (AT_INIT): Likewise.
4784 (_AT_DECIDE_TRACEABLE): Fix syntax highlighting.
4786 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4788 * lib/autotest/general.m4 (AT_INIT): With --clean, return exit
4789 status of rm so we know when it failed.
4790 If cleaning of test dir failed before running the test, warn.
4791 Output the line separator in verbose mode before the warning
4792 to make clear the warning belongs to the following test.
4794 2007-02-08 Paul Eggert <eggert@cs.ucla.edu>
4796 * doc/autoconf.texi (Parentheses): Mention problem with (( in
4799 2007-02-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4800 and Paul Eggert <eggert@cs.ucla.edu>
4802 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix quoting
4803 errors introduced in last change.
4805 2007-02-07 Paul Eggert <eggert@cs.ucla.edu>
4807 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer \r to
4808 an actual carriage return. Use "ac_cr" to contain the actual
4810 * doc/autoconf.texi (Limitations of Usual Tools): Document problem
4811 with traditional Awk and begin.
4812 * tests/torture.at (Limitations of Builtins): Document the problem
4813 with Bash 2.03 printf.
4814 (Substitute and define special characters):
4815 Remove trailing white space. Work around a bug in Solaris 8 /bin/bash.
4817 2007-02-06 Ralf Menzel <menzel@ls6.cs.uni-dortmund.de> (tiny change)
4819 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Redirect
4820 input from /dev/null in awk test, so even Solaris /usr/bin/awk
4821 will not wait for input with a script containing only a BEGIN
4824 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
4826 * doc/autoconf.texi (Introduction, Why GNU M4): Clarify M4 version
4830 2007-02-02 Eric Blake <ebb9@byu.net>
4832 * NEWS: Update copyright.
4834 * m4/m4.m4 (AC_PROG_GNU_M4): Reject M4 1.4 through 1.4.4 as
4836 * configure.ac: Update error message.
4837 * NEWS: Note that M4 1.4.5 or later is now a hard dependency.
4838 Reported by Gary Vaughan and Jim Meyering, and problem analyzed
4840 http://lists.gnu.org/archive/html/bug-autoconf/2006-11/msg00025.html
4842 2007-01-31 Eric Blake <ebb9@byu.net>
4844 * THANKS (people): Update.
4846 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
4848 * doc/autoconf.texi (Shellology): pdksh 5.2.14 is still the
4850 (Shell Substitutions): Note problems with @{var:=value} etc.
4851 Add a new section for problems with @{#var} etc. Problem noted
4852 by Ralf Wildenhues. See:
4853 http://lists.gnu.org/archive/html/libtool-patches/2005-01/msg00157.html
4855 2007-01-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4857 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Also
4858 AC_SUBST([MKDIR_P]), so that Automake < 1.10 will pick up its
4859 trace, if a package uses AC_PROG_MKDIR_P explicitly. The actual
4860 substitution will still be done by the special code.
4861 Report by Jim Meyering.
4863 * doc/autoconf.texi (File System Conventions): Mention that
4864 $PATH_SEPARATOR is for the build system only.
4865 Report by Keith Marshall.
4867 2007-01-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4869 * doc/autoconf.texi (Setting Output Variables): Mention that
4870 all non-NUL characters are ok in substituted values.
4871 * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Fix comment typo.
4872 (_AC_OUTPUT_FILES_PREPARE): Test and use backslash escaping of
4873 carriage return for $AWK, needed for BSD awk.
4874 * tests/torture.at (Substitute and define special characters):
4875 Test all 8 bit non-NUL characters.
4876 Report against Automake by Patrick Welche.
4878 2007-01-15 Stepan Kasal <kasal@ucw.cz>
4880 * doc/autoconf.texi: Direntry for "autoconf Invocation" renamed.
4882 2007-01-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4884 * lib/autoconf/programs.m4 (AC_PROG_SED): When closing a pipe
4885 early on the reader side, drop stderr of the input to avoid
4886 `broken pipe' error output; this may happen even with shell
4887 builtin `echo' of some bash versions. Reports by Ian Macdonald
4888 <iamacdo@telkomsa.net> and Sam Sexton <Sam.Sexton@reuters.com>.
4890 2007-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4892 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Use newlines to
4893 separate items of `ac_user_opts', to avoid long lines.
4894 (_AC_INIT_PARSE_ENABLE2, _AC_ENABLE_IF_ACTION): Adjust.
4896 2007-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4898 * doc/autoconf.texi: Fix some typos.
4900 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
4902 Fix some wording problems noted by Paolo Bonzini in:
4903 http://lists.gnu.org/archive/html/autoconf-patches/2007-01/msg00077.html
4904 * doc/autoconf.texi (Signed Overflow Examples): Give more
4905 discussion about the allow_superuser_privileges example,
4906 and change it a bit to make things clearer.
4907 (Optimization and Wraparound): Clarify whether the compiler
4908 will generate an infinite loop for the example derived from
4909 Autoconf's mktime test.
4910 (Signed Overflow Advice): Say that -ftrapv is meant for debugging.
4911 Also, clarify unsigned multiplication overflow.
4913 2007-01-04 Eric Blake <ebb9@byu.net>
4915 * bin/Makefile.am (RELEASE_YEAR): New macro.
4916 (edit): Use it to supply correct copyright year to scripts.
4917 * bin/autoconf.as (version): Use it.
4918 * bin/autoheader.in ($version): Likewise.
4919 * bin/autom4te.in ($version): Likewise.
4920 * bin/autoreconf.in ($version): Likewise.
4921 * bin/autoscan.in ($version): Likewise.
4922 * bin/autoupdate.in ($version): Likewise.
4923 * bin/ifnames.in ($version): Likewise.
4925 2007-01-02 Paul Eggert <eggert@cs.ucla.edu>
4927 * doc/autoconf.texi (Integer Overflow): Revised based on today's
4928 feedback. The most important changes document what happens when
4929 you convert an out-of-range value to a signed integer type, and
4930 say that (sum < a) != (b < 0) reliably detects overflow when sum =
4933 * doc/autoconf.texi (Integer Overflow): Greatly expand and
4934 rewrite, taking notions from the recent discussion on the gcc and
4935 autoconf mailing lists; please see
4936 http://lists.gnu.org/archive/html/autoconf-patches/2006-12/msg00091.html
4937 and follow the many links.
4938 (Integer Overflow Basics, Signed Overflow Examples):
4939 (Optimization and Wraparound, Signed Overflow Advice):
4940 (Signed Integer Division): New sections.
4942 2006-12-28 Steven G. Johnson <stevenj@alum.mit.edu>
4944 * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't include
4945 preprocessor macro arguments in traced name.
4946 * doc/autoconf.texi (Defining symbols): Document longstanding
4947 support for AC_DEFINE-ing macros with arguments, and document
4948 behavior when the same variable has multiple AC_DEFINEs.
4949 * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Revert to the
4950 old implementation which AC_DEFINEs the FC_FUNC and FC_FUNC_
4951 macros directly, giving much shorter and simpler code.
4953 2006-12-28 Malcolm Purvis <malcolmp@xemacs.org> (trivial change)
4955 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Insert a
4956 space before "$ac_configure_args" to prevent a 'config.status
4957 --recheck' failure if ac_configure_args doesn't contain a leading
4958 space. This works around a problem with the XEmacs configure.ac,
4959 which uses the (undocumented) ac_configure_args variable
4960 inconsistently with Autoconf.
4962 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
4964 * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):
4965 Include <limits.h>, and use its INT_MAX to rewrite the
4966 j loop so that it does not overflow 'int'. Problem reported by
4968 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
4969 Play it safe by shifting left by 1 rather than multiplying by 2,
4970 as GCC is less likely to optimize this away when the value
4971 is signed (when it assumes overflow leads to undefined behavior).
4972 Also, don't assume time_t uses two's complement.
4974 2006-12-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4976 * tests/torture.at (Substitute a 2000-byte string): Avoid using
4977 a 10kB long (multi-line) string literal, OpenServer 5.0.7 ksh
4978 dumps core on it. Report by Tim Rice.
4980 2006-12-18 Steven G. Johnson <stevenj@alum.mit.edu>
4982 * lib/autoconf/general.m4 (AC_ARG_ENABLE): Print help about
4983 --disable-option-checking to --help output even when
4984 AC_PRESERVE_HELP_ORDER is not used.
4985 (_AC_INIT_PARSE_ENABLE2): Print warnings using actual --enable or
4986 --with argument, rather than argument with [-.] replaced by
4988 * NEWS: Fix typo in previous change; the news was in the
4991 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
4993 * NEWS: Warnings are now generated by default for unknown
4994 --enable-* and --with-* options.
4995 * doc/autoconf.texi (Option Checking): Renamed from
4996 (Configure Option Checking). Tighten up the wording a bit.
4997 (External Software, Package Options): Cross-reference to Option
4998 Checking, and use this to shorten our section.
4999 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Prefer test -n
5000 "$x" to test "x$foo" != x.
5001 * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
5002 Don't warn if $enable_option_checking is "no".
5003 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Initialize
5004 ac_unrecognized_opts to the empty string.
5005 Don't echo the unrecognized opts, as this might mishandle
5006 backslashes or leading -.
5007 (AC_PRESERVE_HELP_ORDER): Put the --disable-option-checking
5008 usage next to the other --disable-FEATURE options in the
5011 2006-12-18 Steven G. Johnson <stevenj@alum.mit.edu>
5013 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, _AC_INIT_PARSE_ARGS):
5014 (_AC_INIT_PARSE_ENABLE2, _AC_INIT_HELP, _AC_ENABLE_IF):
5015 Print warning for unrecognized --with and --enable options
5016 (AC_DISABLE_OPTION_CHECKING): New macro to disable warnings.
5017 * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS):
5018 Disable option checking when subdirs are configured.
5019 (AC_OUTPUT): If warnings are enabled, print warning about
5020 unrecognized --with and --enable options at the end of
5021 the configure output (as well as at the beginning).
5022 * doc/autoconf.texi (Option Checking): New node.
5023 Document new option warning functionality.
5025 2006-12-16 Eric Blake <ebb9@byu.net>
5027 * configure.ac (AC_INIT): Bump version, since 2.61a is released.
5028 * NEWS: Start news for current version.
5030 2006-12-15 Paul Eggert <eggert@cs.ucla.edu>
5032 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
5033 Define HAVE_GETMNTENT to 1, not to the empty string.
5034 Problem originally reported by Jochen Friedrich in
5035 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403243>.
5037 This change prompted by a problem report by Andrey Simonenko in
5038 <http://lists.gnu.org/archive/html/bug-autoconf/2006-12/msg00026.html>.
5039 * doc/autoconf.texi (Defining Symbols): AC_DEFINE works for
5040 object-like macros only, in the traditional portable character
5042 * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL):
5043 Warn about attempts to define things that are not identifiers.
5044 * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Rewrite to avoid
5045 awful hack that AC_DEFINEd macro names containing parentheses.
5047 2006-12-12 Paul Eggert <eggert@cs.ucla.edu>
5049 * doc/autoconf.texi: Undo some of the 2006-12-10 change. It was
5050 too drastic, even if Texinfo in theory requires it for info mode.
5052 (config.status Invocation): Renamed back from Recreating a
5054 (Obsolete config.status Use): Renamed back from Obsolete Recreation.
5055 (Autoconf 2.13): Renamed back from 20th-century Autoconf 2.
5057 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
5059 * NEWS: Version 2.61a.
5061 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
5062 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5064 * NEWS: Document changes with echo and printf, and the lack
5065 of limits on the total size of multi-line values of substituted
5066 variables, and the AC_FUNC_FSEEKO fix.
5068 2006-12-10 Paul Eggert <eggert@cs.ucla.edu>
5070 * doc/autoconf.texi (Writing Autoconf Input): Renamed from
5071 Writing configure.ac.
5072 (Autoconf Input Layout): Renamed from configure.ac Layout.
5073 (Recreating a Configuration): Renamed from config.status Invocation.
5074 (Obsolete Recreation): Renamed from Obsolete config.status Use.
5075 (acconfig Header): Renamed from acconfig.h.
5076 (20th-century Autoconf 2): Renamed from Autoconf 2.13.
5077 (Writing Testsuites): Renamed from Writing testsuite.at.
5078 (Autom4te Cache): Renamed from autom4te.cache.
5080 * BUGS: Remove mention of VPATH problem, since it's now documented
5081 not to be a bug in the Autoconf build procedure itself, but rather
5082 a problem with the proprietary `make' programs.
5084 * doc/autoconf.texi (Build Directories): Add a cross reference
5087 * build-aux/config.guess, build-aux/config.sub, build-aux/texinfo.tex:
5088 * doc/standards.texi: Sync from gnulib.
5090 * man/autoconf.1, man/autoheader.1, man/autom4te.1, man/autoreconf.1:
5091 * man/autoscan.1, man/autoupdate.1, man/config.guess.1:
5092 * man/config.sub.1, man/ifnames.1: Remove from CVS, since they're
5093 generated automatically.
5095 2006-12-06 Paul Eggert <eggert@cs.ucla.edu>
5097 * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Also try -xc99=all, for Sun
5098 C 5.8 on Solaris 10. Using -xc99=all rather than -xc99 bypasses
5099 the buggy -xc99 option of Forte Developer 7 C on Solaris 9.
5101 2006-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5103 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the
5104 `CEOF$ac_eof' special marker, the awk script cannot contain a
5105 line matching `^CEOF', so this is not needed any more.
5106 * tests/torture.at (Substitute a newline): Expose the `%!_!# '
5107 special marker in the test.
5109 2006-12-06 Stepan Kasal <kasal@ucw.cz>
5111 * tests/tools.at (autom4te preselections): Use `find -newer';
5112 remove one of the sleeps.
5114 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Make it
5115 more readable, using ...
5116 (_AC_INIT_PARSE_ENABLE2): ... this new helper macro.
5118 * doc/autoconf.texi (autoheader Invocation): Do not double-
5119 quote the parameter of `AH_BOTTOM' in the example.
5121 2006-12-05 Stepan Kasal <kasal@ucw.cz>
5123 * doc/autoconf.texi (Configuration Headers): Remove the
5124 example with multiple input files.
5125 (autoheader Invocation): Encourage `AH_BOTTOM', discouraging
5126 multiple input files.
5128 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5130 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When
5131 creating the awk substitution script, handle one input line at a
5132 time, so that the maximum length of a substituted (multi-line)
5133 value is not limited by the size of the sed pattern space.
5134 The trade-off is a slightly repetitive sed script.
5135 * doc/autoconf.texi (Limitations of Usual Tools): Branch labels
5136 can only have up to 7 characters, due to Solaris 10 /bin/sed.
5137 * tests/torture.at (Substitute a 2000-byte string): Increase the
5138 test with several long lines, they should not be caught by sed
5141 * tests/tools.at (autom4te preselections): New test, to flag
5142 entries missing from autom4te.cfg.
5143 Report by David Byron <dbyron@hheld.com>.
5145 * tests/torture.at (Substitute a 2000-byte string): Actually use
5146 AC_PROG_AWK, so the last change works as intended.
5147 (Substitute and define special characters): Likewise.
5148 (Substitute a newline): Likewise.
5150 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use `$AWK'
5151 instead of `awk' consistently.
5152 (_AC_OUTPUT_CONFIG_STATUS): Initialize $AWK.
5153 * tests/torture.at (Torturing config.status): Test both the
5154 result of AC_PROG_AWK and plain awk.
5155 (Substitute a 2000-byte string): Likewise.
5156 (Substitute and define special characters): Likewise.
5157 (Substitute a newline): Likewise.
5159 2006-12-04 Paul Eggert <eggert@cs.ucla.edu>
5161 * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko
5162 can be assigned to a function pointer. Problem reported by
5163 Peter Palfrader in <http://bugs.debian.org/401377>. Based on
5164 part of a patch by Ralf Wildenhues in that same bug report.
5166 2006-12-01 Paul Eggert <eggert@cs.ucla.edu>
5168 * tests/mktests.sh (ac_exclude_list): Exclude AC_FUNC_SETVBUF_REVERSED.
5169 * tests/semantics.at (AC_FUNC_SETVBUF_REVERSED): New test.
5171 2006-12-01 Eric Blake <ebb9@byu.net>
5173 * lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in
5174 cross-compiling from cygwin to mingw.
5175 Reported by Bob Rossi. This resurrects the 2000-11-30 patch to
5176 aclang.m4, which was mistakenly removed in the 2001-09-17 patch
5177 to lib/autoconf/c.m4.
5179 2006-12-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5181 * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Use a longer test
5182 string for more reliable failure. Wrap the entire test that
5183 causes the broken Solaris printf to dump core, in a subshell,
5184 so the segmentation fault message is reliably suppressed.
5185 Fix shell expansion errors by using /usr/ucb/echo always;
5186 avoid an error on systems without it by another subshell.
5187 Avoid m4 expansion of `$1'. Set the zeroth argument of the
5188 subshell-$as_echo to `as_echo', for better error message.
5190 2006-11-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5192 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): If `BASH_ARGV' or
5193 `BASH_SOURCE' contain a newline, set them to empty, as they may
5196 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
5198 Turn AC_FUNC_SETVBUF_REVERSED into a noop. It's been obsolete for
5199 years and is too hard to maintain now. The last straw was
5200 reported by Jerker Baeck in
5201 <http://lists.gnu.org/archive/html/autoconf/2006-11/msg00102.html>.
5202 * NEWS: AC_FUNC_SETVBUF_REVERSED is now obsolete.
5203 * doc/autoconf.texi (Particular Functions): Move
5204 AC_FUNC_SETVBUF_REVERSED from here...
5205 (Obsolete Macros): ... to here. Say that it does nothing now.
5206 * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
5207 Turn into (almost) a no-op.
5209 * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL, AC_C_CONST):
5211 Do not recommend via AN_FUNCTION, AN_IDENTIFIER, or AN_HEADER.
5212 These macros are obsolescent and new applications shouldn't need them.
5213 * lib/autoconf/functions.m4 (AC_FUNC_CLOSEDIR_VOID, AC_REPLACE_FNMATCH):
5214 (AC_FUNC_GETLOADAVG, AC_FUNC_GETPGRP, AC_FUNC_MEMCMP):
5215 (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP, AC_FUNC_STAT, AC_FUNC_LSTAT):
5216 (AC_FUNC_STRFTIME, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
5217 (AC_FUNC_VPRINTF): Likewise.
5218 * lib/autoconf/headers.m4 (AC_HEADER_DIRENT, AC_HEADER_STAT):
5219 (AC_HEADER_STDC, AC_HEADER_SYS_WAIT, AC_HEADER_TIME): Likewise.
5220 * lib/autoconf/types.m4 (AC_STRUCT_TM): Likewise.
5222 * doc/autoconf.texi (Setting Output Variables): Mention that
5223 @VAR1@VAR2 has unspecified behavior. Problem reported by
5225 * NEWS: Mention this.
5227 * Makefile.am: Put only a single '#' into the copyright notice,
5228 so that it's also present in the output file. Standardize wording
5229 in makefile copyright notices to match GNU coding standards.
5230 * bin/Makefile.am: Likewise.
5231 * doc/Makefile.am: Likewise.
5232 * lib/Makefile.am: Likewise.
5233 * lib/freeze.mk: Likewise.
5234 * lib/autoconf/Makefile.am: Likewise.
5235 * lib/autoscan/Makefile.am: Likewise.
5236 * lib/autotest/Makefile.am: Likewise.
5237 * lib/m4sugar/Makefile.am: Likewise.
5238 * man/Makefile.am: Likewise.
5239 * tests/Makefile.am: Likewise.
5240 * lib/emacs/Makefile.am: Remove copyright notice; it's just a
5243 2006-11-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5245 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix error
5246 in the sed script that mangles the awk script: delete up to the
5247 first exclamation mark only.
5248 * tests/torture.at (Substitute and define special characters):
5251 2006-11-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5253 Rewrite config files generation: avoid quadratic growth in
5254 the number of substituted variables by using awk instead of sed
5255 for the bulk of the substitutions.
5256 * NEWS: Mention this.
5257 * doc/autoconf.texi (Setting Output Variables): `|#_!!_#|' is also
5258 forbidden in the output (and thus input) file.
5259 * lib/autoconf/status.m4 (_AC_AWK_LITERAL_LIMIT): New macro.
5260 (_AC_OUTPUT_FILES_PREPARE): Instead of several sed scripts,
5261 generate just one large awk script for substitutions,
5262 eliminating much of the earlier complexity, while adding some
5263 new complexity. Only expand the substitution templates at
5264 configure time, for smaller configure script size. If
5265 _AC_SUBST_FILES are used, test 'awk' for working getline support
5266 at config.status time. If absent, interpolate through the
5267 shell. The awk script was written with much help
5268 from Paolo Bonzini and Paul Eggert.
5269 (_AC_SED_CMD_NUM, _AC_SED_DELIM_NUM, _AC_SED_FRAG): Removed.
5270 (_AC_SED_FRAG_NUM): Likewise.
5271 (_AC_SUBST_CMDS): Renamed from...
5272 (_AC_SED_CMDS): ...this.
5273 (_AC_OUTPUT_FILE): Use _AC_SUBST_CMDS.
5274 * tests/torture.at (Substitute a 2000-byte string): Also
5275 substitute a line with 1000 words, and a variable with several
5277 (Substitute and define special characters): Test awk special
5278 characters, and put substitution input strings `@foo@' in the
5279 output, to test that no recursion happens; test several other
5280 combinations from Paolo Bonzini.
5282 2006-11-25 Paul Eggert <eggert@cs.ucla.edu>
5284 * lib/autotest/general.m4 (AT_INIT): Undo recent changes
5285 that replaced echo with AS_ECHO where this wasn't necessary.
5286 Problem reportd by Ralf Wildenhues.
5287 * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Port to Solaris 7,
5288 where "/usr/bin/printf '%s\n' S" dumps core if S is long.
5289 This is Sun bug 4206210. Problem reportd by Ralf Wildenhues.
5291 2006-11-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5293 * lib/freeze.mk (GREP): Removed, no need to initialize this.
5295 2006-11-21 Paul Eggert <eggert@cs.ucla.edu>
5297 * doc/autoconf.texi (Limitations of Usual Tools): Don't claim
5298 that traditional Awk lacks 3-arg "split". It has it.
5299 Mention that FS must be a single character, and a few other
5300 99-byte limits of traditional Awk.
5301 Mention that if (i in a) doesn't work with traditional Awk.
5303 2006-11-18 Paul Eggert <eggert@cs.ucla.edu>
5305 * tests/autotest.at (BSx641-newline in command):
5306 (BS-BS-newline in command, BSx640-newline in command):
5307 (Newline-CODE-BS-newline in command):
5308 (Single-quote-BS-newline in command):
5309 (Single-quote-newline-BS-newline in command):
5310 Use printf '%s\n' instead of echo, for portability to hosts
5311 where echo interprets backslashes. This will break on hosts
5312 that lack printf, but for now let's assume all such hosts
5313 are dead (if not, we should get reports of test failures).
5315 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
5317 'echo' has some portability problems, when given a first argument
5318 with a leading '-', or when given any argument containing '\'.
5319 Avoid using 'echo' in these cases.
5320 * bin/Makefile.am $(bin_SCRIPTS): Rewrite to avoid 'echo' entirely.
5321 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Likewise.
5322 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
5323 * lib/autotest/general.m4 (AT_INIT): Likewise.
5324 * bin/autoconf.as: Use AS_ECHO rather than plain echo, when the
5325 argument might be unportable.
5326 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Likewise.
5327 * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Likewise.
5328 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT):
5329 (_AC_FC_LIBRARY_LDFLAGS): Likewise.
5330 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Likewise.
5331 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE, _AC_INIT_PREPARE):
5332 (_AC_ARG_VAR_VALIDATE, AC_ARG_PROGRAM, _AC_MSG_LOG_CONFTEST):
5333 (AC_RUN_LOG, _AC_RUN_IFELSE, _AC_LIBOBJS_NORMALIZE): Likewise.
5334 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
5335 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Likewise.
5336 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
5337 (AC_PROG_MAKE_SET): Likewise.
5338 * lib/autoconf/status.m4 (_AC_SRCDIRS, _AC_OUTPUT_HEADER):
5339 (_AC_OUTPUT_SUBDIRS, _AC_OUTPUT_CONFIG_STATUS): Likewise.
5340 * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT, AT_INIT):
5341 (AT_CLEANUP, _AT_DECIDE_TRACEABLE, _AT_CHECK): Likewise.
5342 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE, _AS_ECHO_UNQUOTED):
5343 (_AS_BASENAME_SED, _AS_DIRNAME_SED, AS_MKDIR_P, AS_TMPDIR, AS_UNAME):
5344 (AS_TR_SH, AS_TR_CPP, AS_VAR_GET): Likewise.
5345 * bin/autoconf.as: Redo verbose flag implementation, as the old
5346 scheme wouldn't work with AS_ECHO.
5347 * lib/autotest/general.m4 (AT_INIT): Likewise.
5348 * lib/autoconf/general.m4 (AC_MSG_RESULT, AC_MSG_RESULT_UNQUOTED):
5349 Don't use ECHO_T, since ECHO_N is now reliable.
5350 * lib/autotest/general.m4 (AT_INIT): Likewise.
5351 * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use sed "$script"
5352 rather than using a here-document to put the script into a file.
5353 (_AC_DO_ECHO): Hoist the eval out of the echo, so that we can
5355 * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Likewise.
5356 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Use
5357 AS_ECHO_N rather than ECHO_N and ECHO_C. This doesn't fix any
5358 bug, but we might as well stop using ECHO_N and ECHO_C internally.
5359 * lib/autotest/general.m4 (AT_SETUP): Likewise.
5360 * lib/m4sugar/m4sh.m4 (_AS_ECHO_N): Likewise.
5361 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
5362 (_AC_OUTPUT_MAIN_LOOP): Rework echo so that it has just one
5363 operand, as AS_ECHO requires. Avoid double file name expansion.
5364 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke _AS_ECHO_PREPARE.
5365 Don't set as_nl, since _AS_ECHO_PREPARE does that now.
5366 (_AS_PREPARE): Comment that _AS_ECHO_N_PREPARE is just for user code.
5367 (AS_ECHO, AS_ECHO_N, _AS_ECHO_PREPARE): New macros.
5368 * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
5369 Double-quote strings that would otherwise contain M4 comments.
5370 * tests/m4sh.at (AS_ECHO and AS_ECHO_N): New test.
5372 * configure.ac (AC_INIT): Bump to 2.61a.
5375 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
5379 * configure.ac (AC_INIT): Bump to 2.61.
5382 * tests/autotest.at (Macro with backslash in a test title):
5383 Comment out for now, as this tests neither fails nor passes
5384 reliably. Problem reported by Ralf Wildenhues.
5386 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
5388 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos
5389 in previous change, which caused test failures.
5391 2006-11-16 Stepan Kasal <kasal@ucw.cz>
5393 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Factor out
5394 code for --enable, --disable, --with, and --without to...
5395 (_AC_INIT_PARSE_ENABLE): ... a new macro.
5396 * doc/autoconf.texi (Package Options):
5397 * NEWS: Document that AC_ARG_ENABLE allows dots, too.
5399 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
5401 Import these changes from config via gnulib:
5403 2006-11-15 Ben Elliston <bje@gnu.org>
5405 From Josselin Mouette <joss@debian.org>:
5406 * build-aux/config.guess (SX-8:SUPER-UX:*:*): New.
5408 2006-11-08 Ben Elliston <bje@gnu.org>
5410 * build-aux/config.guess (authenticamd:Interix*:[3456]*): Another AMD64.
5412 2006-11-07 Steve Woodford <scw@NetBSD.org>
5413 Ben Elliston <bje@gnu.org>
5415 * build-aux/config.guess (*:NetBSD:*:*): Handle sh5el arch.
5416 * build-aux/config.sub (sh5el): New basic_machine.
5419 Import this change from coreutils:
5421 2006-02-13 Jim Meyering <jim@meyering.net>
5423 * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
5426 Import this change from gnustandards via gnulib:
5428 2006-11-15 Karl Berry <karl@gnu.org>
5430 * standards.texi: core -> memory, throughout.
5431 (CPU Portability): show correct example of calling write
5432 on a char value; thanks to Paul Eggert for the code.
5433 Both of these suggestions from Eugene Y. Vasserman.
5436 Import these changes from texinfo via gnulib:
5438 2006-11-08 Karl Berry <karl@gnu.org>
5440 * build-aux/texinfo.tex (\dopdfimage): look for png, jpg/jpeg/JPG, and
5441 as well as pdf images, since they are supported in pdftex with
5444 2006-11-05 Karl Berry <karl@gnu.org>
5446 * doc/texinfo.tex (Image Syntax): don't mention GIF any more.
5448 2006-11-13 Paul Eggert <eggert@cs.ucla.edu>
5450 * NEWS: Document the AC_ARG_WITH change.
5452 2006-11-13 Bruno Haible <bruno@clisp.org>
5454 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): For --with, --without
5455 options, transliterate also dots to underscores.
5456 (_AC_ENABLE_IF): Transliterate also dots to underscores.
5457 * doc/autoconf.texi (External Software): Document that AC_ARG_WITH's
5458 first argument may also contain dots.
5460 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
5462 * tests/mktests.sh (ac_exclude_list): Exclude AC_PROG_CXX_C_O, for
5463 benefit of platforms like Solaris+GCC where it is common to have a
5464 non-working g++ installation.
5466 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5467 and Joel E. Denny <jdenny@ces.clemson.edu>
5468 and Paul Eggert <eggert@cs.ucla.edu>
5470 * tests/autotest.at (AT_CHECK_AT_TITLE): Fix shell quoting bugs
5471 and non-portable sed scripts, and use $CONFIG_SHELL when invoking
5474 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
5476 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Set
5477 ac_cv_type_long_long_int to 'yes' instead of 'cross-compiling'.
5478 Imported from a similar patch to gnulib by Bruno Haible.
5480 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
5482 * NEWS: New macros AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS.
5483 * doc/autoconf.texi (C Compiler): Document them.
5484 * lib/autoconf/c.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS):
5485 New macros, taken from gnulib.
5487 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
5489 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
5490 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
5493 2006-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5495 * tests/torture.at (Configuring subdirectories): Do not skip
5496 Automake 1.10 nor future Automake 11.1 (sic).
5498 2006-10-26 Joel E. Denny <jdenny@ces.clemson.edu>
5499 and Stepan Kasal <kasal@ucw.cz>
5501 Handle special characters in test case titles correctly.
5502 * lib/autotest/general.m4 (AT_INIT): M4-quote and AS_ESCAPE AT_help_all
5504 (AT_SETUP): M4-quote and AS_ESCAPE the title properly everywhere.
5505 * tests/autotest.at (AT_CHECK_AT_TITLE): Add EXPANDED-TITLE-TO-TEST
5506 argument. Extend to check titles printed by ./micro-suite and
5507 ./micro-suite -l and the title in micro-suite.log.
5508 (Backquote in a test title,
5509 Single-quote in a test title,
5510 Double-quote in a test title): Don't expect failure anymore.
5511 (Backslash in a test title): Put a non-whitespace character after the
5512 backslash so that Bourne shells might actually see it as an escape
5514 (Brackets in a test title,
5515 Pound in a test title,
5516 Comma in a test title,
5517 Quoted Macro in a test title,
5518 Macro in a test title,
5519 Macro with single-quote in a test title): New tests.
5520 (Macro with backquote in a test title,
5521 Macro with double-quote in a test title,
5522 Macro with backslash in a test title): New tests expected to fail.
5523 * tests/torture.at (#define header templates): M4-quote this title in
5524 AT_SETUP call so that no M4 code is commented inadvertently somewhere.
5525 The visible effect was a stray [] in the testsuite output.
5527 2006-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5529 * doc/autoconf.texi (Limitations of Builtins): Do not invoke
5530 `trap ... 0' inside a function, for AIX sh.
5532 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
5534 * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0,
5535 since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build
5536 5363) simply issues a warning when dividing by zero at compile
5537 time. Problem reported by Elias Pipping.
5539 2006-10-26 Eric Blake <ebb9@byu.net>
5542 * doc/autoconf.texi (Evaluation Macros): Improve the example to
5543 show effect on macros that expand with commas.
5544 Reported by Joel E. Denny.
5546 * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
5547 Also work with M4 1.4.8.
5549 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
5551 * doc/autoconf.texi (Slashes): Document Tru64 4.0 bug reported by
5554 2006-10-25 Stepan Kasal <kasal@ucw.cz>
5556 * tests/tools.at (autom4te --force): New test, verifies that
5557 `--force' always rewrites the output file.
5559 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
5561 * doc/autoconf.texi (Limitations of Usual Tools): Document that rm
5562 needs operands on NetBSD 2.0.2. Problem reported by Bruno Haible.
5564 2006-10-24 Stepan Kasal <kasal@ucw.cz>
5566 * tools/trace.at (autoconf --trace: user macros): Test `$%'.
5568 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
5570 * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
5571 If FUNCTION-BODY is nonempty, use AC_LINK_IFELSE rather than
5572 AC_COMPILE_IFELSE, to work around problem with OSF/1 4.0F fseeko
5573 reported by Nelson H. F. Beebe for Coreutils 6.4.
5575 * tests/tools.at (autoconf --trace: user macros): Remove test
5576 for tracing multiline macros, since m4 1.4.7a uses a different
5577 way to number lines. Problem reported by Ralf Wildenhues.
5579 2006-10-24 Stepan Kasal <kasal@ucw.cz>
5581 * bin/autom4te.in (handle_m4): Do not redirect stdin to
5582 /dev/null since the heuristics for interactive behaviour was
5585 * bin/autom4te.in: With --force, always refresh the output
5586 file. Problem reported by Greg Schafer <gschafer@zip.com.au>.
5588 * bin/autoconf.as: Fix the verbose message at the end.
5590 2006-10-23 Paul Eggert <eggert@cs.ucla.edu>
5592 * configure.ac (AC_INIT): Bump to 2.60c.
5595 2006-10-22 Paul Eggert <eggert@cs.ucla.edu>
5597 * NEWS: Version 2.60b.
5599 Import this change from Texinfo:
5600 2006-10-15 Karl Berry <karl@gnu.org>
5601 * build-aux/texinfo.tex: automake 1.10
5603 * NEWS: Remove AC_CACHE_CHECK_INT.
5604 * doc/autoconf.texi (Caching Results): Likewise.
5605 * lib/autoconf/general.m4 (_AC_CACHE_CHECK_INT): Renamed from
5606 AC_CACHE_CHECK_INT, since it's no longer public.
5607 * lib/autoconf/types.m4: All uses of AC_CACHE_CHECK_INT changed.
5608 * tests/base.at (AC_COMPUTE_INT): Test this, not AC_CACHE_CHECK_INT.
5610 2006-10-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5612 * doc/autoconf.texi (Limitations of Usual Tools): Fix two typos.
5614 2006-10-19 Eric Blake <ebb9@byu.net>
5616 * lib/m4sugar/m4sugar.m4 (m4_mkstemp): New macro.
5617 (m4_maketemp): Avoid warnings with M4 1.9a.
5618 * lib/emacs/autoconf-mode.el (autoconf-font-lock-keywords): Color
5620 * doc/autoconf.texi (Redefined M4 Macros): Document m4_mkstemp.
5623 2006-10-16 Eric Blake <ebb9@byu.net>
5625 * doc/autoconf.texi (Setting Output Variables): Fix typo.
5627 * bin/autoconf.as (version): Reword to match GNU Coding
5629 * bin/autoheader.in (version): Likewise.
5630 * bin/autom4te.in (version): Likewise.
5631 * bin/autoreconf.in (version): Likewise.
5632 * bin/autoscan.in (version): Likewise.
5633 * bin/autoupdate.in (version): Likewise.
5634 * bin/ifnames.in (version): Likewise.
5636 2006-10-14 Stepan Kasal <kasal@ucw.cz>
5638 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Expand $1 before
5639 looking for special shell characters.
5640 * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Do not expand the
5641 macro defined by AS_VAR_PUSHDEF before passing it as a
5643 * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
5644 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB):
5645 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
5646 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL):
5647 (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_DIRENT):
5649 * lib/autotest/general.m4 (AT_INIT): Quote parameters of
5651 * tests/m4sh.at (AS_LITERAL_IF): New test.
5653 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
5655 (Imported from Automake.)
5656 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
5657 which incorrectly sets the mode of an existing destination
5658 directory. In some cases the unpatched install-sh could do the
5659 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
5660 system. We hope this is rare in practice, but it's clearly worth
5661 fixing. Problem reported by Alex Unleashed in
5662 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
5663 Also, don't bother to check for -m bugs unless we're using -m;
5664 suggested by Stepan Kasal.
5666 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
5668 Import this change from Automake:
5670 2006-08-23 Alexandre Duret-Lutz <adl@gnu.org>
5671 * lib/Autom4te/ChannelDefs.pm (usage): Mention that -Wportability
5672 is enabled by default with gnu and gnits strictness.
5673 Report from Bruno Haible.
5675 2006-03-10 Alexandre Duret-Lutz <adl@gnu.org>
5676 * lib/Autom4te/ChannelDefs.pm: Make -Wportability the default in
5677 gnu and gnits modes.
5679 Import this change from Config:
5681 2006-09-20 Ben Elliston <bje@gnu.org>
5682 * build-aux/config.sub (score, score-*): New.
5684 Import this change from Gnulib:
5686 2006-09-16 Karl Berry <karl@gnu.org>
5687 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
5688 to avoid sectioning errors.
5690 Import these changes from Texinfo:
5692 2006-10-04 Karl Berry <karl@gnu.org>
5693 * build-aux/texinfo.tex (\singlequotechar): rename to \codequoteright.
5694 (\quoteexpand): rename to \rquoteexpand.
5695 (\codequoteleft): new def, to look for @set codequotebacktick.
5696 (\lquoteexpand, \quoteexpand): new defs.
5697 (\lquoteChar, \rquoteChar, \dashChar, \underChar: new \chardef's.
5698 (\code): must use new \...Char values, since now ` is active.
5700 2006-08-26 Karl Berry <karl@gnu.org>
5701 * build-aux/texinfo.tex (\textdegree): New command.
5703 2006-08-12 Karl Berry <karl@gnu.org>
5704 * build-aux/texinfo.tex (error \box0): smaller font.
5706 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5708 * doc/autoconf.texi (Autoheader Macros): Fix syntax error.
5710 2006-10-13 Stepan Kasal <kasal@ucw.cz>
5712 * doc/autoconf.texi (Autoheader Macros): Warn that the text
5713 added to the template can get mangled.
5715 2006-10-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5717 * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): In the test,
5718 include the default headers, and redefine obstack_chunk_alloc
5719 and obstack_chunk_free. Fixes false failure with glibc.
5721 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
5723 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Set as_executable_p,
5724 for backward compatibility with Libtool 1.5.22. Problem reported
5727 2006-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5729 * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL): Require
5731 Report by IOhannes m zmoelnig <zmoelnig@iem.at>.
5733 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
5735 * NEWS: AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for
5736 the NonStop platform.
5737 * doc/autoconf.texi (Posix Variants): Likewise.
5738 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
5740 * lib/m4sugar/m4sh.m4 (AS_TEST_X): New macro.
5741 (AS_EXECUTABLE_P): Use as_test_x rather than as_executable_p.
5742 (_AS_TEST_PREPARE): Set as_test_x rather than as_executable_p.
5743 Use a better substitute, by inspecting the output of "ls"
5744 rather than just using ":".
5745 * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Use AS_TEST_X
5746 rather than AS_EXECUTABLE_P, since we needn't worry about
5747 non-regular files here.
5749 * NEWS: Autoconf-generated shell scripts no longer export BIN_SH,
5750 due to configuration hassles with this. See Tonya Underwood's report
5751 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00003.html>.
5752 * doc/autoconf.texi (Special Shell Variables): Likewise.
5754 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
5755 Stepan Kasal <kasal@ucw.cz>
5757 * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Don't set BIN_SH.
5758 (_AS_DETECT_BETTER_SHELL): Don't look in /usr/bin/posix.
5760 2006-10-11 Stepan Kasal <kasal@ucw.cz>
5762 * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Move the
5763 initialization which is not inherited through the environment
5764 (_AS_BOURNE_COMPATIBLE): ... to this new macro.
5765 (_AS_RUN): Call _AS_BOURNE_COMPATIBLE, not AS_BOURNE_COMPATIBLE.
5767 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
5769 * doc/autoconf.texi (Limitations of Usual Tools): Describe
5770 problems with mkdir -p -m.
5772 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
5774 * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Remove
5775 comment about ac_cpp_err; it was incorrect, and anyway
5776 ac_cpp_err is being removed below.
5777 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE): Don't
5778 set ac_cpp_err to 'yesyes' if preproc_warn_flag and werror_flag
5779 are both 'yes'. In fact, don't bother setting ac_cpp_err at all;
5781 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't log our funky tests
5782 with werror_flag and conftest.err and so forth. This is more
5783 compatible with how _AC_PROG_PREPROC_WORKS_IFELSE behaves,
5784 and anyway the user shouldn't normally want to see this gorp logged.
5785 Problem reported by Ralf Wildenhues.
5786 * lib/autoconf/lang.m4 (AC_LANG_WERROR): werror_flag's default is
5787 empty, not 'no', since the rest of the code uses 'test -z'.
5789 2006-10-04 Paul Eggert <eggert@cs.ucla.edu>
5791 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
5792 Use a single call to AC_DO_TOKENS rather than multiple, for
5794 (_AC_LINK_IFELSE): Test that resulting file is executable.
5795 Problem reported by mwoehlke in
5796 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00048.html>.
5798 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Use "test -x /" rather
5799 than creating a file to use with test -x; this is much faster.
5801 2006-10-02 Bruno Haible <bruno@clisp.org>
5803 * lib/autom4te.in (Automake-preselections): Add
5804 AM_GNU_GETTEXT_INTL_SUBDIR, for automake 1.10.
5806 2006-09-27 Stepan Kasal <kasal@ucw.cz>
5808 * doc/autoconf.texi (Writing testsuite.at): Fix a typo: for
5809 standard error, `experr' should be used, not `expout'.
5811 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
5813 * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Don't compile the
5814 fseeko testing program twice; just use the earlier result.
5815 * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
5816 Set cache var to 'unknown' (not 'no') if leaving the macro unset
5817 still doesn't let the program compile.
5818 (AC_SYS_LARGEFILE): Test for _LARGE_FILES only if earlier tests
5821 * lib/autoconf/functions.m4: Fix problems reported by Ralf Wildenhues.
5822 (AC_FUNC_ERROR_AT_LINE): Don't bother to check for error.h. Just
5823 include it, without including anything else.
5824 (AC_FUNC_FSEEKO): Avoid gcc -Wall warnings about constant
5826 (AC_FUNC_STRNLEN): Require AC_USE_SYSTEM_EXTENSIONS.
5828 2006-09-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5830 * lib/autoconf/functions.m4 (AC_FUNC_ERROR_AT_LINE): Check for
5831 `error.h', and include it, for a `error_at_line' prototype.
5832 Use a nonempty format string in the link test.
5833 * lib/autoconf/functions.m4 (AC_FUNC_WAIT3): Include <sys/wait.h>,
5834 for a declaration of wait3.
5836 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
5838 * NEWS: AC_CHECK_DECL now also works with aggregate objects.
5839 * doc/autoconf.texi (Generic Declarations): Clarify that AC_CHECK_DECL
5840 can apply to constants too, and that it checks for macro defns.
5841 * lib/autoconf/general.m4 (AC_CHECK_DECL): Assume C89 or better,
5842 and simply cast the identifier to void. This handles structure
5843 values. Problem reported by Ralf Wildenhues.
5844 * tests/semantics.at (AC_CHECK_DECLS): Also check enums.
5846 2006-09-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5848 * tests/semantics.at (AC_CHECK_DECLS): Also check macros,
5849 structure, and function symbols.
5851 2006-09-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5853 * tests/semantics.at (AC_CHECK_MEMBERS): Also test with a struct
5856 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
5858 * NEWS: Recommend M4 1.4.7 instead of 1.4.6.
5860 * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
5862 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
5863 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5865 * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): Avoid `gcc -Wall'
5866 warnings (uninitialized value).
5867 (AC_FUNC_UTIME_NULL): Likewise, test for and include <utime.h> if
5869 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Likewise, add
5871 (AC_STRUCT_TM): Likewise, avoid unused variables.
5873 2006-09-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5875 * lib/autoconf/c.m4 (_AC_ARG_VAR_LDFLAGS): Update comment.
5876 (_AC_ARG_VAR_LIBS): New macro: let LIBS be precious.
5877 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Call _AC_ARG_VAR_LIBS.
5878 * lib/autoconf/fortran.m4 (AC_PROG_F77, AC_PROG_FC): Likewise.
5879 Report by Olly Betts.
5881 2006-09-19 Eric Blake <ebb9@byu.net>
5883 * m4/m4.m4: Change copyright.
5884 * configure: Regenerate.
5885 * Makefile.in: Likewise.
5886 * bin/Makefile.in: Likewise.
5887 * doc/Makefile.in: Likewise.
5888 * lib/Makefile.in: Likewise.
5889 * lib/Autom4te/Makefile.in: Likewise.
5890 * lib/autoconf/Makefile.in: Likewise.
5891 * lib/autoscan/Makefile.in: Likewise.
5892 * lib/autotest/Makefile.in: Likewise.
5893 * lib/emacs/Makefile.in: Likewise.
5894 * lib/m4sugar/Makefile.in: Likewise.
5895 * man/Makefile.in: Likewise.
5896 * tests/Makefile.in: Likewise.
5898 * m4/m4.m4 (AC_PROG_GNU_M4): Check for m4 --debugfile support.
5899 * bin/Makefile.am (edit): Substitute M4_DEBUGFILE.
5900 * bin/autom4te.in (handle_m4): Favor --debugfile over misnamed
5901 --error-output, to avoid warnings with M4 2.0.
5903 2006-09-19 Stepan Kasal <kasal@ucw.cz>
5905 * lib/autoconf/libs.m4 (AH_CHECK_LIB): Fix quoting, to be
5906 consistent with _AH_CHECK_FUNCS and _AH_CHECK_HEADERS.
5907 * lib/autoconf/headers.m4 (AH_CHECK_HEADERS_DIRENT): Likewise.
5909 2006-09-15 Stepan Kasal <kasal@ucw.cz>
5911 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Eliminate the
5912 expansion of AC_CHECK_FUNCS.
5914 2006-09-14 Stepan Kasal <kasal@ucw.cz>
5916 * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Remove a
5917 mistaken comment: the path has to be relative; do not use
5918 the path at runtime.
5920 2006-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5922 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote the
5923 argument to `--prefix' for sub-configure scripts.
5924 Pass `--silent' to sub-configure scripts.
5925 * tests/torture.at (Configuring subdirectories): Add tests
5927 * doc/autoconf.texi (Setting Output Variables): Fix example to
5928 not show `--silent' being passed to a `configure' re-run.
5930 2006-09-12 Paul Eggert <eggert@cs.ucla.edu>
5932 * doc/autoconf.texi (Input): Clarify role of AC_CONFIG_MACRO_DIR.
5933 * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Do not check
5934 for the existence of the directory at configure-time. That's
5935 too late, anyway. Problem reported by Stefan Seefeld.
5937 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Avoid bug in UnixWare
5938 7.1.4 /usr/bin/posix/sh described by Tim Rice in
5939 <http://lists.gnu.org/archive/html/bug-autoconf/2006-09/msg00017.html>.
5941 2006-09-11 Stepan Kasal <kasal@ucw.cz>
5943 * tests/local.at (AT_CHECK_M4): Fix this so that the testsuite
5944 works with GNU M4 1.4.3 again; make the normalized form
5945 match the current m4 message; fix the description.
5946 * test/tools.at (autom4te cache): Adapt to the change.
5948 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
5950 * lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Add year_2050_test
5951 to catch glibc bug 2821
5952 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
5954 Merge from gnulib as follows: Use AC_CHECK_HEADERS_ONCE instead of
5955 AC_CHECK_HEADERS, and likewise for AC_CHECK_FUNCS_ONCE and
5956 AC_CHECK_FUNCS. Don't check for stdlib.h, since we now
5959 2006-09-08 Stepan Kasal <kasal@ucw.cz>
5961 * lib/autom4te.in (Autoconf-without-aclocal-m4): Move the
5963 (Autoconf): ... here.
5964 (Autoscan-preselections): Delete.
5966 2006-09-07 Stepan Kasal <kasal@ucw.cz>
5968 * lib/autom4te.in (Automake-preselections): Preselect
5971 2006-09-05 Paul Eggert <eggert@cs.ucla.edu>
5973 * doc/autoconf.texi (Preset Output Variables): srcdir and
5974 top_srcdir are not necessarily relative. Problem reported
5977 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5979 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Prefer xlf90/xlf95 over
5980 f90/f95 because the latter drivers of AIX Fortran 9.1 do not
5981 accept files with extension `.f'. For consistency, also prefer
5983 * doc/autoconf.texi (Fortran Compiler): Remove mention of bug
5986 2006-09-05 Romain Lenglet <rlenglet@users.forge.objectweb.org>
5988 * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB): Added substitution
5989 of ERLANG_LIB_VER_* variables.
5990 * doc/autoconf.texi (Erlang Libraries): Document ERLANG_LIB_VER_*
5993 2006-09-03 Paul Eggert <eggert@cs.ucla.edu>
5994 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5996 * doc/autoconf.texi (Limitations of Builtins): Document 'unset'
5997 bugs of Bash 2.01 and 2.05a.
5998 (Fortran Compiler): Document that AC_PROG_CC should be called
5999 before AC_PROG_FC, due to a bug in Autoconf.
6001 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
6003 * NEWS: New macro AC_CACHE_CHECK_INT. It replaces the
6004 old AC_COMPUTE_INT, which now behaves like _AC_COMPUTE_INT
6005 except the first two arguments are reversed.
6006 * doc/autoconf.texi (Caching Results): New macro AC_CACHE_CHECK_INT.
6007 (Generic Compiler Characteristics): AC_COMPUTE_INT no longer
6008 caches nor outputs a diagnostic. Suggested by Bruno Haible.
6009 * lib/autoconf/general.m4 (AC_CACHE_CHECK_INT): New macro,
6010 equivalent to the old AC_COMPUTE_INT.
6011 (AC_COMPUTE_INT): No longer caches or reports. New signature.
6012 All uses changed to AC_CACHE_CHECK_INT.
6013 * tests/base.at (AC_CACHE_CHECK_INT): New test.
6014 * tests/mktests.sh (ac_exclude_list): Add AC_CACHE_CHECK_INT.
6016 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
6018 * NEWS: AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_FUNC_GETLOADVG,
6019 and AC_REPLACE_FNMATCH are now obsolescent in Autoconf. New
6020 programs should use their Gnulib counterparts.
6021 * doc/autoconf.texi (Particular Functions): Likewise.
6022 (Macro Names, testsuite Invocation): Replace uses of these
6023 obsolete macros with uses of non-obsolete macros.
6025 2006-08-29 Eric Blake <ebb9@byu.net>
6027 * configure.ac (AC_INIT): Bump to 2.60b.
6030 2006-08-28 Eric Blake <ebb9@byu.net>
6032 * lib/autoconf/headers.m4 (AC_HEADER_STAT): Fix logic that was
6033 mistakenly swapped on 2006-08-15.
6035 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
6037 * NEWS: Version 2.60a.
6039 2006-08-25 Stepan Kasal <kasal@ucw.cz>
6041 * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Remove the IPA/IPO
6042 file created by the PGI compiler.
6044 2006-08-25 Noah Misch <noah@cs.caltech.edu>
6046 * lib/Autom4te/General.pm (END): Use `File::Path::rmtree' to
6049 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
6051 Fix Lex library problem reported to us by Julio Garvia.
6052 * doc/autoconf.texi (Particular Programs): YYTEXT_POINTER is
6053 for the default, which the user can override.
6054 * lib/autoconf/programs.m4 (AC_PROG_LEX): Let _AC_PROG_LEX_YYTEXT_DECL
6056 (_AC_PROG_LEX_YYTEXT_DECL): Handle caching correctly; the old code
6057 didn't work if some values were cached but not others. Test for
6058 broken lex libraries like native ia64-hp-hpux11.22; see
6059 <http://sources.redhat.com/ml/binutils/2003-12/msg00337.html>, and
6060 work around the problem by preferring an empty LEXLIB to -lfl or
6061 -ll. Let the user set LEXLIB='' to indicate no library needed.
6063 * NEWS: Recommend M4 1.4.6 instead of 1.4.5.
6065 * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
6067 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
6069 Rework to use more-modern build style.
6070 Many files are renamed; all uses of their names were changed.
6071 * .x-sc_trailing_blank: Renamed from .x-sc_trailing_space.
6072 * .x-sc_useless_cpp_parens: New file.
6073 * build-aux/config.guess: Renamed from config/config.guess. Update.
6074 * build-aux/config.sub: Renamed from config/config.sub. Update.
6075 * build-aux/elisp-comp: Renamed from config/elisp-comp.
6076 * build-aux/install-sh: Renamed from config/install-sh. Update.
6077 * build-aux/mdate-sh: Renamed from config/mdate-sh.
6078 * build-aux/missing: Renamed from config/missing.
6079 * build-aux/texinfo.tex: Renamed from config/texinfo.tex. Update.
6080 * build-aux/vc-list-files: Renamed from config/vc-list-files.
6081 * config/Makefile.am: Removed.
6082 * config/mkinstalldirs: Removed.
6083 * config/move-if-change: Removed.
6084 * m4/m4.m4: Renamed from config/m4.m4. Add (C) to copyright notice.
6085 * Makefile.am (SUBDIRS): Remove config.
6086 (ACLOCAL_AMFLAGS): Include from m4, not config.
6087 (EXTRA_DIST): Add config/announce-gen, config/prev-version.txt.
6088 (WGET, WGETFLAGS): New macros, since Makefile.maint no longer does this.
6089 (autom4te-update): Rewrite with a loop. Get from gnulib, not automake.
6090 Fail if there's an error.
6091 * Makefile.cfg (move_if_change): Remove.
6092 (wget_files): Remove.
6093 (cvs_executable_files): New macro.
6094 (cvs_files): Use it. Remove mkinstalldirs. Add fdl.texi.
6095 (executable-update): Use $(cvs_executable_files).
6096 (local-checks-to-skip): Remove.
6097 * Makefile.maint: Merge from coreutils, plus add our own changes
6098 (gzip_rsyncable): New macro.
6100 (CVS_LIST): Use build-aux/vc-list-files.
6101 (VERSION_REGEXP): New macro.
6102 (local-checks-available): Add patch-check, $(syntax-check-rules),
6104 (syntax-check-rules): Compute dynamically.
6105 (sc_cast_of_x_alloc_return_value): Work even if no source files.
6106 (sc_cast_of_alloca_return_value): Likewise.
6107 (sc_prohibit_atoi_atof): Simplify regexp.
6108 (sc_no_if_have_config_h, sc_require_config_h):
6109 (sc_prohibit_assert_without_use,
6110 (sc_obsolete_symbols): Check for O_NDELAY.
6111 (sc_texi_notab): Remove.
6112 (sc-changelog): Don't make an exception for '----' lines.
6113 (.re-list): Remove, so we don't have a junk file behind.
6114 (sc_system_h_headers): Remove the need for .re-list.
6115 (sc_the_the): New rule.
6116 (sc_tight_scope): Simplify.
6117 (sc_trailing_blank): Renamed from sc_trailing_space.
6118 (longopt_re): New macro.
6119 (sc_two_space_separator_in_usage): New rule.
6120 (sc_unmarked_diagnostics): Look at all files under CVS.
6121 (sc_useless_cpp_parens, patch-check, check-AUTHORS): New rules.
6122 (news-date-check, changelog-check): Version is OK.
6123 (po-check): Look for lib files even if not in CVS.
6124 (copyright-check): Use $() not ``.
6125 (maintainer-distcheck): Do not depend on changelog-check.
6126 (my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz).
6127 Also check for -Wpointer-arith.
6128 (WGET, WGETFLAGS, tgz-md5, tgz-sha1, bz2-md5, bz2-sha1):
6129 (xdelta-md5, xdelta-sha1, tgz-size, bz2-size, xd-size, rel-check):
6131 (announcement): Add --gpg-key-id arg.
6133 (move_if_change): Just use mv.
6134 (local_updates: Remove wget-update, po-update.
6135 (po_repo, do-po-update, po-update, wget_files, get-targets): Remove.
6136 (config.guess-url_prefix, config.sub-url_prefix): Remove.
6137 (ansi2knr.c-url_prefix, texinfo.tex-url_prefix):
6138 (standards.texi-url_prefix, make-stds.texi-url_prefix, target, url):
6139 ($(get-targets)): Remove.
6140 (cvs_files): Remove missing, mkinstalldirs, ansi2knr.c.
6141 (gnulib_repo): Renamed from automake_repo. Get from gnulib now.
6142 (cvs-update): Get from gnulib.
6143 (emut_upload_commands): gnupload is in build-aux now.
6144 (alpha beta major): Add changelog-check. Check version.
6145 * configure.ac (AC_CONFIG_AUX_DIR): Renamed from config to build-aux.
6146 (AC_CONFIG_FILES): Remove.
6147 * bin/autoconf.as: Add spaces to avoid distcheck warning.
6148 * config/announce-gen: Sync from coreutils.
6149 * doc/make-stds.texi: Sync from gnulib.
6150 * doc/standards.texi: Likewise.
6151 * man/Makefile.am: Adjust for config -> build-aux renaming.
6152 * tests/Makefile.am: Prefer $(FOO) to @FOO@.
6153 * tests/local.at: Adjust from config -> build-aux renaming.
6154 * tests/tools.at: Likewise.
6155 * tests/torture.at: Likewise.
6157 * NEWS: The C99 check now tests for vararg macros and 64-bit
6159 * doc/autoconf.texi (C Compiler): Document // comments, va_copy.
6160 * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Test varargs macros and
6161 64-bit preprocessor ints. Check for static initialization of
6162 long long. Remove unnecessary casts.
6164 2006-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6166 * doc/autoconf.texi (Particular Programs): Mention that
6167 @INSTALL@ and @MKDIR_P@ may vary for different output files.
6168 Reported by Alexandre Duret-Lutz.
6170 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
6172 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
6173 -lgcc?* and -lSystem, for Darwin/MacOS X. Problem reported by
6175 <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00083.html>.
6177 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
6179 * lib/autoconf/c.m4 (AC_C_CONST): Don't used shadowed vars, to
6180 pacify insanely picky compilers. Problem reported by Eric Blake.
6182 * doc/autoconf.texi (Posix Variants): INTERACTIVE Unix is no
6183 longer supported by Sun.
6185 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
6187 * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
6188 rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
6189 -Wundef -Werror". Problem reported by David Fang in
6190 <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
6191 * doc/autoconf.texi (Header Templates, Default Includes):
6192 (Particular Functions, Generic Functions, Header Portability):
6193 (Particular Headers, Generic Headers, Generic Declarations, Guidelines):
6194 (Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
6195 (Present But Cannot Be Compiled, Preprocessor Symbol Index):
6196 Prefer #ifdef to #if.
6197 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
6198 * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
6199 (AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
6200 (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
6202 * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
6203 (AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
6204 * lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
6205 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
6206 * lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
6207 S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
6210 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
6212 * doc/autoconf.texi (Limitations of Usual Tools): Document sed
6213 problems with arg script text that doesn't end in newline, and
6214 with '-e a...'. Problems reported by Ralf Wildenhues.
6216 2006-08-12 Alexandre Julliard <julliard@winehq.org> (tiny change)
6218 * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
6219 check for libXt by a check for libX11.
6221 2006-08-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6223 * doc/autoconf.texi (config.status Invocation): Adjust according
6226 2006-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6228 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
6229 --help' should mention that `--version' outputs configuration
6230 settings. Report by Bruno Haible.
6232 2006-08-06 Paul Eggert <eggert@cs.ucla.edu>
6234 Fix test suite failures reported by Pierre in
6235 <http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
6236 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
6237 the compiler created a file "b.out" when it didn't create anything
6239 * lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
6240 Discard stderr too, when invoking the test script.
6242 2006-08-05 Alexandre Julliard <julliard@winehq.org> (tiny change)
6244 * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
6245 in the restoring of the werror flag.
6247 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
6249 * doc/autoconf.texi (Volatile Objects): Be even a little
6250 less skeptical about "volatile", after discussion with
6251 Bruno Haible on bug-gnulib.
6252 (Limitations of Usual Tools): Warn about sed stripping
6253 leading white space from text. From Bruno Haible.
6255 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
6257 * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
6258 compiler complains about it, even if things works after the
6259 complaint. Problem reported by Peter O'Gorman.
6261 * doc/autoconf.texi (Preset Output Variables): Document CFLAGS,
6262 CPPFLAGS, and LDFLAGS better. Problem reported by Bruno Haible.
6263 Similarly for CXXFLAGS, OBJCFLAGS, ERLCFLAGS.
6265 2006-07-17 Paul Eggert <eggert@cs.ucla.edu>
6267 * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space
6268 after -R regardless of host. Patrick Welche reports that this
6269 fixes things on NetBSD 3.99.
6271 * NEWS: Recommend M4 1.4.5.
6273 * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
6274 * tests/tools.at (autom4te cache): Update wording of diagnostic
6277 2006-07-07 Paul Eggert <eggert@cs.ucla.edu>
6279 * doc/autoconf.texi (C Compiler): Add a ref to Volatile Objects
6280 under AC_C_VOLATILE.
6281 (Volatile Objects): Be a little less skeptical about what
6282 "volatile" means. Derived from thoughts by Ben Pfaff in
6283 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00092.html>.
6285 2006-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6287 * doc/autoconf.texi: Fix some typos.
6289 2006-07-07 Paul Eggert <eggert@cs.ucla.edu>
6291 * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
6292 more globally, since the 2006-06-30 patch didn't suffice. Problem
6293 reported by Keith Marshall. Also, don't bother with builddir2,
6294 since it shouldn't be needed any more.
6296 2006-07-07 Paolo Bonzini <bonzini@gnu.org>
6298 * doc/autoconf.texi (Generic compiler characteristics):
6299 Document AC_COMPUTE_INT. Fix wrong statements on Default
6300 Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.
6302 * lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
6303 (_AC_COMPUTE_INT): Add obsoletion warnings.
6304 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
6307 * NEWS: Document change.
6309 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
6311 * doc/autoconf.texi (Volatile Objects): New section.
6313 * NEWS: Document previous change.
6315 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
6317 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
6318 Require that long long int be at least 64 bits wide. C99 requires
6319 this and enough programs depend on it so we should check for it.
6320 Bruno Haible reports in
6321 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00286.html>
6322 that long long int is 32 bits wide with some nonstandard compilers.
6323 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
6325 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
6327 * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
6328 to a nonexistent file, so that we don't have to worry about
6329 a local site configuration that doesn't use /usr/local.
6330 Problem reported by Keith Marshall in
6331 <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00133.html>.
6333 2006-06-28 Paul Eggert <eggert@cs.ucla.edu>
6335 * doc/autoconf.texi: Be more consistent about using @acronym with
6336 "HP" and "HP-UX". Remove mention of OSF; the old version wasn't
6337 quite right (it talked about "OSF/Tru64", even though the
6338 operating systems were called OSF/1, Digital UNIX, and Tru64 UNIX,
6339 and it even mentioned "OSF 4"!) and at this point there's little
6340 reason to talk about OSF any more, since it died in 1994.
6341 (Specific Compiler Characteristics): Simplify example of
6342 negative-size array.
6343 (File Descriptors): Reorder to make the text flow better.
6344 Remove joke about "appreciate the various levels"; I didn't get it.
6345 Add remark about HP-UX sh -x bug with stderr noted by Bob Proulx in
6346 <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00225.html>.
6347 (File Descriptors, Limitations of Usual Tools):
6348 Tone down the advice against renaming or removing open files.
6349 (Limitations of Usual Tools): Add a new section, on 'rm'.
6351 2006-06-26 Stepan Kasal <kasal@ucw.cz>
6353 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
6354 -lXt in LIBS, idea from Karsten Hopp; this was due since
6357 2005-09-18 Paul Eggert <eggert@cs.ucla.edu>
6358 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
6359 and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
6360 (which belong to Xt, not X itself). See Debian bug 327655.
6362 2006-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6364 * configure.ac (AC_INIT): Bump to 2.60a.
6367 2006-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6371 * configure.ac, NEWS: Update.
6373 2006-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6375 * config/texinfo.tex: Sync from upstream.
6377 * bin/autom4te.in (handle_traces): Transform the `@S|@'
6378 quadrigraph correctly in traces.
6380 * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
6383 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
6384 datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
6386 * doc/autoconf.texi (Changed Directory Variables): New node,
6387 to document the whole `datarootdir' business a bit better.
6389 * tests/torture.at (datarootdir workaround): Extend test.
6390 Prompted by report by Alexandre Julliard.
6392 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
6394 * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
6395 when using default mode of IBM C 6 for AIX. Problem and two-line
6396 fix reported by Larry Jones.
6398 2006-06-22 Alexandre Julliard <julliard@winehq.org>
6400 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
6401 about literal '${datarootdir}' if a definition is found in the
6404 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
6406 * NEWS: Use "M4" rather than "m4" when appropriate.
6407 Problem reported by Eric Blake.
6408 * doc/autoconf.texi: Likewise.
6409 Use @acronym around BSD, GCC, and GNU when appropriate.
6410 (Why GNU M4): Renamed from "Why GNU m4".
6411 (Redefined M4 Macros): Mention that Posix
6412 m4wrap takes only 1 argument, but GNU M4 1.4.x takes more.
6413 (Buffer Overruns): Mention size_t and ptrdiff_t as alternatives
6416 2006-06-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6418 * bin/autom4te.in (handle_output): Do not forbid the empty
6420 * tests/tools.at (autoconf: the empty token): New test.
6422 2006-06-20 Stepan Kasal <kasal@ucw.cz>
6424 * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
6425 calls, so that we do not care whether they are LIFO or FIFO;
6426 in the m4_wrap, do not check which diversion is the topmost
6427 one, just check that the stack is balanced at the end.
6428 * lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
6429 base diversion forever--pop the previous diversion before
6430 opening the new one; consequently, remove the m4_wrap call.
6431 * lib/autotest/general.m4 (AT_INIT): Likewise.
6432 * tests/m4sugar.at: Do not use
6433 m4_wrap([m4_diversion_pop([..])]), for educational purposes.
6435 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
6436 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6438 * NEWS: Document that m4wrap/m4_wrap might not be LIFO.
6439 * doc/autoconf.texi (Redefined M4 Macros): Likewise.
6440 Rework example of m4wrap token-pasting trouble so that it doesn't
6441 care whether it's LIFO or FIFO.
6442 Fix some "contrary to"s that are awkward in English.
6444 2006-06-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6446 * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
6447 to `yes' instead of `int$1_t' if the type is found, for more
6448 consistent configure output (where $1 is the number of bits).
6449 (_AC_TYPE_UINT): Likewise for `uint$1_t'.
6450 Suggested by Bruno Haible.
6452 * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
6453 needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
6454 with system headers. Report by Bruno Haible.
6456 2006-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6458 * config/config.guess, config/config.sub: Sync from upstream.
6460 * bin/Makefile.am (autoconf.in): Use `--melt' for autom4te,
6461 in order to avoid picking up an older installed frozen m4sh.m4f.
6462 Besides an outdated shell startup, this could have been created
6463 by an earlier M4 version with incompatible frozen file format.
6465 2006-06-16 Paul Eggert <eggert@cs.ucla.edu>
6467 * README: Recommend m4 1.4.4 instead of 1.4.3..
6468 * doc/autoconf.texi: Likewise.
6469 (Special Chars in Names): Say that $(.FOO) is portable, as
6470 suggested by Stepan Kasal.
6471 (Installation Directory Variables, Build Directories):
6472 (Automatic Remaking, Subdirectories, Fortran Compiler):
6473 (Making testsuite Scripts, Defining Directories):
6474 Quote variable usages better.
6475 (Making testsuite Scripts): Add clean-local rule to makefile
6476 snippet, by Eric Blake.
6477 (Installation Directory Variables): Fix table item font.
6478 Reword slightly to clarify. Generalize advice about
6479 not using special characters to include all file-related
6480 vars, not just VPATH.
6481 (Special Chars in Variables): Warn about special characters in
6483 (Assignments): Clarify default-value example as suggested by
6485 <http://lists.gnu.org/archive/html/autoconf-patches/2006-06/msg00072.html>.
6486 (Special Shell Variables): Note leading ./ or ../, as suggested
6488 (Limitations of Builtins): Under cd, warn about CDPATH.
6489 (The Make Macro MAKEFLAGS): Untabify. Problem reported by
6492 2006-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6494 * doc/autoconf.texi (Configuration Actions): Remove duplicate
6495 `@var', for texi2html.
6496 (Systemology): Some more word wrapping, for DVI output.
6497 (autom4te Invocation): The short option for `--melt' is `-M',
6500 2006-06-15 Paul Eggert <eggert@cs.ucla.edu>
6502 * doc/autoconf.texi: More formatting and English tweaks,
6503 many suggested by Ralf Wildenhues.
6504 Reword to avoid "@code{...}'s" and the like, since it's ugly
6505 with Emacs info mode. discontents -> woes.
6506 Put a few "will"s back. time stamp -> timestamp.
6507 side-effect -> side effect.
6509 2006-06-14 Paul Eggert <eggert@cs.ucla.edu>
6511 * doc/autoconf.texi (Initializing configure, Shell Substitutions):
6512 Warn about $@ not persisting. Problem reported by Julien Danjou in
6513 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372179>.
6514 (Special Chars in Names): Renamed from Leading _ in Macro Names.
6515 Mention other special chars, too.
6517 2006-06-14 Eric Blake <ebb9@byu.net>
6519 * doc/autoconf.texi (The Make Macro MAKEFLAGS): New node.
6521 2006-06-13 Paul Eggert <eggert@cs.ucla.edu>
6523 * doc/autoconf.texi: Some systematic minor improvements, as
6524 follows. Use "makefile" when talking about makefiles
6525 generally (which might be named "makefile" or "Makefile" or even
6526 "foo.mk"), "Makefile" when talking about a specific makefile
6527 called "Makefile". This unclutters the text from weird quotes
6528 (e.g., "`Makefile's" in info mode). Similarly, use "@var{foo}
6529 values" rather than "@var{foo}s" and similar constructs containing
6530 "}s". Use "Make rules" rather than "Makefile rules". Minor
6531 English-language improvements. Change the prefix "sub-" to "sub"
6533 Put blank lines around examples more consistently.
6534 Avoid "rather" and "very" as intensifiers.
6535 Avoid "will" as an auxiliary.
6536 (Limitations of Make): Split this node into....
6537 (Portable Make, $< in Ordinary Make Rules, Failure in Make Rules):
6538 (Leading _ in Macro Names, Backslash-Newline-Newline):
6539 (Backslash-Newline Comments, Long Lines in Makefiles):
6540 (Macros and Submakes, The Make Macro SHELL, Comments in Make Rules):
6541 (obj/ and Make, make -k Status, VPATH and Make):
6542 (VPATH and Double-colon, $< in Explicit Rules):
6543 (Automatic Rule Rewriting, OSF/Tru64 Directory Magic):
6544 (Make Target Lookup, Single Suffix Rules, Timestamps and Make):
6545 New nodes, resulting from splitup of Limitations of Make.
6546 All cross-references changed. Raise the top node from
6547 a section to a chapter, and all subnodes accordingly.
6548 Redo the introductory wording to match the new organization.
6549 (Installation Directory Variables): Use an example that is
6550 closer to what Autoconf actually does. Mention that VPATH's
6551 value should not contain metacharacters or white space.
6552 (Fortran Compiler): Fix a VPATH bug in an example.
6553 (Leading _ in Macro Names): Mention that this problem is no longer
6554 of practical concern.
6555 (VPATH and Make): Reword the advice to make it clearer
6556 that Autoconf and Automake support VPATH in non-GNU make, but
6557 many packages have bugs in this area.
6558 ($< in Explicit Rules): Refer to Build Directories rather
6559 than using a (non-VPATH-safe) example.
6560 (Automatic Rule Rewriting): Mention the sort of disaster that
6561 can ensue with Solaris-style rule rewriting with VPATH.
6563 2006-06-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6565 * doc/install.texi (Compilers and Options): Weaken the
6566 suggestion to use GNU make for VPATH builds.
6568 * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
6569 AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
6571 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
6572 in regular expression.
6574 2006-06-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6576 * doc/autoconf.texi (Installation Directory Variables):
6577 Drop extra @samp from `@table @samp' item.
6578 (Limitations of Usual Tools): Comment fix.
6579 Do not nest @samp just to point to other table items.
6580 (Writing testsuite.at) <AT_CHECK>: The second argument to
6581 `@dvar' is already @samp'ed.
6582 (Making testsuite Scripts) <AC_CONFIG_TESTDIR>: Likewise,
6583 do not use @var in the second argument.
6585 2006-06-07 Paul Eggert <eggert@cs.ucla.edu>
6587 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
6588 $as_shell.exe too. Problem reported by Andreas Buening in
6589 <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
6591 2006-06-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6593 * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
6594 `unused variable' compiler warning, for `-Wall -Werror'.
6595 Reported by Jaap Haitsma in
6596 <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00012.html>.
6598 2006-06-06 Paul Eggert <eggert@cs.ucla.edu>
6600 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
6601 case the compiler dumps core. Problem reported for
6602 OpenServer 5.0.7 by Tim Rice in
6603 <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
6604 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
6607 2006-06-06 Tim Rice <tim@multitalents.net>.
6609 * lib/freeze.mk: Quiet check-forbidden-patterns so the string
6610 "ERROR" only shows up in "make check" output if there is an
6613 2006-06-06 Eric Blake <ebb9@byu.net>
6615 * tests/tools.at (automatically allowed tokens): Fix typo.
6617 2006-06-05 Paul Eggert <eggert@cs.ucla.edu>
6619 * NEWS: Don't blame non-GNU VPATH compatibility issues on Automake.
6621 * doc/autoconf.texi (Integer Overflow): Mention that INT_MIN % -1
6622 typically overflows on x86 CPUs, even though the C standard
6625 2006-06-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6627 * configure.ac (AC_INIT): Bump to 2.59e.
6630 2006-06-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6634 * config/texinfo.tex: Sync from upstream.
6636 * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
6637 seen, invoke libtoolize with `--ltdl' argument.
6638 * lib/autom4te.in (Autoreconf-preselections): Adjust.
6640 Suggested by Eric Blake.
6642 2006-06-05 Paul Eggert <eggert@cs.ucla.edu>
6644 * NEWS: Whoops! AC_FUNC_STRNLEN isn't obsolescent. Problem
6645 reported by Ralf Wildenhues.
6646 * doc/autoconf.texi (AC_FUNC_STRNLEN): Likewise.
6648 2006-06-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6652 2006-06-05 Paul Eggert <eggert@cs.ucla.edu>
6654 * doc/autoconf.texi: Modernize some of the references to Solaris.
6656 2006-06-05 Stepan Kasal <kasal@ucw.cz>
6658 * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
6659 message issued by AC_REQUIRE.
6660 * tests/m4sugar.at: Check m4_require's error message.
6661 * tests/base.at: Check AC_REQUIRE's error message.
6662 * tests/local.at (AT_CHECK_M4): New macro, almost identical
6664 (AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
6666 (AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
6667 `expout' as the last parameter.
6668 * tests/tools.at: Adapt to the above change.
6670 2006-06-04 Stepan Kasal <kasal@ucw.cz>
6672 * doc/autoconf.texi (Limitations of Usual Tools): Correct
6673 information about race-free implementations of mkdir.
6675 2006-06-04 Eric Blake <ebb9@byu.net>
6677 * bin/autoreconf.in (help): Document M4 environment variable.
6678 * bin/autoconf.as (Usage): Likewise.
6679 * bin/autom4te.in (help): Likewise.
6680 * doc/autoconf.texi (autom4te Invocation): Likewise.
6682 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
6684 * NEWS: GNU make now recommended for VPATH builds.
6685 Mention that some macros are now documented to be obsolescent.
6686 * doc/autoconf.texi:
6687 Prefer "current" to "modern" to describe
6688 currently-used (albeit perhaps old-fashioned) hosts.
6689 Mention which ancient features no longer need to be worried about.
6690 setgid -> set-group-ID
6691 setuid -> set-user-ID (these are the Posix terms)
6692 Fix some misuses of "only".
6693 (AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
6694 (AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
6695 (AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
6696 (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
6697 (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
6698 (AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
6699 (AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
6700 (AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
6701 (AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
6702 Mention that these macros are obsolescent.
6703 (Installation Directory Variables): shall -> should
6704 (File Descriptors): Mention that 0, 1, 2 might get reopened.
6705 Mention that it's now safe to use 3 and 4.
6706 (Limitations of Usual Tools): cp -r is now specified by Posix.
6707 Omit longwinded and obsolescent discussion of cp -f.
6708 Modernize discussion of expr, ls.
6709 (Limitations of Make): Modernize discussion of VPATH builds.
6710 Mention $? as a workaround in some cases.
6711 * doc/install.texi (Basic Installation):
6712 Mention "./configure; make; make install" first. Be more
6713 specific about why this file is generic. Remove unnecessary
6714 parens. Remove misleading "only". Remove obsolete advice
6715 about csh. Don't say "configure" takes awhile; say it
6716 might take a while. Suggest CFLAGS=-g rather than CFLAGS=-O2,
6717 and CC=c99 rather than CC=c89, as these are blessed by current
6718 Posix. Recommend GNU make if doing a VPATH build.
6720 2006-06-03 Paul Eggert <eggert@cs.ucla.edu>
6722 * doc/autoconf.texi: Use a consistent style "$ @kbd{...}" for
6723 examples involving shell prompts.
6725 2006-06-02 Stepan Kasal <kasal@ucw.cz>
6726 and Paul Eggert <eggert@cs.ucla.edu>
6728 * doc/autoconf.texi (Here-Documents): Add details about the
6729 pre-ksh93g bug. Reword slightly to make it clearer. Consistently
6730 use "here-documents" instead of "here documents".
6732 2006-06-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6734 * config/texinfo.tex, doc/standards.texi: Sync from upstream.
6736 2006-06-01 Paul Eggert <eggert@cs.ucla.edu>
6738 * doc/autoconf.texi (File System Conventions): Warn about ":"
6739 anywhere in directory names.
6741 2006-05-31 Paul Eggert <eggert@cs.ucla.edu>
6743 * lib/autoconf/general.m4 (_AC_DO_ECHO): Be even more conservative
6744 about quoting the case statement, just in case.
6745 * doc/autoconf.texi (Here-Documents): Mention that the ksh bug
6746 was fixed in ksh93g; reported by Ralf Wildenhues.
6748 2006-05-31 Stepan Kasal <kasal@ucw.cz>
6750 * doc/autoconf.texi (System Services): Do not document
6751 overriding EXEEXT via ac_cv_exeext=ext.
6752 (Particular Programs) <AC_PROG_MKDIR_P>:
6753 Document that ${MKDIR_P} understands --.
6754 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Improve the
6757 2006-05-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6759 * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Guard against test
6760 argument with leading hyphen. Problem reported by Paul Eggert.
6762 2006-05-30 Paul Eggert <eggert@cs.ucla.edu>
6764 * lib/autoconf/general.m4 (_AC_DO_ECHO): Be more conservative
6765 about quoting ac_try: quote all of it, if any of it seems suspicious.
6766 This means we don't have to worry about ${ or sed any more.
6767 Also, double-quote the case statement, to work around misuses via
6768 underquoting as reported by Ralf Wildenhues in
6769 <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00169.html>.
6770 (_AC_EVAL_STDERR): Revert, since evidently some packages rely on this
6771 undocumented and dangerous macro.
6772 Problem reported by Ralf Wildenhues in
6773 <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00168.html>.
6775 2006-05-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6777 * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Check whether
6778 `dirname -- /' returns `/', for SunOS dirname scripts that escaped.
6779 Report by Sam Sirlin <sam@kalessin.jpl.nasa.gov>.
6781 2006-05-30 Paul Eggert <eggert@cs.ucla.edu>
6783 * lib/autoconf/general.m4: Revert AC_TRY_EVAL and AC_TRY_COMMAND,
6784 since evidently some packages rely on the old, broken behavior.
6785 Problem reported by Ralf Wildenhues in
6786 <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00160.html>.
6787 (AC_TRY_EVAL, AC_TRY_COMMAND, _AC_EVAL): Go back to the
6788 pre-2006-05-26 definitions, but leave in the comments that
6789 these macros are dangerous and should not be used.
6790 (_AC_DO_ECHO): Renamed from _AC_EVAL_ECHO. All callers changed.
6791 (_AC_DO): Renamed from _AC_EVAL. All callers changed.
6792 (_AC_DO_STDERR): Renamed from _AC_EVAL_STDERR. All callers changed.
6793 (_AC_DO_VAR): Renamed from AC_TRY_EVAL.
6794 (_AC_DO_TOKENS): Renamed from AC_TRY_COMMAND.
6796 2006-05-29 Paul Eggert <eggert@cs.ucla.edu>
6798 * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
6799 the use of 'tr', since this is our only use of 'tr'.
6801 2006-05-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6802 and Paul Eggert <eggert@cs.ucla.edu>
6804 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
6805 Don't assume 'grep' works on long lines, since AIX grep doesn't.
6807 2005-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6809 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on
6810 the output file in the `${datarootdir}' test.
6812 2005-05-28 Stepan Kasal <kasal@ucw.cz>
6813 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6815 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If we have not seen
6816 mention of `datarootdir' in the input file(s), but literal
6817 `${datarootdir}' in the output file, and we haven't warned yet,
6818 then warn as well: the user may have (erroneously) used
6819 `AC_SUBST([mydatadir], [$datadir/my])' instead of the correct
6820 `AC_SUBST([mydatadir], ['${datadir}/my'])'.
6821 * tests/torture.at (datarootdir workaround): Extend this test.
6824 2006-05-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6825 and Paul Eggert <eggert@cs.ucla.edu>
6827 * doc/autoconf.texi (autoheader Invocation): The first argument to
6828 `AC_DEFINE_UNQUOTED' need not be a literal. Mention the
6829 alternatives and clear up the language a bit.
6831 2006-05-27 Paul Eggert <eggert@cs.ucla.edu>
6833 * NEWS: Reword notice for AC_TRY_COMMAND, AC_TRY_EVAL,
6834 ac_config_guess, ac_config_sub, ac_configure.
6835 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
6836 Fix typo that prevented an unnecessary space from being removed.
6837 Problems reported by Ralf Wildenhues in:
6838 http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00143.html
6840 2006-05-26 Paul Eggert <eggert@cs.ucla.edu>
6842 * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
6843 Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
6844 Don't use the term "thread-safe" to talk about mkdir race
6845 conditions, since the problem is more a process than a thread
6846 issue. Problem reported by Stepan Kasal in:
6847 http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
6848 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
6849 the test for 'install' more closely. Look at MKDIR_P first.
6850 Look in the PATH, and at /opt/sfw/bin.
6851 Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
6852 Don't bother to try mkdir -p, since we already check mkdir --version;
6853 just look at the version number. (There's no easy way to check
6854 for race-free implementations.)
6855 * tests/tools.at (autoconf: subdirectories): Adjust to above
6856 changes, since MKDIR_P now might end in "/mkdir -p".
6858 * doc/autoconf.texi (autoheader Invocation): Mention that the
6859 first arg of AC_DEFINE_UNQUOTED must be a literal.
6860 Problem reported by Ben Pfaff in
6861 <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00090.html>.
6863 * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
6864 * doc/autoconf.texi (Special Chars in Variables): New section.
6865 (Preset Output Variables): Warn about special chars in CPPFLAGS.
6866 (Installation Directory Variables): Quote $(datadir) better.
6867 (Limitations of Builtins): Describe some of eval's trickiness.
6869 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
6870 * lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
6871 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
6872 in front of every arg, not just trailing args. Quote apostrophes.
6873 (_AC_EVAL_ECHO): New macro.
6874 (_AC_EVAL, AC_EVAL_STDERR): Use it. Quote arg of eval.
6875 (AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
6877 (_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
6878 exposed by quoting of eval argument. Put the command on line line
6880 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
6881 (_AC_PATH_X, AC_PATH_X): Quote more safely.
6882 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
6883 * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
6884 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
6885 Handle special chars in prefix, ac_srcdir, ac_aux_dir.
6886 Use eval more safely.
6887 (_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
6888 * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
6890 * tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
6891 lines, exposed by quoting of eval argument.
6893 2006-05-26 Stepan Kasal <kasal@ucw.cz>
6894 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6896 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
6897 initialization of `ac_cv_exeext', do not override it if it was
6898 already set, unless it was set to `no', for compatibility with
6899 Autoconf-2.13, and comment this.
6900 Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
6901 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
6902 (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
6903 * doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
6904 Document that this test may be overridden by setting
6907 2006-05-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6909 Revert these two patches:
6911 2006-04-06 Eric Blake <ebb9@byu.net>
6912 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
6913 check, s/ac_exeext/ac_cv_exeext/. Fixes regression introduced
6916 2006-04-01 Stepan Kasal <kasal@ucw.cz>
6917 Clean up _AC_COMPILER_EXEEXT* macros.
6918 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
6919 detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
6920 ac_file to the name of the default output file and call
6921 _AC_COMPILER_EXEEXT_WORKS. Move the definition of ac_files and the
6922 initial `rm' of the candidate files...
6923 (_AC_COMPILER_EXEEXT): ... here and simplify them. Moreover, use
6924 the same list in subsequent `rm' calls, and for the temporary
6925 redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
6926 and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
6927 (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
6928 (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
6929 no longer needed) by libtool. Make it a cache check.
6930 (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
6931 copied here by mistake.
6932 (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
6933 _AC_COMPILER_EXEEXT.
6934 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
6935 _AC_COMPILER_OBJEXT directly.
6936 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
6938 2006-05-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6940 * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
6941 Fix description of how the buggy `sed' works.
6943 2006-05-25 Noah Misch <noah@cs.caltech.edu>
6947 * lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
6948 ENOLCK. Only mention `make -j' when applicable. Only raise
6949 fatal errors when `make -j' is involved. Improve error message.
6951 2006-05-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6953 * doc/autoconf.texi (Here-Documents): We now know more about
6954 the variable expansion in here documents bug.
6955 Thanks to Tim Rice and Stepan Kasal.
6957 * doc/autoconf.texi (Making testsuite Scripts): Add an example
6958 how to use TESTSUITEFLAGS. Suggested by Eric Blake.
6960 2006-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6962 * tests/autotest.at (Multiline command from M4 expansion):
6963 No failure to be expected if the shell quotes newlines in
6964 commands in the `set -x' output. Report by Tim Rice.
6967 2006-05-23 Paul Eggert <eggert@cs.ucla.edu>
6969 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
6970 expansion in the here-documents used by config.status, as that
6971 runs afoul of the Korn shell version M-12/28/93d bug described in
6972 the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
6973 fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
6974 <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
6976 2006-05-23 Jim Meyering <jim@meyering.net>
6978 * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
6979 Fix typo introduced with 2006-04-02 change. It reversed the sense
6982 2006-05-23 Paul Eggert <eggert@cs.ucla.edu>
6984 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
6985 ac_dB slightly, to save bytes in the script.
6986 Max out at 50 lines, rather than 96; this is more likely
6987 (though not guaranteed) to avoid obscure 'sed' failures.
6989 2006-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6991 * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
6992 `tr -d -' as bad option argument. Work around this by deleting
6993 an unrelated character.
6994 Report by Tim Rice <tim@multitalents.net>.
6996 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>,
6997 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>,
6998 Stepan Kasal <kasal@ucw.cz>
7000 * doc/autoconf.texi (Particular Programs): Do not promise that
7001 we always prefer the GNU version of the program, and that we
7002 search according to PATH; both rules can have exceptions.
7003 Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
7004 AC_PROG_SED. Move descriptions of limitations
7005 to the Limitations of Usual Tools section.
7006 (Limitations of Usual Tools) <sed>: Mention script length
7007 limitations with Solaris /usr/ucb/sed.
7008 <grep>: Fix wording for empty alternative. Mention that -c and
7009 -l should not be combined, and that -E and -F should not be
7012 2006-05-21 Paul Eggert <eggert@cs.ucla.edu>
7013 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7015 * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
7016 limits in Solaris 8 /usr/ucb/sed by testing a long script.
7018 2006-05-22 Stepan Kasal <kasal@ucw.cz>
7020 * doc/autoconf.texi (Defining Symbols): Literal parameter of
7021 AC_DEFINE is now passed to m4_pattern_allow.
7022 * NEWS: Mention that; likewise for AC_SUBST.
7023 * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
7024 the parameter to m4_pattern_allow.
7025 * tests/tools.at: Add a check for that.
7027 2006-05-22 Stepan Kasal <kasal@ucw.cz>
7029 * lib/autoconf/status.m4: Fix typos.
7031 2006-05-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7033 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
7034 only the files that this macro generates.
7036 2006-05-21 Paul Eggert <eggert@cs.ucla.edu>
7038 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
7039 the HP-UX sed limitation of 99 commands, labels do not count.
7040 * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
7042 (_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
7044 2006-05-21 Paul Eggert <eggert@cs.ucla.edu>
7046 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
7047 Import the following fix from coreutils:
7049 2006-01-13 Jim Meyering <jim@meyering.net>
7051 Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
7052 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
7053 not double-quote uses of that variable, to accommodate the rare
7054 case in which getmntent is available in none of the libraries
7055 checked. This happens at least on FreeBSD 5.0.
7057 2006-05-20 Paul Eggert <eggert@cs.ucla.edu>
7059 * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
7060 ac_config_guess, ac_config_sub, and ac_configure, since evidently
7061 some other programs unwisely rely on these undocumented vars.
7062 But put in warning comments about them.
7063 Problem reported by Ralf Wildenhues in
7064 <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
7065 * NEWS: Document that these variables are intended to go away.
7067 2006-05-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7069 * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
7070 and set the language to C++ (analogous to the equivalent Fortran
7073 * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
7074 * doc/autoconf.texi (C++ Compiler): Document it.
7075 * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
7078 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
7080 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
7081 that caused config.status to generate 100-command sed scripts; the
7082 portable limit is 99.
7084 2006-05-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7086 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
7087 variable `ac_d' instead of `d' to avoid infringing namespace.
7088 Report by Ralf Menzel.
7090 2006-05-18 Paul Eggert <eggert@cs.ucla.edu>
7092 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
7093 $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
7094 * tests/tools.at (autoconf: subdirectories): New test, taken from
7095 the corresponding problem report by Ralf Wildenhues in:
7096 http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
7098 * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
7099 Quote some uses of shell variables if they might suffer unexpected
7100 globbing. This doesn't fix all instances of quoting problems that
7101 I found, just the easy ones that look safe.
7102 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
7103 (AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
7104 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
7105 (AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
7106 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
7107 * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
7108 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
7110 * lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
7111 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
7113 2006-05-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7115 * bin/autoreconf.in ($help): Reword according to the manual.
7116 Suggested by Olly Betts.
7118 2006-05-17 Olly Betts <olly@survex.com> (tiny change)
7119 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7121 * bin/autoreconf.in: Pass the directory argument to
7122 `require_configure_ac'. Fix comment.
7123 * tests/torture.at (Configuring subdirectories): Expose this.
7124 Reported by Olly Betts.
7126 2006-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7128 * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
7129 lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
7130 Automake as follows:
7132 * lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
7133 `$configure_in' instead of `configure.in', to preserve
7134 directory component.
7136 2006-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7138 * config/config.guess, config/config.sub, config/texinfo.tex,
7139 doc/make-stds.texi, doc/standards.texi: Sync from upstream.
7141 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
7143 * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
7144 test for C99 conformance; (bool) 0.5 is an integer constant
7145 expression, but (bool) -0.5 is not. Problem reported by Fedor
7146 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
7148 2006-05-13 Paul Eggert <eggert@cs.ucla.edu>
7150 * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
7151 sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
7152 Warn about obsolete install-sh files. Remove stray sentence
7153 fragment and fix cross reference.
7154 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
7155 install -d; this undoes the 2006-05-10 change.
7156 (MKDIR_P): Mark with AN_MAKEVAR.
7157 (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
7158 that we don't require $INSTALL to be thread-safe. Move comments
7159 out of generated code. Require AC_CONFIG_AUX_DIR_DEFAULT instead
7160 of AC_PROG_INSTALL. Output a message saying that we're checking
7161 mkdir -p. Set MKDIR_P rather than mkdir_p. Do special magic for
7162 MKDIR_P instead of AC_SUBST.
7163 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
7164 Special magic for MKDIR_P, too.
7165 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
7167 * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
7169 2006-05-11 Paul Eggert <eggert@cs.ucla.edu>
7171 Sync from Automake, as follows:
7173 2006-05-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7174 * config/install-sh: Initialize IFS, so field splitting isn't
7176 * config/mkinstalldirs: Likewise.
7177 * config/missing: Remove superfluous quotes. Replace all uses of
7178 `[' by `test', for consistency, and for..
7179 * config/missing (sed_minuso, sed_output): New variables.
7180 (autom4te, help2man, makeinfo): Use them. Unifies detection of
7181 `-o FILE', `--output FILE', `--output=FILE', stricter regex.
7182 Fixes `missing' to detect `--output' for help2man. Fixes
7183 PR automake/483. Report by Dennis J. Linse.
7184 (autom4te): Document in `missing --help'.
7186 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
7188 * NEWS: New macro AC_PROG_MKDIR_P. AS_MKDIR_P is now more robust.
7189 * config/install-sh: Don't use 'path' to talk about file names,
7190 as per GNU coding standards. Close a race condition reported by Ralf
7191 Wildenhues and Stepan Kasal. There is still a race condition
7192 on hosts that predate Posix 1003.1-1992, but we can't help this.
7193 Don't mishandle weird characters like space on pre-Posix hosts.
7194 Invoke mkdir at most once per dir arg on pre-Posix hosts.
7195 * doc/autoconf.texi (Programming in M4sh): Cross-reference to
7196 AC_PROG_MKDIR_P from AS_MKDIR_P.
7197 (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
7198 from mkdir. Mention that Autoconf 2.60 install-sh is safe but
7199 earlier editions are not (including Automake 1.8.3).
7200 Do not suggest mkinstalldirs for thread-safety.
7201 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
7202 that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
7203 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
7204 presence of special characters and race conditions.
7205 * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
7206 in Autoconf's name space.
7208 2006-05-10 Bruno Haible <bruno@clisp.org>
7209 and Paul Eggert <eggert@cs.ucla.edu>
7211 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
7212 from Automake with minor changes.
7213 * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
7215 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
7217 * config/install-sh: Update to Automake CVS version, as follows:
7218 2006-04-25 Stepan Kasal <kasal@ucw.cz>
7219 * lib/install-sh: Simplify the expr implementation of dirname.
7220 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
7221 * lib/install-sh: Handle --, and diagnose unknown options.
7223 2006-05-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7225 * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
7226 `./autom4te' to create `./testsuite', since the `all' target
7227 will ensure its presence, but `installcheck' should not create
7228 the uninstalled wrappers.
7230 * tests/torture.at (Unusual Automake input files): Skip if we
7231 detect automake < 1.8.
7233 2006-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7235 * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
7236 is set to `no', then that overrides and sets ac_cv_prog_cc_c89
7237 and ac_cv_prog_cc_c99 to `no', for backward compatibility.
7240 2006-05-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7242 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
7243 munge (multiple) white space and other oddities.
7244 * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
7245 single quotes in variable assignment.
7246 (AC_ARG_VAR, configure invocation): Adjust tests to expose this
7247 and similar failures by adding multiple spaces, tabs, and other
7249 Report and different test suggested by Francesco Romani
7250 <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
7252 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
7253 single quotes, we only need to search for single quotes; this
7254 both simplifies the search pattern, and makes us less
7255 susceptible to `echo' variations for arguments not containing
7257 (_AC_ARG_VAR_VALIDATE): Likewise.
7259 2006-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7261 * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
7262 `$*' and IFS concatenation issue with traditional shells and
7263 bash-2.04. Report by Seanster@Seanster.com.
7265 2006-05-03 Bruno Haible <bruno@clisp.org>
7267 * doc/autoconf.texi (Limitations of Usual Tools): Identify more
7268 precisely which Mac OS X versions have the od problem.
7270 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
7272 * doc/autoconf.texi: Use @option systematically.
7274 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
7275 and Bruno Haible <bruno@clisp.org>
7277 * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
7279 (Integer Overflow): Mention the special case of integer division
7282 2006-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7284 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
7285 traditional shells like the Solaris one that do not use the
7286 first IFS character for assembling `$*'.
7287 Prompted by a related report from autoconf_bug@nro.ca.
7289 2006-05-01 Paul Eggert <eggert@cs.ucla.edu>
7290 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7292 * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
7293 Mention more problems with the -e option.
7295 2006-04-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7298 * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
7300 * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
7301 in URLs to improve DVI formatted output (requires texinfo 4.6).
7302 (System Services, Systemology, Shellology): Likewise.
7303 (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
7306 * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
7308 (Runtime): Fix macro argument names to match description:
7309 `action-if-found' -> `action-if-true' and similarly.
7310 (Obsolete Macros): Likewise.
7311 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
7312 (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
7313 (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
7315 2006-04-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7317 * doc/autoconf.texi (Limitations of Make): Clean up markup.
7320 * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
7323 2006-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7325 * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
7326 /bin/sh set unsorted output.
7327 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
7328 * tests/local.at: Likewise.
7330 2006-04-26 Paul Eggert <eggert@cs.ucla.edu>
7332 * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
7333 (Integer Overflow, Null Pointers, Buffer Overruns):
7334 (Floating Point Portability, Exiting Portably): New sections.
7335 (Writing Test Programs): Fix some langauge. Recommend exiting
7336 with status 1, not merely nonzero. Clarify exit declaration.
7337 (Run Time): Move C exit status stuff to new Exiting Portably section.
7338 (Systemology): Mention Posix and levenez. Update v7 reference.
7339 (Portable Shell): Mention the Posix shell.
7341 2006-04-25 Stepan Kasal <kasal@ucw.cz>
7343 * bin/autoconf.as (me): Replace by as_me.
7345 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
7347 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
7348 since as_me isn't set yet.
7350 2006-04-23 Paul Eggert <eggert@cs.ucla.edu>
7352 Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
7353 a few minor bugs in this area.
7355 * doc/autoconf.texi (Programming in M4sh): Comment out the
7356 documentation of AS_BASENAME, for now.
7357 (Shell Substitutions): Do not use AS_DIRNAME in an example.
7358 (Limitations of Builtins) <basename>: Do not refer to
7360 * bin/autoconf.as (me): Don't use AS_BASENAME.
7361 (dir): Remove the unused variable.
7362 * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
7363 AS_DETECT_REQUIRED. All uses changed.
7364 (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
7366 (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
7367 (AS_BASENAME): Use "basename --" to protect against leading "-".
7368 (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR. All uses changed.
7369 (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED. All uses changed.
7370 (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
7371 (_AS_DIRNAME_PREPARE): Likewise.
7372 (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR. All uses changed.
7373 (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED. All uses changed.
7374 (AS_DIRNAME): Use "dirname --".
7376 2006-04-23 Paul Eggert <eggert@cs.ucla.edu>
7378 * doc/autoconf.texi (Runtime): Renamed from "Run Time". All uses
7379 of "run time" and "run-time" changed to "runtime", for consistency.
7380 * lib/autoconf/fortran.m4: Likewise (in comment).
7381 * lib/autoconf/functions.m4: Likewise.
7382 * lib/autoconf/general.m4: Likewise.
7383 * lib/autoconf/headers.m4: Likewise.
7385 * doc/autoconf.texi (Run Time): Document the exit status situation
7386 with more accuracy and detail.
7388 2006-04-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7390 * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
7391 Archive is not officially `GNU' any more. Update URL.
7392 (Defining Directories): Likewise
7393 * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
7395 2006-04-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7397 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
7398 newline from the `trap' code to finish `config.log'; the NetBSD
7399 /bin/sh resets the exit status after an empty command, as
7400 documented in doc/autoconf.texi.
7401 Reported by Dalibor Topic <robilad@kaffe.org>.
7403 2006-04-19 Paul Eggert <eggert@cs.ucla.edu>
7405 * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
7406 Suggested by Bruno Haible.
7408 2006-04-18 Paul Eggert <eggert@cs.ucla.edu>
7410 * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
7411 some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
7412 Instead, just list the shells that we know work.
7413 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg. All uses
7414 changed. Be more cautious about the _cv_ variable.
7415 * tests/tools.at (Syntax of the shell scripts): Check the
7416 _cv_ variable once, at first, to avoid an internal autoconf error
7417 when sh -n does not work.
7419 2006-04-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7421 * lib/Autom4te/FileUtils.pm: Sync from Automake.
7423 2006-04-16 Paul Eggert <eggert@cs.ucla.edu>
7425 * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
7426 use ">&-" since we're only 99.999% sure that this is portable,
7427 and since the MinGW bug is fixed in a different way.
7428 * lib/autotest/general.m4 (AT_INIT): Likewise.
7430 2006-04-16 Stepan Kasal <kasal@ucw.cz>
7432 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
7433 before opening config.log, to avoid hitting a bug on MinGW.
7435 2006-04-14 Paul Eggert <eggert@cs.ucla.edu>
7437 * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
7438 AS_MESSAGE_LOG_FD before reopening it onto the log file.
7439 This works around a MinGW bug reported by Eric Paire.
7440 Make sure that all writes to the log file append to it,
7441 rather than possibly losing data.
7442 * lib/autotest/general.m4 (AT_INIT): Likewise.
7444 2006-04-14 Stepan Kasal <kasal@ucw.cz>
7446 * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
7449 2006-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7453 * configure.ac (AC_INIT): Bump to 2.59d.
7455 2006-04-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7459 * Makefile.maint (news-date-check): Do not require a leading `*'
7460 before the release date in NEWS.
7462 2006-04-12 Stepan Kasal <kasal@ucw.cz>
7463 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7465 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
7466 the instantiated file do not contain the string 'datarootdir'
7467 but contain @datadir@, @docdir@, @infodir@, @localedir@, or
7468 @mandir@, replace the reference '${datarootdir}' by the value.
7469 * tests/torture.at (datarootdir workaround): New test.
7470 * NEWS: Advertise this temporary fixup.
7471 Based on a patch by Bruno Haible, reported and analyzed by
7472 Paul Eggert and Noah Misch.
7474 2006-04-12 Eric Blake <ebb9@byu.net>
7476 * tests/autotest.at (Debugging a failed test): Fix comment.
7478 2006-04-12 Stepan Kasal <kasal@ucw.cz>
7480 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
7481 all the changes since 2006-04-07.
7483 2006-04-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7485 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
7486 succeeded, but `ln -s file dir' failed, take care to remove the
7487 leftover target before the next test, to prevent its spurious
7488 failure; also make sure `ln file dir' works before selecting it.
7489 Thanks to Keith Marshall for pointing this out.
7492 * lib/autotest/general.m4 (AT_INIT): Store quoted variable
7493 assignments in `at_debug_args', so that we put them correctly
7494 in the `run' script.
7495 * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
7496 Reported by Eric Blake.
7498 2006-04-11 Eric Blake <ebb9@byu.net>
7500 * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
7501 top-level tests after micro-suite has been run. Used in...
7502 (Debugging a successful test, Debugging script and environment),
7503 (Debugging a failed test): ...these new tests. The first of these
7505 * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
7506 macro, split out from...
7507 (AT_INIT): ...here, so that using -d also generates a run script.
7508 Document that -d inhibits top-level logging.
7509 * doc/autoconf.texi (testsuite Invocation): Document that -d only
7510 inhibits top-level logging; debug scripts are created.
7512 * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
7514 * tests/autotest.at (Empty test, Empty check): New test to check it.
7516 * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
7519 2006-04-10 Stepan Kasal <kasal@ucw.cz>
7521 * tests/mktests.sh: Use "trap '' 0", not "trap 0". Do not touch
7522 the files if a problem appears. Make the empty *.at files
7523 read-only, too. Proposed by Ralf Wildenhues.
7525 2006-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7527 * config/Makefile.am: Add comment to force updated Makefile.in.
7529 * lib/freeze.mk: Fix typo in comment. Unlike the last, white
7530 space only patch to this file, this patch causes the Makefile.in
7531 files that include freeze.mk to be updated, and thus have a
7532 newer time stamp again, which in turn makes a pristine CVS
7533 checkout have correct time stamps.
7535 * Makefile.maint (cvs-sv): New macro, to be used..
7536 (config.guess-url_prefix, config.sub-url_prefix)
7537 (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
7538 point to CVS text checkout of Gnulib files.
7539 (copyright-check): Bump current year.
7540 (announcement): Do not hard-wire `./announce-gen'.
7541 (cvs-update): Propagate failures of `cvs' and `move-if-change'
7543 * Makefile.cfg (executable-update): Use `chmod a+x' instead of
7545 (wget_files): Update config.guess, config.sub, texinfo.tex by
7546 `wget-update', now that their URLs work again.
7548 2006-04-10 Paul Eggert <eggert@cs.ucla.edu>
7550 * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
7551 Problem noted by Paul D. Smith.
7553 2006-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7555 * doc/autoconf.texi: Remove unused words from word list.
7556 * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
7557 .x-sc_trailing_space: New files.
7559 * doc/standards.texi: Sync from gnulib.
7561 * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
7562 `LIBOBJDIR' as experimental.
7564 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
7565 with a target directory; it's internally implemented as `cp'
7566 anyway, but since Autoconf advertises the possibility to use
7567 a target directory when LN_S is `ln -s', we need to find out.
7568 Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
7569 analyzed by Keith Marshall <keith.marshall@total.com>.
7573 2006-04-10 Paul Eggert <eggert@cs.ucla.edu>
7575 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
7576 confdefs.h as-is. In general, if it has backslash-newline or the
7577 like, then it doesn't work either to sort or to remove empty
7580 2006-04-09 Stepan Kasal <kasal@ucw.cz>
7582 * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
7584 2006-04-09 Alexandre Duret-Lutz <adl@gnu.org>
7586 * lib/autom4te.in (Automake-preselections): Preselect
7589 2006-04-08 Paul Eggert <eggert@cs.ucla.edu>
7591 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
7592 apostrophe within a single-quoted string, as this is the usual
7593 tradition and is easier to read than '"'"'. Don't rely on the
7594 shell treating "$/" like '$/'. Use a more-consistent indenting
7597 2006-04-09 Eric Blake <ebb9@byu.net>
7599 * tests/autotest.at (Backquote command substitution),
7600 (Multiline backquote command substitution): Remove mistaken
7601 AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
7603 (Parenthetical command substitution, Multiline parenthetical
7604 command substitution): here.
7606 2006-04-08 Paul Eggert <eggert@cs.ucla.edu>
7608 Import macros from gnulib (often changing their name).
7610 * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
7611 New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
7612 AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
7613 AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
7614 AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
7615 AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
7616 AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
7617 AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
7618 AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
7619 AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
7620 The manual mentions Gnulib more prominently.
7621 * doc/autoconf.texi (Gnulib): New node.
7622 (Pointers): Add Gnulib URL.
7623 (Particular Functions): Alphabetize. Add AC_FUNC_STRTOLD.
7624 (Generic Functions): Add AC_CHECK_FUNCS_ONCE. Refer to new
7626 (Particular Headers): Add AC_HEADER_ASSERT. For stdbool.h,
7627 suggest a #define rather than a typedef for _Bool, and mention
7628 Gnulib rather than trying to substitute stdbool code.
7629 (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
7630 (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
7631 (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
7632 AC_STRUCT_DIRENT_D_TYPE.
7633 (Particular Types): Mention stdint.h and inttypes.h as standard
7635 Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
7636 AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
7637 AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
7638 AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
7639 AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
7640 (C Compiler): Move AC_C_LONG_DOUBLE to ...
7641 (Obsolete Macros): here. Under AC_LONG_DOUBLE, mention
7642 AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
7643 (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
7644 (Coding Style). Don't mention m4_expand_once.
7645 * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
7646 AC_TYPE_LONG_DOUBLE_WIDER. Now obsolete.
7647 * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
7648 (AC_CHECK_FUNCS): Use it.
7649 (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
7650 (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
7651 * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
7652 * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
7653 (AC_HEADER_ASSERT): New macro.
7654 (AC_HEADER_STDBOOL): Don't assume "#error" works.
7655 Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
7656 Catch a bug in an HP-UX C compiler.
7657 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
7658 * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
7659 (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
7660 (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
7661 (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
7662 (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
7665 * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
7666 use /^foo|bar$/, it does not mean /^(foo|bar)$/.
7668 2006-04-08 Stepan Kasal <kasal@ucw.cz>
7670 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
7671 of the warning introduced by the 2001-08-28 change.
7673 2006-04-08 Stepan Kasal <kasal@ucw.cz>,
7674 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7676 * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
7677 variables shall be overriden by the cache.
7678 * tests/torture.at (AC_ARG_VAR): Test also with a first value
7679 that contains braces.
7681 2006-04-07 Stepan Kasal <kasal@ucw.cz>
7683 Revert the patch from 2006-04-01 and only improve
7684 _AS_DETECT_BETTER_SHELL:
7686 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
7687 skip nonexistent directories.
7688 (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
7689 only shell candidates which exist.
7690 (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
7691 * lib/autotest/general.m4 (AT_INIT): No need to give three
7692 parameters to _AS_PATH_WALK.
7694 2006-04-07 Stepan Kasal <kasal@ucw.cz>,
7695 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7697 * bin/autoupdate.in (handle_autoconf_patches): Change the way we
7698 distinguish m4sugar macros.
7699 * tests/tools.at (autoupdating with aclocal and m4_include):
7700 New test. Bug reported by Gary V. Vaughan <gary@gnu.org>,
7701 test case by Noah Misch <noah@cs.caltech.edu>.
7703 2006-04-07 Stepan Kasal <kasal@ucw.cz>
7705 Revert my change from 2006-03-17, in other words:
7706 * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
7708 (AS_SHELL_SANITIZE): Remove DUALCASE=1.
7709 * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
7712 2006-04-07 Eric Blake <ebb9@byu.net>
7714 * doc/autoconf.texi (Programming in M4sh): Document that
7715 AS_MKDIR_P exits the script on failure.
7716 * lib/autotest/general.m4: Remove redundant AS_ERROR.
7718 2006-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7720 * config/elisp-comp, config/install-sh, config/mdate-sh,
7721 config/missing, config/mkinstalldirs: Sync from Automake.
7723 * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
7726 * doc/make-stds.texi: Sync from gnulib.
7728 2006-04-06 Eric Blake <ebb9@byu.net>
7730 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
7731 check, s/ac_exeext/ac_cv_exeext/. Fixes regression introduced
7734 2006-04-06 Stepan Kasal <kasal@ucw.cz>,
7735 Eric Blake <ebb9@byu.net>,
7736 Paul Eggert <eggert@cs.ucla.edu>,
7737 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7739 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
7740 whether `set' quotes correctly: redirect stderr of the tested
7741 `set', and use a subshell, for Ultrix; use `sed' instead of
7742 `grep' for zsh `set' which may write binary output; match only
7743 at the beginning of a line, to avoid false positives.
7744 In order to avoid false positives by unrelated variables with
7745 multiline content, put the dump algorithm in a subshell and
7746 unset all variables containing newlines (except some which are
7747 special to the shell). Warn about cache variables that are
7750 2006-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7752 * config/config.guess, config/config.sub, config/texinfo.tex:
7755 * tests/mktests.sh: Reword comments.
7757 * tests/mktests.sh: Only skip internal macros starting with
7758 `_AC_' or `__AC_'. Noted by Stepan Kasal.
7759 Update exclusion lists for the test suite to this end:
7760 (AC_ARG_VAR): Do test this now.
7761 (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
7762 (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
7763 (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
7764 (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
7766 * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
7767 shell issue with double-quoted command substitutions of native
7769 Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
7772 * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
7773 no file matches the glob, discard the warning, set `nullglob'.
7774 (syntax-check): Likewise.
7775 (sc_cast_of_x_alloc_return_value): Likewise.
7776 (sc_cast_of_alloca_return_value, sc_error_exit_success)
7777 (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
7778 (m4-check): Likewise.
7779 (sc_system_h_headers): Do not print rule on execution.
7780 (sc_tight_scope): Do not fail for non-existing `src' directory.
7781 (sc_changelog): Skip the Copyright footer.
7782 * lib/autoconf/lang.m4: Remove trailing space.
7784 * lib/autoconf/status.m4: More replacements to
7785 <tab><space> where this makes sense.
7787 2006-04-06 Stepan Kasal <kasal@ucw.cz>
7789 * tests/Makefile.am (maintainer-check-posix):
7790 s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
7792 * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
7793 ac_config_<foo>s again, sometimes normalized, sometimes not.
7794 (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
7795 (AC_CONFIG_COMMANDS): Do not do so here.
7796 (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
7797 and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
7798 2005-07-25 rewrite. Noticed by Noah Misch.
7800 * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
7801 _AC_PRESERVE_HELP_ORDER, ...
7802 (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
7804 * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
7805 inside m4_expand_once; it is redundant.
7807 * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
7808 for --help from Cygnus `configure.'
7810 2006-04-06 Paul Eggert <eggert@cs.ucla.edu>
7812 * doc/autoconf.texi (C Compiler): Warn about #error. Follows up
7813 on a patch proposed by Ralf Wildenhues.
7815 2006-04-05 Paul Eggert <eggert@cs.ucla.edu>
7817 * lib/autoconf/status.m4: Replace <space>''<tab> with
7818 <tab><space> where this makes sense.
7820 2006-04-05 Howard Chu <hyc@highlandsun.com> (trivial change)
7821 Noah Misch <noah@cs.caltech.edu>
7823 * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
7824 (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
7825 * doc/autoconf.texi (Help Formatting): New node.
7826 * NEWS: Announce AC_PRESERVE_HELP_ORDER.
7828 2006-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7830 * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
7831 lib/autoconf/specific.m4, lib/autoconf/status.m4,
7832 lib/autoconf/types.m4, lib/autotest/general.m4,
7833 tests/mktests.sh, tests/torture.at: White space cleanup:
7834 remove some SPACE before TAB, or add quoting ('' or @&t@).
7836 * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
7838 * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
7840 2006-04-05 Eric Blake <ebb9@byu.net>
7842 * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
7843 empty test suite works.
7844 * tests/autotest.at (Empty test suite): Remove xfail.
7846 2006-04-05 Noah Misch <noah@cs.caltech.edu>
7848 * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
7849 TAGS to ac_config_<foo>s.
7850 (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
7851 (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
7852 normalizing it, consistent it with previous releases.
7853 * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
7855 2006-04-05 Paul Eggert <eggert@cs.ucla.edu>
7857 * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
7858 Use simplified args that Eric Blake originally suggested.
7860 2006-04-04 Paul Eggert <eggert@cs.ucla.edu>
7862 * tests/mktests.sh: Don't use 'cat'; just read the files directly.
7863 Prefer 'sort -u' to 'sort | uniq'. Filter data before sorting it.
7864 Use 'comm' rather than N instances of grep; this also fixes a bug
7865 whereby substrings were incorrectly matched, causing us to not
7866 generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
7867 (exclude_list): Exclude empty macros.
7868 (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
7870 Use awk rather than grep -E or egrep, to avoid
7871 portability problems with regular expressions containing newlines.
7872 (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
7873 Switch from grep to awk syntax.
7874 (ac_exclude_script): Renamed from ac_exclude_egrep.
7875 (au_exclude_script): Renamed from au_exclude_egrep.
7877 2006-04-04 Noah Misch <noah@cs.caltech.edu>
7879 * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
7880 a subdirectory subject to Cygnus `configure'.
7881 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
7883 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
7884 report request when we have no AC_PACKAGE_BUGREPORT.
7886 2006-04-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7890 * tests/mktests.sh: Update copyright year in the header of the
7893 * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
7894 (AC_C_RESTRICT): Likewise. Furthermore, add a function with a
7895 typedef'ed restricted pointer, to catch a compiler bug on
7896 HP-UX 11.x, and fix warnings so it passes with -Werror.
7897 (_AC_PROG_CC_C99): Likewise.
7898 Reported by Albert Chin <china@thewrittenword.com>.
7899 * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
7901 2006-04-03 Noah Misch <noah@cs.caltech.edu>
7903 * bin/autoscan.in (subdirs): New global.
7904 (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
7905 (output): Emit AC_CONFIG_SUBDIRS as needed.
7906 * tests/autoscan.at (autoscan): Remove XFAIL.
7908 2006-04-03 Noah Misch <noah@cs.caltech.edu>
7910 * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
7912 2006-04-03 Eric Blake <ebb9@byu.net>
7914 * THANKS: Add myself.
7916 2006-04-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7918 * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
7919 to log, point to testsuite output tree.
7921 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
7923 * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
7924 * doc/autoconf.texi (Function Portability): Mention that C++
7925 has trouble with 'exit'.
7926 (Guidelines): Test programs shouldn't use 'exit'.
7927 * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
7928 Remove; all uses removed.
7929 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
7930 Return from 'main' instead of calling 'exit'.
7931 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
7932 (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
7933 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
7934 (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
7935 (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
7936 (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
7937 (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
7938 * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
7939 * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
7940 * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
7941 * tests/compile.at: Likewise.
7943 2006-04-02 Pavel Roskin <proski@gnu.org>
7945 * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
7947 2006-04-01 Stepan Kasal <kasal@ucw.cz>
7949 Clean up _AC_COMPILER_EXEEXT* macros.
7951 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
7952 detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
7953 ac_file to the name of the default output file and call
7954 _AC_COMPILER_EXEEXT_WORKS. Move the definition of ac_files and the
7955 initial `rm' of the candidate files...
7956 (_AC_COMPILER_EXEEXT): ... here and simplify them. Moreover, use
7957 the same list in subsequent `rm' calls, and for the temporary
7958 redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
7959 and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
7960 (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
7961 (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
7962 no longer needed) by libtool. Make it a cache check.
7963 (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
7964 copied here by mistake.
7965 (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
7966 _AC_COMPILER_EXEEXT.
7967 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
7968 _AC_COMPILER_OBJEXT directly.
7969 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
7971 2006-04-01 Stepan Kasal <kasal@ucw.cz>
7973 * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
7974 (AS_DIRNAME): Use it.
7975 (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
7977 * tests/*.at: Remove the generated ones.
7979 2006-04-01 Stepan Kasal <kasal@ucw.cz>
7981 * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
7983 2006-04-01 Eric Blake <ebb9@byu.net>
7985 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
7986 directories, unless optional third argument supplied.
7987 (AS_UNAME): Don't optimize PATH walk.
7989 * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
7991 2006-04-01 Eric Blake <ebb9@byu.net>
7992 and Stepan Kasal <kasal@ucw.cz>
7994 * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
7997 2006-04-01 Noah Misch <noah@cs.caltech.edu>
7999 * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
8000 Autoconf version number despite a zero- or one-argument AC_INIT.
8002 * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
8004 * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
8005 * doc/autoconf.texi (autoreconf Invocation): Document it.
8007 * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
8008 Append LocalWords so ispell-buffer passes cleanly. Spelling fixes.
8010 2006-04-01 Eric Blake <ebb9@byu.net>
8012 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
8013 * lib/autotest/general.m4: Be tolerant of existing directory when
8014 rm failed to remove it.
8016 2006-04-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8018 * bin/autoupdate.in: Redefine m4_location so that warnings print
8019 the correct lines of the input file by subtracting..
8020 (_au__first_line): ..this new definition.
8022 * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
8023 AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
8024 Remove stray newline in output.
8025 (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
8026 AC_DEFUN this for autoconf, including the obsoletion diagnose.
8027 Fixes autoupdating of code where the replacement output contains
8029 * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
8030 * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
8031 (au_exclude_list): Add AC_LANG_SAVE.
8032 * tests/tools.at: Several new tests for all of this.
8033 * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
8035 The AC_LANG_SAVE issue was reported against Libtool by
8036 Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
8037 Kristian Kvilekval <kris@cs.ucsb.edu>.
8039 2006-04-01 Stepan Kasal <kasal@ucw.cz>
8041 * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
8042 switch all of them on and of when necessary. Fixes the bug when
8043 m4sugar macros (e.g., m4_define) were expanded after the first
8044 automatic update (e.g., after AC_PREREQ or AC_INIT).
8046 2006-03-31 Paul Eggert <eggert@cs.ucla.edu>
8048 * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
8049 of AS_BASENAME and AS_DIRNAME. Reported by Stepan Kasal.
8051 * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
8052 correctly. Problem reported by Eric Blake.
8053 (_AS_EXPR_PREPARE): Detect Tru64 expr bug. Problem reported by
8056 2006-03-30 Paul Eggert <eggert@cs.ucla.edu>
8058 * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
8059 Tighten up the basename/dirname wording.
8061 2006-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8063 * Makefile.maint (sc_texi_notab): New check: do not use TABs
8064 in texinfo files outside of verbatim environments.
8065 (syntax-check-rules): Update.
8066 * doc/autoconf.texi (Configuration Headers): Conform to it.
8068 2006-03-30 Chris Pickett <cpicke@cs.mcgill.ca> (tiny change)
8070 * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
8071 aclocal cannot be given on the command line.
8073 2006-03-29 Paul Eggert <eggert@cs.ucla.edu>
8075 * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
8076 Give an example for AS_DIRNAME instead of referring to Posix..
8077 (File System Conventions): Put discussion of // versus / here, and
8079 (Limitations of Usual Tools): Add basename. Remove verbiage
8080 after dirname, since it got moved to the above sections.
8081 All this was inspired by a patch proposed earlier by Eric Blake.
8083 2006-03-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8085 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
8086 `$0' to protect against spaces.
8087 * lib/autotest/general.m4 (AT_INIT): Likewise.
8088 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
8091 2006-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8093 * bin/autoscan.in: The value of find_configure_ac should be
8094 checked for existence, so we don't barf over a nonexisting
8095 configure.ac. Reported by Laurence Darby <ldarby@tuffmail.com>.
8097 2006-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8099 * bin/autoupdate.in: Fix some typos.
8101 2006-03-21 Stepan Kasal <kasal@ucw.cz>
8103 * doc/autoconf.texi (Installation Directory Variables): Fix typo.
8105 * lib/autoscan/autoscan.list: Refreshed.
8107 2006-03-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8109 * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
8110 and Erlang related variables.
8112 * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
8113 (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
8114 (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
8115 (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
8116 (AC_LANG_BOOL_COMPILE_TRY(Objective C))
8117 (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
8118 (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
8119 (_AC_PROG_OBJC_G): New macros.
8120 (_AC_ARG_VAR_CPPFLAGS): Adjusted.
8121 * doc/autoconf.texi (Objective C Compiler): New node.
8122 (Preset Output Variables): Document OBJCFLAGS.
8123 (Language Choice): Document `Objective C' language.
8124 (Fortran Compiler): Fix typo.
8126 Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
8128 2006-03-20 Stepan Kasal <kasal@ucw.cz>
8130 * doc/autoconf.texi (Default Includes): Fix typo
8131 s/AC_HEADERS_STDC/AC_HEADER_STDC/
8132 (Limitations of Usual Tools): s/unwriteable/unwritable/
8133 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
8134 Fix typos in the comments.
8136 2006-03-17 Stepan Kasal <kasal@ucw.cz>
8138 * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
8139 Factor out the warning to...
8140 (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
8141 * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
8142 * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
8144 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
8145 case `ac_delim' when writing the sed script.
8147 * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
8148 moved DUALCASE=1 ...
8149 (AS_SHELL_SANITIZE): ... here.
8150 * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
8153 * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
8155 (_AC_PATH_PROG): Store the result to VARIABLE.
8156 (AC_PATH_PROG): No need to set VARIABLE again.
8158 * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
8159 the first one is usual AT_CHECK_MACRO test, the second one checks
8160 that the same works when cross-compiling.
8161 * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
8162 (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
8164 2006-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8166 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
8167 the directory `/usr/bin/posix' in the shell search, to prefer
8168 the Posix shell not only in subsequent spawns as with `$BIN_SH'
8171 * doc/autoconf.texi (contents): To fix texi2html output, hide
8172 `@setcontentsaftertitlepage' for HTML.
8173 (Writing Autoconf Macros): Likewise, insert space after `@c'.
8174 (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
8177 2006-03-16 Stepan Kasal <kasal@ucw.cz>
8179 * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
8181 (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
8182 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
8183 why IFS is restored so late; thank you, Ralf, for reminding us.
8185 2006-03-15 Stepan Kasal <kasal@ucw.cz>
8187 * doc/autoconf.texi (Pretty Help Strings): No need to use cached
8188 variables in the examples.
8190 2006-03-14 Romain Lenglet <rlenglet@users.forge.objectweb.org>
8192 * doc/autoconf.texi (several sections): Cleaned up documentation for
8193 macros in erlang.m4.
8195 2006-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8197 * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
8198 failure condition for `$(cmd)' style command substitutions.
8199 (Parenthetical command substitution, Multiline parenthetical
8200 command substitution): Use it.
8202 * doc/autoconf.texi (Special Shell Variables): Missing word.
8203 Reported by Keith Marshall <keith.marshall@total.com>.
8205 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
8206 IFS even in case of empty `$PATH'.
8208 2006-03-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8210 * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
8211 `expr' away if there is nothing to do.
8212 < --keywords >: Simplify and robustify argument handling.
8213 Revert erroneous comment from 2005-08-23. Extend to allow
8214 keyword negation with `!'.
8215 Update help message. Remove broken code to prevent running
8216 tests multiple times.
8217 * doc/autoconf.texi (testsuite Invocation) < --keywords >:
8218 Update and fix the documentation accordingly.
8219 * tests/autotest.at (Keywords): Renamed to..
8220 (Keywords and ranges): .. this. Extended to make sure negated
8221 keywords, keywords taken from AT_SETUP arguments, and numeric
8222 test ranges work, and that matching is case-insensitive.
8224 2006-03-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8226 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
8227 allow to pass unnamed structs even in C++.
8228 (AC_CHECK_SIZEOF): Likewise.
8229 Also fix quoting error in `AC_MSG_FAILURE' arguments.
8230 * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
8231 struct): New tests for unnamed structs, each both native and
8234 * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
8235 a structure inside a cast, for C++ conformance.
8236 * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
8237 Also fix quoting error in `AC_MSG_FAILURE' arguments.
8239 * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
8240 nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
8241 trying to execute the command `no'.
8243 * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
8244 m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
8247 * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
8248 example. Do not emphasize `$%', it is hardly new and special.
8249 Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
8251 * doc/autoconf.texi (Limitations of Usual Tools): Document
8252 OpenBSD and traditional `grep' failure to handle multiple
8253 patterns separated by newlines.
8255 2006-03-10 Romain Lenglet <rlenglet@users.forge.objectweb.org>
8257 * doc/autoconf.texi (several sections): Add documentation for macros
8260 2006-03-10 Eric Blake <ebb9@byu.net>
8262 * doc/autoconf.texi (Obsolete Macros): Fix wording of
8265 2006-03-10 Paul Eggert <eggert@cs.ucla.edu>
8267 * doc/autoconf.texi: Use @acronym more consistently for acronyms
8268 like BSD, GPL, LGPL. Fix minor English typos.
8269 (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
8270 Mention that these macros are becoming obsolete.
8271 (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
8272 Use more modern terminology for which standard is what.
8273 (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
8275 (AC_PROG_CXX): Likewise.
8276 (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
8277 Remove obsolete discussion about how to port to K&R.
8278 (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
8279 the obsolescent AC_HEADER_STDC.
8280 (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
8283 2006-03-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8285 * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
8286 Remove stdin redirection from /dev/null to allow pipe to work.
8288 2006-03-08 Paul Eggert <eggert@cs.ucla.edu>
8290 * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
8291 Require that /lib/cpp include stdio.h correctly. Solaris 10's
8292 doesn't. Problem reported by D'Arcy A MacIsaac and diagnosed by
8295 2006-03-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8297 * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
8298 HP-UX sed is 99 commands, not 100.
8299 (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
8300 _AC_SUBST_FILES fragment. Separate `{' and `r' commands by
8301 newline for portability.
8302 * tests/torture.at (Torturing config.status): Also test 100
8303 AC_SUBST_FILE invocations. Fix test to actually verify the
8304 AC_CONFIG_FILES output.
8305 * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
8306 command, label, and read-file `r' limits. Unify HP-UX spelling.
8308 * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
8310 ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
8312 (autoconfdir, $(AUTOCONF_FILES)): Likewise.
8313 * tests/mktests.sh: Small shell portability fixes.
8315 2006-03-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8317 * doc/autoconf.texi (Caching Results): Fix the examples to use a
8318 recommended quoting style and discard unwanted output.
8320 2006-03-05 Paul Eggert <eggert@cs.ucla.edu>
8322 * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
8323 (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
8324 cases, and to work around Tru64 expr bug.
8326 2006-03-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8328 * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
8329 expr bug that turns the result of a regex match into a number if
8332 2006-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8334 * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
8335 HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
8336 in section `Specific Compiler Characteristics'.
8338 2006-03-04 Eric Blake <ebb9@byu.net>
8340 * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
8343 2006-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8345 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
8346 order of variable initialization, so even the Solaris 2.6 shell
8347 can create a config header correctly. Fixes lots of test suite
8350 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8352 * doc/autoconf.texi (Text processing Macros): New node to
8353 document the m4sugar macros m4_re_escape, m4_tolower,
8354 m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
8356 2006-02-22 Paul Eggert <eggert@cs.ucla.edu>
8358 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
8359 XrmInitialize (0) -> XrmInitialize ().
8360 Reported by Toshio Kuratomi.
8362 2006-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8364 * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
8365 test, as in `if tests; then cmd1; elif ...; else ...; fi'.
8366 * doc/autoconf.texi (Programming in M4sh): Adjusted.
8367 * tests/m4sh.at (AS_IF and AS_CASE): Test this. Also make sure
8368 both macros are defun'ed so that required macros are evaluated
8371 * doc/autoconf.texi (Prerequisite Macros): State more precisely
8372 where a required macro will be expanded.
8373 (Coding Style): Another reason not to use `m4_define'.
8375 2006-02-21 Eric Blake <ebb9@byu.net>
8377 * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
8379 2006-02-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8381 * doc/autoconf.texi (Looping constructs): New node, to
8382 document m4_for, m4_foreach, m4_foreach_w, and mention
8383 obsolete AC_FOREACH.
8384 (Obsolete Macros): Document AC_FOREACH.
8385 * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
8386 (m4_for): Fix to never loop (almost) endlessly, work correctly
8387 with arithmetic expressions in arguments, a step of zero or
8388 non-integer multiple of the interval, and avoid integer
8390 * tests/m4sugar.at: New test for m4_for, m4_foreach, and
8393 2006-02-20 Romain Lenglet <rlenglet@users.forge.objectweb.org>
8395 Add basic support for Erlang, both for configuring Erlang/OTP
8396 tools, and Erlang as a conf test language.
8397 * lib/autoconf/erlang.m4: New file.
8398 * lib/autoconf/autoconf.m4: Add erlang.m4.
8399 * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
8400 * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
8401 * NEWS: Add short description of new macros.
8402 * THANKS: Add Romain Lenglet.
8404 2006-02-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8406 * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
8407 native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
8409 2006-02-15 Eric Blake <ebb9@byu.net>
8411 * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
8414 2006-02-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8416 * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
8417 (_AS_CASE): Private helper macro.
8418 * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
8419 * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
8420 Fix syntax of AS_IF description
8421 (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
8422 for the AC_REQUIRE mess.
8423 * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
8426 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
8428 * doc/autoconf.texi: Minor style cleanup.
8429 Be consistent about spaces after commas.
8430 Insert [] where empty args look a bit funny.
8431 Fix some "i.e." and "e.g." usages.
8432 Try to avoid "X/Y" usages.
8433 Don't be pedantic about "ISO C99"; just say C99.
8434 Prefer GNU style for spaces in front of parens.
8435 (Function Portability): Comment about C89 versus C99
8436 signed integer division.
8437 (Particular Headers): Use current gnulib style for dirent
8440 2006-02-14 Stepan Kasal <kasal@ucw.cz>
8441 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8443 * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
8444 macros without parameters.
8445 * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
8446 * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
8447 * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
8449 (autoupdate): Updated to match AU_ALIAS fix.
8451 2006-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8452 and Paul Eggert <eggert@cs.ucla.edu>
8454 * doc/autoconf.texi (Programming in M4sh): Document
8455 AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
8457 2006-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8459 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
8460 (AS_BOURNE_COMPATIBLE): ..this.
8461 (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
8463 2006-02-12 Paul Eggert <eggert@cs.ucla.edu>
8465 * doc/install.texi (Defining Variables): Tighten up the
8466 CONFIG_SHELL wording.
8468 2006-02-12 Paul Eggert <eggert@cs.ucla.edu>
8469 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8471 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
8472 of (set -o) rather than testing whether (set -o posix) succeeds,
8473 to work around a bug in the AIX 5.3 shell. Problem originally
8474 reportd by Howard Chu for libtool.
8476 2006-02-10 J.T. Conklin <jtc@acorntoolworks.com>
8478 * doc/autoconf.texi (Running the Compiler, Running the Linker):
8479 Changes the macro arguments in summaries to match the
8482 2006-02-04 Stepan Kasal <kasal@ucw.cz>
8484 * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
8485 hint as ``a workaround for a bug.''
8487 2006-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8489 * bin/autoreconf.in: New option `--no-recursive'.
8490 Improve wording for subpackages a bit.
8491 * doc/autoconf.texi (autoreconf Invocation): Updated.
8494 * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
8495 in environment of `configure', not the command line.
8496 Reported by Howard Chu <hyc@highlandsun.com>.
8498 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
8500 * doc/autoconf.texi (Limitations of Builtins): Document the
8501 problem with "trap -".
8503 2006-01-23 Steven G. Johnson <stevenj@fftw.org>
8505 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
8506 (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
8507 messages to differentiate Fortran and Fortran 77 tests.
8508 (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
8509 AC_LANG_ASSERT, to allow use in mixed-language projects.
8511 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
8513 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
8514 FOO" to "defined (FOO)".
8515 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
8516 * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
8517 * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
8518 * tests/tools.at (ifnames): Likewise.
8520 2006-01-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8522 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
8523 * lib/Autom4te/General.pm (mktmpdir): Likewise.
8524 (END): Improve error message a bit.
8525 Reported by Bruce Korb <bkorb@gnu.org>.
8527 2006-01-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8529 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
8530 `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
8532 2006-01-11 Stepan Kasal <kasal@ucw.cz>
8534 * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
8535 requires sys/stream.h. Reported by Oliver Kiddle.
8537 2006-01-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8538 Stepan Kasal <kasal@ucw.cz>
8540 * lib/autotest/general.m4 (AT_INIT): When ensuring writability
8541 before the removals of test dirs, use `find' to avoid modification
8542 of symlinked directories.
8544 2006-01-11 Steven G. Johnson <stevenj@alum.mit.edu>
8546 * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
8547 Don't ignore the macro arguments.
8549 2006-01-11 David Thompson <dthompsn@vizsolutions.com>
8551 * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
8552 declaration that works for MSVC.
8554 2006-01-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8556 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
8557 Add `*.map' and `.inf' for Green Hills compiler.
8558 Reported by Stefan Seefeld <stefan@codesourcery.com>.
8560 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
8561 correctly: pad with spaces after FIRST_PREFIX if necessary,
8562 and compute string lenghts with `m4_qlen' instead of `m4_len'.
8563 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
8564 * tests/m4sh.at (AS_HELP_STRING): Test extended.
8566 Reported by numerous people, numerous times.
8568 2006-01-05 Paul Eggert <eggert@cs.ucla.edu>
8570 * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
8571 * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
8572 * lib/autoconf/general.m4, lib/autoconf/status.m4:
8573 * lib/autotest/general.m4, tests/local.at:
8574 Update copyright year to 2006.
8576 * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
8578 * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
8579 for file names, again. Reported by Noah Misch.
8580 (Coding Style): Explain that s|a|b| is preferred for file names.
8581 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
8582 (AC_OUTPUT_MAKE_DEFS): Likewise.
8583 * lib/autotest/general.m4 (AT_INIT): Likewise.
8584 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
8585 * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
8587 Fix Posix-conformance bugs re use of { command in sed scripts,
8588 and improve the sed-related documentation a bit.
8589 * doc/autoconf.texi (Installation Directory Variables): Use
8590 our own style advice re 's,a,b,' versus 's|a|b|'. Use "Sed"
8591 rather than "sed" when talking about Sed in general.
8592 (Particular Programs): Likewise.
8593 (Coding Style): y is like s with respect to / and ,.
8594 (Limitations of Usual Tools): Document the weird restrictions
8595 that Posix has about { }. Use better quoting.
8596 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
8597 Rewrite to conform to Posix rules about { } in sed scripts.
8598 * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
8599 * tests/foreign.at (Libtool): Likewise.
8600 * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
8601 Use our own style advice re 's,a,b,' versus 's|a|b|'.
8603 2006-01-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8605 * lib/autoconf/status.m4: Fix typo.
8607 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
8608 singly- or doubly-quoted arguments to `-cmdline', `-ignore',
8609 `-def', for the benefit of Portland `pgf90 -Mipa'.
8610 Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
8612 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
8614 * doc/autoconf.texi: Update copyright (and other) dates to 2006.
8615 * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
8616 shell from zsh to bash.
8618 2005-12-31 Stepan Kasal <kasal@ucw.cz>
8620 * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
8621 ":" caused problems on OS/2-EMX. Suggested by Andrew Belov.
8623 2005-12-29 Paul Eggert <eggert@cs.ucla.edu>
8625 * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
8626 parentheses in $(...). Problem reported by Eric Blake.
8628 2005-12-12 Paul Eggert <eggert@cs.ucla.edu>
8630 * doc/autoconf.texi (Limitations of Usual Tools):
8631 Mention which characters can be escaped with \ in portable regular
8632 expressions used in grep, sed, expr. Mention the leading ^ problem
8633 with expr. Clean up some confusing wording. Mention which
8634 grep options are portable.
8636 2005-12-09 Stepan Kasal <kasal@ucw.cz>
8638 * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
8640 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
8642 * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
8643 patch, noted by Ralf Wildenhues.
8645 2005-12-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8647 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
8648 posix' unconditionally, for pdksh in `native sh' emulation.
8650 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
8652 * doc/autoconf.texi (Shellology): Document eval $? problem
8654 (Limitations of Builtins): Likewise.
8656 2005-11-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8658 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
8659 CONFIG_SHELL in the environment of the configure rerun.
8660 * doc/autoconf.texi (Here-Documents, config.status Invocation):
8661 Suggest passing CONFIG_SHELL absolute, and in the environment
8662 rather than as option.
8664 2005-11-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8666 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
8667 Fix quoting of output line (triggered for many AC_SUBST_FILEs).
8668 Fix macro quoting. Fix output for n * 98 substituted variables.
8670 2005-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8672 * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
8673 `tmp' to avoid file removal race.
8675 2005-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8677 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
8678 ac_clean_files and LIBOBJS.
8680 2005-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8682 * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
8683 Factor functionality to..
8684 (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
8685 `AC_SUBST($1)' in the public version.
8686 (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
8687 (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
8690 2005-11-01 Stepan Kasal <kasal@ucw.cz>
8692 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
8695 2005-11-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8697 * NEWS: Move AH_HEADER mention to right place.
8699 2005-10-27 Stepan Kasal <kasal@ucw.cz>
8701 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
8702 * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
8704 2005-10-25 Stepan Kasal <kasal@ucw.cz>
8706 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
8707 conftst2.$ac_objext.
8708 * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
8710 2005-10-24 Stepan Kasal <kasal@ucw.cz>
8712 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
8713 conftest.o, to see whether the compiler really obeys; rm the object
8714 file before and after the test and register it with ac_clean_files.
8715 * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
8717 2005-10-21 Stepan Kasal <kasal@ucw.cz>
8719 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
8720 the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
8721 code so that the most common case requires less forks.
8723 2005-10-20 Stepan Kasal <kasal@ucw.cz>
8725 * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
8726 not portable; thanks to Paul Eggert and Alexandre.
8728 * NEWS: Fix an old typo.
8730 2005-10-20 Jim Meyering <jim@meyering.net>
8732 * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
8733 the latter'', in two places.
8735 2005-10-19 Paul Eggert <eggert@cs.ucla.edu>
8737 * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
8738 AC_LANG_PROGRAM, fixing a typo. Don't give details about
8739 the inner workings of AC_LANG_FUNC_LINK_TRY.
8740 * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
8741 AC_LANG_FUNC_LINK_TRY. This involves returning the value returned
8742 by the function rather than ignoring it.
8743 (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
8744 comparing its address. Intel's interprocedural optimization was
8745 outsmarting the old heuristic. Problem reported by
8748 2005-10-19 Stepan Kasal <kasal@ucw.cz>
8750 * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
8752 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
8754 * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
8755 (m4_map, m4_map_sep): Use it. Handle the empty list correctly.
8757 2005-10-04 Stepan Kasal <kasal@ucw.cz>
8759 * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
8760 before removing it (chmod -R u+rwx); there are three instances of this.
8762 2005-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8763 Stepan Kasal <kasal@ucw.cz>
8765 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
8766 * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
8767 make its content writable before removing it. Remove an errorneous
8768 comment from the end, where the logs of the failed tests are copied
8769 to the main log file.
8771 2005-09-27 Stepan Kasal <kasal@ucw.cz>
8773 * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
8774 in case the computer is too quick. Double quote the configure.ac
8777 * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
8778 problems if the testsuite were running too fast.
8780 2005-09-18 Paul Eggert <eggert@cs.ucla.edu>
8782 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
8783 and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
8784 (which belong to Xt, not X itself). See Debian bug 327655.
8785 * NEWS: Mention this.
8787 2005-09-07 Stepan Kasal <kasal@ucw.cz>
8789 * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
8791 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
8793 * config/move-if-change: Don't output "$2 is unchanged";
8794 suggested by Ben Elliston. Handle weird characters correctly.
8796 2005-09-06 Stepan Kasal <kasal@ucw.cz>
8798 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
8799 calls, so that the final expansion of this macro is shorter.
8800 Create the conftest.$ac_ext outside the `for' loop, to speed the run.
8801 Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
8802 the cleanup there. Use AS_VAR_* macros, to be more general.
8803 * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
8805 * lib/autoconf/general.m4: Use AS_IF where appropriate.
8807 * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
8809 2005-09-01 Stepan Kasal <kasal@ucw.cz>
8811 * doc/autoconf.texi (Configuration Headers): Add an index entry
8814 2005-08-26 Pavel Roskin <proski@gnu.org>
8816 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
8817 XMKMF to locate xmkmf. Make XMKMF precious. Export CC when
8820 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
8822 * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
8823 The previous patch didn't work, so try a better one.
8825 2005-08-26 Stepan Kasal <kasal@ucw.cz>
8827 * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
8828 in the example. Reported by Bruno Haible.
8829 <AS_TR_SH>: Likewise. Also modify the example to be more convincing:
8830 "if $undefined_var;" succeeds with my shell.
8832 * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
8833 AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
8834 but change the m4_divert_text to m4_divert_once.
8836 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
8838 * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
8839 Work around bug in Solaris /usr/xpg4/bin/awk.
8840 The bug is present in at least Solaris 8 through 10.
8842 2005-08-24 Stepan Kasal <kasal@ucw.cz>
8844 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
8845 some evil values and relying on the fact that $* concatenates the
8846 parameters by the first character from IFS.
8848 2005-08-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>,
8849 Stepan Kasal <kasal@ucw.cz>
8851 * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
8852 first header appears, define AH_HEADER.
8853 * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
8854 Update limitations about when to call AC_CONFIG_HEADERS.
8855 (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
8856 parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
8857 that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
8858 ``Configuration Actions''; fix their index entries.
8860 * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
8861 options correctly. Process N-M as M-N if M is smaller than N.
8862 Process ranges correctly so that N-N will run only N.
8863 Sort and uniquify the tests that will be run. If there is more
8864 than one test, reinsert the banners for the tests.
8865 * tests/autotest.at (Keywords): Unmark XFAIL.
8867 2005-08-23 Stepan Kasal <kasal@ucw.cz>
8869 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
8870 before passing the macro name to AH_TEMPLATE.
8872 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
8873 now opens log after option processing; in particular, --version
8874 and --help do not touch config.log.
8876 * Makefile.maint: Revert the change from 2005-08-12.
8878 2005-08-22 Stepan Kasal <kasal@ucw.cz>
8880 * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
8882 (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
8884 2005-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8886 * doc/autoconf.texi (Using Autotest, testsuite Scripts)
8887 (Autotest Logs, Writing testsuite.at, testsuite Invocation):
8890 * doc/autoconf.texi (Defining Symbols, Changed Results):
8891 Prepend to LIBS, not append, in examples.
8893 2005-08-16 Stepan Kasal <kasal@ucw.cz>
8895 When building in place, set srcdir="."; suggested by Tim Van Holder.
8897 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
8898 build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
8899 (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
8900 * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
8901 does not mean "no --srcdir option".
8903 2005-08-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8905 * tests/autoscan.at (autoscan): New file.
8906 * tests/suite.at: Use it.
8907 * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
8908 Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
8910 * tests/autotest.at (Keywords): Test keywords combinations.
8912 2005-08-12 Stepan Kasal <kasal@ucw.cz>
8914 * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
8915 add "2>&1"; gzip 1.2.4 prints help on stderr.
8917 2005-07-27 Stepan Kasal <kasal@ucw.cz>
8919 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
8920 was pushdef'ed twice while popped only once. Push it only once.
8921 (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
8923 2005-07-26 Stepan Kasal <kasal@ucw.cz>
8925 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
8926 prefixed by mere "===", not "configure: === ".
8928 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
8930 * Makefile.maint: Update from Bison.
8932 * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
8933 "<tab>" in comment, so that the point is understandable.
8935 2005-07-25 Stepan Kasal <kasal@ucw.cz>
8937 Rewrite substantial part of lib/autoconf/status.m4.
8938 The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
8939 and CONFIG_COMMANDS are not processed in four separate loops.
8940 Instead, there is one main loop. This alows that the common code
8941 is expanded only once, thus config.status (and configure) is smaller.
8943 The registration mechnism in AC_CONFIG_FILES and cousins also changed;
8944 the AC_LIST_FILES and cousins macros are no longer used.
8946 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
8947 _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
8948 (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
8949 _AC_OUTPUT_COMMAND): ..., respectively. These macros no longer
8950 contain the initialization, nor the for loop, nor the associated
8951 commands; all these go to ...
8952 (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
8953 _AC_OUTPUT_CONFIG_STATUS.
8954 (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
8955 Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
8956 (_AC_OUTPUT_FILE): The creation of the sed script ...
8957 (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
8958 (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
8959 _AC_OUTPUT_MAIN_LOOP.
8960 (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
8961 _AC_CONFIG_COMMANDS): Use ...
8962 (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
8963 (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
8964 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
8965 _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
8966 (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
8967 (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
8969 (_AC_CONFIG_UNIQUE): Update.
8970 (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
8971 Replaced by this ...
8972 (_AC_LIST_TAGS): ... new common macro.
8973 (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
8974 AC_LIST_COMMAND_COMMANDS): Replaced by this ...
8975 (_AC_LIST_TAG_COMMANDS): ... new common macro.
8976 (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
8977 this didn't belong to the `config commands' section.
8978 (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
8979 (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
8980 AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
8981 to the `config commands' section either.
8982 (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
8983 (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
8985 ... and many changes to the comments nearby.
8987 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
8988 set ac_subdirs_all='_AC_LIST_SUBDIRS'.
8989 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
8990 AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
8991 (#define header templates): The comment at the top of the generated
8992 header now includes the name(s) of the source file(s).
8994 Several unrelated small changes:
8996 * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
8997 parameter to AC_DIAGNOSE.
8998 * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
8999 (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
9000 with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
9001 (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
9003 (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
9004 in AC_OUTPUT doesn't double-quote it either.
9005 * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
9008 2005-07-10 Stepan Kasal <kasal@ucw.cz>
9010 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
9011 versions of Portland Group compiler produce single- and double-quoted
9012 -cmdline argument. Reported by Steven G. Johnson <stevenj@fftw.org>
9013 and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
9015 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
9017 * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
9018 This is a corrected version of yesterday's patch.
9020 2005-07-07 Stepan Kasal <kasal@ucw.cz>
9022 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
9023 path, too; insert a "===" to emphasize the line.
9025 * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
9026 ac_cv_build_alias to ac_build_alias.
9027 (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
9029 On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
9030 change eliminates it. Problem reported by Alexandre Duret-Lutz.
9031 * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
9032 (AC_ARG_VAR): ... here.
9033 (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
9036 Keep a list of all precious variables and process them with one simple
9037 for loop, instead of expanding all commands, or, OTOH, complicated
9038 processing of output of "set".
9039 * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
9040 variable names in new macro...
9041 (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
9042 (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
9043 a loop to assign all ac_env_* and ac_cv_env_* variables.
9044 (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
9046 (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
9047 its value to shell variable ac_precious_vars and call
9048 _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
9049 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
9050 _AC_ARG_VAR_VALIDATE.
9052 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
9053 and the AC_SUBSTs ...
9054 (AC_INIT): ... here.
9056 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
9057 the ac_subst_files section in config.log.
9059 * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
9061 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
9063 * NEWS: New macro AC_C_TYPEOF.
9064 * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
9065 * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
9066 * tests/c.at (C keywords): Test AC_C_TYPEOF.
9068 Fix problems reported by Nicolas Joly.
9069 * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
9070 * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
9071 They are generated by the Tru64 v5.1B shell.
9073 2005-07-05 Stepan Kasal <kasal@ucw.cz>
9075 Fix my changes from 2005-07-01; reported by Noah Misch.
9076 * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
9077 description, the macro now accepts only a single tag.
9078 (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
9080 Fix cases when the varsions of Autoconf and Autotest don't match.
9081 Reported by Noah Misch.
9082 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
9083 at_top_builddir, for compatibility with older autotest.
9084 * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
9085 is not set, use at_top_builddir, for compatibility with older
9086 versions of autoconf.
9088 2005-07-04 Paul Eggert <eggert@cs.ucla.edu>
9090 * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
9091 Problem reported by Patrick Welche.
9093 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
9095 * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
9096 sed substitution command, so that we allow | in program prefixes
9097 and program suffixes. (& is a problem anyway; we're not fixing
9099 * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
9100 configure_input, top_builddir, srcdir, etc.
9101 * lib/autotest/general.m4 (AT_INIT): Likewise, for
9102 PATH_SEPARATOR in AUTOTEST_PATH.
9104 2005-07-02 Alexandre Duret-Lutz <adl@gnu.org>
9106 * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
9107 for loop over config.site files using `set', to allow
9108 directory names containing IFS characters.
9110 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
9112 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
9113 directories with weird names. Apparently some people like living
9114 on the edge. However, improve the test that "pwd" actually does
9115 report a name for the working directory.
9116 * NEWS: Remove the claim that we test for funny chars in dir names.
9118 2005-07-01 Stepan Kasal <kasal@ucw.cz>
9120 * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
9122 * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
9123 * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
9124 Now accept a single tag, not whitespace separated list.
9125 (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
9127 2005-06-30 Stepan Kasal <kasal@ucw.cz>
9129 * doc/autoconf.texi (Configuration Headers): Change the explanation
9130 about #include <config.h>.
9131 (Generic Functions): Mention the Gnulib project.
9132 (Limitations of Usual Tools) <sed>: Another minor rephrasing.
9134 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
9135 document to output the default config_* lists to config.status.
9136 Don't recognize option --file, if the functionality is not there.
9137 Likewise for --header; moreover, recognize --he and --h as shortcuts
9138 for --help in that case.
9140 * lib/autoconf/status.m4: Fix the order of the "sections", so that it
9141 matches the order of execution. No code changed.
9143 2005-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9145 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
9146 single-quoted -cmdline argument in Portland Group compiler.
9147 Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
9149 2005-06-30 Alexandre Duret-Lutz <adl@gnu.org>
9151 * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
9153 2005-06-29 Stepan Kasal <kasal@ucw.cz>
9155 * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
9156 descriptors to child processes; reported by Norman Gray.
9158 2005-06-29 Stepan Kasal <kasal@ucw.cz>
9160 * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
9162 * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
9163 instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
9164 (AC_SUBST): Call it.
9165 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
9166 the directory specific variables; but don't call it for configure_input.
9168 2005-06-28 Derek Price <derek@ximbiot.com>
9170 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
9173 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
9175 * NEWS: Don't worry about spaces in bindir etc. Only srcdir and working
9176 directory have inherent problems with special characters like spaces,
9177 due to limitations in Make syntax. Problem reported by Alexandre
9179 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
9180 Also, fix Tru64 porting problem with shell patterns,
9181 reported by Ralf Wildenhues.
9183 2005-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9185 * doc/autoconf.texi (Subdirectories): Fix markup typos.
9187 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
9189 * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
9191 Fix some more shell quoting problems. Prompted by a bug report
9192 from Justace Clutter.
9193 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
9194 variable into diagnostic. Make the diagnostic an error, not a warning,
9195 because we really don't support spaces and suchlike in dir names.
9196 (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
9197 Don't worry about backslashes in srcdir; it can't happen now.
9198 (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
9199 Simplify ac_optarg handling.
9200 (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
9202 2005-06-22 Stepan Kasal <kasal@ucw.cz>
9204 Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
9205 * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
9206 * tests/atlocal.in: Propagate $EGREP and $SED.
9207 * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
9208 (AT_CONFIG_CMP): Use sed instead of grep plumbing.
9210 * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
9211 that '\|' is not allowed in BREs; recommend using newline separated
9212 list of patterns instead of multiple -e options.
9214 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
9216 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
9218 2005-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9220 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
9222 2005-06-21 Stepan Kasal <kasal@ucw.cz>
9224 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
9225 b, t, r, w commands require single space, while : cannot have any.
9226 (Special Shell Variables): Fix sed code this in the example.
9227 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
9228 * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
9230 * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
9231 expand to the empty list. Don't use two pairs of m4_changequote,
9234 2005-06-20 Derek Price <derek@ximbiot.com>
9236 * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
9238 2005-06-17 Paul Eggert <eggert@cs.ucla.edu>
9240 * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
9241 * doc/autoconf.texi:
9242 Don't mention Solaris versions so much, if a
9243 problem is common to all extant versions of Solaris. Say "SunOS
9244 4" instead of "SunOS" for SunOS 4.
9245 (awk): Mention more of the limitations of traditional Awk.
9246 (cat): Don't talk about cat -v.
9248 2005-06-16 Paul Eggert <eggert@cs.ucla.edu>
9250 * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
9251 (AS_VERSION_COMPARE): New macro. The API is taken from CVS,
9252 but the implementation is entirely different and is designed
9253 to be compatible with glibc strverscmp.
9254 * tests/m4sh.at (AS_VERSION_COMPARE): New test.
9256 * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
9257 on Mac OS X 10.4 reported by Peter O'Gorman in:
9258 http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
9259 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
9260 Use shell builtins rather than 'expr', to work around expr bug.
9262 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
9264 * doc/autoconf.texi: "filesystem" -> "file system".
9265 "behaviour" -> "behavior".
9266 Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
9267 * lib/autoconf/general.m4: Omit blank after ":" sed command,
9269 * lib/m4sugar/m4sh.m4: Likewise.
9270 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
9271 with Solaris sed. Fix by Ralf Menzel and Stepan Kasal.
9273 * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
9274 (.x.1): Ignore the time stamp in the .TH line when deciding whether
9275 to update the man page. That way, we don't have to check in new
9276 man pages every month.
9278 * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
9279 quotes and backslashes. Patch from Derek Price.
9281 2005-06-10 Derek Price <derek@ximbiot.com>
9283 * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
9286 2005-06-08 Paul Eggert <eggert@cs.ucla.edu>
9288 * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
9289 -u, since it outputs chatter if the input files are the same.
9290 Problem reported by Ralf Menzel.
9292 2005-06-08 Derek Price <derek@ximbiot.com>
9294 * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
9295 renaming them since they are about to be redefined anyhow.
9297 2005-06-08 Derek Price <derek@ximbiot.com>
9299 * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
9300 redefined M4 macros to this node. Document m4_include & m4_sinclude.
9301 Move m4_undefine to alphabetical order.
9303 2005-06-07 Paul Eggert <eggert@cs.ucla.edu>
9305 * README: Recommend GNU M4 1.4.3 or later.
9306 * doc/autoconf.texi (Introduction): Likewise.
9307 Reword to avoid some formatting glitches.
9308 Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
9309 Clarify explanation of HP compiler bug.
9310 Redo example output tp match current CVS snapshot.
9311 Use @example.org in email addresses when the examples
9312 might get inadvertently cut-and-pasted into user code.
9313 Remove example of autom4te usage that doesn't seem to work now.
9314 Use modern AC_INIT (except when the example is meant to be
9315 shown with Autoconf 2.13).
9316 Update ksh info for Solaris 9 and later.
9318 Modernize description of Automake versions a bit.
9319 Don't claim a future version of Autoconf is near.
9320 * doc/install.texi: Reword to avoid some formatting glitches.
9322 2005-06-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9324 * doc/autoconf.texi: Add [] to examples, so that the manual
9325 follows its own advice about quoting better.
9326 Reword to avoid some formatting glitches.
9327 * doc/installt.exi: Reword to avoid some formatting glitches.
9329 * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
9330 Tru64 ksh pattern matching bug. Reported against Libtool by
9331 Albert Chin <libtool@mlists.thewrittenword.com> and
9332 Nicolas Joly <njoly@pasteur.fr>.
9334 2005-06-06 Stepan Kasal <kasal@ucw.cz>
9336 m4_cdr of one-member list was [[]] (one-member list containing an
9337 empty string) instead of [] (an empty list. Callers were skewed to
9338 match this misbehaviour. As a consequence of this:
9339 - m4_foreach([x], [], [foo]) expanded to `foo', while
9340 - the expansion of m4_foreach([x], [[]], [foo]) was empty.
9341 This bug has been fixed:
9343 * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
9344 expand to an empty string; print error msg if called without
9346 (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
9347 misbehaviour; handle [] and [[]] correctly.
9349 2005-06-06 Stepan Kasal <kasal@ucw.cz>
9351 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
9352 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
9353 scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
9355 2005-06-06 Ralf Menzel <menzel@ls6.cs.uni-dortmund.de> (trivial change)
9357 * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
9358 swallow records with more than 99 fields.
9359 * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
9360 parse the long line.
9362 2005-06-04 Stepan Kasal <kasal@ucw.cz>
9364 * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
9365 swallow literals longer than 399. Reported by Ralf Wildenhues.
9366 * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
9367 to workaround this limitation.
9369 2005-06-03 Steven G. Johnson <stevenj@alum.mit.edu>
9371 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
9372 to gfortran, and make these the first two compiler names
9373 checked (following the general autoconf preference for gcc).
9375 2005-06-03 Stepan Kasal <kasal@ucw.cz>
9377 * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
9378 (DISTCLEANFILES): Remove $(check_SCRIPTS).
9379 (testsuite): Make sure autotest.m4f is up-to-date before using it.
9381 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
9383 * lib/autotest/general.m4 (AT_INIT): Don't create a regular
9384 expression of unbounded size when processing the --list
9385 option. This runs afoul of a limit of 399 bytes per regular
9386 expression on AIX. Problem reported by Ralf Wildenhues.
9388 2005-06-01 Paul Eggert <eggert@cs.ucla.edu>
9390 * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
9391 * doc/autoconf.texi (Particular Headers): Reword example
9392 for multiline stdbool replacement.
9393 (Setting Output Variables): Reword text a bit. Don't
9394 give all the details about |#_!!_#|.
9395 Reword description of line replacement.
9397 2005-05-31 Dan Manthey <dan_manthey@partech.com>
9399 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
9400 now contain newlines, and substituted files must be referenced on
9401 a line alone; the sed scripts to substitute them are now very
9403 (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
9404 commands can be put in a sed script portably.
9405 * doc/autoconf.texi (Setting Output Variables): Document above
9406 changes. (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
9407 use of multiline substitution.
9408 * tests/torture.at: No longer expect substitution of newline to fail.
9410 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
9412 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
9413 From Ralf Menzel (trivial change).
9415 2005-05-25 Paul Eggert <eggert@cs.ucla.edu>
9417 * tests/local.at: Don't attempt to check for negated character
9418 classes in shell scripts. The test was too brittle.
9420 2005-05-25 Stepan Kasal <kasal@ucw.cz>
9422 * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
9423 * doc/autoconf.texi (Limitations of Builtins): Document this
9426 2005-05-24 Stepan Kasal <kasal@ucw.cz>
9428 * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
9429 common code; used in many places in the tree.
9430 (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
9431 (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
9433 * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
9435 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
9436 messages when ac_unique_file is not found.
9437 (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
9438 (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
9439 commands, for consistency with AC_MSG_ERROR and such.
9441 * bin/autoconf.as: Make more use of "shift 2" in option processing.
9443 * bin/Makefile.am: Merge the two rules for creating scripts.
9445 2005-05-23 Stepan Kasal <kasal@ucw.cz>
9447 * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
9448 obsolete; it was never documented.
9449 (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
9451 2005-05-20 Stepan Kasal <kasal@ucw.cz>
9453 * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
9454 * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
9455 (ac_top_builddir): ... this ...
9456 (ac_top_build_prefix): ... to this; the old name is also kept, for
9457 backward compatibility.
9458 (ac_top_builddir_sub): New variable, without the trailing slash,
9460 (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
9461 * doc/autoconf.texi (Configuration Actions): Rename
9462 ac_top_builddir to ac_top_build_prefix.
9463 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
9464 at_top_builddir to at_top_build_prefix.
9465 * lib/autotest/general.m4 (AT_INIT): Likewise.
9467 2005-05-20 Stepan Kasal <kasal@ucw.cz>
9469 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
9472 2005-05-17 Stepan Kasal <kasal@ucw.cz>
9474 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
9475 argument to m4_foreach. I guess it was necessary in the past,
9476 but I think it's a no-op now.
9478 2005-05-17 Stepan Kasal <kasal@ucw.cz>
9480 * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
9481 ``cat <<_ACEOF'' commands to one.
9482 (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
9483 * lib/autoconf/status.m4: On various places, use expr instead of
9485 (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
9486 (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
9487 * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
9489 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
9490 the wrong patterns between ``case'' and ``esac.'' The previous
9491 code had false positives.
9493 2005-05-14 Alexandre Duret-Lutz <adl@gnu.org>
9495 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
9497 * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
9500 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
9502 * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
9503 ChangeLog.2, GNUmakefile, Makefile.am, Makefile.cfg,
9504 Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
9505 bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
9506 bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
9507 bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
9508 config/config.guess, config/config.sub, config/elisp-comp,
9509 config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
9510 doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
9511 lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
9512 lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
9513 lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
9514 lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
9515 lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
9516 lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
9517 lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
9518 lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
9519 lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
9520 lib/autoconf/general.m4, lib/autoconf/headers.m4,
9521 lib/autoconf/lang.m4, lib/autoconf/libs.m4,
9522 lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
9523 lib/autoconf/specific.m4, lib/autoconf/status.m4,
9524 lib/autoconf/types.m4, lib/autoscan/Makefile.am,
9525 lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
9526 lib/autotest/Makefile.am, lib/autotest/autotest.m4,
9527 lib/autotest/general.m4, lib/emacs/Makefile.am,
9528 lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
9529 lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
9530 lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
9531 tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
9532 tests/compile.at, tests/foreign.at, tests/fortran.at,
9533 tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
9534 tests/semantics.at, tests/suite.at, tests/tools.at,
9535 tests/torture.at, tests/wrapper.as:
9536 Update FSF postal mail address.
9538 2005-05-13 Stepan Kasal <kasal@ucw.cz>
9540 * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
9542 * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
9543 enough arguments, similarly as in m4_bpatsubsts.
9545 2005-05-12 Stepan Kasal <kasal@ucw.cz>
9547 * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
9550 2005-05-11 Stepan Kasal <kasal@ucw.cz>
9552 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
9553 for absolute directory names in one loop.
9554 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
9555 abbreviations of --version and --debug.
9557 2005-05-10 Paul Eggert <eggert@cs.ucla.edu>
9559 * doc/autoconf.texi (Autoconf Language): Be more precise about
9560 quoting rules. Problems noted by Stepan Kasal.
9561 Also, throughout this document, be more careful about white space.
9562 "blank", "white space", and "space" all have different meanings
9563 and we should be careful to say what we mean.
9565 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
9567 Fix C++ related problems reported by Werner Lemberg.
9568 * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
9569 * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
9570 * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
9571 avoid problems with C++ and throw.
9572 * tests/compile.at: .cpp, not .cc.
9574 * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
9576 2005-05-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9578 * doc/autoconf.texi (Generic Functions): Typos.
9580 2005-05-02 Gary V. Vaughan <gary@gnu.org>
9582 * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
9583 object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
9584 set by latest automake.
9586 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
9588 * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
9589 outputs 0 on GNU/Linux these days.
9591 2005-04-29 Paul Eggert <eggert@cs.ucla.edu>
9593 * doc/autoconf.texi (Autoconf Language): Add more description
9594 about quoting heuristics.
9595 (Limitations of Builtins): Describe "set -" problems.
9597 2005-04-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9599 * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
9602 * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
9603 by AC_DEFINE; it was a mistake.
9604 From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
9606 2005-04-25 Stepan Kasal <kasal@ucw.cz>
9608 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
9610 2005-04-22 Stepan Kasal <kasal@ucw.cz>
9612 * doc/autoconf.texi (External Software): Quadrigraphs are not
9613 processed correctly in AS_HELP_STRING; avoid this in the examples.
9614 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
9615 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
9616 comment and reduce m4_default([foo], []) to [foo].
9617 (m4_strip): Update the explanation.
9619 2005-04-19 Paul Eggert <eggert@cs.ucla.edu>
9621 * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
9622 Remove core.conftest.* too; it's generated by Tru64 5.1.
9623 Problem reported by Jennis Pruett.
9624 * lib/autoconf/functions.m4
9625 (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
9626 Don't bother to remove core files; AC_RUN_IFELSE should do that
9629 2005-04-19 Stepan Kasal <kasal@ucw.cz>
9631 * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
9633 2005-04-19 Alexandre Duret-Lutz <adl@gnu.org>
9635 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
9636 Report from Horst Wente.
9638 2005-04-15 Stepan Kasal <kasal@ucw.cz>
9640 * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
9643 2005-04-14 Gregorio Guidi <greg_g@gentoo.org>
9645 * doc/autoconf.texi (External Software, Package Options): Add
9646 examples showing how to implement --with-* and --enable-* options.
9648 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
9650 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
9651 as well as configure.in. Problem reported by Gregorio Guidi.
9653 2005-04-10 Paul Eggert <eggert@cs.ucla.edu>
9655 * doc/autoconf.texi (Particular Functions): Use gnulib's current
9656 pattern for alloca snippet.
9658 2005-04-04 Stepan Kasal <kasal@ucw.cz>
9660 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
9662 2005-04-01 Stepan Kasal <kasal@ucw.cz>
9664 * doc/autoconf.texi (Generic Programs): Fix a typo.
9666 2005-04-01 Paul Eggert <eggert@cs.ucla.edu>
9668 * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
9669 fails if %s isn't supported. Problem reported by Ralf Wildenhues.
9671 2005-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9673 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
9674 Merge `-z option' as well for the benefit of Solaris link flags. Pass
9675 whole-archive (-zallextract, -zdefaultextract) options in the hope of
9676 unique libraries, for the Sun Fortran 95 8.0 compiler. Bug reported
9677 against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
9679 2005-03-22 Paul Eggert <eggert@cs.ucla.edu>
9681 * NEWS: The configure command now warns you if you attempt to use
9682 a directory whose name contains a special character like space,
9684 * doc/autoconf.texi (Installation Directory Variables): Allow
9685 "," in file names. Do not use \@; it's not a portable regexp.
9686 * bin/Makefile.am (edit): Likewise.
9687 * lib/Makefile.am (edit): Likewise.
9688 * tests/Makefile.am (edit): Likewise.
9689 * tests/semantics.at: Likewise.
9690 * tests/torture.at: Likewise.
9691 * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
9692 * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
9693 * doc/autoconf.texi (File System Conventions): Warn about
9694 unportable file names.
9695 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
9697 (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
9698 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
9699 ac_pwd, and quote srcdir.
9700 * lib/autotest/general.m4 (AT_INIT): Quote file name args.
9702 * doc/autoconf.texi: Fix some systematic formatting problems.
9703 ".)" needs a following @: if not at the end of a sentence, and
9704 similarly for "!)". "etc." should be preceded by a comma.
9705 "n-th" -> "@var{n}th". pdksh is still buggy, so update its date.
9707 2005-03-22 Bruno Haible <bruno@clisp.org>
9709 * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
9710 argument is often called 'build-aux'.
9712 2005-03-07 Stepan Kasal <kasal@ucw.cz>
9714 * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
9715 macro AC_TRY_LINK is obsolete.
9716 (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
9719 2005-02-24 Stepan Kasal <kasal@ucw.cz>
9721 * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
9722 `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
9723 from a Common Lisp's `cl'.
9724 (AC_PROG_CXX): Behave according to the documentation: don't
9725 search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
9726 make the variable CCC precious; use `cl.exe', not `cl'.
9728 2005-02-23 Paul Eggert <eggert@cs.ucla.edu>
9729 Alexandre Duret-Lutz <adl@gnu.org>
9731 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
9732 /dev/null, as "configure" shouldn't read stdin, and this insulates
9733 us from problems (e.g., when testing for "cl"). Also, do this
9734 redirection before invoking "hostname" or "uname", and keep the
9735 original input stream available via...
9736 (AS_ORIGINAL_STDIN_FD): ... this new macro.
9737 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
9738 bother with "</dev/null" since it's now done at the top of
9740 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
9741 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
9742 * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
9743 * doc/autoconf.texi (File Descriptor Macros): New section.
9744 (Printing Messages): Mention it.
9745 * tests/base.at (Input/Output): New test.
9747 2005-02-23 Paul Eggert <eggert@cs.ucla.edu>
9749 * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
9750 newline if neither \c nor -n work, as that would output two
9751 newlines. Prefer -n to \c. Reported by Stepan Kasal.
9753 2005-02-12 Stepan Kasal <kasal@ucw.cz>
9755 * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
9756 This causes that any required macros inside will get before the if.
9757 * doc/autoconf.texi (autom4te.cache): A typo.
9759 2005-02-12 Paul Eggert <eggert@cs.ucla.edu>
9761 Undo previous change, except keep the change to
9762 lib/autoconf/programs.m4 that replaced grep with shell
9763 pattern-matching. This is because net-snmp configure reads stdin.
9764 Reported by Noah Misch.
9766 2005-02-11 Paul Eggert <eggert@cs.ucla.edu>
9768 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
9769 from /dev/null, as "configure" shouldn't read stdin, and this
9770 insulates us from problems (e.g., when testing for "cl").
9771 Suggested by Alexandre Duret-Lutz. Also, do this redirection
9772 before invoking "hostname" or "uname".
9773 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
9774 _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
9775 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
9776 "</dev/null" since it's now done at the top of 'configure'.
9777 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
9778 * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
9779 Also, replace grep with shell pattern-matching, to save a process.
9781 2005-02-10 Paul Eggert <eggert@cs.ucla.edu>
9783 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
9784 _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
9785 avoid thinking that Allegro Common Lisp's "cl" command is a C++
9788 2005-02-09 Paul Eggert <eggert@cs.ucla.edu>
9790 * doc/autoconf.texi (Limitations of Usual Tools): Document that
9791 grep -q isn't portable. Improve grep -s explanation.
9792 Problem reported by Dan Manthey.
9794 2005-02-08 Paul Eggert <eggert@cs.ucla.edu>
9796 * doc/autoconf.texi (Special Shell Variables): Clarify
9797 PATH_SEPARATOR wording; fix typo in IFS. Reported by Gary V. Vaughan.
9799 2005-02-07 Paul Eggert <eggert@cs.ucla.edu>
9801 * doc/autoconf.texi: Use @acronym for DJGPP.
9802 Fix some @code's that should have been @env's, and vice versa.
9803 Sort environment variable names.
9804 Mention that shells no longer inherit IFS.
9805 Don't recommend PATH_SEPARATOR=';' so strongly.
9806 Mention that $RANDOM might expand to the empty string.
9807 "symlink" and "soft link" -> "symbolic link".
9808 Improve mktemp description (reported by Bruno Haible).
9810 2005-02-05 Paul Eggert <eggert@cs.ucla.edu>
9812 * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
9813 * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
9815 * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
9818 2005-02-04 Paul Eggert <eggert@cs.ucla.edu>
9820 * NEWS: Mention AT_COPYRIGHT.
9822 * tests/local.at (AT_CMP): Use diff directly on input files rather
9825 * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
9826 /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
9828 2005-02-04 Noah Misch <noah@cs.caltech.edu>
9829 and Paul Eggert <eggert@cs.ucla.edu>
9831 * tests/autotest.at (Empty test suite): New test.
9832 * tests/torture.at (Substitute and define special characters)
9833 (Substitute a 2000-byte string, Define to a 2000-byte string)
9834 (Substitute a newline, Define a newline): New tests.
9836 2005-02-04 Noah Misch <noah@cs.caltech.edu>
9838 * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
9839 * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
9840 (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
9841 * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
9842 (Standard regular expressions): New test.
9843 (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
9844 excess test name quoting.
9845 * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
9846 CPPFLAGS to `configure' instead of setting it in `configure'.
9848 * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
9849 any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
9852 * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
9853 s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
9855 * tests/local.at (AT_CMP): New macro.
9856 (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
9857 (AC_SAVE_STATE): Move environment grep...
9858 (AT_CHECK_ENV): to here. Filter out `'$''. Use AT_CMP.
9859 (AT_CONFIG_CMP): New macro.
9860 (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
9861 * tests/c.at (Extensions): Do not exit early.
9862 * tests/atlocal.in: Inherit $GREP.
9864 * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
9865 (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
9867 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
9868 (AC_COPYRIGHT): Factor header comment portion out and move into...
9869 * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
9870 * lib/autotest/general.at (AT_COPYRIGHT): New macro.
9871 (AT_INIT): Add Autotest copyright notice. Display copyright notices in
9873 * tests/local.at: Add Autoconf test suite copyright notice.
9874 * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
9876 2005-02-04 Bruno Haible <bruno@clisp.org>
9877 and Paul Eggert <eggert@cs.ucla.edu>
9879 * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
9881 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
9883 * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
9884 this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
9886 Try not to generated lines of unlimited length, as POSIX places a
9887 2047-byte limit on line length of portable text files.
9888 * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
9889 Use newline as a separator, not space.
9890 * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
9891 (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
9894 2005-02-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9896 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
9897 as_func_*. Add test to check whether positional parameters
9898 are restored after function return.
9900 2005-02-02 Paul Eggert <eggert@cs.ucla.edu>
9902 * doc/autoconf.texi (Special Shell Variables): Mention _,
9903 BIN_SH, DUALCASE. Say that variables other than "status" are safe
9904 if they contain a lower-case letter. The DUALCASE problem was
9905 reported by Ralf Wildenhues.
9907 * bin/autoconf.as: Don't exit with status 0 after write failure
9908 with --help or --version.
9909 * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
9910 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
9912 2005-02-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9914 * doc/autoconf.texi (Limitations of Usual Tools):
9915 Unicos 9 sed limitations.
9916 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
9917 to get the option-enhanced interface on older Crays. Try ftn for
9918 Fortran 95 (newer Crays).
9920 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
9922 * man/Makefile.am (.x.1): Go back to the simple solution, but take
9923 care to echo the commands, so the user knows what's going on.
9924 Modified from a suggestion by Stepan Kasal.
9926 * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
9927 with a cross reference. Derived from a suggestion by Bruce Korb.
9929 2005-01-31 Paul Eggert <eggert@cs.ucla.edu>
9931 * doc/autoconf.texi (config.status Invocation): Warn about
9932 discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
9933 * doc/install.texi (Defining Variables): Likewise.
9934 Based on a proposed patch by Ralf Wildenhues.
9936 * man/Makefile.am (.x.1): Make sure the required generated files
9937 are up to date. Problem and original solution proposed by Stepan Kasal.
9938 $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
9939 implicit-man-prerequisites): New rules, used by the above.
9941 * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
9942 * config/config.guess, config/config.sub, config/install-sh: Likewise.
9943 * config/missing, config/texinfo.tex: Likewise.
9945 2005-01-29 Stepan Kasal <kasal@ucw.cz>
9947 Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
9948 Update the long comment explaining it.
9950 m4_require no longer writes an ``is required by'' line to the
9951 execution stack. It contains only one bit of non-redundant
9952 information: that the macro was required, not called. And even
9953 this bit is useless in most situations: have you ever met a macro
9954 which both calls and requires the same macro?
9956 * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
9957 (_m4_defun_pro_outer): ... only via this macro, for the outermost
9959 (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
9960 (m4_expansion_stack_pop): Remove the misplaced comment.
9961 (m4_require): Don't put the ``is required by'' line to the
9962 execution stack; slightly improve the out-of-a-defun error message.
9963 (_m4_divert_grow): New macro, counter for the temporary diversions.
9964 (_m4_require_call): Use it.
9965 * tests/m4sugar.at (m4_require): Expect output without the
9966 ``is required by'' messages.
9968 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
9970 * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
9971 rather than x for expr.
9973 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
9975 * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
9976 * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
9977 * lib/autotest/general.m4 (AT_INIT): Likewise.
9978 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
9979 * tests/mktests.sh: Likewise.
9981 2005-01-27 Akim Demaille <akim@epita.fr>
9983 Have autoheader honor --force.
9985 * doc/make-stds.texi, doc/standards.texi: Update from masters.
9986 * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
9987 * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
9988 from masters, so that FileUtils.pm's update_file provide --force
9990 * bin/autoheader.in: Pass $force to update_file so that
9991 config.h.in is always recreated when --force.
9993 2005-01-24 Stepan Kasal <kasal@ucw.cz>
9995 * doc/autoconf.texi (Introduction): Update Peter Simons' address.
9997 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
9999 * doc/autoconf.texi (Limitations of Builtins): Clarify that
10000 "if test ! -d foo; ..." is portable. Suggested by Stepan Kasal.
10002 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
10004 * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
10005 Warn about newline stripping in `` and $(). Update Solaris
10007 (Limitations of Builtins): Use expr "X...", not expr "x...", as
10008 X insulates us from future changes to Posix.
10009 (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
10012 2005-01-19 Stepan Kasal <kasal@ucw.cz>
10014 * doc/autoconf.texi (Defining Symbols): Delete the false comment that
10015 you cannot use AC_DEFINE to define macros containing `[' or `]'.
10017 2005-01-13 Paul Eggert <eggert@cs.ucla.edu>
10019 * doc/autoconf.texi (Limitations of Usual Tools): Document bug
10020 in Solaris 8 join. Problem reported by Tomohiro Suzuki on
10021 bug-tar mailing list.
10023 2005-01-05 Stepan Kasal <kasal@ucw.cz>
10025 * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
10027 2005-01-05 Paul Eggert <eggert@cs.ucla.edu>
10029 * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
10030 ulongval to be static, to avoid unwanted GCC warning. Problem
10031 reported by Michael Jennings via Daniel Reed; see
10032 <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
10034 2005-01-05 Alexandre Duret-Lutz <adl@gnu.org>
10036 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
10037 docdir, htmldir, dvidir, pdfdir, psdir, and localdir. Update
10038 datadir, infodir, and mandir. Adjust argument parsing code.
10039 (_AC_INIT_HELP): Update help text.
10040 * doc/autoconf.texi (Installation Directory Variables): Document
10043 2005-01-04 Noah Misch <noah@cs.caltech.edu>
10045 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
10046 not seem to work, assume it does set $(MAKE).
10047 * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
10049 2005-01-03 Stepan Kasal <kasal@ucw.cz>
10051 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
10053 2005-01-03 Stepan Kasal <kasal@ucw.cz>
10055 A cleanup of the diversion support in m4sugar.
10057 * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
10058 (_m4_divert_n_stack): New macro; the expansion is
10059 <newline>m4_divert_stack, if m4_divert_stack is defined, and void
10061 (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
10062 (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
10063 stored in _m4_divert_diversion or _m4_divert_dump.
10064 (m4_divert_pop): When the parameter is given, compare the symbolic
10065 name with the last diversion pushed on the stack. Previously, the
10066 current diversion was compared with the numeric value of the
10067 diversion given as the parameter.
10068 (m4_require): If the macro hasn't been expanded yet, call ...
10069 (_m4_require_call): this new macro.
10071 2005-01-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10073 * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
10074 Workarounds for documented `case' limitations.
10076 2005-01-03 Paul Eggert <eggert@cs.ucla.edu>
10078 * doc/autoconf.texi (Limitations of Usual Tools): Warn about
10079 sed 'command1;command2'. Problem reported by Ralf Wildenhues.
10081 2005-01-02 Paul Eggert <eggert@cs.ucla.edu>
10083 * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
10084 bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
10085 bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
10087 Patch from Roger Leigh (with some minor changes) as follows:
10088 * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
10089 Resurrect AC_PROG_CC_STDC.
10090 * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
10091 AC_PROG_CC_C89, AC_PROG_CC_C99.
10092 (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
10093 * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
10094 AC_PROG_CC_C99): New macros.
10095 (AC_PROG_CC_STDC): Use them.
10096 (_AC_PROG_CC_STDC): Remove.
10097 (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
10098 * THANKS: Add Roger Leigh.
10100 2004-12-30 Noah Misch <noah@cs.caltech.edu>
10102 * bin/autoreconf.in (autoreconf_current_directory): AM_INIT_AUTOMAKE
10103 signals that the package uses Automake; a `Makefile.am' is typical but
10104 not essential. Reported by Magnus Therning.
10105 * tests/torture.at (autoreconf.): New banner.
10106 (autoreconf and non-AC configure): Rename to `Non-Autoconf
10107 AC_CONFIG_SUBDIRS'.
10108 (autoreconf an empty directory): Rename to `Empty directory'.
10109 (Unusual Automake input files): New test.
10111 2004-12-30 Noah Misch <noah@cs.caltech.edu>
10113 * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
10114 (AT_SETUP): Clear AT_capture_files.
10115 (_AT_CHECK): On failure, log each of AT_capture_files. Fix comment.
10116 (AT_KEYWORDS): Fix comment typo.
10117 * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
10118 * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
10119 * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
10121 2004-12-29 Albert Chin-A-Young <china@thewrittenword.com>
10123 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
10124 If the variable to set is already set, set ac_cv_path_$1
10125 to the preset value so caller can assume ac_cv_path_$1
10126 is available. (trivial change)
10128 2004-12-27 Noah Misch <noah@cs.caltech.edu>
10130 * BUGS (Minor Problems): Warn about makefile limitations.
10131 * Makefile.am: Find and update `INSTALL' in $(srcdir).
10132 * man/Makefile.am: Find and update manual pages in $(srcdir).
10134 2004-12-24 Eric Blake <ebb9@byu.net>
10136 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
10137 shells in subshell, to avoid noise from ash. (trivial change)
10139 2004-12-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10141 * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
10142 problems with SunOS ksh and backslash escaping, Bourne shells and
10143 closing brackets (both within character classes). Bug reported
10144 against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
10145 <read>: New entry. Mention non-availability of -r.
10147 2004-12-21 Akim Demaille <akim@epita.fr>
10149 * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
10150 avoid cluttering displayed messages. Rather, prepend srcdir where
10151 AT_LINE is used for log files.
10153 2004-12-21 Stepan Kasal <kasal@ucw.cz>
10155 * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
10156 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
10157 no longer part of the macro, quote the occurrence of ``$tmp''.
10158 * doc/autoconf.texi (Forbidden Patterns): Typo.
10160 2004-12-21 Akim Demaille <akim@epita.fr>
10162 * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
10163 separated from the test title by forcing a white space.
10165 2004-12-21 Akim Demaille <akim@epita.fr>
10167 Enable Emacs navigation within testsuite.log files.
10169 * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
10170 use the compilation mode.
10171 (AT_LINE): Point to the srcdir.
10173 2004-12-19 Noah Misch <noah@cs.caltech.edu>
10175 * tests/Makefile.am (installcheck-local): Use $(bindir).
10176 (check-local, installcheck-local): Pass TESTSUITEFLAGS.
10177 * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
10178 Makefile.am scheme Autoconf now uses.
10180 2004-12-18 Noah Misch <noah@cs.caltech.edu>
10182 * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
10183 * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
10185 2004-12-18 Noah Misch <noah@cs.caltech.edu>
10187 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
10188 (_AT_CHECK): Use it.
10189 * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
10190 (AS_ESCAPE): Fix comment.
10191 * tests/autotest.at: Adjust section banner comments.
10192 (AT_CHECK_AT): Accept STATUS and STDERR.
10193 (AT_CHECK_AT_TEST): Likewise.
10194 (Invalid brace-enclosed parameter expansion)
10195 (Multiline command from M4 expansion)
10196 (Double-M4-quoted command): New tests.
10198 2004-12-17 Paul Eggert <eggert@cs.ucla.edu>
10200 * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
10202 2004-12-17 Akim Demaille <akim@epita.fr>
10204 * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
10206 Suggested by Alexandre Duret-Lutz.
10207 * doc/autoconf.texi (Setting Output Variables): Catch up.
10209 2004-12-17 Stepan Kasal <kasal@ucw.cz>
10211 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
10213 2004-12-17 Stepan Kasal <kasal@ucw.cz>
10215 * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
10216 remove the comment which said we cannot.
10218 2004-12-17 Stepan Kasal <kasal@ucw.cz>
10220 Add a specialized check for resolv.h. Thanks to Gerrit P. Haase,
10221 Reini Urban and Paul Eggert for reporting the dependencies.
10223 * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
10224 * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
10225 (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
10227 2004-12-17 Stepan Kasal <kasal@ucw.cz>
10229 * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
10230 so that eg. ``autoscan --help'' doesn't truncate it.
10232 2004-12-15 Nicolas Joly <njoly@pasteur.fr>
10234 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
10235 generated conftest files.
10237 2004-12-13 Noah Misch <noah@cs.caltech.edu>
10239 * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
10240 tracing on commands with possibly-escaped newlines.
10241 * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
10242 discontinued behavior and its implications.
10243 * tests/autotest.at (BS-newline in command, ^BS-newline in command)
10244 (BSx641-newline in command, BS-BS-newline in command)
10245 (BSx640-newline in command, Newline-CODE-BS-newline in command)
10246 (Single-quote-BS-newline in command)
10247 (Single-quote-newline-BS-newline in command): New tests.
10249 2004-12-13 Stepan Kasal <kasal@ucw.cz>
10251 * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
10252 on platforms where it works.
10253 (_AS_TEST_PREPARE): Test for ``test -x''.
10254 (_AS_BROKEN_TEST_PREPARE): Nuke.
10256 2004-12-13 Stepan Kasal <kasal@ucw.cz>
10258 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
10259 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
10260 give only 4-letter prefix to AS_TMPDIR, comment fixed.
10261 * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
10262 create the temporary directory.
10263 (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
10265 2004-12-12 Kelley Cook <kcook@gcc.gnu.org>
10267 * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
10270 2004-12-12 Alexandre Duret-Lutz <adl@gnu.org>
10272 * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
10274 2004-12-11 Noah Misch <noah@cs.caltech.edu>
10276 * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
10277 to avoid using a negated character class. Reported by Nicolas Joly.
10278 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
10280 2004-12-10 Paul Eggert <eggert@cs.ucla.edu>
10282 * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
10283 autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
10284 Don't depend on .x file explicitly, since "make" does that for us.
10285 Suggested by Stepan Kasal.
10287 * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
10289 (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
10290 ifnames): Factor common code. And they said it couldn't be done!
10292 2004-12-09 Paul Eggert <eggert@cs.ucla.edu>
10294 * bin/.cvsignore: Add autoconf.in.
10295 * tests/.cvsignore: Add wrapper.in.
10296 * lib/autotest/general.m4: Escape '$' in case pattern.
10298 2004-12-09 Noah Misch <noah@cs.caltech.edu>
10300 * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
10302 * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
10304 * tests/autotest.at: New file.
10305 * tests/suite.at: Include it.
10306 * tests/Makefile.am: Distribute it.
10308 * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
10309 shell tracing on a command that could contain multiple lines.
10310 * doc/autoconf.text: Document that fact and its implications.
10311 * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
10312 * tests/autotest.at (Multiline backquote command substitution,
10313 Multiline parameter expansion, Literal multiline command,
10314 Multiline parenthetical command substitution): Remove XFAIL.
10316 2004-12-09 Paul Eggert <eggert@cs.ucla.edu>
10318 * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
10319 and suggest AC_SEARCH_LIBS. Suggested by Noah Misch and Stepan Kasal.
10321 2004-12-08 Noah Misch <noah@cs.caltech.edu>
10323 * configure.ac (test suite): Cease to generate wrapper scripts.
10324 * configure: Regenerate.
10325 * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
10326 (m4f_dependencies): Adjust accordingly.
10327 * tests/Makefile.am (Wrappers): Generate wrapper scripts.
10328 (wrapper.in): Generate it in the build directory.
10329 (MAINTAINERCLEANFILES): Delete wrapper.in.
10330 (CLEANFILES): Add wrapper.in.
10331 * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
10332 the output. Replace each $as_me with a @wrap_program@.
10333 * tests/wrapper.in: Delete it; we always build it.
10335 * bin/Makefile.am (autoconf.in): Generate it in the build directory.
10336 (EXTRA_DIST): Remove autoconf.in.
10337 (CLEANFILES): Add autoconf.in.
10338 (autoconf): Find autoconf.in in the build directory.
10339 * bin/autoconf.in: Delete it; we always build it.
10341 2004-12-08 Noah Misch <noah@cs.caltech.edu>
10343 * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'. Join
10344 PATH members so as to not prepend an empty element. Move a comment.
10345 * Makefile.am (SUBDIRS): Build in `tests' last.
10346 * tests/Makefile.am (installcheck-local): Add check-local dependencies.
10348 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
10350 * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
10351 the spaces inside $ls_command. Problem reported by Loulou Pouchet in
10352 <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
10353 Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
10355 2004-12-07 Stepan Kasal <kasal@ucw.cz>
10357 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
10358 patch: extra "-l"s.
10360 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
10362 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
10363 looking elsewhere for getmntent. Problem reported by Mark D. Baushke.
10364 * doc/autoconf.texi (Particular Functions): Mention new behavior.
10366 2004-12-03 Stepan Kasal <kasal@ucw.cz>
10368 * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
10369 out the common code to ...
10370 (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
10371 value of the #define--default to 1, iff the macro was called
10372 with exactly one parameter.
10374 2004-12-02 Paul Eggert <eggert@cs.ucla.edu>
10376 * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
10377 "char c = '\200';" rather than "char c = 0x80;" as the
10378 latter doesn't conform to the strict C standard due to
10379 overflow on signed char hosts.
10381 * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
10382 to -qlanglvl=ansi. We don't want to disable extensions.
10384 2004-11-29 Paul Eggert <eggert@cs.ucla.edu>
10386 * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
10387 (Using Autotest, testsuite Scripts, Writing testsuite.at):
10388 Reword slightly to avoid some English-language problems noted
10389 by Ralf Wildenhues in:
10390 http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
10392 2004-11-29 Stepan Kasal <kasal@ucw.cz>
10394 * NEWS: Add ^L above each release.
10396 2004-11-28 Paul Eggert <eggert@cs.ucla.edu>
10398 Fix documentation problems reported by Russ Boylan in
10399 <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
10400 along with some nearby cruft.
10401 * doc/autoconf.texi (Libtool): Libtool can be used without
10402 Automake (not without Autoconf).
10403 (Introduction): Mention lists.gnu.org.
10404 * BUGS: Don't mention bugs.gnu.org.
10405 Remove mention of ancient libtool compatibility problem.
10406 * NEWS: Mention that bugs.gnu.org is kaput.
10407 * README: Likewise. Mention where mailing list archives can be found.
10409 2004-11-28 Stepan Kasal <kasal@ucw.cz>
10411 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
10413 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
10415 * doc/autoconf.texi (Pretty Help Strings): Go back to
10416 single-quoting assignments to cache variables.
10418 2004-11-23 Stepan Kasal <kasal@ucw.cz>
10420 * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
10421 with the examples; fix the bug in MY_ARG_WITH example reported
10422 by Alexandre Duret-Lutz.
10423 * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
10424 expansion of $1 in the comment emitted to configure.
10426 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
10428 * doc/autoconf.texi (Pretty Help Strings): Fix typo
10429 in my editing of the previous patch. Problem reported
10430 by Alexandre Duret-Lutz.
10432 2004-11-22 Stepan Kasal <kasal@ucw.cz>
10434 * doc/autoconf.texi (Autoconf Language): Explain that
10435 ``descriptions'' may not be double quotes.
10436 (Quotation Rule Of Thumb): Likewise.
10437 (Pretty Help Strings): Likewise; remove the wrong comment;
10438 simplify the examples and improve their quoting.
10440 2004-11-13 Stepan Kasal <kasal@ucw.cz>
10442 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
10443 the $1_found variable, don't test whether the file is executable;
10444 Both things are checked ...
10445 (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
10446 the former ``test -f''.
10447 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
10449 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
10451 * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
10454 2004-11-10 Derek R. Price <derek@ximbiot.com>
10456 * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
10457 limitations. Reorder paragraphs for clarity.
10459 2004-10-11 Paul Eggert <eggert@cs.ucla.edu>
10461 * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
10462 to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
10463 variants", "Unix", and some related minor wording fixups.
10465 (Shellology, Special Shell Variables): Document that the Zsh
10466 problem with NULLCMD was fixed in zsh 3.1.6-dev-18. Thanks
10467 to Alexandre Duret-Lutz for this info.
10469 2004-10-10 Alexandre Duret-Lutz <adl@gnu.org>
10471 * doc/autoconf.texi (One-Shot Macros): New node.
10473 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
10475 * doc/autoconf.texi (Function Portability): Fix misdescription
10476 of putenv. Problem reported by Michael Wardle.
10478 2004-09-22 Paul Eggert <eggert@cs.ucla.edu>
10480 * doc/autoconf.texi (auindex): New macro.
10481 (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
10482 Problem reported by Stepan Kasal.
10484 2004-09-05 Paul Eggert <eggert@cs.ucla.edu>
10486 Fix problems reported by Andreas Buening in:
10487 http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
10488 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
10490 * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
10491 readable; it's not true in OS/2-emx.
10493 2004-09-04 Paul Eggert <eggert@cs.ucla.edu>
10495 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
10496 "/usr/include", clear ac_x_includes instead of leaving it as "no"
10497 (trivial change). Problem and patch reported by Andrew Church in:
10498 http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
10500 2004-09-03 Paul Eggert <eggert@cs.ucla.edu>
10502 * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
10503 three args in examples. Problem reported by Frederik Fouvry in:
10504 http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
10505 Also, fix some minor spacing and punctuation bugs.
10507 2004-09-02 Akim Demaille <akim@epita.fr>
10509 * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
10510 "case" to restore ordering.
10511 Reported by Stepan Kasal.
10513 2004-08-26 Akim Demaille <akim@epita.fr>
10515 * doc/autoconf.texi: Minor typos and stylos.
10517 2004-08-20 Paul Eggert <eggert@cs.ucla.edu>
10519 * configure.ac (AC_INIT): Bump to 2.59c.
10521 2004-08-20 Paul Eggert <eggert@cs.ucla.edu>
10525 * README: Add advice about m4 1.4.2.
10527 * Makefile.cfg (wget_files): Remove config.guess, config.sub,
10528 texinfo.tex for now (done by hand now).
10529 * Makefile.maint (wget_files, cvs_files):
10530 Remove ansi2knr.c; nobody uses it.
10531 (ansi2knr.c-url_prefix): Remove.
10532 (cvs-update): Fix test for failure. I don't know why it ever
10535 * doc/autoconf.texi: Update URLs, some of which went stale.
10536 Use @uref rather than @href.
10538 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
10539 handle "--" as per POSIX. Suggested by Paul Pogonyshev.
10541 * config/config.guess, config/config.sub, config/elisp-comp,
10542 config/install-sh, config/mkinstalldirs, config/texinfo.tex,
10543 doc/fdl.texi, doc/standards.texi: Sync with master copy.
10545 * NEWS, TODO, configure.ac, bin/autoscan.in,
10546 bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
10547 doc/install.texi, lib/Autom4te/Configure_ac.pm,
10548 lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
10549 lib/autoconf/programs.m4, lib/autoconf/status.m4,
10550 lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
10551 lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
10552 tests/tools.at, tests/torture.at:
10553 Use "file name" rather than "filename" or "path",
10554 to be consistent with the terminology of the GNU coding standards.
10556 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
10558 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
10559 AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
10560 HP-UX 11.23 cc/aCC or Tru64 4.0 cc. Problem reported by Noah Misch in
10561 <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
10563 More fixes to support spaces in the name of the build directory.
10564 This isn't a complete fix but it's an improvement.
10566 * bin/autoconf.as (autom4te_options): New var.
10567 Use it instead of appending to AUTOM4TE, so that we can allow
10568 spaces in the build directory's absolute name.
10569 * bin/autoheader.in ($autoconf): Allow spaces in file names.
10570 * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
10571 AT_CHECK_NOESCAPE): Likewise.
10572 * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
10573 main program): Likewise.
10575 2004-08-18 Paul Eggert <eggert@cs.ucla.edu>
10577 * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
10578 From Ralf Corsepius in:
10579 http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
10581 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
10583 * doc/autoconf.texi (Function Portability): Document isinf and
10584 and isnan. From a suggestion by Kevin Ryde.
10586 * lib/Autom4te/General.pm (END): Return correct exit status even
10587 if unlink succeeds and sets $?. Needed with Solaris 8's perl 5.00503.
10589 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
10591 * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
10592 for compatibility with Automake 1.4. Reported by J C Fitzgerald in
10593 <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
10595 2004-08-04 Alexandre Duret-Lutz <adl@gnu.org>
10597 * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
10598 (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
10599 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
10600 * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
10601 * lib/autom4te.in (Automake-preselections): Preselect
10602 AC_REQUIRE_AUX_FILE. Automake 1.10 will trace it.
10604 2004-08-02 Alexandre Duret-Lutz <adl@gnu.org>
10606 * lib/autom4te.in (Automake-preselections): Preselect
10607 AC_CANONICAL_BUILD and AC_CANONICAL_TARGET. Automake 1.9.1 will
10610 2004-07-29 Paul Eggert <eggert@cs.ucla.edu>
10612 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
10614 * doc/autoconf.texi (Shellology): Mention BIN_SH.
10615 Document problem with "`""`" in pdksh POSIX mode.
10617 2004-07-27 Paul Eggert <eggert@cs.ucla.edu>
10619 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
10620 with pdksh, too. Problem reported by Patrick Welche via
10622 * doc/autoconf.texi (Shellology): Note that set -o posix is
10623 useful for pkdsh, too.
10625 2004-06-24 Paul Eggert <eggert@cs.ucla.edu>
10627 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
10628 _AS_UNSET_PREPARE, so that we can use $as_unset directly.
10629 Don't fail if ENV or BASH_ENV is readonly.
10630 (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
10631 etc. are read only. Problem reported by Ludovic Courtes.
10633 2004-06-23 Noah Misch <noah@cs.caltech.edu>
10635 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
10636 zsh, disable GLOB_SUBST to avoid backslash handling problems.
10639 2004-06-04 Paul Eggert <eggert@cs.ucla.edu>
10641 * doc/autoconf.texi (File System Conventions): Warn about
10642 names like "aux". Problem reported by Eric Blake.
10644 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
10645 by zero instead of array size, so that we can use any arithmetic
10646 constant expression (instead of requiring an integer constant
10647 expression). This allows us to test expressions like DBL_MAX <
10648 LDBL_MAX, which didn't conform to the C standard using the old
10650 (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
10651 now that we can do floating-point tests at compile time.
10653 2004-06-02 Paul Eggert <eggert@cs.ucla.edu>
10655 * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
10656 and LDBL_EPSILON, as the resulting expression isn't an
10657 integer constant expression and violates the C standard.
10658 Problem reported by Nelson H. F. Beebe. Also, check
10659 for "L" suffix, and check that long double doesn't have
10660 worse range or precision than double, that mixed-mode
10661 arithmetic doesn't generate a diagnostic, that double
10662 constants fit in long double.
10664 2004-06-03 Kevin Ryde <user42@zip.com.au>
10666 * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
10667 malloc(0) and realloc(NULL,size).
10669 * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
10672 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
10674 * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
10675 in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. Problem reported
10678 2004-05-26 Paul Eggert <eggert@cs.ucla.edu>
10680 * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
10681 can be rewritten using if-then-else. Suggested by Bruno Haible.
10683 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
10685 * doc/autoconf.texi (testsuite Scripts): Fix typo.
10686 Problem reported by Stepan Kasal.
10688 2004-05-24 Paul Eggert <eggert@cs.ucla.edu>
10690 * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
10691 change). Patch reported by Ralf Wildenhues in
10692 <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
10694 * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
10695 function F exists if the compiler and linker let you compile an
10696 expression like (F != 0). Recent versions of GCC optimize away
10697 the reference to F in that case, since every function address must
10698 be nonzero, so the link succeeds even if F does not exist.
10699 Problem reported by Manu in
10700 <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
10702 * doc/autoconf.texi (Systemology): Standardize on the spelling of
10703 "Unix". Many uses changed.
10704 (Limitations of Builtins): Explain better why the ! command isn't
10707 2004-05-22 Alexandre Duret-Lutz <adl@gnu.org>
10709 * lib/autom4te.in (Automake-preselections): Preselect
10710 LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
10712 2004-05-19 Kevin Ryde <user42@zip.com.au>
10714 * doc/autoconf.texi (Function Portability): Add strerror_r, cross
10715 referencing AC_FUNC_STRERROR_R.
10717 * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
10718 note pessimistic assumption when cross compiling.
10720 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
10722 * doc/autoconf.texi (Limitations of Make): Note that BSD make
10723 (until 2004) invoked subcommands with sh -e, contra POSIX.
10724 Reported by Kevin Ryde.
10726 2004-05-10 Eric Sunshine <sunshine@sunshineco.com>
10728 * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
10729 _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
10730 " $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
10731 `test -f " /usr/bin/grep"', which _always_ failed.
10732 (AC_PROG_SED): Ditto bogus PATH fix.
10733 * autoconf.texi (AC_PROG_GREP): Properly document that this macro
10734 requires that grep correctly supports _multiple_ `-e' options, rather
10735 than stating only that grep should accept `-e'.
10737 2004-05-03 Paul Eggert <eggert@cs.ucla.edu>
10739 Port to C99, which requires that 'exit' be declared.
10741 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
10742 to ensure that stdlib.h is included.
10743 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
10744 AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
10745 _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
10746 * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
10747 * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
10748 * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
10749 when using 'exit' in a test; C99 requires that 'exit' be declared.
10751 2004-05-02 Paul Eggert <eggert@cs.ucla.edu>
10753 * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
10754 now prefers 'grep' implementations that accept -e.
10755 (Limitations of Usual Tools): Describe problems of traditional
10756 egrep and fgrep with long input lines, and of traditional grep
10758 * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
10759 (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
10760 All callers changed. Append /usr/xpg4/bin to the PATH, for
10762 (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
10763 the user with complaints about multiple -e options.
10764 * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
10765 Define it with AC_PROG_GREP.
10766 * configure.ac (AC_PROG_GREP): Add.
10767 * lib/freeze.mk (GREP): New macro.
10769 2004-05-02 Eric Sunshine <sunshine@sunshineco.com>
10771 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
10772 a possible candidate only after all others fail, rather than
10773 consulting it first. This improves backward compatibility by
10774 better reflecting the way shell selection occurred in previous
10775 versions of Autoconf, and should help to avoid triggering latent
10776 problems in other packages, such as the one in Automake where zsh
10777 is not handled robustly:
10778 http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
10779 Although it is not Autoconf's responsibility to work around
10780 problems in Automake, it nevertheless makes sense to avoid
10781 introducing unnecessary incompatibilites.
10783 2004-04-22 Albert Chin-A-Young <china@thewrittenword.com>,
10784 Gary V. Vaughan <gary@gnu.org>
10786 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
10787 how deeply nested we are when a suitable tool is found, set the
10788 ac_path_TOOL_found flag.
10789 (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
10790 nested we are in this macro. Break out of all 3 nested loops if
10791 ac_path_TOOL_found is set.
10793 2004-04-21 Gary V. Vaughan <gary@gnu.org>
10795 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
10796 of the _AS_PATH_WALK loop too if GNU flavor is found.
10798 2004-04-21 Alexandre Duret-Lutz <adl@gnu.org>
10800 * doc/autoconf.texi (Limitations of Make): Update documentation
10801 for `$<'. New entry `Long lines', based on a report from Simon
10802 Josefsson. Augment the documentation for SHELL = @SHELL@ with a
10803 paragraph about DJGPP, based on a mail from Richard Dawe.
10805 2004-04-20 Paul Eggert <eggert@twinsun.com>
10807 * tests/c.at (C keywords): Don't assume that GCC supports
10808 "restrict" and "inline", as sufficiently-old GCC versions do not
10809 (also, GCC configured to be in pedantic C89 mode does not).
10810 Problem reported by Sumit Pandya in:
10811 http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
10813 * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
10814 consider -g to work if it generates warnings when plain compiles
10815 don't. Problem reported by Braden McDaniel in:
10816 http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
10818 * doc/autoconf.texi (Slashes): New section, to document a problem
10819 reported by Jim Meyering in:
10820 http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
10822 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
10823 linker output files before linking, to work around IRIX 6 linker bug.
10824 Problem reported by Rainer Orth in:
10825 http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
10827 2004-04-20 Gary V. Vaughan <gary@gnu.org>
10829 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
10830 best tool so far counter rely on the tool path variable name to
10831 avoid checks for one tool being affected by the results of running
10832 the length check on a previous tool.
10834 * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
10835 match expression argument, as different greps have different
10836 regular expression flavours.
10837 (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
10839 (AC_PROG_EGREP): Pass 'EGREP$'.
10840 (AC_PROG_GREP): Pass 'GREP$'.
10842 2004-04-20 Albert Chin-A-Young <china@thewrittenword.com>
10844 * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
10845 is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
10847 2004-03-29 Paul Eggert <eggert@twinsun.com>
10849 * doc/autoconf.texi (Particular Headers, Particular Types, Generic
10850 Types, Specific Compiler Characteristics, System Services,
10851 Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
10852 etc. consistently instead of 'long', 'short', 'unsigned' etc.
10853 * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
10854 * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
10856 * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
10857 * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
10858 AC_TYPE_OFF_T): Likewise.
10859 * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
10862 * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
10863 pacify libtool 1.5.2. Fix quoting problems in sed command.
10865 2004-03-28 Paul Eggert <eggert@twinsun.com>
10867 * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
10868 now defines HAVE_DECL_TZNAME if it is declared, when
10869 HAVE_STRUCT_TM_TM_ZONE is not defined.
10870 * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
10871 Do not assume atoi. Rely on HAVE_DECL_TZNAME when testing
10874 2004-03-28 Steven G. Johnson <stevenj@fftw.org>
10876 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
10877 superfluous backslashing of quotes (") in sed expressions;
10878 thanks to Paul Eggert.
10880 2004-03-26 Steven G. Johnson <stevenj@alum.mit.edu>
10882 * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
10883 Fortran compiler is ifort, also added pghpf; thanks to Nelson
10884 H. F. Beebe for the bug report.
10886 2004-03-26 Steven G. Johnson <stevenj@fftw.org>
10888 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
10889 quoted -cmdline argument in Portland Group compiler (bug
10890 reported by Jeffrey J. Barteet).
10892 2004-03-25 Kevin Ryde <user42@zip.com.au>
10894 * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
10895 (Run Time): ... here, where it's now mentioned.
10897 2004-03-19 Alexandre Duret-Lutz <adl@gnu.org>
10899 * doc/autoconf.texi (autom4te Invocation): Language Autoconf
10900 inherits from language Autoconf-without-aclocal-m4.
10901 (Customizing autom4te): Adjust example; the cache must now be
10902 disabled for language Autoconf-without-aclocal-m4.
10904 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
10905 Nathanael Nerode <neroden@twcny.rr.com>
10907 * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
10908 AC_CHECK_TOOLS): Warn if a cross-tool is found without
10910 (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
10911 AC_CHECK_TARGET_TOOLS): New macros.
10912 * doc/autoconf.texi (Generic Programs): Document
10913 (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
10914 AC_CHECK_TARGET_TOOLS, and warn for future changes
10915 in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
10917 (Specifying Names): Document the reason for these future
10918 behavioral changes.
10919 * tests/mktests.sh: Do not generate tests for the
10921 * NEWS: Document these changes.
10923 * doc/autoconf.texi: Avoid macros with unbraced arguments,
10924 they make TeX hang up.
10926 2004-03-15 Paul Eggert <eggert@bogus.example.com>
10928 * NEWS: New macro AC_CHECK_ALIGNOF.
10929 * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
10930 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
10931 int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
10933 (AC_CHECK_ALIGNOF): New macro.
10934 * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
10935 * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
10938 2004-03-03 Paul Eggert <eggert@twinsun.com>
10940 * bin/Makefile.am (edit): Don't use $< in a context where
10941 POSIX doesn't require support for it. Use $@.in instead.
10942 Problem reported by Anthony N. Frasso in
10943 <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
10944 * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
10946 2004-02-23 Gary V. Vaughan <gary@gnu.org>
10948 * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
10949 from the next generation of Libtool.
10950 * lib/autom4te.in (Autoreconf-preselections): Ditto.
10952 2004-02-20 Alexandre Duret-Lutz <adl@gnu.org>
10954 * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
10955 is not always thread-safe. Report from Nathanael Nerode.
10957 2004-02-18 Paul Eggert <eggert@twinsun.com>
10959 Fix a dependencies problem, stemming from a Autoconf 2.59 build
10960 problem on QNX reported by Stephen Rasku in
10961 <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
10963 * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
10964 $(m4sh_m4f_dependencies); this removes a FIXME.
10965 * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
10966 (MAINTAINERCLEANFILES): Split into pieces,
10967 one per related section. Add $(srcdir)/wrapper.in.
10969 2004-02-09 Paul Eggert <eggert@twinsun.com>
10971 * doc/autoconf.texi (Setting Output Variables): Emphasize that
10972 AC_SUBST provides no portable way to escape literal newlines.
10974 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
10975 flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
10976 Darwin uses -lcrt2.o and there's little point to cataloging all
10977 the system variants. Partial fix reported by Andreas Waechter in:
10978 http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
10979 for bug reported by Nelson H. F. Beebe in:
10980 http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
10982 2004-02-04 Paolo Bonzini <bonzini@gnu.org>
10984 * doc/autoconf.texi (AU_DEFUN): Fix English,
10985 suggested by Paul Eggert.
10986 * lib/autoconf/autoupdate.m4: Correct reference to
10987 acobsolete.m4, suggested by Alexandre Duret-Lutz.
10989 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
10991 * bin/autoupdate.in: Define __file__ so that warnings
10992 refer to the correct file.
10993 * doc/autoconf.texi (AU_DEFUN): Describe more correctly
10994 the behavior of the third argument.
10995 * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
10996 correctly the behavior of the third argument. Document
10997 what the three macros that AU_DEFUN defines do. Fix
10998 warning message when the third argument includes $0
10999 (reported by Alexandre Duret-Lutz).
11001 2004-01-30 Paolo Bonzini <bonzini@gnu.org>
11002 Eric Sunshine <sunshine@sunshineco.com>
11003 Paul Eggert <eggert@twinsun.com>
11005 * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
11006 (AS_INIT): Output shell initialization there. Removed optional
11007 parameter. Expand _AS_SHELL_FN_SPY.
11008 (AS_INIT_WITH_SHELL_FN): Removed.
11009 (_AS_SHELL_FN_SPY): New macro.
11010 (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
11012 (AS_SHELL_SANITIZE): Remove loop to find better shell
11013 and documentation for the parameter.
11014 (_AS_DETECT_BETTER_SHELL): Move it here.
11015 (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
11016 (_AS_RUN): Move it here, support testing with eval.
11017 (AS_REQUIRE_SHELL_FN): Require shell functions when
11019 (_AS_LINENO_WORKS): Put around braces, we do not
11020 trigger the bash bug anymore.
11021 * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
11022 use AS_INIT_WITH_SHELL_FN.
11023 * bin/autoconf.in, tests/wrapper.in: Regenerated.
11025 2004-01-30 Paolo Bonzini <bonzini@gnu.org>
11027 * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
11028 * doc/autoconf.texi: Don't say that the third parameter
11030 * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
11031 (AU_DEFUN): Honor the third parameter, create autoupdate
11032 macros with AU_DEFINE.
11033 * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
11034 AC_DIR_HEADER): Use AU_DEFUN's third parameter.
11035 * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
11036 * lib/autoconf/programs.m4 (AC_RSH): Likewise.
11037 * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
11038 AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
11039 AC_XENIX_DIR): Likewise.
11040 * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
11041 AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
11042 * lib/autoconf/status.m4: Remove FIXME.
11043 * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
11044 that the macro is not present anymore in the updated
11046 * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
11049 2004-01-28 Paul Eggert <eggert@twinsun.com>
11051 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
11053 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
11054 2003 (except 1997) to the list of copyright years. This undoes
11055 the 2003-05-22 change, which removed the older years from the list.
11056 * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
11058 2004-01-27 Gary V. Vaughan <gary@gnu.org>
11059 Albert Chin-A-Young <china@thewrittenword.com>
11061 * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
11062 grep or ggrep program in PATH that accepts as long lines as
11064 * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
11066 (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
11067 egrep and fgrep respectively if $GREP -E/-F don't work.
11068 (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
11069 _AC_PROG_GREP, and AC_PROG_SED.
11070 (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
11071 longest input length accepted by a command.
11072 (AC_PROG_SED): Use it.
11073 * doc/autoconf.texi (Particular Programs): Document the changes.
11076 2004-01-27 Paul Eggert <eggert@twinsun.com>
11078 * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
11079 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
11080 bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
11081 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
11083 * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
11084 bin/autoconf.in, config/Makefile.in, config/config.guess,
11085 config/config.sub, config/install-sh, config/mdate-sh,
11086 config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
11087 lib/Makefile.in, lib/Autom4te/Makefile.in,
11088 lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
11089 lib/autotest/Makefile.in, lib/emacs/Makefile.in,
11090 lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
11091 man/autoheader.1, man/autom4te.1, man/autoreconf.1,
11092 man/autoscan.1, man/autoupdate.1, man/config.guess.1,
11093 man/config.sub.1, man/ifnames.1, tests/Makefile.in,
11094 tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
11095 tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
11096 tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
11097 tests/actypes.at: Regenerate and/or sync with original
11100 2004-01-26 Paul Eggert <eggert@twinsun.com>
11102 * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
11103 HAVE_INTTYPES_H is defined. This is needed on Tru64 5.1b with
11104 Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
11105 not <inttypes.h>. Problem reported by Tim Mooney in
11106 <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
11107 * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
11110 * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
11111 otherwise "make check" fails because it forbids cmp (I guess
11112 because cmp treats files as binary on DOS-like systems).
11114 * tests/mktests.sh: Update copyright date to 2004, since some tests
11115 have changed in 2004.
11117 2004-01-23 Gary V. Vaughan <gary@gnu.org>
11119 * lib/autoconf/programs.m4 (AC_PROG_SED): New macro to test for a
11120 non-truncating sed or gsed program in PATH.
11121 * tests/acprograms.at: Add it.
11122 * doc/autoconf.texi (Particular Programs): Document it.
11125 2004-01-15 Paul Eggert <eggert@twinsun.com>
11127 * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
11128 -std1 disables some useful extensions on Tru64. Problem reported
11129 by N. Lichtmaier in
11130 <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
11132 2004-01-14 Paul Eggert <eggert@twinsun.com>
11134 * doc/autoconf.texi (Programming in M4sh): Document that
11135 AS_MKDIR_P succeeds if the destination is a symbolic link
11136 to an existing directory.
11137 (Limitations of Usual Tools): Note that mkdir -p might not
11138 succeed on symlinks to directories.
11140 2004-01-13 Paul Hilfinger <hilfinger@CS.Berkeley.EDU>
11142 * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
11143 * bin/autoheader.in: Grammar fix in message.
11144 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
11145 Test for dir before calling mkdir -p. (trivial changes)
11147 2004-01-13 Eric Blake <ebb9@byu.net>
11149 * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
11150 AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/. (trivial change)
11152 2004-01-10 Jim Meyering <jim@meyering.net>
11154 * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
11156 2004-01-09 Paul Eggert <eggert@twinsun.com>
11158 * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
11159 with `autoconf -Wall,error'. Bug reported by Eric Blake in:
11160 http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
11161 (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
11162 AC_COMPILE_IFELSE, since we now assume our caller invokes
11163 AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
11164 (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
11165 of AC_RUN_IFELSE; this avoids the warning mentioned above.
11166 (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
11168 2004-01-07 Paul Eggert <eggert@twinsun.com>
11170 * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
11171 `"'...'"`, as it's confusing (and I suspect it may not work on
11172 some platforms). The code was incorrect anyway, as it assumed
11173 that \$ evaluated to itself in that context. Reported by
11174 Alexandre Duret-Lutz.
11176 2004-01-07 Alexandre Duret-Lutz <adl@gnu.org>
11178 * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
11179 and _LT_AC_TAGCONFIG.
11181 2004-01-06 Paul Eggert <eggert@twinsun.com>
11183 * doc/autoconf.texi (One Macro Call): Fix an incorrect
11184 example, and add more examples. Reported by Eric Sunshine.
11186 2004-01-05 Paul Eggert <eggert@twinsun.com>
11188 * doc/autoconf.texi (Limitations of Usual Tools):
11189 Remove warning against "rm -fr" introduced yesterday; it
11192 * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
11193 autoscan, autoupdate, ifnames): Don't use chmod -w.
11194 * lib/Makefile.am (autom4te.cfg): Likewise.
11195 * doc/autoconf.texi (Limitations of Usual Tools): Warn against
11198 2004-01-04 Paul Eggert <eggert@twinsun.com>
11199 Paolo Bonzini <bonzini@gnu.org>
11201 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
11202 by doing lineno substitution only on lines containing "$LINENO".
11204 2004-01-04 Paul Eggert <eggert@twinsun.com>
11206 * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
11207 Use "rm -f" to remove conftest.sed, not plain "rm".
11208 Bug reported by David Relson in
11209 <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
11211 * Makefile.am (autom4te-update):
11212 Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
11213 * Makefile.maint (my-distcheck, do-po-update): Likewise.
11214 * doc/autoconf.texi (Guidelines): Likewise.
11215 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
11216 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
11217 * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
11218 * lib/autotest/general.m4 (AT_INIT): Likewise.
11219 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
11220 * tests/Makefile.am (clean-local): Likewise.
11221 * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
11223 * doc/autoconf.texi (Limitations of Usual Tools):
11224 Warn against "rm -fr".
11226 2004-01-03 Paul Eggert <eggert@twinsun.com>
11228 * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
11229 -c -o might not work. From a suggestion by Kevin Ryde.
11230 (C Compiler, Generating Sources, Limitations
11231 of Usual Tools, Limitations of Make, Making testsuite Scripts):
11232 Don't put '-o' after non-options, as POSIX doesn't allow this.
11233 Mention that cc's name might be gcc or c89 or whatever.
11235 2004-01-04 Kevin Ryde <user42@zip.com.au>
11237 * doc/autoconf.texi: Add various further index entries.
11239 2003-12-29 Paul Eggert <eggert@twinsun.com>
11241 * bin/autoreconf.in (autoreconf_current_directory):
11242 Fix typo: mkdir without umask arg.
11244 2003-12-27 Alexandre Duret-Lutz <adl@gnu.org>
11246 * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
11247 Documents OSF1/Tru64 make behavior. Replace `VPATH = ../src' by
11248 `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
11249 explanation clearer.
11251 2003-12-24 Andreas Schwab <schwab@suse.de>
11253 * doc/autoconf.texi (Default Includes): Fix misspelling of
11254 AC_INCLUDES_DEFAULT.
11256 2003-12-03 Paolo Bonzini <bonzini@gnu.org>
11258 * configure.ac: Test if sh -n works.
11259 * configure: Regenerate.
11260 * tests/atlocal.in: Store the result here.
11261 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
11262 tools.at, looking in atlocal's ac_cv_sh_n_works instead
11263 of explicitly testing.
11264 (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
11265 (AT_CHECK_AUTOCONF): Test for the configure script syntax.
11266 * tests/tools.at (Syntax of the shell scripts): Simplify
11267 using AT_CHECK_SHELL_SYNTAX.
11268 (Syntax of the Perl scripts): Remove definition of
11269 AT_CHECK_PERL_SYNTAX.
11271 2003-12-03 Paolo Bonzini <bonzini@gnu.org>
11273 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
11274 stderr to /dev/null.
11275 * bin/autoconf.in: Regenerate.
11276 * bin/wrapper.in: Regenerate.
11278 2003-11-26 Paolo Bonzini <bonzini@gnu.org>
11280 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
11281 Extracted from AS_SHELL_SANITIZE.
11282 (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
11284 (AS_SHELL_SANITIZE): Move reinvocation code from
11285 _AS_LINENO_WORKS, use it to find out if shell
11287 (_AS_LINENO_WORKS): Don't find another shell if $LINENO
11289 (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
11290 (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
11292 * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
11293 * bin/autoconf.in: Regenerate.
11294 * tests/wrapper.in: Regenerate.
11295 * tests/tools.at: Test the syntax of tests/autoconf
11296 and tests/testsuite.
11298 2003-11-24 Akim Demaille <akim@epita.fr>
11300 * config/announce-gen (&print_locations, &print_signatures)
11303 No longer rely on Gnus to inline the list of signatures: compute
11306 2003-11-24 Akim Demaille <akim@epita.fr>
11308 * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
11309 override some files.
11310 (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
11311 From Debian Autoconf 2.58.
11313 2003-11-24 Akim Demaille <akim@epita.fr>
11315 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
11317 From Debian Autoconf 2.58.
11319 2003-11-24 Paolo Bonzini <bonzini@gnu.org>
11321 * TODO: Remove already done things. Update the part about finding
11322 tools for the target.
11324 2003-11-24 Paolo Bonzini <bonzini@gnu.org>
11326 * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
11327 Make wording more consistent.
11328 * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
11329 Explain the transition better.
11330 * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
11331 the transition better.
11333 2003-11-24 Paolo Bonzini <bonzini@gnu.org>
11335 * doc/autoconf.texi (Obsoleting Macros): Don't document the third
11336 parameter of AU_DEFUN.
11337 * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
11338 (AU_DEFUN): Remove the third parameter, it was not used.
11339 Use AC_DEFUN directly, not AU_DEFINE.
11340 * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
11341 the expanded body, consistently with other macros such as AC_USG.
11343 2003-11-17 Paul Eggert <eggert@twinsun.com>
11345 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
11346 into the initial confdefs.h, to work around a bug in NextStep 3.3
11347 patch 3 reported by Eric Sunshine.
11349 2003-11-15 Kevin Ryde <user42@zip.com.au>
11351 * doc/autoconf.texi (Using System Type): Revise, showing $host rather
11352 than $target since the latter is not usual, add guidelines on when to
11353 use or not use the system type.
11355 2003-11-12 Derek Price <derek@ximbiot.com>
11357 * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
11358 typo misrepaired by an auto-spellcheck.
11360 2003-11-12 Akim Demaille <akim@epita.fr>
11362 * bin/autoreconf.in (&parse_args): Don't call automake with
11363 --force-missing unless it actually supports it.
11364 From Debian #219336.
11366 2003-11-12 Akim Demaille <akim@epita.fr>
11368 * configure.ac: Bump to 2.59a.
11371 2003-11-06 Akim Demaille <akim@epita.fr>
11375 2003-11-05 Alexandre Duret-Lutz <adl@gnu.org>
11377 * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
11378 so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
11379 and ac_abs_top_srcdir are absolute paths.
11380 * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
11382 2003-11-05 Akim Demaille <akim@epita.fr>
11384 * configure.ac: Bump to 2.58a.
11386 2003-11-05 Kevin Ryde <user42@zip.com.au>
11388 * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
11389 it provokes a warning from makeinfo about looking like a cross
11390 reference in info output.
11392 * doc/autoconf.texi (Function Portability): Add notes on signal
11393 handler return type, as per AC_TYPE_SIGNAL.
11395 2003-11-04 Akim Demaille <akim@epita.fr>
11398 * doc/standards.texi: Update from master.
11400 * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
11402 2003-11-04 Akim Demaille <akim@epita.fr>
11404 AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
11405 computing the absolute path to d1 in the source hierarchy: it may
11406 not exist at all. So don't cd into it.
11407 From Alexandre Duret-Lutz.
11408 http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
11410 * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
11411 From Paul Eggert, but named after Perl's IO::Spec->catfile.
11412 * doc/autoconf.texi (Programming in M4sh): Document.
11413 * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
11415 2003-11-03 Pavel Roskin <proski@gnu.org>
11417 * doc/autoconf.texi (Generic Structure Checks): Describe
11418 action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
11420 2003-10-31 Akim Demaille <akim@epita.fr>
11422 * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
11423 (GNU Fortran): New.
11424 * doc/autoconf.texi (Language Choice): Document.
11425 * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
11426 the current language is Fortran.
11428 2003-10-31 Akim Demaille <akim@epita.fr>
11430 * bin/autom4te.in (&freeze): Use a less likely warning separator
11431 than `\n\n', so that `\n\n\n' is valid in warnings.
11432 Reported by Steve Huston.
11434 2003-10-28 Akim Demaille <akim@epita.fr>
11436 * Makefile.cfg (local_updates, executable-update): Tweak to be
11437 robust to parallel makes.
11438 Suggested by Alexandre Duret-Lutz.
11440 2003-10-27 Akim Demaille <akim@epita.fr>
11442 * Makefile.cfg (executable-update): New.
11443 (local_updates): Call it.
11445 2003-10-27 Akim Demaille <akim@epita.fr>
11447 * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
11448 Don't remove core.* as it may remove valid user files.
11449 * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
11450 (AC_FUNC_UTIME_NULL): Likewise.
11452 2003-10-23 Akim Demaille <akim@epita.fr>
11455 * config/config.guess, config/config.sub: Upgrade from masters.
11457 2003-10-23 Akim Demaille <akim@epita.fr>
11459 * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
11460 AC_COMPILE_IFELSE that use break skip the clean up. So do it by
11463 2003-10-23 Akim Demaille <akim@epita.fr>
11465 * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
11466 Don't forget to remove conftest.err.
11468 2003-10-23 Akim Demaille <akim@epita.fr>
11470 * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
11471 same object file in $LIBOBJS.
11472 Reported by Alexandre Duret-Lutz & Derek Robert Price.
11473 * doc/autoconf.texi (Generic Functions): Adjust.
11475 2003-10-20 Paul Eggert <eggert@twinsun.com>
11477 * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
11478 Use 'eval', so that the resulting configure scripts work even if
11479 the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
11481 2003-10-20 Daniel Jacobowitz <drow@mvista.com>
11483 * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
11484 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
11485 (_AC_LINK_IFELSE): Check the werror flag.
11486 * doc/autoconf.texi (Generic Compiler Characteristics): Document
11488 * NEWS: Mention it.
11490 2003-10-20 Daniel Jacobowitz <drow@mvista.com>
11492 * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
11493 _AC_COMPILER_EXEEXT to attempt a link. If linking fails,
11494 override AC_LINK_IFELSE.
11496 2003-10-15 Paul Eggert <eggert@twinsun.com>
11498 * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
11499 pdksh 5.2.14. Bug reported by Ralf Corsepius.
11500 * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
11501 Mention /usr/dt/bin/dtksh on Solaris.
11502 (Shell Substitutions): Warn about $((...)).
11503 (Parentheses): New section.
11505 2003-10-15 Kevin Ryde <user42@zip.com.au>
11507 * doc/autoconf.texi (Function Portability): Add @prindex for exit.
11508 Add putenv and unsetenv. Add sysconf _SC_PAGE_SIZE.
11510 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
11512 * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
11515 2003-10-11 Steven G. Johnson <stevenj@alum.mit.edu>
11517 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
11518 name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
11520 2003-10-10 Andreas Schwab <schwab@suse.de>
11522 * bin/autoheader.in: Avoid empty first line in --version and
11524 * bin/ifnames.in: Likewise.
11526 2003-10-09 Paul Eggert <eggert@twinsun.com>
11528 * lib/Autom4te/XFile.pm: Don't assume -j is solo.
11529 Issue a more-informative diagnostic.
11530 Problems reported by Eric Sunshine.
11532 2003-10-08 Steven G. Johnson <stevenj@alum.mit.edu>
11534 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
11535 -mGLOB_options_string stuff for Intel ifc, which can cause
11536 _AC_FC_LIBRARY_LDFLAGS to fail. Use (faster) case for
11537 pattern-matching instead of grep.
11539 2003-10-08 Steven G. Johnson <stevenj@alum.mit.edu>
11541 * doc/autoconf.texi: Document new FC Fortran macros.
11543 2003-10-08 Gary V. Vaughan <gary@gnu.org>
11545 * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
11546 that future autopoint/aclocal/automake/autoreconf will be able
11547 to trace to find where to install local m4 macros.
11548 * doc/autoconf.texi (Input): Document it.
11551 2003-10-06 Gary V. Vaughan <gary@gnu.org>
11553 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
11554 -lcrtbegin.o to list of ignored flags and fix underquoting of
11557 2003-10-04 Steven G. Johnson <stevenj@ab-initio.mit.edu>
11559 * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
11560 cache variable instead of $G77 to decide whether to include -O2,
11561 since $G77 is specific to Fortran 77.
11563 2003-10-03 Steven G. Johnson <stevenj@alum.mit.edu>
11565 * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
11566 free" flag. Re-order flags tested into rough order of popularity.
11568 2003-10-03 Steven G. Johnson <stevenj@alum.mit.edu>
11570 * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
11571 arguments so that it can be used with syntax identical to
11572 AC_PROG_F77, and so that we can more easily decide to
11573 remove/deprecate the DIALECT optional argument in the future if it
11574 proves troublesome.
11575 (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
11576 non-freeform-supporting compilers. Document freeform flags.
11578 2003-10-03 Akim Demaille <akim@epita.fr>
11580 * configure.ac: Look for emacs, not macs.
11581 Reported by Eric Sunshine.
11583 2003-10-03 Akim Demaille <akim@epita.fr>
11585 * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
11586 * bin/autoreconf.in (autoreconf_current_directory): Create the
11587 AUX_DIR if needed, for sake of automake --add-missing etc.
11588 Suggested by Alexandre Duret-Lutz.
11590 2003-10-03 Akim Demaille <akim@epita.fr>
11592 * configure.ac: Quotation and formatting changes.
11593 (EMACS): Don't set it if it is not recent enough to support
11595 From Eric Sunshine.
11597 2003-10-02 Akim Demaille <akim@epita.fr>
11599 * bin/ifnames.in (&scan_file): Skip C++ comments.
11600 From Jeremy Yallop.
11602 2003-10-01 Pavel Roskin <proski@gnu.org>
11604 * doc/autoconf.texi (Particular Structure Checks):
11605 Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
11607 2003-10-01 Akim Demaille <akim@epita.fr>
11611 2003-09-30 Paul Eggert <eggert@twinsun.com>
11613 * lib/Autom4te/XFile.pm: Use Errno.
11614 (lock): Ignore ENOLCK errors. Problem reported Andreas Schwab in
11615 <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
11617 2003-09-30 Akim Demaille <akim@epita.fr>
11619 * config/announce-gen (&print_news_deltas): Extracted from...
11620 (&print_changelog_deltas): here.
11621 (&news_file): Rename as...
11622 (@news_file): this.
11624 2003-09-30 Nicolas Joly <njoly@pasteur.fr>
11626 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
11627 have been created when invoking the compiler.
11628 * tests/fortran.at (GNU Fortran 77): Quote $G77.
11630 2003-09-29 Akim Demaille <akim@epita.fr>
11634 * config/mkinstalldirs: Upgrade.
11636 2003-09-28 Paul Eggert <eggert@twinsun.com>
11638 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
11639 Problem reported by Lars J. Aas in
11640 <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
11641 (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
11642 "test -d ./-p && rmdir ./-p". Suggested by Andreas Schwab in:
11643 http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
11645 2003-09-26 Akim Demaille <akim@epita.fr>
11647 * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
11648 directory for AC_CONFIG_COMMANDS' first argument exists.
11649 This makes valid the invocation of _AC_SRCPATH that follows.
11650 Reported by Eric Sunshine.
11651 * doc/autoconf.texi (Configuration Commands): Adjust.
11653 2003-09-26 Akim Demaille <akim@epita.fr>
11655 * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
11656 Reported by Ralf Corsepius.
11658 2003-09-26 Akim Demaille <akim@epita.fr>
11660 * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
11662 Actually, use AU_ALIAS.
11665 2003-09-26 Paul Eggert <eggert@twinsun.com>
11667 * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
11668 rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
11669 Problem reported by Eric Sunshine in:
11670 http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
11672 2003-09-26 Akim Demaille <akim@epita.fr>
11674 The test suite are sometimes assigning timings incorrectly.
11675 Reported by Henk Krus.
11676 Diagnosed by Nicolas Joly.
11678 * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
11680 Instead of making AT_help a sequence of assignments to grow
11681 $at_help_all, just make AT_help_all be the growing contents of
11682 $at_help_all, and make a single assignment in...
11684 (at_times_skip): Flip the meaning and rename as...
11685 (at_times_p): this.
11686 (AT_INIT): When summarizing the test that ran, remove
11687 $at_times_file after use, and check it is present before trying to
11690 2003-09-25 Akim Demaille <akim@epita.fr>
11694 * bin/Makefile.am (edit): Handle '@configure_input@'.
11695 (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
11696 (ifnames): chmod -w.
11697 * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
11698 executables, not bin/ executables! Otherwise all the magic needed
11699 to find non installed files is turned off. This caused a failure
11700 of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
11701 as found in its environment (sent by tests/autoreconf): pointing
11702 to bin/autom4te that could not find its files.
11703 * tests/mktests.sh: Force the replacement of generated files, for
11704 the sake of "mv" program that are interactive when overwriting a
11706 * config/install-sh: Upgrade from CVS Automake.
11708 2003-09-23 Paul Eggert <eggert@twinsun.com>
11710 * doc/autoconf.texi (Limitations of Builtins): Document test -h
11711 versus test -L issues.
11713 2003-09-23 Daniel Jacobowitz <drow@mvista.com> and
11714 Paul Eggert <eggert@twinsun.com>
11716 Trivial change to support GCC's configuration procedure.
11717 * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
11718 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
11719 about inconsistency if the preprocessor is set to give errors for
11721 * doc/autoconf.texi (C Compiler Characteristics): Document this.
11723 2003-09-13 Alexandre Duret-Lutz <adl@gnu.org>
11725 * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
11726 and XFile.pm from Automake.
11727 * lib/Autom4te/XFile.pm: Update from Automake.
11729 2003-09-12 Akim Demaille <akim@epita.fr>
11733 2003-09-12 Akim Demaille <akim@epita.fr>
11735 * config/config.guess, config/config.sub, config/missing,
11736 * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
11739 2003-09-12 Akim Demaille <akim@epita.fr>
11741 * doc/autoconf.texi (Header Portability): Promote linux/types.h,
11744 2003-09-11 Akim Demaille <akim@epita.fr>
11746 * doc/autoconf.texi (Header Portability): linux/random.h.
11747 From Peter Hendrickson.
11749 2003-09-10 Akim Demaille <akim@epita.fr>
11751 * tests/mktests.sh (au_exclude_egrep): Make it harder to be
11752 willing to edit the output files.
11754 2003-09-10 Akim Demaille <akim@epita.fr>
11756 * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
11757 and AC_FC_FREEFORM.
11758 * tests/mktests.sh: Skip AC_FC_SRCEXT.
11759 * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
11761 2003-09-09 Akim Demaille <akim@epita.fr>
11763 * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
11764 Reported by Gary Vaughan.
11765 * bin/autom4te.in (handle_m4): Likewise.
11767 2003-09-09 Akim Demaille <akim@epita.fr>
11769 * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
11772 2003-09-07 Paul Eggert <eggert@twinsun.com>
11774 * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
11775 Improve the accuracy of the wording about obsolescence.
11776 From a suggestion by Ian Lance Taylor in
11777 <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
11779 2003-09-05 Paul Eggert <eggert@twinsun.com>
11781 * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
11782 for the benefit of g77 3.2. Fix suggested by Steven G. Johnson.
11784 2003-09-04 Akim Demaille <akim@epita.fr>
11786 * tests/mktests.sh (ac_exclude_list): Fix the filtering of
11789 2003-09-04 Akim Demaille <akim@epita.fr>
11791 * bin/autom4te.in: Use &fatal where more appropriate than &error.
11792 (freeze): When exiting, use $exit_code.
11793 * lib/autoconf/fortran.m4: Comment changes.
11795 2003-09-04 Akim Demaille <akim@epita.fr>
11797 * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
11799 2003-09-02 Steven G. Johnson <stevenj@alum.mit.edu>
11801 Add support for newer Fortran dialects. The F77 interface is
11802 unchanged, and continues to support Fortran 77. New FC macros
11803 correspond to all the old F77 macros, with output variables FC,
11804 FCFLAGS, and FCLIBS. AC_PROG_FC defaults to picking the newest
11805 available dialect, but older dialects can be specified. There are
11806 new macros AC_FC_SRCEXT to set the source extension, and
11807 AC_FC_FREEFORM to accept free-form source files.
11809 * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
11811 (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
11812 * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
11813 _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
11814 _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
11815 AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
11816 AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
11817 _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
11818 _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
11819 AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
11820 _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
11821 AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
11822 _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
11823 AC_FC_SRCEXT, AC_FC_FREEFORM):
11825 (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
11826 AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
11827 AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
11828 Rewrite in terms of the above.
11829 (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
11830 * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
11831 * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
11832 AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
11834 2003-09-02 Paul Eggert <eggert@twinsun.com>
11836 * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
11837 Document problems with timestamp resolution that 'make', 'cp -p', and
11840 2003-08-27 Akim Demaille <akim@epita.fr>
11842 * tests/m4sugar.at (cross_warning): Make sure to enable the
11843 output, so that we can track spurious m4sugar output.
11844 * tests/local.at: Require 2.57.
11845 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
11846 are defaulted by AT_CHECK anyway.
11847 Use AT_CHECK_AUTOM4TE.
11848 * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
11851 2003-08-27 Akim Demaille <akim@epita.fr>
11853 * bin/autoheader.in: Issue the "Using auxiliary..." message only
11854 when -Wobsolete is set.
11855 Set it on by default.
11856 Suggested by Klee Dienes.
11858 2003-08-27 Akim Demaille <akim@epita.fr>
11860 * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
11862 From Guido Draheim.
11864 2003-08-26 Akim Demaille <akim@epita.fr>
11866 * doc/autoconf.texi (Output): Make clear that one can run code
11869 2003-08-25 Akim Demaille <akim@epita.fr>
11871 * config/announce-gen, GNUmakefile, Makefile.maint: Update from
11874 2003-08-25 Alexandre Duret-Lutz <adl@gnu.org>
11876 * bin/autoreconf.in (parse_args): Do not pass --no-force to
11877 Automake versions prior to 1.8.
11879 2003-08-25 Akim Demaille <akim@epita.fr>
11881 * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
11882 From Ville Karaila.
11884 2003-08-24 Akim Demaille <akim@epita.fr>
11886 * configure.ac: Bump to 2.57c.
11888 2003-08-22 Akim Demaille <akim@epita.fr>
11892 * Makefile.cfg (local-checks-to-skip): New.
11893 * Makefile.maint (local-check): Rename as...
11894 (local-checks-available): this.
11895 (local-check): New.
11897 * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
11898 * configure.ac: Require Automake 1.7.6.
11900 2003-08-22 Akim Demaille <akim@epita.fr>
11902 Output stack traces in warnings.
11904 * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
11905 Replace the former...
11906 (m4_warn): Pass the call stack to _m4_warn.
11907 * bin/autom4te.in: Adjust to output the call stack.
11908 * tests/m4sugar.at (m4@&t@_warn): Adjust.
11910 2003-08-22 Akim Demaille <akim@epita.fr>
11912 * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
11913 * bin/autom4te.in: Adjust.
11915 2003-08-21 Akim Demaille <akim@epita.fr>
11917 * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
11918 (&verbose): Remove.
11919 (&getopt): Adjust the note and verb channels, depending upon
11921 * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
11922 * bin/autoupdate.in: Adjust.
11923 Use &verb, not &verbose.
11925 2003-08-21 Akim Demaille <akim@epita.fr>
11927 * bin/autoheader.in (&parse_args): Use &parse_warnings and
11929 ($help): Use Autom4te::ChannelDefs::usage.
11930 * bin/autoscan.in: Use Autom4te::ChannelDefs.
11931 * lib/Autom4te/General.pm: Don't export error: you don't own it.
11933 2003-08-21 Akim Demaille <akim@epita.fr>
11935 First stab at preserving warnings between calls to autom4te,
11936 including when the cache is used.
11938 There are still several issues: (i) there are too many runs of m4
11939 (one for include, one for warnings, and some more), (ii) warnings
11940 spreading on several lines are not handled gracefully, (iii) the
11941 code meant to have the call stack display for errors does not work
11942 (its handling should move from m4 to autom4te).
11944 * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
11946 (@preselect): Add m4_warn.
11947 ($exit_status): Remove, use $exit_code.
11948 ($help): Use Autom4te::ChannelDefs::usage.
11949 (&handle_m4): No longer define the m4_warnings.
11950 At each run, extract and report the warnings.
11951 Always cache the result, including if the exit status is on
11952 failure, since if nothing changes, we should result in the same
11953 failure, hence we can use the cache.
11954 * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
11955 (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
11957 (m4_warn): Redefine as a do-nothing: it is its invocation that
11958 matters, as warnings are now reported via traces.
11959 * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
11960 the contents of m4_warn: make it _call_ m4_warn, so that tracing
11961 the latter reveals calls to the former.
11965 * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
11967 2003-08-21 Akim Demaille <akim@epita.fr>
11969 * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
11972 2003-08-21 Akim Demaille <akim@epita.fr>
11974 * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
11976 * lib/Autom4te/ChannelDefs.pm: Doc typos.
11977 (&parse_warnings): Accept a list of warning requests.
11978 (&usage): Return a string, not a side effect.
11979 (cross): New warning category.
11981 2003-08-21 Akim Demaille <akim@epita.fr>
11983 * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
11984 (&require_configure_ac): Accept an optional directory argument.
11985 ($configure_ac): Remove.
11986 * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
11987 (&catfile): Remove.
11988 * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
11989 * bin/autoscan.in: Adjust.
11991 2003-08-20 Akim Demaille <akim@epita.fr>
11993 * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
11994 Reported by Alexandre Duret-Lutz.
11996 2003-08-20 Akim Demaille <akim@epita.fr>
11998 * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
11999 * bin/autom4te: Adjust.
12000 In particular, be Autoconf tools are really silent when properly
12001 working, bind the verbosity of the 'note' channel to $verbose.
12002 * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
12003 (&xsystem, &contents): Remove, since they are exported by...
12004 * lib/Autom4te/FileUtils.pm: this.
12006 * lib/Autom4te/General.pm (&up_to_date_p): Move to...
12007 * lib/Autom4te/FileUtils.pm: here.
12009 2003-08-20 Akim Demaille <akim@epita.fr>
12011 * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
12012 * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
12015 2003-08-20 Akim Demaille <akim@epita.fr>
12017 * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
12018 (autom4te-update): New.
12019 * Makefile.cfg (update): Bind autom4te-update.
12021 2003-08-19 Derek Price <derek@ximbiot.com>
12023 * lib/autotest/general.m4: Comment various HELP_* diversions.
12024 (PARSE_ARGS_BEGIN): New section for option parsing related
12026 (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
12027 package specific options and associated help.
12029 2003-08-19 Akim Demaille <akim@epita.fr>
12031 * config/announce-gen, Makefile.cfg: New.
12032 * Makefile.am: Adjust.
12033 * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
12035 2003-08-19 Alexandre Duret-Lutz <adl@gnu.org>
12037 * lib/autom4te.in (Automake-preselections): Preselect
12038 AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
12041 2003-08-19 Alexandre Duret-Lutz <adl@gnu.org>
12043 * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
12044 (Autoconf-without-aclocal-m4): ... this new language.
12045 * doc/autoconf.texi (autom4te Invocation): Mention
12046 Autoconf-without-aclocal-m4.
12048 2003-08-18 Derek Price <derek@ximbiot.com>
12050 * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
12051 RUN-IF-PASS optional arguments.
12053 2003-08-18 Derek Price <derek@ximbiot.com>
12055 * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
12057 2003-08-16 Derek Price <derek@ximbiot.com>
12059 * doc/autoconf.texi (Writing testsuite.at): Document defaults for
12060 STDOUT & STDERR arguments.
12062 2003-08-14 Derek Price <derek@ximbiot.com>
12064 * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
12065 DESCRIPTION rather than FILE and LINE. Shorten result to fit in new,
12066 shorter column three. Add DESCRIPTION to log file content.
12068 2003-08-13 Derek Price <derek@ximbiot.com>
12070 * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
12073 2003-08-12 Derek Price <derek@ximbiot.com>
12075 * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
12076 (AT_CHECK_NOESCAPE): Move core functionality to...
12077 (_AT_CHECK): ...this new macro.
12079 2003-08-07 Derek Price <derek@ximbiot.com>
12081 * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
12082 (AT_CHECK_NOESCAPE): ...to this new macro.
12084 2003-07-31 Paul Eggert <eggert@twinsun.com>
12086 * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
12087 in Bash 2.01. Problem reported by Brian Gough in
12088 <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
12090 2003-07-25 John W. Eaton <jwe@bevo.che.wisc.edu>
12092 * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
12093 -lcrt1.o, for OS X. (trivial change)
12095 2003-07-07 Paul Eggert <eggert@twinsun.com>
12097 * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
12098 inside '#ifndef __cplusplus'. Problem reported by
12101 2003-07-06 Bill Clarke <llib@computer.org>
12103 * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
12104 'long', not 'int', for benefit of Sun's recent C++ compilers
12105 (trivial change). See:
12106 http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
12107 (This really should be 'intptr_t', not 'long', but that would
12110 2003-06-25 Akim Demaille <akim@epita.fr>
12112 * lib/Makefile.am (autom4te.cfg): Make it read only.
12113 Depend on Makefile since it contains substitutions.
12114 From Paolo Bonzini.
12115 * lib/autom4te.in (args): Add local.at? for Autotest args.
12116 This change was made on autom4te.cfg which is generated.
12117 Reported by Raja R. Harinath.
12119 2003-06-25 Akim Demaille <akim@epita.fr>
12121 * doc/autoconf.texi (Header Portability): sys/mount.h.
12122 From Gareth McCaughan.
12124 2003-06-23 Akim Demaille <akim@epita.fr>
12126 * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
12127 not all of them. This fixes 1. the fact that when testing
12128 Autoconf there are many many config.log, 2. the incorrect use of
12129 top_srcdir to find config.log.
12130 Don't mix the detailed output of failed test with the summary of
12131 failures. Rather, append detailed log afterwards.
12133 2003-06-23 Akim Demaille <akim@epita.fr>
12135 * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
12136 always run: output config.log on $at_group_log.
12138 2003-06-23 Akim Demaille <akim@epita.fr>
12140 * tests/torture.at (#define header templates): Don't use quotes in
12141 C++ comments as it puzzles Emacs' sh font-lock-mode.
12143 2003-06-23 Akim Demaille <akim@epita.fr>
12145 * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
12146 * lib/autom4te.cfg (args): Add local.at? for Autotest args.
12147 * tests/atspecific.m4: Rename as...
12148 * tests/local.at: This.
12149 * tests/suite.at: Move the globals into...
12150 * tests/local.at: here.
12151 * tests/Makefile.am: Adjust.
12152 * doc/autoconf.texi (testsuite Scripts): Adjust.
12154 2003-06-21 Kevin Ryde <user42@zip.com.au>
12156 * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
12157 error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
12158 ensuring we add -std1 for full-ANSI.
12160 * doc/autoconf.texi (hdrindex): New macro.
12161 Add index entries for portability of various standard header files.
12163 2003-06-20 Akim Demaille <akim@epita.fr>
12165 * configure.ac: Bump to 2.57b.
12167 2003-06-20 Akim Demaille <akim@epita.fr>
12171 2003-06-20 Akim Demaille <akim@epita.fr>
12173 * bin/autom4te.in: Don't rely on $HOME being defined.
12174 Reported by Marc Espie as PR/233.
12176 2003-06-20 Akim Demaille <akim@epita.fr>
12178 * lib/autotest/general.m4: Use at_times_file only if used.
12181 2003-06-20 Akim Demaille <akim@epita.fr>
12183 * config/config.guess, config/config.sub, config/elisp-comp,
12184 * config/install-sh, config/mkinstalldirs, doc/standards.texi:
12185 Update from masters.
12187 2003-06-11 Paolo Bonzini <bonzini@gnu.org>
12189 * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
12190 * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
12191 (TEST_SCRIPT): New diversion.
12192 (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
12193 (AT_CLEANUP): ...to here. Undivert TEST_SCRIPT.
12194 (AT_INIT): Support for expected failures.
12196 2003-06-02 Akim Demaille <akim@epita.fr>
12198 * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
12200 * lib/Autom4te/General.pm (&backname): Remove, no longer used by
12201 Autoconf nor Automake.
12202 (&contents): New, from Automake.
12205 2003-05-28 Paul Eggert <eggert@twinsun.com>
12207 * NEWS, doc/autoconf.texi (Particular Functions),
12208 lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
12209 is the inverse of localtime.
12211 2003-05-25 Alexandre Duret-Lutz <adl@gnu.org>
12213 * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
12214 (handle_exec_errors): New function. Work around $! being
12215 altered by WEXITSTATUS.
12216 (xqx, xsystem): Use handle_exec_errors.
12218 2003-05-23 Alexandre Duret-Lutz <adl@gnu.org>
12220 * lib/Autom4te/General.pm (END): Rewrite exit code processing.
12221 Do not call `_exit()', simply modify `$?'.
12222 (xsystem): Reset $! before running system, and check it afterward.
12223 * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
12224 63 for version mismatches.
12226 2003-05-23 Akim Demaille <akim@epita.fr>
12228 * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
12229 Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
12230 the middle of a line).
12231 * lib/m4sugar/m4sugar.m4: Likewise.
12232 Remove useless spaces in comments.
12234 2003-05-23 Akim Demaille <akim@epita.fr>
12236 * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
12237 exit 63, so that we (or Automake's "missing") can tell the
12238 difference with a plain failure.
12239 * doc/autoconf.texi (Notices): Adjust.
12241 2003-05-23 Akim Demaille <akim@epita.fr>
12243 * Makefile.am, bin/Makefile.am, config/Makefile.am,
12244 * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
12245 White spaces cleanup.
12247 2003-05-22 Jim Meyering <jim@meyering.net>
12248 Paul Eggert <eggert@twinsun.com>
12250 * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
12251 Remove `#include <stdlib.h>' from the list; we should never
12252 make confdefs.h include <stdlib.h> or <cstdlib>, because the
12253 resulting namespace pollution would cause other tests to fail.
12254 Configure scripts run with some older versions of g++ and HP's
12255 aCC would fail due to such an #include. Problems reported by
12256 Matthew Mueller in <http://bugs.debian.org/120704> and by
12258 <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
12259 In the test, use the test declaration before including <stdlib.h>,
12260 as that's closer to how it'll be used.
12262 2003-05-23 Akim Demaille <akim@epita.fr>
12264 * doc/autoconf.texi (Header Portability): ucred.h.
12267 2003-05-22 Paolo Bonzini <bonzini@gnu.org>
12269 Overhaul Autotest's logging: generate separate log files
12270 in testsuite.dir/NNN/testsuite.log, and append them to
12271 testsuite.log instead of re-running the test verbosely.
12273 * lib/autotest/general.m4 (AT_INIT): Use a single redirected
12274 file descriptor, write 0 to at_status_file instead of setting
12275 at_status=0, initialize some new variables (at_status_file,
12276 at_group_log, at_suite_log, at_tee_pipe). Remove the cruft
12277 to rerun the tests, instead append the at_group_log to the
12278 at_suite_log when a test fails.
12279 (AT_SETUP): pipe the test case's output into at_tee_pipe,
12280 with the AS_MESSAGE_LOG_FD redirected to stdout.
12281 (AT_CLEANUP): save the output status in $at_status_file
12282 and restore it, redirect the AS_MESSAGE_LOG_FD back to
12283 its original place.
12284 (AT_CHECK): since tests are run with a redirected stdout,
12285 and used to be re-run in verbose mode, turn some $at_verbose
12286 into echo, and don't redirect the output of testing stdout
12289 * lib/autotest/autoconf.texi (testsuite Scripts): Update
12290 the name of the debugging directory and information about
12293 2003-05-22 Paolo Bonzini <bonzini@gnu.org>
12295 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
12298 2003-05-22 Akim Demaille <akim@epita.fr>
12300 * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
12301 * lib/autoconf/fortran.m4 lib/autoconf/general.m4
12302 * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
12303 * lib/autoconf/status.m4: Fix and adjust copyright notices.
12305 2003-05-22 Akim Demaille <akim@epita.fr>
12307 * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
12308 * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
12309 * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
12310 * lib/autoconf/general.m4, lib/autoconf/headers.m4,
12311 * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
12312 * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
12313 * lib/autoconf/status.m4, lib/autoconf/types.m4,
12314 * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
12315 * tests/atspecific.m4, tests/base.at, tests/compile.at,
12316 * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
12317 * tests/tools.at, tests/torture.at:
12318 Whitespace clean up.
12319 Suggested by Jim Meyering.
12321 2003-05-22 Akim Demaille <akim@epita.fr>
12323 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
12324 ' \t' as '\t ' so that Emacs' whitespace.el keep it.
12325 Reported by Jim Meyering.
12327 2003-05-22 Akim Demaille <akim@epita.fr>
12329 * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
12330 Add AC_HELP_STRING to the obsolete macros section.
12332 Use '@.' for sentences that ended in a capital letter.
12335 2003-05-22 Akim Demaille <akim@epita.fr>
12337 * config/config.guess, config/config.sub, config/elisp-comp,
12338 * config/install-sh, config/mdate-sh, config/mkinstalldirs,
12339 * config/texinfo.tex, doc/standards.texi: Update from masters.
12341 2003-05-21 Paolo Bonzini <bonzini@gnu.org>
12343 * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
12346 2003-05-21 Akim Demaille <akim@epita.fr>
12348 * bin/autoupdate.in ($m4): Fix quotation.
12349 Reported by Martin Mokrejs.
12351 2003-05-19 Paul Eggert <eggert@twinsun.com>
12353 * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
12354 Remove non-ASCII characters.
12356 2003-05-18 Paolo Bonzini <bonzini@gnu.org>
12358 * tests/semantics.at (AC_SEARCH_LIBS): New test.
12359 * tests/semantics.at (AC_CHECK_HEADERS_OLD,
12360 AC_CHECK_HEADERS_NEW): New tests.
12362 2003-05-17 Akim Demaille <akim@epita.fr>
12364 * lib/autoconf/functions.m4: Use the default includes so that
12365 memcmp be declared before being tested.
12366 Reported by Sander Niemeijer.
12367 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
12368 * doc/autoconf.texi (Default Includes): Document
12369 AC_INCLUDES_DEFAULT.
12371 2003-05-17 Akim Demaille <akim@epita.fr>
12373 * lib/autoconf/specific.m4: Include signal.h and unistd.h.
12374 * doc/autoconf.texi (Obsolete Macros): Adjust.
12375 Reported by Werner LEMBERG and Debian Bug 190886.
12377 2003-05-16 Akim Demaille <akim@epita.fr>
12379 * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
12380 user name space clashes.
12381 Reported by Bruno Haible.
12383 2003-05-16 Akim Demaille <akim@epita.fr>
12385 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
12386 * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
12387 them uniform, and more robust to Perl special characters.
12388 Reported by Martin Mokrejs.
12390 2003-05-14 Akim Demaille <akim@epita.fr>
12392 * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
12394 2003-05-14 Akim Demaille <akim@epita.fr>
12396 * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
12399 2003-05-12 Akim Demaille <akim@epita.fr>
12401 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
12403 From Matthias Andree.
12405 2003-05-07 Alexandre Duret-Lutz <adl@gnu.org>
12407 * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
12410 2003-05-06 Akim Demaille <akim@epita.fr>
12412 Don't try to be smart with aclocal 1.8+ because (i) aclocal no
12413 longer updates aclocal.m4 if useless, (ii) if a file m4_included
12414 by aclocal.m4 is changed it might require the importing of another
12415 m4 extension file, i.e., aclocal must be run.
12417 * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
12418 (&parse_args): Use --force with aclocal if required and supported.
12419 (&autoreconf_current_directory): Use &run_aclocal.
12421 2003-05-06 Akim Demaille <akim@epita.fr>
12423 Lock autom4te's cache.
12425 * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
12426 * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
12427 argument instead of a file name, so that the request file remains
12428 open during the whole autom4te run.
12429 ($icache_file): New.
12430 (&freeze): Lock the $icache_file.
12432 2003-04-29 Derek Price <derek@ximbiot.com>
12434 * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
12435 seperator with m4_append_uniq(). It doesn't work.
12436 (AT_CLEANUP): Add `;' to end of at_help_all.
12437 (AT_INIT): Allow --keywords to be specified more than once. When
12438 grepping $at_help_all for keywords, use the field and keyword
12439 seperators to ensure a complete keyword match. Alter at_prev handling
12440 to support the new --keywords behavior.
12442 2003-04-27 Karl Berry <karl@freefriends.org>
12444 * doc/autoconf.texi: Make the dir entries in the autoconf manual
12445 align better with others. I also made some of the individual
12446 entries on one line, for brevity and to make it easier for me to
12447 sort my dir-example file in the Texinfo distribution :).
12449 2003-04-12 Jim Meyering <jim@meyering.net>
12451 * NEWS: Mention the new macro.
12452 * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
12453 * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
12454 * tests/c.at: Test AC_C_RESTRICT.
12455 * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
12457 2003-04-08 Akim Demaille <akim@epita.fr>
12459 * bin/ifnames.in: Skip C++ comments.
12460 From Jeremy Yallop.
12462 2003-04-08 Akim Demaille <akim@epita.fr>
12464 * GNUmakefile (SHELL): Don't assume sh is in /bin/.
12465 From Ilya Zakharevich.
12467 2003-04-08 Akim Demaille <akim@epita.fr>
12469 * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
12470 net/if.h, stdlib.h.
12472 2003-04-01 Derek Price <derek@ximbiot.com>
12474 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
12475 from Akim's checkin of 2003-03-29.
12477 2003-04-01 Derek Price <derek@ximbiot.com>
12479 * tests/torture.at (Configuring subdirectories): Add missing
12480 close-quote for Akim's change from 2003-03-28.
12482 2003-04-01 Akim Demaille <akim@epita.fr>
12484 * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
12485 (AC, AT, MS): these.
12486 (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
12489 * doc/Makefile.am (CLEANFILES): Adjust.
12490 (TEXI2DVI): Make it --batch.
12492 2003-03-31 Derek Price <derek@ximbiot.com>
12494 * lib/autotest/general.m4: Revert the checkin from 2003-03-27
12495 which removed the main loop.
12496 Thanks to Akim Demaille.
12498 2003-03-29 Akim Demaille <akim@epita.fr>
12500 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
12502 From Ilya Zakharevich.
12504 2003-03-29 Akim Demaille <akim@epita.fr>
12506 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
12507 documentation to read is Autoconf's.
12508 Suggested by Paul Eggert.
12510 2003-03-28 Akim Demaille <akim@epita.fr>
12512 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
12513 reading the section "Present But Cannot Be Compiled" when the
12514 header causes problems.
12516 2003-03-28 Akim Demaille <akim@epita.fr>
12518 * tests/torture.at (Configuring subdirectories): Require aclocal
12519 1.4, otherwise the test fails, as it does support configure.ac.
12520 This fixes the "test 40 failed" bug reports.
12522 2003-03-28 Akim Demaille <akim@epita.fr>
12524 * doc/autoconf.texi (C Compiler): `#line' portability.
12525 From Paul Eggert and Nelson H. F. Beebe.
12527 2003-03-27 Derek Price <derek@ximbiot.com>
12529 * lib/autotest/general.m4: Eliminate main loop and reorganize test
12530 layout in order to allow scripting around test groups.
12532 2003-03-27 Derek Price <derek@ximbiot.com>
12534 * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
12535 HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
12536 use new diversions in preparation for accepting new arguments and
12537 allowing scripting around tests.
12538 (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
12540 2003-03-26 Derek Price <derek@ximbiot.com>
12542 * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
12543 obsolete AC_HELP_STRING.
12544 (AC_HELP_STRING): AU_DEFUN to...
12545 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
12546 * tests/m4sh.at (AS_HELP_STRING): New test.
12548 * tests/acgeneral.at: Regenerated.
12550 2003-03-26 Derek Price <derek@ximbiot.com>
12552 * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
12553 sense. Verbosify the diversion definitions comment.
12555 2003-03-26 Derek Price <derek@ximbiot.com>
12557 * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
12560 2003-03-21 Eric Siegerman <eric_97@pobox.com>
12562 * doc/autoconf.texi (Present But Cannot Be Compiled):
12563 Grammar fixes and minor rewording. (trivial change)
12565 2003-03-06 Paul Eggert <eggert@twinsun.com>
12567 Work around a problem noted by Nelson H. F. Beebe with coreutils
12568 4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
12569 2002/05/09) rejects '#line 32768 "configure"' because the line
12571 * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
12573 * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
12574 * doc/autoconf.texi (Generating Sources): Document this.
12576 2003-03-01 Richard Dawe <rich@phekda.freeserve.co.uk>
12578 * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
12579 file name for the m4 program, when it has an "exe" file extension.
12580 DJGPP's error messages include the error code in brackets -
12581 remove the error code during normalization.
12583 2003-02-28 Akim Demaille <akim@epita.fr>
12585 * doc/autoconf.texi (Present But Cannot Be Compiled): New.
12587 2003-02-28 Alexandre Duret-Lutz <adl@gnu.org>
12589 * doc/autoconf.texi (Limitations of Make): Remove the section
12590 about `$<' in inference rules, it was a bogus interpretation of
12591 an old Automake change. Discuss NetBSD, FreeBSD, OpenBSD, and
12592 Tru64 make in the "target lookup" section.
12593 (Automake): Automake 1.5+ no longer requires special tools to be
12594 present on the developer's host.
12596 2003-02-26 Richard Dawe <rich@phekda.freeserve.co.uk>
12598 * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
12599 to a shell that can handle redirection or quoting correctly.
12600 Override SHELL with the shell detected by configure.
12601 Use of $^O suggested by Tim van Holder.
12602 * bin/autom4te.in (BEGIN): Likewise.
12603 * bin/autoreconf.in (BEGIN): Likewise.
12604 * bin/autoscan.in (BEGIN): Likewise.
12605 * bin/autoupdate.in (BEGIN): Likewise.
12606 * bin/ifnames.in (BEGIN): Likewise.
12608 * bin/ifnames.in: Add final newline to help and version messages.
12610 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
12611 to cope with DOS-style absolute paths, when constructing
12614 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
12615 When constructing paths with IFS=:, quote the path. If we're
12616 constructing a DOS-style absolute path, we don't want to split it
12619 * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
12622 2003-02-25 Pavel Roskin <proski@gnu.org>
12624 * bin/autoheader.in: Add missing newline when printing
12625 suggestion how change AC_DEFINE call.
12627 2003-02-24 Paul Eggert <eggert@twinsun.com>
12629 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
12630 2002-09-01 patch by replacing "test -n" with "test -z".
12631 This fixes a bug found by Jeff Painter and reported by Tom Epperly in
12632 <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
12634 * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
12635 to fix a mismatch between example and discussion.
12637 2003-02-24 Kevin Ryde <user42@zip.com.au>
12639 * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
12640 format starting with "-".
12642 2003-02-20 Alexandre Duret-Lutz <adl@gnu.org>
12644 * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
12645 is not portable inside Makefile.
12647 2003-02-20 Akim Demaille <akim@epita.fr>
12649 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
12650 compiler says yeah, but preproc says nope, compiler is right.
12651 Conversely, prompt the reader to send a bug report to the
12652 maintainers of the package, not of Autoconf.
12654 2003-02-20 Klee Dienes <kdienes@apple.com>
12656 * bin/autoreconf.in (autoreconf_current_directory): Properly
12657 handle an empty aclocal.m4.
12659 2003-02-20 Akim Demaille <akim@epita.fr>
12661 * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
12662 $ac_prefix_program.
12665 2002-12-23 Paul Eggert <eggert@twinsun.com>
12667 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
12668 innocuous variant befor including <limits.h> or <assert.h>. This
12669 works around a bug reported by Albert Chin: HP-UX 11i
12670 (and earlier versions) have a <limits.h> that declares
12671 gettimeofday and many other functions.
12673 2002-12-03 Paul Eggert <eggert@twinsun.com>
12677 * NEWS, configure.ac: Update version.
12679 * doc/fdl.texi: Upgrade to FDL version 1.2.
12681 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
12682 nontrivially in main's body, so that f's external declaration is
12683 not optimized away in AIX. This should fix the bug reported by
12685 <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
12687 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
12688 _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
12689 defined, to support freestanding compilers. This should fix the
12690 bug reported by Momchil Velkov in
12691 <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
12693 * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
12694 arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
12695 obsolete AC_CHECK_TYPE. The missing empty arg was reported
12696 by Simon Josefsson in
12697 <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
12699 * Makefile.maint (www-gnu): New macro.
12700 (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
12701 the location has moved.
12703 2002-12-02 Martin Frydl <martin@systinet.com>
12705 * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
12706 \(.*\) match is too long and there is something more to be checked.
12707 <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
12709 2002-11-15 Akim Demaille <akim@epita.fr>
12713 * config/install-sh: chmod +x.
12715 * config/move-if-change: Indenting changes.
12716 * Makefile.am (AUTOMAKE_OPTIONS): Move to...
12717 * configure.ac (AM_INIT_AUTOMAKE): here.
12720 2002-11-14 Akim Demaille <akim@epita.fr>
12724 * config/config.guess, config/config.sub, config/install-sh:
12725 Update from masters.
12727 2002-11-14 Akim Demaille <akim@epita.fr>
12729 * Makefile.maint: Sync with Bison, i.e.:
12730 (po-check): Scan .l and .y files instead of the
12731 .c and the .h files that they generate. This fixes the bug
12732 reported by Tim Van Holder in:
12733 <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
12734 Look for N_ as well as for _. Try to avoid matching #define for
12738 2002-11-14 Akim Demaille <akim@epita.fr>
12740 * doc/autoconf.texi (C Compiler): Compiling several files at once.
12741 From Paul Eggert and Albert Chin-A-Young.
12743 2002-11-14 Akim Demaille <akim@epita.fr>
12745 * doc/autoconf.texi (C Compiler): Solitary backslashes.
12746 From Paul Eggert and Albert Chin-A-Young.
12748 2002-11-14 Kevin Ryde <user42@zip.com.au>
12750 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
12751 than assigning in main, to avoid HP cc +O3 optimizing it away.
12753 2002-11-12 Peter Eisentraut <peter_e@gmx.net>
12755 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
12756 option. Process --recheck after parsing all options. Pass -q
12757 option to configure on --recheck.
12758 (AC_OUTPUT): Pass -q from configure to config.status.
12759 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
12760 arguments to record.
12761 * doc/autoconf.texi (config.status Invocation): Document
12762 config.status -q option.
12764 2002-11-07 Alexandre Duret-Lutz <adl@gnu.org>
12766 * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
12767 Makefile.in if Makefile.am exists.
12768 (output): Strip `.am' from Makefiles. Don't
12769 output AC_CONFIG_FILES if no Makefiles were found.
12771 2002-11-07 Akim Demaille <akim@epita.fr>
12773 * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
12774 (local_updates): New.
12775 * Makefile.maint: Update, from CVS Bison.
12776 (local_updates): New.
12778 2002-11-06 Akim Demaille <akim@epita.fr>
12780 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
12781 declaration in extern "C" too.
12782 Reported by Roberto Bagnara.
12784 2002-11-06 Akim Demaille <akim@epita.fr>
12786 * tests/torture.at (Configuring subdirectories): Don't use grep
12788 * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
12789 Reported by Ezra Peisach.
12791 2002-11-05 Akim Demaille <akim@epita.fr>
12793 * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
12795 We _have_ to stop using the old compatibility scheme that tried to
12796 avoid useless backslashes because Libtool 1.4.3 contains a
12797 AC_DEFINE([error_t], [int],
12798 [Define to a type to use for \`error_t' if it is not
12799 otherwise available.])
12800 We _have_ to quote the single quote and backslashes with \. The
12801 old compatibility scheme saw that ` was backslashed, and therefore
12802 did not quote the single quote. Hence before this patch, Autoconf
12803 was not compatible with Libtool.
12805 2002-11-04 Paul Eggert <eggert@twinsun.com>
12807 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
12808 too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
12809 LC_NAME, LC_PAPER, LC_TELEPHONE.
12810 * doc/autoconf.texi (Special Shell Variables): Mention those vars.
12812 2002-11-04 Akim Demaille <akim@epita.fr>
12816 * Makefile.maint (update, cvs-update, po-update, do-po-update):
12818 * config/texinfo.tex: Update.
12820 2002-11-03 Akim Demaille <akim@epita.fr>
12822 * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
12824 (&autoreconf): here.
12825 ($help, $make, &parse_args, &autoreconf_current_directory):
12827 * doc/autoconf.texi (autoreconf Invocation): Adjust.
12829 2002-10-31 Bruno Haible <bruno@clisp.org>
12831 * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
12832 Change name of cache variable to ac_cv_func_malloc_0_nonnull.
12833 (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
12834 (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
12835 to ac_cv_func_realloc_0_nonnull.
12836 (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
12838 2002-10-31 Akim Demaille <akim@epita.fr>
12840 The test suite was no longer checking for trailing envvars and files.
12842 * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
12843 (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
12845 2002-10-31 Akim Demaille <akim@epita.fr>
12847 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
12848 `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
12849 Make variable, not a shell variable.
12850 Suggested by Bruno Haible.
12852 2002-10-31 Akim Demaille <akim@epita.fr>
12854 * bin/autom4te.in (load_configuration): Reject #args out of any
12857 2002-10-31 Akim Demaille <akim@epita.fr>
12859 * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
12860 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
12861 (_AC_RUN_IFELSE): Use it.
12862 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
12863 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
12864 * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
12867 2002-10-30 Akim Demaille <akim@epita.fr>
12869 * bin/autom4te.in (&parse_args, $help): Support --no-cache.
12870 * doc/autoconf.texi (autom4te Invocation): Adjust.
12871 Suggested by Tim van Holder.
12873 2002-10-29 Paul Eggert <eggert@twinsun.com>
12875 * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
12876 AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
12877 Problem reported by Bruno Haible.
12879 2002-10-29 Akim Demaille <akim@epita.fr>
12881 * doc/autoconf.texi (Header Templates): Put also in words what the
12882 pictures says to assist free style readers.
12883 (Customizing autom4te): s/--cache=/--cache /.
12885 2002-10-29 Akim Demaille <akim@epita.fr>
12887 * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
12889 sparc_address_test returns void.
12890 Use it with an argument, as prototyped.
12893 2002-10-29 Akim Demaille <akim@epita.fr>
12895 * doc/autoconf.texi (Subdirectories): Cygnus dirs have
12896 configure.in, not configure.ac.
12897 Reported by Bruno Haible.
12899 2002-10-29 Akim Demaille <akim@epita.fr>
12901 * tests/torture.at (Deep Package): New test.
12902 (Configuring subdirectories): Don't use a testSubDir as Autotest
12903 now does it itself.
12905 2002-10-29 Akim Demaille <akim@epita.fr>
12907 * bin/autoreconf.in (&parse_args, $help): Support --warnings.
12908 * doc/autoconf.texi (Invoking autom4te): Rename as...
12909 (autom4te Invocation): this, for consistency with the other nodes.
12911 2002-10-29 Akim Demaille <akim@epita.fr>
12913 * lib/autom4te.in (Autoconf): s/automate/autom4te/.
12914 Reported by Ralf Corsepius.
12916 2002-10-29 Akim Demaille <akim@epita.fr>
12918 * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
12919 characters is a back as an `obsolete' warning now.
12920 Reported by Ralf Corsepius.
12922 2002-10-28 Akim Demaille <akim@epita.fr>
12924 * configure.ac: Bump to 2.54c.
12926 2002-10-28 Akim Demaille <akim@epita.fr>
12930 * tests/foreign.at (Libtool): Adjust to broken libtoolize.
12932 2002-10-28 Akim Demaille <akim@epita.fr>
12934 * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
12935 m4 executable names, and different GNU M4 version.
12936 Reported by Ezra Peisach and Paul Jarc.
12938 2002-10-27 Akim Demaille <akim@epita.fr>
12940 * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
12943 2002-10-27 Akim Demaille <akim@epita.fr>
12945 * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
12946 * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
12947 Die when a simple Fortran program cannot be compiled.
12948 * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
12949 Issue a warning if no function is given.
12951 2002-10-27 Akim Demaille <akim@epita.fr>
12953 * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
12954 Move the documentation of AC_TRY_RUN to...
12955 (Obsolete Macros): here.
12956 Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
12957 (autoconf Invocation): Remove the duplicates with `invoking
12959 * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
12960 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
12962 2002-10-27 Akim Demaille <akim@epita.fr>
12964 * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
12965 and AC_LANG_FUNC_LINK_TRY.
12966 (Examining Libraries): Rename as...
12967 (Running the Linker): this.
12968 Document AC_LINK_IFELSE.
12969 Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
12970 (Obsolete Macros): here.
12971 * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
12972 AC_TRY_LINK_FUNC nor AC_TRY_LINK.
12973 * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
12974 * lib/autoconf/headers.m4 (AC_USG): Likewise.
12976 2002-10-27 Akim Demaille <akim@epita.fr>
12978 * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
12980 More `check config.log' messages.
12982 * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
12983 * doc/autoconf.texi (Printing Messages): Document it.
12984 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
12986 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
12987 (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
12988 (_AC_COMPILER_OBJEXT): Likewise.
12989 * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
12990 * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
12992 * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
12995 Deprecate macros with unusual interfaces.
12997 * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
12998 (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
13000 Document the new ones, and proper style.
13002 * doc/autoconf.texi (Generating Sources): New.
13003 Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
13004 (Examining Declarations): Rename as...
13005 (Running the Preprocessor): this.
13006 Document AC_PREPROC_IFELSE.
13007 (Examining Syntax): Rename as...
13008 (Running the Compiler): this.
13009 (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
13010 (Obsolete Macros): Move the definition of AC_TRY_CPP and
13011 AC_TRY_COMPILE here.
13013 2002-10-27 Akim Demaille <akim@epita.fr>
13015 Move sections around.
13017 * doc/autoconf.texi (Customizing autom4te): Remove a lost
13019 Reported by Burno Haible.
13020 (Language Choice): Now the first section of...
13021 (Writing Tests): this section.
13022 Make the introduction less C-centric.
13023 (Guidelines, Test Functions): Move to...
13024 (Writing Test Programs): this new section.
13025 (Test Programs): Merge into...
13028 2002-10-27 Akim Demaille <akim@epita.fr>
13030 * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
13031 autom4te.in that resulted in the need for two `make' runs.
13033 2002-10-27 Akim Demaille <akim@epita.fr>
13035 * configure.ac: Bump to 2.54b.
13037 2002-10-25 Akim Demaille <akim@epita.fr>
13041 * Makefile.maint: Update from the Coreutils.
13042 (AMTAR): Remove, obsolete.
13043 (automake_repo): Update to redhat.com.
13045 Adjust to the fact that ansi2knr is now hosted by Automake.
13046 * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
13047 * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
13048 Update from masters.
13049 * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
13050 autoscan.pre is not to be installed, and autoscan.list is not to
13052 (CLEANFILES): Add autoscan.list.
13053 (autoscan.list): Disable the cache.
13054 * bin/Makefile.am: Include freeze.mk.
13056 2002-10-25 Akim Demaille <akim@epita.fr>
13058 * bin/autom4te.in (&load_configuration): Take the file as
13060 (&parse_args): Handle -C, --cache.
13062 (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
13063 * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
13064 * doc/autoconf.texi (Invoking autom4te): Document --cache.
13065 Now a subsection of...
13066 (Using autom4te): This new section.
13067 (Customizing autom4te): New.
13068 (autom4te.cache): Adjust.
13070 2002-10-25 Akim Demaille <akim@epita.fr>
13072 * doc/autoconf.texi (Generic Headers): More information on how to
13073 use AC_CHECK_HEADERS.
13075 2002-10-25 Akim Demaille <akim@epita.fr>
13077 * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
13080 2002-10-25 Akim Demaille <akim@epita.fr>
13082 * bin/autoscan.in (output): Output AC_PREREQ.
13083 (%needed_macros): Add AC_PREREQ so that configure.ac without one
13086 2002-10-23 Akim Demaille <akim@epita.fr>
13088 * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
13091 2002-10-23 Akim Demaille <akim@epita.fr>
13093 * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
13094 Reported by Peter Eisentraut.
13096 2002-10-23 Akim Demaille <akim@epita.fr>
13098 * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
13101 * doc/autoconf.texi (Particular Headers): Adjust according to Paul
13102 Eggert's recommandations.
13104 2002-10-22 Akim Demaille <akim@epita.fr>
13106 * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
13107 Bison, by Paul Eggert.
13108 * doc/autoconf.texi (Particular Headers): Document it.
13110 2002-10-22 Aaron M. Ucko <amu@alum.mit.edu>
13112 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
13113 `$ac_configure_args'.
13115 2002-10-22 Akim Demaille <akim@epita.fr>
13117 * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
13118 (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
13121 2002-10-22 Akim Demaille <akim@epita.fr>
13123 Restore the 2002-10-11 Akim Demaille <akim@epita.fr> patch:
13125 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
13126 (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
13127 (_AC_CHECK_HEADER_NEW): Rename as...
13128 (AC_CHECK_HEADER): this.
13130 2002-10-22 Akim Demaille <akim@epita.fr>
13132 * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
13133 words about HP-UX cmp: it was actually a user-written cmp.
13135 2002-10-22 Akim Demaille <akim@epita.fr>
13137 * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
13138 are a few warnings.
13139 * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
13140 Quote for Perl '' strings, not "".
13141 * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
13144 2002-10-22 Akim Demaille <akim@epita.fr>
13146 * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
13147 characters is a syntax warning now.
13148 (_AS_QUOTE): Accept $2 as list of characters to quote.
13149 * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
13150 Quote for Perl, not sh.
13151 * bin/autoheader.in: When $debug, report the file which is
13153 * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
13154 `@', to tickle Perl's lists.
13155 Reported by Carlos Velasco.
13157 2002-10-18 Akim Demaille <akim@epita.fr>
13159 * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
13160 missing included files _are_ errors.
13161 Thanks to Alexandre Duret-Lutz.
13162 * tests/tools.at (autom4te cache): Adjust.
13163 * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
13164 (AT_CHECK_M4SUGAR): Use it.
13165 * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
13167 * tests/tools.at (autom4te): Now it does exit 1.
13169 2002-10-17 Akim Demaille <akim@epita.fr>
13171 * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
13172 Fixes the `AC_ARG_VAR' test failures.
13173 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
13174 * lib/freeze.mk (check-forbidden-patterns): New.
13175 * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
13176 * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
13177 * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
13179 Reported months ago by H. Merijn Brand.
13181 2002-10-17 Akim Demaille <akim@epita.fr>
13183 * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
13185 2002-10-16 Paul Eggert <eggert@twinsun.com>
13187 * Makefile.maint (wget_files): Remove ansi2knr.c.
13188 (ansi2knr.c-url_prefix): Remove.
13190 2002-10-16 Akim Demaille <akim@epita.fr>
13192 Because of caching, some files that no longer exist and are no
13193 longer required can still cause errors.
13194 Reported by Alexandre Duret-Lutz.
13196 * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
13197 to frozen files in @ARGV, as @ARGV must remain being a list of
13198 files. Rather, at M4 call sites, use this...
13199 (&files_to_options): New function.
13200 (&freeze): Use &error.
13201 (&up_to_date): If a file that was included according to the cache
13202 is no longer there, then the output is out dated.
13203 (&main): Don't even check whether a file is up to date is anyway
13205 * tests/tools.at (autom4te cache): New.
13207 2002-10-16 Akim Demaille <akim@epita.fr>
13209 * bin/autoconf.as: Kill dead options.
13210 * bin/autoupdate.in (&parse_args): Kill old options.
13211 * bin/autoreconf.in (&parse_args): Remove dead options.
13213 (&autoreconf): Report the directories we enter *and leave*, so
13214 that error messages can be easily located, and use GNU Make
13215 format, so that Emacs' compile mode understands us.
13216 * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
13217 if some file was changed instead of `print'.
13218 * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
13219 (&parse_args): Remove the dead options.
13220 * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
13221 autoheader's quiet mode.
13222 (AT_CHECK_AUTOUPDATE): Likewise.
13223 * tests/tools.at (autoupdate): Adjust.
13224 * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
13226 2002-10-11 Akim Demaille <akim@epita.fr>
13228 No longer use CPP to check for the existing of headers: use CC to
13229 check for compilability.
13231 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
13232 (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
13233 (_AC_CHECK_HEADER_NEW): Rename as...
13234 (AC_CHECK_HEADER): this.
13236 * lib/autotest/general.m4 (AT_INIT): Include the failed test
13237 numbers in the Subject suggestion.
13239 2002-10-11 Akim Demaille <akim@epita.fr>
13241 * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
13242 Suggest using AC_CHECK_DECLS instead.
13244 2002-10-11 Akim Demaille <akim@epita.fr>
13246 * tests/torture.at (AC_ARG_VAR): Have configure report the value
13249 2002-10-11 Akim Demaille <akim@epita.fr>
13251 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
13252 file name to enable parallel executions.
13253 From Sam Varshavchik.
13255 2002-10-08 Akim Demaille <akim@epita.fr>
13257 * bin/autoreconf.in (&autoreconf): Run autopoint before the first
13258 aclocal invocation, as Gettext macros might not be visible to
13260 Instead of blindly running autopoint, scan configure.ac (not the
13261 traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
13262 Reported by Paul D. Smith.
13264 2002-10-08 Paul Eggert <eggert@twinsun.com>
13266 Work around problems found when POSIXLY_CORRECT=1 is set.
13267 None of this seems to have anything to do with POSIX, really,
13268 but it's how Perl getopt works.
13269 * bin/autom4te.in (parse_args): Configure GetOpt with
13271 * doc/autoconf.texi (Invoking autom4te):
13272 --warning -> --warnings.
13273 * lib/autom4te.in: --warning -> --warnings.
13275 2002-09-28 Akim Demaille <akim@epita.fr>
13277 * doc/autoconf.texi (autom4te.cache): New section.
13279 2002-09-28 Akim Demaille <akim@epita.fr>
13281 * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
13282 (Automake-preselections): Update.
13283 * bin/autoreconf.in, bin/autoheader.in: Comment changes.
13285 2002-09-28 Akim Demaille <akim@epita.fr>
13287 * lib/autoscan/autoscan.pre: Move all the remaining rules to...
13288 * lib/autoconf/c.m4, lib/autoconf/functions.m4,
13289 * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
13290 * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
13292 2002-09-28 Akim Demaille <akim@epita.fr>
13294 * tests/torture.at (Configuring subdirectories): Be robust to
13295 users who use config.site to require for a cache: in this case,
13296 the two last configure runs, using two different sets of
13297 arguments, trigger a legitimate error.
13299 2002-09-28 Akim Demaille <akim@epita.fr>
13301 * tests/m4sh.at (Functions Support, Functions and return Support):
13304 2002-09-28 Akim Demaille <akim@epita.fr>
13306 * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
13307 autoheader are Perl programs.
13308 (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
13309 (autom4te): Specify that the sources are in the $srcdir.
13310 * doc/autoconf.texi (Installation Directory Variables): Adjust.
13312 2002-09-28 Akim Demaille <akim@epita.fr>
13314 * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
13315 (tm_zone): Move their rules to...
13316 * lib/autoconf/types.m4: here, using AN_ macros.
13317 * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
13318 (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
13319 (make, mawk, nawk, ranlib, yacc): Similarly, move to...
13320 * lib/autoconf/programs.m4: here.
13321 * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
13322 (ETAGS_FOR_AUTOCONF): New.
13325 2002-09-28 Akim Demaille <akim@epita.fr>
13327 * lib/autoconf/autoscan.m4: New file.
13328 * lib/autoconf/autoconf.m4: Include it.
13329 * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
13330 that were listed in the original autoscan.list.
13331 * lib/autoconf/headers.m4: Similarly with headers.
13332 * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
13333 (.m4.m4f): Don't pass --prepend-include, since that's done by
13334 tests/autom4te itself.
13335 * lib/autoscan/Makefile.am: Include freeze.mk.
13336 (autoscan.list): New target --this file is no longer a source.
13337 (autoscan.pre): New file.
13339 2002-09-28 Akim Demaille <akim@epita.fr>
13341 * bin/autoscan.in (@kinds): Make them singular.
13343 (&init_tables): When --debug, report the list of rules to ease
13344 tracking changes in autoscan.list.
13345 * lib/autoscan/autoscan.list (function): Strip comments, sort.
13347 2002-09-28 Akim Demaille <akim@epita.fr>
13349 * lib/autoscan/functions, lib/autoscan/headers,
13350 * lib/autoscan/identifiers, lib/autoscan/makevars,
13351 * lib/autoscan/programs: Merge into...
13352 * lib/autoscan/autoscan.list: this.
13353 * bin/autoscan.in (&init_tables): Adjust.
13355 2002-09-28 Akim Demaille <akim@epita.fr>
13357 * lib/autoscan/functions, lib/autoscan/headers,
13358 * lib/autoscan/identifiers, lib/autoscan/makevars,
13359 * lib/autoscan/programs: Make the `kind' explicit, i.e., each
13360 `functions' line is now prefixed with `function:'.
13361 * bin/autoscan.in (&init_tables): Adjust.
13363 2002-09-28 Akim Demaille <akim@epita.fr>
13365 From now on, autoscan files must always map a macro name to a
13366 word: there is no `default' macro for autoscan.
13368 * bin/autoscan.in (&init_tables): Reject entries with no macro at
13370 * lib/autoscan/functions, lib/autoscan/headers: Make the macro
13373 2002-09-28 Akim Demaille <akim@epita.fr>
13375 * bin/autoscan.in (%c_keywords): Remove.
13376 (&used): Keep only track of the words we might be interested in.
13377 (&output_kind): It is no longer needed to look for non active
13380 2002-09-27 Akim Demaille <akim@epita.fr>
13382 * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
13383 jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
13384 * lib/autoscan/functions: Adjust.
13385 * doc/autoconf.texi (Particular Functions): Adjust.
13387 2002-09-27 Akim Demaille <akim@epita.fr>
13389 * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
13391 Thanks to Bill Moseley and Paul Eggert.
13392 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
13393 the tmpdir must be created.
13394 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
13395 dir be in the build tree, instead of $TMPDIR.
13397 2002-09-27 Akim Demaille <akim@epita.fr>
13399 * bin/autoscan.in: Improve the comments.
13400 (&parse_args): Drop obsolete undocumented options.
13401 (&output_kind): Output warnings.
13402 * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
13403 (getwd): Trigger a warning.
13405 2002-09-26 Akim Demaille <akim@epita.fr>
13407 * bin/autoreconf.in: Clarify that -s is meaningless without -i.
13408 Reported by Ralf Corsepius.
13409 * doc/autoconf.texi (autoreconf Invocation): Likewise.
13411 2002-09-26 Akim Demaille <akim@epita.fr>
13413 Single suffix rules and seperated dependencies are not portable.
13415 * doc/autoconf.texi (Installation Directory Variables): Update.
13416 (Limitations of Make): Some about `Single Suffix Rules and
13417 Separated Dependencies'.
13418 * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
13419 (ifnames, autoscan, autom4te): Un-factor into several rules.
13421 2002-09-25 Paul Eggert <eggert@twinsun.com>
13423 * BUGS (Interoperability bugs): New section. Mention libtool
13424 1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
13426 2002-09-24 Paul Eggert <eggert@twinsun.com>
13428 Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
13429 make handles suffix-rules differently from GNU make.
13431 * bin/Makefile.am (SUFFIXES, .in): Remove.
13432 (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
13433 Move the body of the old .in rule here.
13435 2002-09-16 Akim Demaille <akim@epita.fr>
13437 i960 compilers create `b.out' files by default.
13438 Reported by Ralf Corsepius.
13440 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
13441 (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
13443 2002-09-13 Paul Eggert <eggert@twinsun.com>
13445 * doc/autoconf.texi (Particular Headers): Remove obsolete
13446 reference to `struct timezone' in the description of
13449 2002-09-13 Akim Demaille <akim@epita.fr>
13453 * config/config.sub, config/config.guess: Update.
13454 * Makefile.maint: Update from bits of the Coreutils 4.5.1.
13455 * Makefile.am: Adjust.
13457 2002-09-13 Akim Demaille <akim@epita.fr>
13459 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
13460 reading config.log when the compiler is rejected.
13461 Suggested by Guido Draheim.
13463 2002-09-13 Akim Demaille <akim@epita.fr>
13465 * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
13466 (chdir_init) might hang when stat'ing mounted directories.
13467 Reported by Vance Shipley.
13469 2002-09-12 Akim Demaille <akim@epita.fr>
13471 * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
13474 2002-09-12 Akim Demaille <akim@epita.fr>
13476 * doc/autoconf.texi (Defining Symbols): Present two different
13477 prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
13478 difference between 1 argument calls, and 2-3 argument calls.
13480 2002-09-12 Peter Eisentraut <peter_e@gmx.net>
13482 * doc/autoconf.texi: Review grammar and punctuation.
13484 2002-09-11 Paul Eggert <eggert@twinsun.com>
13486 * doc/autoconf.texi: Fix minor formatting, spelling, and
13488 (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
13489 AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
13492 2002-09-11 Akim Demaille <akim@epita.fr>
13494 * doc/autoconf.texi (Questions): Rename as...
13496 (Defining Directories): New.
13498 2002-09-09 Akim Demaille <akim@epita.fr>
13500 * doc/autoconf.texi (Making testsuite Scripts): Update.
13501 Suggested by Nishio Futoshi.
13503 2002-09-09 Koji Arai <JCA02266@nifty.ne.jp>
13505 * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
13506 plain `@' is wanted.
13508 2002-09-09 Akim Demaille <akim@epita.fr>
13510 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
13511 `duplicates', since the algorithm was too naive and could keep
13512 `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
13513 keep `--prefix foo --prefix bar' as `--prefix foo bar'.
13514 Reported by Ralf Corsepius.
13515 * tests/torture.at (Configuring subdirectories): Exercise these
13518 2002-09-09 Akim Demaille <akim@epita.fr>
13520 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
13521 looking for a replacement file.
13522 * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
13523 directory is relative.
13524 * doc/autoconf.texi (Generic Functions): Clarify the replacement
13525 directory definition.
13526 Reported by Andreas Schwab and Jim Meyering.
13528 2002-09-06 Akim Demaille <akim@epita.fr>
13530 * doc/autoconf.texi (Setting Output Variables): Clarify what
13531 precious variables are.
13532 Suggested by Pontus Skoeld.
13534 2002-09-05 Akim Demaille <akim@epita.fr>
13536 * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
13537 (ifnames, autoscan, autom4te): Since we don't only depend on
13538 configure.ac variables (such as VERSION etc.), but also on prefix
13539 and so forth, depend on Makefile, not configure.ac.
13540 Reported by Alexandre Duret-Lutz.
13541 * doc/autoconf.texi (Installation Directory Variables): Adjust.
13543 2002-09-05 Kevin Ryde <user42@zip.com.au>
13545 * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
13546 doesn't seem to be confined to ia64, just say "some versions".
13548 2002-09-04 Akim Demaille <akim@epita.fr>
13550 * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
13552 * Makefile.am (maintainer-clean-local): Remove.
13553 (MAINTAINERCLEANFILES): Remove COPYING.
13555 2002-09-03 Paul Eggert <eggert@twinsun.com>
13557 * doc/autoconf.texi (Configuration Commands): Remove obsolete
13558 example for AC_CONFIG_COMMANDS_PRE. Problem reported by Marcus
13561 2002-09-03 Akim Demaille <akim@epita.fr>
13563 * configure.ac: Bump to 2.53d.
13564 * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
13565 as of today, on Automake's team suggestion.
13567 2002-09-03 Akim Demaille <akim@epita.fr>
13571 2002-09-02 Akim Demaille <akim@epita.fr>
13573 * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
13575 * configure.ac: Disable SITE_MACRO_DIR.
13577 2002-09-02 Jim Meyering <meyering@lucent.com>
13579 * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
13580 i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
13581 Also, tweak grammar: s/make sure to/be sure to/.
13583 2002-09-02 Paul Eggert <eggert@twinsun.com>
13585 * doc/autoconf.texi (Limitations of Builtins): Explain why logical
13586 directory names are generally preferable to physical names.
13588 2002-09-02 Akim Demaille <akim@epita.fr>
13590 * lib/Autom4te/General.pm (&update_file): s/die/error/.
13591 Reported by Raja R. Harinath.
13592 * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
13593 * bin/autoupdate.in: Use error instead of die.
13595 2002-09-01 Paul Eggert <eggert@twinsun.com>
13597 * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
13598 ordinary shell concatenation rather than echo+tr+sed command that
13599 runs afoul of a long-line-related sed bug in Solaris 8.
13601 * bin/autoheader.in (parse_args): --warning -> --warnings.
13603 * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
13604 stdout, as traditional "ls" does.
13605 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
13606 _AC_COMPILER_EXEEXT_O): Likewise.
13607 * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
13609 * bin/autoconf.as: Add --prepend-include option. This patch was
13610 applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
13611 but bin/autoconf.in is generated automatically from bin/autoconf.as.
13613 * bin/autoconf.in, configure: Regenerate.
13615 * doc/autoconf.texi (Special Shell Variables): Mention
13616 ENV, MAIL, MAILPATH, PS1, PS2, PS4. Index PWD.
13618 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
13619 MAILPATH and set PS1, PS2, PS4 to default values, to work
13620 around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
13621 For LC_ALL etc, first try to set to "C" as POSIX requires and as
13622 the Autoconf documentation specifies; fall back to "unset" only if
13623 this fails. Use a shell for-loop for this rather than an m4 loop,
13624 to shorten the output script.
13626 2002-08-30 Paul Eggert <eggert@twinsun.com>
13628 * doc/autoconf.texi (Special Shell Variables): Mention POSIX
13629 1003.1-2001's requirements for CDPATH. Give a simpler workaround
13630 for the CDPATH problem. Document PWD.
13631 (Limitations of Builtins): Document the problem that "cd $foo" and
13632 "ls $foo" may refer to different directories in shells conforming
13633 to POSIX 1003.1-2001. Use PS1 rather than CDPATH for "unset"
13634 example, since the old example is now out of date.
13636 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
13637 FOO" and "ls FOO" talk about different directories; this catches
13638 problems when POSIX 1003.1-2001 "cd" fails due to symlink
13641 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
13642 of rolling our own unset.
13643 (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
13644 in practice we needn't worry about CDPATH if unset doesn't work.
13646 * Makefile.in, aclocal.m4, bin/Makefile.in,
13647 config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
13648 lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
13649 lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
13650 lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
13651 tests/Makefile.in: Regenerate with Automake 1.6.3.
13653 * config/config.guess, config/config.sub, config/mkinstalldirs:
13656 * configure: Regenerate with self.
13658 2002-08-30 Kevin Ryde <user42@zip.com.au>
13660 * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
13663 2002-08-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13665 * bin/autom4te.in (Request::load): Correctly test for "do" read
13668 2002-08-29 Akim Demaille <akim@epita.fr>
13670 * lib/Autom4te/General.pm (&xqx): New.
13671 (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
13672 hand, which is not portable.
13674 * bin/autom4te.in: Use them.
13675 Use &error instead of die.
13676 * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
13679 2002-08-17 Paul Eggert <eggert@twinsun.com>
13681 * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
13682 default list of compilers to try, since it was long ago superseded
13683 by the ksh fc builtin. Suggested by Steven G. Johnson.
13685 2002-07-31 Alexandre Duret-Lutz <duret_g@epita.fr>
13687 * doc/autoconf.texi (Invoking autom4te): End the option table,
13688 fixing a bug introduced by the previous patch.
13689 (Limitations of Make): Add a 'target lookup' subentry in the
13690 'VPATH' entry. Rewrite all `make' occurences as `@command{make}'.
13692 2002-07-29 Mark D. Roth <roth@feep.net>
13694 * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
13695 options and use $AUTOM4TE_PATH.
13696 * doc/autoconf.texi: Remove documentation of autom4te
13697 --include-envvar and --site-macro-subdir options and document
13698 use of $AUTOM4TE_PATH.
13699 * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
13700 arguments from each language section.
13702 2002-07-29 Paul Eggert <eggert@twinsun.com>
13704 * doc/install.texi: Include copyright symbol in copyright notice.
13706 * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
13708 (AM_MAKEINFOFLAGS): New macro.
13709 * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
13710 * Makefile.am (INSTALL): Use the new macros.
13711 Use -o rather than --output, since "missing" does not grok --output.
13713 2002-07-25 Alexandre Duret-Lutz <duret_g@epita.fr>
13715 * doc/autoconf.texi (Limitations of Make): Escaped newlines in
13716 comments do not always work. Never trust the exit status of
13719 2002-07-24 Kevin Ryde <user42@zip.com.au>
13721 * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
13722 Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
13724 2002-07-23 Paul Eggert <eggert@twinsun.com>
13726 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
13727 Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
13728 apparently treats PATH="nonexistent" as if it contained ".".
13729 Bug reported by Stefan `Sec' Zehl.
13731 2002-07-22 Alexandre Duret-Lutz <duret_g@epita.fr>
13733 * doc/autoconf.texi (Limitations of Make): Mention the special
13734 handling of the obj/ directory by BSD make.
13736 2002-07-20 Kevin Ryde <user42@zip.com.au>
13738 * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
13741 2002-07-19 Akim Demaille <akim@epita.fr>
13743 * doc/autoconf.texi (Function Portability): `exit'.
13744 (Programming in M4sh): Ethymology of M4sh.
13746 2002-07-19 Akim Demaille <akim@epita.fr>
13748 * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
13750 2002-07-18 Akim Demaille <akim@epita.fr>
13754 2002-07-18 Akim Demaille <akim@epita.fr>
13756 * config/config.guess, config/config.sub: Update.
13758 2002-07-18 Akim Demaille <akim@epita.fr>
13760 Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
13763 * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
13764 * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
13765 * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
13767 2002-07-18 Akim Demaille <akim@epita.fr>,
13768 Alexandre Duret-Lutz <duret_g@epita.fr>
13770 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
13771 _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
13773 2002-07-17 Russ Allbery <rra@stanford.edu>
13775 * doc/autoconf.texi (Initializing configure): Clarify the
13776 description of the tarname default.
13778 2002-07-17 Andreas Buening <andreas.buening@nexgo.de>
13780 * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
13781 ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
13782 latter was not run.
13784 2002-07-17 Akim Demaille <akim@epita.fr>
13786 * lib/Autom4te/General.pm (find_file): Browse the directories in
13787 the order they are given.
13789 2002-07-17 Akim Demaille <akim@epita.fr>
13791 * tests/wrapsh.as, tests/wrappl.as: Merge into...
13792 * tests/wrapper.as: this.
13793 * tests/Makefile.am, configure.ac: Adjust.
13795 2002-07-17 Mark D. Roth <roth@feep.net>
13797 * configure.ac: Add --enable-site-macro-dir option.
13798 * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
13799 * bin/autom4te.in: Add --prepend-include, --include-envvar, and
13800 --site-macro-subdir options.
13801 * bin/autoconf.in: Add --prepend-include option.
13802 * bin/autoheader.in: Add --prepend-include option.
13803 * bin/autoreconf.in: Add --prepend-include option.
13804 * bin/autoscan.in: Add --prepend-include option.
13805 * bin/autoupdate.in: Add --prepend-include option.
13806 * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
13807 macro directory, remove note that include path directories are
13808 used in reverse order, and document --prepend-include option.
13809 * lib/autom4te.in: Use --prepend-include instead of --include.
13810 * tests/wrapsh.in: Use --prepend-include instead of --include.
13812 2002-07-17 Akim Demaille <akim@epita.fr>
13814 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
13816 * doc/autoconf.texi (Initializing configure): Adjust.
13818 2002-07-17 Akim Demaille <akim@epita.fr>
13820 * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
13821 (_AC_FUNC_MALLOC): New.
13822 (AC_FUNC_MALLOC): Use the latter.
13823 Define HAVE_MALLOC to 0 if broken.
13824 * doc/autoconf.texi (Particular Functions): Adjust.
13826 2002-07-16 Akim Demaille <akim@epita.fr>
13828 * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
13829 * doc/autoconf.texi (C Compiler): Adjust.
13831 2002-07-09 Akim Demaille <akim@epita.fr>
13833 * doc/autoconf.texi: Properly set the ``header'' part.
13835 2002-07-09 Akim Demaille <akim@epita.fr>
13837 * doc/autoconf.texi (Systemology): Some about Darwin.
13839 2002-07-09 Alexandre Duret-Lutz <duret_g@epita.fr>
13841 * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
13842 Don't use AC_REQUIRE in AU_DEFUN.
13844 2002-07-09 Art Haas <ahaas@neosoft.com>
13846 * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
13848 2002-07-02 Alexandre Duret-Lutz <duret_g@epita.fr>
13850 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
13851 bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
13852 lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
13853 so that Emacs setups GNU style for perl-mode and cperl-mode.
13855 2002-06-27 Paul Eggert <eggert@twinsun.com>
13857 * config/install-sh: Quote $src. Prefer || to test's -o option,
13858 as per "Limitations of Builtins".
13859 * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
13860 * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
13862 * tests/mktests.sh: Use grep instead of fgrep, as per
13863 "Limitations of Builtins".
13865 2002-06-15 Paul Eggert <eggert@twinsun.com>
13867 * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
13868 autom4te_perllibdir): Set to top build dir or src dir as appropriate,
13869 so that we consistently test the just-built programs.
13870 * tests/wrappl.as: Likewise.
13872 2002-06-12 Paul Eggert <eggert@twinsun.com>
13874 * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
13875 name, so that symlinks to 'autoconf' work properly. Bug reported
13877 * bin/autoheader.in (AUTOM4TE): Likewise.
13878 * bin/autoreconf.in (autoconf, autoheader): Likewise.
13879 * bin/autoscan.in (autom4te): Likewise.
13880 * bin/autoupdate.in (autom4te): Likewise.
13882 * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
13883 btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
13886 2002-06-11 Andreas Schwab <schwab@suse.de>
13888 * doc/autoconf.texi: Add more dir entries.
13890 2002-06-10 Alexandre Duret-Lutz <duret_g@epita.fr>
13892 * bin/autom4te.in ($cache): Don't define using `$me', the name
13893 of the cache should not depend on the name under which autom4te
13896 2002-06-07 Akim Demaille <akim@epita.fr>
13898 * tests/tools.at (autoconf: forbidden tokens, basic)
13899 (autoconf: forbidden tokens, exceptions): Adjust to the change of
13900 words in autom4te.in.
13902 2002-06-07 Peter Eisentraut <peter_e@gmx.net>
13904 * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
13905 _AC_LANG_PROGRAM_C_F77_HOOKS.
13907 2002-06-07 Akim Demaille <akim@epita.fr>
13909 * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
13911 (AC_REPLACE_FNMATCH): this.
13912 * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
13913 AC_FUNC_FNMATCH_GNU.
13915 2002-06-07 Akim Demaille <akim@epita.fr>
13917 * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
13918 Rosetta Stone for Unix.
13920 2002-06-07 Akim Demaille <akim@epita.fr>
13922 * bin/autom4te.in (warn_forbidden): When rejecting a token,
13923 suggest m4_pattern_allow.
13924 Suggested by Adam J. Richter.
13926 2002-06-07 Akim Demaille <akim@epita.fr>
13928 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
13929 ac_config_libobj_dir.
13930 (AC_CONFIG_LIBOBJ_DIR): New.
13931 * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
13932 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
13933 Use ac_config_libobj_dir to find the replacement files.
13934 (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
13935 (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
13936 (AC_REPLACE_FNMATCH_GNU): these.
13937 (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
13938 * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
13939 * tests/mktests.sh (ac_exclude_list): Don't check
13940 AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
13942 2002-06-06 Paul Eggert <eggert@twinsun.com>
13944 * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
13945 if ln doesn't work.
13947 * doc/autoconf.texi (Configuration Links): Likewise.
13948 (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
13950 2002-06-05 Paul Eggert <eggert@twinsun.com>
13952 * config/config.guess, config/config.sub, config/texinfo.tex:
13953 Update from masters.
13955 2002-05-29 Paul Eggert <eggert@twinsun.com>
13957 * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
13958 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
13959 * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
13961 * lib/autoconf/Makefile.am (check-local): Likewise.
13962 * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
13963 * lib/autoconf/types.m4 (commentary only): Likewise.
13964 * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
13965 * lib/autotest/Makefile.am (check-local): Likewise.
13966 * lib/m4sugar/Makefile.am (check-local): Likewise.
13967 * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
13968 * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
13970 * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
13971 * doc/autoconf.texi (Particular Programs): Document them.
13972 (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
13975 2002-05-27 Paul Eggert <eggert@twinsun.com>
13977 * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
13978 * NEWS, doc/autoconf.texi (Particular Types): Document it.
13979 * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
13980 instead of AC_MBSTATE_T, which never existed.
13982 2002-05-23 Akim Demaille <akim@epita.fr>
13984 * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
13985 version of Autoconf that is discussed.
13987 2002-05-22 Paul Eggert <eggert@twinsun.com>
13989 * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
13990 from the default list of compilers to try. Suggested by
13992 * NEWS: Document the above.
13993 * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
13995 2002-05-17 Paul Eggert <eggert@twinsun.com>
13997 * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
13998 the member is itself an aggregate. Bug reported by Sergey Poznyakoff.
13999 This improves on an earlier suggestion by H. Peter Anvin.
14001 2002-05-16 Paul Eggert <eggert@twinsun.com>
14003 AC_FUNC_FNMATCH now tests only for POSIX compatibility.
14004 AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
14005 Both macros now accept an optional source-dir arg.
14006 New macro AC_GNU_SOURCE to define _GNU_SOURCE.
14008 * NEWS: Document this.
14009 * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
14011 * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
14012 (AC_FUNC_FNMATCH): Use it. Test only for POSIX conformance,
14013 not for GNU extensions; this undoes part of the 2000-11-03 change,
14014 reverting to 2.13-compatible behavior.
14015 Add new optional argument DIR.
14016 (AC_FUNC_FNMATCH_GNU): New macro.
14018 * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
14020 2002-05-08 Paul Eggert <eggert@twinsun.com>
14022 * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
14023 Don't require AC_SYS_POSIX_TERMIOS. The test is unnecessary,
14024 and it causes a 'test' syntax error if it fails.
14025 Bug reported by Stephen Gildea.
14027 * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
14028 If prototypes are supported, use them to check this at compile-time,
14029 instead of trying to check it at run-time. If we must do a run-time
14030 check, assume that setvbuf is standard when cross-compiling, as
14031 nonstandard setvbuf occurs only on ancient and unlikely hosts.
14032 Bug reported by Paul D. Smith.
14034 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
14035 argument specifying location of getloadavg.c. This removes a
14036 FIXME. This idea was taken from Jim Meyering's implementation in
14038 * doc/autoconf.texi (Particular Functions): Document this.
14039 Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
14040 that's what the code does; this fixes a bug reported by
14043 2002-05-03 Akim Demaille <akim@epita.fr>
14045 * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
14046 autopoint instead of gettextize.
14047 ($uses_alocal): Rename as...
14048 ($uses_aclocal): this.
14049 * doc/autoconf.texi (autoreconf Invocation): Adjust.
14050 Suggested by Bruno Haible.
14052 2002-05-03 Akim Demaille <akim@epita.fr>
14054 * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
14056 2002-04-29 Paul Eggert <eggert@twinsun.com>
14058 * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
14059 files to be 1 second older; just set them to be the same time.
14060 Also, sleep 1 second after the first aclocal, to work around
14061 problems with sub-second time stamps on the input files.
14063 2002-04-29 Thien-Thi Nguyen <ttn@gnu.org>
14065 * doc/autoconf.texi: Mention "set -e -x" lossage
14066 under node "Limitations of Builtins".
14068 2002-04-29 Akim Demaille <akim@epita.fr>
14070 * doc/install.texi: Better wording for setting variables when
14072 From Christian Cornelssen.
14074 2002-04-29 Akim Demaille <akim@epita.fr>
14076 * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
14077 of lack of $LINENO support, then the test will compare the $LINENO
14078 in testsuite vs. the lineno in the test file. This is wrong, of
14080 Be sure to protect it.
14081 Reported by Patrick Welche.
14083 2002-04-25 Akim Demaille <akim@epita.fr>
14085 * doc/autoconf.texi (Obsolete Macros): Typo.
14086 Reported by Vladimir Volovich.
14088 2002-04-25 Akim Demaille <akim@epita.fr>
14090 * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
14091 than some of the input files, hence, on the second run of aclocal,
14092 if some of its input are younger, make them older.
14093 Suggested by Paul Eggert.
14095 2002-04-25 Akim Demaille <akim@epita.fr>
14097 * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
14098 Thanks to Paul Eggert.
14100 2002-04-25 Akim Demaille <akim@epita.fr>
14102 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
14103 and ac_subst_vars be sh variables containing the list of
14104 AC_SUBST_FILES'ed and AC_SUBST'ed identifiers. Output them in the
14106 (_AC_INIT_PREPARE): Use them to log them.
14107 (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
14108 (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
14109 _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
14110 _AC_SUBST_FILES and _AC_SUBST_VARS.
14111 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
14113 2002-04-24 Akim Demaille <akim@epita.fr>
14115 * bin/autoreconf.in (autoreconf): Run automake after autoconf and
14116 autoheader, so that automake does not complain about a missing
14117 config.h.in that was to be created.
14119 2002-04-23 Akim Demaille <akim@epita.fr>
14121 * bin/autoheader.in (parse_args): --warning takes an argument.
14124 2002-04-22 Peter Eisentraut <peter_e@gmx.net>
14126 * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
14127 and bb.out when cleaning up.
14129 2002-04-22 Akim Demaille <akim@epita.fr>
14133 2002-04-22 Akim Demaille <akim@epita.fr>
14135 * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
14137 2002-04-22 Akim Demaille <akim@epita.fr>
14139 * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
14141 Reported by Gregory Giannoni.
14143 2002-04-22 Akim Demaille <akim@epita.fr>
14145 * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
14146 Fixes false failures on Darwin.
14148 2002-04-21 Paul Eggert <eggert@twinsun.com>
14150 * TODO, bin/autoupdate.in, doc/autoconf.texi,
14151 lib/autoconf/general.m4, lib/autoconf/libs.m4,
14152 lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
14153 tests/tools.at: Minor spelling and grammar fixes.
14155 2002-04-20 Paul Eggert <eggert@twinsun.com>
14157 * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
14158 ZSH_VERSION fixes. Bug reported by Raja R Harinath.
14159 * lib/autotest/general.m4 (AT_INIT): Likewise.
14160 * tests/atgeneral.m4 (AT_INIT): Likewise.
14162 2002-04-19 Paul Eggert <eggert@twinsun.com>
14164 * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
14165 doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
14166 lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
14167 lib/autoconf/functions.m4, lib/autoconf/general.m4,
14168 lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
14169 lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
14170 tests/atspecific.m4, tests/semantics.at, tests/torture.at:
14171 Minor spelling and grammar fixes.
14173 * doc/autoconf.texi: Follow the outline suggested in the GNU
14174 Sample Texts sections of the Texinfo 4.2 manual. Most
14175 importantly, this makes sure that the copyright notices appear in
14176 all output formats. You probably need Texinfo 4.2 to generate
14179 Fix some bugs when using "$@" when there might be zero positional
14180 arguments in cases where this matters.
14182 * bin/autoconf.as: Rewrite so that the problem does not come up.
14183 * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
14184 * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
14185 * lib/autotest/general.m4 (AT_INIT): Likewise.
14187 * bin/autoheader.in: Use 'case' statement to work around problem.
14188 * bin/auto4mte.in: Likewise.
14189 * bin/autoreconf.in: Likewise.
14190 * bin/autoscan.in: Likewise.
14191 * bin/autoupdate.in: Likewise.
14192 * bin/ifnames.in: Likewise.
14194 * doc/autoconf.texi (Shell Substitutions): Document the problem.
14196 * lib/autotest/general.m4 (AT_INIT):
14197 Use Zsh alias to work around problem.
14198 * tests/atgeneral.m4 (AT_INIT): Likewise.
14200 * tests/c.at: We can't have zero arguments, so remove workaround
14201 that is not portable to Zsh.
14203 2002-04-19 Alexandre Duret-Lutz <duret_g@epita.fr>
14205 * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
14206 from aclocal.m4 too.
14208 2002-04-12 Akim Demaille <akim@epita.fr>
14210 * tests/wrappl.as: New, M4sh precursor of wrappl.in.
14212 2002-04-10 Akim Demaille <akim@epita.fr>
14214 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
14215 workaround for ${1+"$@"}.
14216 * doc/autoconf.texi (Shell Substitutions): Explain it.
14217 From Oliver Kiddle and Peter Stephenson.
14219 Have M4sh perform minimal shell sanitizing.
14221 * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
14223 (_AS_PREPARE): this new macro.
14225 (AS_INIT): Invoke AS_SHELL_SANITIZE.
14226 * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
14228 Adjust Autoconf and Autotest.
14230 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
14231 AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
14232 * lib/autotest/general.m4 (AT_INIT): Likewise.
14233 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
14234 Invoke _AS_PREPARE (not AS_PREPARE) in addition to
14237 Use this M4sh to generate Autoconf's shell scripts.
14239 * tests/wrapsh.as: New, precursor of wrapsh.in.
14240 * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
14241 on Autotest and M4sh.
14242 ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
14243 (wrapsh.in): New target.
14244 * bin/autoconf.as: New, precursor of autoconf.in.
14245 (autoconf.in): New target.
14247 2002-04-09 Alexandre Duret-Lutz <duret_g@epita.fr>
14249 * doc/autoconf.texi (Limitations of Make): Mention the issue
14250 with indented comments in rules.
14252 2002-04-09 Andreas Schwab <schwab@suse.de>
14254 * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
14255 ac_top_builddir when setting ac_abs_top_builddir.
14257 2002-04-06 Kevin Ryde <user42@zip.com.au>
14259 * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
14260 (Portable Shell): Cross reference to Systemology.
14262 2002-04-05 Akim Demaille <akim@epita.fr>
14264 * bin/autoreconf.in (autoreconf): Be sure to accumulate the
14265 directories when descending in a SUBDIRS.
14266 Reported by Ezra Peisach.
14268 2002-04-04 Andreas Schwab <schwab@suse.de>
14270 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
14271 contains no literal separators.
14273 2002-04-03 Akim Demaille <akim@epita.fr>
14275 * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
14276 (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
14277 Use dnl, not the KILL diversion.
14279 (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
14280 (AC_CONFIG_LINKS): here.
14282 Don't use the KILL diversion, as it kills spurious output, which
14283 results in failures being hidden.
14284 Use m4_defn where appropriate.
14285 (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
14286 after the second argument.
14288 * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
14289 syntax, as it is provided by M4sugar.
14290 * tests/torture.at (Multiple AC_CONFIG_FILES): New.
14292 2002-04-03 Andreas Schwab <schwab@suse.de>
14294 * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
14295 expanded if $# <= 2.
14297 * bin/autoreconf.in (autoreconf): Run automake after rerunning
14300 2002-04-03 Akim Demaille <akim@epita.fr>
14302 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
14303 (_AC_COMPILER_EXEEXT_REJECT): New.
14304 Also recognize *.bb and *.bbg as compilation byproducts.
14305 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
14306 (_AC_COMPILER_OBJEXT): Use them.
14307 Fixes Debian #138666.
14309 2002-04-02 Peter Eisentraut <peter_e@gmx.net>
14311 Integrate AC_PROG_CC_STDC into AC_PROG_CC.
14313 * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
14314 AU_DEFUN old name. Use _AC_COMPILE_IFELSE.
14315 (AC_PROG_CC): Call _AC_PROG_CC_STDC.
14316 (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
14317 (AC_C_CONST): Same.
14318 (AC_C_INLINE): Same.
14319 (AC_C_PROTOTYPES): Same. Require AC_PROG_CC instead.
14320 * doc/autoconf.texi, NEWS: Document.
14321 * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
14324 2002-04-02 Akim Demaille <akim@epita.fr>
14326 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
14327 _AS_MKDIR_P_PREPARE.
14329 2002-03-28 Kevin Ryde <user42@zip.com.au>
14331 * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
14332 to avoid versions of HP C which don't allow that.
14334 2002-03-27 Paul Eggert <eggert@twinsun.com>
14336 * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
14337 (AS_SHELL_SANITIZE): Invoke it.
14338 (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
14340 2002-03-26 Akim Demaille <akim@epita.fr>
14342 * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
14344 2002-03-26 Akim Demaille <akim@epita.fr>
14346 * doc/autoconf.texi (Introduction): The GNATS base moved.
14348 2002-03-25 Paul Eggert <eggert@twinsun.com>
14350 * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
14351 as POSIX requires, as it doesn't work with Zsh.
14352 * doc/autoconf.texi (Assignments): Document the problem.
14354 2002-03-25 Alexandre Duret-Lutz <duret_g@epita.fr>
14356 * doc/autoconf.texi (Limitations of Make): Mention more issue
14357 about VPATH, overriding of macros in sub-makes, and handling of
14360 2002-03-21 Paul Eggert <eggert@twinsun.com>
14362 * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
14363 problem with here-document buffer boundaries.
14365 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
14366 when reinvoking the shell, to work around problems with installers
14367 who put strange things like "cd" commands in their environments.
14369 2002-03-19 Akim Demaille <akim@epita.fr>
14371 * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
14374 2002-03-19 Akim Demaille <akim@epita.fr>
14376 * bin/autoscan.in (scan_file): Specify the location in `&used'
14380 2002-03-19 Akim Demaille <akim@epita.fr>
14382 * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
14383 From Nishio Futoshi.
14385 2002-03-19 Akim Demaille <akim@epita.fr>
14387 * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
14389 2002-03-18 Paul Eggert <eggert@twinsun.com>
14391 * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
14392 (Limitations of Usual Tools): Add mkdir section.
14394 * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
14395 (AS_MKDIR_P): Require it. Use mkdir -p if available, falling
14396 back on AS_DIRNAME to compute prefixes otherwise; this is
14397 roughly what mkinstalldirs does. That way, we need not have
14398 our own filename disassembler. The old disassembler did not
14399 work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
14401 * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
14402 Create at_test_all by a series of assignments,
14403 not by a single assignment of a long string. The latter causes ksh
14404 version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
14405 presumably because of a buffer overrun.
14407 2002-03-14 Paul Eggert <eggert@twinsun.com>
14409 * lib/autotest/general.m4 (at_times_skip):
14410 Renamed from at_times. Now a boolean.
14411 ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
14412 says 'times: not found'.
14414 2002-03-14 Akim Demaille <akim@epita.fr>
14416 * bin/autoreconf.in (&study_gettextize): New.
14417 (&autoreconf): Handle newest gettextize.
14418 Rerun aclocal if needed.
14419 Suggested by Andreas Schwab.
14421 2002-03-13 Akim Demaille <akim@epita.fr>
14423 * doc/autoconf.texi (Special Shell Variables): More about IFS.
14425 2002-03-13 Akim Demaille <akim@epita.fr>
14427 * doc/autoconf.texi (Header Portability): New.
14428 Add information about stdint.h and inttypes.h from Paul Eggert.
14430 2002-03-13 Akim Demaille <akim@epita.fr>
14432 * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
14436 2002-03-12 Akim Demaille <akim@epita.fr>
14438 * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
14441 2002-03-11 Andreas Schwab <schwab@suse.de>
14443 * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
14444 does not do it if --with-lispdir is given.
14446 2002-03-08 Akim Demaille <akim@epita.fr>
14450 2002-03-08 Akim Demaille <akim@epita.fr>
14452 * doc/autoconf.texi (Subdirectories): Clarify that the
14453 subdirectory should exist.
14455 2002-03-08 Akim Demaille <akim@epita.fr>
14457 * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
14459 2002-03-08 Akim Demaille <akim@epita.fr>
14461 * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
14462 aliases the actual variables, and modifications of the former
14465 2002-03-08 Akim Demaille <akim@epita.fr>
14467 * bin/autom4te.in (&handle_m4): Protect us from corrupted file
14468 because of C-c: have m4 output in tmp files, then mv them.
14470 2002-03-08 Akim Demaille <akim@epita.fr>
14472 * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
14473 * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
14474 * bin/ifnames.in: Copyright update.
14476 2002-03-08 Akim Demaille <akim@epita.fr>
14478 * doc/autoconf.texi (Invoking autom4te): New.
14480 2002-03-05 Akim Demaille <akim@epita.fr>
14482 * doc/autoconf.texi (Specifying Names): Clarification suggested by
14485 2002-03-05 Akim Demaille <akim@epita.fr>
14489 2002-03-04 Akim Demaille <akim@epita.fr>
14491 * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
14492 * lib/autoconf/general.m4 (AC_INIT): More informative error
14493 message for LIBOBJ.
14495 2002-03-04 Akim Demaille <akim@epita.fr>
14497 * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
14500 2002-03-04 Akim Demaille <akim@epita.fr>
14502 * doc/autoconf.texi (Transforming Names): Equality between target
14503 and host is irrelevant.
14504 (Specifying Names, Canonicalizing): Remove all references to the
14505 backward compatibility hooks. Rather, collect them all into...
14506 (Hosts and Cross-Compilation): this new section.
14507 * doc/install.texi (System Type): Ditto.
14508 * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
14509 that `--host' implies cross-compilation.
14511 2002-03-04 Akim Demaille <akim@epita.fr>
14513 * doc/autoconf.texi (Evaluation Macros): New.
14514 * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
14516 (_m4_foreach): Define the variant with immediate evaluation so
14517 that it contains exactly the items, not an expression which
14518 evaluation is the current item.
14519 (m4_re_string, m4_re_word): Don't over quote them.
14521 2002-03-04 Akim Demaille <akim@epita.fr>
14523 Instead of having stacking `shift's evaluated at the end, let
14524 `foreach' loops immediately evaluate them.
14526 * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
14527 $*. This is the n-th time I change my mind, but hopefully this is
14530 (m4_text_wrap): Use m4_foreach, which is finally correct _and_
14532 (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
14533 it was only a hack for m4_text_wrap.
14534 (m4_car2): Remove, replaced by...
14536 (_m4_foreach): Adjust.
14537 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
14538 m4_bpatsubst for clarification.
14540 2002-03-04 Akim Demaille <akim@epita.fr>
14542 * doc/autoconf.texi (Changequote is Evil): New.
14544 2002-03-03 Kevin Ryde <user42@zip.com.au>
14546 * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
14547 on old systems like SunOS.
14549 2002-03-01 Peter Eisentraut <peter_e@gmx.net>
14551 * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
14552 lib/autoconf/functions.m4, lib/autoconf/general.m4,
14553 lib/autoconf/headers.m4, lib/autoconf/lang.m4,
14554 lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
14557 2002-02-28 Akim Demaille <akim@epita.fr>
14559 * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
14560 message to be sent.
14562 2002-02-28 Kevin Ryde <user42@zip.com.au>
14564 * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
14566 2002-02-25 Akim Demaille <akim@epita.fr>
14568 * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
14569 From Akinori Musha.
14571 2002-02-13 Alexandre Duret-Lutz <duret_g@epita.fr>
14573 * lib/Autom4te/XFile.pm (getline, getlines): New functions,
14574 translate \r\n to \n.
14576 2002-02-07 Akim Demaille <akim@epita.fr>
14580 2002-02-07 Akim Demaille <akim@epita.fr>
14582 Fix Autoconf PR/209.
14583 Also reported by Frank Denis.
14585 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
14587 2002-02-07 Akim Demaille <akim@epita.fr>
14589 Fix Autoconf PR/207:
14590 AC_PREFIX_PROGRAM fails with dashed program names
14592 * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
14593 variable when looking for the prefix program.
14594 Now it also works for shell variables.
14596 2002-02-07 Akim Demaille <akim@epita.fr>
14598 * doc/autoconf.texi (Limitations of Builtins): More about
14601 2002-02-06 Akim Demaille <akim@epita.fr>
14603 * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
14604 case/esac, some shells don't support it.
14605 Reported by Zack Weinberg.
14606 * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
14608 2002-02-06 Akim Demaille <akim@epita.fr>
14610 * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
14611 sure not to introduce newlines in at_groups.
14612 * lib/autotest/Makefile.am (autotest.m4f): Typo.
14614 2002-02-06 Akim Demaille <akim@epita.fr>
14616 * tests/torture.at (Configuring subdirectories): Skip if aclocal
14619 2002-02-05 Paul Eggert <eggert@twinsun.com>
14621 * doc/autoconf.texi (Specific Compiler Characteristics):
14622 Describe HP-UX cc bug workaround more accurately.
14623 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
14625 * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
14626 cross-compilers, too. This undoes some of the most recent change
14629 2002-02-05 Akim Demaille <akim@epita.fr>
14631 * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
14632 to make sure they are up to date when `check' is run.
14634 2002-02-05 Akim Demaille <akim@epita.fr>
14636 * doc/autoconf.texi (Making testsuite Scripts): Document
14639 2002-02-05 Akim Demaille <akim@epita.fr>
14641 * lib/freeze.mk: New.
14643 2002-02-05 Akim Demaille <akim@epita.fr>
14645 Implement `autom4te --freeze'.
14647 * bin/autom4te.in (&freeze): New.
14648 * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
14649 * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
14651 2002-02-05 Akim Demaille <akim@epita.fr>
14653 * bin/autom4te.in (&parse_args): Implement `frozen files are
14654 optional are the sum of the previous files on the command line'.
14655 Also, pass `--reload-state=' on them, so...
14656 (handle_m4): don't.
14657 * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
14658 (M4sh): Rely on M4sugar.
14659 (Autotest, M4sh, M4sugar): Use frozen files.
14661 2002-01-31 Akim Demaille <akim@epita.fr>
14663 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
14664 * doc/autoconf.texi (Initializing configure): Adjust.
14666 2002-01-30 Akim Demaille <akim@epita.fr>
14668 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
14669 alphanumeric to `-' instead of `_'.
14671 2002-01-30 Akim Demaille <akim@epita.fr>
14673 * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
14674 for plain code, the other for cross-compilation code. The latter
14675 is now run with GCC only.
14676 * doc/autoconf.texi (Compilers and Preprocessors): New.
14678 2002-01-30 Akim Demaille <akim@epita.fr>
14680 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
14682 * doc/autoconf.texi (Initializing configure): Explain how to
14683 change AC_INIT default values.
14685 2002-01-29 Akim Demaille <akim@epita.fr>
14687 * tests/torture.at (Configuring subdirectories): Use configure.in,
14688 so that aclocal 1.4 works.
14689 Reported by Alexandre Duret-Lutz and Larry Schmitt.
14691 2002-01-28 Akim Demaille <akim@epita.fr>
14693 * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
14696 2002-01-28 Akim Demaille <akim@epita.fr>
14698 * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
14699 AUTOTEST_PATH *after* it was set.
14700 Don't put `.' in the PATH: the user should be precise and `./' if
14701 needed. In addition, given that the test suite does some `cd', if
14702 `.' is in the path, the `tested programs' sections will report
14703 programs found in the test suite's directory, while during the
14704 tests (performed in their own directory), these programs are no
14705 longer visible. In other words, the results is confusing and
14707 * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
14709 2002-01-24 Akim Demaille <akim@epita.fr>
14713 2002-01-24 Akim Demaille <akim@epita.fr>
14715 * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
14716 * doc/autoconf.texi: Finally add Akim as an author.
14718 2002-01-24 Akim Demaille <akim@epita.fr>
14720 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
14721 (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
14722 Bourne. Use /bin/sh.
14723 From Andreas Buening.
14725 2002-01-24 Akim Demaille <akim@epita.fr>
14727 * config/config.guess, config/config.sub, config/texinfo.tex:
14728 Update from masters.
14730 2002-01-24 Akim Demaille <akim@epita.fr>
14732 * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
14733 * config/auxdir.m4, config/cond.m4, config/depend.m4,
14734 * config/init.m4, config/install-sh.m4, config/lispdir.m4,
14735 * config/missing.m4, config/sanity.m4, config/select.m4,
14736 * config/strip.m4: Remove, to ease sync'ing with any version of
14739 2002-01-24 Akim Demaille <akim@epita.fr>
14741 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
14742 (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
14743 Reported by Geir Ove Myhr.
14745 2002-01-21 Akim Demaille <akim@epita.fr>
14747 * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
14749 2002-01-21 Akim Demaille <akim@epita.fr>
14751 * lib/Autom4te/General.pm (getopt): Use a more GNUish error
14752 message on invalid options.
14753 * bin/autom4te.in (parse_args): Don't use
14754 Autoconf::General::getopt with non valid options.
14756 2002-01-17 Jim Meyering <meyering@lucent.com>
14758 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
14759 $ac_cv_exeext so we don't use an old, invalid, cached value.
14761 2002-01-11 Akim Demaille <akim@epita.fr>
14763 * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
14765 * doc/autoconf.texi (Function Portability): Document the strnlen
14767 (Particular Functions): Document AC_FUNC_STRNLEN.
14768 * lib/autoscan/functions: Adjust.
14770 2002-01-06 Akim Demaille <akim@epita.fr>
14772 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
14773 package.m4, since is really depends upon configure.ac, not
14775 * doc/autoconf.texi (testsuite Scripts): Adjust.
14776 * tests/Makefile.am (package.m4): New.
14777 EXTRA_DIST it since its a source.
14779 2002-01-06 Akim Demaille <akim@epita.fr>
14781 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
14782 of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
14783 and PACKAGE_BUGREPORT from here...
14784 (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
14786 (_AC_INIT_PREPARE): AC_DEFINE these symbols.
14787 * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
14788 (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
14789 * tests/tools.at (autoheader): Adjust.
14790 * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
14792 2002-01-06 Akim Demaille <akim@epita.fr>
14794 * bin/autoscan.in (scan_file): Use `&used'.
14796 2002-01-03 Akim Demaille <akim@epita.fr>
14798 * doc/autoconf.texi (Output): Improved wording regarding use of
14802 2001-12-18 Kevin Ryde <user42@zip.com.au>
14804 * doc/autoconf.texi (Function Portability): Add notes on sscanf
14805 sometimes needing writable input.
14807 2001-12-17 Jim Meyering <meyering@lucent.com>
14809 * doc/autoconf.texi (New Macros): Tweak wording.
14811 2001-12-14 Akim Demaille <akim@epita.fr>
14813 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
14814 trailing files, don't apply `-rf' to files which might not be
14815 created by configure (core, core.*, and *.core), but just `rm -f'.
14816 Suggested by Jonathan Kamens.
14818 2001-12-14 Aaron M. Ucko <amu@alum.mit.edu>
14820 * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
14822 2001-12-14 Akim Demaille <akim@epita.fr>
14824 * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
14826 2001-12-13 Peter Eisentraut <peter_e@gmx.net>
14828 * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
14829 abs_builddir, top_buildpath to abs_top_builddir, srcpath to
14830 abs_srcdir, top_srcpath to abs_top_srcdir.
14831 (_AC_OUTPUT_FILES): Adjust.
14832 * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
14833 * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
14834 * tests/wrappl.in, tests/wrapsh.in: Adjust.
14836 2001-12-12 Steven G. Johnson <stevenj@alum.mit.edu>
14838 * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
14839 C/Fortran linking on HP/UX, by extracting the Fortran library
14840 search path from the LPATH line in the $F77 -v output.
14842 2001-12-12 Kevin Ryde <user42@zip.com.au>
14844 * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
14845 forbidden file descriptors table.
14847 2001-11-26 Akim Demaille <akim@epita.fr>
14849 * bin/autoscan.in (%c_keywords): Build it at top level.
14850 Map to 1 in order to simplify its uses.
14852 2001-11-26 Akim Demaille <akim@epita.fr>
14854 * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
14855 Remove $filepath, useless.
14856 (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
14857 variables, they are really part of the tokens.
14858 Split the input line on spaces and then look for tokens.
14859 Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
14860 because of `lex$U.$(OBJEXT)'.
14861 (&scan_files): Use "@list" instead of join.
14862 * doc/Makefile.am (CLEANFILES): Add *.fns.
14864 2001-11-26 Akim Demaille <akim@epita.fr>
14866 * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
14867 Remove, replaced by...
14868 * tests/wrappl.in: Be common for all the Perl executables.
14869 In particular autoscan and autoheader want -I.
14870 * configure.ac: Adjust.
14871 * lib/autoscan/headers: errno.h is portable.
14873 2001-11-26 Akim Demaille <akim@epita.fr>
14875 * bin/autoscan.in (used): New.
14878 2001-11-26 Akim Demaille <akim@epita.fr>
14880 * bin/autoscan.in (&scan_c_file): Better parsing of CPP
14882 (&scan_sh_file): Remove a duplicate pattern.
14883 (&check_configure_ac): Use long options.
14884 * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
14886 2001-11-26 Akim Demaille <akim@epita.fr>
14888 * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
14889 Before, having a line containing the opening of a multi line
14890 comment made the whole line be ignored.
14892 2001-11-26 Akim Demaille <akim@epita.fr>
14894 * doc/autoconf.texi (Using an Autotest Test Suite): New.
14895 (testsuite Scripts): Be one of its subsection.
14896 (Autotest Logs): New.
14898 2001-11-26 Akim Demaille <akim@epita.fr>
14900 Test groups are now run two directories deeper.
14902 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
14903 top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
14905 * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
14906 top_srcdir, builddir and top_builddir.
14907 Use `at_*dir' relatively to the directory containing the
14908 suite, use `*dir' when relatively to the current group dir.
14910 2001-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
14912 * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
14913 lib/autoconf/functions.m4, lib/autoconf/headers.m4,
14914 tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
14917 2001-11-22 Alexandre Duret-Lutz <duret_g@epita.fr>
14919 * doc/autoconf.texi (Using System Type): Add an example of `case
14920 $host' usage so people quit using `case $target' everywhere.
14922 2001-11-22 Akim Demaille <akim@epita.fr>
14924 * doc/autoconf.texi (Installation Directory Variables): Englishoes
14925 spotted by Jim Meyering.
14927 2001-11-16 Paul Eggert <eggert@twinsun.com>
14929 This patch implements a `long double' suggestion by Oliver Kiddle.
14931 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
14932 static, to catch errors if the value isn't known at compile-time
14933 and the compiler supports dynamic arrays. Change its name from
14934 `_array_' to `test_array' to avoid potential name clashes.
14935 (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
14936 test. Do not define HAVE_LONG_DOUBLE if `long double' is no
14937 better than double. Catch a bug in GCC 2.95.2 x86.
14938 * doc/autoconf.texi (C Compiler): Document the above.
14941 2001-11-13 Akim Demaille <akim@epita.fr>
14943 * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
14945 * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
14947 2001-11-13 Akim Demaille <akim@epita.fr>
14949 * lib/autotest/general.m4 (AT_INIT): After having run the test
14950 group, go back to the initial directory, not to at_suite_dir.
14952 2001-11-13 Akim Demaille <akim@epita.fr>
14954 * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
14955 (AT_DATA_AUTOCONF): Also protect @&t@ from autom4te.
14956 (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
14958 (AT_CHECK_CONFIGURE): Use absolute paths.
14959 (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
14960 The problem is still the old one: there is no means in M4 (that I
14961 know about) to create a defining macro, because there is no means
14962 to create `$1' etc., therefore, the defining macro ``swallows''
14963 all the arguments meant to the defined macro.
14965 2001-11-13 Akim Demaille <akim@epita.fr>
14967 * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
14968 (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
14970 * tests/aclocal.m4: Remove, as it is no longer used.
14972 2001-11-13 Akim Demaille <akim@epita.fr>
14974 * lib/autotest/general.m4: Change `tests?' into `groups?' in
14975 variable names when referring to a single test group, or to
14976 `suite' when referring to the whole test suite.
14977 `at_last_test' is removed: m4 compute at_format itself.
14978 (at_stdout, at_stder1, at_stderr): New variables.
14979 (AT_CHECK): Use them.
14981 2001-11-13 Akim Demaille <akim@epita.fr>
14983 * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
14985 Create `testsuite.dir/003/run' instead of `testsuite.003'.
14986 Do it as soon as a test fails, don't wait till the end of the test
14988 Don't remove $as_me.[0-9]*, since these files no longer exist.
14990 2001-11-13 Akim Demaille <akim@epita.fr>
14992 * tests/tools.at: Use absolute paths, since we are no longer run
14995 2001-11-13 Akim Demaille <akim@epita.fr>
14997 Now that tests are running in their own private dir, there is no
14998 need to list the files to remove at the end of tests groups.
15000 * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
15001 (AT_data_files, at_data_files): Remove.
15002 (AT_CLEANUP, AT_DATA): Simplify.
15004 Remove the group dir if !debug && !failed.
15005 * tests/atspecific.m4: Adjust.
15007 2001-11-13 Akim Demaille <akim@epita.fr>
15009 Start a new layout for Autotest: `testsuite' creates
15010 `testsuite.dir' in which the at-check-line etc. files are to be
15011 found, and `testsuite.dir/003' where the test group 3 is run.
15013 * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
15014 at_check_line_file, at_format, at_test_normalized, at_group_dir
15016 Create the directories.
15017 Use absolute paths for at- files.
15018 (AT_CHECK): Adjust.
15020 2001-11-11 Michael Matz <matz@kde.org>
15022 * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
15024 (m4_car): Properly quote arguments.
15026 2001-11-13 Akim Demaille <akim@epita.fr>
15028 * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
15029 with stricter rules on LIBOBJS.
15031 2001-11-12 Paul Eggert <eggert@twinsun.com>
15033 * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
15034 * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
15037 2001-11-12 Akim Demaille <akim@epita.fr>
15039 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
15041 2001-11-12 Akim Demaille <akim@epita.fr>
15043 * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
15044 * lib/autoconf/functions.m4, lib/autoconf/general.m4,
15045 * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
15046 * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
15047 * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
15048 specify to what the macro should be defined (typically to 1).
15050 2001-11-12 Akim Demaille <akim@epita.fr>
15052 * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
15055 2001-11-12 Akim Demaille <akim@epita.fr>
15057 * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
15058 AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND. This validates the
15059 definition used by Automake where LEX is +/- "${missing} lex" and
15060 `missing' itself contains variables.
15062 2001-11-12 Akim Demaille <akim@epita.fr>
15064 * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
15065 Now that M4sh pushes BODY, the comments were output at the end of
15068 2001-11-08 Akim Demaille <akim@epita.fr>
15070 * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
15071 that we can trace macros from aclocal.m4.
15072 Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
15073 obsoleted, and redirect to the former anyway.
15074 Reported by Ralf Corsepius.
15076 2001-11-08 Akim Demaille <akim@epita.fr>
15078 * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
15079 processed only if present.
15080 * tests/torture.at (Configuring subdirectories): Use autoreconf
15081 instead of successive calls to autoconf.
15082 Add a nonexistent subdirectory to exercise the patch above.
15083 Reported by Ralf Corsepius.
15085 2001-11-08 Kevin Ryde <user42@zip.com.au>
15087 * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
15088 doesn't accept .S files.
15090 2001-11-07 Akim Demaille <akim@epita.fr>
15092 * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
15093 * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
15094 (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
15095 * bin/autom4te.in (warn_forbidden): New.
15096 (handle_output): Use it.
15097 Read m4_pattern_forbid with messages.
15099 2001-11-05 Akim Demaille <akim@epita.fr>
15101 * bin/autom4te.in (--normalize): Remove.
15102 * lib/autom4te.in: Adjust.
15104 2001-11-05 Akim Demaille <akim@epita.fr>
15106 * tests/Makefile.am (testsuite): Rename this target as...
15107 ($(TESTSUITE)): this.
15110 2001-11-05 Alexandre Duret-Lutz <duret_g@epita.fr>
15112 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
15113 the --prefix option, also remove it's argument.
15115 2001-11-05 Akim Demaille <akim@epita.fr>
15117 * doc/autoconf.texi (testsuite Invocation): Update.
15118 (Writing testsuite.at): Update.
15120 2001-11-03 Akim Demaille <akim@epita.fr>
15122 * doc/autoconf.texi: s/@code/@command/ where appropriate.
15124 2001-11-03 Akim Demaille <akim@epita.fr>
15126 * lib/Autom4te/General.pm: (&catfile, &canonfile)
15127 (&file_name_is_absolute): New, wrappers around routines from
15129 Use and export them.
15130 (&find_configure_ac): Optionally take a directory where to look at.
15131 * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
15133 Default @ARGV to `.', not find_configure_ac.
15134 (&autoreconf): Argument is a directory.
15135 Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
15136 * doc/autoconf.texi (autoreconf Invocation): Update.
15138 2001-11-03 Akim Demaille <akim@epita.fr>
15140 * lib/Autom4te/General.pm (@export_vars, @export_subs)
15141 (@export_forward_subs): New.
15142 Add basename, dirname, and fileparse.
15144 * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
15145 Don't look for aclocal flags if we already know aclocal is not
15147 Move aclocal.m4t only if it exists.
15148 Reported by Ezra Peisach.
15150 2001-11-03 Akim Demaille <akim@epita.fr>
15152 * bin/autoreconf.in (&parse_args): Work only on the configure.ac
15153 passed on command line, defaulting to ./configure.ac if present.
15154 (&maybe_autoreconf, File::Find): Remove, unused.
15155 (&autoreconf): If autoconf is not used, don't try to trace.
15157 2001-11-02 Akim Demaille <akim@epita.fr>
15159 * configure.ac: Bump to 2.52g.
15161 2001-11-02 Akim Demaille <akim@epita.fr>
15165 2001-11-02 Akim Demaille <akim@epita.fr>
15167 * config/config.guess, config/config.sub, doc/standards.texi:
15168 * config/lispdir.m4: Update from masters.
15169 * configure.ac: Bump to 2.52f.
15171 2001-11-02 Akim Demaille <akim@epita.fr>
15173 * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
15174 Don't run aclocal when aclocal.m4 is not from aclocal.
15176 Don't run libtoolize and gettextize if --install is not given.
15178 2001-11-01 Paul Eggert <eggert@twinsun.com>
15180 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
15181 be invoked before _AS_LINENO_PREPARE.
15182 (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
15183 than character ranges.
15185 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
15186 invoking AS_BASENAME. Set the locale variables to 'C' if
15187 possible, as POSIX requires this to get the traditional
15189 * doc/autoconf.texi (Special Shell Variables): Describe the above.
15191 2001-10-31 Paul Eggert <eggert@twinsun.com>
15193 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
15194 with {}, as that triggers a bug in Bash 2.05.
15196 (_AS_LINENO_PREPARE): Use Sed rather than
15197 Awk. Fix the sed prepass to work even if there are multiple
15198 instances of $LINENO on the same line. Do not substitute for
15199 other variables like $LINENOT. Do not check file dates; such a
15200 check is unreliable on sufficiently fast machines, and removing
15201 the check makes the code simpler and more reliable. Check for
15202 output and chmod failures.
15204 * doc/autoconf.texi (Special Shell Variables): Document
15207 2001-10-31 Akim Demaille <akim@epita.fr>
15209 * tests/Makefile.am (atconfig): Remove this target, Automake
15212 2001-10-31 Akim Demaille <akim@epita.fr>
15214 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
15215 AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
15216 provided, while it is optional.
15217 * configure.ac: Adjust.
15219 2001-10-26 Paul Eggert <eggert@twinsun.com>
15221 * NEWS, README, configure.ac, lib/Autom4te/General.pm,
15222 lib/Autom4te/Struct.pm:
15223 Require Perl 5.005_03 instead of just 5.005, as some tests fail
15226 * doc/autoconf.texi (Special Shell Variables): Document some
15227 more LINENO gotchas, particularly with respect to the Awk+Sed hack.
15229 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
15230 (_AS_LINENO_PREPARE): Use it instead of shell eval, since
15231 eval $LINENO is not portable in practice.
15233 2001-10-24 Akim Demaille <akim@epita.fr>
15235 * lib/Autom4te/General.pm (backname): New.
15237 2001-10-24 Akim Demaille <akim@epita.fr>
15239 * m4/: Remove, merged into...
15242 2001-10-23 Tim Van Holder <tim.van.holder@pandora.be>
15244 * doc/autoconf.texi (Shellology): Mention the problems with bash
15245 2.05's use of ANSI quoting in its `set' builtin.
15247 2001-10-22 Paul Eggert <eggert@twinsun.com>
15249 * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
15250 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
15251 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
15252 POSIX decided to standardize on the int flavor of strerror_r.
15253 Always do char* test, as there's no reason not to.
15254 Assign to a char* var, to catch strerror_r that returns int*.
15256 * doc/autoconf.texi (Particular Functions):
15257 Document the above changes. Also, document the fact that
15258 AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
15260 * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
15262 2001-10-20 Akim Demaille <akim@epita.fr>
15264 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
15265 the executable was missing from the log.
15267 2001-10-20 Akim Demaille <akim@epita.fr>
15269 * lib/Autom4te/General.pm (&update_file): If destination is
15270 unchanged, remove the source.
15271 (&up_to_date_p): Don't be verbose, be debug.
15272 * bin/autoreconf.in: No longer support --m4dir.
15273 (&autoreconf): Display the full path of the configure.ac we are
15275 Trace it only once.
15276 Be sure to honor --force with gettextize.
15277 Always run aclocal.
15278 * doc/autoconf.texi: Adjust.
15280 2001-10-20 Akim Demaille <akim@epita.fr>
15282 * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
15284 * bin/autoreconf.in (&autoreconf): Do not run gettextize when
15285 `intl' is already present, as it refuses unless --force.
15286 (&parse_args): Use -I, --include instead of the old Autoconf
15288 ($localdir, $autoconf_dir): Remove.
15290 (&maybe_autoreconf): New, to preserve $_ for File::Find.
15292 2001-10-19 Jens Petersen <petersen@redhat.com>
15294 * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
15295 * doc/autoconf.texi (Particular Programs): Likewise.
15297 2001-10-19 Akim Demaille <akim@epita.fr>
15299 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
15300 file in @configure_input@.
15301 Don't mention `automatically' in addition to `generated'.
15302 * tests/torture.at (#define header templates): Adjust.
15304 2001-10-19 Akim Demaille <akim@epita.fr>
15306 * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
15307 comment, explain how to install automatic mode selection.
15310 2001-10-19 Ezra Peisach <epeisach@zif.mit.edu>
15312 * bin/autoreconf.in (autoreconf): Display the path to the
15313 configure.ac being studied.
15315 2001-10-18 Paul Eggert <eggert@twinsun.com>
15317 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
15318 long, to work around a bug in the HP C compiler version HP92453-01
15321 * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
15322 (AS_BASENAME_EXPR): New macro.
15323 (AS_BASENAME_SED): Do not assume GNU sed semantics.
15324 (AS_BASENAME): Use 'basename' if that works; then try 'expr';
15325 and fall back on 'sed' only if the other two fail. This makes
15326 AS_BASENAME act more like AS_DIRNAME.
15327 (as_me): Shell-quote the argument of AS_BASENAME, in case $0
15328 contains white space.
15329 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
15330 Use AS_DIRNAME, since I think it's now DOS-friendly.
15331 * tests/m4sh.at (DIRNAME_TEST): New arg $3.
15332 Allow "dirname //FOO" to return either / or //, as POSIX allows
15335 2001-10-10 Akim Demaille <akim@epita.fr>
15337 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
15338 `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
15341 2001-10-10 Akim Demaille <akim@epita.fr>
15343 * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
15344 m4_define, since...
15345 (_AS_ECHO_N): AS_REQUIREs it.
15347 2001-10-10 Akim Demaille <akim@epita.fr>
15349 * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
15350 (AC_INCLUDES_DEFAULT): Move to...
15351 * lib/autoconf/headers.m4: here.
15352 * lib/autoconf/types.m4: Comment changes.
15353 * doc/autoconf.texi: Specify where the default includes are used
15354 in the macro prototypes.
15356 2001-10-09 Akim Demaille <akim@epita.fr>
15358 * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
15361 2001-10-08 Akim Demaille <akim@epita.fr>
15363 * bin/autoreconf.in (&autoreconf): Remove debugging code.
15364 (&parse_args): Pass verbosity/debugging options to subtools when
15365 --debug, not when --verbose.
15366 * lib/autom4te.in (Autoreconf-preselections): New.
15367 (Autoconf): Use it.
15369 2001-10-08 Akim Demaille <akim@epita.fr>
15371 * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
15373 2001-10-08 Akim Demaille <akim@epita.fr>
15375 * doc/autoconf.texi (autoreconf Invocation): Adjust.
15376 * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
15378 2001-10-08 Akim Demaille <akim@epita.fr>
15380 * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
15381 (Syntax of the shell scripts): Don't.
15382 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
15383 bother with $force since...
15384 * lib/Autom4te/General.pm: does.
15386 2001-10-08 Akim Demaille <akim@epita.fr>
15388 * bin/autoreconf.in: Rewrite in Perl.
15389 * configure.ac: Adjust.
15390 * lib/Autom4te/General.pm (&up_to_date_p): New.
15391 * bin/autom4te.in (&up_to_date_p): Use it.
15393 (&up_to_date): this.
15395 2001-10-08 Akim Demaille <akim@epita.fr>
15397 * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
15398 (m4_list_cmp): Use $0 to reinvoke yourself.
15399 (m4_patsubsts): New.
15400 (m4_strip, m4_version_unletter): Use it.
15401 * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
15403 2001-10-08 Akim Demaille <akim@epita.fr>
15405 * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
15406 * lib/autoconf/libs.m4, lib/autoconf/status.m4,
15407 * lib/autoconf/types.m4, lib/autotest/general.m4,
15408 * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
15409 * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
15410 m4_bregexp, m4_bpatsubst, and m4_bmatch.
15411 * doc/autoconf.texi (Redefined M4 Macros): Adjust.
15413 2001-10-08 Akim Demaille <akim@epita.fr>
15415 * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
15417 2001-10-08 Akim Demaille <akim@epita.fr>
15419 * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
15420 * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
15421 * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
15422 * tests/tools.at, tests/m4sh.at: Use it.
15423 * tests/m4sh.at: Don't rely on Autoconf macros.
15424 (DIRNAME_TEST): Also exercise the expr variant.
15425 * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
15426 preferred M4sugar extension is now `.4s'.
15427 * tests/README: Remove.
15429 2001-10-08 Akim Demaille <akim@epita.fr>
15431 * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
15432 (m4_provide_if): this.
15433 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
15434 * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
15435 (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
15436 M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
15438 2001-10-08 Akim Demaille <akim@epita.fr>
15440 Use `add-log-current-defun-function' for ChangeLog creation.
15441 Suggested by Tom Tromey.
15443 * lib/emacs/autotest-mode.el (autotest-mode-map): New.
15444 (autotest-mode): Adjust.
15445 * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
15446 'comment-region onto `C-c ;'.
15447 Comments are `#', not `dnl'.
15448 (autoconf-current-defun): New.
15449 (autoconf-font-lock-keywords): Recognize `m4_defun'.
15451 2001-10-08 Akim Demaille <akim@epita.fr>
15453 * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
15454 * lib/m4sugar/m4sh.m4: here.
15455 (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
15456 * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
15457 (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
15458 include handle the m4_pattern_*, no longer push the
15459 BODY diversion nor set the /bin/sh line, AS_INIT does it.
15460 * lib/autotest/general.m4 (AT_INIT): Likewise.
15461 * tests/base.at: Adjust the tests to use AS_INIT.
15462 * tests/tools.at (AT_DATA_FORBIDDEN): New.
15463 (autoconf: forbidden tokens): Adjust to work on M4sh instead of
15466 2001-10-07 Paul Eggert <eggert@twinsun.com>
15468 * doc/autoconf.texi (config.status Invocation):
15469 CONFIG_SHELL defaults to a shell that supports LINENO if available.
15471 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
15472 shell does not support LINENO, and if CONFIG_SHELL is unset or
15473 empty, and if we can find a shell that does support LINENO,
15474 then set CONFIG_SHELL to that shell and then re-execute
15475 ourselves with CONFIG_SHELL.
15477 2001-10-05 Paul Eggert <eggert@twinsun.com>
15479 * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
15480 doesn't exist. Remove *.tmp, as a .tmp file is created during the
15481 build of $(TESTSUITE).
15483 2001-10-05 Akim Demaille <akim@epita.fr>
15485 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
15486 iff we are a bareword.
15487 Reported by Raja R Harinath.
15489 2001-10-05 Akim Demaille <akim@epita.fr>
15491 * tests/m4sh.at (LINENO): New.
15492 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
15493 PATH_SEPARATOR before using it.
15494 Fix the absolute path case/esac pattern.
15495 Provide $0 as fallback for as_myself.
15496 Reported by Raja R Harinath.
15498 2001-10-05 Akim Demaille <akim@epita.fr>
15500 * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
15501 * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
15503 2001-10-05 Akim Demaille <akim@epita.fr>
15505 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
15506 (AS_SHELL_SANITIZE): here. Use it.
15507 (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
15510 2001-10-04 Akim Demaille <akim@epita.fr>
15512 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
15513 combination of Awk and sed to replace $LINENO.
15515 2001-10-02 Paul Eggert <eggert@twinsun.com>
15517 * doc/autoconf.texi (Limitations of Builtins): You can't use
15518 "source"; it's not portable. Remove confusing and
15519 somewhat-incorrect example involving "." and "/".
15521 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
15522 compatibility with POSIX shells.
15524 2001-10-02 Akim Demaille <akim@epita.fr>
15526 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
15527 instead of exec'ing to preserve $0 and $@.
15529 2001-10-01 Akim Demaille <akim@epita.fr>
15531 * tests/testsuite (AT_INIT) <at_pass_list>: New.
15532 Don't run twice the same test.
15534 2001-10-01 Akim Demaille <akim@epita.fr>
15536 * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
15537 No longer output the list of tests.
15538 <--list>: New option.
15539 <--full-help>: Remove.
15540 Complete the short/long options duality.
15541 Various small adjustments.
15543 2001-10-01 Akim Demaille <akim@epita.fr>
15545 * doc/autoconf.texi: Use @kbd for user input.
15546 Always use `$' as shell prompt.
15548 2001-09-30 Paul Eggert <eggert@twinsun.com>
15550 * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
15551 Don't use nested parenthesization. This patch was originally
15552 suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
15553 but somehow it didn't get incorporated then.
15554 * doc/autoconf.texi (Limitations of Usual Tools):
15555 Clarify remark about sed and nested parenthesization.
15557 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
15558 Report an error if the size cannot be determined even though
15560 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
15561 Check for `expr' arithmetic overflow, and for compilation failure,
15562 and invoke a new argument $4 if either is discovered.
15563 This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
15564 (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
15566 2001-09-28 Akim Demaille <akim@epita.fr>
15568 * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
15569 * m4/lispdir.m4: New.
15570 * aclocal.m4, configure.ac: Adjust.
15572 2001-09-28 Akim Demaille <akim@epita.fr>
15574 * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
15576 (AT_INIT): More the wrapped section to where it will be expanded.
15577 Output `AT_tested' only when existing.
15578 Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
15580 2001-09-27 Akim Demaille <akim@epita.fr>
15582 Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
15583 generates too many bug reports.
15585 * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
15586 status when executing the ACTION-IF-FALSE.
15587 * tests/base.at (AC_TRY_*): Rename as...
15588 (AC_TRY_COMMAND): this.
15589 (AC_RUN_IFELSE): New.
15590 * tests/compile.at (Extensions, C keywords)
15591 (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
15592 (Broken/missing compilers, AC_PROG_CPP with warnings)
15593 (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
15594 * tests/c.at (Extensions, C keywords)
15595 (Broken/missing compilers, AC_PROG_CPP with warnings)
15596 (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
15597 (AC_PROG_CPP requires AC_PROG_CC): here and...
15598 * tests/fortran.at (GNU Fortran 77): there.
15599 * doc/autoconf.texi (autoconf Invocation): Fix the example:
15600 AC_TRY_RUN is about compilation, not shell commands.
15601 (Test Programs): AC_TRY_RUN works as used to be advertised.
15603 2001-09-27 Akim Demaille <akim@epita.fr>
15605 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
15607 Be sure to detect when $LINENO always returns the same value.
15608 Look for the original script, basename($0) is certainly not
15610 Pass the CLI arguments to `$as_me.lineno'.
15612 2001-09-25 Akim Demaille <akim@epita.fr>
15614 * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
15615 Be sure the close and reopen the LOG fd before and after using tee
15617 <at_tests_pattern>: Adjust to the new format of at_help_all.
15619 2001-09-23 Akim Demaille <akim@epita.fr>
15621 * bin/autom4te.in (parse_args): There can be several invocations
15624 2001-09-23 Akim Demaille <akim@epita.fr>
15626 * doc/autoconf.texi (Top): Wrap in @ifnottex.
15628 2001-09-23 Akim Demaille <akim@epita.fr>
15630 * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
15631 ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
15632 (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
15633 builddir, buildpath, top_builddir, and top_buildpath.
15634 (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
15635 the current directory.
15636 * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
15637 variables *before* changing the current directory.
15638 Skip nonexistent dirs.
15639 * doc/autoconf.texi (Preset Output Variables): Document these
15642 * lib/autotest/general.m4: Do not reset AT_victims.
15643 Don't compute at_srcdir nor at_top_srcdir.
15645 * tests/tools.at: Hence use top_srcdir.
15647 * tests/Makefile.am, tests/autoconf, tests/autoheader,
15648 * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
15650 * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
15651 * tests/wrapsh.in, tests/autoupdate.in: New.
15652 * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
15653 * configure.ac: Build the position independent wrappers.
15655 * man/Makefile.am: Now that test wrappers are position
15656 independent, use them and drop dark envvar magic.
15658 2001-09-23 Akim Demaille <akim@epita.fr>
15660 * doc/autoconf.texi (Common Shell Constructs): Rename as...
15661 (Programming in M4sh): this.
15662 Promote to @section.
15664 2001-09-23 Akim Demaille <akim@epita.fr>
15666 * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
15667 Pass $at_debug_args to the rerun test suite.
15668 * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
15669 * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
15672 2001-09-23 Akim Demaille <akim@epita.fr>
15674 * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
15676 2001-09-23 Akim Demaille <akim@epita.fr>
15678 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
15681 2001-09-23 Akim Demaille <akim@epita.fr>
15683 * lib/Autom4te/General.pm (&debug): New.
15684 * bin/autom4te.in ($language): Move to...
15685 (parse_args): here.
15686 Handle --language in languages.
15687 * lib/autom4te.in (Automake-selections, Autoheader-selections)
15688 (Autoscan-selections): New.
15689 (Autoconf): Adjust.
15691 2001-09-23 Tim Van Holder <tim.van.holder@pandora.be>
15693 * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
15694 * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
15695 to match current versions from CVS Automake.
15697 2001-09-23 Alexandre Duret-Lutz <duret_g@epita.fr>
15699 * doc/autoconf.texi (Special Shell Variables): Add pdksh output
15702 2001-09-22 Akim Demaille <akim@epita.fr>
15704 * lib/autoconf/autotest.m4: Create `package.m4'.
15705 * tests/Makefile.am (package.m4): Remove.
15707 2001-09-22 Akim Demaille <akim@epita.fr>
15709 Rely on `$LINENO' when possible instead of `__oline__'.
15711 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
15712 `$LINENO' support replacement when not supported.
15713 (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
15714 them explicitly to be sure they are not output before this section
15715 (via m4_require). Cosmetic only.
15716 * lib/autoconf/c.m4, lib/autoconf/general.m4,
15717 * lib/autoconf/programs.m4: Replace all the occurrences of
15718 `__oline__' with `$LINENO'.
15719 * doc/autoconf.texi (Special Shell Variables): Document LINENO.
15721 2001-09-21 Tim Van Holder <tim.van.holder@pandora.be>
15723 * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
15724 character (u: -> ue) in a code comment.
15725 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
15728 2001-09-21 Akim Demaille <akim@epita.fr>
15730 * Makefile.maint (AUTOM4TE): Neutralize autom4te.
15731 Suggested by Jim Meyering.
15733 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
15735 * lib/autoconf/programs.m4: Use extensions listed in
15736 $ac_executable_extensions when looking for programs.
15738 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
15740 * lib/autoconf/general.m4: Fix a small Englisho.
15741 * lib/autoconf/status.m4: Fix a small typo. Handle DOS paths when
15742 setting up ac_dir_suffix and ac_top_builddir.
15743 * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
15745 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
15747 * doc/autoconf.texi (File System Conventions): Clarify the use of
15749 (Special Shell Variables[PATH_SEPARATOR]): Ditto.
15750 (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
15751 be used instead of ':'.
15752 * lib/autotest/general.m4: Replace occurrences of ':' in
15753 AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
15755 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
15757 * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
15758 arguments. Fixed a typo.
15760 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
15762 * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
15763 $PATH. Also set AUTOM4TE_CFG, so we can process autom4te properly.
15765 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
15767 * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
15768 * bin/autoupdate.in: Ditto.
15769 * bin/autoheader.in: Reworded a few comments.
15770 * bin/autoconf.in: Reworded help text for a few options.
15771 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
15772 * bin/autoscan.in, bin/autoupdate.in: Ditto.
15774 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
15776 * lib/Autom4te/XFile.pm (open): Simplified the error message (we
15777 already have $file). Set output files to binary mode (helps avoid
15778 CR issues on DOSish systems).
15780 2001-09-19 Akim Demaille <akim@epita.fr>
15782 * lib/autotest/general.m4: Englishoes.
15783 From Tim Van Holder and Alexey Mahotkin.
15785 2001-09-18 Paul Eggert <eggert@twinsun.com>
15787 * doc/autoconf.texi (Common Shell Constructs): New node,
15788 documenting AS_DIRNAME.
15789 (Limitations of Usual Tools): Refer to it when discussing dirname.
15790 Also, update discussion of POSIX standard to reflect latest draft.
15792 * lib/autoconf/c.m4:
15793 (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
15795 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
15796 Do not pass a first argument with leading '-'
15797 to expr, by parenthesizing initial integers that might be negative.
15799 * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
15800 now merely checks whether it is an error to pass an argument
15803 * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
15804 (AC_FUNC_GETPGRP): Don't bother with a runtime test. Just check
15805 whether it is a (compile-time) error to pass an argument to
15806 getpgrp. This simpler test supports the revised documentation,
15807 and is all that AC_FUNC_GETPGRP's users really need.
15809 2001-09-18 Akim Demaille <akim@epita.fr>
15811 * doc/autoconf.texi (Limitations of Make) <$<>: New.
15813 2001-09-18 Akim Demaille <akim@epita.fr>
15815 * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
15817 * lib/autotest/general.m4 (AT_INIT): Adjust.
15819 2001-09-18 Paul Wagland <paul@wagland.net>
15821 * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
15823 Add test for AS_BASENAME.
15824 * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
15825 added test. It now correctly handles /1/2/3/, returning '3' not ''.
15826 Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
15827 * tests/base.at: Fixed the expected responses. The old ones were
15829 * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
15830 the documentation claims it should (and how it behaved in 2.13).
15832 2001-09-18 Akim Demaille <akim@epita.fr>
15834 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
15835 the AC_CONFIG_COMMANDS invocation.
15836 This also solves the name clash problems.
15837 Don't set the package's ID.
15838 * lib/m4sugar/Makefile.am (version.m4): Revamp.
15839 No longer to be shipped.
15840 (version.in): Remove.
15841 * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
15842 * lib/autoconf/status.m4: Adjust.
15843 Use `m4_PACKAGE_STRING'.
15844 * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
15845 the only optional argument is the name of the test suite.
15846 Expect `package.m4' to define the package signature.
15847 * lib/autom4te.in (Autotest): Add `package.m4?'.
15848 * tests/Makefile.am (package.m4): New.
15849 * tests/suite.at: ifnames is a victim.
15851 2001-09-18 Akim Demaille <akim@epita.fr>
15853 * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
15854 AC_LIBSOURCE, AC_CONFIG_FILES.
15855 * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
15856 program version string doesn't match the package's.
15857 * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
15860 2001-09-17 Paul Eggert <eggert@twinsun.com>
15862 * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
15863 Allow expression to return any value that can fit into unsigned long
15864 (not int, as before). Check for output errors.
15866 2001-09-17 Bruno Haible <haible@ilog.fr>
15868 * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
15869 Always include <stdio.h> and <stdlib.h>. Evaluate
15870 the expression in an extra function before these includes. Call
15871 fprintf "%d" only after ensuring the argument is of type 'int'.
15872 Reported by Wayne Chapeskie <waynec@spinnaker.com>.
15874 2001-09-17 Paul Eggert <eggert@twinsun.com>
15876 Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
15877 or CFLAGS=-O5. In that case, the linker has a relaxed view of
15878 fatal errors, and AC_CHECK_LIB causes it to include libraries even
15879 when they don't exist.
15881 * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
15882 not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
15885 * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
15886 version with the version used by fileutils 4.1, except use
15887 AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
15890 * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
15892 2001-09-13 Akim Demaille <akim@epita.fr>
15894 * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
15896 Reported by Gerrit P. Haase.
15898 2001-09-13 Akim Demaille <akim@epita.fr>
15900 * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
15901 m4_defn'ing is valid.
15903 2001-09-13 Akim Demaille <akim@epita.fr>
15905 * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
15906 * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
15909 2001-09-13 Akim Demaille <akim@epita.fr>
15911 * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
15913 (m4_re_escape): New.
15914 * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
15915 * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
15916 * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
15918 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
15919 (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
15920 * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
15921 AT_tests_all for consistency.
15923 (AT_VICTIMS): Similar to AT_KEYWORDS.
15924 (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
15926 2001-09-13 Akim Demaille <akim@epita.fr>
15928 * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
15930 2001-09-13 Akim Demaille <akim@epita.fr>
15932 * lib/autotest/general.m4 (AT_INIT): Create and remove
15933 `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
15934 test suites can cohabit.
15936 2001-09-13 Akim Demaille <akim@epita.fr>
15938 * tests/mktests.sh: Don't output banners for empty test files.
15940 2001-09-13 Akim Demaille <akim@epita.fr>
15942 Test suites can be run independently of configure.
15944 * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
15945 * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
15946 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
15948 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
15950 * lib/autotest/general.m4: Use ECHO_*.
15952 2001-09-13 Akim Demaille <akim@epita.fr>
15954 * bin/ifnames.in: Rewrite in Perl.
15955 * configure.ac: Don't look for AWK.
15956 * tests/tools.at (AWK portability): Remove.
15957 (Syntax of the shell scripts): Don't check ifnames.
15958 (AT_CHECK_PERL_SYNTAX): New.
15959 (Syntax of the Perl scripts): Check ifnames.
15960 * tests/ifnames: New.
15962 2001-09-13 Akim Demaille <akim@epita.fr>
15964 * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
15966 * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
15967 Remove all the other keywords.
15969 2001-09-10 Akim Demaille <akim@epita.fr>
15971 * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
15972 SETUP: no longer used.
15973 Support -k, --keywords.
15974 <at_help>: Be `no', `short', or `long'.
15975 <at_help_all>: New variable.
15976 (AT_KEYWORDS): New.
15977 (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
15978 (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
15979 (_AT_CLEANUP_FILE_IF): Simplify the regexp.
15980 (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
15981 No longer fill the HELP diversion.
15982 (AT_CLEANUP): Use them.
15983 * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
15984 (m4_list_append): Remove.
15986 Spread a few keywords in the Autoconf test suite.
15988 2001-09-10 Akim Demaille <akim@epita.fr>
15990 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
15991 PATH_SEPARATOR, let M4sh compute it.
15992 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
15993 * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
15995 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
15996 Simplify when the path is not a literal.
15997 (AS_UNAME): Use it to report PATH.
15998 * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
15999 (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
16000 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
16001 * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
16002 normalize the path, and to look for victims.
16003 * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
16004 (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
16006 2001-09-07 Akim Demaille <akim@epita.fr>
16008 * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
16009 doesn't neutralize SIGINT, making autoconf etc. non interruptible.
16010 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
16011 related variables into `at_package_*'.
16012 * lib/autotest/general.m4 (AT_VICTIMS): New.
16013 (AT_INIT): Adjust for stand-alone/embedded test suites.
16014 (AS_MESSAGE_LOG_FD): Define and use it.
16015 * tests/suite.at (AT_VICTIMS): Use it.
16016 * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
16019 2001-09-07 Akim Demaille <akim@epita.fr>
16021 Move toward possibly stand-alone test suites.
16023 * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
16024 in addition, it introduces useless differences in logs.
16025 (AT_INIT): Let atconfig and atlocal be both optional.
16026 Adjust PATH computation.
16027 * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
16029 2001-09-07 Akim Demaille <akim@epita.fr>
16031 * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
16032 m4sugar/version.m4.
16034 2001-09-05 Akim Demaille <akim@epita.fr>
16036 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
16037 to avoid GCC warnings.
16040 2001-09-05 Akim Demaille <akim@epita.fr>
16042 * bin/autom4te.in: --language is -l, not -s.
16044 2001-09-05 Akim Demaille <akim@epita.fr>
16046 Be ready to handle filenames as stupid as `dnl.at', for if even
16047 the maintainer is dumb enough to do that...
16049 * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
16050 excellence in M4 quotation: consider `__file__' is active.
16052 And BTW, when invoking m4, pass the --include in the right order:
16055 * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
16058 2001-09-05 Akim Demaille <akim@epita.fr>
16060 * lib/Autom4te/XFile.pm: New lib file.
16061 * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
16062 * bin/autoheader.in: Use it.
16064 2001-09-05 Akim Demaille <akim@epita.fr>
16066 * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
16069 2001-09-05 Akim Demaille <akim@epita.fr>
16071 * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
16072 * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
16074 * bin/autoscan.in: Use `getopt' and `find_files' etc.
16075 Add -I, --include support.
16076 * doc/autoconf.texi (autoscan Invocation): Adjust.
16078 2001-09-05 Akim Demaille <akim@epita.fr>
16080 CVS GNU M4 doesn't like `undefine(undefined)'.
16082 * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
16083 New, extracted from main.
16084 Use IO::File wherever possible.
16085 (input.m4): Be constant, use -I instead of hard coding $tmp.
16086 Therefore be a quoted heredoc.
16087 Don't invoke `_au_disable', since ac was not loaded, but just
16090 2001-08-31 Akim Demaille <akim@epita.fr>
16094 2001-08-31 Akim Demaille <akim@epita.fr>
16096 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
16098 * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
16100 2001-08-31 Akim Demaille <akim@epita.fr>
16102 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
16103 serious problems handling heredocs in heredocs.
16104 Reported by Nicolas Joly.
16106 2001-08-31 Akim Demaille <akim@epita.fr>
16108 * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
16109 (Making testsuite Scripts): Update.
16111 2001-08-31 Akim Demaille <akim@epita.fr>
16113 * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
16115 2001-08-31 Akim Demaille <akim@epita.fr>
16117 * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
16118 (testsuite Scripts): There is no such thing as `atconfig.in'.
16119 And actually one diagram is missing: test suite runtime.
16121 2001-08-31 Akim Demaille <akim@epita.fr>
16123 * lib/Autom4te/General.pm (&find_file): Browse the includes in the
16126 2001-08-31 Akim Demaille <akim@epita.fr>
16128 * bin/autoupdate.in (@include): `installcheck' revealed the path
16129 to m4sugar was lacking!
16131 2001-08-31 Akim Demaille <akim@epita.fr>
16133 * man/Makefile.am (.x.1): We really have to pass
16134 autom4te_perllibdir.
16136 2001-08-31 Akim Demaille <akim@epita.fr>
16138 * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
16139 debug scripts, in particular passing explicitly listed tests to
16142 2001-08-31 Akim Demaille <akim@epita.fr>
16144 * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
16145 * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
16146 Use directly autom4te, not autoconf.
16147 * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
16149 2001-08-31 Akim Demaille <akim@epita.fr>
16151 * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
16152 * bin/autoheader.in (%symbol): Strip arguments of macros.
16154 2001-08-31 Akim Demaille <akim@epita.fr>
16156 * doc/autoconf.texi: Catch up -I, --include changes.
16158 2001-08-31 Akim Demaille <akim@epita.fr>
16160 * bin/autom4te.in (&parse_args): Die on unknown languages.
16161 * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
16163 Promote --include over --macrodir and other obsolete options.
16165 2001-08-31 Akim Demaille <akim@epita.fr>
16167 * lib/Autom4te/General.pm ($version, $help, &getopt): New.
16168 * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
16169 * bin/autom4te.in ($autoconf): Pass --force.
16170 `print $out' doesn't print `$_' but `$out'.
16171 * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
16172 (autoheader): Pass --force since the test suite goes too fast for
16174 Adjust to the new autoheader messages.
16176 2001-08-31 Akim Demaille <akim@epita.fr>
16178 * bin/autoheader.in: Handle the acconfig.h etc. junk files.
16179 Check the completeness of the #template.
16180 * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
16181 * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
16184 2001-08-31 Akim Demaille <akim@epita.fr>
16186 * lib/Autom4te/General.pm (&find_file, &update_file): New.
16187 * bin/autoupdate.in, bin/autoheader.in: Adjust.
16188 Drop AC_MACRODIR dead for real.
16189 * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
16190 `autoheader: `config.hin' is created'.
16191 * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
16193 2001-08-31 Akim Demaille <akim@epita.fr>
16195 * bin/autoheader.in: Rewrite in Perl.
16196 * tests/autoheader: Adjust.
16198 2001-08-31 Akim Demaille <akim@epita.fr>
16200 * bin/autoconf.in (--include, -I): New option.
16201 Map --localdir, --autoconf-dir onto it.
16202 Forward autom4te's options instead of interpreting them.
16203 * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
16204 There is no such envvar since the inception of autom4te.cfg.
16205 * bin/autom4te.in (&parse_args): Uniquify `@include'.
16206 * bin/autoupdate.in: Adjust, and perform more control.
16207 * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
16208 * tests/autoconf: Dittowise.
16210 2001-08-31 Akim Demaille <akim@epita.fr>
16212 * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
16213 * bin/autom4te.in (&find_file): Support `FILE?' standing for
16215 Use -e, not -f, since /dev/null for instance is OK.
16216 (&parse_args): Adjust.
16217 * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
16219 2001-08-31 Akim Demaille <akim@epita.fr>
16221 * configure.ac: Also find tested executables in bin.
16222 * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
16223 * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
16224 installed peer executables, only PATH is allowed to resolve it.
16225 Pass `autoconf_dir' via options, not via invisible envvars.
16226 * lib/Autom4te/General.pm (&find_peer): Remove.
16227 * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
16228 `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
16229 * man/Makefile.am: Let help2man rely on PATH instead of trying to
16230 find the executables for it.
16231 * tests/Makefile.am: Major cleanup. Too lazy to document...
16232 * tests/atlocal.in: Remove all the obscure envvar manipulations.
16234 * tests/atspecific.m4, tests/tools.at: Passing --localdir is
16235 indeed related to running the test suite, while passing
16236 --autoconf-dir and others is related to running non installed
16237 Autoconf executables. So don't do that, leave it to...
16238 * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
16239 * tests/autoscan: New.
16240 * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
16241 refer to library files: rely on --language.
16243 2001-08-29 Akim Demaille <akim@epita.fr>
16245 * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
16246 s/--set/--language/.
16248 2001-08-29 Akim Demaille <akim@epita.fr>
16250 * doc/autoconf.texi: Strip the @nodes.
16251 Suggested by Paul Eggert.
16252 (Initializing configure): Typo.
16254 2001-08-29 Akim Demaille <akim@epita.fr>
16256 * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
16257 Suggested by Paul Eggert.
16259 2001-08-29 Akim Demaille <akim@epita.fr>
16261 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
16262 download in a tmp dir.
16264 2001-08-29 Akim Demaille <akim@epita.fr>
16266 * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
16267 case insensitive OSes out there :(
16268 From Tim Van Holder.
16270 2001-08-29 Akim Demaille <akim@epita.fr>
16272 * lib/autom4te.in: New.
16273 * lib/Makefile.am (edit, autom4te.cfg): New.
16274 * bin/autom4te.in (BEGIN): Simplify.
16275 Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
16276 (&load_configuration): New. Use it.
16277 (&parse_args): Support --mode, --set, and --melt.
16278 * bin/autoconf.in: Simplify and adjust.
16279 * tests/Makefile.am (AUTOMAKE): Use --set.
16280 * tests/atlocal.in: Adjust.
16281 * BUGS: distcheck and check are weak.
16283 2001-08-29 Akim Demaille <akim@epita.fr>
16285 * lib/autotest/general.m4: Use
16286 foo=`(command) 2>/dev/null`
16288 foo=`command` 2>/dev/null
16289 (at-devnull): Rename as...
16290 (AT-devnull): this.
16291 (--clean): Remove AT-* files too.
16292 * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
16293 Reported by Nicolas Joly.
16295 2001-08-28 Akim Demaille <akim@epita.fr>
16297 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
16298 quotes inside single quotes.
16299 Reported by Nicolas Joly.
16301 2001-08-28 Kevin Ryde <user42@zip.com.au>
16303 * doc/autoconf.texi (Function Portability): Mention C right shifts.
16305 2001-08-27 Tim Van Holder <tim.van.holder@pandora.be>
16307 * lib/autotest/general.m4: Reword some messages.
16308 (AT_INIT): Check for the `times' builtin before using it.
16309 Support test ranges as arguments to the testsuite.
16310 Have -e imply -d as the help text suggested.
16312 2001-08-27 Akim Demaille <akim@epita.fr>
16314 * Makefile.maint: Formatting changes.
16315 (do-po-update, po-update, cvs-update, update): New targets.
16318 2001-08-27 Akim Demaille <akim@epita.fr>
16320 * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
16321 <at_cmd_line>: New.
16322 Pass it to debug-*.sh scripts.
16323 <AUTOTEST_PATH>: May contain absolute dir names.
16325 2001-08-27 Akim Demaille <akim@epita.fr>
16327 * lib/autotest/general.m4 (AT_INIT): Log the command line.
16328 Support `VAR=VAL' as arguments.
16329 Compute PATH _after_ the options processing, so that AUTOTEST_PATH
16330 may be set via the command line.
16332 2001-08-27 Akim Demaille <akim@epita.fr>
16334 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
16335 * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
16336 first the build dirs, then the src dirs.
16337 * configure.ac (AC_CONFIG_TESTDIR): Adjust.
16339 2001-08-27 Akim Demaille <akim@epita.fr>
16341 * lib/autotest/general.m4 (AT_INIT): Output the definition of
16342 at_data_files earlier.
16343 (--clean, -c): New option.
16344 * tests/Makefile.am: Use this option.
16346 2001-08-27 Akim Demaille <akim@epita.fr>
16348 * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
16349 `ac_top_builddir' to mimic Automake's vocabulary, which much more
16352 * doc/autoconf.texi (Configuration Actions): Document the vars
16353 available in commands.
16354 Emphasize the risks of collisions in init-cmds.
16356 2001-08-27 Akim Demaille <akim@epita.fr>
16358 * doc/autoconf.texi (Input) <AC_INIT>: Move to..
16359 (Initializing configure): this new node.
16361 2001-08-27 Akim Demaille <akim@epita.fr>
16363 * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
16365 2001-08-27 Akim Demaille <akim@epita.fr>
16367 * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
16368 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
16370 * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
16372 2001-08-27 Akim Demaille <akim@epita.fr>
16374 * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
16376 * lib/autoconf/autoheader.m4: this new file.
16377 * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
16378 (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
16380 * lib/autoconf/autoupdate.m4: this new file.
16382 2001-08-27 Akim Demaille <akim@epita.fr>
16384 * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
16385 (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
16386 Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
16388 (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
16389 * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
16391 2001-08-27 Akim Demaille <akim@epita.fr>
16393 * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
16394 (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
16395 (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
16396 (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
16397 (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
16398 (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
16399 (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
16400 (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
16401 (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
16402 (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
16403 (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
16404 (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
16405 (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
16406 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
16407 (_AC_OUTPUT_SUBDIRS): Move to...
16408 * lib/autoconf/status.m4: this new file.
16409 * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
16410 * tests/Makefile.am, tests/suite.at: Adjust.
16412 2001-08-27 Akim Demaille <akim@epita.fr>
16416 * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
16417 (AMTAR): Help automake define it.
16418 (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
16419 needed, 1.5 can have a macro and a target with the same name.
16420 * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
16421 * m4/strip.m4: New.
16422 * m4/init.m4, m4/sanity.m4: Update.
16423 * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
16424 * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
16425 * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
16426 * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
16428 2001-08-27 Akim Demaille <akim@epita.fr>
16430 Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
16432 * lib/autoconf/version.in: Remove.
16433 * lib/m4sugar/version.in: New.
16434 * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
16436 * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
16437 the name of the directory they're in, instead of the filename,
16438 since version.m4 is now in m4sugar, but m4_acversion must not be
16439 classified as an Autoconf macro.
16440 ($input_m4): Don't qualify the path to m4sugar.
16441 Rather, pass autoconf_dir to m4.
16442 * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
16443 * tests/suite.at: Require 2.52c.
16445 2001-08-27 Akim Demaille <akim@epita.fr>
16447 testsuite.log should include config.log.
16449 * lib/autotest/autotest.m4: New.
16450 * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
16451 * tests/suite.at : Adjust.
16452 (AT_INIT): Log config.log.
16453 * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
16454 * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
16455 * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
16456 (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
16457 of config.log on traps.
16458 (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
16459 Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
16460 for config.status'.
16461 Open the log as soon as possible.
16462 Use the same log introduction as configure's.
16464 2001-08-22 Paul Eggert <eggert@twinsun.com>
16466 * doc/autoconf.texi (Indices): New node.
16467 Move indices out of the top level menu and into this submenu.
16469 2001-08-22 Akim Demaille <akim@epita.fr>
16471 * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
16473 (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
16475 2001-08-22 Akim Demaille <akim@epita.fr>
16477 * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
16478 (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
16479 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
16480 * lib/autoconf/programs.m4: here.
16481 * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
16482 (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
16483 (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
16484 * lib/autoconf/programs.m4: here.
16485 (_AC_DECL_YYTEXT): Rename as...
16486 (_AC_PROG_LEX_YYTEXT_DECL): this.
16487 * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
16488 * tests/Makefile.am, tests/suite.am: Adjust.
16490 2001-08-22 Akim Demaille <akim@epita.fr>
16492 * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
16494 * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
16496 * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
16497 * lib/autoconf/functions.m4: here.
16498 * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
16499 (AH_CHECK_LIB): Move to...
16500 * lib/autoconf/libs: this new file.
16501 * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
16502 (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
16503 * lib/autoconf/libs.m4: here.
16504 * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
16506 2001-08-22 Akim Demaille <akim@epita.fr>
16508 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
16509 * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
16510 (AC_SITE_LOAD): Better logging of config.site.
16512 2001-08-20 Akim Demaille <akim@epita.fr>
16514 * configure.ac (AT_CONFIG): Fix the path.
16515 * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
16518 2001-08-20 Alexandre Duret-Lutz <duret_g@epita.fr>
16520 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
16521 program with AC_LANG_PROGRAM before feeding it to
16522 AC_COMPILE_IFELSE. Cleanup grep usage.
16524 2001-08-20 Akim Demaille <akim@epita.fr>
16526 * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
16527 * NEWS, README, README-alpha, TODO, tests/README: This package is
16528 `Autoconf', not `autoconf' (the executable).
16530 2001-08-20 Akim Demaille <akim@epita.fr>
16532 Info readers seem to need `Index' in the index node title :(
16534 * doc/autoconf.texi: Reverse the 2001-08-15 change which
16535 simplified index node names.
16537 2001-08-20 Akim Demaille <akim@epita.fr>
16539 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
16540 arguments are not literals.
16541 * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
16542 Specify the output variables, and macros defined.
16544 2001-08-20 Akim Demaille <akim@epita.fr>
16546 * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
16547 (Examining Syntax) <AC_TRY_COMPILE>
16548 (Examining Libraries) <AC_TRY_LINK>
16549 (Test Programs) <AC_TRY_RUN>: These macros double quote some of
16551 Reported by Werner Lemberg.
16553 2001-08-20 Akim Demaille <akim@epita.fr>
16555 * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
16556 top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
16557 Load atlocal late enough to dump it in the log.
16558 * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
16560 2001-08-20 Akim Demaille <akim@epita.fr>
16562 * tests/torture.at (Configuring subdirectories): New test.
16563 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
16565 * m4/atconfig.m4: Be sure the let $[0] be expandable.
16566 (top_srcdir): Fix its computation.
16568 2001-08-20 Akim Demaille <akim@epita.fr>
16570 * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
16571 * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
16573 Create `atconfig' automagically.
16574 Configure atlocal.in if present.
16575 * tests/atconfig.in: Remove.
16576 * tests/atlocal.in: New.
16577 * tests/Makefile.am: Adjust.
16579 2001-08-20 Akim Demaille <akim@epita.fr>
16581 Huh!?!?! There are still some user EOF tags used, which prevents
16582 their use in AC_CONFIG_COMMANDS for instance...
16584 * lib/autoconf/general.m4, lib/autoconf/specific.m4,
16585 * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
16586 `_CSEOF', or `_ATEOF', as appropriate.
16587 * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
16588 * lib/autotest/Makefile.am (check-local): Enforce this constraint.
16590 2001-08-20 Akim Demaille <akim@epita.fr>
16592 * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
16593 * tests/semantics.at, tests/tools.at, tests/torture.at:
16594 s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
16596 2001-08-20 Akim Demaille <akim@epita.fr>
16598 Autotest invokes M4sh's initialization.
16600 * lib/autotest/general.m4: Adjust the diversion names.
16601 (AT_INIT): Run AS_INIT.
16602 Use the BINSH diversion to invoke /bin/sh.
16603 * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
16604 * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
16606 2001-08-20 Akim Demaille <akim@epita.fr>
16608 Let M4sh have its own diversions.
16610 * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
16611 (_m4_divert(NOTICE)): Rename as...
16612 * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
16613 (_m4_divert(HEADER-COMMENT)): these.
16614 (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
16615 (_m4_divert(NOTICE)): New, for Libtool.
16616 * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
16617 long ago with `_m4_divert(GROW)'.
16618 (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
16620 2001-08-20 Akim Demaille <akim@epita.fr>
16622 * tests/base.at, tests/compile.at, tests/foreign.at,
16623 * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
16624 * tests/semantics.at, tests/suite.at, tests/tools.at,
16625 * tests/torture.at: Ask Autotest mode, not Autoconf mode.
16627 2001-08-20 Akim Demaille <akim@epita.fr>
16629 * bin/autom4te.in (handle_output): Handle @__@.
16631 2001-08-20 Akim Demaille <akim@epita.fr>
16633 * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
16634 * lib/autotest/general.m4: Adjust the license.
16636 2001-08-17 Paul Eggert <eggert@twinsun.com>
16638 * doc/autoconf.texi (Function Portability): Mention snprintf,
16639 following up on a suggestion by Kevin Ryde.
16641 2001-08-17 Akim Demaille <akim@epita.fr>
16643 * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
16644 `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
16646 2001-08-17 Akim Demaille <akim@epita.fr>
16648 * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
16649 `$0.log' as for projects where testsuite is in src, we'd have
16650 testsuite.log created in src.
16652 2001-08-17 Akim Demaille <akim@epita.fr>
16654 * bin/autom4te.in (&parse_args): Recognize --normalize.
16656 2001-08-17 Akim Demaille <akim@epita.fr>
16658 Start implementing the AC_CHECK_HEADER transition scheme.
16660 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
16661 (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
16662 (AC_CHECK_HEADER): Use them.
16664 2001-08-17 Akim Demaille <akim@epita.fr>
16666 * doc/autoconf.texi: Work around Texinfo buglets.
16667 (Transformation Rules): One example is enough, users are expected
16668 to have their brains on. And BTW, use DESTDIR.
16669 (dvar): New macro. Use it.
16671 2001-08-17 Akim Demaille <akim@epita.fr>
16673 * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
16674 * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
16675 looking for ChangeLogs.
16677 2001-08-17 Akim Demaille <akim@epita.fr>
16679 * bin/autom4te.in: --normalize is a new option.
16680 * bin/autoconf.in: Use it.
16682 2001-08-17 Akim Demaille <akim@epita.fr>
16684 * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
16685 * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
16687 2001-08-16 Paul Eggert <eggert@twinsun.com>
16689 * doc/autoconf.texi, doc/install.texi: Put copyright notice at
16692 2001-08-15 Akim Demaille <akim@epita.fr>
16694 * doc/Makefile.am (fu): New index, can't use fn because of defmac.
16697 2001-08-15 Akim Demaille <akim@epita.fr>
16699 * doc/autoconf.texi (pr): New index.
16700 (prindex, findex): Use, merge, and output them.
16701 (Environment Variable Index, Output Variable Index)
16702 (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
16703 (Autotest Macro Index): Rename as...
16704 (Environment Variables, Output Variables,Preprocessor Symbols)
16705 (Autoconf Macros, M4 Macros, Autotest Macros): these.
16706 * doc/install.texi: Use @command.
16707 (Environment Variables): Rename as...
16708 (Defining Variables): this.
16710 2001-08-15 Akim Demaille <akim@epita.fr>
16712 * doc/autoconf.texi (Function Portability): sprintf's return
16716 2001-08-15 Akim Demaille <akim@epita.fr>
16718 * Makefile.maint (CVS): New.
16719 (local-check): Run changelog-check. last.
16720 (alpha): Don't depend upon local-check, since...
16721 (cvs-dist): depends upon it.
16723 2001-08-15 Tim Van Holder <tim.van.holder@pandora.be>
16725 * tests/Makefile.am: Use a clean-local rule to remove
16726 autom4te.cache (it's a directory, not a file.
16727 * Makefile.am: Ditto (but maintainer-clean-local).
16729 2001-08-15 Akim Demaille <akim@epita.fr>
16731 * bin/autom4te.in (@m4_warning): New.
16732 (&handle_m4): Use it.
16733 * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
16734 warnings are issued at each run.
16735 * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
16736 is in the src tree.
16738 2001-08-15 Akim Demaille <akim@epita.fr>
16740 * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
16741 don't waste time running `autoupdate --version' works.
16742 * tests/tools.at (autoupdating AC_PREREQ): Likewise.
16744 2001-08-13 Akim Demaille <akim@epita.fr>
16746 * doc/autoconf.texi (ma): Rename this index as...
16749 2001-08-13 Akim Demaille <akim@epita.fr>
16751 * Makefile.am: Remove dead code and dead comments.
16752 (pdf, html): New targets.
16753 * doc/autoconf.texi (Using Autotest): New chapter.
16754 * doc/Makefile.am (pdf): New targets.
16755 (CLEANFILES): Adjust.
16757 2001-08-13 Akim Demaille <akim@epita.fr>
16759 * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
16760 duration of the test suite.
16762 2001-08-12 Alexandre Duret-Lutz <duret_g@epita.fr>
16764 * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
16765 endianness for comparison instead of relying on AT_CHECK_ENV.
16767 2001-08-11 Paul Eggert <eggert@twinsun.com>
16769 * doc/autoconf.texi, doc/install.texi: Add a copyright notice
16770 to the INSTALL file.
16772 2001-08-11 Paul Eggert <eggert@twinsun.com>
16774 * NEWS: The autoconf manual now is distributed under the terms
16775 of the GNU Free Documentation License.
16777 * doc/autoconf.texi: Switch from old style copyright notice to FDL.
16778 Add an appendix "Copying This Manual" for the FDL.
16780 * doc/fdl.texi: New file, from
16781 <http://www.gnu.org/licenses/fdl.texi>.
16783 * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
16785 2001-08-10 Paul Eggert <eggert@twinsun.com>
16787 * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
16788 ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
16789 README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
16790 m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
16791 m4/sanity.m4, tests/README, tests/aclocal.m4,
16792 tests/atspecific.m4, tests/base.at, tests/compile.at,
16793 tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
16794 tests/semantics.at, tests/suite.at, tests/tools.at,
16795 tests/torture.at: Add copyright notice.
16797 * tests/mktests.sh: Update year in copyright notice.
16799 2001-08-12 Alexandre Duret-Lutz <duret_g@epita.fr>
16801 * tests/semantics.at (AC_C_BIGENDIAN): New test.
16803 2001-08-11 Alexandre Duret-Lutz <duret_g@epita.fr>
16805 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
16806 ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
16807 * doc/autoconf.texi (C Compiler Characteristics): Update
16808 documentation for AC_C_BIGENDIAN.
16810 2001-08-11 Alexandre Duret-Lutz <duret_g@epita.fr>
16812 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
16813 magic values from an object file when cross-compiling.
16814 Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
16816 2001-08-10 Akim Demaille <akim@epita.fr>
16818 * bin/autom4te.in (&handle_output): Don't use `grep' with side
16820 Suggested by Russ Allbery.
16822 2001-08-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
16824 * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
16825 current $prefix to the sub-configures.
16827 2001-08-09 Tim Van Holder <tim.van.holder@pandora.be>
16829 * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
16830 extension (needed on BeOS). Reported by Guido van Rossum.
16832 2001-08-09 Akim Demaille <akim@epita.fr>
16834 * bin/autom4te.in ($icache): Load it only if older than autom4te.
16836 2001-08-07 Akim Demaille <akim@epita.fr>
16838 * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
16840 (at-setup-line): Huh? Be a variable `at_setup_line', not a file.
16841 No need to remove the files before and after the each test, before
16842 each test and at the end of the suite is enough.
16843 Display only the children `times', not the shell's.
16844 If the test failed or was skipped, at-times is not available.
16846 2001-08-07 Akim Demaille <akim@epita.fr>
16848 Always produce testsuite.log, including when there are no
16849 failures. This helps getting information on skipped tests, and
16850 duration of the tests. Err, implement the latter btw.
16852 * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
16853 Dump information on the first run of each test.
16854 (AT_CLEANUP): Create `at-times' containing the duration of the
16857 2001-08-07 Akim Demaille <akim@epita.fr>
16859 The use of `dumpstat' revealed that `len' was used although it
16860 should not. m4_text_wrap was using it, but in the Autoconf world
16861 where it is legal. Hence (i) test M4sh in its own world, not
16862 Autoconf's, and (ii), ahem, fix the bug :)
16864 * lib/autotest/general.m4: Be sure the set good quotes, as tracing
16865 does not like `' instead of [].
16866 (AT_INIT): Forbid `^_?AT_'.
16867 And don't output such tokens.
16868 * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
16869 `script.as', and `autom4te.cache'.
16870 Remove `empty' and `macro' which are no longer used.
16871 * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
16872 * tests/m4sugar.at: Use it.
16873 * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
16875 2001-08-07 Akim Demaille <akim@epita.fr>
16877 * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
16879 2001-08-07 Alexandre Duret-Lutz <duret_g@epita.fr>
16881 * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
16883 2001-08-04 Akim Demaille <akim@epita.fr>
16885 * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
16886 (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
16888 * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
16889 * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
16890 (AC_F77_MAIN): Likewise.
16892 2001-08-04 Akim Demaille <akim@epita.fr>
16894 Don't rely on M4sugar outputting the patterns in files, since we
16895 might process the output _without_ running m4, hence without these
16898 * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
16899 * bin/autom4te.in (@Request::includes): Remove, unused.
16900 (@Request::source): Rename as...
16901 (@Request::input): this.
16902 (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
16903 (&handle_output): Fetch the patterns from the traces.
16904 `$forbidden' and `$allowed' are constant: use m//o.
16905 (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
16906 (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
16908 2001-08-04 Akim Demaille <akim@epita.fr>
16910 `autoconf && autoheader' is sped up. Now, speed up `autoheader &&
16911 autoconf', i.e., in addition to caching traces, cache the output.
16913 * bin/autom4te.in (Request::cache): Rename as...
16914 (Request::id): this.
16915 ($cache, $icache, $tcache, $ocache): New.
16916 (&handle_m4): Save M4 output in the cache instead of $tmp.
16917 (&handle_output): Adjust.
16918 (&up_to_date_p): Check that the output cache is up to date too.
16919 (top level): Run `&handle_m4' iff force or the cache is invalid.
16920 Run `&handle_output' if the output cache is more recent.
16922 2001-08-04 Akim Demaille <akim@epita.fr>
16924 * bin/autom4te.in ($force): New.
16925 (&parse_args, &print_usage): -f, --force is a new option.
16926 (&handle_output): CPP directives might have spaces after `#'.
16927 (&parse_args): The first file only can be frozen.
16929 2001-08-04 Akim Demaille <akim@epita.fr>
16931 Don't let autom4te compute the `include' traces several times:
16932 first check that the trace cache file is up to date, and then
16933 compare its timestamp with that of the output.
16935 * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
16936 the preamble. Don't require 5.005 as Autom4te::General does it,
16937 and better yet (use `use', not `require'!).
16938 * lib/Autom4te/Struct.pm: Rename the last occurrences of
16939 Class::Struct as Autom4te::Struct.
16940 * lib/Autom4te/General.pm (File::stat): Use it.
16941 (&mtime): New, export it.
16942 * bin/autom4te.in: Use it.
16943 Declare `$req' is invalid if it is outdated.
16944 Don't declare it valid before saving it if something went wrong.
16946 2001-08-04 Akim Demaille <akim@epita.fr>
16948 Autom4te shall not encode Autoconf data, and preselecting traces
16949 must be proposed to the users.
16951 * bin/autom4te.in (@required_trace): Remove.
16953 (&parse_args, &print_usage): -p, --preselect is a new option.
16954 (&up_to_date_p): Adjust.
16955 * bin/autoconf.in: Preselect some Autoconf macros.
16957 2001-08-04 Akim Demaille <akim@epita.fr>
16959 * tests/tools.at (autoconf --trace: user macros): Check traces on
16960 macros invoked without arguments, and macros invoked with multiple
16963 2001-08-03 Alexandre Duret-Lutz <duret_g@epita.fr>
16965 * bin/autom4te.in (handle_traces): Fix rewriting of traces without
16968 2001-08-03 Akim Demaille <akim@epita.fr>
16970 * bin/autoconf.in ($@): Work around the usual sh bug.
16973 2001-08-03 Akim Demaille <akim@epita.fr>
16975 Clean up the handling of the M4 builtins tracing exception.
16977 * bin/autom4te.in (Request::request): Don't complete M4 builtins
16979 (@m4_builtins): Rename as...
16980 (@m4_builtin): this.
16981 (%m4_builtin_alternate_name): New.
16982 (&parse_args): Complete the trace requests with alternate names.
16983 (&handle_traces): Hence no longer do it here.
16984 (&trace_requests): Remove, unused.
16986 2001-08-03 Akim Demaille <akim@epita.fr>
16988 * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
16989 m4_if, and m4_wrap.
16991 2001-08-03 Akim Demaille <akim@epita.fr>
16993 * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
16994 (m4_divert_pop): Dump the whole diversion stack when a diversion
16996 * bin/autom4te.in (&handle_output): Remember of the first
16997 occurrence of a possibly undefined macro, not the last.
16998 Complain about the possibly undefined macros in the same order as
16999 the appear in the output.
17000 * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
17001 * tests/tools.at (autoconf: forbidden tokens, basic)
17002 (autoconf: forbidden tokens, exceptions): No longer sort
17003 autoconf's stderr, as it is now deterministic.
17004 Check that `dnl' is caught.
17006 2001-08-01 Akim Demaille <akim@epita.fr>
17008 * configure.ac: Bump to 2.52c.
17010 2001-08-01 Akim Demaille <akim@epita.fr>
17014 * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
17016 2001-08-01 Akim Demaille <akim@epita.fr>
17020 2001-08-01 Akim Demaille <akim@epita.fr>
17022 * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
17025 * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
17026 `END', as `Autom4te::General::END' will be triggered.
17027 * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
17028 * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
17029 system to run `mv', `rm', and `cmp'.
17031 2001-08-01 Akim Demaille <akim@epita.fr>
17033 * lib/Autom4te/General.pm (&unique): New.
17034 * bin/autoscan.in (&output): Use it to issue trace requests once.
17036 2001-08-01 Akim Demaille <akim@epita.fr>
17038 * lib/Autom4te/General.pm: New.
17039 * bin/autom4te.in (Autom4te::General): Use it.
17040 ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
17041 (&find_configure_ac, &find_slave): Remove.
17042 * bin/autoscan.in: Likewise.
17043 * bin/autoupdate.in: Likewise.
17045 2001-08-01 Akim Demaille <akim@epita.fr>
17047 * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
17048 * autoheader.in, autoreconf.in, autoupdate.in: Move to...
17049 * bin: here, new directory.
17050 * lib/Autoconf: Rename as...
17051 * lib/Autom4te: this, to please case insensitive junkie OSes.
17053 2001-08-01 Akim Demaille <akim@epita.fr>
17055 * autom4te.in ($m4): Handle the --nesting-limit.
17056 * autoconf.in (M4): Remove.
17058 2001-08-01 Akim Demaille <akim@epita.fr>
17060 * autoconf.in ($AWK): Remove, no longer used.
17061 * test/tools.at: Use AT_CHECK_AUTOCONF.
17062 (AWK portability): Remove, for autoconf no longer uses AWK.
17063 (Syntax of the Perl scripts): New.
17064 * configure.ac: autoconf no longer needs an AWK with a good
17066 Use a static test on AC_PACKAGE_VERSION.
17067 * autom4te.in (&up_to_date_p): Output depends on the arguments.
17068 * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
17069 * tests/atconfig.in (PERL): New.
17071 2001-08-01 Akim Demaille <akim@epita.fr>
17073 * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
17074 (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
17075 (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
17076 (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
17077 (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
17078 (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
17079 (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
17080 (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
17081 (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
17082 (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
17083 (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
17084 (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
17085 (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
17086 * lib/autoconf/c.m4: here, new file.
17088 * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
17089 (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
17090 (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
17091 (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
17092 (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
17093 (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
17094 (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
17095 (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
17096 (AC_F77_FUNC): Move to...
17097 * lib/autoconf/fortran.m4: here, new file.
17099 2001-08-01 Akim Demaille <akim@epita.fr>
17101 * acfunctions.m4: Rename as...
17102 * lib/autoconf/functions.m4: this.
17103 * acgeneral.m4: Rename as...
17104 * lib/autoconf/general.m4: this.
17105 * acheaders.m4: Rename as...
17106 * lib/autoconf/headers.m4: this.
17107 * aclang.m4: Rename as...
17108 * lib/autoconf/lang.m4: this.
17109 * acoldnames.m4: Rename as...
17110 * lib/autoconf/oldnames.m4: this.
17111 * acspecific.m4: Rename as...
17112 * lib/autoconf/specific.m4: this.
17113 * actypes.m4: Rename as...
17114 * lib/autoconf/types.m4: this.
17115 * autoconf.m4: Rename as...
17116 * lib/autoconf/autoconf.m4: this.
17118 * m4sugar.m4: Rename as...
17119 * lib/m4sugar/m4sugar.m4: this.
17120 * m4sh.m4: Rename as...
17121 * lib/m4sugar/m4sh.m4: this.
17123 * tests/atgeneral.m4: Rename as...
17124 * lib/autotest/general.m4: this.
17126 * acfunctions: Rename as...
17127 * lib/autoscan/functions: this.
17128 * acheaders: Rename as...
17129 * lib/autoscan/headers: this.
17130 * acidentifiers: Rename as...
17131 * lib/autoscan/identifiers: this.
17132 * aclibraries: Rename as...
17133 * lib/autoscan/libraries: this.
17134 * acmakevars: Rename as...
17135 * lib/autoscan/makevars: this.
17136 * acprograms: Rename as...
17137 * lib/autoscan/programs: this.
17139 2001-08-01 Akim Demaille <akim@epita.fr>
17141 * doc/autoconf.texi: Moving/deleting open files is not portable.
17142 Portability issues for `.' (source), and more information about sed.
17144 2001-07-25 Steven G. Johnson <stevenj@alum.mit.edu>
17146 * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
17147 which has a special meaning and is not a reference to libibmil.a.
17148 Reported by Matteo Frigo.
17150 2001-07-25 Pavel Roskin <proski@gnu.org>
17152 * autom4te.in (mktmpdir): Strip trailing newline from mktemp
17155 2001-07-25 Akim Demaille <akim@epita.fr>
17157 * autoconf.in: Try to define the variables before using them.
17158 * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
17159 instead of `$perllibdir'.
17160 * tests/atconfig.in ($autom4te_perllibdir): Export it.
17162 2001-07-25 Akim Demaille <akim@epita.fr>
17164 * autoconf.in (ac_LF_and_DOT): Remove, unused.
17166 2001-07-24 Akim Demaille <akim@epita.fr>
17168 Let autoconf use autom4te for traces.
17170 * autoconf.in ($task, task trace): Remove, merely pass --trace to
17172 * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
17173 (Because I found no way for autom4te to accept `-').
17174 * autom4te.in (&Request::request): Beware of M4 builtins.
17175 (END): Don't try to remove the content of an empty dir.
17176 (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
17177 (&handle_output): Set a default value to `$forbidden'.
17178 * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
17179 ($autoconf): Pass --debug and --verbose.
17180 * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
17183 2001-07-24 Akim Demaille <akim@epita.fr>
17185 Let autoconf use autom4te to create configure.
17187 * autoconf.in ($automate): New var.
17188 (task script): Use autom4te.
17189 * autom4te.in (File::Spec): Use it.
17191 (&parse_args): --warning is -W, not -w.
17192 Find the top level files.
17193 (&handle_m4): Pass the warnings flags.
17194 Don't report verbosely m4's failures, unless requested.
17195 (&handle_output): Don't complain for forbidden tokens in comments.
17196 Be sure to report all the forbidden tokens within a single line.
17197 (&trace_format_to_m4): Preserve `$_'.
17198 (&handle_traces): Sort the output macros.
17199 (&up_to_date_p): Find the files before trying to get its time stamp.
17201 2001-07-24 Akim Demaille <akim@epita.fr>
17203 * Makefile.am: Ship, build and install Autom4te.
17204 (SUBDIRS): Add lib.
17205 * lib/Autoconf/Struct.pm: New, from Automake 1.5.
17206 * configure.in: Require Perl.
17207 * man/autom4te.in: New.
17209 2001-07-19 Paul Eggert <eggert@twinsun.com>
17211 * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
17212 example, rather than (exit 1); exit (which isn't portable).
17214 2001-07-18 Akim Demaille <akim@epita.fr>
17218 2001-07-18 Akim Demaille <akim@epita.fr>
17220 The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
17221 was run, while they are needed also when it is expanded.
17222 Reported by Nicolas Joly.
17224 * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
17225 (AC_LANG_PROGRAM(C)): Use it instead of depending upon
17226 AC_F77_DUMMY_MAIN being expanded.
17228 2001-07-18 Akim Demaille <akim@epita.fr>
17230 * configure.in: Bump to 2.51a.
17232 2001-07-17 Akim Demaille <akim@epita.fr>
17236 2001-07-17 Akim Demaille <akim@epita.fr>
17238 * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
17239 Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
17241 2001-07-17 Akim Demaille <akim@epita.fr>
17243 The runtime test for AC_FUNC_GETPGRP fails when prototypes are
17244 used. Well, then use the prototypes when you can, and runtime as
17246 Reported by Artur Frysiak
17248 * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
17249 (AC_FUNC_GETPGRP): Use it.
17250 First try to compile with 0-ary or 1-ary calls.
17252 2001-07-17 Akim Demaille <akim@epita.fr>
17254 * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
17258 2001-07-17 Akim Demaille <akim@epita.fr>
17260 * Makefile.maint: Sync. with cppi 1.10.
17262 2001-07-17 Akim Demaille <akim@epita.fr>
17264 * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
17265 AC_F77_DUMMY_MAIN has been run.
17266 From Pavel Roskin and Steven G. Johnson.
17268 2001-07-17 Akim Demaille <akim@epita.fr>
17270 * configure.in: Rename as...
17271 * configure.ac: this.
17273 2001-07-17 Akim Demaille <akim@epita.fr>
17275 * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
17278 * Makefile.maint (release-archive-dir): Rename as...
17279 (release_archive_dir): this, so that it can be specialized in
17282 2001-07-14 Akim Demaille <akim@epita.fr>
17284 * configure.in: Bump to 2.50d.
17286 2001-07-14 Akim Demaille <akim@epita.fr>
17289 * Makefile.maint (alpha): Typo.
17291 2001-07-14 Akim Demaille <akim@epita.fr>
17293 * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
17295 2001-07-14 Akim Demaille <akim@epita.fr>
17297 * config/config.guess, config/config.sub, config/texinfo.tex
17298 * doc/standards.texi, doc/make-stds.texi: Update.
17300 2001-07-14 Akim Demaille <akim@epita.fr>
17302 * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
17304 2001-07-14 Akim Demaille <akim@epita.fr>
17306 * Makefile.maint (maintainer-check): Rename as...
17307 (maintainer-distcheck): this.
17308 (changelog-check, static-check): New.
17311 2001-07-14 Kevin Ryde <user42@zip.com.au>
17313 * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
17314 for CXX is g++, not gcc.
17316 2001-07-14 Akim Demaille <akim@epita.fr>
17318 * doc/autoconf.texi (Files): New subsection.
17320 2001-07-14 Akim Demaille <akim@epita.fr>
17322 * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
17324 (Generic Compiler Characteristics): this.
17325 (C++ Compiler): New subsection.
17327 2001-07-14 Akim Demaille <akim@epita.fr>
17329 * autoscan.in: Use IO::File.
17330 Adjust all the routines to use it.
17331 ($log): New file (autoscan.log).
17332 (output): Dump detailed logs into $log, and a shortened version to
17334 (&scan_makefile): Refine the regexp catching tokens in the code.
17335 * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
17336 and the `configure.ac' checking feature.
17338 2001-07-12 Akim Demaille <akim@epita.fr>
17340 For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
17341 Reported by Michael Elizabeth Chastain.
17343 * autoconf.in: Refuse such AWK.
17344 * configure.in: Likewise.
17345 * Makefile.am (acversion.m4): Do not use move-if-change this file
17347 * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
17349 2001-07-10 Jens Petersen <petersen@redhat.com>
17351 * autoscan.in (&scan_makefile): Improve programs regexp to parse
17352 things like "g++", "file.c" and "some-conf" as tokens.
17353 (&scan_file): Match C++ files extensions.
17354 If the filename extension is C++ then ask for c++.
17356 2001-07-05 Steven G. Johnson <stevenj@alum.mit.edu>
17358 * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
17359 AC_TRY_LINK_FUNC, to check whether defining a dummy
17360 main-like routine is needed for linking with F77 libs.
17362 2001-07-05 Pavel Roskin <proski@gnu.org>
17364 * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
17366 (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
17369 2001-07-05 Akim Demaille <akim@epita.fr>
17371 * Makefile.am (move_if_change): New. Use it instead of `mv'.
17372 (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
17374 Reported by Nicolas Joly.
17376 2001-07-04 Akim Demaille <akim@epita.fr>
17378 * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
17380 * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
17381 warnings from compilers.
17382 * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
17383 for all the compilers, not only GNU. Hence move from here...
17384 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
17386 2001-07-04 Akim Demaille <akim@epita.fr>
17388 * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
17389 (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
17392 2001-07-04 Akim Demaille <akim@epita.fr>
17394 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
17395 the ``strings.h'' change claimed below.
17397 2001-07-04 Akim Demaille <akim@epita.fr>
17399 * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
17401 2001-07-04 Akim Demaille <akim@epita.fr>
17403 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
17404 strings.h if usable with string.h.
17405 Suggested by Paul Eggert.
17407 2001-07-04 Akim Demaille <akim@epita.fr>
17409 * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
17410 From Jens Petersen.
17412 2001-07-03 Akim Demaille <akim@epita.fr>
17414 * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
17417 2001-07-03 Akim Demaille <akim@epita.fr>
17419 * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
17420 compiler, not the preprocessor.
17421 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
17422 dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
17424 * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
17425 earlier if there are.
17427 2001-07-03 Akim Demaille <akim@epita.fr>
17429 * autoscan.in ($initfile): Remove.
17430 (&find_file): Rename as...
17431 (&scan_file): this.
17432 Immediately scan the current file, instead of gathering them, and
17433 later having them handled by &scan_files.
17434 (&scan_files): Merely invoke Find::File.
17437 2001-07-02 Akim Demaille <akim@epita.fr>
17439 * autoscan.in: Formatting changes, matching the invocation order.
17440 (File::Find): Use it instead of Perl 4's `find.pl'.
17441 (&wanted): Rename as...
17442 (&find_file): this.
17444 2001-07-01 Pavel Roskin <proski@gnu.org>
17446 * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
17447 break in the argument to AC_TRY_LINK_FUNC.
17448 (AC_F77_MAIN): Remove conftest* after using break in the
17449 argument to AC_TRY_LINK.
17451 2001-07-01 Steven G. Johnson <stevenj@alum.mit.edu>
17453 Add alternate 'main' routine detection for linking C/C++ with Fortran,
17454 fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
17456 * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
17457 dummy alternate main is required even if the user provides her own
17459 (AC_F77_MAIN): New macro to detect whether it is possible to
17460 provide an alternate 'main' function name, using the 'main' from
17461 the Fortran libraries.
17462 (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
17463 cross-language link tests can be performed successfully.
17464 (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN. Also put $FLIBS
17465 after $LIBS, for consistency; this should be the general rule since
17466 the user may want to link to Fortran libraries that require $FLIBS.
17467 * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
17469 2001-06-29 Pavel Roskin <proski@gnu.org>
17471 * atgeneral.m4 (AT_CHECK): Add a newline to the end of
17472 at-stdout and at-stderr instead of removing the newline
17473 from the echo output, which is not guaranteed to work.
17475 2001-06-28 Jens Petersen <petersen@redhat.com>
17477 * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
17478 confdefs.h when non-zero.
17480 2001-06-28 Akim Demaille <akim@epita.fr>
17482 * configure.in: Bump to 2.50c.
17484 2001-06-26 Akim Demaille <akim@epita.fr>
17488 2001-06-26 Akim Demaille <akim@epita.fr>
17492 2001-06-25 Pavel Roskin <proski@gnu.org>
17494 * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
17495 argument, AUTOCONF-FLAGS.
17496 * tests/mktests.sh (update_exclude_list): Add
17497 AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
17498 * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
17499 AC_FUNC_WAIT3 with "-W no-obsolete".
17501 2001-06-25 Akim Demaille <akim@epita.fr>
17503 * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
17505 2001-06-25 Akim Demaille <akim@epita.fr>
17507 * autoscan.in (%macro): Now maps from word to list of macros.
17508 (&init_tables): Die when a word which is already handled by
17509 explicit macros is mapped to the default macro.
17510 (&print_unique): Remove, inlined in...
17511 (&output_kind): here.
17512 (File::Basename): Use it.
17513 (&output): Sort the CONFIG_FILES.
17514 * acheaders: Normalize.
17515 * acfunctions: Likewise.
17517 2001-06-25 Akim Demaille <akim@epita.fr>
17519 * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
17520 characteristics in the logs.
17521 Suggested by Mo DeJong.
17523 2001-06-24 Akim Demaille <akim@epita.fr>
17525 * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
17526 (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
17527 * doc/autoconf.texi (Autoconf 2.13): New section.
17529 2001-06-24 Akim Demaille <akim@epita.fr>
17531 * autoconf.in (Task traces): Separate the error messages from the
17532 traces to improve robustness.
17534 2001-06-23 Akim Demaille <akim@epita.fr>
17536 * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
17537 three as failures are unlikely, and speed matters.
17539 2001-06-23 Akim Demaille <akim@epita.fr>
17541 * doc/autoconf.texi (Redefined M4 Macros): New.
17543 2001-06-23 Akim Demaille <akim@epita.fr>
17545 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
17546 inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
17549 2001-06-23 Paolo Bonzini <bonzini@gnu.org>
17551 * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
17552 config.status targets to after the evaluation of the INIT-CMDS.
17553 Double quote config.status targets (used to be single quoted).
17555 2001-06-23 Akim Demaille <akim@epita.fr>
17557 * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
17558 Check the content of the created file.
17559 Check the ./config.status command line invocation.
17561 2001-06-23 Akim Demaille <akim@epita.fr>
17563 * tests/foreign.at (Libtool): Reject prehistoric versions.
17565 2001-06-23 Akim Demaille <akim@epita.fr>
17567 * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
17568 preexisting files matching a.*.
17570 2001-06-23 Akim Demaille <akim@epita.fr>
17572 * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
17574 * doc/autoconf.texi (AC_ARG_VAR): Update.
17576 2001-06-21 Akim Demaille <akim@epita.fr>
17578 * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
17579 precious variables have changed.
17580 * tests/torture.at (AC_ARG_VAR): Adjust.
17582 2001-06-21 Akim Demaille <akim@epita.fr>
17584 ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
17585 but some sed choke on multiple `;', and other tools (e.g.,
17586 Automake), include the separator themselves.
17588 * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
17590 2001-06-19 Tim Van Holder <tim.van.holder@pandora.be>
17592 * doc/autoconf.texi (Functions Portability): Rename as...
17593 (Function Portability): this.
17594 (Function Portability): Document potential problems with unlink().
17596 2001-06-19 Paul Eggert <eggert@twinsun.com>
17598 * NEWS, doc/autoconf.texi: Document quadrigraphs.
17600 2001-06-18 Akim Demaille <akim@epita.fr>
17602 * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
17604 2001-06-18 Ruediger Kuhlmann <info@ruediger-kuhlmann.de>
17606 * acfunctions.m4: (AC_FUNC_VFORK) rename as...
17607 (_AC_FUNC_VFORK): this.
17608 Remove AC_DEFINEs and don't guess cross-compilation values.
17609 (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
17610 (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
17611 define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
17612 vfork doesn't work.
17613 Guess values if cross-compiling, but warn.
17614 * acfunctions: Add AC_FUNC_FORK.
17615 * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
17616 and vfork appropriately.
17618 2001-06-18 Akim Demaille <akim@epita.fr>
17620 * doc/autoconf.texi (Functions Portability): New section.
17622 2001-06-18 Akim Demaille <akim@epita.fr>
17624 * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
17626 Suggested by Andreas Schwab.
17628 2001-06-18 Akim Demaille <akim@epita.fr>
17630 * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
17631 (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
17632 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
17633 (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
17634 Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
17635 and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
17636 (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
17639 2001-06-18 Akim Demaille <akim@epita.fr>
17641 * doc/autoconf.texi (ms): New index.
17642 (Macro Index): Rename as...
17643 (Autoconf Macro Index): this.
17644 (M4 Macro Index): New appendix.
17645 (Programming in M4): New chapter.
17646 Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
17647 (Quoting): Rename as...
17648 (M$ Quotation): this.
17649 Be part of `Programming in M4).
17651 2001-06-18 Nicolas Joly <njoly@pasteur.fr>
17653 * tests/torture.at (AC_ARG_VAR): Set variables and export them
17654 in separate statements for compatibility with Tru64 v5.1.
17656 2001-06-17 Akim Demaille <akim@epita.fr>
17658 * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
17659 current values of the precious variables, not the previously
17661 Pass precious variables which are set to config.status.
17662 * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
17663 * tests/torture.at (AC_ARG_VAR): New.
17665 2001-06-15 Paul Eggert <eggert@twinsun.com>
17667 * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
17668 AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
17669 and explain why and how to replace them.
17670 * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
17671 * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
17673 2001-06-15 Akim Demaille <akim@epita.fr>
17675 `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
17676 Reported by Bruno Haible.
17678 * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
17679 (_AC_ARG_VAR_PRECIOUS): to here.
17681 2001-06-15 Pavel Roskin <proski@gnu.org>
17683 * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
17684 an unused pointer use cast to this type and `if' statement to
17685 avoid warnings from the compiler.
17686 (AC_HEADER_TIME): Likewise.
17687 * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
17688 in `if' statement to avoid warnings from the compiler. Declare
17689 ac_aggr static to avoid the need to initialize it.
17691 2001-06-14 Akim Demaille <akim@epita.fr>
17693 * doc/autoconf.texi (Portable Shell): Move to follow `Writing
17696 2001-06-13 Akim Demaille <akim@epita.fr>
17698 * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
17699 Suggested by Alexander Mai.
17701 2001-06-13 Akim Demaille <akim@epita.fr>
17703 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
17704 sys/types.h and sys/stat.h, and check for them.
17706 2001-06-13 Akim Demaille <akim@epita.fr>
17708 * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
17711 2001-06-12 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
17713 * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
17714 succeeds and only try adding libdnet upon a failure.
17716 2001-06-12 Akim Demaille <akim@epita.fr>
17718 * autoscan.in (&output_kind): Output the comment only if it exists.
17719 (%kind_comment): Add entry for `programs'.
17720 (&output_programs): Use &output_kind.
17721 (&output_functions, &output_identifiers, &output_headers)
17722 (&output_programs): Inline, and remove.
17724 2001-06-12 Akim Demaille <akim@epita.fr>
17726 * autoscan.in (%kind_comment): New.
17727 (output_kind): New.
17728 (output_functions, output_identifiers, output_headers): Use it.
17730 2001-06-12 Akim Demaille <akim@epita.fr>
17732 * autoscan.in (&print_unique): Take `$kind' and `$word' as
17733 arguments, to factor indirections into `%macro' and `%used'.
17734 (%generic_macro): Fix a typo.
17736 2001-06-12 Akim Demaille <akim@epita.fr>
17738 * aclibraries: New.
17739 * autoscan.in (@kinds): Add `libraries'.
17740 Use `@kinds' instead of hard coded lists.
17741 (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
17742 Remove, replaced by...
17745 2001-06-12 Akim Demaille <akim@epita.fr>
17747 * autoscan.in (%functions_macros %headers_macros)
17748 (%identifiers_macros %programs_macros %makevars_macros): Remove,
17752 2001-06-11 Raja R Harinath <harinath@cs.umn.edu>
17754 * aclang.m4 (AC_NO_EXECUTABLES): Override
17755 _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
17757 2001-06-11 Akim Demaille <akim@epita.fr>
17759 * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
17761 Reported by Andreas Schwab.
17763 2001-06-11 Akim Demaille <akim@epita.fr>
17765 * Makefile.am, Makefile.maint: Typos.
17767 2001-06-09 Akim Demaille <akim@epita.fr>
17769 * doc/autoconf.texi (Here-Documents): New section, gathering
17770 documentation about here-documents.
17771 Use `href', not `uref', and other changes.
17773 2001-06-09 Akim Demaille <akim@epita.fr>
17775 * doc/autoconf.texi (Portable Shell Programming): Promoted as a
17778 2001-06-09 Akim Demaille <akim@epita.fr>
17780 * doc/autoconf.texi (Limitations of Builtins): Complete the
17781 description of the here-docs penalties with Alexandre Oliva's
17784 2001-06-01 Paul Eggert <eggert@twinsun.com>
17786 * doc/autoconf.texi: Talk about here documents and speedups.
17787 Do not use "echo" on arbitrary strings.
17788 Spell "here-documents" consistently with the standard.
17790 2001-06-09 Akim Demaille <akim@epita.fr>
17792 * doc/autoconf.texi (Concept Index): Introduce it.
17793 Regenerate the menus.
17795 2001-06-09 Akim Demaille <akim@epita.fr>
17797 * Makefile.maint, GNUmakefile: New, from Jim Meyering.
17798 * config/prev-version.txt: New.
17799 * config/move-if-change: New, for GNU libc.
17801 2001-06-06 Pavel Roskin <proski@gnu.org>
17803 * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
17805 2001-06-06 Akim Demaille <akim@epita.fr>
17807 * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
17808 properly when $1 is not a literal.
17809 Fixes PR Autoconf/187, reported by Bram Moolenaar.
17811 2001-06-06 Akim Demaille <akim@epita.fr>
17813 Invoking AC_COPYRIGHT before AC_INIT fails.
17815 * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
17816 * acgeneral.m4 (_m4_divert(VERSION_FSF))
17817 (_m4_divert(VERSION_USER)): New.
17818 (AC_COPYRIGHT): $2 is the diversion to use.
17819 (_AC_INIT_COPYRIGHT): Use the FSF diversion.
17820 (AC_INIT): Remove dead comments as now it's commutative.
17822 2001-06-06 Akim Demaille <akim@epita.fr>
17824 * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
17827 2001-06-05 Akim Demaille <akim@epita.fr>
17829 * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
17831 `*dir' variables cannot be NONE.
17832 Reported by Mark Kettenis.
17834 2001-06-05 Paul Eggert <eggert@twinsun.com>
17836 * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
17838 2001-06-04 Akim Demaille <akim@epita.fr>
17840 * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
17841 (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
17842 (AC_TR_SH): Move as...
17843 * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
17844 (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
17846 (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
17847 (_AS_TR_SH_PREPARE): New.
17848 (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
17849 * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
17851 2001-06-02 Akim Demaille <akim@epita.fr>
17853 * Makefile.am (.m4.m4f): Pass the options first.
17854 Fixes PR autoconf/182.
17856 2001-06-02 Nathan Sidwell <nathan@codesourcery.com>
17858 GNU getopt, when POSIXLY_CORRECT does not permute options and
17859 arguments. So pass the options first.
17860 Fixes PR autoconf/184.
17862 * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
17863 (run_m4): Remove files.
17865 Update remainder of script to use them.
17866 (for warning in): Do not use a literal comma as it will not be
17869 2001-06-02 Christian Marquardt <marq@gfz-potsdam.de>
17871 * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
17872 Fortran compilers to check.
17873 (_AC_PROG_F77_V): Add '-###' as a possible option to print
17874 information on library and object files.
17875 (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
17878 2001-06-02 Akim Demaille <akim@epita.fr>
17880 * autom4te.in (Request::@request): Declare with `vars', not `my',
17881 as it prevents updates via `do FILENAME'.
17883 2001-06-02 Akim Demaille <akim@epita.fr>
17885 * configure.in (standards_texi): Remove, dead code.
17887 2001-06-02 Akim Demaille <akim@epita.fr>
17889 * autom4te.in: New.
17891 2001-06-02 Pavel Roskin <proski@gnu.org>
17893 * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
17894 for signals other than 0 - exit with code 1.
17895 * m4sh.m4 (AS_TMPDIR): Likewise.
17896 * autoconf.in: Likewise. Also don't rely on exit == exit $?.
17897 * autoheader.in: Likewise.
17898 * autoreconf.in: Likewise.
17899 * tests/torture.at (Signal handling): New test for the above.
17901 2001-06-01 Akim Demaille <akim@epita.fr>
17903 * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
17906 2001-05-31 Akim Demaille <akim@epita.fr>
17908 * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
17909 Add copyright and comments.
17910 * acheaders: Add stdint.h.
17911 Suggested by Paul Eggert.
17913 2001-05-31 Akim Demaille <akim@epita.fr>
17915 * atgeneral.m4 (AT_INIT): Use $SHELL.
17916 * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
17918 2001-05-31 Akim Demaille <akim@epita.fr>
17920 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
17922 From Paul Eggert and Lars Hecking.
17924 2001-05-31 Akim Demaille <akim@epita.fr>
17926 * tests/base.at: Adjust line numbers in error messages.
17928 2001-05-31 Akim Demaille <akim@epita.fr>
17930 * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
17931 to emit the bangshe line.
17932 Reported by David Carter.
17934 2001-05-30 Steven G. Johnson <stevenj@alum.mit.edu>
17936 * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
17937 Fortran (95) compilers to check.
17939 2001-05-29 Alexandre Duret-Lutz <duret_g@epita.fr>
17941 * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
17944 2001-05-23 Pavel Roskin <proski@gnu.org>
17946 * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
17947 _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
17948 (AC_PROG_CXXCPP): Likewise.
17950 2001-05-22 Akim Demaille <akim@epita.fr>
17952 * config: New directory.
17953 * configure.in: AC_CONFIG_AUX_DIR it.
17954 * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
17956 2001-05-22 Akim Demaille <akim@epita.fr>
17958 * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
17959 * autoupdate.in: Specify the Emacs mode.
17960 * acversion.m4.in: Rename as...
17961 * acversion.m4: this.
17962 * tests/Makefile.am (CLEANFILES): More garbage.
17964 2001-05-22 Akim Demaille <akim@epita.fr>
17966 * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
17968 * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
17971 2001-05-21 Akim Demaille <akim@epita.fr>
17973 * configure.in: Bump to 2.50a.
17982 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free
17983 Software Foundation, Inc.
17985 Copying and distribution of this file, with or without
17986 modification, are permitted provided the copyright notice and this
17987 notice are preserved.