1 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3 docs: Tru64/OSF sh treats read as special builtin
4 * doc/autoconf.texi (Limitations of Builtins): read may exit
5 upon unreadable or non-existent file with Tru64/OSF 5.1 sh.
7 2011-01-12 Eric Blake <eblake@redhat.com>
9 docs: fix description of m4_ifval
10 * doc/autoconf.texi (Conditional constructs) <m4_ifval>: Use
11 correct argument order.
15 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17 Avoid reference to $CYGWIN in Fortran macros.
18 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Require
19 AC_CANONICAL_HOST. Replace test for $CYGWIN with $host_s test.
20 * tests/fortran.at (AC_F77_DUMMY_MAIN usage)
21 (AC_FC_DUMMY_MAIN usage, AC_F77_MAIN usage, AC_FC_MAIN usage):
22 Use AT_CONFIGURE_AC and simplify accordingly, so auxiliary
23 scripts are copied into the test directories.
24 (AC_F77_FUNC usage, AC_FC_FUNC usage): Likewise. Adjust to
25 autoheader being used now.
27 docs: link to Gnulib configmake documentation.
28 * doc/autoconf.texi (Defining Directories): Use proper crossref,
29 now that the Gnulib manual has a configmake section.
32 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34 docs: link to 'set -e' shell behavior overview.
35 * doc/autoconf.texi (Limitations of Builtins): Add link to
36 Sven Mascheck's 'set -e' page. Replace broken Opengroup link.
37 Suggestion by Eric Blake.
39 docs: mention configmake module for defining directories.
40 * doc/autoconf.texi (Defining Directories): Mention configmake
42 Suggestion by Karl Berry and Eric Blake.
44 2011-01-04 Eric Blake <eblake@redhat.com>
46 doc: improve install.texi texinfo markup
47 * doc/install.texi: Don't force @firstparagraphindent on all
48 clients; instead, add it only when building INSTALL. Compress
50 * Makefile.am (INSTALL): Match gnulib's formatting.
51 Reported by Karl Berry.
53 maint: update copyright year
54 All files changed to add 2011, via 'make update-copyright'.
56 maint: resync upstream files
57 * GNUmakefile: Regenerated by 'make fetch'.
58 * build-aux/config.guess: Likewise.
59 * build-aux/config.sub: Likewise.
60 * build-aux/gendocs.sh: Likewise.
61 * build-aux/git-version-gen: Likewise.
62 * build-aux/texinfo.tex: Likewise.
63 * doc/make-stds.texi: Likewise.
64 * lib/Autom4te/Channels.pm: Likewise.
65 * lib/Autom4te/Configure_ac.pm: Likewise.
66 * lib/Autom4te/FileUtils.pm: Likewise.
67 * lib/Autom4te/Struct.pm: Likewise.
68 * lib/Autom4te/XFile.pm: Likewise.
70 maint: document use of copyright ranges
71 * README: Copy coreutils wording for allowing copyright year
73 * cfg.mk (UPDATE_COPYRIGHT_USE_INTERVALS): Now that GNU Coding
74 Standards permit it, prefer shorthand copyright.
75 * .x-update-copyright: Exempt an imported file.
77 2011-01-03 Karl Berry <karl@freefriends.org>
79 Avoid using @acronym in install.texi.
80 * doc/install.texi (Basic Installation, Multiple Architectures)
81 (Installation Names): Write `GNU' instead of `@acronym{GNU}'.
83 2010-12-27 Paul Eggert <eggert@cs.ucla.edu>
85 autoconf: Use -D_STDC_C99=, not -xc99=all, with Solaris cc
86 * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Use -D_STDC_C99= rather than
87 -xc99=all to convince Solaris Studio cc to compile c99 programs.
89 2010-11-26 Paul Eggert <eggert@cs.ucla.edu>
91 autotest: fix file descriptor leak
92 * lib/autotest/general.m4 (_AT_CHECK): Close AS_MESSAGE_LOG_FD
93 when running the test. Problem reported by Luke Mewburn in
94 <http://lists.gnu.org/archive/html/autoconf/2010-11/msg00036.html>.
96 2010-11-20 Paul Eggert <eggert@cs.ucla.edu>
98 autoconf: don't assume sys/stat.h and sys/types.h when testing C89
99 Problem reported by Patrick Pelissier in
100 <http://lists.gnu.org/archive/html/bug-autoconf/2010-11/msg00019.html>.
101 * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Don't include sys/types.h
102 and sys/stat.h. Instead, define a dummy struct stat. C89 doesn't
103 guarantee sys/types.h and sys/stat.h.
105 2010-11-10 Reuben Thomas <rrt@sc3d.org> (tiny change)
107 docs: avoid first person, and credit history to David MacKenzie
108 * doc/autoconf.texi (History): Add credit.
110 2010-10-26 Paul Eggert <eggert@cs.ucla.edu>
112 docs: Posix now says "((cat))" isn't portable
113 * doc/autoconf.texi (Parenthesis): Update documentation to reflect
114 what Posix 1003.1-2008 says about "((".
116 2010-10-20 Eric Blake <eblake@redhat.com>
118 docs: document dash bug in <>
119 * doc/autoconf.texi (File Descriptors): Dash 0.5.5 truncates on
120 <>; at least this was fixed in dash 0.5.6.
122 2010-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
124 tests: avoid AC_CACHE_CHECK test failure with dash.
125 * tests/base.at (AC_CACHE_CHECK): Normalize configure exit
126 status in presence of syntax error in sourced site file.
127 Do not error out if configure is aborted at this point.
128 Fixes testsuite failure with dash 0.5.5.1.
130 2010-10-08 Eric Blake <eblake@redhat.com>
132 AS_LITERAL_IF: Treat raw = as literal again.
133 * lib/m4sugar/m4sh.m4 (_AS_LITERAL_IF): Treat = like +.
134 * tests/m4sh.at (AS@&t@_TR_SH and AS@&t@_TR_CPP)
135 (AS@&t@_LITERAL_IF): Expand tests.
136 * NEWS: Document the fix.
137 Reported via Ben Pfaff; originally http://bugs.debian.org/593838
139 2010-09-24 Joshua G. Hale <jgh.emc@gmail.com> (tiny change)
141 docs: fix typo in AC_CONFIG_FILES example code.
142 * doc/autoconf.texi (Configuration Actions): Fix typo.
145 2010-10-05 Eric Blake <eblake@redhat.com>
147 doc: suggest a few more workarounds
148 * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Mention
149 that 'redundant' brackets can work around Solaris bug.
150 (File Descriptors): Mention that {} works as well as () for
151 silencing file-not-found warnings.
153 Suggested by Pádraig Brady.
155 2010-09-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
157 tests: normalize trailing spaces in gcc -E -dD output.
158 * tests/compile.at (AC_LANG_SOURCE example)
159 (AC_LANG_PROGRAM example): Remove trailing spaces before
160 comparing with expected output. Fixes testsuite failure
161 with GCC 2.95.3 on Haiku.
162 Report by Scott McCreary.
164 2010-09-22 Eric Blake <eblake@redhat.com>
166 Release Version 2.68.
167 * NEWS: Mention the release.
169 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
171 autom4te: add traces for likely future Automake macros
172 * lib/autom4te.in (Automake-preselections): Trace
173 AM_MAKEFILE_INCLUDE, AM_NLS, AM_POT_TOOLS, AM_PATH_GUILE,
174 AM_PROG_MOC, AM_XGETTEXT_OPTION, _AM_MAKEFILE_INCLUDE.
176 2010-09-22 Eric Blake <eblake@redhat.com>
178 AC_REPLACE_FUNCS: allow split lines again
179 * lib/autoconf/functions.m4 (AC_REPLACE_FUNCS): Flatten newlines
181 (_AC_REPLACE_FUNCS): ...to new helper.
182 * tests/semantics.at (AC_REPLACE_FUNCS): Enhance test.
183 Reported by Ralf Wildenhues.
185 2010-09-21 Eric Blake <eblake@redhat.com>
187 AC_LIBOBJ: optimize internal use
188 * lib/autoconf/general.m4 (_AC_LIBOBJ): Move literal check...
189 (AC_LIBOBJ): ...into callers.
190 * lib/autoconf/functions.m4 (_AC_REPLACE_FUNC): Likewise, thus
191 avoiding a second call to AS_LITERAL_IF.
193 AC_REPLACE_FUNCS: restore shell loop for non-literal
194 * lib/autoconf/functions.m4 (AC_REPLACE_FUNCS): Handle
195 non-literals, which was lost in 2010-02-26 optimization.
196 * tests/semantics.at (AC_REPLACE_FUNCS): Enhance test.
197 * NEWS: Document the fix.
199 Reported by Wiseman Jun.
201 maint: resync upstream files
202 * build-aux/gendocs.sh: Resync via 'make fetch'.
204 tests: XFAIL in the face of a MacOS X bug
205 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Mention
207 * tests/torture.at (Substitute and define special characters):
208 Detect if sed cannot process 8-bit bytes in the C locale.
212 2010-09-20 Eric Blake <eblake@redhat.com>
214 autom4te: don't filter out portions of location traces
215 * bin/autom4te.in (_m4_warn): Pass warnings through the channels
216 machinery as a single chunk, to avoid partial filtering.
217 * lib/m4sugar/m4sugar.m4 (_m4_warn): Document the conventions.
218 * tests/m4sugar.at (m4@&t@_warn): Enhance test to catch this.
219 Reported by Bruno Haible.
221 2010-09-17 Eric Blake <eblake@redhat.com>
223 build: support autobuild
224 * cfg.mk (gnulib-update): Add autobuild.m4.
225 * configure.ac (AB_INIT): Output autobuild header.
226 * m4/autobuild.m4: New file, from gnulib.
227 * build-aux/config.guess: Resync from upstream.
228 * build-aux/config.sub: Likewise.
229 * build-aux/texinfo.tex: Likewise.
230 * doc/fdl.texi: Likewise.
231 * doc/gnu-oids.texi: Likewise.
232 * doc/make-stds.texi: Likewise.
233 * doc/standards.texi: Likewise.
234 * build-aux/gendocs.sh: Likewise.
236 config.status: avoid corrupting $ac_t
237 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): Use a
238 different name, so as not to clash with pre-2.50 usage of "$ac_t"
240 Reported by Sam Steingold.
242 2010-09-17 Bruno Haible <bruno@clisp.org>
244 docs: mark several macros obsolete
245 * doc/autoconf.texi (Particular Functions): Mark AC_FUNC_ERROR_AT_LINE,
246 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, AC_FUNC_MKTIME, AC_FUNC_STRTOD
247 as obsolete and refer to Gnulib.
248 * NEWS: Mention the change.
250 AC_FUNC_STRNLEN: more realistic cross-compilation guess
251 * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): Require
252 AC_CANONICAL_HOST. When cross-compiling, guess it works everywhere
255 2010-09-16 Eric Blake <eblake@redhat.com>
257 m4sh: fix today's AS_BOX regression
258 * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Fix underquotation.
259 Reported by Stefano Lattarini.
261 fortran: avoid misparsed FCLIBS from Fortran compiler
262 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Also skip
263 'Configured by:' lines from gfortran.
265 Reported by Stefano Lattarini.
267 2010-09-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
269 Add autom4te trace for AM_PROG_AR.
270 * lib/autom4te.in (Automake-preselections): Trace
273 2010-09-16 Eric Blake <eblake@redhat.com>
275 m4sugar: fix regression in AC_MSG_ERROR expansion
276 * lib/m4sugar/m4sugar.m4 (m4_defun_init): Avoid macro
277 concatenation on subsequent expansions
278 * tests/m4sh.at (AS_WARN and AS_ERROR): New test.
279 * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
281 * NEWS: Document the fix.
283 Reported by Adrian Bunk and and Nishio Futoshi.
285 2010-09-13 Stefano Lattarini <stefano.lattarini@gmail.com>
287 tests: simplify grepping of 'automake --version'.
288 * tests/tools.at (autom4te preselections): Remove minor
289 redundancies in regular expressions used to grep the output
290 'automake --version' for test skipping.
291 * tests/torture.at (Configuring subdirectories)
292 (Unusual Automake input files): Likewise.
294 2010-09-13 Eric Blake <eblake@redhat.com>
296 autotest: work around zsh bug
297 * lib/autotest/general.m4 (AT_DATA): Special case an empty data
298 file, since zsh botches empty here-docs.
299 * doc/autoconf.texi (Writing Testsuites) <AT_DATA>: Document that
300 this allows empty contents.
301 * tests/autotest.at (AT_DATA): New test.
302 Reported by Ralf Wildenhues.
304 docs: mention gnulib portability docs
305 * doc/autoconf.texi (Function Portability, Header Portability):
306 Add external links to gnulib.
308 2010-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
309 Gary V. Vaughan <gary@gnu.org>
311 docs: document zsh specialty with empty here-documents.
312 * doc/autoconf.texi (Here-Documents): zsh 4.3.10 adds a newline
315 2010-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
317 docs: document zsh special array $options.
318 * doc/autoconf.texi (Special Shell Variables): Add entry for
322 * doc/autoconf.texi (Generic Compiler Characteristics): Use
323 second argument of @uref consistently, for nicer OpenMP link.
324 (Polymorphic Variables): Restore font-lock.
325 (Debugging): Add item for bashdb.
327 Document and test AT_CHECK args shell execution environment.
328 * doc/autoconf.texi (Writing Testsuites): Document that COMMANDS
329 is run in a subshell, but RUN-IF-FAIL and RUN-IF-PASS are not.
330 * tests/autotest.at (AT@&t@_CHECK execution environment): New
334 autotest: document and test at_status semantics.
335 * doc/autoconf.texi (Writing Testsuites): Document $at_status.
336 * tests/autotest.at (at_status): New test.
339 doc: index entries for non-environment, non-output variables.
340 * doc/autoconf.texi: Clarify the meaning of the various variable
341 indices. Merge variable index `vr' into concept index using
343 (Configuration Actions, Generic Programs, Generic Functions)
344 (Writing Testsuites): Add index entries for documented shell
345 variables used during in configure and testsuite scripts.
347 2010-09-12 Fernando Carrijo <fcarrijo@freedesktop.org> (tiny change)
349 docs: fix minor typo and 'See See foo' instances
350 * doc/autoconf.texi (Buffer Overruns and Subscript Errors): Fix
351 usage of TeX superscript notation to correctly represent number
353 (Shell Functions): s/[Ss]ee @xref/@xref/
354 (Limitations of Shell Builtins, Canonicalizing): Likewise.
357 2010-09-13 Eric Blake <eblake@redhat.com>
359 tests: skip broken automake wrapper on MirBSD
360 * tests/tools.at (autom4te preselections): Skip, rather than fail,
361 if 'automake --version' succeeds without printing a version when
362 an environment variable is not set.
363 * tests/torture.at (Configuring subdirectories)
364 (Unusual Automake input files): Likewise.
366 2010-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
368 doc: minor indexing update.
369 (Shell Substitutions, Site Defaults): Fix markup for indexed
370 entried, using @code and @file as appropriate.
371 (M4 Macro Index): Clarify which of the indexed macros have m4_
372 and which have AS_ prefix.
374 2010-09-08 Eric Blake <eblake@redhat.com>
376 m4sh: preserve set -vx over re-exec
377 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Trace through
378 re-exec, to make it easier to debug script startup issues.
379 Idea from recent bug-gnulib change to init.sh.
381 docs: update alloca recommendations
382 * doc/autoconf.texi (Particular Functions): Don't redeclare alloca
385 Reported by Giorgos Keramidas.
387 docs: link to GNU Coding Standards in intro
388 * doc/autoconf.texi (Introduction): Actually link to the
389 standards. Make other references consistent.
391 docs: mention traditional awk limitation
392 * doc/autoconf.texi (Limitations of Usual Tools) <awk>: Mention
393 that traditional awk lacks ENVIRON. Add reference to awk manual.
394 (Particular Programs) <AC_PROG_AWK>: Add reference to awk section.
395 Reported by Ralf Wildenhues.
397 2010-09-07 Eric Blake <eblake@redhat.com>
399 docs: mention bash vs. POSIXLY_CORRECT
400 * doc/autoconf.texi (Special Shell Variables) <POSIXLY_CORRECT>:
401 Document bash behavior.
403 Reported by Dustin J. Mitchell, via bug-gnulib list.
405 docs: enhance recommendations on test usage
406 * doc/autoconf.texi (Limitations of Builtins) <test (strings)>:
407 Mention yet another Solaris issue.
408 Reported by Stefano Lattarini.
410 2010-08-30 Eric Blake <eblake@redhat.com>
412 tests: avoid trashing /
413 * tests/torture.at (AC_CONFIG_COMMANDS with temporary directory):
414 Use a relative path, rather than risking issues with /.
415 Reported by Ralf Wildenhues.
417 docs: mention Solaris here-docs vs. ${a-"b c"}
418 * doc/autoconf.texi (Shell Substitutions) <${var:=value}>:
419 Document problem of "" within here-docs.
420 Reported by Ralf Wildenhues.
422 fortran: always avoid AC_LANG_CONFTEST warning
423 * lib/autoconf/lang.m4 (AC_LANG_CONFTEST()): Make the default
424 match the fact that the default AC_LANG_SOURCE does not inline
425 confdefs.h in the first place.
426 * lib/autoconf/fortran.m4 (AC_FC_FREEFORM, AC_FC_FIXEDFORM)
427 (AC_FC_LINE_LENGTH, __AC_FC_NAME_MANGLING): Revert previous use of
428 AC_LANG_DEFINES_PROVIDED.
429 Suggested by Ralf Wildenhues.
431 config.status: minimize use of $tmp
432 * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP)
433 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
434 (_AC_OUTPUT_HEADERS_PREPARE, _AC_OUTPUT_HEADER): Use $ac_tmp
435 internally, while preserving $tmp for existing users.
436 * tests/torture.at (AC_CONFIG_COMMANDS with temporary directory):
437 New test, that $tmp is available but not essential.
439 docs: avoid use of $tmp outside of config.status use
440 * doc/autoconf.texi (Polymorphic Variables, Shell Substitutions):
441 Use $var or $t instead.
442 (Limitations of Usual Tools): Use $dir instead.
443 (Initialization Macros) <AS_TMPDIR>: Make good on the NEWS
444 regarding AS_TMPDIR being documented as consuming $tmp.
445 Suggested by Ralf Wildenhues.
447 2010-08-29 Paul Eggert <eggert@cs.ucla.edu>
449 AC_PROG_YACC: fix comment re what "yacc" stands for
450 * lib/autoconf/programs.m4 (AC_PROG_YACC): YACC stands for
451 "Yet Another Compiler Compiler", not "Yet Another C Compiler".
452 Problem reported by Chris Long in
453 <http://lists.gnu.org/archive/html/bug-autoconf/2010-08/msg00134.html>.
455 2010-08-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
457 Avoid long lines in testsuite script.
458 * lib/autotest/general.m4 (AT_INIT): Remove definition of
459 AT_groups_all. Initialize at_groups from at_help_all, with
460 newlines instead of spaces separating test groups numbers.
461 Adjust all code to newlines.
463 * tests/autotest.at (Huge testsuite): New test.
465 Try to update config.cache atomically; respect symlinks.
466 * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use `mv -f' to update
467 the cache file if it is a regular file and not a symlink. Move
468 first to temporary name in the target directory if not in the
469 current directory for atomicity across mount points.
470 * tests/base.at (AC_CACHE_CHECK): Try symlinked cache file.
471 * doc/autoconf.texi (Cache Files): Leftover temporary cache
472 files may be deleted by the user.
475 2010-08-27 Eric Blake <eblake@redhat.com>
477 m4sh: protect LINENO against stray macro
478 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Double quote entire
479 sed script, to avoid issue uncovered by automake testsuite where
480 'b' was an m4 macro that broke execution on dash.
481 Reported by Stefano Lattarini.
483 m4sh: assume ${a:-b} support
484 * tests/m4sh.at (Null variable substitution): New test.
485 * doc/autoconf.texi (Shell Substitutions) <${var:-value}>: Mention
486 that m4sh guarantees support.
487 (Limitations of Usual Tools) <mktemp>: Use it.
488 * lib/m4sugar/m4sh.m4 (AS_LINENO_POP, AS_VAR_IF, AS_TMPDIR):
489 Exploit use of colon for smaller files.
491 2010-08-26 Eric Blake <eblake@redhat.com>
493 docs: document m4_define_default
494 * doc/autoconf.texi (Conditional constructs) <m4_define_default>:
495 Document it, since gnulib wants to use it.
496 * NEWS: Mention this.
498 autoconf: warn if AC_*_IFELSE lacks complete program
499 * lib/autoconf/lang.m4 (AC_LANG_DEFINES_PROVIDED): New macro.
500 (AC_LANG_SOURCE): Call it.
501 (AC_LANG_CONFTEST): Add warning if new macro is not called.
502 * lib/autoconf/c.m4 (_AC_LANG_OPENMP): Add missing AC_LANG_SOURCE.
503 * lib/autoconf/fortran.m4 (AC_FC_FREEFORM, AC_FC_FIXEDFORM)
504 (AC_FC_LINE_LENGTH, __AC_FC_NAME_MANGLING): Intentionally bypass
506 * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Likewise.
507 * tests/compile.at (AC_COMPILE_IFELSE): New test.
508 * doc/autoconf.texi (Generating Sources) <AC_LANG_CONFTEST>:
509 Document new warning.
510 <AC_LANG_DEFINES_PROVIDED>: Document new macro.
511 <AC_LANG_SOURCE>: Document use of new macro.
512 * NEWS: Document the improvement.
513 Suggested by Bruno Haible.
515 autoconf: fix regression in AC_FUNC_SELECT_ARGTYPES
516 * lib/autoconf/functions.m4 (AC_FUNC_SELECT_ARGTYPES): Fix
517 quoting; regression from yesteray leaked '' into default value.
518 Reported by Ralf Wildenhues.
520 docs: mention another issue with variable expansion
521 In particular, see http://austingroupbugs.net/view.php?id=221
522 and http://austingroupbugs.net/view.php?id=255.
523 * doc/autoconf.texi (Shell Substitutions) <${var+value}>: New
525 <${var=literal}>: Tweak wording. Add mention of an ambiguity
527 * tests/torture.at (Substitute and define special characters):
528 Make test more robust; here, the outer "" is in a here-doc, and
529 does not violate the quoting rules of thumb just documented.
531 2010-08-25 Eric Blake <eblake@redhat.com>
533 m4sh: revert incorrect mix of "${a='b'}"
534 * bin/autoconf.as: Revert leak of literal '' into assignment.
535 * tests/tools.at (autom4te preselections): Likewise.
537 m4sh: revert regression in AS_TMPDIR
538 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): The previous patch trying to
539 rename $tmp to $as_tmp was wrong; config.status relies on it.
541 m4sh: reduce size of AS_VAR_TEST_SET
542 * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Make more compact.
544 tests: improve some shell assumption testing
545 * tests/m4sh.at (Functions Support, Functions and return Support)
546 (Negated classes in globbing): Update comments.
547 (AS@&t@_VAR basics): Test comparison to empty string.
549 docs: mention cost of globbing during variable expansion
550 * doc/autoconf.texi (Shell Substitutions) <${var=literal}>:
551 Recommend quoting substitutions that might trigger globbing.
552 (Limitations of Builtins) <:>: Likewise.
553 * bin/autoconf.as: Follow our own advice.
554 * lib/autoconf/functions.m4 (AC_FUNC_SELECT_ARGTYPES): Likewise.
555 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
556 * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
557 * lib/autotest/general.m4 (_AT_FINISH): Likewise.
558 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
559 * tests/autotest.at (parallel autotest and signal handling):
561 * tests/c.at (AC_OPENMP and C, AC_OPENMP and C++): Likewise.
562 * tests/foreign.at (shtool): Likewise.
563 * tests/fortran.at: Likewise.
564 * tests/tools.at (autom4te preselections): Likewise.
565 * tests/torture.at (VPATH): Likewise.
567 m4sh: fix some namespace safety issues
568 * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Avoid problems if
569 as_myself is inherited from environment.
570 (AS_TMPDIR): Be namespace clean.
572 2010-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
574 tests: fix AC_CACHE_CHECK to skip with bad shells.
575 * tests/base.at (AC_CACHE_CHECK): Skip test with malformed
576 config.site file if the shell does not report syntax errors
577 from a sourced file. Fixes test failure on AIX and FreeBSD.
578 Report from Rainer Tammer.
580 2010-08-24 Paul Eggert <eggert@cs.ucla.edu>
582 AC_HEADER_STDBOOL: avoid spurious failure with modern xlc
583 * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Move the "bool e =
584 &s;" test into the main program, as C99 might plausibly be
585 interpreted as not requiring support for this construction in
586 static initializers. Remove the "#if defined __xlc__" stuff, as
587 the bug is not present in recent xlc implementations, and they
588 reject the test for other (valid) reasons. People using ancient
589 xlc versions, if any, are suggested to update to fixed versions.
590 Reported by Ralf Wildenhues in the thread starting at:
591 http://lists.gnu.org/archive/html/bug-autoconf/2010-08/msg00103.html
593 2010-08-24 Eric Blake <eblake@redhat.com>
595 AC_FUNC_GETLOADAVG: don't define SVR4 on cygwin
596 * lib/autoconf/functions.m4 (_AC_LIBOBJ_GETLOADAVG): Only define
597 SVR4 when -lkvm is required.
599 Reported by Yaakov Selkowitz.
601 2010-08-23 Eric Blake <eblake@redhat.com>
603 AC_HEADER_STDBOOL: avoid spurious clang failure
604 * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Drop gcc (and by
605 extension clang) check in favor of a gnulib test. Force failure,
606 rather than merely testing for a compiler extension.
608 Reported by Anders Kaseorg.
610 2010-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
612 doc: AIX sed dislikes indented comments.
613 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Update.
615 2010-08-19 Stefano Lattarini <stefano.lattarini@gmail.com>
617 Fix autoreconf docs w.r.t. AUTOM4TE environment variable.
618 * doc/autoconf.texi (Using autoreconf to Update configure
619 Scripts): List `AUTOM4TE' among the environment variables
620 honored by autoreconf.
621 * bin/autoreconf.in ($help): Likewise.
623 2010-08-17 Eric Blake <eblake@redhat.com>
625 doc: improve AS_VAR_IF details
626 * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_IF>: Make it
627 clear that user must supply quotes as needed.
629 Suggested by Randall Cotton.
631 2010-08-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
633 Fix Autotest --errexit to exit after XPASSing tests.
634 * lib/autotest/general.m4 (AT_INIT) <at_fn_group_postprocess>:
635 Exit after an unexpected passing test if $at_errexit.
636 * tests/autotest.at (errexit): Also try tests that xpass, skip,
639 2010-08-14 Eric Blake <eblake@redhat.com>
641 AC_INIT: allow bugreport to contain '?'
642 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Relax check.
643 * tests/base.at (AC_INIT with unusual version strings): Enhance
645 * doc/autoconf.texi (Initializing configure): Document this.
648 Reported by Yavor Doganov and others.
650 2010-08-10 Peter Rosin <peda@lysator.liu.se>
652 Keep testsuite files on unexpected pass.
653 * lib/autotest/general.m4 (AT_INIT) <at_fn_group_postprocess>:
654 Don't cleanup the group directory when a test unexpectedly passes.
655 * tests/autotest.at (Cleanup): Check that an unexpected pass leaves
656 the test group directory intact.
658 2010-08-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
660 Skip AC_FC_SRCEXT([f90]) tests with a Fortran 77 compiler in $FC.
661 * tests/fortran.at (AC_FC_FREEFORM with AC_FC_SRCEXT)
662 (AC_FC_FIXEDFORM with AC_FC_SRCEXT): Skip if the compiler cannot
663 handle files with .f90 extension.
664 Report by Luke Dalessandro.
666 Fix testsuite failures with typical m4-x.y.z program suffix.
667 * tests/local.at (AT_CHECK_M4): Normalize hyphens and digits
668 after the `m4' program name.
670 Report by Luke Dalessandro.
672 2010-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
674 Fix description of AC_CONFIG_TESTDIR to not mention atconfig.in.
675 * doc/autoconf.texi (Making testsuite Scripts): atconfig is not
676 created from an input template.
678 2010-08-05 Bruno Haible <bruno@clisp.org>
679 and Eric Blake <eblake@redhat.com>
681 AC_FUNC_ALLOCA: modernize
682 * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Assume that alloca's
683 return type is 'void *', not 'char *'. Supply C89 prototype.
684 Reported by Thomas Klausner.
686 2010-08-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
688 Fix testsuite failure due to bugs in third-party aclocal macros.
689 * tests/torture.at (Non-literal AC_CONFIG_SUBDIRS): Create a
690 hand-written aclocal.m4 file, so the -Werror test doesn't fail
691 over aclocal warnings about errors in third-party macro files.
692 Simplify test accordingly, calling autoreconf throughout.
693 Report by Bob Friesenhahn.
695 Fix AC_LANG_SOURCE and AC_LANG_PROGRAM tests.
696 * tests/compile.at (AC_LANG_SOURCE example)
697 (AC_LANG_PROGRAM example): Fix broken sed script for
698 extracting the interesting part of the conftest.c file.
699 Fixes test failure on Haiku.
701 Report by Scott McCreary.
703 2010-08-03 Eric Blake <eblake@redhat.com>
705 docs: mention bash bug with word splitting
706 * doc/autoconf.texi (Shell Substitutions): Document bash bug, and
707 zsh default behavior difference.
708 Reported by Ralf Wildenhues.
710 docs: mention ksh bug with function syntax
711 * doc/autoconf.texi (Shell Functions): Document ksh93 limitation.
713 2010-08-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
715 Fix typo in Autotest color test, for dash testsuite failure.
716 * tests/autotest.at (colored test results): Use exit not
717 Exit. Fixes test failure with dash 0.5.4.
719 2010-08-02 Eric Blake <eblake@redhat.com>
721 docs: track recent copyright assignment
722 * AUTHORS: Add Peter Rosin.
724 2010-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
726 Add testsuite exposure for last-minute fix in 2.67.
727 * tests/autotest.at (parallel args but non-working mkfifo):
728 New test, to expose the failure v2.66-23-g991183c avoided.
730 Ensure unnamed test group categories are separated from previous.
731 * doc/autoconf.texi (Writing Testsuites) <AT_BANNER>: Update
733 * lib/autotest/general.m4 (AT_INIT) <at_fn_banner>: Set banner
734 to single space, not empty line, once printed. For empty
735 banners, print a single empty line to separate them from a
736 previous test group category.
737 * tests/autotest.at (Banners): Insert another test group; adjust
738 tests accordingly. Extend test to cover semantic change.
741 2010-07-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
743 Fix typos in perlpod docs.
744 * lib/Autom4te/ChannelDefs.pm, lib/Autom4te/Channels.pm,
745 lib/Autom4te/General.pm: Fix typos and spacing in perlpod
746 documentation and in comments.
748 2010-07-29 Eric Blake <eblake@redhat.com>
750 docs: mention ksh file descriptor limitation
751 * doc/autoconf.texi (File Descriptors): Document issue with fd 10
753 Reported by Ralf Wildenhues.
755 docs: mention cd limitation
756 * doc/autoconf.texi (Limitations of Builtins) <cd>: Document
757 issues with empty argument.
759 2010-07-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
761 Add missing index entries to manual.
762 * doc/autoconf.texi (Fortran Compiler, Language Choice): Add
763 index entries for AC_FC_DUMMY_MAIN, AC_LANG; reformat entry for
766 2010-07-21 Eric Blake <eblake@redhat.com>
768 Release Version 2.67.
769 * NEWS: Mention the release.
772 * maint.mk (PREV_VERSION_REGEXP): New macro, missed when
773 backporting update-NEWS_hash from gnulib.
774 * cfg.mk (old_NEWS_hash): Correctly generate.
775 * build-aux/gendocs.sh: Temporarily break sync from upstream, to
776 avoid including spurious directories in info source tarball.
778 Avoid spurious testsuite failures.
779 * doc/autoconf.texi (Generating Sources): Don't mix gcc '-E' and
780 '-o -', since the former already implies stdout, while the latter
781 creates -.exe on cygwin.
782 * tests/compile.at (AC_LANG_SOURCE example)
783 (AC_LANG_PROGRAM example): Likewise. Also prevent any config.site
786 Partially revert previous patch.
787 * lib/autotest/general.m4 (AT_INIT) <serial testing>: Changing
788 at_jobs here breaks output if -j2 was requested but shell is
789 insufficient to support parallel testing.
790 Reported by Ralf Wildenhues.
792 Minor testsuite size reduction.
793 * lib/autotest/general.m4 (AT_INIT) <serial testing>: Ensure
795 (AT_SETUP, AT_CLEANUP): Factor initialization code...
796 (AT_INIT) <at_fn_group_banner>: ...into new function.
797 Based in part on suggestion by Ralf Wildenhues.
799 2010-07-20 Eric Blake <eblake@redhat.com>
801 Close job control fd before running tests.
802 * doc/autoconf.texi (File Descriptors): Clarify limitations.
803 * lib/autotest/general.m4 (AT_CLEANUP): Avoid leaking job control
804 fifo fd to user tests.
805 (AT_INIT): Delete comment, now that close is done elsewhere.
806 Suggested by Ralf Wildenhues.
808 2010-07-20 Paul Eggert <eggert@cs.ucla.edu>
809 and Eric Blake <eblake@redhat.com>
811 Plug race in parallel autotest.
812 * lib/autotest/general.m4 (AT_INIT) <Fifo job dispatcher>: Track
813 two fds to fifo in parent, to avoid race where parent can see EOF
814 before child opens fifo. Avoid any atomicity problems with tokens
815 larger than one byte.
816 * NEWS: Document the bug fix.
818 2010-07-20 Eric Blake <eblake@redhat.com>
820 Another empty argument through expr workaround.
821 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Detect empty
822 arguments. Reject empty file argument.
823 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
824 Check for missing argument.
826 Also reject ' and newline from AC_INIT strings.
827 * lib/autoconf/general.m4 (_AC_INIT_LITERAL): Reject a couple more
828 problematic characters.
829 * tests/base.at (AC_INIT with unusual version strings): Enhance
831 * doc/autoconf.texi (Initializing configure) <AC_INIT>: Further
832 clarifications, and clean up wording about use of m4_esyscmd.
833 * NEWS: Update previous news entry.
834 Suggested by Paolo Bonzini.
836 2010-07-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
838 Let autoreconf pass warning flags to new-enough aclocal.
839 * bin/autoreconf.in ($aclocal_supports_warnings)
840 ($automake_supports_warnings): New globals.
841 (parse_args): Set and use them. Be sure to invoke `aclocal
842 --help' and `automake --help' just once each.
844 Prompted by report from Bruno Haible.
846 Fix parsing of empty variable settings on the command line.
847 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Work around
848 expr bug returning 0 instead of the empty string.
849 * lib/autotest/general.m4 (AT_INIT): Likewise.
851 Fix typo in the manual.
852 * doc/autoconf.texi (AC_ACT_IFELSE vs AC_TRY_ACT): Fix typo.
854 2010-07-19 Eric Blake <eblake@redhat.com>
856 Fix up AC_INIT vs. " issues, and document it.
857 * doc/autoconf.texi (Initializing configure): Improve
858 documentation on argument restrictions.
859 * NEWS: Tweak information.
860 * lib/autoconf/general.m4 (_AC_INIT_GENERAL): New macro, that also
862 (_AC_INIT_PACKAGE): Use it to plug hole in last patch.
863 * tests/base.at (AC_INIT with unusual version strings): Enhance
866 2010-07-19 Eric Blake <eblake@redhat.com>
867 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
869 Relax AC_INIT requirements for PACKAGE and VERSION strings again.
870 * lib/m4sugar/m4sh.m4 (AS_LITERAL_HEREDOC_IF): New macro.
871 (_AS_LITERAL_HEREDOC_IF, _AS_LITERAL_HEREDOC_IF_YES)
872 (_AS_LITERAL_HEREDOC_IF_NO): New helper macros.
873 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Use
874 AS_LITERAL_HEREDOC_IF for PACKAGE and VERSION strings.
875 * tests/base.at (AC_INIT with unusual version strings): New test.
876 * tests/m4sh.at (AS@&t@_LITERAL_IF): Extend test.
879 2010-07-19 Eric Blake <eblake@redhat.com>
881 Fix testsuite failures from previous patch.
882 * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Also remove
883 conftest.i when preprocessor tests break out of a loop.
885 2010-07-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
887 Allow inspecting AC_PREPROC_IFELSE output in true branch.
888 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY): Redirect
889 preprocessor output to conftest.i rather than /dev/null.
890 (_AC_PREPROC_IFELSE): Remove conftest.i in the postprocessing.
891 * tests/compile.at (Order of user actions and cleanup): Extend
892 test in the ACTION-IF-TRUE branch.
893 * doc/autoconf.texi (Running the Preprocessor): Document new
897 Fix AC_FC_LIBRARY_LDFLAGS detection for BlueGene xlf -qipa.
898 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
899 '-link', added spuriously when -qipa is used with the XL
900 Fortran compilers on BlueGene.
902 manual: compiler flags -D and -L should not be followed by space
903 * doc/autoconf.texi (Preset Output Variables): Remove space
904 between -D and -L flags and their arguments, traditional cpp
905 implementations like Solaris 10, IRIX 6.5, OSF Tru64 5.1D,
906 AIX 5.3 do not accept it.
908 2010-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
910 Fix comment typo in the manual.
911 * doc/autoconf.texi (Generic Compiler Characteristics): Refer
912 to the right test in the example marker comment.
913 Spotted by Eric Blake.
915 2010-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
917 New Fortran macro AC_FC_LINE_LENGTH.
918 * lib/autoconf/fortran.m4 (AC_FC_LINE_LENGTH): New macro.
919 * doc/autoconf.texi (Fortran Compiler): Document it.
920 * tests/fortran.at (AC_FC_LINE_LENGTH): New test.
923 Fix wording about AC_CONFIG_SUBDIRS warning.
924 * doc/autoconf.texi (Subdirectories): We warn, not error, about
925 nonexistent config subdirs, but only at configure run time.
927 2010-07-10 Eric Blake <eblake@redhat.com>
928 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
930 Fix regression of AC_CHECK_SIZEOF on pointer types.
931 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Translate `*' to `p'
932 when checking literal-ness of the type, for pointer types.
933 * lib/m4sugar/m4sh.m4 (_AS_TR_SH): Also consider `*' as literal.
934 (_AS_TR_CPP): Likewise.
935 * tests/semantics.at (AC_CHECK_ALIGNOF struct): When checking
936 for numeric answer, be sure to not allow variable references.
937 (AC_CHECK_SIZEOF struct): Likewise. Also, test the
938 `AC_CHECK_SIZEOF([int *])' example from the manual.
939 * doc/autoconf.texi (Generic Compiler Characteristics): Add
942 Reports by Nishio Futoshi and Roberto Bagnara.
944 2010-07-08 Eric Blake <eblake@redhat.com>
945 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
947 Fix regression of AC_CONFIG_SUBDIRS with multiple arguments.
948 * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Do not assume the
949 argument is a single word.
950 * tests/torture.at (Deep Package): Extend test to cover this.
951 (Non-literal AC_CONFIG_SUBDIRS): New test.
952 * doc/autoconf.texi (Subdirectories): Add example marker.
954 Report by Bruno Haible.
956 2010-07-04 Stefano Lattarini <stefano.lattarini@gmail.com>
958 Fix minor copy&paste leftover in m4sh tests.
959 * tests/m4sh.at (AS@&t@_TR_SH and AS@&t@_TR_CPP): Remove
960 useless variables assignements ($var, $vAr, $VAR).
962 2010-07-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
964 Fix testsuite to not trigger Solaris sh for bug.
965 * tests/torture.at (Torturing config.status)
966 (Substitute a 2000-byte string)
967 (Substitute and define special characters)
968 (Substitute a newline): Quote first argument in for list so
969 that it does not look like an assignment.
971 2010-07-02 Eric Blake <eblake@redhat.com>
973 Post-release administrivia.
974 * maint.mk (NEWS_hash): Define.
975 * NEWS: Add header line for next release.
976 * .prev-version: Record previous version.
977 * cfg.mk (old_NEWS_hash): Auto-update.
979 Release Version 2.66.
980 * NEWS: Mention the release.
982 2010-07-02 Eric Blake <eblake@redhat.com>
984 Pick up some maint.mk improvements from gnulib.
985 * configure.ac (AM_INIT_AUTOMAKE): Require 1.11, and build xz
986 archives by default now.
987 * maint.mk (gzip_rsyncable): Avoid non-portable echo.
988 (VC-tag): Depend on gpg_key_ID.
989 (PREV_VERSION): Don't parse error as version.
990 (announcement): Populate email addresses with defaults.
991 (emit_upload_commands, web-manual): Reflect changes in scripts.
992 (update-NEWS-hash, emit-commit-log, release-prep): New macros.
993 * cfg.mk (announcement_Cc_, announcement_mail_headers_): Override
995 * HACKING: Modernize a bit.
997 Resync upstream files.
998 * GNUmakefile: Run 'make fetch'.
999 * build-aux/announce-gen: Likewise.
1000 * build-aux/config.guess: Likewise.
1001 * build-aux/config.sub: Likewise.
1002 * build-aux/gendocs.sh: Likewise.
1003 * build-aux/git-version-gen: Likewise.
1004 * build-aux/gnupload: Likewise.
1005 * build-aux/texinfo.tex: Likewise.
1006 * build-aux/vc-list-files: Likewise.
1007 * doc/gendocs_template: Likewise.
1008 * doc/gnu-oids.texi: Likewise.
1009 * doc/make-stds.texi: Likewise.
1010 * doc/standards.texi: Likewise.
1011 * lib/Autom4te/Channels.pm: Likewise.
1012 * lib/Autom4te/Configure_ac.pm: Likewise.
1013 * lib/Autom4te/FileUtils.pm: Likewise.
1014 * lib/Autom4te/XFile.pm: Likewise.
1016 Make AS_TR_SH and AS_TR_CPP similar.
1017 * lib/m4sugar/m4sh.m4 (_AS_TR_CPP_LITERAL): Avoid underquoting.
1018 (_AS_TR_CPP_INDIR): Handle all polymorphic variables.
1019 * tests/m4sh.at (AS@&t@_TR_SH and AS@&t@_TR_CPP): New test.
1020 * NEWS: Document the fix.
1021 Reported by Bruno Haible.
1023 Reduce startup cost of autotest.
1024 * lib/autotest/general.m4 (_AT_FINISH) <banners>: Rather than
1025 doing a recursive find, limit ourselves to top ChangeLog only.
1026 Reported by Ralf Wildenhues.
1028 2010-07-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1030 New macro AC_FC_FIXEDFORM, improved AC_FC_FREEFORM, coverage.
1031 * lib/autoconf/fortran.m4 (_AC_FC_DIALECT_YEAR): Fix typo in
1033 (AC_FC_FREEFORM): Update list of known options for Sun, HP,
1034 Lahey/Fujitsu Fortran compilers. Use M4 quoting consistently.
1035 (AC_FC_FIXEDFORM): New macro.
1036 * tests/fortran.at (AC_FC_DUMMY_MAIN usage, AC_FC_MAIN usage):
1037 Use AC_FC_FIXEDFORM, to avoid testsuite failure with FC=xlf95.
1038 (AC_FC_FREEFORM with AC_FC_SRCEXT, AC_FC_FIXEDFORM)
1039 (AC_FC_FIXEDFORM with AC_FC_SRCEXT): New tests.
1040 * tests/mktests.sh: No need to exclude AC_FC_FREEFORM, it uses
1041 AC_LANG_PUSH/AC_LANG_POP.
1042 * doc/autoconf.texi (Fortran Compiler): Document it.
1045 2010-07-02 Eric Blake <eblake@redhat.com>
1048 * lib/m4sugar/m4sh.m4 (AS_BOX): Use less m4 time.
1049 (_AS_BOX_LITERAL): Use fewer forks in the common case.
1050 * doc/autoconf.texi (Common Shell Constructs) <AS_BOX>: Document
1054 Use new AS_LITERAL_IF argument when appropriate.
1055 * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Reduce m4 overhead.
1056 (AS_VAR_IF, AS_VAR_TEST_SET): Provide shorter variant for simple
1058 Suggested by Bruno Haible.
1060 Add tests for AS_BOX.
1061 * tests/m4sugar.at (m4@&t@_text_box): New test.
1062 * tests/m4sh.at (AS@&t@_BOX): Likewise.
1063 * lib/m4sugar/m4sugar.m4 (m4_text_box): Support comma.
1064 * doc/autoconf.texi (Text processing Macros) <m4_text_box>:
1065 Document further limitations.
1067 Add optional argument to AS_LITERAL_IF.
1068 * lib/m4sugar/m4sh.m4 (_AS_LITERAL_IF): Rewrite to generate macro
1069 name, without using m4_cond.
1070 (_AS_LITERAL_IF_, _AS_LITERAL_IF_YES, _AS_LITERAL_IF_NO): New
1072 (AS_LITERAL_IF, AS_LITERAL_WORD_IF, _AS_TR_SH, _AS_TR_CPP)
1073 (_AS_VAR_PUSHDEF): Adjust callers.
1074 * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Relax restrictions on
1075 invalid bytes, since this allows inline struct layouts.
1076 (_AC_CHECK_ALIGNOF): New helper macro.
1077 * tests/m4sh.at (AS@&t@_LITERAL_IF): Update test.
1078 * doc/autoconf.texi (Polymorphic Variables) <AS_LITERAL_IF>:
1079 Update documentation.
1081 Use AS_LITERAL_WORD_IF as appropriate.
1082 * lib/autoconf/autoheader.m4 (AH_VERBATIM): Use new macro.
1083 * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE, AC_CACHE_VAL)
1084 (AS_CACHE_CHECK, AC_DEFINE_TRACE, _AC_LIBOBJ): Likewise.
1085 * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
1086 * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
1087 * lib/m4sugar/m4sh.m4 (AS_UNSET, AS_VAR_COPY, AS_VAR_GET)
1088 (AS_VAR_IF, AS_VAR_SET, AS_VAR_TEST_SET): Likewise.
1090 Add AS_LITERAL_WORD_IF.
1091 * lib/m4sugar/m4sh.m4 (_AS_LITERAL_IF): Also reject shell quoting
1092 characters as non-literal, and provide way to reject space.
1093 (AS_LITERAL_WORD_IF): New macro.
1094 * doc/autoconf.texi (Polymorphic Variables) <AS_LITERAL_IF>:
1095 Document new macro. Fix example to match reality.
1096 * NEWS: Document change and new macro.
1097 * tests/m4sh.at (AS@&t@_LITERAL_IF): Update test.
1100 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Avoid overhead of
1103 2010-07-02 Stefano Lattarini <stefano.lattarini@gmail.com>
1104 and Eric Blake <eblake@redhat.com>
1106 Describe a Solaris /bin/sh bug w.r.t. for loops.
1107 * doc/autoconf.texi (Limitations of Shell Builtins) <for>:
1108 Document a bug of the 'for' builtin in Solaris /bin/sh, w.r.t.
1109 tokens seeming variable assignment in the list of arguments.
1111 2010-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1113 Improve VPATH handling in config.status for non-Automake projects.
1114 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Be sure not
1115 to remove references to a subdir of srcdir. Fix treatment of
1116 multiple colon-separated VPATH entries.
1117 * tests/torture.at (VPATH): New test.
1118 Report by Keith Marshall.
1120 Further improve docs about nested double-quotes and backquotes.
1121 * doc/autoconf.texi (Shellology): Remove anchor for pdksh.
1122 Move quoting bug example to ...
1123 (Shell Substitutions): ... here. Document which behavior is
1126 Coverage for Fortran compiler macros.
1127 * tests/fortran.at (AC_OPENMP and Fortran 77)
1128 (AC_OPENMP and Fortran): Simplify, using AT_CHECK_CONFIGURE.
1129 (AC_F77_DUMMY_MAIN usage, AC_FC_DUMMY_MAIN usage)
1130 (AC_F77_MAIN usage, AC_FC_MAIN usage, AC_F77_FUNC usage)
1131 (AC_FC_FUNC usage, AC_FC_SRCEXT usage, AC_FC_FREEFORM): New
1133 * doc/autoconf.texi (Fortran Compiler): Use GNU coding style
1134 on C code snippets. Add markers for tested examples.
1135 Suggest AC_FC_FREEFORM for source file extensions which the
1136 compiler might not natively support but which are accepted
1137 with help from AC_FC_SRCEXT. Suggest AC_CONFIG_HEADERS for
1138 setups using one of the AC_*MAIN macros.
1140 Accept any nonzero exit status upon config.status write failure.
1141 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
1142 Normalize nonzero status to 1 for writing to /dev/full, for HP-UX
1143 11.31 cat which exits 2.
1145 Fix testsuite failure with Tru64 preprocessor.
1146 * tests/compile.at (Order of user actions and cleanup): Add
1147 incomplete comment to provoke failure with Tru64/OSF 5.1 cc
1150 2010-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1151 and Eric Blake <eblake@redhat.com>
1153 Further clarification on sed -e portability.
1154 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Clarify
1155 more about sed -e and Posix limitations.
1157 2010-06-22 Bruno Haible <bruno@clisp.org>
1159 Document how to use literal newlines in makefile rules.
1160 * doc/autoconf.texi (Newlines in Make Rules): New section.
1162 Document how to write comments in makefile rules.
1163 * doc/autoconf.texi (Comments in Make Rules): Mention a workaround
1166 2010-06-22 Ben Pfaff <blp@cs.stanford.edu>
1168 Document how to propogate variables to submakes.
1169 * doc/autoconf.texi: Describe technique used by Automake to
1170 propagate variables to submakes in more detail.
1172 2010-06-22 Peter Johansson <trojkan@gmail.com> (tiny change)
1174 Be consistent in doc example.
1175 * doc/autoconf.texi: (Polymorphic Variables) be consistent in code
1178 2010-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1180 Add comments for vim syntax highlighting.
1181 * doc/autoconf.texi: Restore font-lock in some examples using
1184 Formatting cleanups for optional arguments.
1185 * doc/autoconf.texi (Configuration Actions, Help Formatting)
1186 (External Software): Use @r{} for brackets denoting optional
1187 arguments, where @ovar is not safe to use.
1189 Clarify nested double-quotes and backquotes shell issues.
1190 * doc/autoconf.texi (Shellology): New anchor for pdksh.
1191 (Shell Substitutions): Link to it for escaped double-quotes
1192 within double-quoted backquotes; add ksh example for unescaped
1193 inner double-quotes problem.
1195 Mention Tru64 5.1 fgrep limitation with emtpy patterns.
1196 * doc/autoconf.texi (Limitations of Usual Tools): Update.
1198 Overhaul the manual, esp. the Autotest chapter.
1199 * doc/autoconf.texi (Installation Directory Variables):
1200 Replace some uses of @var with @code.
1201 (Special Shell Variables): Fix misordered paragraph about IFS.
1202 (Writing Testsuites): Include paragraph following AT_TESTED in
1203 the macro definition.
1204 (testsuite Invocation): Failed tests are not rerun.
1205 (testsuite Scripts, Autotest Logs, testsuite Invocation)
1206 (Making testsuite Scripts): Minor edits for consistency and
1209 2010-06-18 Bruno Haible <bruno@clisp.org>
1211 Document sed -e limitation.
1212 * doc/autoconf.texi (Limitations of Usual Tools): Mention portability
1213 problem of sed -e option with script fragments.
1215 2010-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1217 Document, test, and fix AT_ARG_OPTION, AT_ARG_OPTION_ARG.
1218 * lib/autotest/general.m4 (_AT_ARG_OPTION): Fix translation of
1219 hyphens to underscores when turning option names to variables.
1220 Avoid macro name concatenation garbage with trailing `dnl'.
1221 (AT_ARG_OPTION, AT_ARG_OPTION_ARG): Overhaul macro description.
1222 The OPTIONS are space-separated, not comma-separated. The
1223 negative form of AT_ARG_OPTION is prefixed with `--no-'.
1224 * tests/autotest.at (AT@&t@_ARG_OPTION, AT@&t@_ARG_OPTION_ARG):
1227 * doc/autoconf.texi (Writing Testsuites): Document AT_ARG_OPTION
1228 and AT_ARG_OPTION_ARG.
1229 (testsuite Invocation): Call the thingies passed to the
1230 testsuite options, not arguments. Note that the testsuite
1231 author may add further package-specific options.
1233 Autotest: enable colored test results.
1234 * lib/autotest/general.m4 (HELP_TUNING_BEGIN): New diversion.
1235 (HELP_TUNING, HELP_OTHER, HELP_END): Bump diversion numbers.
1237 --color and --color=never|auto|always. If desired, colorize
1238 test results and testsuite summary on standard output.
1239 [HELP_TUNING]: Divert content instead to ...
1240 [HELP_TUNING_BEGIN]: ... this diversion, m4_wrapped until the
1241 end, when we know whether AT_COLOR_TESTS has been specified.
1242 (AT_COLOR_TESTS): New macro, set the default for color to auto.
1243 * doc/autoconf.texi (Writing Testsuites): Document it.
1244 (testsuite Invocation): Document --color* options.
1245 * tests/local.at: Call AT_COLOR_TESTS for Autoconf's testsuite.
1246 * tests/autotest.at (color test results): New test, mirroring
1247 color.test from Automake.
1250 2010-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1252 Avoid texinfo bug with backslashes in macro arguments.
1253 * doc/autoconf.texi (Text processing Macros)
1254 (Common Shell Constructs): Do not use @dvar with backslashes.
1256 2010-06-14 Eric Blake <eblake@redhat.com>
1258 Make CONFIG_SITE handling more robust.
1259 * lib/autoconf/general.m4 (AC_SITE_LOAD): Avoid leading - and path
1260 search, and check for failure to load.
1261 * tests/base.at (AC_CACHE_CHECK): Enhance test.
1262 * doc/autoconf.texi (Site Defaults): Mention that CONFIG_SITE
1263 works best as an absolute path.
1264 * NEWS: Document the semantic change.
1266 2010-03-13 Bruno Haible <bruno@clisp.org>
1267 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1269 Allow plus signs in AC_ARG_ENABLE and AC_ARG_WITH.
1270 * doc/autoconf.texi (External Software): Mention that AC_ARG_WITH
1271 accepts packages with a + sign in it.
1272 (Package Options): Likewise for AC_ARG_ENABLE.
1273 * lib/autoconf/general.m4 (_AC_ENABLE_IF): Also replace '+' with '_'.
1274 * tests/base.at (AC_ARG_ENABLE and AC_ARG_WITH): New test.
1277 2010-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1279 Autotest: simplify logic to compute test group result.
1280 * lib/autotest/general.m4 (AT_INIT): Compactify result
1283 New Autotest testsuite option --recheck.
1284 * lib/autotest/general.m4 (AT_INIT): New variable $at_recheck.
1285 Escape hyphen in $at_dir early. Accept command line switch
1286 --recheck. Set $at_suite_log early, based on --directory
1287 switch; with --recheck, include the list of FAILed and XPASSed
1288 tests from old testsuite.log file in $at_groups. Document
1289 --recheck in --help output.
1290 * tests/autotest.at (recheck): New test.
1291 * doc/autoconf.texi (testsuite Invocation): Document --recheck.
1294 2010-06-14 Karl Berry <karl@freefriends.org> (tiny change)
1296 Clarify comment about old system.
1297 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Prefer GNU/Linux,
1298 and note that bug has long since been fixed.
1300 2010-06-08 Eric Blake <eblake@redhat.com>
1302 Run libtool test with modern libtool.
1303 * tests/foreign.at (Libtool): Request that libtoolize install
1304 auxiliary files. Assume libtool 2.x is modern.
1306 2010-06-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1308 Coverage and doc fixes for AC_LANG_SOURCE and AC_LANG_PROGRAM.
1309 * tests/compile.at (AC_LANG_SOURCE, AC_LANG_SOURCE(C++))
1310 (AC_LANG_SOURCE example, AC_LANG_PROGRAM example): New tests.
1311 * doc/autoconf.texi (Generating Sources): Add markers for tested
1312 examples; update quoting, and update AC_INIT usage to also set
1313 optional URL arguments. Mention that the examples require gcc.
1314 Prompted by report from Brian J. Murrell.
1316 Make AS_SET_CATFILE polymorphic, and add testsuite coverage.
1317 * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Use AS_VAR_SET to set
1319 * tests/m4sh.at (AS@&t@_SET_CATFILE): New test.
1320 * doc/autoconf.texi (Common Shell Constructs): Document that
1321 AS_SET_CATFILE is polymorphic in its VAR argument now.
1324 Testsuite coverage for AC_COPYRIGHT and AT_COPYRIGHT.
1325 * tests/autotest.at (AT@&t@_COPYRIGHT): New test.
1326 * tests/base.at (AC@&t@_COPYRIGHT): Likewise.
1328 Testsuite coverage for __file__ and __line__.
1329 * tests/m4sugar.at (__file__ and __line__): New test.
1331 Testsuite coverage for AC_CACHE_VAL and caching semantics.
1332 * tests/base.at (AC_CACHE_CHECK): Extend test.
1333 (AC_CACHE_LOAD): New test.
1334 * tests/torture.at (Configuring subdirectories): Also test
1335 --config-cache with AC_CONFIG_SUBDIRS.
1336 * doc/autoconf.texi (Caching Results): Annotate code snippets
1337 which are tested in the test suite.
1338 (Cache Files): Documented cache variables may be used on the
1339 configure command line to override individual entries in the
1342 Clarify OpenBSD sh errexit issue with compound commands.
1343 * doc/autoconf.texi (Limitations of Builtins): Only the last
1344 command in a compound list is problematic.
1345 Tested on OpenBSD 4.4.
1347 2010-06-07 Eric Blake <eblake@redhat.com>
1349 Properly quote AC_PREREQ during autoupdate.
1350 * lib/autoconf/general.m4 (AC_PREREQ): Follow consistent quoting
1351 style for AC_PREREQ.
1352 * tests/tools.at (autoupdating AC_PREREQ): Update expected
1354 Reported by NightStrike.
1356 2010-06-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1358 Documentation and tests for the AC_CHECK_DECL change.
1359 * lib/autoconf/general.m4 (_AC_CHECK_DECL_BODY): Squash trailing
1360 spaces in as_decl_name.
1361 (_AC_CHECK_DECLS): Likewise for the define.
1362 * tests/semantics.at (AC_CHECK_DECLS): Extend test.
1363 * doc/autoconf.texi (Generic Declarations): Update.
1366 2010-06-01 Joern Rennecke <joern.rennecke@embecosm.com> (tiny change)
1368 Generalize AC_CHECK_DECL for C++: allow optional arguments.
1369 * general.m4 (_AC_CHECK_DECL_BODY): Process trailing function
1370 argument types as arguments to use for C++.
1371 (_AC_CHECK_DECLS): Filter out trailing function argument types
1372 when generating the HAVE_DECL_* macro.
1374 2010-05-25 Stefano Lattarini <stefano.lattarini@gmail.com>
1375 Eric Blake <eblake@redhat.com>
1377 Don't expose AC_{COMPILE,LINK}_IFELSE internals in documentation.
1378 * doc/autoconf.texi (Runtime) <AC_LINK_IFELSE>: Suggest to use
1379 `conftest$EXEEXT' rather than `conftest$ac_exeext' to acces the
1380 just-linked program file.
1381 (Runtime) <AC_COMPILE_IFELSE>: Suggest to use `conftest.$OBJEXT'
1382 rather than `conftest.$ac_object' to access the just-compiled
1383 object file. Also, refer to the object file as "just-compiled"
1384 rather than "just-linked".
1386 2010-05-20 Eric Blake <eblake@redhat.com>
1388 Mention another line-counting alternative.
1389 * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
1390 how to use sed to count lines.
1391 Suggested by Paolo Bonzini.
1393 2010-05-12 Eric Blake <eblake@redhat.com>
1395 Document the grep workaround.
1396 * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
1399 2010-05-12 Mark Hessling <mark@rexx.org> (tiny change)
1401 Work around QNX4 grep bug.
1402 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Count ^
1403 rather than $ to avoid QNX4 grep bug.
1406 2010-05-11 David Reiss <dreiss@facebook.com> (tiny change)
1408 Improve Erlang documentation.
1409 * doc/autoconf.texi (Erlang Libraries): Document actual default
1413 2010-05-11 Eric Blake <eblake@redhat.com>
1415 Fix typo in previous patch.
1416 * doc/autoconf.texi (File Descriptors): Add end '.
1417 Reported by Ralf Wildenhues.
1419 Mention how to silence program probes.
1420 * doc/autoconf.texi (File Descriptors): Document how to silence a
1423 2010-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1425 Error and warning message formatting cleanups.
1426 * doc/autoconf.texi (Autoconf Language, Generic Structures):
1427 Do not capitalize the first word in error messages, do not end
1429 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS, AC_MSG_FAILURE):
1431 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Likewise.
1432 * lib/autotest/general.m4 (AT_INIT, at_fn_group_prepare):
1434 * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
1435 * tests/base.at (AC_TRY_COMMAND): Likewise.
1436 * tests/torture.at (datarootdir workaround): Adjust expected
1439 Fix placing of ellipses in English text.
1440 * lib/autoconf/general.m4 (_AC_INIT_HELP): Be sure to add a
1441 space before `...' in natural language text.
1442 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL_BODY):
1444 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
1445 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Likewise.
1446 * tests/suite.at: Likewise.
1447 * tests/torture.at (@%:@define header templates): Likewise.
1449 Ensure autotest tests have an atconfig file, for testsuite -v.
1450 * tests/autotest.at (AT_CHECK_AT_PREP): Create a default
1451 atconfig file in the directory of the testsuite.
1452 (AT_CHECK_AT_TITLE): Also check that `./micro-suite -v' output
1453 does not contain empty $at_srcdir expansion.
1454 (srcdir propagation): Remove the atconfig file generated by
1455 AT_CHECK_AT_PREP. Check each suite invocation for $at_srcdir
1458 Fix autotest testsuite -v output to print test group title.
1459 * lib/autotest/general.m4 (AT_CLEANUP): Actually print test
1460 title in verbose output. Fixes AUTOCONF-2.57-101-gc102ed8
1462 * tests/autotest.at (AT_CHECK_AT_TITLE): Amend macro to check
1463 for test title in -v output.
1465 2010-04-26 Eric Blake <eblake@redhat.com>
1467 Clarify octal escapes with tr.
1468 * doc/autoconf.texi (Limitations of Usual Tools): Carriage return
1469 is portable in octal, but not newline.
1471 2010-04-22 Joel James Adamson <joel@chondestes.bio.unc.edu> (tiny change)
1473 Add a paragraph to FAQ on Debugging configure scripts.
1474 * doc/autoconf.texi (Debugging): Mention inspecting config.log.
1477 2010-04-21 Mike Frysinger <vapier@gentoo.org> (tiny change)
1479 Fix typo in doc example.
1480 * doc/autoconf.texi (Subdirectories): Fix typo.
1482 2010-04-05 Eric Blake <eblake@redhat.com>
1484 Fix m4_cr_all for EBCDIC.
1485 * lib/m4sugar/m4sugar.m4 (m4_cr_all): Swap * and $, so that we
1486 don't end up with $* in EBCDIC.
1487 * NEWS: Document the fix.
1489 Reported by Steve Goetze.
1491 2010-03-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1493 Do not use @acronym in the manual.
1494 * doc/autoconf.texi: Remove all usage of @acronym.
1495 Suggested by Karl Berry.
1497 Do not use @sc in the manual.
1498 * doc/autoconf.texi: Remove all usage of @sc in the manual.
1499 Suggested by Karl Berry.
1501 2010-03-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1503 Fix wrong comment in testsuite.
1504 * tests/m4sugar.at (m4@&t@_warn): Remove copy&pasted comment.
1506 Formatting cleanups in macro comments.
1507 * lib/autoconf/c.m4, lib/autoconf/erlang.m4,
1508 lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
1509 lib/autoconf/general.m4, lib/autoconf/lang.m4,
1510 lib/autoconf/programs.m4, lib/autoconf/specific.m4,
1511 lib/autoconf/status.m4, lib/autoconf/types.m4,
1512 lib/autotest/general.m4, lib/autotest/specific.m4,
1513 lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4,
1514 tests/autotest.at, tests/local.at, tests/m4sh.at,
1515 tests/semantics.at, tests/tools.at, tests/torture.at: Fix macro
1518 2010-03-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1520 manual: index strings containing colon in non-info outputs.
1521 * doc/autoconf.texi (Quadrigraphs, Shell Substitutions): Produce
1522 index entries for concepts containing a colon in output formats
1525 Update copyright years for files generated by mktests.sh.
1526 * tests/mktests.sh: Update copyright years for generated files.
1528 2010-03-04 Eric Blake <eblake@redhat.com>
1530 Document AC_LANG_CONFTEST semantic change.
1531 * doc/autoconf.texi (Generating Sources) <AC_LANG_CONFTEST>:
1532 Enhance documentation, to show that semantic change in 2.63b was
1535 Reported by Brian J. Murrell, analyzed by Ralf Wildenhues.
1537 2010-03-04 Peter Johansson <trojkan@gmail.com> (tiny change)
1539 Autoconf Macro Archive URL has changed.
1540 * doc/autoconf.texi (Introduction, Coding Style, Defining
1541 Directories): The Autoconf Macro Archive is officially `GNU'.
1544 2010-03-02 Eric Blake <eblake@redhat.com>
1546 Fix shell code in AS_TR_SH documentation.
1547 * doc/autoconf.texi (Common Shell Constructs) <AS_TR_SH>: Fix
1548 example to expand to valid shell code.
1549 Reported by Ralf Wildenhues.
1551 Improve documentation on AC_{COMPILE,LINK}_IFELSE.
1552 * doc/autoconf.texi (Running the Compiler): Mention that the
1553 object file is available after a successful compile.
1554 (Running the Linker): Likewise for the linker output.
1555 Suggested by Paolo Bonzini.
1558 * doc/autoconf.texi (Conditional constructs) <m4_ifblank>: Fix
1561 2010-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1563 Fix AS_ERROR for FreeBSD sh.
1564 * lib/m4sugar/m4sh.m4 (_AS_ERROR_PREPARE): Rewrite as_fn_error
1565 to take additional first argument STATUS instead of transporting
1566 $? across shell function entry, which does not work with FreeBSD
1567 sh. Shift all other arguments by one, adjust.
1568 (AS_ERROR): Pass EXIT-STATUS, defaulting to $?, to as_fn_error.
1569 Report by Václav Haisman.
1571 Fix `autom4te cache creation' testsuite failure on FreeBSD.
1572 * tests/tools.at (autom4te cache creation): Normalize exit
1573 status of failed redirection to 1, may be 2 with FreeBSD sh.
1575 Report by Václav Haisman.
1577 Fix Autotest tracing of shell pipelines for FreeBSD sh.
1578 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Do not trace
1579 commands that contain [^|]|[^|], a likely shell pipeline.
1580 * tests/local.at (_AT_CHECK_ENV): Turn off tracing for egrep |
1582 * doc/autoconf.texi (File Descriptors): Document limitation.
1583 * tests/autotest.at (Trace output): New test.
1585 2010-03-01 Eric Blake <eblake@redhat.com>
1587 Update file flow diagram to mention Automake.
1588 * doc/autoconf.texi (Making configure Scripts): Avoid confusion
1589 with listing Makefile.in twice on one line. Add a diagram showing
1590 how automake fits into the picture.
1591 Reported by santilín.
1593 2010-02-26 Eric Blake <eblake@redhat.com>
1595 Optimize AC_REPLACE_FUNCS.
1596 * lib/autoconf/functions.m4 (_AC_REPLACE_FUNC): New helper macro.
1597 (AC_REPLACE_FUNCS): Use it to reduce forks when checking for
1598 replacements, by using literal rather than shell variable.
1600 Document how to safely override CFLAGS default.
1601 * doc/autoconf.texi (C Compiler) <AC_PROG_CC>: Document a way to
1602 change the default CFLAGS.
1603 (C++ Compiler) <AC_PROG_CXX>: Likewise, for CXXFLAGS.
1604 Reported by Monty Taylor; wording suggested by Paolo Bonzini.
1606 Document that Autoconf relies on IFS.
1607 * doc/autoconf.texi (Special Shell Variables) <IFS>: Add details
1608 about use of IFS within configure script.
1610 Reported by Arkadiusz Miskiewicz.
1612 Recommend latest m4 release.
1613 * README: Bump recommendation to m4 1.4.14 (minimum remains
1615 * doc/autoconf.texi (Introduction): Likewise.
1616 * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
1618 2010-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1620 Fix testsuite failures due to setting of $U.
1621 * tests/local.at (_AT_CHECK_ENV): Ignore setting of $U.
1623 2010-02-10 Eric Blake <ebb9@byu.net>
1625 Avoid $U if it is not initialized.
1626 * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Ensure $U is
1627 set if automake did not define it.
1629 Reported by Heiko Schlichting, via Julien Élie.
1631 2010-01-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1633 Fix substitution of carriage return on Darwin.
1634 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Set
1635 ac_cs_awk_cr to '\\r', so that sed portably expands this to '\r'
1636 rather than a literal carriage return, to fix substitution on
1637 Darwin. Regression introduced in 2.63b.
1638 Report by Peter O'Gorman.
1640 2010-01-21 Dmitry V. Levin <ldv@altlinux.org>
1642 Fix test failure when a shell uses $TMPDIR for here-documents.
1643 * tests/tools.at (autotools and whitespace in file names): Create
1644 $TMPDIR before potential use like in other whitespace tests.
1646 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
1648 Add recommendation on (not) unsetting IFS.
1649 * doc/autoconf.texi (Special shell variables): Explain why it's
1650 better not to unset IFS.
1652 2010-01-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1654 config.status: consistent exit status with nonexistent config file input.
1655 * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Ensure we
1656 exit with status 1 rather than with that of 'false', for
1658 (AC_OUTPUT): Ensure to exit 1 in case of config.status failure.
1659 * tests/torture.at (Missing templates): Also test code path
1663 2010-01-13 Eric Blake <ebb9@byu.net>
1665 Fix previous example.
1666 * doc/autoconf.texi (Here-Documents): Touch up the example to
1667 match output to sample command line.
1669 Document here-doc pitfall.
1670 * doc/autoconf.texi (Here-Documents): Mention problem with <<-
1672 Reported by Jim Meyering.
1674 2010-01-12 Eric Blake <ebb9@byu.net>
1676 Typo fix in earlier commit.
1677 * doc/autoconf.texi (Autoconf Language): Fix typo.
1679 2010-01-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1681 Allow AC_FUNC_MKTIME to work with C++.
1682 * lib/autoconf/functions.m4 (AC_FUNC_MKTIME): ANSIfy KnR function
1683 definitions. Use `const char*' for character literals; cast them
1684 to `char*' for putenv.
1686 2010-01-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1688 Export AUTOM4TE in tests/atlocal.in, for aclocal.
1689 * tests/atlocal.in: Set and export $AUTOM4TE, for aclocal.
1692 2010-01-08 Eric Blake <ebb9@byu.net>
1694 Make autotest example act better with automake.
1695 * doc/autoconf.texi (Making testsuite Scripts): Rely on automake
1696 feature for recommended autotest snippet, following our own use.
1698 Clarify language on handling of opening parenthesis.
1699 * doc/autoconf.texi (Autoconf Language): Give an example of
1700 improper argument passing.
1702 Reported by Juan Carlos Hurtado.
1704 2010-01-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1706 Don't fail autom4te preselection test due to different Automake.
1707 * tests/tools.at (autom4te preselections): If the cache test
1708 fails, extract the Automake version from the toplevel
1709 Makefile.in file of the source tree; skip, rather than fail
1710 the test group if the automake program has a different version.
1712 Report by Dieter Jurzitza, fix suggested by Eric Blake.
1714 2010-01-06 Peter Breitenlohner <peb@mppmu.mpg.de>
1715 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1717 Fix AC_CONFIG_LINKS to generated files when srcdir is absolute.
1718 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Check $ac_source,
1719 not $srcdir, for being relative or absolute.
1720 * tests/torture.at (AC_CONFIG_LINKS): New test.
1721 (AC_CONFIG_LINKS and identical files): Extend test, avoid some
1723 Report, patch and testcase example by Peter Breitenlohner.
1725 2010-01-05 Eric Blake <ebb9@byu.net>
1727 Improve release automation.
1728 * maint.mk (gnulib_dir, gnulib-version, bootstrap-tools)
1729 (announcement): Copy from latest gnulib maint.mk.
1730 * cfg.mk (announce_gen, gpg_key_ID): Delete.
1731 (bootstrap-tools): Override the default.
1733 Update upstream files.
1734 * GNUmakefile: Update via 'make fetch'.
1735 * build-aux/announce-gen: Likewise.
1736 * build-aux/config.guess: Likewise.
1737 * build-aux/config.sub: Likewise.
1738 * build-aux/gendocs.sh: Likewise.
1739 * build-aux/gnupload: Likewise.
1740 * build-aux/move-if-change: Likewise.
1741 * build-aux/update-copyright: Likewise.
1742 * build-aux/vc-list-files: Likewise.
1743 * doc/standards.texi: Likewise.
1744 * cfg.mk (update-copyright-env): Enforce wrap column.
1746 Update copyright year.
1747 All files changed to add 2010, via 'make update-copyright'.
1749 2009-12-31 Bruno Haible <bruno@clisp.org>
1751 Improve documentation on Solaris tr bugs.
1752 * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Refine
1753 description of NUL handling by Solaris tr.
1755 2009-12-31 Eric Blake <ebb9@byu.net>
1758 * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Clarify
1760 Reported by Ralf Wildenhues.
1762 2009-12-29 Eric Blake <ebb9@byu.net>
1764 Improve documentation on tr portability.
1765 * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Refine
1766 description of NUL handling. Document set size issue.
1767 Reported by Bruno Haible.
1769 Fix comment in AC_CHECK_DECLS.
1770 * lib/autoconf/general.m4 (AC_CHECK_DECL): Document the includes
1771 argument to the shell function.
1773 2009-12-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1775 Add testsuite exposure for shtool usage.
1776 * tests/foreign.at (shtool): New test.
1777 Report by Dmitry Grebeniuk.
1779 2009-12-12 Eric Blake <ebb9@byu.net>
1781 Improve wording about m4 quote characters.
1782 * doc/autoconf.texi (Autoconf Language): Autoconf quote characters
1783 come from m4sugar, not raw m4.
1784 (Active Characters): Mention that it is m4sugar which changes
1785 quotes from `' to [].
1787 Suggested by Josef Vukovic.
1789 2009-12-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1791 Revert "Improve AC_CONFIG_AUX_DIRS a bit." to fix shtool usage.
1792 * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Revert test for
1793 shtool as install script. Regression introduced in 2.64.
1794 * NEWS, THANKS: Update.
1795 Report by Dmitry Grebeniuk.
1796 This reverts commit 93d9386de9c1320afed43f1337ac5ddb2d2dcbb4.
1798 2009-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1800 Fix NEWS description for AC_FUNC_MMAP entry.
1803 Fix 2.65 AC_TYPE_INT*_T macro body text regression.
1804 * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY): Move helper enum
1805 definition to prologue section, to avoid syntax error.
1806 * NEWS, THANKS: Update.
1807 Report by Pierre Ynard.
1809 2009-12-09 Paolo Bonzini <bonzini@gnu.org>
1811 Fix `recursion' test failure.
1812 * tests/m4sugar.at (recursion): Use empty diversion, not 0.
1814 2009-12-05 Stefano Lattarini <stefano.lattarini@gmail.com>
1815 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1817 Document Solaris/Heirloom sh set -e issue with command substitutions.
1818 * doc/autoconf.texi (Limitations of Builtins): Fix typos `set -d'
1819 in previous example. Document failure to honor && lists with set -e
1820 and a command substitution in the failing command.
1821 Report and initial patch by Stefano Lattarini against Automake.
1823 2009-12-04 Eric Blake <ebb9@byu.net>
1825 Warn if using unnamed diversion.
1826 * lib/m4sugar/m4sugar.m4 (_m4_divert, m4_divert_push): Add
1827 optional parameter, which controls warning.
1828 (m4_divert_pop, m4_cleardivert, m4_divert_require)
1829 (_m4_require_call): Adjust callers.
1830 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Likewise.
1831 * tests/m4sh.at (AT_DATA_LINENO): Avoid triggering the warning.
1832 * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, m4@&t@_append)
1833 (m4@&t@_text_wrap, recursion): Likewise.
1834 (m4@&t@_warn, m4@&t@_divert_stack): Adjust expected output.
1835 * tests/tools.at (autom4te and whitespace in file names)
1836 (autoconf: the empty token): Avoid triggering the warning.
1837 (autoconf: AC_PRESERVE_HELP_ORDER): New test.
1838 * tests/mktests.sh (ac_exclude_list): Retire prior test.
1839 * NEWS: Document the warning.
1840 * doc/autoconf.texi (Redefined M4 Macros) <m4_divert>,
1841 <m4_undivert>: Make even more explicit that using these directly
1843 (Diversion support): Further warn against improper diversion
1845 <m4_divert_text>: Give an example of proper use.
1846 Reported by Mike Frysinger.
1848 2009-11-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1850 manual: AC_SEARCH_LIBS also prepends to LIBS.
1851 * doc/autoconf.texi (Libraries): Document that AC_SEARCH_LIBS
1852 prepends to LIBS, just like AC_CHECK_LIB.
1854 2009-11-27 Paolo Bonzini <bonzini@gnu.org>
1856 Bump m4.m4 serial number.
1857 * m4/m4: Bump serial number to 10.
1859 2009-11-27 Harald van Dijk <truedfx@gentoo.org>
1861 Fix m4 detection test on dash.
1862 * m4/m4 (AC_PROG_GNU_M4): Use AS_ECHO.
1864 2009-11-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1866 Fix AC_FUNC_MMAP regression with C++ compiler in 2.65.
1867 * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Use const char*
1868 for the constant string. Cast void* to char* for assignment.
1869 * NEWS, THANKS: Update.
1870 Report by Michal Čihař.
1872 Add pgfortran to list of Fortran 95+ compilers.
1873 * lib/autoconf/fortran.m4 (_AC_F95_FC): Add pgfortran before
1875 Based on report by Jeff Squyres.
1877 2009-11-22 Bruno Haible <bruno@clisp.org>
1879 Fix failure of test 35 when the user has a .autom4te.cfg file.
1880 * tests/tools.at (autom4te cache creation): Skip the test if the
1881 user has a .autom4te.cfg file.
1883 2009-11-21 Eric Blake <ebb9@byu.net>
1885 Release Version 2.65.
1886 * NEWS: Mention the release.
1888 Prepare for release.
1889 * build-aux/announce-gen: Sync from upstream.
1890 * build-aux/config.guess: Likewise.
1891 * build-aux/config.sub: Likewise.
1892 * cfg.mk (gnu_rel_host, url_dir_list): Move...
1893 * maint.mk: ...here, copying ideas from gnulib.
1895 (stable): ...to this, copying gnulib.
1896 * HACKING (release): Document changes in process.
1898 Avoid spurious newline in traced macros.
1899 * bin/autoreconf.in (tracing): Drop newline before parsing traced
1900 arguments; regression from 2009-11-14.
1902 2009-11-20 Eric Blake <ebb9@byu.net>
1904 Allow absolute names in AT_TESTED.
1905 * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Check for
1906 absolute names before path walk.
1908 Suggested by Allan Clark.
1910 2009-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1912 Fix AC_CONFIG_SUBDIRS tracing in autoreconf.
1913 * bin/autoreconf.in (autoreconf_current_directory): Collapse
1914 newlines in the autoconf trace output, similar to how automake
1915 invokes autoconf, so that newlines do not matter in the argument
1916 to AC_CONFIG_SUBDIRS.
1917 * tests/torture.at (Deep Package): Expose this issue in the
1920 Report by Nathan Schulte.
1922 2009-11-09 Eric Blake <ebb9@byu.net>
1924 Fix AC_FUNC_MMAP for cygwin.
1925 * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Make the test more
1926 portable: Actually check for <sys/param.h>, and only use MAP_FIXED
1927 on an address previously returned from mmap.
1929 Reported by Corinna Vinschen.
1931 2009-11-04 Eric Blake <ebb9@byu.net>
1933 Redocument AS_DIRNAME, even with its flaws.
1934 * doc/autoconf.texi (Common Shell Constructs) <AS_DIRNAME>:
1935 Restore documenatation, since dirname mentions it.
1936 Reported by Peter Johansson.
1938 Update upstream files.
1939 * build-aux/announce-gen: Synchronize from upstream.
1940 * build-aux/config.guess: Likewise.
1941 * build-aux/config.sub: Likewise.
1942 * build-aux/gendocs.sh: Likewise.
1943 * build-aux/git-version-gen: Likewise.
1944 * build-aux/texinfo.tex: Likewise.
1945 * build-aux/update-copyright: Likewise.
1946 * doc/standards.texi: Likewise.
1947 * lib/Autom4te/Channels.pm: Likewise.
1948 * lib/Autom4te/Configure_ac.pm: Likewise.
1949 * lib/Autom4te/FileUtils.pm: Likewise.
1950 * lib/Autom4te/Struct.pm: Likewise.
1951 * lib/Autom4te/XFile.pm: Likewise.
1953 2009-11-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1955 Coverage for autom4te cache creation issues.
1956 * tests/tools.at (autom4te cache creation): New test.
1958 2009-11-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1960 Fix testsuite failures with SHELL=zsh.
1961 * tests/statesave.m4 (AC_STATE_SAVE): Ignore argv and ARGC when
1962 comparing configure variables.
1964 2009-11-03 Eric Blake <ebb9@byu.net>
1965 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1967 Update NEWS for recent fixes.
1968 * NEWS: Add some entries.
1970 2009-10-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1972 Micro-optimization of config.status substitution.
1973 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): No need to
1974 concatenate an empty second string, when we have exactly 148
1975 characters to substitute.
1976 * tests/torture.at (Substitute a 2000-byte string): Add test
1977 exposure for runs of backslashes near the 148 character limit.
1979 Fix testsuite failure on AIX 4.3.3.
1980 * lib/autoconf/general.m4 (_AC_RUN_LOG_LIMIT): Remove conftest.err
1981 also if it is empty.
1983 Fix testsuite failure on IRIX and AIX.
1984 * tests/torture.at (Substitute and define special characters):
1985 Double the backslash before the double-quote in
1986 AC_DEFINE_UNQUOTED, as documented for here-documents.
1988 2009-10-31 Eric Blake <ebb9@byu.net>
1990 Fix cross-manual link to gcc.
1991 * doc/autoconf.texi (Portable C and C++): Provide uref rather than
1992 xref when building for html.
1993 Reported via Karl Berry.
1996 * AUTHORS: Document recent copyright assignments.
1998 2009-10-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2000 Fix AC_OPENMP configure message for non-C compilers.
2001 * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Accept as additional
2002 fourth arg the compiler variable name, defined in _AC_CC($1).
2003 (_AC_CC): New language dispatch macro.
2004 * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Adjust.
2005 * lib/autoconf/fortran.m4 (AC_LANG(Fortran 77), AC_LANG(Fortran)):
2007 * lib/autoconf/c.m4 (AC_LANG(C), AC_LANG(C++))
2008 (AC_LANG(Objective C), AC_LANG(Objective C++)): Likewise.
2009 (AC_OPENMP): Use _AC_CC instead of $CC.
2011 Do not fail OpenMP tests on systems without aclocal.
2012 * tests/c.at (AC_OPENMP and C, AC_OPENMP and C++): Override
2013 `ACLOCAL=true' for autoreconf, the tests don't need aclocal.
2014 * tests/fortran.at (AC_OPENMP and Fortran 77)
2015 (AC_OPENMP and Fortran): Likewise.
2017 2009-10-31 Bruno Haible <bruno@clisp.org>
2018 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2020 Improve cache variable documentation.
2021 * doc/autoconf.texi (AC_PROG_AWK, AC_PROG_GREP, AC_PROG_EGREP,
2022 AC_PROG_FGREP, AC_PROG_INSTALL, AC_PROG_MKDIR_P, AC_PROG_LEX,
2023 AC_PROG_YACC, AC_CHECK_PROG, AC_CHECK_PROGS, AC_PATH_PROG,
2024 AC_PATH_PROGS): Don't suggest to use the cache variable, only to
2025 override it, or preferably, a non-cache variable associated with
2027 (AC_PROG_SED): Likewise. Fix name of cache variable.
2028 (AC_FUNC_GETMNTENT): Fix name cache variable.
2029 (AC_FUNC_LSTAT): Fix typo.
2031 2009-10-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2033 Fix AC_OPENMP for Fortran (F77 and FC).
2034 * lib/autoconf/fortran.m4 (AC_LANG_FUNC_LINK_TRY(Fortran): New.
2035 * tests/c.at (AC_C_RESTRICT and C++, AC_OPENMP and C)
2036 (AC_OPENMP and C++): New tests.
2037 * tests/fortran.at (AC_OPENMP and Fortran 77)
2038 (AC_OPENMP and Fortran): New tests.
2040 Report by Bart Oldeman.
2042 Perl coverage convenience targets.
2043 * Makefile.am (PERL_COVERAGE_DB, PERL_COVERAGE_FLAGS)
2044 (PERL_COVER): New variables.
2045 (check-coverage, check-coverage-run, check-coverage-report)
2046 (clean-coverage): New phony targets.
2047 (clean-local): Depend on clean-coverage.
2049 2009-10-28 Eric Blake <ebb9@byu.net>
2051 Fix corner cases in AS_LITERAL_IF and AS_TR_SH.
2052 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix bug with unbalanced
2053 parens. Move guts...
2054 (_AS_LITERAL_IF): into new helper.
2055 (AS_TR_SH, AS_TR_CPP): Fix bugs with expansion of wrong macro.
2057 (_AS_TR_SH, _AS_TR_SH_LITERAL, _AS_TR_SH_INDIR, _AS_TR_CPP)
2058 (_AS_TR_CPP_LITERAL, _AS_TR_CPP_INDIR): ...into new helpers.
2059 (AS_VAR_PUSHDEF): Hoist m4_require, by moving guts...
2060 (_AS_VAR_PUSHDEF): ...into new helper.
2061 * tests/m4sh.at (AS@&t@_LITERAL_IF): Enhance test.
2063 Minor optimizations to m4sh.
2064 * lib/m4sugar/m4sh.m4 (AS_VAR_IF, AS_IDENTIFIER_IF)
2065 (AS_LITERAL_IF): Parse fewer bytes during expansion, by visiting
2066 if-true and if-false arguments only once.
2068 Optimize m4_escape for common case.
2069 * lib/m4sugar/m4sugar.m4 (m4_escape): Don't use regex if string is
2070 already sane, by copying from AS_LITERAL_IF. Move guts...
2071 (_m4_escape): ...into new helper.
2073 Fix m4_text_wrap handling of quoted whitespace.
2074 * lib/m4sugar/m4sugar.m4 (m4_escape): New macro.
2075 (m4_text_wrap): Use it to avoid issues with embedded [ and ].
2076 * tests/m4sugar.at (m4@&t@_text_wrap): Test it.
2077 * NEWS: Document this.
2078 * doc/autoconf.texi (Text processing Macros) <m4_escape>:
2080 Reported by Mike Frysinger.
2082 2009-10-27 Eric Blake <ebb9@byu.net>
2084 Mention another feature of AC_RUN_IFELSE.
2085 * doc/autoconf.texi (Runtime) <AC_RUN_IFELSE>: Mention that
2086 compiled test program still exists during if-true branch.
2088 Reported by Stefano Lattarini, suggestion by Ralf Wildenhues.
2090 2009-10-26 Paolo Bonzini <bonzini@gnu.org>
2092 Pass Autom4te path down to programs that autoreconf invokes.
2093 * bin/autoreconf.in (autom4te): New variable. Export its value
2094 as $ENV{'AUTOM4TE'}. Suggested by Peter Johansson.
2097 2009-10-20 Eric Blake <ebb9@byu.net>
2099 Fix AC_TYPE_UINT64_T on Tru64 with gcc 3.4.4.
2100 * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT_BODY)
2101 (_AC_TYPE_INT_BODY): Avoid undefined behavior of attempting shift
2103 * NEWS: Document this.
2104 Reported by Rainer Orth.
2106 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2108 Fix a couple of index entries in the manual.
2109 * doc/autoconf.texi (Polymorphic Variables): Fix index entries
2110 for AS_VAR_APPEND, AS_VAR_ARITH.
2112 2009-10-15 Eric Blake <ebb9@byu.net>
2114 Fix typos in INSTALL.
2115 * doc/install.texi (Basic Installation, Installation Names): Fix
2116 typos in last patch.
2117 Repored by Ralf Wildenhues.
2119 Improve INSTALL wording.
2120 * doc/install.texi (Basic Installation): Clarify installcheck
2122 (Installation Names): Mention that --prefix only overrides
2123 directory locations not specified on the command line. Prefer
2124 /alternate/directory over /path/to. Remove a sentence targeted to
2125 the developer, not the user.
2127 Suggested by Alfred M. Szmidt.
2129 2009-10-15 Peter Breitenlohner <peb@mppmu.mpg.de>
2131 Fix typos in documentation.
2132 * doc/autoconf.texi (Cache Variable Index): Fix typo.
2133 (Libraries) <AC_SEARCH_LIBS>: Mention 'none required' result.
2135 2009-10-09 Bruno Haible <bruno@clisp.org>
2136 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2138 Recommend `sh -n' debugging, and public result variables for macros.
2139 * doc/autoconf.texi (Debugging): Recommend to use "bash -n
2140 configure". Recommend the use of result variables as an
2141 alternative to run-if-true/run-if-false parameters.
2143 2009-10-05 Bruno Haible <bruno@clisp.org>
2145 * doc/autoconf.texi (Particular Functions): Swap sections about
2146 AC_FUNC_MBRTOWC and AC_FUNC_MEMCMP.
2148 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
2150 Unconditionally check for junk ./--version after mkdir search loop.
2151 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Always check for
2152 presence of ./--version. Reported by Eric Blake.
2154 2009-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2156 Clarify documentation about Solaris sed quantifier restriction.
2157 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: '*' does
2158 not work after subexpressions, \{M,N\} only after one-character
2159 expressions. From GCC PR 38923.
2161 2009-09-21 Eric Blake <ebb9@byu.net>
2163 Fit configure output in 80 columns.
2164 * lib/autoconf/functions.m4
2165 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Shorten message.
2167 2009-09-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2169 Use consistent notation for cache variables.
2170 * doc/autoconf.texi (Generic Programs): Remove `$' before
2173 Documentation of specific and general cache variables.
2174 * doc/autoconf.texi (Default Includes, Alternative Programs)
2175 (Particular Programs, Generic Programs, Files, Libraries)
2176 (Function Portability, Particular Functions, Generic Functions)
2177 (Particular Headers, Generic Headers, Declarations)
2178 (Generic Declarations, Particular Structures, Particular Types)
2179 (Specific Compiler Characteristics)
2180 (Generic Compiler Characteristics, C Compiler, System Services):
2181 Document lots of cache variables.
2183 Suggested by Bruno Haible.
2185 New cache variable index in the manual.
2186 * doc/autoconf.texi: Define new index `CA' for cache variables.
2187 (caindex): New macro.
2188 (Cache Variable Index): New appendix node.
2189 (Top, Indices): Adjust menus.
2190 (Cache Variable Names, Site Defaults): Adjust text.
2191 * doc/Makefile.am (CLEANFILES): Add files generated for CA index.
2193 New FAQ node: Debugging.
2194 * doc/autoconf.texi (Debugging): New node.
2195 (Top, FAQ): Adjust menus.
2196 Report by Bruno Haible.
2198 Document AM_MAKEFLAGS workaround to the macro override problem.
2199 * doc/autoconf.texi (Macros and Submakes): Automake makefiles
2200 provide AM_MAKEFLAGS to help with overriding macros in submake
2202 Prompted by bug report from Bruno Haible.
2204 2009-09-15 Peter Breitenlohner <peb@mppmu.mpg.de>
2206 Implement and document Objective C++ support.
2207 * lib/autoconf/c.m4 (AC_LANG(Objective C++), AC_LANG_OBJCXX)
2208 (AC_LANG_PREPROC(Objective C++), AC_PROG_OBJCXXCPP)
2209 (AC_LANG_COMPILER(Objective C++), AC_PROG_OBJCXX)
2210 (_AC_PROG_OBJCXX_G): New macros.
2211 (_AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
2212 (_AC_ARG_VAR_LIBS): Adjusted.
2213 * doc/autoconf.texi (Objective C++ Compiler): New node.
2214 (Preset Output Variables): Document OBJCXXFLAGS.
2215 (Language Choice): Document `Objective C++' language.
2217 * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C++
2220 2009-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2222 Work around DJGPP shell function return bug with command substitutions.
2223 DJGPP bash 2.04 has a bug in that `return $ac_retval' done in a
2224 shell function which also contains a command substitution causes
2225 the shell to barf. For more details and a fix see:
2226 <http://www.delorie.com/djgpp/mail-archives/browse.cgi?p=djgpp-workers/2009/09/09/03:35:08>
2227 Possible workaround include putting the `return' in a subshell
2228 or calling another function to set the status.
2229 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY)
2230 (_AC_COMPILE_IFELSE_BODY, _AC_LINK_IFELSE_BODY)
2231 (_AC_RUN_IFELSE_BODY, _AC_COMPUTE_INT_BODY): Use AS_SET_STATUS
2232 instead of `return'.
2233 * doc/autoconf.texi (Common Shell Constructs, Shell Functions):
2236 Report by Rugxulo and Reuben Thomas.
2238 DJGPP fix: Do not redirect standard input in configure scripts.
2239 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): If $DJGPP is
2240 nonempty, do not dup fd 0 to AS_ORIGINAL_STDIN_FD, do not close
2243 2009-09-14 Eric Blake <ebb9@byu.net>
2245 Quote result of m4_toupper and m4_tolower.
2246 * lib/m4sugar/m4sugar.m4 (m4_tolower, m4_toupper): Quote result.
2247 * lib/autotest/general.m4 (AT_KEYWORDS): Adjust caller.
2248 * tests/m4sugar.at (m4@&t@_toupper and m4@&t@_tolower): New test.
2249 * NEWS: Document this.
2251 Reported by Sam Steingold.
2253 2009-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2255 DJGPP fix: remove both conftest and conftest.exe.
2256 The DJGPP compiler may create both `a.out' and `a.exe' without -o,
2257 and both `conftest' and `conftest.exe' with `-o conftest', but not
2258 with `-o conftest.exe'.
2259 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Also remove
2260 `conftest' without $ac_exeext suffix.
2262 DJGPP fix: do not try to source /dev/null as cache or site file.
2263 * lib/autoconf/general.m4 (AC_SITE_LOAD, AC_CACHE_LOAD): Do not
2264 load the cache or site file if it is `/dev/null', as DJGPP treats
2265 it as a regular file, but the shell then warns about it later.
2266 Fixes several test suite failures on DJGPP.
2268 testsuite: pass $configure_options to configure invocations.
2269 * tests/local.at (AT_CHECK_CONFIGURE): Add $configure_options
2270 to configure command line.
2271 * tests/autotest.at, tests/base.at, tests/c.at, tests/torture.at:
2272 Likewise for each configure invocation.
2273 * README-hacking: Document configure_options.
2275 testsuite: improve Erlang tests portability, overridability.
2276 * tests/autotest.at (Erlang Eunit unit tests): Use "no" as
2277 value-if-not-found for Erlang tools.
2278 * tests/erlang.at: Likewise. Also, use AS_EXIT instead of plain
2281 2009-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2283 * bin/autoupdate.in: Fix typos in comments.
2285 Improve autotest testsuite summary message.
2286 * lib/autotest/general.m4 (AT_INIT): Hint at the toplevel log
2287 only if not $at_debug_p. Always hint at the per-test output.
2289 Four new autoupdate tests, expected failures.
2290 * tests/tools.at (autoupdating macros recursively)
2291 (autoupdating with m4@&t@_pushdef, autoupdating with AC_REQUIRE)
2292 (autoupdating with complex quoting): New tests.
2294 Fix description of AC_CHECK_LIB regarding other deplibs.
2295 * doc/autoconf.texi (Libraries): Library linking may not fail
2296 even without missing additional libs.
2298 2009-09-12 Eric Blake <ebb9@byu.net>
2300 Track recent copyright assignments.
2303 Improve documentation on quoting.
2304 * doc/autoconf.texi (Autoconf Language): Clarify quoting example.
2306 Reported by santilín.
2308 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2310 New config.status option --config.
2311 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Implement
2313 * doc/autoconf.texi (config.status Invocation): Document it.
2315 * tests/torture.at (configure invocation): Test it.
2316 Suggested several times, by several people, in the past.
2318 2009-09-10 Eric Blake <ebb9@byu.net>
2320 Document that AS_INIT is automatically used.
2321 * doc/autoconf.texi (Initialization Macros) <AS_INIT>: Add words
2322 to clarify that only bare-bones scripts need a direct AS_INIT.
2323 Suggested by Reuben Thomas.
2325 Clarify portability pitfall of test.
2326 * doc/autoconf.texi (Limitations of Builtins) <test>: Give more
2327 reasons why -a and -o are not portable.
2328 Reported by Reuben Thomas.
2330 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2332 Document sed limitation with escaped metacharacters.
2333 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Use `%'
2334 rather than `/' as delimiter in an example `s' command.
2335 Document inconsistent treatment of escaped metacharacters.
2337 Report by Dave Korn, with additional input from Paolo Bonzini
2340 Document temporary directory `$tmp' for use in config.status.
2341 * doc/autoconf.texi (Configuration Actions): Document `$tmp'.
2344 2009-09-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2346 Update License to GPLv3+ including new Autoconf Exception.
2347 * NEWS, README: Update licensing information.
2348 * COPYING.EXCEPTION: New file.
2349 * Makefile.am (EXTRA_DIST): Distribute it.
2350 * cfg.mk (autom4te-update): Remove copyright change warning.
2351 * lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
2352 lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
2353 lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
2354 lib/autoconf/erlang.m4, lib/autoconf/fortran.m4,
2355 lib/autoconf/functions.m4, lib/autoconf/general.m4,
2356 lib/autoconf/headers.m4, lib/autoconf/lang.m4,
2357 lib/autoconf/libs.m4, lib/autoconf/oldnames.m4,
2358 lib/autoconf/programs.m4, lib/autoconf/specific.m4,
2359 lib/autoconf/status.m4, lib/autoconf/types.m4,
2360 lib/autotest/autotest.m4, lib/autotest/general.m4,
2361 lib/autotest/specific.m4, lib/m4sugar/foreach.m4,
2362 lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4: Update exception
2363 statement, bump to GPLv3.
2364 * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
2365 bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
2366 bin/ifnames.in: Bump to GPLv3+, adjust --version output
2367 to reflect the GPLv3+ and the Autoconf Exception.
2368 * lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
2369 lib/Autom4te/General.pm, lib/Autom4te/Request.pm,
2370 lib/autom4te.in, lib/autoscan/autoscan.pre,
2371 lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
2372 lib/freeze.mk, tests/atlocal.in, tests/autoscan.at,
2373 tests/autotest.at, tests/base.at, tests/c.at,
2374 tests/compile.at, tests/erlang.at, tests/foreign.at,
2375 tests/fortran.at, tests/local.at, tests/m4sh.at,
2376 tests/m4sugar.at, tests/mktests.sh, tests/semantics.at,
2377 tests/statesave.m4, tests/suite.at, tests/tools.at,
2378 tests/torture.at, tests/wrapper.as: Bump to GPLv3+.
2380 Allow to work on systems without Fcntl::flock implementation.
2381 * configure.ac (PERL_FLOCK): New substitution variable with test
2382 whether Fcntl::flock is implemented by the system.
2383 * bin/Makefile.am (edit): Substitute @PERL_FLOCK@.
2384 * bin/autom4te.in: Call XFile::lock only if flock is
2387 2009-09-04 Reuben Thomas <rrt@sc3d.org> (tiny change)
2389 Mention the Autoconf archive.
2390 * doc/autoconf.texi (Coding Style): Add a link.
2392 2009-08-30 Bruno Haible <bruno@clisp.org>
2394 Document another Solaris tr pitfall.
2395 * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Mention
2396 that Solaris /usr/bin/tr does not only have problems with
2397 replacing NUL bytes but discards all NUL bytes from the input.
2399 2009-09-04 Eric Blake <ebb9@byu.net>
2401 Improve wording about what goes before AC_INIT.
2402 * doc/autoconf.texi (Initializing configure): Update wording.
2403 (Versioning) <AC_PREREQ>: Remove misleading text, to match
2404 autoscan's behavior.
2406 Reported by NightStrike, with input from Ralf Wildenhues.
2408 2009-09-04 Thomas Jahns <jahns@dkrz.de> (tiny change)
2410 Fix illegal tab character in Fortran source.
2411 * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Change TAB back to
2412 multiple spaces; regression introduced 2008-10-23.
2413 * NEWS: Mention this.
2416 2009-08-22 Romain Lenglet <romain.lenglet@laposte.net>
2418 Fix AT_CHECK_EUNIT for versions of Erlang/OTP without init:stop/1.
2419 * lib/autotest/specific.m4 (AT_CHECK_EUNIT): Support older
2420 versions of Erlang/OTP with an erlang:stop() function that doesn't
2423 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2425 Drop unneeded line in Eunit test.
2426 * tests/autotest.at (Erlang Eunit unit tests): Do not copy
2429 Fix build dependencies for Erlang macro files.
2430 * lib/freeze.mk (autotest_m4f_dependencies): Add
2431 $(src_libdir)/autotest/specific.m4.
2432 * tests/Makefile.am (AUTOCONF_FILES): Add erlang.m4.
2434 2009-09-19 Paolo Bonzini <bonzini@gnu.org>
2436 Use a separate program to test whether the compiler works.
2437 * lib/autoconf/erlang.m4 (_AC_LANG_NULL_PROGRAM(Erlang)): New.
2438 * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Copy _AC_LANG_NULL_PROGRAM.
2439 (_AC_LANG_NULL_PROGRAM(), _AC_LANG_NULL_PROGRAM): New.
2440 (_AC_COMPILER_EXEEXT_DEFAULT): Print here "whether the xyz compiler
2441 works", before exiting.
2442 (_AC_COMPILER_EXEEXT_WORKS): Merge into _AC_COMPILER_EXEEXT_CROSS,
2443 remove the "whether the xyz compiler works" message, use
2444 conftest$ac_cv_exeext instead of $ac_file.
2445 (_AC_COMPILER_EXEEXT): Try _AC_COMPILER_EXEEXT_DEFAULT using
2446 the null program, and clean conftest.out only after
2447 _AC_COMPILER_EXEEXT_CROSS.
2448 (AC_NO_EXECUTABLES): Use _AC_LANG_NULL_PROGRAM.
2449 (_AC_COMPILER_OBJEXT): Use _AC_LANG_NULL_PROGRAM.
2451 2009-08-18 Bruno Haible <bruno@clisp.org>
2453 Document Solaris tr range and NUL limitations.
2454 * doc/autoconf.texi (Limitations of Usual Tools): Mention that
2455 Solaris /usr/bin/tr does not support ranges, nor the '\0' octal
2458 2009-08-14 Eric Blake <ebb9@byu.net>
2460 Simplify version control metadata.
2461 * .cvsignore: Delete.
2462 * bin/.cvsignore: Likewise.
2463 * config/.cvsignore: Likewise.
2464 * doc/.cvsignore: Likewise.
2465 * lib/.cvsignore: Likewise.
2466 * lib/autoconf/.cvsignore: Likewise.
2467 * lib/Autom4te/.cvsignore: Likewise.
2468 * lib/autoscan/.cvsignore: Likewise.
2469 * lib/autotest/.cvsignore: Likewise.
2470 * lib/emacs/.cvsignore: Likewise.
2471 * lib/m4sugar/.cvsignore: Likewise.
2472 * man/.cvsignore: Likewise.
2473 * tests/.cvsignore: Likewise.
2474 * bin/.gitignore: Likewise.
2475 * build-aux/.gitignore: Likewise.
2476 * config/.gitignore: Likewise.
2477 * doc/.gitignore: Likewise.
2478 * lib/.gitignore: Likewise.
2479 * lib/autoconf/.gitignore: Likewise.
2480 * lib/Autom4te/.gitignore: Likewise.
2481 * lib/autoscan/.gitignore: Likewise.
2482 * lib/autotest/.gitignore: Likewise.
2483 * lib/emacs/.gitignore: Likewise.
2484 * lib/m4sugar/.gitignore: Likewise.
2485 * man/.gitignore: Likewise.
2486 * tests/.gitignore: Likewise.
2487 * .gitignore: Consolidate all rules into one file.
2489 Normalize remaining copyright lines.
2490 * BUGS: Reformat copyright line, using UPDATE_COPYRIGHT_FORCE.
2492 * README-hacking: Likewise.
2494 * lib/Autom4te/ChannelDefs.pm: Likewise.
2495 * lib/autoconf/fortran.m4: Likewise.
2496 * lib/autoconf/general.m4: Likewise.
2497 * lib/autoconf/lang.m4: Likewise.
2498 * lib/autotest/general.m4: Likewise.
2499 * maint.mk: Likewise.
2500 * tests/compile.at: Likewise.
2502 Improve copyright updating.
2503 * build-aux/update-copyright: Resynchronize from upstream.
2504 * maint.mk (update-copyright): Simplify based on gnulib.
2505 (update-copyright-env): New variable.
2506 * cfg.mk (update-copyright-exclude-regexp): Delete.
2507 (update-copyright-env): New override.
2508 * .x-update-copyright: New file.
2509 * lib/Autom4te/Makefile.am: Add copyright.
2510 * lib/Autom4te/Channels.pm: Revert copyright update to upstream
2512 * lib/Autom4te/Configure_ac.pm: Likewise.
2513 * lib/Autom4te/FileUtils.pm: Likewise.
2514 * lib/Autom4te/Struct.pm: Likewise.
2515 * lib/Autom4te/XFile.pm: Likewise.
2518 * AUTHORS: Include 2009 in copyright.
2519 * lib/Autom4te/C4che.pm: Likewise.
2520 * lib/Autom4te/Channels.pm: Likewise.
2521 * lib/Autom4te/Configure_ac.pm: Likewise.
2522 * lib/Autom4te/FileUtils.pm: Likewise.
2523 * lib/Autom4te/General.pm: Likewise.
2524 * lib/Autom4te/Request.pm: Likewise.
2525 * lib/Autom4te/Struct.pm: Likewise.
2526 * lib/autoconf/Makefile.am: Likewise.
2527 * lib/autoconf/autoconf.m4: Likewise.
2528 * lib/autoconf/autoscan.m4: Likewise.
2529 * lib/autoconf/autoupdate.m4: Likewise.
2530 * lib/autoconf/functions.m4: Likewise.
2531 * lib/autoconf/libs.m4: Likewise.
2532 * lib/autoconf/oldnames.m4: Likewise.
2533 * lib/autoconf/types.m4: Likewise.
2534 * lib/autoscan/Makefile.am: Likewise.
2535 * lib/autoscan/autoscan.pre: Likewise.
2536 * lib/autotest/Makefile.am: Likewise.
2537 * lib/autotest/autotest.m4: Likewise.
2538 * lib/emacs/autoconf-mode.el: Likewise.
2539 * lib/emacs/autotest-mode.el: Likewise.
2540 * lib/freeze.mk: Likewise.
2541 * lib/m4sugar/foreach.m4: Likewise.
2542 * man/Makefile.am: Likewise.
2543 * tests/atlocal.in: Likewise.
2544 * tests/autoscan.at: Likewise.
2545 * tests/foreign.at: Likewise.
2546 * tests/fortran.at: Likewise.
2547 * tests/mktests.sh: Likewise.
2548 * tests/semantics.at: Likewise.
2549 * tests/suite.at: Likewise.
2550 * tests/wrapper.as: Likewise.
2552 Prepare to bulk update copyright years.
2553 * build-aux/update-copyright: New file.
2554 * cfg.mk (gnulib-update): Sync it from gnulib.
2555 (update-copyright-exclude-regexp): New variable.
2556 (web-manual): Move...
2557 * maint.mk (web-manual): ...here, to match gnulib.
2558 (update-copyright): New target, copied from gnulib's
2559 maint.mk (it would be nice to sync this file...).
2560 (build_aux): New macro.
2561 (VC_LIST, emit_upload_commands): Use it.
2562 * build-aux/texinfo.tex: Resynchronize from upstream.
2563 * lib/autoconf/general.m4 (_AC_COPYRIGHT_YEARS): Reformat to meet
2565 * lib/autotest/general.m4 (_AT_COPYRIGHT_YEARS): Likewise.
2567 2009-08-12 Paolo Bonzini <bonzini@gnu.org>
2569 Fix testsuite log capturing for tests 183 and 186.
2570 * tests/autotest.at (AT_CHECK_AT_PREP): Prepend AT_dir to
2571 testsuite log file for AT_CAPTURE_FILE.
2573 2009-08-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2575 Ensure we do not regress with AC_CHECK_MEMBERS.
2576 * tests/semantics.at (AC_CHECK_MEMBERS): Expose the recent
2577 AC_CHECK_MEMBERS fix.
2578 (AC_CHECK_MEMBER): New test group.
2580 2009-08-10 Jeff Squyres <jsquyres@cisco.com> (tiny change)
2582 Fix typo in AC_REQUIRE description.
2583 * doc/autoconf.texi (Prerequisite macros): Fix typo.
2585 2009-08-10 Paolo Bonzini <bonzini@gnu.org>
2587 Fix description of the macro generated by AC_CHECK_MEMBERS.
2588 * lib/autoconf/types.m4 (_AC_CHECK_MEMBERS): Fix regex
2589 replacement. Reported by Bruno Haible.
2591 2009-08-07 Romain Lenglet <romain.lenglet@laposte.net>
2593 * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Make AC_RUN_IFELSE
2594 fail if the test module doesn't compile.
2596 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
2598 Use exit code to detect no occurrences with grep.
2599 * tests/autotest.at (Erlang Eunit unit tests): Fix grep invocation.
2601 2009-08-01 Romain Lenglet <romain.lenglet@laposte.net>
2602 Paolo Bonzini <bonzini@gnu.org>
2604 * lib/autotest/specific.m4 (AT_CHECK_EUNIT): New file.
2605 * lib/autotest/Makefile.am (dist_autotestlib_DATA): Add specific.m4.
2606 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add definitions of
2607 variables used by AT_CHECK_EUNIT macro: ERL, ERLC, ERLCFLAGS.
2608 * tests/autotest.at (Erlang Eunit unit tests): Add test for macro
2610 * doc/autoconf.texi (Writing Testsuites): Document macro
2612 * NEWS: Mention macro AT_CHECK_EUNIT.
2614 2009-07-30 Paolo Bonzini <bonzini@gnu.org>
2615 Joel E. Denny <jdenny@clemson.edu>
2617 Clarify comparison of echo, printf, and AS_ECHO*.
2618 * doc/autoconf.texi (Limitations of Builtins): In echo's entry,
2619 give a reason why printf is better than echo. In printf's
2620 entry, cross-reference echo's entry.
2622 2009-07-30 Paolo Bonzini <bonzini@gnu.org>
2624 Add back AH_CHECK_HEADERS.
2625 * lib/autoconf/general.m4 (AH_CHECK_HEADERS): New.
2626 * NEWS: Create new section.
2628 2009-07-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2630 testsuite: avoid bogus hostname match from inner test logs.
2631 * tests/autotest.at (Hard fail): Check more restrictively for
2632 passed tests, so that hostnames recorded in the log file do not
2634 Report by Ludovic Courtès.
2636 2009-07-26 Eric Blake <ebb9@byu.net>
2638 Release Version 2.64.
2639 * NEWS: Mention the release.
2640 * README: This release is stable.
2641 * HACKING (release): Use dist-xz, not dist-lzma.
2643 Document some optional features in INSTALL.
2644 * doc/install.texi (Basic Installation): Mention that INSTALL is
2645 generic, and that not all packages implement all features.
2646 Mention 'make distcheck' for maintainers, and 'make installcheck'
2647 for users. Mention the GNU Coding Standards.
2648 (Installation Names): Mention DESTDIR vs. 'make prefix= install'
2649 as ways to alter the configuration, with caveats of each. Move
2650 --program-prefix discussion...
2651 (Optional Features): ...here. Mention --enable-silent-rules and
2654 Basic improvements to INSTALL.
2655 * doc/install.texi (Basic Installation): Use better markup.
2656 (Multiple Architectures): Introduce the term VPATH.
2657 (Installation Names): Mention that --prefix must be absolute.
2658 * doc/autoconf.texi (Preset Output Variables)
2659 (Installation Directory Variables): Consistently refer to GNU
2662 Update some upstream files.
2663 * build-aux/config.guess: Resynchronize from upstream.
2664 * build-aux/config.sub: Likewise.
2665 * build-aux/texinfo.tex: Likewise.
2666 * build-aux/vc-list-files: Likewise.
2667 * doc/standards.texi: Likewise.
2669 2009-07-25 Eric Blake <ebb9@byu.net>
2671 Recognize new m4sugar keywords.
2672 * lib/emacs/autoconf-mode.el (autoconf-current-defun): Recognize
2673 m4_define_default, m4_defun_init, m4_defun_once.
2674 (autoconf-font-lock-keywords): Likewise.
2676 Require m4 1.4.6, and fix testsuite to support this version.
2677 * m4/m4.m4 (AC_PROG_GNU_M4): Reject m4 1.4.5, now that we use
2678 regexp it can't handle.
2679 * NEWS: Mention minimum version bump.
2681 * README-hacking: Likewise.
2682 * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
2683 * tests/tools.at (autom4te --trace and whitespace): Update test so
2684 still work with older m4 line numbers.
2685 * tests/m4sugar.at (m4@&t@_require: nested): Likewise.
2686 Reported by Ralf Wildenhues.
2688 2009-07-25 Bruno Haible <bruno@clisp.org>
2690 Clarify autom4te debugging tips.
2691 * doc/autoconf.texi (Debugging via autom4te): Fix example from
2692 previous commit, and add clarification.
2694 2009-07-25 Eric Blake <ebb9@byu.net>
2696 Document some autom4te debugging tips.
2697 * doc/autoconf.texi (Debugging via autom4te): New node.
2698 Suggested by Bruno Haible.
2701 * configure.ac (ac_cv_unsupported_fs_chars): Make editing easier.
2703 Let autoheader see through m4 macros in AC_DEFINE.
2704 * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Expand macro before
2706 * lib/autoconf/autoheader.m4 (AH_VERBATIM, AH_TEMPLATE): Likewise,
2707 for using the macro in a template file.
2708 * tests/tools.at (autoheader and macros): New test.
2709 * NEWS: Mention this.
2710 Reported by Bruno Haible.
2712 Improve NEWS wording.
2713 * NEWS: Use more accurate statement.
2714 Suggestedy by Ralf Wildenhues.
2716 2009-07-24 Eric Blake <ebb9@byu.net>
2718 Fix AS_EXIT for FreeBSD sh.
2719 * lib/m4sugar/m4sh.m4 (AS_EXIT): Always supply an argument to the
2720 shell function, since $? is not reliable on function entry.
2721 (_AS_EXIT_PREPARE): Simplify to assume argument.
2722 Reported by Ralf Wildenhues.
2724 2009-07-23 Eric Blake <ebb9@byu.net>
2726 Run more tests under Solaris.
2727 * tests/local.at (AT_CHECK_AUTOCONF): Don't skip entire test
2728 group when passing over syntax checks.
2730 2009-07-23 Romain Lenglet <romain.lenglet@laposte.net>
2732 Clean up temporary files generated by Erlang macros.
2733 * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB)
2734 (AC_ERLANG_SUBST_ROOT_DIR, AC_ERLANG_SUBST_LIB_DIR)
2735 (AC_ERLANG_SUBST_ERTS_VER): Delete conftest.out; renamed
2736 erlang_cv_* cache variables into ac_cv_erlang_*.
2737 * lib/autoconf/general.m4 (AC_RUN_IFELSE): Delete conftest.beam
2738 files generated by Erlang compiler.
2739 * tests/local.at (AT_CHECK_ENV): Ignore variables defined by
2741 * tests/erlang.at (AT_SETUP_ERLANG): Delete; replace all uses by
2743 * tests/Makefile.am (AUTOCONF_FILES): Revert previous addition of
2744 generated Erlang tests; they are all hand-tested.
2746 Add autotests for Erlang macros.
2747 * tests/erlang.at: Added tests for all macros in erlang.m4.
2748 * tests/Makefile.am (TESTSUITE_HAND_AT, AUTOCONF_FILES): Added
2750 * tests/suite.at: Likewise.
2751 * tests/compile.at (AC_LANG, AC_LANG_PUSH & AC_LANG_POP): Added
2752 test for extension of Erlang files.
2753 (Multiple languages): Use correct m4 quoting.
2754 * NEWS: Mention this.
2756 2009-07-22 Eric Blake <ebb9@byu.net>
2758 Fix test of autom4te from stdin.
2759 * tests/tools.at (autom4te cache locking): Make stdin request
2760 explicit, so that --force is properly used.
2762 2009-07-16 Eric Blake <ebb9@byu.net>
2764 Don't hide leading space in autom4te --trace output.
2765 * bin/autom4te.in (handle_traces): Don't flatten leading and
2766 trailing space, since tracing spacing bugs can be useful.
2767 * tests/tools.at (autom4te --trace and whitespace): New test.
2769 2009-07-13 Eric Blake <ebb9@byu.net>
2771 Document that $srcdir can be used during configure.
2772 * doc/autoconf.texi (Preset Output Variables): Add a paragraph.
2774 Reported by Monty Taylor.
2776 2009-07-13 Eric Blake <ebb9@byu.net>
2778 Disable asynchronous job notification for parallel tests.
2779 * lib/autotest/general.m4 (AT_INIT) <Driver loop>: Turn off notify
2780 mode, since zsh leaves it on after 'emulate sh'.
2781 * doc/autoconf.texi (Limitations of Builtins) <set>: Document that
2782 job control options are not portable.
2784 Guarantee that exit status trumps output matching.
2785 * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document this
2787 * tests/autotest.at (Skip, parallel skip): Enhance tests.
2789 Fix nits in recent patches.
2790 * configure.ac (ac_cv_dir_trailing_space): Avoid $status, for
2792 * doc/autoconf.texi (Writing Testsuites) <AT_FAIL_IF, AT_SKIP_IF>:
2794 (Introduction): Recommend m4 1.4.13.
2796 * m4/m4.m4 (AC_PROG_GNU_M4): Likewise. Use long option --gnu
2799 2009-07-13 Paolo Bonzini <bonzini@gnu.org>
2801 Introduce AT_SKIP_IF and AT_FAIL_IF
2802 * NEWS: Mention AT_SKIP_IF and AT_FAIL_IF.
2803 * doc/autoconf.texi (Autotest): Document them.
2804 * lib/autotest/general.m4 (_AT_LINE_ESCAPED, AT_SKIP_IF,
2805 AT_FAIL_IF, _AT_CHECK_EXIT): New.
2806 (AT_CHECK): Use _AT_LINE_ESCAPED.
2807 * tests/autotest.at: Add tests for AT_SKIP_IF and AT_FAIL_IF.
2809 * tests/local.at: Use AT_SKIP_IF.
2811 2009-07-13 Paolo Bonzini <bonzini@gnu.org>
2813 Use m4 -g when available.
2814 * m4/m4.m4: Unset POSIXLY_CORRECT during first test. Test for -g.
2815 Warn user if he has POSIXLY_CORRECT set but -g is not supported.
2816 * bin/Makefile.am: Substitute @M4_GNU@ into generated files.
2817 * bin/autom4te.in: Pass @M4_GNU@ to m4.
2819 2009-07-13 Eric Blake <ebb9@byu.net>
2822 * lib/autotest/general.m4 (at_fn_check_prepare_notrace): Use
2824 (_AT_DECIDE_TRACEABLE): Likewise.
2826 2009-07-13 Paolo Bonzini <bonzini@gnu.org>
2828 * lib/autotest/general.m4 (at_fn_check_prepare_notrace): Use
2829 $at_trace_echo. Add new REASON argument.
2830 (at_fn_check_prepare_trace): Do not call at_fn_check_prepare_notrace.
2831 Use $at_check_filter_trace.
2832 (at_fn_check_prepare_dynamic): Use at_fn_check_prepare_notrace.
2833 (at_traceon): Initialize to ':'.
2834 (at_traceoff): Remove, use 'set +x' instead throughout.
2835 (at_check_filter_trace, at_trace_echo): New shell variables.
2836 Initialize them if tracing is requested.
2837 (_AT_DECIDE_TRACEABLE): Adjust call to at_fn_check_prepare_notrace.
2839 2009-07-12 Paolo Bonzini <bonzini@gnu.org>
2841 Move atlocal feature tests to configure
2842 * configure.ac: Test for unsupported characters in files and
2844 * tests/atlocal.in: ... and not here.
2846 2009-07-09 Eric Blake <ebb9@byu.net>
2849 * tests/m4sh.at (AS@&t@_INIT_GENERATED): Close fd, rather than
2850 creating file named -.
2852 Fix testsuite under dash.
2853 * tests/m4sh.at (LINENO stack, AS@&t@_BASENAME, AS@&t@_DIRNAME)
2854 (AS@&t@_ECHO and AS@&t@_ECHO_N, AS@&t@_EXIT, AS@&t@_MKDIR_P)
2855 (AS@&t@_VERSION_COMPARE, as_me, Negated classes in globbing)
2856 (Functions Support, Functions and return Support)
2857 (Nested AS@&t@_REQUIRE_SHELL_FN, Nested AS@&t@_REQUIRE)
2858 (AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require, AS@&t@_HELP_STRING)
2859 (AS@&t@_IF and AS@&t@_CASE, AS@&t@_FOR, AS@&t@_LITERAL_IF)
2860 (AS@&t@_VAR basics, AS@&t@_VAR_APPEND, AS@&t@_VAR_ARITH)
2861 (AS@&t@_INIT cleanup, AS@&t@_INIT_GENERATED, AS@&t@_MESSAGE_FD)
2862 (_AS@&t@_CLEAN_DIR, ECHO_C): Allow testing different CONFIG_SHELL
2863 options during the testsuite run.
2864 Reported by Ralf Wildenhues.
2866 2009-07-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2868 Ignore messages on stderr when testing for the zsh issue.
2869 * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Ignore stderr.
2871 2009-07-07 Eric Blake <ebb9@byu.net>
2873 Skip parallel tests when zsh 'set -m' fails.
2874 * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Skip test if set -m
2876 Reported by Ralf Wildenhues.
2878 Make parallel testsuite more portable.
2879 * lib/autotest/general.m4 (AT_INIT) <AT_JOB_FIFO_FD>: Avoid <>;
2880 instead open write descriptor in each group and read descriptor in
2882 * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Relax condition.
2884 2009-07-03 Eric Blake <ebb9@byu.net>
2886 Avoid syntax error in ash.
2887 * lib/autotest/general.m4 (AT_INIT) <driver loop>: Avoid syntax
2888 errors on shells that don't recognize <>.
2889 * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Also skip parallel
2890 tests for this reason. Skip based on the shell to be tested,
2891 not the shell driving the testsuite.
2892 (parallel syntax error): Rearrange similar to previous patch.
2893 (parallel test execution): Defer skip until after serial tests.
2895 2009-07-02 Eric Blake <ebb9@byu.net>
2897 Skip test on shells that can't catch syntax failure.
2898 * tests/autotest.at (Syntax error): Skip test if shell aborts on
2899 syntax error (AIX ksh88) or doesn't detect it (zsh).
2900 * doc/autoconf.texi (Limitations of Builtins) <.>: Mention these
2902 Reported by Ralf Wildenhues.
2904 2009-06-30 Jan Madzik <jmadzik@gmail.com> (tiny change)
2905 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2907 Avoid AIX 6.1 ksh88 ECHO_C command substitution bug.
2908 * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Ensure more than
2909 one character is output with `\c'; reset echo output state
2910 if buggy ksh was detected, and set ECHO_T instead of ECHO_C.
2911 * doc/autoconf.texi (Limitations of Builtins): Document it.
2912 * tests/m4sh.at (ECHO_C): New test.
2915 2009-06-27 William Pursell <bill.pursell@gmail.com> (tiny change)
2917 Fix grammaro in documenation.
2918 * doc/autoconf.texi (Guidelines): Fix grammaro.
2920 2009-06-17 Eric Blake <ebb9@byu.net>
2922 Fix AC_CHECK_HEADER infloop for gcc.
2923 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
2924 (_AC_CHECK_HEADER_OLD): Give up on AU_DEFUN, and manually warn
2925 about obsoletion, to avoid infinite loop in gcc.
2926 Reported by Ralf Wildenhues.
2928 2009-06-15 Eric Blake <ebb9@byu.net>
2930 Add m4_copy_force, m4_rename_force.
2931 * lib/m4sugar/m4sugar.m4 (m4_copy_force, m4_rename_force): New
2933 * tests/m4sugar.at (m4@&t@_defn): Test them.
2934 * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
2937 Suggested by Ralf Wildenhues.
2939 Reinstate _AC_CHECK_HEADER_OLD for gcc.
2940 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
2941 (_AC_CHECK_HEADER_OLD): Provide autoupdate versions, since gcc and
2942 others used these undocumented macros.
2943 Reported by Ralf Wildenhues.
2945 2009-06-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2947 Fix concurrent autom4te.cache directory creation race.
2948 * bin/autom4te.in: Do not error out if another `autom4te'
2949 instance created the cache directory before we could.
2951 2009-06-11 Steven G. Johnson <stevenj@alum.mit.edu>
2952 and Eric Blake <ebb9@byu.net>
2954 Create a file in test program when detecting cross-compilation.
2955 * lib/autoconf/lang.m4 (_AC_LANG_IO_PROGRAM): New macro, returns
2956 program that creates a file.
2957 (_AC_COMPILER_EXEEXT,_AC_COMPILER_EXEEXT_WORKS): Call new macro
2958 and document why it's needed to robustly detect cross-compiling.
2959 (AC_LANG_DEFINE): Copy implementation across similar languages.
2960 * lib/autoconf/c.m4 (_AC_LANG_IO_PROGRAM(C)): Implement new macro.
2961 * lib/autoconf/fortran.m4 (_AC_LANG_IO_PROGRAM(Fortran 77)):
2963 * lib/autoconf/erlang.m4 (_AC_LANG_IO_PROGRAM(Erlang)): Likewise.
2965 2009-06-11 Eric Blake <ebb9@byu.net>
2967 Simplify AC_LANG(Fortran).
2968 * lib/autoconf/fortran.m4 (AC_LANG(Fortran)): Borrow from Fortran
2969 77, which requires reordering portions of the file.
2970 (AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran)): Now defined
2973 Clarify m4_copy semantics.
2974 * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Update
2976 * tests/m4sugar.at (m4@&t@_defn): Enhance test.
2978 2009-06-06 Eric Blake <ebb9@byu.net>
2980 Improve documentation on trap pitfalls.
2981 * doc/autoconf.texi (Limitations of Builtins) <trap>: Mention new
2982 Posix 2008 requirement on trap, and dash bug in implementing it.
2983 Mention various shell bugs with traps defined inside subshells.
2984 Mention older bash limitation with single-command exit trap.
2985 <set>: Mention another 'set -e' limitation.
2986 Reported by Jens Schmidt.
2988 2009-06-06 Jim Meyering <meyering@redhat.com>
2990 Improve testsuite --help
2991 * lib/autotest/general.m4: Correct the example in ./testsuite --help.
2994 2009-06-06 Eric Blake <ebb9@byu.net>
2996 Document fallback behavior of AC_PROG_LEX.
2997 * doc/autoconf.texi (Particular Programs) <AC_PROG_LEX>: Mention
2998 why fallback is :, and that a --version check must be used to
2999 determine whether flex was found.
3000 Reported by Patrick Welche.
3002 2009-05-28 Jim Meyering <meyering@redhat.com>
3004 Fix syntax errors in autoconf.texi.
3005 * doc/autoconf.texi (Erlang Libraries): @-escape curly braces
3008 2009-05-28 Romain Lenglet <romain.lenglet@laposte.net>
3010 New AC_ERLANG_SUBST_ERTS_VER macro.
3011 * lib/autoconf/erlang.m4: Add macro AC_ERLANG_SUBST_ERTS_VER.
3012 * doc/autoconf.texi (Erlang Libraries): Document
3013 AC_ERLANG_SUBST_ERTS_VER.
3015 * AUTHORS: Update Romain Lenglet's email address.
3017 Suggested by Ruslan Babayev.
3019 2009-05-26 Eric Blake <ebb9@byu.net>
3021 Sanitize more problematic environment variables.
3022 * doc/autoconf.texi (Environment Variable Index): Add more
3023 entries, particularly for precious variables and known culprit
3024 variables. Needed to avoid overfull vbox.
3025 (Special Shell Variables) <CLICOLOR_FORCE, GREP_OPTIONS>: Add
3026 variables known to cause misbehavior.
3027 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Unset variables
3028 known to cause problems.
3030 Based on reports from Ilya Bobir and Joey Mingrone.
3032 2009-05-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3034 Document VPATH = $(variable) issue in VPATH chapter.
3035 * doc/autoconf.texi (Variables listed in VPATH): New node.
3036 (Top, VPATH and Make): Adjust menus.
3037 (Build Directories): Refer to it.
3038 Prompted by report from Bruno Haible.
3040 2009-05-19 Eric Blake <ebb9@byu.net>
3042 Update uses of all-permissive license.
3043 * ChangeLog: Relicense under GPL.
3044 * ChangeLog.0: Likewise.
3045 * ChangeLog.1: Likewise.
3046 * ChangeLog.2: Likewise.
3048 * m4/m4.m4: Use latest wording of FSF all-permissive license.
3049 * m4/make-case.m4: Likewise.
3050 * doc/install.texi: Likewise.
3051 * tests/statesave.m4: Relicense to match rest of testsuite; this
3052 file does not need all-permissive license since it is not designed
3053 for reuse by other packages.
3054 * BUGS: Relicense under all-permissive license.
3055 * HACKING: Likewise.
3058 * README-alpha: Likewise.
3059 * README-hacking: Likewise.
3062 Update some upstream files.
3063 * build-aux/config.guess: Resynchronize from upstream.
3064 * build-aux/gnupload: Likewise.
3065 * build-aux/vc-list-files: Likewise.
3066 * build-aux/texinfo.tex: Likewise.
3067 * doc/gendocs_template: Likewise.
3069 Don't mention undocumented interface in NEWS.
3070 * NEWS: Correct earlier entry about AS_FOR.
3072 2009-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3074 New manual section `Parallel Make'.
3075 * doc/autoconf.texi (Parallel Make): New node, document NetBSD
3077 (Top, Portable Make): Adjust menus.
3079 2009-05-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3081 testsuite: skip `Multiple languages' test without C++ compiler.
3082 * tests/compile.at (Multiple languages): Skip test on systems
3083 without a C++ compiler.
3084 Report by Jim Meyering.
3086 2009-05-13 Eric Blake <ebb9@byu.net>
3088 Document zsh bug with empty commands.
3089 * doc/autoconf.texi (Special Shell Variables) <?>: Add mention of
3090 more problems with $?.
3092 2009-05-11 Patrick Welche <prlw1@cam.ac.uk> (tiny change)
3094 Also try X11R7 when looking for X11 files, for NetBSD.
3095 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Also try directories
3096 with X11R7 in the name.
3098 2009-05-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3100 Limit stderr logging for C compiler version.
3101 * lib/autoconf/general.m4 (_AC_RUN_LOG_LIMIT, _AC_DO_LIMIT): New
3102 internal macros, equivalent to _AC_RUN_LOG and _AC_DO, but with
3103 an optional additional argument to limit the number of lines of
3104 stderr output logged, defaulting to 10.
3105 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Use
3106 _AC_DO_LIMIT for capturing compiler version output. Also test
3107 -qversion, for the IBM xlc compiler.
3108 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
3110 Report by Christian Rössel and John R. Cary against Libtool.
3112 2009-04-24 Eric Blake <ebb9@byu.net>
3114 Fix quoting of m4 macros in AT_CHECK.
3115 * lib/autotest/general.m4 (AT_CHECK): Expand prior to adding
3116 escapes, to avoid shell syntax errors caused by late macro
3118 * NEWS: Document this change.
3119 * tests/autotest.at (Metacharacters in command from M4 expansion):
3122 manual: Use consistent spelling of here-document.
3123 * doc/autoconf.texi (Defining Symbols, Programming in M4sh)
3124 (Common Shell Constructs, Macro Names, Writing Testsuites): Fix
3126 Reported by Ralf Wildenhues.
3128 Make AT_CHECK_UNQUOTED more like AC_DEFINE_UNQUOTED.
3129 * lib/autotest/general.m4 (AT_CHECK_NOESCAPE): Keep older,
3130 undocumented semantics, where unbalanced " cannot be used in the
3131 stdout/stderr argument.
3132 (AT_CHECK_UNQUOTED): Treat " in stdout/stderr as a literal, since
3133 the text is used in double-quoted context.
3134 * tests/autotest.at (unquoted output): New test.
3135 * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention which
3136 shell expansions are handled.
3138 Rename AT_CHECK_NOESCAPE to AT_CHECK_UNQUOTED.
3139 * lib/autotest/general.m4 (AT_CHECK_NOESCAPE): Deprecate, in favor
3141 (AT_CHECK_UNQUOTED): ...for consistency with AC_DEFINE_UNQUOTED.
3142 * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document the
3145 * tests/autotest.at (Binary output, Cleanup): Adjust tests.
3146 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
3148 Reported by Ralf Wildenhues.
3150 2009-04-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3152 New test to ensure autom4te cache file locking works.
3153 * tests/tools.at (autom4te cache locking): New test.
3154 Report by Eric Blake.
3156 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
3158 manual: another grammar improvement.
3159 * doc/autoconf.texi (Fortran Compiler): Avoid dependency on
3160 pronunciation of `FCFLAGS_f90'.
3162 2009-04-23 Eric Blake <ebb9@byu.net>
3164 Change FOO placeholder to use @var{text} instead.
3165 * doc/autoconf.texi (Configuration Actions): Rename AC_CONFIG_FOOS
3166 to AC_CONFIG_@var{ITEMS}.
3167 * doc/autoconf.texi (config.status Invocation): Likewise.
3168 (AC_FOO_IFELSE vs AC_TRY_FOO): Rename node...
3169 (AC_ACT_IFELSE vs AC_TRY_ACT): ...to this.
3171 2009-04-22 Eric Blake <ebb9@byu.net>
3174 * lib/m4sugar/m4sugar.m4 (m4_argn): New macro.
3175 * NEWS: Document it.
3176 * doc/autoconf.texi (Looping constructs) <m4_argn>: Likewise.
3177 <m4_car, m4_cdr>: Improve documentation.
3178 * tests/m4sugar.at (m4 lists): New test.
3180 2009-04-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3182 Improve description of AC_PROG_CC_C89 and AC_PROG_CC_C99.
3183 * doc/autoconf.texi (C Compiler): Document that AC_PROG_CC_C89
3184 and AC_PROG_CC_C99 prefer extended over strict conformance modes.
3185 Report by Vincent Lefèvre.
3187 2009-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3189 Revert bogus change in last commit.
3190 * doc/autoconf.texi (Initialization Macros): Revert change.
3191 Spotted by Eric Blake.
3193 manual: fix trivial grammar errors.
3194 * doc/autoconf.texi (Fortran Compiler, Initialization Macros)
3195 (Limitations of Usual Tools, Pretty Help Strings)
3196 (config.status Invocation): Fix `a' vs. `an' errors.
3197 Report by Eric Blake.
3199 2009-04-21 Eric Blake <ebb9@byu.net>
3201 Shuffle maintainer-specific rules.
3202 * Makefile.am (maintainer-check-tests): Delete.
3203 (autom4te-update): Move...
3204 * cfg.mk (autom4te-update): ...here.
3205 (fetch): Depend on autom4te-update. Split...
3206 (gnulib-update): ...into new rule. Import move-if-change from
3208 * maint.mk (maintainer-distcheck): Absorb former maintainer-check
3210 * build-aux/move-if-change: New file, undistributed.
3211 * .gitattributes: Handle new upstream file.
3212 * .gitignore: Ignore maintainer cruft.
3213 * HACKING: Update maintainer instructions.
3214 * build-aux/config.guess: Update from upstream.
3215 * build-aux/config.sub: Likewise.
3216 * build-aux/gendocs.sh: Likewise.
3217 * build-aux/texinfo.tex: Likewise.
3218 * doc/gendocs_template: Likewise.
3219 * doc/standards.texi: Likewise.
3221 2009-04-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3223 Sync autom4te perl modules from Automake.
3224 * lib/Autom4te/Channels.pm: Sync from Automake.
3225 * lib/Autom4te/FileUtils.pm: Likewise.
3226 * lib/Autom4te/XFile.pm: Likewise.
3228 Adjust channel definitions for new Automake `ordered' flag.
3229 * lib/Autom4te/ChannelDefs.pm (Autom4te::ChannelDefs): Set
3230 `ordered' flag to zero for channels `fatal', `automake', and
3231 `verb'. This has currently no effect on actual semantics but
3232 avoids a consistency check needed for Automake's usage of the
3235 manual: clarify m4_if synopsis.
3236 * doc/autoconf.texi (Redefined M4 Macros): Rewrite synopsis of
3237 m4_if in the presence of more than three arguments.
3239 Improve and clarify `config.status' usage documentation.
3240 * doc/autoconf.texi (config.status Invocation): Fix markup in
3241 synopsis. Use `tag' instead of `file' notation for the
3242 non-option arguments, to be consistent with the documentation
3243 of the AC_CONFIG_* macros.
3244 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise,
3245 use `tag' notation for non-option arguments.
3246 Report by John Calcote.
3248 2009-04-15 Eric Blake <ebb9@byu.net>
3250 Test that autotest handles binary output.
3251 * tests/autotest.at (Binary output): New test.
3252 Suggested by Ralf Wildenhues.
3254 Add stdout-nolog and ignore-nolog to AT_CHECK.
3255 * lib/autotest/general.m4 (AT_DIFF_STDERR(stderr-nolog))
3256 (AT_DIFF_STDERR(ignore-nolog), AT_DIFF_STDOUT(stdout-nolog))
3257 (AT_DIFF_STDOUT(ignore-nolog)): New macros.
3258 * tests/autotest.at (Logging): New test.
3259 * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document the
3260 new logging actions.
3262 Reported by Ralf Wildenhues.
3264 Teach AT_CHECK about hard failures.
3265 * lib/autotest/general.m4 (AT_INIT) <at_fn_check_skip>
3266 <at_fn_check_status, at_fn_group_postprocess>: Handle hard
3268 * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document
3269 AT_CHECK_NOESCAPE and exit status 99.
3271 * tests/autotest.at (Hard fail, Cleanup): New tests.
3273 2009-04-14 Eric Blake <ebb9@byu.net>
3275 Fix yesterday's regression in AS_IF.
3276 * lib/m4sugar/m4sh.m4 (_AS_IF_ELSE): Don't corrupt $? in else
3277 branch; it is up to the user to avoid syntax errors.
3278 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Adjust test.
3280 2009-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3282 Add traces for AM_SILENT_RULES.
3283 * lib/autom4te.in (Automake-preselections): Trace
3286 2009-04-13 Eric Blake <ebb9@byu.net>
3288 Improve documentation related to expanded-before-required.
3289 * doc/autoconf.texi (Expanded Before Required): Add a case study.
3290 (Running the Compiler) <AC_COMPILE_IFELSE>: Remind users that
3291 running a compile test will AC_REQUIRE the compiler check.
3292 (Macro Definitions) <AC_DEFUN>: Contrast AC_DEFUN and m4_define.
3293 (C Compiler) <AC_PROG_CC>: Mention the fact that only first
3294 invocation of this macro checks for $EXEEXT, and that many other
3295 macros use it via AC_REQUIRE.
3296 Reported by Andreas Schwab.
3298 Mention latest rules about make and set -e.
3299 * doc/autoconf.texi (Failure in Make Rules): Posix is now clear
3300 that make must use set -e.
3301 (Limitations of Builtins) <set>: Clarify more about set -e
3304 Improve documentation about if exit status.
3305 * doc/autoconf.texi (Limitations of Builtins) <if>: Mention that
3306 exit status bugs don't affect modern targets.
3307 Reported by Andreas Schwab.
3309 Add cross-reference to new macros.
3310 * doc/autoconf.texi (Text processing Macros) <m4_normalize>
3311 <m4_strip>: Reference the new m4_ifblank.
3312 Suggested by Mike Frysinger.
3314 Make AS_IF, AS_CASE, and AS_FOR more robust to blank arguments.
3315 * lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT, AS_FOR, _AS_IF)
3316 (_AS_IF_ELSE, AS_IF): Avoid syntax error on blank argument,
3317 including a macro with an empty expansion.
3318 * NEWS: Mention this.
3319 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE, AS@&t@_FOR): Update
3321 Reported by Mike Frysinger.
3323 Add m4_blank and friends.
3324 * lib/m4sugar/m4sugar.m4 (m4_blank, m4_nblank, m4_default_nblank)
3325 (m4_default_nblank_quoted): New macros.
3326 * NEWS: Document them.
3327 * doc/autoconf.texi (Conditional constructs): Likewise.
3328 * tests/m4sugar.at (m4sugar shorthand conditionals): New test.
3329 Suggested by Mike Frysinger.
3331 2009-04-13 Eric Blake <ebb9@byu.net>
3333 Finish upgrade to GFDL 1.3.
3334 * doc/autoconf.texi (copying): Use correct license; comment change
3335 was missed on 2008-11-04.
3337 2009-04-10 Eric Blake <ebb9@byu.net>
3339 Test parallel handling of syntax error.
3340 * tests/autotest.at (parallel syntax error): New test.
3341 Suggested by Ralf Wildenhues.
3343 2009-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3345 Document awk and config.status line length limitations.
3346 * doc/autoconf.texi (Configuration Actions): The input to
3347 config.status should have reasonable line length.
3348 (Limitations of Usual Tools): Document IRIX, HP-UX awk input
3350 Report by Bruno Haible.
3352 Skip `Multiple languages' test if CC is a C++ compiler.
3353 * tests/compile.at (Multiple languages): Before starting the
3354 test proper, build and run a configure script that tests the
3355 C compiler only, and skips the test if this is found to be a
3357 Report by Eric Blake.
3359 Note that AC_DEFUN is needed for aclocal.
3360 * doc/autoconf.texi (Coding Style): Public third-party macros
3361 should be AC_DEFUN'ed.
3362 Report by John Calcote.
3364 2009-04-10 Eric Blake <ebb9@byu.net>
3366 Add undocumented _AS_CLEAN_DIR.
3367 * lib/m4sugar/m4sh.m4 (_AS_CLEAN_DIR): New macro; fixes m4 quoting
3369 * lib/autotest/general.m4 (AT_INIT) <at_fn_group_prepare>: Use new
3371 * tests/m4sh.at (_AS@&t@_CLEAN_DIR): New test.
3372 Reported by Ralf Wildenhues.
3374 2009-04-09 Eric Blake <ebb9@byu.net>
3376 Avoid problems caused by deleting in-use directory.
3377 * lib/autotest/general.m4 (AT_INIT) <at_fn_group_prepare>: Only
3378 remove the contents of $at_group_dir, not the directory itself.
3380 Fix regression in empty test.
3381 * lib/autotest/general.m4 (AT_SETUP): Prep AT_ingroup for fallback
3382 use in empty test. Fixes regression introduced 2009-04-06.
3383 (_AT_CHECK): Undo fallback when a test is not empty.
3384 (AT_CLEANUP): Expand AT_ingroup before deleting.
3386 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
3388 Make a less conservative cross-compilation guess for AC_FUNC_UTIME_NULL.
3389 * lib/autoconf/functions.m4 (AC_FUNC_UTIME_NULL): Assume
3390 not crosscompiling to an obsolete system.
3392 2009-04-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3394 Automake relies on the undocumented `_AC_COMPILER_EXEEXT' macro.
3395 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Document that
3396 Automake relies on this macro.
3398 2009-04-06 Eric Blake <ebb9@byu.net>
3400 Reduce testsuite size.
3401 * tests/statesave.m4: New file.
3402 * tests/Makefile.am (EXTRA_DIST): Distribute it.
3403 * tests/local.at (AT_CONFIGURE_AC): Reuse file, rather than
3404 repeating inline definition of AC_STATE_SAVE.
3405 (AT_CHECK_ENV): Factor code...
3406 (_AT_CHECK_ENV): ...into shell function.
3407 * tests/m4sh.at (AT_DATA_LINENO): Avoid churn in testsuite.
3409 Handle shell comments in AT_CHECK.
3410 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Handle # in
3411 test correctly. Latent bug in handling shell comment was first
3412 fixed 2008-11-20, but regressed two patches later.
3413 * tests/autotest.at (Shell comment in command): New test.
3414 * NEWS: Document the fix.
3416 Hard fail any test with syntax errors.
3417 * lib/autotest/general.m4 (AT_INIT) <at_fn_group_postprocess>:
3418 Guarantee test failure on syntax error, rather than inheriting
3419 status from previous test.
3420 * tests/autotest.at (Syntax error): New test.
3422 2009-03-31 Eric Blake <ebb9@byu.net>
3424 Beta Release Version 2.63b.
3425 * NEWS: Mention the release.
3426 * README: Clarify that this is a beta release.
3427 * build-aux/texinfo.tex: Synchronize from upstream.
3428 * .x-sc_trailing_blank: Exempt more upstream files.
3430 2009-03-30 Eric Blake <ebb9@byu.net>
3432 Fix testsuite failures under zsh.
3433 * tests/local.at (AT_CHECK_ENV): Exempt $argv and $ARGC, which are
3434 set by zsh -c 'emulate sh'.
3435 Reported by Ralf Wildenhues.
3437 For now, skip parallel tests under less-tested shells.
3438 * tests/autotest.at (AT_CHECK_AT): Add pre-test argument.
3439 (Tested programs, Startup error messages, AT_CHECK_AT_TITLE)
3440 (Fallacy, Skip, errexit, Long test source lines)
3441 (Debugging a successful test, Debugging script and environment)
3442 (Debugging a failed test, Using atlocal)
3443 (Choosing where testsuite is run): Adjust callers.
3444 (AT_SKIP_PARALLEL_TESTS): New macro, to skip parallel tests except
3445 under zsh, bash, or when TEST_PARALLEL_AUTOTEST is defined. Makes
3446 it easier to avoid testsuite hangs for users with dash or other
3448 (parallel test execution, parallel truth, parallel fallacy)
3449 (parallel skip, parallel errexit)
3450 (parallel autotest and signal handling): Use it.
3451 * BUGS: Mention this.
3453 2009-03-24 Andris Pavenis <andris.pavenis@iki.fi> (tiny change)
3455 Fix awk substitution of carriage returns on DJGPP.
3456 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix typo in
3457 generation of ac_cs_awk_cr.
3460 2009-03-24 Aaron W. LaFramboise <aaronenvelope277@aaronwl.com> (tiny change)
3462 Work around cygwin bash igncr mode.
3463 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fall back to
3464 bash carriage returns if ac_cr lost \r from ``.
3466 Suggested by Eric Blake.
3468 2009-03-24 Eric Blake <ebb9@byu.net>
3470 Fix underquoted example in manual.
3471 * doc/autoconf.texi (Common Shell Constructs) <AS_TR_CPP>:
3472 Properly m4-quote #.
3473 * THANKS: Update spelling.
3474 Reported by Matěj Týč.
3476 2009-03-18 Eric Blake <ebb9@byu.net>
3478 Manual: mention more expr pitfalls.
3479 * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>:
3480 Mention HP-UX limitation, and $ ambiguity.
3482 Reported by Jens Schmidt, in http://bugs.debian.org/466990.
3484 2009-03-17 Jim Meyering <meyering@redhat.com>
3487 * lib/m4sugar/m4sh.m4: s/are/is/ => "there is no indirection"
3489 2009-03-17 Eric Blake <ebb9@byu.net>
3491 Use test consistently in examples.
3492 * doc/autoconf.texi (Subdirectories, Caching Results)
3493 (Common Shell Constructs, Prerequisite Macros, Coding Style)
3494 (Changed Results, Particular Programs, Defining Symbols):
3495 Protect against arbitrary user strings.
3496 (Multiple Cases): Mention why $fstype does not need protection.
3497 Reported by Reuben Thomas.
3499 Improve confusing section names.
3500 * doc/autoconf.texi (Specifying Names): Rename node...
3501 (Specifying Target Triplets): ...to this.
3502 (Generic Programs): Adjust references.
3503 * doc/install.texi (System Type): Touch up formatting.
3505 Reported by Tim Freeman, in http://bugs.debian.org/312873.
3507 Remove historical inaccuracy.
3508 * doc/autoconf.texi (Portable Shell): Don't perpetuate myth about
3509 #!/bin/sh needing a space.
3510 Reported by Reuben Thomas.
3512 Recommend AS_HELP_STRING more prominently.
3513 * doc/autoconf.texi (External Software): Reduce mention of
3514 hand-written help strings.
3515 Reported by Reuben Thomas.
3517 2009-03-16 Eric Blake <ebb9@byu.net>
3520 * doc/autoconf.texi (Balancing Parentheses): Fix usage of
3522 Reported by Ralf Wildenhues, fix suggested by Karl Berry.
3524 2009-03-14 Eric Blake <ebb9@byu.net>
3526 Resync upstream files.
3527 * GNUmakefile: Run 'make fetch'.
3528 * build-aux/announce-gen: Likewise.
3529 * build-aux/config.guess: Likewise.
3530 * build-aux/config.sub: Likewise.
3531 * build-aux/gnupload: Likewise.
3532 * build-aux/texinfo.tex: Likewise.
3533 * build-aux/vc-list-files: Likewise.
3534 * doc/gnu-oids.texi: Likewise.
3535 * doc/standards.texi: Likewise.
3537 2009-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3539 New test for SunStudio `restrict' handling.
3540 * tests/c.at (AC_C_RESTRICT and C++): New test.
3541 Prompted by bug report from Rolf Vandevaart.
3543 2009-03-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3545 Manual: testsuite depends on package.m4.
3546 * doc/autoconf.texi (Making testsuite Scripts): In the example
3547 makefile snippet, $(TESTSUITE) depends on $(srcdir)/package.m4.
3549 2009-03-02 Allan Caffee <allan.caffee@gmail.com> (tiny change)
3551 Fix a typo in comment for AS_LITERAL_IF.
3552 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Update a comment that fell
3553 out of date when this function was moved/renamed in 59ecd766.
3556 2009-03-02 Eric Blake <ebb9@byu.net>
3558 Improve wording for AS_ESCAPE.
3559 * doc/autoconf.texi (Common Shell Constructs) <AS_ESCAPE>: Touch
3561 * lib/m4sugar/m4sh.m4 (_AS_ESCAPE): Fix comment typos.
3562 Reported by Ralf Wildenhues.
3564 2009-02-24 Eric Blake <ebb9@byu.net>
3566 Use pkgdatadir consistently.
3567 * bin/Makefile.am (edit): Substitute pkgdatadir, not datadir.
3568 * lib/Makefile.am (edit): Likewise.
3569 * lib/autom4te.in (Autoconf-without-aclocal-m4, Autotest, M4sh)
3570 (M4sugar): Use @pkgdatadir@, not @datadir@.
3571 * bin/autoheader.in ($datadir): Likewise.
3572 * bin/autom4te.in ($datadir): Likewise.
3573 * bin/autoreconf.in ($datadir): Likewise.
3574 * bin/autoscan.in ($datadir): Likewise.
3575 * bin/autoupdate.in ($datadir): Likewise.
3576 * bin/ifnames.in ($datadir): Likewise.
3577 * doc/autoconf.texi (Installation Directory Variables): Update
3578 example to be consistent; focus on $(bindir) as an autoconf
3579 variable, and mention that $(pkgdatadir) comes from automake.
3580 Reported by Reuben Thomas.
3582 2009-02-19 Eric Blake <ebb9@byu.net>
3584 Use m4_translit more efficiently in AS_ESCAPE.
3585 * lib/m4sugar/m4sh.m4 (_AS_ESCAPE): Alter API to take first byte
3586 of set separately from rest.
3587 (AS_ESCAPE, _AS_QUOTE_MODERN, AS_TR_SH, AS_VAR_GET): Adjust
3589 * lib/autoconf/autoheader.m4 (AH_VERBATIM): Avoid duplicate
3590 characters in translit request.
3591 * doc/autoconf.texi (Common Shell Constructs) <AS_ESCAPE>:
3595 Mention recently documented macros.
3596 * NEWS: Update list of new documentation.
3598 2009-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3600 Add index for config.site.
3601 * doc/autoconf.texi (Site Defaults): Add index for config.site.
3603 Report by Stephen P. Schaefer.
3605 2009-02-12 Eric Blake <ebb9@byu.net>
3607 Fix m4_set speed regression introduced 2008-12-18.
3608 * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): Alter API to avoid
3609 creating larger argument on each iteration.
3610 (m4_stack_foreach_sep, m4_stack_foreach_sep_lifo)
3611 (_m4_set_contents_2): Adjust all four-argument callers.
3613 2009-02-05 Eric Blake <ebb9@byu.net>
3615 Mention new AC_DEFUN_ONCE clients.
3616 * NEWS: Mention recent semantic changes.
3617 Reported by Ralf Wildenhues.
3619 2009-02-03 Eric Blake <ebb9@byu.net>
3621 Use AC_DEFUN_ONCE for some one-shot AC_PROG macros.
3622 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Switch to
3623 AC_DEFUN_ONCE, since this is a one-shot macro.
3624 (AC_PROG_INSTALL): Likewise.
3626 2009-02-03 Eric Blake <ebb9@byu.net>
3628 Mention that packagers should not pre-set CFLAGS.
3629 * doc/autoconf.texi (Preset Output Variables) <CFLAGS>: Copy
3630 advice given by automake on handling variables reserved by GNU
3632 Reported by Karl Berry.
3634 Document lib64 in config.site.
3635 * doc/autoconf.texi (Site Defaults): Fix typo in FHS sample file.
3636 Mention use of lib64.
3638 Reported by Tom Browder, with help from Peter Breitenlohner.
3640 2009-01-28 Eric Blake <ebb9@byu.net>
3642 Use AC_DEFUN_ONCE for uncontroversial one-shot macros.
3643 * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Switch to
3644 AC_DEFUN_ONCE, since this is a one-shot macro.
3645 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
3646 * lib/autoconf/general.m4 (AC_CANONICAL_BUILD)
3647 (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Likewise.
3649 2009-01-28 Eric Blake <ebb9@byu.net>
3651 Reduce blank lines in AC_DEFUN_ONCE macros.
3652 * lib/m4sugar/m4sugar.m4 (m4_defun_once): Avoid redundant blank
3653 line when a defun_once macro is required.
3654 (_m4_defun_once): New helper macro, for less memory use.
3655 * tests/m4sugar.at (m4@&t@_require: nested): Adjust test.
3657 Silence another false positive expand-before-require.
3658 * lib/m4sugar/m4sugar.m4 (_m4_defun_pro_outer)
3659 (_m4_defun_epi_outer, _m4_require_call, m4_provide): Track name
3660 that caused a diversion change, not just diversion number.
3661 (m4_require): Factor...
3662 (_m4_require_check): ...into new macro, which also checks whether
3663 diversion that performed the expansion has been collected.
3664 * tests/m4sugar.at (m4@&t@_require: nested): Enhance test.
3665 Reported by Ralf Wildenhues.
3667 2009-01-28 Eric Blake <ebb9@byu.net>
3669 Fix AC_C_RESTRICT for Sun Studio 12 C++.
3670 * lib/autoconf/c.m4 (AC_C_RESTRICT): Newer Sun Studio C provides
3671 __restrict__ rather than _Restrict, which still trips up Sun
3674 Reported by Rolf Vandevaart.
3676 2009-01-28 Eric Blake <ebb9@byu.net>
3678 Fix years in copyright notices.
3679 * lib/m4sugar/m4sugar.m4 (m4_copyright_condense): New macro,
3680 undocumented for now.
3681 * lib/m4sugar/Makefile.am (version.m4): Add m4_PACKAGE_YEAR,
3683 (RELEASE_YEAR): New macro, copied from bin/Makefile.am.
3684 * lib/autoconf/general.m4 (_AC_COPYRIGHT_YEARS): New macro.
3685 (AC_COPYRIGHT): Add undocumented third parameter.
3686 (_AC_INIT_COPYRIGHT): Avoid need to bump copyright years.
3687 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
3688 * lib/autotest/general.m4 (AT_INIT): Likewise.
3689 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Likewise.
3690 (AT_COPYRIGHT): Add undocumented third parameter.
3691 * tests/local.at (AT_COPYRIGHT): Don't add an extra copyright
3692 parameter; the generic copyright given by autotest is sufficient
3693 since we are the package that owns autotest.
3695 2009-01-27 Eric Blake <ebb9@byu.net>
3697 Use URLs in --help output, part 3: testsuite.
3698 * doc/autoconf.texi (Writing Testsuites): Mention autotest
3700 (Writing Testsuites) <AT_INIT>: Mention mandatory macros.
3701 (Making testsuite Scripts): Document AT_PACKAGE_URL.
3702 * tests/Makefile.am (package.m4): Follow our own advice.
3703 * lib/autotest/general.m4 (AT_INIT): Give the user a hint about
3704 package.m4. Enhance --help output.
3705 (_AT_COPYRIGHT_YEARS): New macro, to make copyright bump easier.
3707 Use URLs in --help output, part 2: configure.
3708 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump copyright
3710 (_AC_INIT_PACKAGE): Support optional URL parameter, mapped to
3712 (_AC_INIT_DEFAULTS, _AC_INIT_PREPARE): Substitute it.
3713 (_AC_INIT_HELP): Use it in './configure --help' output.
3714 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise, for
3715 './config.status --help'. Bump copyright date.
3716 * doc/autoconf.texi (Initializing configure) <AC_INIT>: Document
3719 * tests/tools.at (autoheader): Adjust test.
3720 * tests/torture.at (@%:@define header templates)
3721 (Torturing config.status): Likewise.
3723 Use URLs in --help output, part 1: autoconf executables.
3724 * bin/autoconf.as (usage): Make output consistent with recent
3725 change in gnulib version-etc module.
3726 * bin/autoheader.in ($help): Likewise.
3727 * bin/autom4te.in ($help): Likewise.
3728 * bin/autoreconf.in ($help): Likewise.
3729 * bin/autoscan.in ($help): Likewise.
3730 * bin/autoupdate.in ($help): Likewise.
3731 * bin/ifnames.in ($help): Likewise.
3733 2009-01-27 Peter Breitenlohner <peb@mppmu.mpg.de> (tiny change)
3735 Quote traced macros passed from autom4te to M4.
3736 * bin/autom4te (handle_m4): Apply shell_quote to macro names.
3737 * tests/tools.at (autom4te --trace and unusual macro names): New
3741 2009-01-26 Eric Blake <ebb9@byu.net>
3743 Improve AC_DEFUN_ONCE semantics.
3744 * lib/m4sugar/m4sugar.m4 (m4_defun_once): Rewrite to be no-op,
3745 rather than warning, on second use, and make sure first use never
3746 occurs out of order.
3747 * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
3749 * tests/base.at (AC_REQUIRE & AC_DEFUN_ONCE: [Require, expand],
3750 (AC_REQUIRE & AC_DEFUN_ONCE: [Expand, require]): Adjust tests.
3751 * NEWS: Document this.
3752 * doc/autoconf.texi (Macro Definitions) <AC_DEFUN>: Mention
3754 (Prerequisite Macros) <AC_REQUIRE>: Likewise.
3755 (Expanded Before Required): Likewise.
3756 (One-Shot Macros) <AC_DEFUN_ONCE>: Document new semantics.
3757 Reported by Bruno Haible, with suggestion by Paolo Bonzini.
3759 2009-01-24 Eric Blake <ebb9@byu.net>
3761 Fix typos in recent patches.
3762 * lib/m4sugar/m4sugar.m4: Improve m4_defun comments.
3763 * doc/autoconf.texi (Expanded Before Required): Fix typos.
3764 Reported by Ralf Wildenhues.
3766 Revert change to AC_DIR_HEADER.
3767 * lib/autoconf/headers.m4 (AC_DIR_HEADER): Explicitly expanding
3768 AC_HEADER_DIRENT no longer triggers a warning, and helps the user
3769 who decides they don't need the obsolete AC_FUNC_CLOSEDIR_VOID.
3770 Reported by Paolo Bonzini.
3772 2009-01-22 Eric Blake <ebb9@byu.net>
3774 Silence a false positive expand-before-require case.
3775 * lib/m4sugar/m4sugar.m4 (m4_provide): Track the diversion in
3776 which a macro was provided.
3777 (m4_require): Compare diversion numbers, rather than m4_require
3778 nesting, when determining direct requires.
3779 * tests/m4sugar.at (m4@&t@_require: nested): Test it.
3780 Reported by Ralf Wildenhues, affecting Libtool.
3782 2009-01-21 Eric Blake <ebb9@byu.net>
3784 Fix out-of-order expansion with expand-before-require.
3785 * lib/m4sugar/m4sugar.m4 (m4_require): Redundantly expand a
3786 required macro when issuing expand-before-require warning.
3787 * doc/autoconf.texi (Prerequisite Macros): Adjust documentation.
3788 (Expanded Before Required): New node.
3789 * tests/m4sugar.at (m4@&t@_require: nested): Adjust test.
3790 * NEWS: Mention this fix.
3791 Suggested by Bruno Haible.
3793 Warn if macro is provided before indirectly required.
3794 * lib/m4sugar/m4sugar.m4 (m4_provide): Track the set of all macros
3795 provided since last outermost defun.
3796 (_m4_defun_pro_outer): Empty the set.
3797 (_m4_require_call): Distinguish between direct and indirect
3798 requires, and remove required macros from the set.
3799 (m4_require): Check the set, in order to warn.
3800 * tests/m4sugar.at (m4@&t@_require: nested): Remove xfail, and add
3801 test case for direct requires.
3803 2009-01-20 Eric Blake <ebb9@byu.net>
3805 Clean up some bugs caught by preliminary dependency validation.
3806 * lib/autoconf/headers.m4 (AC_DIR_HEADER): Don't invoke
3807 AC_HEADER_DIRENT, since AC_FUNC_CLOSEDIR_VOID requires it.
3808 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
3809 (_AS_SHELL_SANITIZE): Fix quoting bugs.
3811 2009-01-19 Eric Blake <ebb9@byu.net>
3813 Improve AC_REQUIRE documentation.
3814 * doc/autoconf.texi (Macro Definitions) <AC_DEFUN>: Add @defmac,
3815 and mention interaction with AC_REQUIRE.
3816 (Prerequisite Macros) <AC_REQUIRE>: Give more detail on user
3817 ordering constraint bug, and how to fix it.
3818 * tests/m4sugar.at (m4@&t@_require: nested): New test.
3820 Speed up m4_require.
3821 * lib/m4sugar/m4sugar.m4 (_m4_divert_dump): Change semantics to
3822 always be defined, as either empty or a number.
3823 (_m4_defun_pro_outer, _m4_defun_epi_outer): Treat _m4_divert_dump
3824 as a stack, rather than a one-shot macro.
3825 (_m4_require_call): Expect third argument to be pre-expanded.
3826 (m4_divert_require, m4_require): Adjust clients accordingly.
3827 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Likewise.
3829 2009-01-17 Eric Blake <ebb9@byu.net>
3831 Avoid underfull hbox.
3832 * doc/autoconf.texi (Installation Directory Variables): Reword to
3835 2009-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3837 Ignore `set -e'-related failure of NetBSD sh.
3838 * tests/m4sh.at (AS@&t@_EXIT): Skip test if (NetBSD) shell
3839 fails to finish EXIT trap after set -e.
3841 2009-01-06 Eric Blake <ebb9@byu.net>
3843 Maintainer cleanups.
3844 * cfg.mk (web-manual): Use new feature of gendocs.
3845 (fetch): Fetch gendocs.
3846 * Makefile.am (EXTRA_DIST): Distribute new file.
3847 * doc/Makefile.am (EXTRA_DIST): Likewise.
3848 * .gitattributes: Ignore whitespace in upstream files.
3849 * HACKING (Other web updates): Update Free Software Directory
3851 (Upload): No longer mention xdelta.
3852 * maint.mk (xd-delta): Likewise.
3853 * build-aux/gendocs.sh: New upstream file.
3854 * doc/gendocs_template: Likewise.
3855 * build-aux/announce-gen: Resync from upstream.
3856 * build-aux/config.guess: Likewise.
3857 * build-aux/config.sub: Likewise.
3858 * build-aux/gnupload: Likewise.
3859 * build-aux/texinfo.tex: Likewise.
3861 2008-12-30 Eric Blake <ebb9@byu.net>
3863 Make it easier to track diversion bugs.
3864 * lib/m4sugar/m4sugar.m4 (_m4_divert_raw, _m4_undivert): New
3865 internal macros, which are easier to trace than m4_builtin.
3866 (m4_cleardivert, m4_divert, m4_divert_push, m4_divert_pop)
3867 (m4_undivert): Use them.
3868 (_m4_require_call): Likewise. Use fewer macros.
3869 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix typo.
3871 2008-12-26 Bruno Haible <bruno@clisp.org>
3873 Improve multiarch detection.
3874 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Make detection of options
3875 indicating a universal build more reliable.
3877 2008-12-28 William Pursell <bill.pursell@gmail.com> (tiny change)
3879 Use AS_CASE in documented example.
3880 * doc/autoconf.texi (Using the System Type): Use AS_CASE in
3881 example instead of raw case.
3883 2008-12-23 Eric Blake <ebb9@byu.net>
3885 Make m4_dumpdef more useful with M4 1.6.
3886 * lib/m4sugar/m4sugar.m4 (_m4_dumpdef): New macro.
3887 (m4_init): Install it for new enough m4.
3888 * tests/m4sugar.at (m4@&t@_dumpdef): Enhance test.
3889 * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
3892 2008-12-24 Bruno Haible <bruno@clisp.org>
3894 Improve INSTALL for HP-UX.
3895 * doc/install.texi (Particular Systems): For HP-UX, also recommend
3896 -D_XOPEN_SOURCE=500. Needed for the declaration of mbstate_t on
3899 2008-12-22 Bruno Haible <bruno@clisp.org>
3901 Improve INSTALL for Haiku.
3902 * doc/install.texi (Particular Systems): Add a recommendation
3903 which prefix to use on Haiku.
3905 2008-12-19 Eric Blake <ebb9@byu.net>
3907 Fix typo in previous commit.
3908 * doc/autoconf.texi (Set manipulation Macros) <m4_set_map_sep>:
3911 Document some recently added macros.
3912 * lib/m4sugar/m4sugar.m4 (m4_map_args_w): Add optional sep
3914 * doc/autoconf.texi (Looping constructs) <m4_map_args_sep>
3915 <m4_map_args_w, m4_stack_foreach, m4_stack_foreach_sep>: Document
3917 (Set manipulation Macros) <m4_set_map_sep>: Likewise.
3918 * tests/m4sugar.at (m4@&t@_stack, M4 loops): Enhance tests.
3919 * NEWS: Document new macros.
3921 2008-12-18 Eric Blake <ebb9@byu.net>
3923 Fix separator in m4_stack_foreach_sep.
3924 * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): Separate separator
3926 * tests/m4sugar.at (m4@&t@_stack): Enhance test.
3928 2008-12-18 Eric Blake <ebb9@byu.net>
3930 Mention limitation of M4 1.4.x on builtin tokens.
3931 * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Document
3932 ramification of M4 1.4.x's inability to pass builtin tokens
3933 through text macros.
3934 (Evaluation Macros) <m4_curry>: Likewise.
3935 * tests/m4sugar.at (m4@&t@_defn): Enhance test.
3936 * NEWS: Mention subtle change in m4_dumpdef semantics.
3938 Document m4_version_prereq.
3939 * doc/autoconf.texi (Number processing Macros)
3940 <m4_version_prereq>: Add documentation.
3942 Reported by Bruno Haible.
3944 2008-12-10 Jim Meyering <meyering@redhat.com>
3946 AC_HEADER_ASSERT: don't say assertions are disabled when they're not
3947 * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Do not make configure
3948 report "checking whether to enable assertions... no", when they are
3949 in fact enabled. This is solely a bug in the output of configure.
3950 In spite of saying "no", NDEBUG was not defined in that case.
3951 Also, as noted by Eric Blake, leave assertions enabled upon
3952 --enable-assert=INVALID.
3954 2008-12-09 Eric Blake <ebb9@byu.net>
3956 Fix m4_location inside m4_wrap with m4 1.4.5.
3957 * lib/m4sugar/m4sugar.m4 (m4_undefine): Redefine m4_location
3958 inside wrapped text if older m4 is detected.
3959 Reported by William Pursell.
3961 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
3962 and Eric Blake <ebb9@byu.net>
3964 Fix AC_HEADER_ASSERT w.r.t. --enable-assert.
3965 * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Honor --enable-assert,
3966 rather than treating it as a synonym for --disable-assert.
3967 * NEWS: Document the fix.
3969 2008-12-06 William Pursell <bill.pursell@gmail.com> (tiny change)
3971 Fix AC_HEADER_ASSERT to honor --enable-assert, rather than
3972 treat --enable-assert and --disable-assert equivalently.
3973 * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Check value of $enableval.
3975 2008-12-05 William Pursell <bill.pursell@gmail.com> (tiny change)
3977 Fix some typos and grammatical errors in documentation.
3978 * doc/autoconf.texi: Clean up some bad use of English.
3980 2008-12-03 Eric Blake <ebb9@byu.net>
3982 Improve AC_STATE_SAVE.
3983 * tests/local.at (AC_STATE_SAVE): Avoid ls -1, and use one less
3984 process by hoisting the uniqueness check into sed.
3985 * doc/autoconf.texi (Limitations of Usual Tools) <ls>: Mention
3988 2008-12-02 Eric Blake <ebb9@byu.net>
3990 Avoid MacOS readdir bug in testsuite.
3991 * tests/local.at (AC_STATE_SAVE): Avoid spurious failures due to
3992 duplicated ls entries.
3994 Reported by Bruce Dugan and others.
3996 2008-11-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3998 * lib/autotest/general.m4 (AT_JOB_FIFO_FD): Hide zsh 4.3.4
3999 error messages about `set -m'.
4001 2008-11-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4003 Fix a couple of test failures with dash.
4004 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Normalize
4005 exit status of `cd'.
4006 * tests/m4sh.at (AS_MESSAGE_LOG_FD): Remove script before
4007 regeneration, to avoid timing effects.
4009 2008-11-25 Eric Blake <ebb9@byu.net>
4012 * lib/m4sugar/m4sugar.m4 (m4_cleardivert): New macro.
4013 * lib/autotest/general.m4 (AT_INIT): Use it.
4014 * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Likewise.
4015 * tests/m4sugar.at (m4@&t@_divert_stack): Test it.
4016 * doc/autoconf.texi (Diversion support) <m4_cleardivert>: Document
4019 Suggested by Paolo Bonzini.
4021 Add safety check for m4_expand vs. diversions.
4022 * lib/m4sugar/m4sugar.m4 (m4_expand): Make more robust against
4024 * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Document new
4027 2008-11-24 Eric Blake <ebb9@byu.net>
4029 Fix typo in AS_MESSAGE_LOG_FD patch.
4030 * lib/m4sugar/m4sh.m4 (AS_ERROR): Check correct condition.
4032 2008-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4034 More reliable signal handling in Autotest.
4035 * lib/autotest/general.m4 (Driver loop): Rewrite signal handler.
4036 Start parallel jobs in their own process group, enabling job
4037 control in the shell if possible, for better signal handling.
4038 Deal with INT, TERM, and HUP in the testsuite driver. In the
4039 parallel driver, propagate TSTP to jobs either as TSTP or as
4040 STOP (to avoid fork bombs with ksh).
4041 Inside the job processes, add PIPE handler to write back the
4042 job token, so the master process does not hang.
4043 Disable the parallel driver if job control is not provided or if
4044 trap does not understand signal names.
4045 * tests/autotest.at (parallel autotest and signals): New test,
4046 exercises INT, TERM, and PIPE, serial and parallel, with and
4047 without `make' in the loop.
4048 Kudos to Richard Stevens for writing APUE.
4050 2008-11-22 Eric Blake <ebb9@byu.net>
4052 Fix testsuite failure on Solaris.
4053 * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Normalize
4054 failure status to 1.
4056 2008-11-21 Eric Blake <ebb9@byu.net>
4058 Clean up AS_MESSAGE_LOG_FD usage.
4059 * lib/m4sugar/m4sh.m4 (AS_MESSAGE_FD, AS_MESSAGE_LOG_FD)
4060 (AS_ORIGINAL_STDIN_FD): Provide default M4sh values.
4061 (_AS_ECHO_LOG, AS_MESSAGE, _AS_ERROR_PREPARE, AS_ERROR): Simplify
4063 (AS_INIT_GENERATED): Don't shuffle an unchanged AS_MESSAGE_FD.
4064 * tests/m4sh.at (AS@&t@_INIT_GENERATED): Update test.
4065 (AS@&t@_MESSAGE_FD): New test.
4066 * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
4067 Give more details about fd manipulation.
4068 (File Descriptor Macros): Describe M4sh defaults for the fds.
4070 2008-11-21 Eric Blake <ebb9@byu.net>
4072 Use shell function for AS_ERROR.
4073 * lib/m4sugar/m4sh.m4 (_AS_ERROR_PREPARE): New macro, defining a
4076 (_AS_LINENO_PREPARE): Break circular dependency.
4077 (AS_PREPARE, _AS_PREPARE): Initialize for child scripts.
4079 2008-11-21 Eric Blake <ebb9@byu.net>
4081 Fix typos in recent testsuite improvements.
4082 * lib/autotest/general.m4 (AT_INIT) <at_fn_check_prepare_dynamic>:
4084 * NEWS: Clarify the potential impact to users.
4085 * tests/autotest.at (AT_DATA_AUTOTEST): New macro, patterned after
4087 (AT_CHECK_AT_PREP, AT_CHECK_AT_TITLE): Use it.
4088 (unusual file names): Test that the recent echo fix does not
4089 regress. Fix quoting bug that made the test a no-op.
4090 Reported by Paolo Bonzini and Ralf Wildenhues.
4092 2008-11-21 Eric Blake <ebb9@byu.net>
4094 Use modern m4sh constructs in autoconf.
4095 * bin/autoconf.as (exit_missing_arg, getopt): Use AS_ERROR, rather
4098 Change the semantics of AS_EXIT without argument.
4099 * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE): When defaulting, use $?
4101 (AS_ERROR): Guarantee non-zero status.
4102 * bin/autoconf.as (exit_missing_arg, getopt): Revert prior change;
4103 we want non-zero status.
4104 * tests/m4sh.at (AS@&t@_EXIT): Update test accordingly.
4105 * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Update
4107 <AS_SET_STATUS>: Don't overly restrict implementation.
4108 (Printing Messages) <AC_MSG_ERROR>: Describe better default.
4109 Suggestions by Paolo Bonzini and Ralf Wildenhues.
4111 2008-11-21 Eric Blake <ebb9@byu.net>
4113 Add @anchors within Builtins and Usual Tools lists.
4114 * doc/autoconf.texi (Limitations of Builtins)
4115 (Limitatations of Usual Tools): Add anchors for tools called out
4116 by name. Adjust callers to narrow in on tool of interest.
4118 Move case statement style discussion to m4 quoting section.
4119 * doc/autoconf.texi (Limitations of Builtins): Move comparison of
4121 (Balancing Parentheses): ...to this new node.
4122 Suggested by Ralf Wildenhues.
4124 2008-11-20 Eric Blake <ebb9@byu.net>
4126 Factor more common code out of AT_CHECK into shell function.
4127 * lib/autotest/general.m4 (_AT_CHECK): Avoid echo bug if AT_LINE
4128 starts with -. Move preparations...
4129 (AT_INIT) <at_fn_check_prepare_trace>
4130 <at_fn_check_prepare_notrace, at_fn_check_prepare_dynamic>:
4131 ...into these new shell functions.
4132 <at_fn_check_newline>: Inline into only caller.
4133 (_AT_DECIDE_TRACEABLE): Use them to condense testsuite size.
4135 2008-11-20 Eric Blake <ebb9@byu.net>
4137 Handle version numbers as decimal, even if they start with 0.
4138 * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Avoid
4139 interpreting leading zeros as octal.
4141 2008-11-20 Eric Blake <ebb9@byu.net>
4144 * lib/autotest/general.m4 (AT_CHECK, AT_CHECK_UNQUOTED): Expand
4145 third and fourth arguments once.
4146 (_AT_CHECK): Don't re-expand expected output. Rearrange code for
4147 fewer scans of arguments.
4148 (AT_CHECK): Update caller.
4149 (AT_INIT) <at_fn_filter_trace>: Drop parameter.
4150 * tests/m4sugar.at (m4@&t@_split): Protect test with
4153 Fix XFAIL related to AT_CHECK.
4154 * lib/autotest/general.m4 (AT_CHECK, AT_CHECK_UNQUOTED): Expand
4155 first argument once.
4156 (_AT_CHECK): Don't re-expand commands.
4157 * tests/autotest.at (Multiline command from M4 expansion): Remove
4159 * tests/tools.at (autoupdating AU_ALIAS): Quote unbalanced paren.
4160 * NEWS: Document the fallout.
4162 2008-11-20 Eric Blake <ebb9@byu.net>
4164 Reduce forks in AC_DEFINE.
4165 * lib/autoconf/general.m4 (_AC_DEFINE_Q_PRINT): New macro.
4166 (_AC_DEFINE_Q): Use it to avoid forks for all AC_DEFINE and most
4168 * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Properly quote #.
4169 * tests/torture.at (Substitute and define special characters):
4170 (Define to a 2000-byte string): Enhance tests to cover
4172 (@%:@define header templates): Enhance test to cover #.
4174 2008-11-20 Eric Blake <ebb9@byu.net>
4176 Improve m4_expand robustness, part 2.
4177 * lib/m4sugar/m4sugar.m4 (m4_expand): Support unterminated
4178 comments, by wrapping old implementation...
4179 (_m4_expand): ...as this, and renaming old core...
4180 (_m4_expand_): ...to this.
4181 (m4_text_box): Use lighter-weight _m4_expand.
4182 * lib/m4sugar/m4sh.m4 (_AS_DETECT_EXPAND)
4183 (_AS_DETECT_BETTER_SHELL, AS_FUNCTION_DESCRIBE): Likewise.
4184 * lib/autotest/general.m4 (AT_KEYWORDS): Likewise.
4185 * tests/m4sugar.at (m4@&t@_expand): Enhance test.
4186 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Likewise.
4187 * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Mention new
4190 Improve m4_expand robustness, part 1.
4191 * lib/m4sugar/m4sugar.m4 (_m4_expand): Tolerate unquoted
4193 * tests/m4sugar.at (m4@&t@_expand): New test.
4195 2008-11-20 Eric Blake <ebb9@byu.net>
4197 Add m4_chomp, m4_esyscmd_s.
4198 * lib/m4sugar/m4sugar.m4 (m4_esyscmd_e, m4_chomp, m4_chomp_all):
4200 * doc/autoconf.texi (Redefined M4 Macros) <m4_esyscmd_s>: Document
4202 (Text processing Macros) <m4_chomp>: Likewise.
4204 * tests/m4sugar.at (m4@&t@_esyscmd_s): New test.
4207 * lib/m4sugar/m4sugar.m4 (_m4_index): Delete; it is more efficient
4208 to make callers guarantee a match.
4209 (m4_init): Adjust caller.
4210 * lib/autoconf/status.m4 (_AC_CONFIG_COMPUTE_DEST): Likewise.
4211 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Likewise.
4213 Describe different hacks for balancing ')' in case statements.
4214 * doc/autoconf.texi (Limitations of Builtins) <case>: Add an
4215 exposition on various quoting styles.
4217 2008-11-20 Eric Blake <ebb9@byu.net>
4220 * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE): Inline into...
4221 (_AS_QUOTE): ...here, delete unused second paramenter, and factor
4223 (_AS_QUOTE_MODERN, _AS_QUOTE_OLD): ...new helpers.
4225 2008-11-20 Alfred G. de Wijn <dwijn@iluvatar.eu.org> (tiny change)
4227 For consistency, make temporary variable match language name.
4228 * lib/autoconf/fortran.m4 (_AC_PROG_FC_G, _AC_PROG_FC_V_OUTPUT):
4229 Match the save/test variables' names to the FFLAGS/FCFLAGS being
4233 2008-11-19 Eric Blake <ebb9@byu.net>
4235 Improve testsuite generation.
4236 * tests/local.at (AT_DATA_M4SUGAR, AT_DATA_M4SH)
4237 (AT_DATA_AUTOCONF): Escape all quadrigraphs, not just @&t@. Use
4240 2008-11-18 Eric Blake <ebb9@byu.net>
4242 Use fn for shell functions, func for autoconf CHECK_FUNCS.
4243 * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Abbreviate shell
4245 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE)
4246 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE, _AC_RUN_IFELSE)
4247 (AC_CHECK_DECL, AC_COMPUTE_INT): Likewise.
4248 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
4249 (_AC_CHECK_HEADER_COMPILE, _AC_CHECK_HEADER_PREPROC): Likewise.
4250 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, _AC_TYPE_INT)
4251 (_AC_TYPE_UNSIGNED_INT, AC_CHECK_MEMBER): Likewise.
4252 * lib/autotest/general.m4 (AT_INIT): Likewise.
4253 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK, _AS_EXIT_PREPARE)
4254 (AS_EXIT, AS_SET_STATUS, _AS_UNSET_PREPARE, _AS_MKDIR_P)
4255 (_AS_MKDIR_P_PREPARE, _AS_VAR_APPEND_PREPARE, AS_VAR_APPEND)
4256 (_AS_VAR_ARITH_PREPARE, AS_VAR_ARITH): Likewise.
4257 * doc/autoconf.texi (Shell Functions): Likewise.
4259 2008-11-18 Eric Blake <ebb9@byu.net>
4261 Alter default value of AS_EXIT.
4262 * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE): Let as_func_exit
4263 parameter be optional.
4264 (AS_EXIT): Use it to make better default.
4265 (_AS_DETECT_BETTER_SHELL): Use new default.
4266 * bin/autoconf.as (exit_missing_arg, getopt): Likewise.
4267 * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
4268 * tests/m4sh.at (AS@&t@_EXIT): Update test.
4269 * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Mention
4270 new default behavior.
4271 (Limitations of Builtins) <trap>: Adjust to use new default.
4272 * NEWS: Mention the semantic change.
4273 Suggested by Ralf Wildenhues.
4275 Update example to match actual Tru64 behavior.
4276 * doc/autoconf.texi (Limitations of Builtins) <trap>: Correct
4278 Reported by Ralf Wildenhues.
4280 Add AS_SET_STATUS, make AS_EXIT more efficient.
4281 * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE, AS_SET_STATUS): New
4283 (AS_EXIT): Rewrite to avoid forks.
4284 (_AS_SHELL_SANITIZE): Avoid AS_EXIT prior to shell functions.
4285 (AS_PREPARE, _AS_PREPARE): Add new preparation.
4286 * doc/autoconf.texi (Common Shell Constructs) <AS_SET_STATUS>:
4288 * NEWS: Mention new macro.
4289 * tests/m4sh.at (AS@&t@_EXIT): New test.
4290 (BASENAME_TEST): Sort.
4292 Document Tru64 bug with 'set -e'.
4293 * doc/autoconf.texi (Limitations of Builtins) <trap>: Mention a
4294 bug in mixing 'set -e' with 'trap .. 0'.
4295 Reported by Ralf Wildenhues.
4297 Document a Solaris /bin/sh bug with 'set -e'.
4298 * doc/autoconf.texi (Shell Functions): Mention the bug.
4300 2008-11-17 Eric Blake <ebb9@byu.net>
4302 Detect empty list in AS_FOR.
4303 * lib/m4sugar/m4sh.m4 (AS_FOR): Handle iteration over $@
4305 * tests/m4sh.at (AS@&t@_FOR): Enhance test to catch it.
4306 Reported by Paolo Bonzini.
4308 2008-11-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4310 Use a different workaround for an automake quirk.
4311 * tests/Makefile.am (AUTOMAKE_OPTIONS): Remove.
4312 (distclean_generic): New helper variable, to fool automake.
4313 ($(distclean_generic)): Depend on clean-local, to prevent
4314 the race in the two rules with accessing and removing
4316 Report by Eric Blake.
4318 * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Simplify, avoid
4319 unbalanced parentheses from last change.
4320 Spotted by Eric Blake, fix suggested by Paolo Bonzini.
4322 Fix exit status of expr version of as_func_arith.
4323 * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Count an exit
4324 status of 1 of expr also as success, to avoid failure if the
4325 computation result is zero. Fixes test failures with IRIX sh,
4326 where the expr variant of as_func_arith is used.
4328 Do not use read-only variable $status.
4329 * tests/compile.at (AC_RUN_IFELSE): Use $estatus instead of
4332 2008-11-15 Eric Blake <ebb9@byu.net>
4334 Use the new AS_FOR function.
4335 * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Use new
4336 abstraction for cleaner code.
4337 * lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
4339 Add AS_FOR, undocumented for now.
4340 * lib/m4sugar/m4sh.m4 (AS_FOR): New macro.
4341 * tests/m4sh.at (AS@&t@_FOR): New test.
4342 Suggested by Paolo Bonzini.
4344 2008-11-13 Eric Blake <ebb9@byu.net>
4346 Optimize single-argument loop.
4347 * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid forks when
4348 loop only has one argument.
4349 * lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
4351 2008-11-13 Eric Blake <ebb9@byu.net>
4353 Fix AS_ESCAPE usage bugs.
4354 * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
4355 (_AS_VAR_ARITH_PREPARE): Expand macros prior to adding shell
4357 (AS_TR_SH, AS_VAR_GET): Use _AS_ESCAPE for speed.
4358 * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_SET>: Document
4359 caveat due to conditional AS_ESCAPE.
4360 * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
4362 2008-11-12 Eric Blake <ebb9@byu.net>
4364 Whitespace reduction in configure.
4365 * lib/autoconf/autoheader.m4 (AH_VERBATIM): Avoid empty lines.
4366 * lib/autoconf/general.m4 (_AC_INIT_PREPARE, AC_CHECK_FILES):
4368 (_AC_DEFINE_Q): Restore empty line, since some clients in the wild
4371 2008-11-12 Eric Blake <ebb9@byu.net>
4373 Make M4sh, not autoconf, guarantee sane $SHELL.
4374 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Move setting of
4376 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): ...to here.
4377 * doc/autoconf.texi (Initialization Macros): Document the effect
4379 * tests/m4sh.at (AS@&t@_INIT_GENERATED): New test.
4380 Reported by Ralf Wildenhues.
4382 2008-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4384 Wrap keywords in `testsuite --list' output.
4385 * lib/autotest/general.m4 (AT_INIT): Rewrite --list awk script,
4386 avoid lint warnings from gawk, wrap keyword lists to stay below
4387 80 characters per line if possible.
4388 * tests/autotest.at (Keyword wrapping): New test.
4390 * tests/local.at (AT_COPYRIGHT): Bump copyright years.
4392 * doc/autoconf.texi (Conditional constructs, Macro Names): Fix
4395 2008-11-10 Eric Blake <ebb9@byu.net>
4397 Work around <=m4-1.4.9 bug in m4_format.
4398 * lib/m4sugar/m4sugar.m4 (_m4_index): New internal macro.
4399 (m4_init): Only use it in older m4.
4400 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Use it to avoid
4401 m4_format bug in older m4.
4402 * lib/autoconf/status.m4 (_AC_CONFIG_COMPUTE_DEST): Likewise.
4403 Reported by Bob Proulx.
4405 2008-11-10 Eric Blake <ebb9@byu.net>
4407 Match upstream standards.texi.
4408 * doc/standards.texi: Resync from upstream.
4409 * doc/fdl-1.3.texi: Rename...
4410 * doc/fdl.texi: ...to this.
4411 * doc/Makefile.am (autoconf_TEXINFOS, standards_TEXINFOS): Update
4413 * doc/autoconf.texi (GNU Free Documentation License): Likewise.
4414 * cfg.mk (fetch): Likewise.
4416 Yet more FDL 1.3 fallout.
4417 * NEWS: Mention manual license change.
4419 2008-11-10 Eric Blake <ebb9@byu.net>
4421 Avoid some regex uses.
4422 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Use m4_format rather
4423 than m4_bpatsubst to grab string prefix.
4424 * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER)
4425 (_AC_CONFIG_REGISTER_DEST, AC_CONFIG_SUBDIRS): Likewise.
4426 (_AC_FILE_DEPENDENCY_TRACE_COLON): Use m4_translit instead of
4427 m4_bpatsubst to change bytes.
4428 (_AC_CONFIG_DEPENDENCY_DEFAULT): Use m4_index rather than
4429 m4_bmatch to find byte.
4430 (_AC_CONFIG_COMPUTE_DEST): New helper macro.
4432 Use more efficient macros in AC_CONFIG_SUBDIRS.
4433 * lib/autoconf/status.m4 (_AC_CONFIG_FOOS, AC_CONFIG_SUBDIRS): Use
4435 (_AC_OUTPUT_FILE): Use m4_map_args_sep and m4_map_args.
4436 (_AC_OUTPUT_FILE_ADJUST_DIR): New helper macro.
4438 Use more efficient macros in AC_CHECK_FILES and AC_CHECK_DECLS.
4439 * lib/autoconf/general.m4 (AC_CHECK_FILES): Use m4_map_args_w,
4441 (AC_CHECK_DECLS, AC_CHECK_DECLS_ONCE): Use m4_map_args_sep.
4442 (_AC_CHECK_FILES, _AC_CHECK_DECLS, _AC_CHECK_DECL_ONCE): New
4444 (AC_LIBSOURCES): Use m4_map_args.
4446 Use more efficient macros in AC_CHECK_TYPES.
4447 * lib/autoconf/types.m4 (AC_CHECK_TYPES, AC_CHECK_MEMBERS): Use
4449 (_AC_CHECK_TYPES, _AC_CHECK_MEMBERS): New helper macros.
4451 Use more efficient macros in AC_CHECK_HEADERS.
4452 * lib/autoconf/headers.m4 (AH_CHECK_HEADERS)
4453 (AH_CHECK_HEADERS_DIRENT): Rename...
4454 (_AH_CHECK_HEADER, _AH_CHECK_HEADER_DIRENT): ...and take only one
4455 argument, rather than a list.
4456 (AC_CHECK_HEADERS, AC_CHECK_HEADERS_ONCE):
4457 Adjust callers to use m4_map_args_w.
4458 (AC_HEADER_DIRENT): Adjust caller to use m4_map_args.
4459 (_AC_CHECK_HEADER_ONCE): New helper macro.
4461 Use more efficient macros in AC_CHECK_FUNCS.
4462 * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): Rename...
4463 (_AH_CHECK_FUNC): ...and take only one argument, rather than a
4465 (AC_CHECK_FUNCS, AC_CHECK_FUNCS_ONCE): Adjust callers to use
4467 (_AC_CHECK_FUNC_ONCE): New helper macro.
4468 (AC_REPLACE_FUNCS): Use m4_map_args_w.
4470 Use more efficient macro in AT_INIT.
4471 * lib/autotest/general.m4 (AT_INIT): Use m4_map_args.
4473 2008-11-10 Eric Blake <ebb9@byu.net>
4475 More FDL 1.3 fallout.
4476 * cfg.mk (fetch): Add gnu-oids.texi, drop fdl.texi.
4477 * doc/Makefile.am (standards_TEXINFOS): Reflect upstream
4479 * doc/fdl.texi: Delete.
4480 * doc/gnu-oids.texi: New upstream file.
4481 * doc/standards.texi: Resync from upstream.
4482 * doc/make-stds.texi: Likewise.
4483 * build-aux/announce-gen: Likewise.
4484 * build-aux/texinfo.tex: Likewise.
4486 2008-11-10 Clinton Roy <clinton.roy@gmail.com> (tiny change)
4488 Pass autoreconf -I to aclocal -I
4489 * bin/autoreconf.in (parse_args): Pass --include to aclocal.
4490 * doc/autoconf.texi (autoreconf Invocation): Updates for above.
4491 * NEWS: Document it.
4494 2008-11-10 Eric Blake <ebb9@byu.net>
4496 Try 'print -r --' as a non-forking variant of 'printf %s\\n'.
4497 * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Cater to Solaris ksh.
4498 * doc/autoconf.texi (Limitations of Builtins) <printf>: Document
4499 the print workaround.
4500 Idea by Paolo Bonzini.
4502 2008-11-10 Eric Blake <ebb9@byu.net>
4504 Provide a section on all tools allowed in GNU Coding Standards.
4505 * doc/autoconf.texi (Limitations of Builtins) <read>: Sort.
4506 <wait>: Add section.
4507 (Limitations of Usual Tools) <awk>: Make table entry consistent.
4508 <chgrp, mkfifo, rmdir, sleep, sort, tar> Add sections.
4510 2008-11-09 Paolo Bonzini <bonzini@gnu.org>
4512 Balance parentheses in _AC_CACHE_DUMP.
4513 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Balance parentheses
4514 without introducing \).
4516 2008-11-07 Eric Blake <ebb9@byu.net>
4518 Further doc updates for AC_CHECK_HEADER change.
4519 * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
4520 new default, and make it more obvious that using [-] is generally
4523 2008-11-07 Eric Blake <ebb9@byu.net>
4525 * ChangeLog: Enforce UTF-8 encoding.
4527 2008-11-06 Eric Blake <ebb9@byu.net>
4529 Skip preprocessor check in AC_CHECK_HEADERS_ONCE.
4530 * lib/autoconf/headers.m4 (_AC_HEADERS_EXPANSION): Provide fourth
4531 argument to speed up check.
4533 2008-11-06 Eric Blake <ebb9@byu.net>
4535 Speed up AC_CHECK_TYPE.
4536 * lib/autoconf/types.m4 (AC_CHECK_TYPE): Factor out $@, and avoid
4537 regex when enough arguments are present.
4539 2008-11-06 Paolo Bonzini <bonzini@gnu.org>
4541 Remove three forks per _AC_RUN_LOG_STDERR in the common case.
4542 * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR): Avoid grep/rm/cat
4543 sequence when the program's stderr was empty, while providing a
4544 conftest.err file even in that case.
4545 (_AC_CACHE_DUMP): Fix mismatched parenthesis.
4547 2008-11-06 Paolo Bonzini <bonzini@gnu.org>
4549 Change `present but cannot be compiled' behavior to use compiler result.
4550 * NEWS: Document it.
4551 * doc/autoconf.texi (Present But Cannot Be Compiled): Document it.
4552 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Implement it
4554 * tests/semantics.at (AC_CHECK_HEADERS): Test new semantics.
4556 2008-11-05 Eric Blake <ebb9@byu.net>
4559 * lib/m4sugar/m4sugar.m4 (m4_map_args_w): New macro, undocumented
4561 (_m4_split): Allow user control over separator.
4562 (m4_split): Adjust caller.
4563 (m4_foreach_w, m4_append_uniq_w, _m4_text_wrap): Rewrite to use
4565 * tests/m4sugar.at (m4@&t@_append): Augment test keywords.
4566 (M4 loops): Test new interface.
4568 Use m4_set_map_sep in more places.
4569 * lib/m4sugar/m4sugar.m4 (m4_set_difference, m4_set_intersection)
4570 (m4_set_union): Use m4_set_map_sep rather than m4_set_foreach.
4571 * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
4572 Enhance documentation.
4573 <m4_set_foreach>: Mention faster alternative.
4574 (Looping constructs) <m4_foreach>: Likewise.
4576 Unify m4_set_foreach and m4_set_map.
4577 * lib/m4sugar/m4sugar.m4 (m4_set_map_sep): New macro, undocumented
4579 (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
4580 (m4_set_map): Adjust callers.
4582 Use _m4_foreach in more places.
4583 * lib/m4sugar/foreach.m4 (m4_dquote_elt, m4_join, m4_joinall)
4584 (_m4_minmax, m4_set_add_all): Use _m4_foreach instead of
4586 * lib/m4sugar/m4sugar.m4 (_m4_joinall): Use m4_map_args_sep
4587 instead of m4_foreach or m4_map_args.
4589 Unify _m4_foreach and _m4_map.
4590 * lib/m4sugar/m4sugar.m4 (_m4_map): Delete, merged with...
4591 (_m4_foreach): ...this.
4592 (m4_foreach, m4_map, m4_mapall, m4_map_sep, _m4_mapall_sep)
4593 (m4_map_args, m4_map_args_sep): Adjust callers.
4594 * lib/m4sugar/foreach.m4 (_m4_map): Rename...
4595 (_m4_foreach): ...to this, overwriting old definition.
4597 2008-11-04 Eric Blake <ebb9@byu.net>
4599 Add m4_map_args_sep, undocumented for now.
4600 * lib/m4sugar/m4sugar.m4 (m4_map_args_sep): New macro.
4601 (_m4_map): Change API to cover more of m4_map*.
4602 * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new API.
4603 (m4_map_args): Delete.
4604 * tests/m4sugar.at (m4@&t@_map_args and m4@&t@_curry): Enhance
4607 Improve m4_for performance.
4608 * lib/m4sugar/m4sugar.m4 (_m4_for): Alter API to make it easier to
4609 avoid m4_define by some clients.
4610 (m4_for): Adjust caller.
4611 * lib/m4sugar/foreach.m4 (_m4_foreach, m4_case, m4_bmatch)
4612 (_m4_cond, _m4_bpatsubsts, _m4_shiftn, m4_do, m4_reverse)
4613 (_m4_map, m4_map_args, m4_map_args_pair, _m4_list_pad)
4614 (_m4_list_cmp): Likewise.
4616 2008-11-04 Eric Blake <ebb9@byu.net>
4618 Adjust expected output.
4619 * tests/torture.at (Missing templates): Reflect added quoting.
4620 Detected by Bob Proulx's buildbot.
4622 Reject arguments with leading =.
4623 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Detect case of
4624 missing variable name, with fewer forks. Quote invalid arguments
4625 in message, in case they include spaces.
4626 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS)
4627 (_AC_OUTPUT_MAIN_LOOP): Quote invalid arguments.
4628 * lib/autotest/general.m4 (AT_INIT): Likewise.
4629 * tests/base.at (configure arguments): Test this.
4630 Reported by Jeff Squyres.
4632 2008-11-04 Eric Blake <ebb9@byu.net>
4635 * cfg.mk (fetch): Add fdl-1.3.texi.
4636 * .gitattributes: Likewise.
4637 * doc/autoconf.texi (GNU Free Documentation License): Point to new
4639 * doc/Makefile.am (autoconf_TEXINFOS): Likewise.
4640 (standards_TEXINFOS): Mention current dependence on older license.
4641 * doc/fdl-1.3.texi: New upstream file.
4642 * GNUmakefile: Resync from upstream.
4643 * build-aux/announce-gen: Likewise.
4644 * build-aux/texinfo.tex: Likewise.
4646 2008-11-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4648 Point at AM_SUBST_NOTMAKE.
4649 * doc/autoconf.texi (Setting Output Variables): Add cross
4650 reference to new Automake macro AM_SUBST_NOTMAKE.
4652 2008-11-03 Paolo Bonzini <bonzini@gnu.org>
4654 Eliminate a fork per invocation of AC_LANG_CONFTEST.
4655 * lib/autoconf/c.m4 (AC_LANG_CONFTEST(C)): Define instead of
4657 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Add a comment at the
4658 top of confdefs.h, which also works around cpp deficiencies.
4659 * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Define AC_LANG_CONFTEST(xyz)
4660 (AC_LANG_CONFTEST): Dispatch based on _AC_LANG.
4661 (AC_LANG_CONFTEST()): New.
4663 2008-11-03 Paolo Bonzini <bonzini@gnu.org>
4665 Reorganize definition of languages.
4666 * lib/autoconf/c.m4 (AC_LANG(C), AC_LANG(C++), AC_LANG(Objective C),
4667 _AC_LANG_ABBREV(C), _AC_LANG_ABBREV(C++), _AC_LANG_ABBREV(Objective C),
4668 _AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++), _AC_LANG_PREFIX(Objective C)):
4669 Replace definitions with usage of AC_LANG_DEFINE.
4670 (Sections 2b, 2c): Delete.
4671 (Sections 1b, 1c): Move after section 2a.
4672 * lib/autoconf/erlang.m4 (AC_LANG(Erlang), _AC_LANG_ABBREV(Erlang),
4673 _AC_LANG_PREFIX(Erlang), AC_LANG_SOURCE(Erlang)): Replace definitions
4674 with usage of AC_LANG_DEFINE.
4675 (AC_LANG_ERLANG): Define using AU_DEFUN.
4676 * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_LANG(Fortran 77),
4677 _AC_LANG_ABBREV(Fortran), _AC_LANG_ABBREV(Fortran 77),
4678 _AC_LANG_PREFIX(Fortran), _AC_LANG_PREFIX(Fortran 77),
4679 _AC_LANG_SOURCE(Fortran), AC_LANG_SOURCE(Fortran 77)): Replace
4680 definitions with usage of AC_LANG_DEFINE.
4681 * lib/autoconf/lang.m4 (AC_LANG_DEFINE, AC_LANG_SOURCE()): New.
4683 2008-11-03 Paolo Bonzini <bonzini@gnu.org>
4685 Use preprocessor in cpp tests.
4686 * tests/c.at (CPP tests): Use AC_CHECK_HEADERS(..., [-]).
4688 2008-10-31 Paolo Bonzini <bonzini@gnu.org>
4690 Rename _AC_CHECK_HEADER_OLD and _AC_CHECK_HEADER_NEW.
4691 * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Adjust naming.
4692 (_AC_CHECK_HEADER_PREPROC_BODY): New name of _AC_CHECK_HEADER_OLD_BODY.
4693 (_AC_CHECK_HEADER_COMPILE_BODY): New name of _AC_CHECK_HEADER_NEW_BODY.
4694 (_AC_CHECK_HEADER_PREPROC): New name of _AC_CHECK_HEADER_OLD.
4695 (_AC_CHECK_HEADER_COMPILE): New name of _AC_CHECK_HEADER_NEW.
4696 * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADER_NEW):
4699 2008-10-31 Eric Blake <ebb9@byu.net>
4701 Support multiple undiverts and dumpdefs at once.
4702 * lib/m4sugar/m4sugar.m4 (m4_dumpdefs, m4_undivert): Allow extra
4704 * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>,
4705 <m4_undivert>: Document argument list change.
4706 * tests/m4sugar.at (m4@&t@_divert_stack, m4@&t@_dumpdef): Test
4709 Simplify diversion stack handling.
4710 * lib/m4sugar/m4sugar.m4 (m4_divert_stack): Use fewer macros, and
4711 avoid extra newlines.
4712 (m4_divert_stack_push): Compute location here, rather than caller.
4713 (m4_divert_push): Update caller.
4714 (m4_divert): Likewise, and also adjust current diversion name.
4715 (m4_divert_pop): Simplify rule that diversion stack must never go
4717 (_m4_require_call): Bypass diversion stack when collecting
4718 required macro text.
4719 (m4_init): Set current diversion without requiring m4_init.
4720 * lib/m4sugar/m4sh.m4 (AS_INIT): Avoid too many pops.
4721 * lib/autotest/general.m4 (AT_INIT): Likewise.
4722 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Schedule wrapped
4723 text to run prior to m4sugar cleanup.
4724 * doc/autoconf.texi (Text processing Macros) <m4_newline>: Mention
4726 (Conditional constructs) <m4_ifvaln, m4_n>: Mention use of dnl.
4727 * NEWS: Undo blurb about m4_divert.
4728 * tests/m4sugar.at (m4@&t@_divert_stack): New test.
4730 Simplify expansion stack handling.
4731 * lib/m4sugar/m4sugar.m4 (m4_expansion_stack): Use fewer macros;
4732 always output 'top level'.
4733 (_m4_expansion_stack_entry): New macro, to format the string only
4735 (m4_expansion_stack_push): Only push a macro name.
4736 (m4_warn, _m4_defun_pro): Update callers.
4737 (m4_expansion_stack_pop, m4_expansion_stack_dump): Delete.
4738 (_m4_defun_epi, m4_fatal): Inline the calls.
4739 * tests/m4sugar.at (m4@&t@_expansion_stack): New test.
4741 2008-10-30 Eric Blake <ebb9@byu.net>
4743 Better documentation of AC_CHECK_HEADER's fourth argument.
4744 * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
4745 how to suppress compiler or preprocessor header check.
4746 Reported by Jeff Squyres.
4748 2008-10-30 Eric Blake <ebb9@byu.net>
4750 Fix LINENO testsuite failure.
4751 * tests/m4sh.at (AT_DATA_LINENO): Use AS_LINENO_PREPARE, not
4752 undocumented _AS_PREPARE, and move unset earlier in script.
4754 Update LINENO documentation.
4755 * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
4756 (Special Shell Variables) <LINENO>: Mention that LINENO support in
4757 child scripts may be broken. Modernize example.
4759 2008-10-30 Paolo Bonzini <bonzini@gnu.org>
4761 Do not check for $LINENO in generated scripts.
4762 * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Do not call _AS_LINENO_PREPARE,
4765 2008-10-30 Eric Blake <ebb9@byu.net>
4767 Don't check for non-POSIX extensions in suggested tests.
4768 * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_WORKS): Remove suggestion;
4769 we still use += if available, but should not reject shells (like
4770 dash) that don't provide it.
4771 (_AS_DETECT_SUGGESTED): Document a policy for m4sh.
4772 Reported by Paolo Bonzini.
4774 2008-10-30 Paolo Bonzini <bonzini@gnu.org>
4776 Pass CONFIG_SHELL down to generated scripts, and re-export SHELL.
4777 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): If proceeding
4778 with a given CONFIG_SHELL, move it to SHELL.
4779 (AS_INIT_GENERATED): Re-export SHELL.
4781 2008-10-30 Eric Blake <ebb9@byu.net>
4783 Work around Solaris /bin/sh case bug.
4784 * lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT): Always provide
4785 a non-empty command list.
4786 (AS_CASE): Always guarantee that a case will match.
4787 * doc/autoconf.texi (Limitations of Builtins) <case>: Document the
4788 Solaris bug, and mention AS_CASE.
4790 2008-10-30 Paolo Bonzini <bonzini@gnu.org>
4792 Require _AS_CR_PREPARE where appropriate.
4793 * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Call _AS_CR_PREPARE.
4794 (AS_PREPARE): Require _AS_CR_PREPARE.
4796 Avoid walking the entire PATH when looking for a better shell.
4797 * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Test shell characteristics
4798 as the PATH is walked.
4800 Add third argument to _AS_PATH_WALK
4801 * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Do not call _AS_CR_PREPARE.
4802 (_AS_PATH_WALK): Add third optional argument.
4804 Trim down the length of the shell function test.
4805 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Condense.
4807 2008-10-29 Eric Blake <ebb9@byu.net>
4809 Fix LINENO detection to work around bash and pdksh limitations.
4810 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Enhance the test, so
4811 that we can choose which of two tests to trust.
4812 (_AS_RUN): Set flag when alternate shell is running.
4813 (_AS_DETECT_EXPAND): New macro.
4814 (_AS_DETECT_BETTER_SHELL): Use it to massage LINENO tests.
4816 2008-10-29 Eric Blake <ebb9@byu.net>
4818 Mention proper fix for zsh users.
4819 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Recommend zsh
4820 version known to work.
4821 Suggested by Paolo Bonzini.
4823 Document current beta-quality status.
4824 * configure.ac: Reflect fact that change to git-version-gen
4825 produces -, but not always a letter, on non-release builds.
4826 * BUGS: Mention known issues.
4827 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Ask for help in
4828 debugging platforms with deficient shells.
4830 2008-10-29 Eric Blake <ebb9@byu.net>
4832 Alter signature of AS_INIT_GENERATED.
4833 * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): Add parameters, and
4834 manage here-doc and chmod in place. This also allows future
4835 changes for optimizing the child via diversion/m4_wrap magic.
4836 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
4838 * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
4839 Update the documentation.
4841 2008-10-29 Eric Blake <ebb9@byu.net>
4843 Use _m4_stack_reverse in m4_set.
4844 * lib/m4sugar/m4sugar.m4 (_m4_set_contents_1)
4845 (_m4_set_contents_2): Rewrite to share _m4_stack_reverse
4847 (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
4848 (m4_set_map): Adjust callers to new API.
4850 Add m4_stack_foreach_sep.
4851 * lib/m4sugar/m4sugar.m4 (m4_stack_foreach_sep)
4852 (m4_stack_foreach_sep_lifo): New macros.
4853 (_m4_stack_reverse): Adjust prototype, to support it.
4854 (m4_copy): Use fewer macros.
4855 * tests/m4sugar.at (m4@&t@_stack_foreach): Rename...
4856 (m4@&t@_stack): ...and add m4_stack_foreach_sep tests.
4858 2008-10-29 Bruno Haible <bruno@clisp.org>
4860 Mention Sun WorkShop 6.2 OpenMP bug.
4861 * doc/autoconf.texi (AC_OPENMP): Document portability pitfall.
4863 2008-10-29 Paolo Bonzini <bonzini@gnu.org>
4865 Rewrite handling of diversion and expansion stack.
4866 * NEWS: Document stricter requirement on m4_init.
4867 * lib/m4sugar/m4sugar.m4 (m4_divert_stack): New, replacing
4869 (_m4_divert_stack_push): New.
4870 (m4_divert): Use _m4_divert_stack_push and replace m4_define with
4872 (m4_divert_push): Use _m4_divert_stack_push.
4873 (m4_divert_pop): Use m4_divert_stack instead of _m4_divert_n_stack,
4874 pop _m4_divert_stack instead of m4_divert_stack.
4875 (m4_expansion_stack): New. Update comment above it.
4876 (m4_expansion_stack_push, m4_expansion_stack_pop): Work on
4877 _m4_expansion_stack instead of m4_expansion_stack.
4878 (m4_expansion_stack_dump): Check presence of _m4_expansion_stack
4879 instead of m4_expansion_stack. Use m4_expansion_stack's expansion
4880 instead of the definition, and compensate for the trailing newline
4882 (m4_warn, _m4_defun_pro, _m4_defun_epi): Check presence of
4883 _m4_expansion_stack instead of m4_expansion_stack.
4884 (m4_newline): Expand first argument after the newline.
4885 (m4_init): Use m4_divert_stack instead of _m4_divert_n_stack,
4886 * tests/m4sugar.at (m4_append, m4_text_wrap): Invoke m4_init.
4887 * tests/tools.at (whitespace in file names, the empty token): Likewise.
4889 2008-10-28 Eric Blake <ebb9@byu.net>
4891 Reduce forks while searching for better shell.
4892 * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED)
4893 (_AS_DETECT_SUGGESTED): No need to provide extra subshell; _AS_RUN
4894 already does the job.
4895 (_AS_DETECT_BETTER_SHELL): Simplify AS_EXIT when not run in a trap
4898 Undo needless efforts to protect $2 in $2_t.
4899 * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY)
4900 (_AC_TYPE_UNSIGNED_INT_BODY): Reduce extra quoting.
4902 2008-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4904 Fix parallel test execution output lossage.
4905 * lib/autotest/general.m4 (_AT_CHECK): Truncate files to hold
4906 standard output and standard error before the test, use append
4909 Caught by Bob Proulx' build daemons, analysis and suggested fix
4910 by Stéphane Chazelas.
4912 2008-10-28 Eric Blake <ebb9@byu.net>
4914 Use m4_map_args in more places.
4915 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_dumpdef, m4_popdef)
4916 (m4_undefine, m4_combine): Use m4_map_args, rather than
4919 2008-10-28 Eric Blake <ebb9@byu.net>
4921 Override m4 1.4.x dumpdef, as it breaks autom4te.
4922 * lib/m4sugar/m4sugar.m4 (m4_dumpdef): New implementation.
4923 (m4_copy): Formatting touchup.
4924 * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
4925 semantic differences as well as m4_dumpdefs.
4927 * tests/m4sugar.at (m4@&t@_dumpdef): New test.
4929 2008-10-28 Eric Blake <ebb9@byu.net>
4931 Allow m4sugar to be used without autom4te, such as in bison.
4932 * lib/m4sugar/m4sugar.m4 (m4_text_wrap, m4_qlen): Document that
4933 alternate escape sequences can be used.
4934 (m4_text_box): Likewise. Don't output quadrigraphs.
4935 (m4_qdelta): Delete unused macro.
4937 2008-10-28 Paolo Bonzini <bonzini@gnu.org>
4939 Add m4_stack_foreach and m4_stack_foreach_lifo.
4940 * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): New from _m4_copy.
4941 (m4_stack_foreach, m4_stack_foreach_lifo): New.
4942 (m4_copy): Use m4_stack_foreach and m4_curry.
4943 (_m4_dumpdefs_down, _m4_dumpdefs_up): Remove.
4944 (m4_dumpdefs): Rewrite using m4_stack_foreach_lifo.
4945 * tests/m4sugar.at (m4_stack_foreach): New test.
4947 2008-10-28 Paolo Bonzini <bonzini@gnu.org>
4949 use a shell function for AC_TYPE_INTx_T
4950 * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY, _AC_TYPE_UNSIGNED_INT_BODY):
4952 (_AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT): Define and use a shell function.
4954 2008-10-28 Paolo Bonzini <bonzini@gnu.org>
4956 * lib/autoconf/general.m4 (AC_CHECK_DECL): Fix AS_ESCAPE usage.
4957 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL,
4958 _AC_CHECK_HEADER_NEW): Likewise.
4959 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
4961 2008-10-28 Paolo Bonzini <bonzini@gnu.org>
4963 * lib/autoconf/types.m4 (_AC_CHECK_MEMBER_BODY): New.
4964 (AC_CHECK_MEMBER): Define and use a shell function.
4966 2008-10-27 Eric Blake <ebb9@byu.net>
4968 Prefer m4_fatal over AC_FATAL.
4969 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF)
4970 (AC_CHECK_MEMBER): Use non-obsolete macro name.
4971 * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF): Likewise.
4972 * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE, AC_SUBST):
4974 * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
4975 * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCY_DEFAULT)
4976 (_AC_CONFIG_UNIQUE, _AC_CONFIG_REGISTER_DEST): Likewise.
4978 2008-10-27 Eric Blake <ebb9@byu.net>
4980 Avoid raw carriage return in scripts.
4981 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Generate CR
4982 via tr, rather than with literal byte.
4984 Reported by Steven R. Loomis; patch suggested by Thomas Dickey.
4986 2008-10-27 Eric Blake <ebb9@byu.net>
4989 * lib/autotest/general.m4 (at_func_arith): Delete; replace all
4990 clients with AS_VAR_ARITH instead.
4991 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE): Use new
4993 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Likewise.
4994 * tests/torture.at (Torturing config.status): Likewise.
4995 * tests/tools.at (autom4te --force): Likewise.
4998 * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE, _AS_VAR_ARITH_WORKS)
4999 (AS_VAR_ARITH): New macros.
5000 (_AS_PREPARE, AS_PREPARE): Emit preparation.
5001 * tests/m4sh.at (AS@&t@_VAR_ARITH): New test.
5002 * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_ARITH>:
5004 (Limitations of Usual Tools) <expr>: Mention portability problem
5005 if first argument starts with -.
5006 (Shell Substitutions) <$((expression))>: Mention it.
5009 2008-10-27 Eric Blake <ebb9@byu.net>
5011 Use read, rather than `cat`, for safe one-line files.
5012 * lib/autotest/general.m4 (AT_CLEANUP): Avoid a fork, since it is
5013 known that the file has only one line and no \.
5014 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_RUN): Likewise.
5016 2008-10-27 Paolo Bonzini <bonzini@gnu.org>
5018 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE,
5019 _AC_COMPUTE_INT_RUN): Add IF-SUCCESS argument.
5020 (_AC_COMPUTE_INT_BODY): New.
5021 (AC_COMPUTE_INT): Define and use a shell function.
5023 2008-10-27 Paolo Bonzini <bonzini@gnu.org>
5025 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW_BODY): Extract
5026 test body here. Move head comment of _AC_CHECK_TYPE_NEW here.
5027 (_AC_CHECK_TYPE_NEW): Define a shell function and call it.
5029 2008-10-27 Paolo Bonzini <bonzini@gnu.org>
5031 * lib/autoconf/general.m4 (_AC_CHECK_DECL_BODY): New.
5032 (AC_CHECK_DECL): Use a shell function.
5034 2008-10-27 Paolo Bonzini <bonzini@gnu.org>
5036 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_OLD,
5037 _AC_CHECK_HEADER_NEW): Use a shell function.
5039 2008-10-25 Eric Blake <ebb9@byu.net>
5041 Track recent copyright assignments.
5044 2008-10-25 Paolo Bonzini <bonzini@gnu.org>
5045 and Eric Blake <ebb9@byu.net>
5047 Use a shell function for _AC_CHECK_HEADER_MONGREL.
5048 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL_BODY): New
5050 (_AC_CHECK_HEADER_MONGREL): Use a shell function.
5052 2008-10-25 Eric Blake <ebb9@byu.net>
5054 Simplify _AS_PREPARE handling of functions.
5055 * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Factor...
5056 (_AS_REQUIRE_SHELL_FN): ...into new helper macro.
5057 (_AS_PREPARE): Temporarily redefine AS_REQUIRE_SHELL_FN to make
5059 (_AS_LINENO_PREPARE): Make more efficient.
5060 (_AS_MKDIR_P_PREPARE): Simplify use in _AS_PREPARE.
5061 (_AS_UNSET_PREPARE): Avoid blank newline.
5062 (AS_INIT): Emit as_func_unset alongside other functions.
5064 2008-10-25 Eric Blake <ebb9@byu.net>
5067 * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Document
5069 (Limitations of Builtins): Mention AS_EXIT.
5072 Use AS_EXIT in autoconf.as.
5073 * bin/autoconf.as: Consistently use AS_EXIT.
5075 2008-10-24 Eric Blake <ebb9@byu.net>
5077 Fix m4 underquoting in AC_PROG_INSTALL.
5078 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Produce accurate
5081 Speed up AC_CHECK_HEADER.
5082 * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Factor out $@.
5084 2008-10-24 Paolo Bonzini <bonzini@gnu.org>
5085 and Eric Blake <ebb9@byu.net>
5087 Use a shell function for AC_CHECK_FUNC.
5088 * lib/autoconf/functions.m4 (_AC_CHECK_FUNC_BODY): New macro.
5089 (AC_CHECK_FUNC): Use a shell function.
5090 * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Reduce number of forks.
5092 2008-10-24 Eric Blake <ebb9@byu.net>
5094 Work around fact that gnulib-tool doesn't use m4_copy.
5095 * lib/autoconf/general.m4 (AC_LIBOBJ, AC_LIBSOURCES): Defun, not
5096 define, so that an initial location is present, to account for
5097 fact that gnulib-tool pushes another AC_DEFUN'd macro on top.
5099 Make m4_defun_init more robust.
5100 * lib/m4sugar/m4sugar.m4 (m4_defun_init): Handle indirect macro
5101 names, and correct number of arguments.
5102 (m4_copy): Also set up location of the copy.
5103 (m4_defun): When copied, use current macro name, not original.
5104 * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
5107 Optimize clients of AS_REQUIRE.
5108 * lib/m4sugar/m4sugar.m4 (m4_defun): Add undocumented third
5110 (m4_defun_init): New undocumented macro.
5111 * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG, AS_MESSAGE, AS_BASENAME)
5112 (_AS_DIRNAME_EXPR, AS_DIRNAME, AS_ECHO, AS_ECHO_N, AS_TEST_X)
5113 (AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK, AS_VERSION_COMPARE)
5114 (AS_TR_SH, AS_TR_CPP, AS_VAR_APPEND, AS_VAR_PUSHDEF): Use it to
5115 simplify these macros once the one-shot initialization is
5117 * tests/m4sugar.at (m4@&t@_require: one-shot initialization): New
5121 * lib/m4sugar/m4sugar.m4 (m4_copy): Add second implementation for
5123 (_m4_copy): New macro, which preserves pushdef stacks.
5124 (_m4_defun_pro_outer): Bypass it, for speed.
5125 (m4_init): Bypass new implementation, since it breaks on m4_defn.
5126 * bin/autoupdate.in (handle_autoconf_macros): Likewise.
5127 * lib/autoconf/general.m4 (AC_PREREQ): Undefine before redefining,
5128 now that m4_copy checks this.
5129 * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
5130 this, as well as m4_rename.
5131 * lib/autoconf/autoconf.m4 (m4_copy): Temporarily redefine when
5132 renaming builtins, since it breaks on m4_ifdef.
5134 * tests/m4sugar.at (m4@&t@_defn): Enhance test.
5136 2008-10-24 Eric Blake <ebb9@byu.net>
5138 AC_FUNC_GETGROUPS: Revert regression.
5139 * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Only set
5140 ac_cv_func_getgroups_works=no when it is not available.
5142 2008-10-23 Eric Blake <ebb9@byu.net>
5145 * lib/autoconf/fortran.m4: Consistently use tabs.
5147 2008-10-23 Chikama Masaki <masaki.chikama@gmail.com> (tiny change)
5149 For gfortran on sh, ignore -little.
5150 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add -little to
5151 list of ignored arguments.
5154 2008-10-23 Paolo Bonzini <bonzinI@gnu.org>
5156 Eliminate empty lines after AC_*_IFELSE.
5157 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
5158 _AC_LINK_IFELSE, _AC_RUN_IFELSE): Add a dnl at end.
5160 2008-10-23 Paolo Bonzini <bonzinI@gnu.org>
5162 Avoid a fork in _AC_RUN_LOG and _AC_RUN_LOG_STDERR
5163 * lib/autoconf/general.m4 (_AC_RUN_LOG, _AC_RUN_LOG_STDERR):
5164 Return a boolean status code based on $ac_status.
5166 2008-10-23 Paolo Bonzini <bonzinI@gnu.org>
5168 Ensure actions can look at conftest* files.
5169 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY,
5170 _AC_COMPILE_IFELSE_BODY, _AC_LINK_IFELSE_BODY, _AC_RUN_IFELSE_BODY):
5171 Move rm commands, except IPA files and Apple debug symbols...
5172 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE,
5173 _AC_RUN_IFELSE): ...in here.
5174 * tests/compile.at: Add regression test.
5176 2008-10-23 Eric Blake <ebb9@byu.net>
5178 Remove excess dnl from m4sh.
5179 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_PREPARE)
5180 (_AS_SHELL_FN_WORK, _AS_SHELL_SANITIZE, AS_IF, _AS_ECHO_LOG)
5181 (AS_MESSAGE, AS_ERROR, AS_BASENAME, _AS_BASENAME_PREPARE)
5182 (_AS_DIRNAME_EXPR, AS_DIRNAME, _AS_DIRNAME_PREPARE, AS_ECHO)
5183 (AS_ECHO_N, AS_TEST_X, AS_EXECUTABLE_P, _AS_ME_PREPARE)
5184 (_AS_LINENO_PREPARE, AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK)
5185 (AS_SET_CATFILE, AS_HELP_STRING, AS_TMPDIR, AS_VERSION_COMPARE)
5186 (_AS_TR_SH_PREPARE, AS_TR_SH, _AS_TR_CPP_PREPARE, AS_TR_CPP)
5187 (_AS_TR_PREPARE, AS_VAR_APPEND, AS_VAR_PUSHDEF)
5188 (AS_INIT_GENERATED): Use fewer dnl in m4sh macro bodies.
5190 2008-10-23 Paolo Bonzini <bonzini@gnu.org>
5191 and Eric Blake <ebb9@byu.net>
5193 Use a shell function for _AC_RUN_IFELSE.
5194 * lib/autoconf/general.m4 (_AC_RUN_IFELSE_BODY): New macro.
5195 (_AC_RUN_IFELSE): Use a shell function.
5196 (_AC_RUN_LOG): Avoid subshell for logging.
5198 2008-10-23 Eric Blake <ebb9@byu.net>
5200 Formatting tweak: balance () with m4sh case statements.
5201 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
5202 (_AS_SHELL_SANITIZE, _AS_ECHO_N_PREPARE, _AS_ECHO_PREPARE)
5203 (AS_SET_CATFILE, _AS_TEST_PREPARE): Add strategic shell comments.
5204 (_AS_CASE, _AS_CASE_DEFAULT, AS_CASE): Rearrange newlines, to
5205 allow output of strategic shell comments.
5206 (AS_VERSION_COMPARE): Use AS_CASE.
5207 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
5209 2008-10-22 Jim Meyering <meyering@redhat.com>
5211 AC_FUNC_GETGROUPS: always define $ac_cv_func_getgroups_works
5212 * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Always define
5213 the shell variable, $ac_cv_func_getgroups_works. Otherwise, if
5214 it is set to "yes" in the environment and configure is run on
5215 a system like mingw that lacks the getgroups function, it would
5216 mistakenly define HAVE_GETGROUPS. Reported by Simon Josefsson in
5217 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/15354>.
5219 2008-10-22 Paolo Bonzini <bonzini@gnu.org>
5220 and Eric Blake <ebb9@byu.net>
5222 Use a shell function for _AC_LINK_IFELSE.
5223 * lib/autoconf/general.m4 (_AC_LINK_IFELSE_BODY): New macro.
5224 (_AC_LINK_IFELSE): Use a shell function.
5226 2008-10-22 Eric Blake <ebb9@byu.net>
5228 Fix autoconf logging commands.
5229 * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED, _AC_EVAL)
5230 (_AC_EVAL_STDERR, AC_RUN_LOG): Respect as_lineno.
5231 (_AC_DO_ECHO): Likewise, and use fewer dnl.
5232 (_AC_RUN_LOG_STDERR): Avoid subshell for logging.
5234 2008-10-22 Eric Blake <ebb9@byu.net>
5236 Fix testsuite failure.
5237 * tests/mktests.sh (ac_exclude_list): Don't generate test for
5238 AC_REQUIRE_SHELL_FN.
5240 2008-10-21 Eric Blake <ebb9@byu.net>
5242 Improve wording related to automake and autotest.
5243 * doc/autoconf.texi (Making testsuite Scripts): Clarify wording in
5244 relation to automake. Mention dependency on package.m4.
5245 Consolidate examples. Define AUTOM4TE.
5247 Reported by William Pursell.
5249 2008-10-21 Eric Blake <ebb9@byu.net>
5251 Allow AS_VAR_SET_IF in shell lists.
5252 * lib/m4sugar/m4sh.m4 (AS_VAR_SET_IF): Allow continuation of
5254 * lib/autoconf/general.m4 (AC_CACHE_VAL): Supply newline no longer
5255 provided by AS_VAR_SET_IF.
5256 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Adjust
5258 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
5259 * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
5261 Allow AS_VAR_IF in shell lists.
5262 * lib/m4sugar/m4sh.m4 (AS_VAR_IF): Allow continuation of line.
5263 * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Adjust clients.
5264 * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
5266 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
5267 (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD)
5268 (_AC_CHECK_HEADER_DIRENT): Likewise.
5269 * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
5270 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
5272 * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
5274 Allow AS_CASE in shell lists.
5275 * lib/m4sugar/m4sh.m4 (AS_CASE): Always execute test, in case of
5276 side effects. Allow continuation of script on same line as esac.
5277 * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Adjust client.
5278 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
5279 * NEWS: Document the subtle change.
5281 Allow AS_IF in shell lists.
5282 * lib/m4sugar/m4sh.m4 (AS_IF): Always execute test, in case of
5283 side effects. Allow continuation of script on same line as fi.
5284 (_AS_DETECT_BETTER_SHELL): Adjust clients.
5285 (AS_VAR_IF, AS_VAR_SET_IF): For now, supply newline no longer
5287 * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Likewise.
5288 * lib/autoconf/general.m4 (_AC_ENABLE_IF): Likewise.
5289 (AC_EGREP_CPP, _AC_RUN_IFELSE): Adjust client.
5290 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
5291 * doc/autoconf.texi (Common Shell Constructs) <AS_IF>: Fix typo.
5292 (Polymorphic Variables): Move mention of dnl to the only two
5293 AS_VAR functions that need it.
5295 2008-10-21 Paolo Bonzini <bonzini@gnu.org>
5296 and Eric Blake <ebb9@byu.net>
5298 Use a shell function for _AC_COMPILE_IFELSE.
5299 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE_BODY): New macro.
5300 (_AC_COMPILE_IFELSE): Use a shell function.
5302 2008-10-21 Eric Blake <ebb9@byu.net>
5305 * lib/autoconf/functions.m4 (AC_CHECK_FUNCS_ONCE): Use new macro.
5306 * lib/autoconf/general.m4 (_AC_INIT_PREPARE)
5307 (_AC_LIBOBJS_NORMALIZE): Likewise.
5308 * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): Likewise.
5309 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS)
5310 (_AC_OUTPUT_CONFIG_STATUS, _AC_OUTPUT_MAIN_LOOP): Likewise.
5311 * lib/autotest/general.m4 (AT_INIT): Likewise.
5314 * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
5315 (_AS_VAR_APPEND_WORKS, AS_VAR_APPEND): New macros.
5316 (AS_PREPARE, _AS_PREPARE): Emit preparation.
5317 * tests/m4sh.at (AS@&t@_VAR_APPEND): New test.
5318 * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_APPEND>:
5320 <AS_VAR_SET>: Mention ramification of `""` rules.
5321 * NEWS: Mention new macro.
5323 2008-10-21 Paolo Bonzini <bonzini@gnu.org>
5324 and Eric Blake <ebb9@byu.net>
5326 Use a shell function for _AC_PREPROC_IFELSE.
5327 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY): New macro.
5328 (_AC_PREPROC_IFELSE): Use a shell function.
5329 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Factor for faster execution.
5330 (AS_REQUIRE_SHELL_FN): Bypass AS_REQUIRE if function has already
5333 2008-10-21 Eric Blake <ebb9@byu.net>
5335 Add banners to generated files.
5336 * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Use m4_text_box for
5338 (AS_INIT): Add new banners at strategic points.
5339 * lib/autoconf/general.m4 (AC_INIT): Alter banner location, and
5340 make consistent with other banners.
5341 * lib/autotest/general.m4 (AT_INIT): Make banners consistent.
5343 2008-10-20 Paolo Bonzini <bonzini@gnu.org>
5345 Add AC_REQUIRE_SHELL_FN and the SHELL_FN diversion.
5346 * lib/autoconf/general.m4 (AC_REQUIRE_SHELL_FN): New.
5347 (m4_divert(SHELL_FN)): New.
5349 2008-10-20 Eric Blake <ebb9@byu.net>
5351 Avoid unportable use of echo in testsuite.
5352 * tests/m4sh.at (AS@&t@_VAR basics): Use AS_ECHO, since string
5355 2008-10-18 Paolo Bonzini <bonzini@gnu.org>
5357 Make sure that nested AS_REQUIRE do not lose the desired diversion.
5358 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Expand _m4_divert_desired before
5359 passing it to m4_divert_require, so that its content is not used
5361 * tests/m4sh.at (Nested AS_REQUIRE): New testcase.
5363 2008-10-18 Eric Blake <ebb9@byu.net>
5365 Document bugs in { } handling.
5366 * doc/autoconf.texi (Limitations of Builtins): Mention bug on
5369 Fix some testsuite failures introduced two days ago.
5370 * tests/m4sh.at (Nested AS@&t@_REQUIRE_SHELL_FN)
5371 (AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require): Adjust to changed
5373 Reported by Ralf Wildenhues.
5375 2008-10-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5377 Show how to extract single substitutions from config.status.
5378 * doc/autoconf.texi (config.status Invocation): Show example
5381 2008-10-17 Eric Blake <ebb9@byu.net>
5384 * lib/m4sugar/m4sugar.m4 (m4_curry, _m4_curry): New macros.
5385 * tests/m4sugar.at (m4@&t@_map_args): Rename...
5386 (m4@&t@_map_args and m4@&t@_curry): ...and add currying tests.
5387 * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
5388 currying as a way to add parameters.
5389 (Evaluation Macros) <m4_curry>: Document the new macro.
5392 Improve suggested test filtering.
5393 * lib/m4sugar/m4sh.m4 (_AS_DETECT_SUGGESTED_PRUNE): New macro,
5395 (_AS_DETECT_BETTER_SHELL): ...here, to use faster API. No need to
5396 check for an empty required set.
5399 * lib/m4sugar/m4sugar.m4 (m4_set_foreach): New macro.
5400 * tests/m4sugar.at (m4@&t@_set): Enhance test.
5401 * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
5405 Document m4_map_args.
5406 * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair):
5408 (m4_map_args, m4_map_args_pair): ...to these names, and document.
5409 (m4_version_unletter): Use the interface.
5410 * lib/m4sugar/foreach.m4 (m4_map_args, m4_map_args_pair)
5411 (_m4_map_args_, _m4_map_args_pair_, _m4_map_args_pair_end):
5412 Perform same renames.
5413 * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Adjust callers.
5414 * tests/m4sugar.at (m4@&t@_map_args): New test.
5415 (recursion): Adjust caller.
5416 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Likewise.
5417 * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
5419 * NEWS: Mention the new macros.
5421 2008-10-17 Eric Blake <ebb9@byu.net>
5423 Reduce vertical whitespace in configure.
5424 * lib/autoconf/general.m4 (AC_INIT): Silence newline output during
5425 m4 side effect initializations.
5426 * lib/m4sugar/m4sh.m4 (AS_PREPARE): Likewise.
5428 2008-10-17 Eric Blake <ebb9@byu.net>
5430 Document AS_VAR interfaces.
5431 * doc/autoconf.texi (Programming in M4sh): M4sh is now prime-time.
5432 (Polymorphic Variables): New node.
5433 * NEWS: Update accordingly.
5435 Test AS_VAR interfaces.
5436 * tests/m4sh.at (AS@&t@_VAR): New test.
5437 * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Force expansion of
5438 _AS_TR_SH_PREPARE at top level, rather than argument collection.
5439 (AS_TR_SH): Support command substitution.
5442 * lib/m4sugar/m4sh.m4 (AS_VAR_COPY): New macro.
5443 (AS_VAR_IF): Use it, instead of the broken AS_VAR_GET.
5444 * lib/autoconf/general.m4 (AC_CACHE_CHECK): Likewise.
5445 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
5446 * lib/autotest/general.m4 (_AT_FINISH): Likewise.
5448 Sort AS_VAR_* interfaces.
5449 * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Reduce output to one line.
5450 (AS_VAR_TEST_SET, AS_VAR_SET, AS_VAR_SET_IF, AS_VAR_POPDEF): Sort,
5453 2008-10-16 Eric Blake <ebb9@byu.net>
5455 Allow comments before functions emitted by m4sh.
5456 * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Add comment
5457 argument. Supply closing comment, to ease readability.
5458 (_AS_MKDIR_P_PREPARE): Adjust caller.
5459 (_AS_UNSET_PREPARE): Add comment.
5461 Add AS_FUNCTION_DESCRIBE.
5462 * lib/m4sugar/m4sh.m4 (AS_FUNCTION_DESCRIBE): New macro.
5463 * lib/autotest/general.m4 (AT_INIT): Use it.
5465 2008-10-16 Eric Blake <ebb9@byu.net>
5467 Speed up m4_qlen with caching.
5468 * lib/m4sugar/m4sugar.m4 (_m4_qlen): Renamed from old m4_qlen.
5469 (m4_qlen): Cache results for speed.
5471 2008-10-16 Paolo Bonzini <bonzini@gnu.org>
5473 Add a testcase using more then one language.
5474 * tests/compile.at (Multiple languages): New test.
5476 2008-10-16 Paolo Bonzini <bonzini@gnu.org>
5478 Fix Libtool's config.lt test.
5479 * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Disable AS_REQUIRE while
5482 2008-10-15 Eric Blake <ebb9@byu.net>
5484 Break circular require chain in _AS_LINENO_PREPARE.
5485 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Ensure that logging is
5486 disabled when reporting LINENO failure, since logging requires
5488 * doc/autoconf.texi (Initialization Macros): Recommend m4_pushdef,
5489 not m4_rename, since the latter is undocumented.
5490 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid
5491 m4_rename, as it does not yet handle pushdef stacks.
5492 Reported by Ralf Wildenhues.
5494 2008-10-15 Eric Blake <ebb9@byu.net>
5496 Cleanups to previous patches.
5497 * doc/autoconf.texi (Portable Shell): Minor edits.
5498 (Limitations of Builtins): Touch up wording.
5499 * lib/m4sugar/m4sh.m4 (AS_LINENO_PUSH): Nuke trailing whitespace.
5500 (_AS_SHELL_SANITIZE): Wrap comments less than 80 columns.
5502 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
5504 Updates to shell portability documentation.
5505 * doc/autoconf.texi: Updates all references to "Portable Shell" and
5506 "Limitations of Builtins" to use three-argument commands.
5507 (Programming in M4sh): Document AS_ECHO, AS_ECHO_N, AS_UNSET.
5508 (Portable Shell): Move here discussion about "Where is the POSIX
5509 shell?" Mention that M4sh provides a SVR2 shell and takes care
5510 of unsetting variables if necessary. Talk about M4sh and not only
5511 Autoconf-generated scripts.
5512 (Special Shell Variables): Talk about M4sh and not only
5513 Autoconf-generated scripts. Don't talk about things that Autoconf
5514 does not do. Mention problems of $LINENO with shell functions.
5515 (Limitations of Builtins). Mention AS_ECHO and AS_ECHO_N. Move
5516 discussion of eval bugs before discussion on proper use of eval.
5517 Mention AS_IF. Reword why not to use "shift N". Mention "foo=;
5518 unset foo" trick. Include M4sh code that unsets MAIL for Bash 2.01.
5519 * NEWS: Update list of documented M4sh macros.
5521 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
5523 Assume a (possibly buggy) `unset' is present after a
5524 `better shell' was found.
5525 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Use AS_UNSET.
5526 * lib/autoconf/programs.m4 (AC_PROG_SED): Use AS_UNSET.
5527 * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Provide $as_unset as an
5528 alias for AS_UNSET, for backwards compatibility.
5529 (_AS_DETECT_BETTER_SHELL): Set BASH_ENV and ENV to /dev/null in case
5530 the shell does not support unset.
5531 (_AS_SHELL_SANITIZE): Work around Bash 2.01 bugs. Unset BASH_ENV.
5532 (AS_INIT, _AS_PREPARE, AS_PREPARE): Call it.
5533 (AS_UNSET): Assume it is there but it might fail if the variable is
5534 not set. Use it throughout instead of $as_unset.
5536 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
5538 Turn AS_SHELL_SANITIZE into a for-Libtool-only wrapper.
5539 * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED): Remove
5540 m4_require of _AS_DETECT_BETTER_SHELL.
5541 (_AS_CLEANUP): Add it here.
5542 (_AS_DETECT_BETTER_SHELL): Just expand the test instead of appending it
5544 (_AS_SHELL_SANITIZE): New name of the old AS_SHELL_SANITIZE macro.
5545 (AS_SHELL_SANITIZE): New macro hacking around Libtool misuse.
5546 (AS_PREPARE): Use _AS_SHELL_SANITIZE.
5547 (AS_INIT): Add m4_provide of itself.
5549 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
5551 Use "test x$foo = xyes" to avoid upsetting Libtool's sh.test.
5552 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_SHELL_FN_WORK): Use
5553 "test x$foo = xyes".
5555 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
5557 Trim down the size of the better-shell test.
5558 * lib/m4sugar/m4sh.at (_AT_DETECT_BETTER_SHELL): Store the common
5559 snippets into shell variables.
5562 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
5564 Support a stack of LINENO values for AS_MESSAGE.
5565 * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): If defined, use $as_lineno as
5566 the line number emitted to the log file.
5567 (AS_LINENO_PUSH, AS_LINENO_POP): New.
5568 * tests/m4sh.at (LINENO Stack): New test.
5570 2008-10-14 Eric Blake <ebb9@byu.net>
5572 Correct previous patch.
5573 * doc/autoconf.texi (Shell Functions): Bash obeys Posix, after
5576 Document shell function environment pitfall.
5577 * doc/autoconf.texi (Shell Functions): Document bugs in bash,
5580 2008-10-14 Paolo Bonzini <bonzini@gnu.org>
5582 Use m4_require to implement AS_REQUIRE.
5583 * lib/m4sugar/m4sugar.m4 (_m4_require_call): Accept a third argument.
5584 (m4_require): Pass it.
5585 (m4_divert_require): New.
5586 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Rewrite using m4_divert_require.
5587 Remove comment about differences with m4_require.
5588 * tests/m4sh.at (AS_REQUIRE_SHELL_FN and m4_require): Update to test
5589 the expected behavior.
5590 (Nested AS_REQUIRE_SHELL_FN): New test.
5592 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
5594 Test AS_LINENO_PREPARE.
5595 * tests/m4sh.at: Use documented AS_LINENO_PREPARE.
5597 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
5600 * tests/m4sh.at (as_me): New test.
5602 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
5604 Add and document AS_INIT_GENERATED.
5605 * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): New.
5606 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use it.
5607 * doc/autoconf.texi (Initialization macros): Document it.
5609 2008-10-13 Eric Blake <ebb9@byu.net>
5611 Use consistent shell function style.
5612 * lib/m4sugar/m4sh.m4 (_AS_PREPARE, AS_REQUIRE_SHELL_FN)
5613 (_AS_SHELL_FN_WORK): Imitate GNU Coding Standards for C
5616 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
5618 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Place names of
5619 contributors under m4 rather than shell comments.
5621 2008-10-10 Paolo Bonzini <bonzini@gnu.org>
5623 * lib/m4sugar/m4sh.m4 (AS_ME_PREPARE, AS_LINENO_PREPARE): New.
5624 * doc/autoconf.texi (Initialization macros): Document them.
5625 (Portable Shell): Refer to AS_LINENO_PREPARE.
5626 * NEWS: Mention them.
5628 * bin/autoconf.as: Invoke AS_ME_PREPARE.
5629 * lib/autotest/general.m4: Likewise.
5631 2008-10-10 Paolo Bonzini <bonzini@gnu.org>
5633 * doc/autoconf.texi (Programming in M4sh): Make its own chapter.
5635 2008-10-10 Eric Blake <ebb9@byu.net>
5637 Fix _AS_MKDIR_P usage.
5638 * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P): Correct documentation to
5639 match implementation.
5640 (_AS_PREPARE, _AS_MKDIR_P_PREPARE): Adjust callers.
5641 * doc/autoconf.texi (Programming in M4sh) <AS_MKDIR_P>: Tweak
5642 wording to better match behavior.
5644 2008-10-10 Paolo Bonzini <bonzini@gnu.org>
5646 * doc/autoconf.texi: Be less wary of shell functions.
5647 * NEWS: Document the increased use of shell functions.
5649 2008-10-10 Paolo Bonzini <bonzini@gnu.org>
5651 * m4sugar/m4sh.m4 (_AS_MKDIR_P): New, from AS_MKDIR_P. Adjust
5652 meaning of as_mkdir_p to be `false' or a full `mkdir -p' command.
5653 (AS_MKDIR_P): Just dispatch to as_func_mkdir_p.
5654 (_AS_PREPARE): Define shell functions.
5655 (_AS_MKDIR_P_PREPARE): Set as_mkdir_p according to the above change.
5656 Define shell functions.
5658 2008-10-09 Eric Blake <ebb9@byu.net>
5660 Only prepare $as_me if it will be used.
5661 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Avoid unconditional
5663 (_AS_ECHO_LOG): Depend on $LINENO preparation.
5664 (AS_MESSAGE): Depend on $as_me preparation.
5665 (AS_TMPDIR): Use AS_ERROR, rather than a hand-rolled copy.
5667 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
5669 * m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Delay setting as_me
5670 until the M4SH-INIT diversion using _AS_ME_PREPARE.
5671 (_AS_PREPARE): Invoke _AS_EXPR_PREPARE before _AS_BASENAME_PREPARE
5672 and _AS_DIRNAME_PREPARE, and _AS_BASENAME_PREPARE and _AS_ME_PREPARE
5673 before _AS_LINENO_PREPARE.
5674 (AS_PREPARE): Include all the AS_REQUIREs manually.
5675 (_AS_ME_PREPARE): New.
5676 (_AS_LINENO_PREPARE): Use m4_defun.
5678 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
5680 * m4sugar/m4sh.m4 (_AS_BASENAME_EXPR, _AS_DIRNAME_EXPR): Do not
5681 require _AS_EXPR_PREPARE.
5682 (_AS_BASENAME_PREPARE, _AS_DIRNAME_PREPARE): Do it here.
5683 (_AS_PREPARE): Add _AS_BASENAME_PREPARE.
5685 2008-10-08 Eric Blake <ebb9@byu.net>
5688 * cfg.mk (cvs_executable_files, cvs_files): Rewrite...
5689 (fetch): ...into new target.
5690 (executable-update): Delete, now that it is unused.
5691 * maint.mk (update, local_updates, cvs_files, gnulib_repo)
5692 (wget-update, cvs-update): Likewise.
5693 * HACKING (Update the foreign files): Document new procedure.
5694 * GNUmakefile: Resync from upstream, via new 'make fetch'.
5695 * build-aux/config.guess: Likewise.
5697 2008-10-08 Paolo Bonzini <bonzini@gnu.org>
5699 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Remove.
5700 (AS_INIT): Do not call it.
5702 2008-10-08 Paolo Bonzini <bonzini@gnu.org>
5704 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Expand
5705 _AS_UNSET_PREPARE in M4SH-SANITIZE.
5707 2008-10-08 Eric Blake <ebb9@byu.net>
5709 Avoid repeating required shell tests in suggested set.
5710 * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED):
5711 Use m4_set, rather than m4_expand_once/m4_append.
5712 (_AS_DETECT_SUGGESTED): Adjust to new storage layout, and filter
5713 required tests out of suggested tests.
5714 Reported by Paolo Bonzini.
5716 2008-10-08 Paolo Bonzini <bonzini@gnu.org>
5718 Add m4sh keyword to all m4sh.at tests.
5719 * tests/m4sh.at: Add m4sh keyword to all tests. Fix comment
5722 2008-10-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5724 Document AS_VERSION_COMPARE.
5725 * doc/autoconf.texi (Programming in M4sh): Document
5729 Do not write to testsuite log fd before initialization.
5730 * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD, AT_JOB_FIFO_FD):
5731 Define fds only when initializing the log fd so early error
5732 messages do not try to write to it.
5733 * tests/autotest.at (Startup error messages): New test.
5734 * NEWS: Document this 2.63 regression.
5736 2008-10-07 Eric Blake <ebb9@byu.net>
5738 Ensure _AS_CLEANUP is defined.
5739 * lib/m4sugar/m4sh.m4 (_AS_CLEANUP): Give initial definition.
5740 * tests/m4sh.at (AS@&t@_INIT cleanup): Expose the need for this.
5742 Improve m4sh maintainability.
5743 * lib/m4sugar/m4sh.m4: Sort macros for sanitizing the shell; no
5746 Fix m4 quoting in previous patch.
5747 * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Determine diversion
5748 name prior to invoking AS_REQUIRE.
5749 Reported by Ralf Wildenhues.
5751 2008-09-18 Paolo Bonzini <bonzini@gnu.org>
5752 and Eric Blake <ebb9@byu.net>
5754 Add a separate diversion for shell functions.
5755 * lib/m4sugar/m4sh.m4 (M4SH-INIT-FN): New diversion.
5756 (AS_REQUIRE): Accept diversion parameter.
5757 (AS_REQUIRE_SHELL_FN): Use it.
5759 2008-10-06 Eric Blake <ebb9@byu.net>
5761 Add m4_default_quoted.
5762 * lib/m4sugar/m4sugar.m4 (m4_default_quoted): New macro.
5763 (m4_for, m4_expand_once, m4_text_wrap, m4_text_box): Use it.
5764 * doc/autoconf.texi (Conditional constructs): Document it.
5767 Fix build with case-insensitive make, again.
5768 * Makefile.am (pkgdata_DATA): Protect by MAKE_CASE_SENSITIVE.
5769 Reported via Keith Marshall, originally by newthinker in
5770 <http://thread.gmane.org/gmane.comp.gnu.mingw.user/27725>.
5772 2008-10-06 Bruno Haible <bruno@clisp.org>
5774 Warn about /usr/ucb on Solaris.
5775 * doc/install.texi (Particular Systems): Recommend putting
5776 /usr/ucb late in PATH, if at all.
5778 2008-10-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5780 Fix more testsuite hang corner cases.
5781 * lib/autotest/general.m4: Use the serial code path if no test
5783 * tests/autotest.at (parallel test execution): Test -j and -jN
5784 with `-k notmatched'.
5786 2008-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5788 Fix hang with `testsuite -k notmatched'.
5789 * lib/autotest/general.m4: Do not reset $at_jobs if it is equal
5790 to one. Fixes hang with `-k notmatched'.
5792 2008-10-02 Eric Blake <ebb9@byu.net>
5794 Document more binary file portability traps.
5795 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Remind
5796 reader that NUL and sed don't always mix.
5797 <tr>: Mention Solaris /usr/ucb/tr bug with \0.
5799 2008-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5801 Implement parallel Autotest test execution: testsuite --jobs.
5802 * lib/autotest/general.m4 (AT_JOB_FIFO_FD): New macro.
5803 (AT_INIT): <at_jobs>: New variable.
5804 Accept -j, -jN, --jobs[=N], document them in --help output.
5805 Implement parallel driver loop using a FIFO, enabled with --jobs
5806 and if mkfifo works; otherwise, fall back to sequential loop.
5807 (AT_SETUP): Store, do not output summary progress line if
5809 * tests/autotest.at (parallel test execution, parallel truth)
5810 (parallel fallacy, parallel skip): New tests.
5811 * doc/autoconf.texi (testsuite Invocation): Document -j, --jobs,
5812 the mkfifo requirement, and that --errexit may cause concurrent
5816 2008-09-20 Eric Blake <ebb9@byu.net>
5818 Fix sample isinf definition.
5819 * doc/autoconf.texi (Function Portability) <isinf>: Filter out NaN
5822 Reported by David Cournapeau.
5824 2008-09-16 Eric Blake <ebb9@byu.net>
5826 Fix Erlang regression, introduced 2006-11-17.
5827 * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Avoid M4 comment
5828 caused by underquoting.
5829 * NEWS: Mention this fix.
5831 Reported by BJ Terry.
5833 2008-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5835 * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Improve a bit.
5837 Mention Solaris sh ':' redirection bug.
5838 * doc/autoconf.texi (File Descriptors): Redirecting ':'
5839 in a loop causes bogus optimization with Solaris sh.
5841 2008-09-10 Eric Blake <ebb9@byu.net>
5843 Avoid testsuite bug when autom4te cache is disabled by user.
5844 * tests/tools.at (autoconf: forbidden tokens, basic): Enable
5845 cache, even if user normally disabled it.
5846 Reported by Bruno Haible.
5848 Avoid testsuite bug in presence of verbose config.site.
5849 * tests/base.at (Input/Output): Nullify config.site during test.
5850 Reported by Bob Friesenhahn.
5852 2008-09-09 Eric Blake <ebb9@byu.net>
5854 Release Version 2.63.
5855 * NEWS: Mention the release.
5857 Formatting tweaks to the manual.
5858 * doc/autoconf.texi (Introduction, Systemology)
5859 (File System Conventions, Portable C and C++)
5860 (Floating Point Portability): Allow URLs to split as needed.
5861 (Indices): Add entries, to work around texinfo bug on indices that
5862 start too close to a page break.
5863 (Particular Functions): Mention ftello.
5864 (Introduction, Language Choice): Use @enddots at sentence end.
5867 * cfg.mk (cvs_executable_files, cvs_files): Update list of files,
5868 although for now, they are still manually sync'd.
5869 * build-aux/gnupload: Update.
5870 * build-aux/config.sub: Likewise.
5871 * GNUmakefile: Likewise.
5873 2008-09-06 Eric Blake <ebb9@byu.net>
5875 Mention that Automake already supports VPATH.
5876 * doc/autoconf.texi (Build Directories): Details in this section
5877 only apply to users avoiding automake.
5879 Reported by Matej Tyc.
5881 Relax tone when warning about cross-compiler names.
5882 * lib/autoconf/programs.m4 (_AC_TOOL_WARN): Support cross-compiles
5883 with poorly named tools; the issue has been reported too many
5884 times in the last four years to pull support.
5885 * doc/autoconf.texi (Specifying Names, Generic Programs): Update
5886 documentation accordingly.
5888 Reported by Josef Tran and others, wording suggested by Ralf
5891 2008-09-01 Eric Blake <ebb9@byu.net>
5893 Improve AC_C_BIGENDIAN.
5894 * doc/autoconf.texi (C Compiler) <AC_C_BIGENDIAN>: Mention that
5895 universal builds require a config header.
5896 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Enhance comments. Check
5897 AH_HEADER at the last possible moment, so that users can use
5898 AC_CONFIG_HEADER after this macro.
5899 Reported by Stepan Kasal.
5901 Fix manual date information.
5902 * doc/autoconf.tex: UPDATED refers to the day the manual was
5903 built, not the release date of Autoconf.
5904 Based on a bison patch by Akim Demaille.
5906 2008-08-27 Eric Blake <ebb9@byu.net>
5908 Fix off-by-one bug in _m4_shiftn.
5909 * lib/m4sugar/foreach.m4 (_m4_shiftn): Handle case when shifting
5911 * tests/m4sugar.at (M4 loops): Test it.
5912 Reported by Akim Demaille.
5914 2008-08-26 Eric Blake <ebb9@byu.net>
5916 Improve INSTALL formatting.
5917 * doc/install.texi [!autoconf]: Ensure first paragraphs are
5918 indented like all others in a plain text rendering.
5919 * Makefile.am ($(srcdir)/INSTALL): Ensure plaintext formatting.
5920 Reported by Bruno Haible.
5922 2008-08-26 Stepan Kasal <skasal@redhat.com>
5924 Check for case sensitive make.
5925 * m4/make-check.m4 (AC_PROG_MAKE_CASE_SENSITIVE): New macro,...
5926 * configure.ac: ... called here.
5927 * Makefile.am ($(abs_srcdir)/INSTALL, INSTALL): Return to...
5928 ($(srcdir)/INSTALL): ...this, but enclose the rule in
5929 "if MAKE_CASE_SENSITIVE".
5931 2008-08-26 Eric Blake <ebb9@byu.net>
5933 Update invocation documentation.
5934 * doc/autoconf.texi (autoscan Invocation): Mention --debug.
5935 (autoreconf Invocation): Mention -v.
5936 (autom4te Invocation): Tie --freeze to -F, not -f.
5937 (autoupdate Invocation): Mention --prepend-include.
5938 * doc/install.texi (configure Invocation): Mention --help=short,
5939 --help=recursive, -n/--no-create, --prefix. Avoid TABs.
5940 * bin/autoscan.in ($help): Omit space before `...'.
5941 * bin/ifnames.in ($help): Likewise.
5942 * bin/autoconf.as (Usage): Likewise.
5943 * bin/autoreconf.in ($help): Likewise.
5944 * bin/autoheader.in ($help): Likewise.
5945 * bin/autom4te.in ($help): Likewise.
5946 * bin/autoupdate.in ($help): Likewise.
5947 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use
5948 `[OPTION]...', rather than `[OPTIONS]'. Mention --silent. Indent
5951 Don't let frozen __m4_version__ break downgrade to m4 1.4.x.
5952 * bin/autom4te.in: Adjust comments, now that we rely on 1.4.5+.
5953 (files_to_options): Avoid inheriting __m4_version__ from frozen
5954 file if current M4 does not support it.
5956 2008-08-25 Eric Blake <ebb9@byu.net>
5958 Adjust to recent m4 1.6 change to support m4_debugmode(d).
5959 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Move
5960 freeze-time decision of using faster 1.6 implementation...
5961 (m4_init): ...to a runtime decision, and add use of new debugmode
5964 2008-08-22 Peter O'Gorman <pogma@thewrittenword.com>
5966 Limit AC_C_BIGENDIAN univeral checks to Mac OS X.
5967 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Limit the check to
5968 __APPLE_CC__ with possible -arch flags.
5969 * NEWS: Document it.
5971 2008-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5975 2008-08-22 Eric Blake <ebb9@byu.net>
5977 * TODO: Add an item for additional m4sugar looping constructs.
5978 Suggested by Ralf Wildenhues.
5980 Add reminder to keep dual implementations in sync.
5981 * lib/m4sugar/m4sugar.m4: Add comments.
5982 * lib/m4sugar/foreach.m4: Likewise.
5983 Suggested by Ralf Wildenhues.
5985 2008-08-22 Peter Eisentraut <peter_e@gmx.net> (tiny change)
5987 Format warning and error messages to match GCS.
5988 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK)
5989 (_AC_INIT_PARSE_ARGS, _AC_CACHE_DUMP): Start warning and error
5990 messages with a lowercase letter, end them without punctuation.
5991 * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Likewise.
5992 * lib/autoconf/libs.m4 (AC_PATH_X): Likewise.
5993 * lib/autoconf/status.m4 (AC_OUTPUT, _AC_OUTPUT_MAIN_LOOP):
5995 * tests/fortran.at (GNU Fortran): Likewise.
5996 * tests/torture.at (Deep Package): Likewise.
5998 2008-08-21 Eric Blake <ebb9@byu.net>
6000 Avoid extra side effects in m4sugar list expansion.
6001 * lib/m4sugar/m4sugar.m4 (m4_mapall_sep, m4_list_cmp): Wrap
6003 (_m4_mapall_sep, _m4_list_cmp_raw): ...new helpers, to avoid
6004 duplicate side effects.
6005 (m4_version_compare): Adjust caller.
6006 * lib/m4sugar/foreach.m4 (m4_list_cmp): Rename...
6007 (_m4_list_cmp_raw): ...to match m4sugar.
6008 * doc/autoconf.texi (Looping constructs): Document the behavior of
6010 * tests/m4sugar.at (M4 loops, m4@&t@_map, m4@&t@_version_compare):
6011 Ensure only one side effect.
6012 (recursion): Fix test typo.
6013 Reported by Ralf Wildenhues.
6015 2008-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6017 * TODO: Add item for compiler default flags.
6018 Suggested by Bruno Haible.
6020 * tests/m4sh.at (AS_IF and AS_CASE): Set the expansion limit
6023 2008-08-21 Eric Blake <ebb9@byu.net>
6025 Formatting improvements.
6026 * doc/autoconf.texi: Use @file and @command, rather than @code,
6029 Document another make bug.
6030 * doc/autoconf.texi (The Make Macro SHELL): Mention bug in BSD
6031 make, GNU make <= 3.80.
6033 Tweak wording about SHELL in Makefile.
6034 * doc/autoconf.texi (The Make Macro SHELL): Stronger wording on
6035 the importance of proper SHELL settings.
6036 Reported by Bruno Haible, in
6037 http://lists.gnu.org/archive/html/bug-libtool/2008-04/msg00029.html.
6039 2008-08-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6041 Avoid timestamp races for updated input.
6042 * tests/m4sh.at (AS_IF and AS_CASE): Use `autom4te --force' for
6044 * tests/tools.at (autotools and whitespace in file names): Add
6045 --force for repeated invocations.
6047 2008-08-20 Bruno Haible <bruno@clisp.org>
6049 Add section to INSTALL about particular systems.
6050 * doc/install.texi (Particular systems): New node.
6051 * doc/autoconf.texi: Adjust menus.
6053 2008-08-19 Bruno Haible <bruno@clisp.org>
6054 and Peter O'Gorman <peter@pogma.com>
6056 Mention universal binaries in INSTALL.
6057 * doc/install.texi (Compiling For Multiple Architectures): Explain
6058 how to create universal binaries on MacOS X.
6060 2008-08-19 Jim Meyering <jim@meyering.net>
6061 Eric Blake <ebb9@byu.net>
6062 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6064 Avoid shell parse errors after interrupt due to empty ``.
6065 * doc/autoconf.texi (Shell Substitutions): Document the issue.
6066 * lib/m4sugar/m4sh.m4 (AS_VAR_IF): New function.
6067 * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Use it in place of
6068 "test AS_VAR_GET([...]) = yes"
6069 * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL): Likewise.
6070 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Likewise.
6071 (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD): Likewise.
6072 (_AC_CHECK_HEADER_DIRENT): Likewise.
6073 * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
6074 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
6075 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use
6076 temporary variable to work around the issue.
6077 * tests/foreign.at (Libtool): Quote result of command
6080 2008-08-18 Eric Blake <ebb9@byu.net>
6082 Test m4_transform without tickling shell bugs.
6083 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Relax test to
6084 something more manageable.
6085 * tests/m4sugar.at (recursion): Move stress test of
6086 m4_transform_pair here.
6087 Reported by Ralf Wildenhues.
6089 Let 'git diff' give better context for doc updates.
6090 * .gitattributes (*.texi*): Add new entry.
6091 * README-hacking: Mention how to use it.
6092 Inspired by a coreutils patch by Jim Meyering.
6094 2008-08-15 Eric Blake <ebb9@byu.net>
6096 Fix m4_map regression from 2007-10-16.
6097 * lib/m4sugar/m4sugar.m4 (_m4_apply): New macro.
6098 (m4_map): Ignore empty sublists. For a list consisting of only an
6099 empty sublist, this restores 2.61 behavior of being a no-op.
6100 (m4_map_sep): Likewise, and expand separator.
6101 (m4_mapall, m4_mapall_sep): New macros, to regain 2.62 behavior.
6102 (_m4_map): Rewrite, to be common base for all four variants.
6103 * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new prototype.
6104 * tests/m4sugar.at (m4@&t@_map): Add tests.
6105 * doc/autoconf.texi (Looping constructs) <m4_map>: Document new
6106 macros, and mention ramifications of expanded separator.
6107 * NEWS: Mention the change.
6109 2008-08-14 Eric Blake <ebb9@byu.net>
6111 Implement m4_transform_pair, to speed up AS_IF.
6112 * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair): New
6113 macros, undocumented for now.
6114 * lib/m4sugar/foreach.m4 (m4_transform, m4_transform_pair): Also
6115 the m4 1.4.x counterparts.
6116 * lib/m4sugar/m4sh.m4 (AS_IF, AS_CASE): Use it.
6117 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Test it.
6119 2008-08-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6121 * lib/autoconf/programs.m4 (AC_PATH_TARGET_TOOL)
6122 (AC_CHECK_TARGET_TOOL, AC_CHECK_TARGET_TOOLS): Require, do not
6123 warn about previous AC_CANONICAL_TARGET.
6124 (AC_CHECK_TARGET_TOOL): Add missing `$' making the macro
6125 unusable in the non-cross-compiling case.
6126 * NEWS, THANKS: Update.
6127 Report by Dave Erickson.
6129 2008-08-12 Eric Blake <ebb9@byu.net>
6132 * lib/m4sugar/foreach.m4 (m4_bmatch): Provide linear
6133 implementation for m4 1.4.x.
6134 * tests/m4sugar.at (m4@&t@_bmatch): New test.
6135 (recursion): Test the linear nature.
6136 * NEWS: Document the fix.
6138 Fix m4_cond corner case.
6139 * lib/m4sugar/foreach.m4 (_m4_cond): Ensure alternate
6140 implementation allows concatenation with subsequent text.
6141 * tests/m4sugar.at (m4@&t@_cond): Enhance test.
6143 Add test for m4_cond.
6144 * tests/m4sugar.at (m4@&t@_cond): New test.
6145 Reported by Ralf Wildenhues.
6147 2008-08-06 Eric Blake <ebb9@byu.net>
6149 Fix autoheader 2.62 regression on AC_DEFINE([__EXTENSIONS__]).
6150 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Use a
6151 unique key for the AH_VERBATIM.
6152 * tests/c.at (AC_USE_SYSTEM_EXTENSIONS): New test.
6153 * NEWS: Mention the fix.
6154 Reported by Andreas Schwab, analyzed by Stepan Kasal.
6156 Add linear m4_cond for m4 1.4.x.
6157 * lib/m4sugar/m4sugar.m4 (m4_cond): Split into...
6158 (_m4_cond): ...this, for fewer macros per iteration.
6159 * lib/m4sugar/foreach.m4 (_m4_cond): New implementation.
6160 * tests/m4sugar.at (recursion): Test it.
6161 * NEWS: Document the linear guarantee.
6163 Speed up diversion handling.
6164 * lib/m4sugar/m4sugar.m4 (m4_divert, m4_divert_push)
6165 (m4_divert_pop, m4_divert_text): Avoid dnl for fewer macro
6168 AC_C_CHAR_UNSIGNED is not strictly necessary.
6169 * doc/autoconf.texi (C Compiler) <AC_C_CHAR_UNSIGNED>: Mention a
6170 portable alternative to this macro.
6172 Reported by Hallvard B Furuseth.
6174 Update some files from upstream.
6175 * GNUmakefile: Update.
6176 * build-aux/announce-gen: Likewise.
6177 * build-aux/config.guess: Likewise.
6178 * build-aux/config.sub: Likewise.
6179 * build-aux/git-version-gen: Likewise.
6180 * build-aux/texinfo.tex: Likewise.
6181 * build-aux/vc-list-files: Likewise.
6182 * doc/make-stds.texi: Likewise.
6183 * doc/standards.texi: Likewise.
6185 2008-08-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6187 Fix AC_CONFIG_FILES([$var]) 2.62 regression.
6188 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Flatten
6189 whitespace in $ac_config_files and $ac_config_headers.
6190 * tests/torture.at (Parameterized AC_CONFIG_FILES): New test.
6191 Report by Andreas Schwab and Per Øyvind Karlsen.
6194 2008-07-30 Eric Blake <ebb9@byu.net>
6196 Fix bugs in previous version of m4_bpatsubsts.
6197 * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): Don't expand $1, and
6198 allow concatenation with subsequent text.
6199 * tests/m4sugar.at (m4@&t@_bpatsubsts): Enhance test.
6201 2008-07-29 Eric Blake <ebb9@byu.net>
6203 Add linear m4_bpatsubsts for m4 1.4.x.
6204 * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Match documentation
6205 about anchors, even for only one substitution.
6206 * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): New implementation.
6207 * doc/autoconf.texi (Conditional constructs) <m4_bpatsubsts>:
6208 Clarify behavior with regard to quoting.
6209 * tests/m4sugar.at (recursion): Test scaling of m4_bpatsubsts.
6210 (m4@&t@_bpatsubsts): New test.
6211 * NEWS: Document the linear guarantee.
6213 Tweak m4_do semantics.
6214 * lib/m4sugar/m4sugar.m4 (m4_do): Don't concat final argument with
6216 * lib/m4sugar/foreach.m4 (m4_do): Don't concat intermediate
6217 arguments, and avoid infinite loop.
6218 * doc/autoconf.texi (Evaluation Macros) <m4_do>: Document the
6220 * tests/m4sugar.at (m4@&t@_do): New test.
6223 * lib/m4sugar/m4sugar.m4 (m4_for): Use fewer macros.
6224 (_m4_for): Take additional parameter, for fewer m4_indir calls.
6225 * lib/m4sugar/foreach.m4 (_m4_foreach, _m4_shiftn, m4_do)
6226 (m4_reverse, _m4_list_pad, _m4_list_cmp): Adjust all callers.
6227 * doc/autoconf.texi (Looping constructs) <m4_for>: Document subtle
6228 semantic change caused by the optimization.
6229 * tests/m4sugar.at (M4 loops): Test the new semantics.
6231 One more m4_list_cmp tweak.
6232 * lib/m4sugar/m4sugar.m4 (_m4_list_cmp_1): Don't defer shift.
6233 * lib/m4sugar/foreach.m4 (m4_list_cmp): Fix comment.
6234 * tests/m4sugar.at (recursion): Test both directions of list
6237 Add m4_reverse, and improve m4_list_cmp.
6238 * lib/m4sugar/m4sugar.m4 (m4_reverse): New macro.
6239 (m4_list_cmp): Rewrite to give linear behavior with M4 1.6 on an
6241 * lib/m4sugar/foreach.m4 (m4_reverse): Add the M4 1.4.x
6243 * tests/m4sugar.at (recursion): Test it.
6244 * doc/autoconf.texi (Evaluation Macros) <m4_reverse>: Document
6246 (Text processing Macros) <m4_append>: Cross-reference to m4_set.
6247 * NEWS: Mention new macro.
6249 2008-07-28 Eric Blake <ebb9@byu.net>
6251 Avoid _m4_shiftn for m4 1.6 speedup.
6252 * lib/m4sugar/m4sugar.m4 (m4_foreach, _m4_foreach, m4_map)
6253 (_m4_map, m4_map_sep): Rewrite recursion to use one less m4_if.
6254 * lib/m4sugar/foreach.m4 (_m4_map): Accomodate changed signature.
6256 Implement O(n) unique element set creation.
6257 * lib/m4sugar/m4sugar.m4 (m4_set_add, m4_set_add_all)
6258 (m4_set_contains, m4_set_contents, m4_set_delete)
6259 (m4_set_difference, m4_set_dump, m4_set_empty, m4_set_foreach)
6260 (m4_set_intersection, m4_set_list, m4_set_listc, m4_set_remove)
6261 (m4_set_size, m4_set_union): New macros.
6262 * lib/m4sugar/foreach.m4 (m4_set_add_all): Add O(n) fallback for
6264 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, AC_SUBST): Use
6265 new m4_set API for the set most likely to be large.
6266 * doc/autoconf.texi (Set manipulation Macros): New node.
6267 * NEWS: Mention new macros.
6268 * tests/m4sugar.at (m4@&t@_set): New test.
6270 2008-07-25 Eric Blake <ebb9@byu.net>
6272 Avoid infinite aclocal loop.
6273 * lib/m4sugar/m4sugar.m4 (m4_init): Bypass m4_include tracing, so
6274 that aclocal doesn't insist on finding m4sugar/foreach.m4.
6276 Provide O(n) replacement macros for M4 1.4.x.
6277 * lib/m4sugar/foreach.m4: New file.
6278 (m4_foreach, m4_case, _m4_shiftn, m4_do, m4_dquote_elt, _m4_map)
6279 (m4_join, m4_joinall, m4_list_cmp, _m4_minmax): Replace m4sugar
6280 macros based on $@ recursion [fast on M4 1.6, but quadratic on M4
6281 1.4.x] with versions based on m4_for/m4_foreach [slow on 1.6, but
6283 * lib/m4sugar/m4sugar.m4 (m4_init): Dynamically load new file if
6284 older M4 is assumed.
6285 (m4_map_sep): Optimize.
6286 (m4_max, m4_min): Refactor, by adding...
6287 (_m4_max, _m4_min, _m4_minmax): ...more efficient helpers.
6288 (m4_defn, m4_popdef, m4_undefine): Use foreach recursion.
6289 * lib/m4sugar/Makefile.am (dist_m4sugarlib_DATA): Distribute new
6291 * tests/m4sugar.at (M4 loops): Add a stress test that takes
6292 forever if m4_foreach and friends are quadratic.
6293 * NEWS: Mention this.
6295 2008-07-21 Eric Blake <ebb9@byu.net>
6297 Ignore undefined macros, necessary with m4 1.6.
6298 * bin/autoupdate.in (_au___undefine): New macro,...
6299 (_au__undefine): ...wrapped by ifdef to silence m4 warnings.
6300 Reported by Ralf Wildenhues.
6303 * GNUmakefile: Grab from upstream, to fix issue where 'make
6304 install' would allow installation of stale version string.
6306 2008-07-19 Eric Blake <ebb9@byu.net>
6308 Support multiple arguments to m4_defn, m4_popdef, and m4_undefine.
6309 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Loop
6310 through all variables, per POSIX and newer m4.
6311 (_m4_text_wrap): Exploit the looping capabilities.
6312 * tests/m4sugar.at (m4@&t@_defn): Test this.
6313 * NEWS: Document it.
6314 * doc/autoconf.texi (Redefined M4 Macros) <m4_defn, m4_popdef>
6315 <m4_undefine>: Likewise.
6317 Reduce overhead of m4_builtin([defn]).
6318 * lib/m4sugar/m4sugar.m4 (_m4_defn, _m4_popdef, _m4_undefine): New
6319 internal macros, which are slightly more efficient than
6320 m4_builtin([defn]) and company.
6321 (m4_defn, m4_popdef, m4_undefine, m4_warn, m4_ifset)
6322 (_m4_dumpdefs_up, _m4_dumpdefs_down, _m4_wrap, m4_for)
6323 (_m4_divert_n_stack, m4_divert_pop, m4_expansion_stack_push)
6324 (m4_expansion_stack_dump, _m4_defun_pro, _m4_defun_epi)
6325 (_m4_defun_epi_outer, _m4_require_call, m4_combine, m4_append)
6326 (_m4_append_uniq, m4_append_uniq_w, _m4_text_wrap, m4_text_box)
6327 (m4_version_prereq): Use them.
6329 Use warnings from m4 when available.
6330 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Don't
6331 define slower wrapper if m4 will warn on our behalf; key off of
6332 __m4_version__, added alongside the new warnings in m4 1.6.
6333 * tests/m4sugar.at (m4@&t@_defn): New test.
6335 2008-07-18 Eric Blake <ebb9@byu.net>
6338 * lib/m4sugar/m4sugar.m4 (m4_joinall, _m4_joinall): New macros.
6339 * tests/m4sugar.at (m4@&t@_join): Test them.
6340 * doc/autoconf.texi (Text processing Macros) <m4_join>: Document
6344 2008-07-17 Stepan Kasal <skasal@redhat.com>
6345 and Eric Blake <ebb9@byu.net>
6347 Improve documentation of config.h.in template rules.
6348 * doc/autoconf.texi (Header Templates): Mention rules on comments
6349 and whitespace, and that the user cannot rely on #undef to survive
6350 through config.status.
6352 2008-07-16 Eric Blake <ebb9@byu.net>
6354 Revert m4_prepend; it is less efficient, and unused by bison.
6355 * lib/m4sugar/m4sugar.m4 (m4_prepend, m4_prepend_uniq)
6356 (m4_prepend_uniq_w): Delete addition from 2008-07-11.
6357 (_m4_grow_uniq_1): Rename back...
6358 (_m4_append_uniq): ...to this.
6359 * NEWS: Revert NEWS blurb.
6360 * doc/autoconf.texi (Text processing Macros) <m4_prepend>: Delete.
6361 * tests/m4sugar.at (m4@&t@_prepend): Delete.
6363 2008-07-15 Eric Blake <ebb9@byu.net>
6365 Avoid failure if version.m4 is omitted but m4_PACKAGE_* unused.
6366 * lib/m4sugar/m4sugar.m4 (m4_version_compare): Provide alternate
6367 definition for non-Autoconf clients of m4sugar.
6369 2008-07-14 Eric Blake <ebb9@byu.net>
6371 Tighten bound of potential speed of m4_append.
6372 * doc/autoconf.texi (Text processing Macros) <m4_append>
6373 <m4_prepend>: If m4 is fixed, m4_append can be linear rather than
6375 * lib/m4sugar/m4sugar.m4 (m4_append, m4_append_uniq): Fix comments.
6376 Analysis by Bruno Haible.
6378 2008-07-11 Eric Blake <ebb9@byu.net>
6380 Inherit improvements from bison's fork of m4sugar.
6381 * lib/m4sugar/m4sugar.m4 (m4_PACKAGE_VERSION): Ignore failure to
6382 find version.texi, since bison does not provide it.
6383 (m4_prepend): Add new macro, from bison.
6384 (m4_prepend_uniq, m4_prepend_uniq_w): Add new macros, for
6386 (_m4_append_uniq): Rename...
6387 (_m4_grow_uniq_1): ...to this to share implementation, and
6388 optimize initial assignment.
6389 (m4_append_uniq_w): Adjust caller.
6390 * NEWS: Document new macros.
6391 * doc/autoconf.texi (Text processing Macros) <m4_append>: Mention
6392 speed consideration.
6393 <m4_prepend>: Document the new prepend variants.
6394 * tests/m4sugar.at (m4@&t@_prepend): New test.
6396 Work around M4 1.6 warning on undefined macros.
6397 * lib/m4sugar/m4sugar.m4 (changeword, symbols): Don't rename if
6398 not already available as builtins.
6400 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6402 * doc/autoconf.texi (@dvar): Remove trailing newline.
6403 (@ovar): Likewise. Fix macro documentation.
6405 2008-07-02 Stepan Kasal <skasal@redhat.com>
6407 Add quotes to the header of autoscan-generated source.
6408 * bin/autoscan.in: Add quotes to AC_PREREQ and AC_INIT.
6410 2008-06-28 Andreas Schwab <schwab@suse.de>
6412 * doc/autoconf.texi (autoscan Invocation): Fix spacing.
6413 (autoconf Invocation): Likewise.
6414 (autoreconf Invocation): Likewise.
6415 (autoheader Invocation): Likewise.
6416 (autom4te Invocation): Likewise.
6418 2008-06-19 Eric Blake <ebb9@byu.net>
6420 Add comment explaining recent patch.
6421 * lib/autotest/general.m4 (AT_INIT) <at_pass_list>: Explain choice
6422 of * vs. ? globbing.
6424 2008-06-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6426 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not warn when not
6427 linking a file to itself.
6428 Report by Bruno Haible.
6430 2008-06-19 Eric Blake <ebb9@byu.net>
6433 * GNUmakefile: Grab from upstream, to fix VPATH 'make dist' bug.
6434 Reported by Stepan Kasal.
6436 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6438 Reorganize autotest files, factorize for parallel execution.
6439 * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD): Move definition
6440 earlier in the file.
6441 (AT_INIT): Create line number cache in
6442 $at_suite_dir/at-source-lines.
6443 <at_helper_dir>: New directory at-groups below $at_suite_dir.
6444 Add comment explaining the new directory structure.
6445 (at_func_group_prepare, at_func_group_postprocess): New shell
6446 functions to factorize per-test group work. Keep the actual
6447 test execution outside of a shell function in order to avoid
6448 zsh 4.x exit status bugs.
6449 <at_check_line_file, at_status_file, at_stdout, at_stder1>
6450 <at_stderr, at_test_source>: Turn these into per-group files
6451 below $at_helper_dir. Also store test results there in files
6452 named pass, fail, xpass, xfail, skip. Let the parent collect
6453 results from $at_helper_dir. Adjust summary statistics
6454 computation and result output.
6456 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6458 Fix '#undef variable /* comment */' transform in config headers.
6459 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): For
6460 undefined preprocessor macros that are followed by a comment
6461 in the header template, do not create nested comments in the
6463 * tests/torture.at (@%:@define header templates): Extend test.
6465 Report by Karsten Hopp <karsten@redhat.com>.
6467 2008-06-09 Eric Blake <ebb9@byu.net>
6469 Mark AC_TYPE_SIGNAL as obsolete.
6470 * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Switch to AU_DEFUN.
6471 * doc/autoconf.texi (Function Portability): Update documentation.
6472 (Particular Types): Move AC_TYPE_SIGNAL...
6473 (Obsolete Macros): ...here, and mention why.
6474 * NEWS: Mention the change.
6476 Allow lib64 as a default X library location.
6477 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Add lib64.
6478 * NEWS: Mention the change.
6480 Reported by Brad Walker.
6482 2008-06-05 Eric Blake <ebb9@byu.net>
6484 Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
6485 * lib/autotest/general.m4 (AT_KEYWORDS): Expand argument prior to
6486 converting it to lower case.
6487 * tests/autotest.at (Keywords and ranges): Test this.
6488 * NEWS: Document the fix.
6490 Reported via Karsten Hopp, by Jochen Schmitt in
6491 https://bugzilla.redhat.com/show_bug.cgi?id=449973
6493 2008-06-03 Eric Blake <ebb9@byu.net>
6495 Fix 'make dist' regression from 2008-05-08.
6496 * Makefile.am (INSTALL): Add rule, to accomodate 'make dist' after
6497 GNUmakefile's _autoconf rule removes INSTALL.
6499 2008-05-27 Eric Blake <ebb9@byu.net>
6501 Document Solaris /bin/sh redirection pitfall.
6502 * doc/autoconf.texi (File Descriptors): Mention redirection bug.
6504 2008-05-14 Eric Blake <ebb9@byu.net>
6506 Improve documentation of ! issues.
6507 * doc/autoconf.texi (Limitations of Builtins) <!>: Touch up.
6508 Reported by Noah Misch.
6510 Document some FreeBSD shell bugs.
6511 * doc/autoconf.texi (Limitations of Builtins) <!>: Mention ! issue
6512 in compound pipe commands.
6513 <export>: Mention difference of exporting an undefined variable.
6514 (Shell Functions): Mention loss of $? in entry to shell functions.
6515 Extracted from the git mailing list.
6517 2008-05-13 Stepan Kasal <kasal@ucw.cz>
6519 Work around MSYS and Cygwin bugs when dealing with trailing space.
6520 * tests/atlocal.in (func_sanitize_dir_name): Let atlocal succeed,
6521 even when platform bugs are tickled.
6522 Reported by Keith Marshall and Eric Blake.
6524 2008-05-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6526 Let AC_MSG_FAILURE report pwd.
6527 * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE):
6528 Output $ac_pwd along with fatal failure.
6529 * tests/torture.at (Deep Package): Extend test.
6530 Reported numerous times against GCC, and probably other packages.
6532 2008-05-12 Eric Blake <ebb9@byu.net>
6534 Enforce --help and --version compliance.
6535 * configure.ac (AM_INIT_AUTOMAKE): Add std-options option.
6537 2008-05-08 Keith Marshall <keithmarshall@users.sourceforge.net> (tiny change)
6539 Avoid case-insensitive `make install' vs. `INSTALL' conflict.
6540 * Makefile.am ($(srcdir)/INSTALL): Replace all references...
6541 ($(abs_srcdir)/INSTALL): ...with this.
6543 2008-05-06 Eric Blake <ebb9@byu.net>
6546 * doc/autoconf.texi (Shell Substitutions): Drop at_ prefix.
6548 Avoid overfull \hbox.
6549 * doc/autoconf.texi (Versioning): Reword to fit line size.
6551 Document $(( )) pitfalls.
6552 * doc/autoconf.texi (Shell Substitutions): Mention octal
6553 vs. decimal. Mention autotest's at_func_arith.
6555 Improve behavior of './testsuite 01'.
6556 * lib/autotest/general.m4 (AT_INIT) <at_func_validate_ranges>:
6557 Alter usage to eval its arguments, in order to normalize away
6558 leading zero. All callers updated.
6559 * tests/autotest.at (Keywords and ranges): Test range
6560 normalization with leading 0.
6562 2008-04-26 Eric Blake <ebb9@byu.net>
6564 Mention Solaris /usr/ucb/tr pitfall.
6565 * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Add section.
6566 Reported by Bruno Haible and Jim Meyering.
6568 2008-04-24 Eric Blake <ebb9@byu.net>
6570 Mention m4sugar's internal quote strings.
6571 * doc/autoconf.texi (Quadrigraphs): Mention alternate quote used
6572 in m4sugar, and how to still output it literally.
6573 * tests/m4sugar.at (m4@&t@_split): And test it.
6574 Reported by Joel E. Denny.
6576 2008-04-23 Eric Blake <ebb9@byu.net>
6578 Allow unbalanced () in m4_expand.
6579 * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Use more complex
6581 (m4_noquote, _m4_split): Use consistent complex quote.
6582 * tests/autotest.at (Left paren, Right paren): Test this.
6583 (Parentheses): Ensure new quadrigraphs still work.
6584 (AT_CHECK_AT_TITLE_CHAR): All title char tests exercise m4_expand.
6585 * NEWS: Mention the fix.
6586 * doc/autoconf.texi (Quadrigraphs): Revert mention of macros that
6587 require quadrigraphs for ().
6588 (Evaluation Macros) <m4_expand>: Relax the restriction against
6590 (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
6591 (Writing Testsuites) <AT_SETUP>: Likewise.
6592 Reported by Joel E. Denny, fix suggested by Noah Misch.
6594 2008-04-22 Eric Blake <ebb9@byu.net>
6596 Support unbalanced () in AT_SETUP by adding two new quadrigraphs.
6597 * bin/autom4te.in (handle_output): Substitute @{:@ and @:}@.
6598 (handle_traces): Likewise.
6599 * lib/m4sugar/m4sugar.m4 (m4_qlen): Account for new quadrigraphs.
6600 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Add new tests.
6601 * doc/autoconf.texi (Quadrigraphs): Document them.
6602 (Evaluation Macros) <m4_expand>: Enhance documentation.
6603 (Text processing Macros) <m4_text_box>: Document cases where
6604 quadrigraphs can help for problemetic unbalanced parentheses.
6605 (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
6606 (Writing Testsuites) <AT_SETUP>: Likewise.
6607 (Limitations of Builtins) <case>: Consolidate text on unbalanced
6608 parentheses, and add an example of creative comments.
6609 * NEWS: Document the addition.
6610 Reported by Joel E. Denny.
6612 2008-04-16 Eric Blake <ebb9@byu.net>
6614 Document pdksh exec behavior.
6615 * doc/autoconf.texi (Limitations of Builtins) <exec>: New
6617 Discovered by Jim Meyering.
6619 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6621 * tests/autotest.at (AT_CHECK_AT): Allow to pass additional
6622 arguments to the inner suite.
6623 (errexit, input from stdin): New tests.
6625 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6627 * NEWS: Post-release update.
6629 2008-04-10 Eric Blake <ebb9@byu.net>
6631 AC_AUTOCONF_VERSION might contain arbitrary macro names.
6632 * doc/autoconf.texi (Versioning): Mention problem with expansion.
6633 * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Adjust test.
6635 2008-04-09 Slava Sysoltsev <Viatcheslav.Sysoltsev@h-d-gmbh.de> (tiny change)
6637 Flush buffered output before exit.
6638 * bin/autom4te.in (handle_output): Explicitly close file.
6640 See http://lists.gnu.org/archive/html/autoconf/2008-04/msg00026.html.
6642 2008-04-08 Eric Blake <ebb9@byu.net>
6644 Generate web docs for 2.62.
6645 * doc/autoconf.texi (Evaluation Macros): Fix typo.
6646 (Notices): Use recommended means to escape RCS keyword.
6647 * cfg.mk (gnulib_dir): New macro.
6648 (web-manual): New target.
6650 2008-04-05 Eric Blake <ebb9@byu.net>
6652 Release Version 2.62.
6653 * NEWS: Mention the release.
6655 2008-04-04 Stepan Kasal <kasal@ucw.cz>
6656 and Eric Blake <ebb9@byu.net>
6658 Return back to GPLv2+, until the text of the exceptions is
6659 finalized, reverting the change from 2007-07-03 and the first
6660 part of the change from 2007-07-20.
6661 * COPYING: Revert to GPLv2.
6662 * COPYINGv3: New file, since some auxiliary build tools, used for
6663 building autoconf and not installed, are GPLv3.
6664 * Makefile.am (EXTRA_DIST): Distribute COPYINGv3.
6665 * NEWS: Remove mention of GPLv3.
6666 * README: Clarify situation regarding GPLv3.
6668 2008-04-05 Eric Blake <ebb9@byu.net>
6670 Prepare for release.
6671 * maint.mk (announcement): Avoid deleted option.
6672 * cfg.mk (release_archive_dir): Use default.
6673 * build-aux/gnupload: New file, from automake/gnulib.
6674 * Makefile.am (EXTRA_DIST): Distribute it.
6675 * .x-sc_two_space_separator_in_usage: New file, to exempt gnupload
6678 2008-04-05 Jim Meyering <meyering@redhat.com>
6679 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6681 Work around CR EOL markers on OS/2 (www.ecomstation.com Ecs v2 rc4)
6682 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When CR
6683 is the EOL marker, skip a step that would remove and translate
6684 carriage return bytes.
6686 Reported by Elbert Pol.
6688 2008-04-05 Eric Blake <ebb9@byu.net>
6690 Avoid some autoreconf -Wall warnings.
6691 * configure.ac: Use proper quoting, to be a good example.
6692 (PACKAGE_NAME): Remove setting covered by autoconf.
6693 (AM_INIT_AUTOMAKE): Bump automake requirement, for html rules.
6694 * doc/Makefile.am (TEXI2DVI): Remove settings covered by
6696 (html, autoconf_1.html, standards_1.html): Likewise.
6697 (TEXI2HTML, TEXI2HTML_FLAGS): Remove unused macros.
6698 * Makefile.am (html): Likewise.
6699 * doc/autoconf.texi (Quoting and Parameters): Add missing section
6701 * tests/Makefile.am (AUTOMAKE_OPTIONS): Intentionally ignore
6702 warning about our override, until Automake is fixed.
6703 * README-hacking: Document minimum requirements for bootstrap.
6705 2008-04-03 Eric Blake <ebb9@byu.net>
6707 Fix version number generation in man pages.
6708 * Makefile.am (EXTRA_DIST): Distribute .version.
6709 (.version): New rule.
6710 * man/Makefile.am (common_dep): Depend on .version, not
6712 (.x.1): Use package name for version string.
6713 * GNUmakefile [!_have-Makefile]: Sync from upstream, again.
6714 * build-aux/git-version-gen: Sync from upstream.
6716 More maintainer tweaks: pass 'make maintainer-distcheck'.
6717 * GNUmakefile (_is-dist-target): Sync from upstream.
6718 * build-aux/vc-list-files: Sync from upstream, yet again.
6719 * tests/atlocal.in (unsupported_fs_chars): Always remove tdir.
6720 * tests/Makefile.am (EXTRA_DIST): Don't distribute the built
6722 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump year.
6724 Fix VPATH 'make syntax-check'.
6725 * maint.mk (VC_LIST, VC_LIST_EXCEPT, sc_changelog)
6726 (sc_prohibit_jm_in_m4, makefile-check): Support VPATH.
6727 (author_mark_check): Avoid error message.
6728 * build-aux/vc-list-files: Sync from upstream again.
6729 * build-aux/texinfo.tex: Likewise.
6731 Sync files from upstream, and pass 'make syntax-check'.
6732 * config/announce-gen: Move...
6733 * build-aux/announce-gen: ...here, and sync from gnulib.
6734 * Makefile.am (EXTRA_DIST): Adjust accordingly.
6735 * cfg.mk (announce_gen): Likewise.
6736 (prev_version_file): Delete, relying on default in maint.mk.
6737 (gpg_key_ID): New macro.
6738 (url_dir_list): Rewrite to match coreutils.
6739 * config/prev-version.txt: Move...
6740 * .prev-version: ...here, and adjust to 2.61.
6741 * build-aux/vc-list-files: Sync from coreutils.
6742 * maint.mk: Resynchronize with coreutils, where possible.
6743 (ME): Remove $(srcdir) from definition.
6745 (GIT, VC, VC-tag): New macros.
6746 (CVS_LIST, CVS_LIST_EXCEPT): Rename...
6747 (VC_LIST, VC_LIST_EXCEPT): ...to this.
6748 (cvs-tag-check): Delete.
6749 (cvs-diff-check): Rename...
6750 (vc-diff-check): ...to this.
6751 (sc_file_system): Allow FHS acronym.
6752 * doc/autoconf.texi (Particular Functions): Recommend
6753 unconditional <config.h>.
6754 * build-aux/config.guess: Sync from upstream (manually).
6755 * build-aux/config.sub: Likewise.
6756 * build-aux/texinfo.tex: Likewise.
6757 * doc/make-stds.texi: Likewise.
6758 * doc/standards.texi: Likewise.
6759 * .gitattributes: Ignore whitespace problems in upstream files.
6761 2008-04-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6763 * doc/autoconf.texi (Limitations of Usual Tools): Mention awk %u
6765 Report by Peter O'Gorman.
6767 2008-04-02 Eric Blake <ebb9@byu.net>
6769 Recommend the just-released M4 1.4.11.
6770 * NEWS: Update recommendation.
6772 * doc/autoconf.texi (Introduction): Likewise.
6773 * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
6775 2008-04-01 Eric Blake <ebb9@byu.net>
6777 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Bump
6780 2008-03-28 Peter O'Gorman <peter@pogma.com>
6782 Find X11 on Mac OS X too.
6783 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT,_AC_PATH_X_XMKMF):
6784 Check for libX11 with extensions dylib la and dll too.
6786 Reported by Martin Costabel.
6788 2008-03-28 Eric Blake <ebb9@byu.net>
6790 Update TODO based on completed tasks.
6791 * TODO (AC_PROG_INSTALL takes multiple files): Done.
6792 (AC_GNU_SOURCE deprecation): Done, see AC_USE_SYSTEM_EXTENSIONS.
6793 (AC_COMPILE_IFELSE documentation): Done.
6794 (Tracing builtins): Done, now that we require M4 1.4.5.
6795 (AC_PROG_CC_POSIX suggestion, providing header files)
6796 (AC_TYPE_SIGNAL): Not needed; gnulib's approach is better.
6797 (cache consistency): Done with precious variables.
6799 2008-03-26 Eric Blake <ebb9@byu.net>
6801 Document --trace=macro:format in --help output.
6802 * bin/autom4te.in (help): Mention optional trace format.
6803 * bin/autoconf.as (usage): Likewise.
6805 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Fix
6806 typos in last patch.
6807 Reported by Ralf Wildenhues.
6809 2008-03-26 Jim Meyering <meyering@redhat.com>
6811 Fix texinfo syntax error.
6812 * doc/autoconf.texi (Limitations of Usual Tools): s/@kbd {/@kbd{/
6814 2008-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6816 Warn, not fail on whitespace-only precious variable differences.
6817 * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Output
6818 precious variable differences less ambiguous with `ugly-quotes'.
6819 If their settings differ only in whitespace, do not fail, but
6820 reuse the old value.
6821 * tests/torture.at (AT_CHECK_AC_ARG_VAR): Extend macro to allow
6822 an optional status and expected-warning argument. Fix m4
6823 quotation for initial value.
6824 (AC_ARG_VAR): Also test for whitespace-only differences, and
6825 that the old value is retained in this case.
6826 * doc/autoconf.texi (Setting Output Variables): Document this.
6828 Report and initial patch by Paolo Bonzini.
6830 2008-03-26 Eric Blake <ebb9@byu.net>
6832 Document busybox sed bug.
6833 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Mention
6834 restrictions when using back-references.
6835 Reported by Vincent Lefevre:
6836 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13013>.
6838 Document Automake interaction with AC_CONFIG_MACRO_DIR.
6839 * doc/autoconf.texi (Input): Mention ACLOCAL_AMFLAGS for automake
6842 Reported by Chris Pickett.
6844 2008-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6846 * tests/autotest.at (Using atlocal): Quote instances of `pwd`.
6848 * tests/local.at (AT_CHECK_M4): Factorize warning output
6850 Suggested by Eric Blake.
6852 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6854 Fix .exe-related test failure on MinGW.
6855 * tests/local.at (AT_CHECK_M4): Normalize `/bin/m4.exe' correctly
6856 for comparing warning output.
6858 Fix Fortran testsuite failures with gfortran 4.3.
6859 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): When scanning
6860 verbose compiler output, skip lines that set variables; gfortran
6861 4.3 sets LIBRARY_PATH, COMPILER_PATH, COLLECT_GCC_OPTIONS.
6863 Report by Vincent Lefèvre.
6865 2008-03-21 Eric Blake <ebb9@byu.net>
6867 * GNUmakefile: Resynchronize with gnulib.
6869 Document more uses of $cross_compiling.
6870 * doc/autoconf.texi (Runtime): Document that a temporary override
6873 Reported by Ineiev, example by Ralf Wildenhues.
6875 Don't swallow $1 in textual local variables.
6876 * lib/m4sugar/m4sugar.m4 (m4_combine): Don't use overquoting and
6877 expansion of text arguments, as that swallows $1.
6878 (m4_text_wrap): Likewise, by splitting out...
6879 (_m4_text_wrap): ...new helper macro. Also, allow arbitrary
6880 expression for width.
6881 * tests/m4sugar.at (m4@&t@_text_wrap): Test this.
6882 (m4@&t@_combine): Likewise.
6884 2008-03-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6886 Avoid leftover files on Leopard.
6887 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove a.out.dSYM
6888 directory created on darwin.
6889 (AC_NO_EXECUTABLES): Likewise; also remove objects which may be
6890 left over from a broken link.
6891 * tests/c.at (AC_NO_EXECUTABLES (working linker))
6892 (AC_NO_EXECUTABLES (broken linker)): New tests.
6893 Report by Gary V. Vaughan.
6895 * lib/autom4te.in (Automake-preselections): Trace
6896 _AM_COND_IF, _AM_COND_ELSE, _AM_COND_ENDIF.
6898 2008-03-20 Eric Blake <ebb9@byu.net>
6900 Kill more CVS references.
6901 * README-cvs: Delete. See README-hacking instead.
6902 * README-hacking: Update wording, based on older file.
6903 * BUGS: Remove CVS mention.
6905 2008-03-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6907 * tests/tools.at (autotools and whitespace in file names): Skip
6908 if aclocal is not present.
6910 2008-03-20 Eric Blake <ebb9@byu.net>
6912 Sync GNUmakefile with gnulib.
6913 * GNUmakefile (Makefile.cfg): Rename...
6914 (cfg.mk): ...to this, and make optional.
6915 (GNUmakefile.cfg): Delete, redundant with cfg.mk.
6916 (Makefile.maint): Rename...
6917 (maint.mk): ...to this.
6918 (all) [!_have-Makefile]: Rename...
6919 (abort-due-to-no-makefile): ...to this, and invoke via
6920 .DEFAULT_GOAL to pick up all targets.
6921 * Makefile.cfg: Rename...
6922 * cfg.mk: ...to this.
6923 * Makefile.maint: Rename...
6924 * maint.mk ...to this.
6925 (ME): Reflect name change.
6926 (makefile-check, m4-check, author_mark_check, msg): Use $(ME)
6927 rather than hard-coded name.
6928 * GNUmakefile.cfg: Delete; move rules into cfg.mk.
6929 * Makefile.am (EXTRA_DIST): Reflect file name changes.
6930 * .x-sc_prohibit_atoi_atof: Likewise.
6931 * lib/freeze.mk: Likewise.
6933 2008-03-19 Stepan Kasal <kasal@ucw.cz>
6935 * doc/autoconf.texi (Introduction): Improve the paraphrase of
6936 Henry Spencer's quotation.
6938 2008-03-19 Eric Blake <ebb9@byu.net>
6940 AC_CONFIG_HEADERS replaced AC_CONFIG_HEADER.
6941 * bin/autoscan.in (output): Avoid obsolete spelling.
6942 * tests/local.at (AC_STATE_SAVE): Update usage.
6944 Reported by John Calcote.
6946 Emphasize that ease of configure triumphs over ease of autoconf.
6947 * doc/autoconf.texi (Introduction): Expand on primary
6948 vs. secondary goal of autoconf.
6950 Inspired by Paul Smith.
6952 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6954 * lib/Autom4te/FileUtils.pm (handle_exec_errors): New argument
6955 $hint, show if the executing program does not exist.
6956 (xsystem_hint): New function, like xsystem but allows to pass
6958 * bin/autoreconf.in: Use xsystem_hint for spawning autopoint and
6960 Report by Bruce Korb.
6962 2008-03-14 Stepan Kasal <kasal@ucw.cz>
6964 * lib/Autom4te/ChannelDefs.pm, tests/fortran.at,
6965 tests/mktests.sh, tests/wrapper.as: Fix typos.
6967 2008-03-12 Eric Blake <ebb9@byu.net>
6969 Fix yesterday's regression in m4_wrap([$1]).
6970 * lib/m4sugar/m4sugar.m4 (_m4_wrap): Don't directly invoke wrapped
6971 text, since it may contain text that looks like parameters.
6972 * tests/m4sh.at (AS@&t@_INIT cleanup): Enhance test.
6974 2008-03-11 Eric Blake <ebb9@byu.net>
6976 Improve error messages for common testsuite bugs.
6977 * lib/autotest/general.m4 (_AT_DEFINE_INIT, _AT_DEFINE_SETUP): New
6978 macros for defining order-enforced macros.
6979 (AT_INIT, AT_SETUP, AT_CLEANUP, AT_BANNER, AT_XFAIL_IF)
6980 (AT_CAPTURE_FILE, AT_DATA, AT_CHECK, AT_CHECK_NOESCAPE): Add error
6981 messages when order violations are detected.
6982 * tests/autotest.at (AT_CHECK_AT_SYNTAX): New helper macro.
6983 (AT_SETUP without AT_INIT, AT_BANNER without AT_INIT)
6984 (AT_CLEANUP without AT_INIT, Missing AT_CLEANUP)
6985 (AT_CHECK without AT_SETUP, AT_DATA without AT_SETUP)
6986 (AT_XFAIL_IF without AT_DATA, AT_KEYWORDS without AT_SETUP,
6987 (AT_CLEANUP without AT_SETUP, AT_BANNER inside AT_SETUP)
6988 (AT_SETUP inside AT_SETUP, Multiple AT_INIT)
6989 (Banner-only test suite): New tests.
6990 Reported by Christopher Hulbert.
6992 Tweak m4_wrap to force FIFO or LIFO semantics.
6993 * lib/m4sugar/m4sugar.m4 (m4_wrap): Override M4 implementation.
6994 (m4_wrap_lifo, _m4_wrap): New macros.
6995 * lib/m4sugar/m4sh.m4 (AS_INIT): Combine all cleanup into known
6996 order, prior to m4sugar's.
6997 (_AS_DETECT_BETTER_SHELL): Use cleanup parameter, rather than
6999 * lib/autotest/general.m4 (AT_INIT): Combine all cleanup into
7000 known order, prior to m4sh's.
7001 * doc/autoconf.texi (Diagnostic Macros) <m4_fatal>: Document
7003 (Redefined M4 Macros) <m4_wrap>: Rewrite documentation to match
7005 * tests/m4sh.at (AS_INIT cleanup): New test.
7006 * NEWS: Document the change.
7008 2008-03-10 Eric Blake <ebb9@byu.net>
7010 Encode nested autotest data.
7011 * tests/autotest.at (AT_CHECK_AT_PREP): Avoid raw AT_ in output.
7012 (unusual file names): Likewise.
7013 (m4_pattern_allow): Remove loophole, to make it easier to catch
7014 poorly written tests.
7016 Factor some autotest tests.
7017 * tests/autotest.at (AT_CHECK_AT_PREP): New macro, to factor out
7018 common initialization.
7019 (AT_CHECK_AT, Banners, Keywords and ranges, srcdir propagation)
7020 (whitespace in absolute testdir, unusual file names): Use it.
7022 2008-03-06 Eric Blake <ebb9@byu.net>
7024 Minor documentation fix.
7025 * doc/autoconf.texi (Evaluation Macros): Fix typo.
7027 2008-03-04 Eric Blake <ebb9@byu.net>
7029 Make AT_CHECK act like a simple command.
7030 * lib/autotest/general.m4 (_AT_CHECK): Wrap commands in {;}.
7031 * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Test it.
7033 2008-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7035 On MinGW, substitution of CR and 0xFF fails.
7036 * tests/torture.at (Substitute and define special characters):
7037 MinGW awk cannot handle 0xFF, and on MinGW, the test does the
7040 2008-03-04 Eric Blake <ebb9@byu.net>
7042 Pull in recent maintainer improvements from coreutils.
7043 * GNUmakefile (_is-dist-target): 'make distclean' should not
7045 (_dummy): Change directories before removing autom4te.cache.
7046 (check dist distcheck install) [!_have-Makefile]: Provide nicer
7048 * configure.ac (AC_CONFIG_LINKS): Copy GNUmakefile into VPATH
7049 builds, after initial bootstrap.
7050 * Makefile.am (distclean-local): Work around current automake bug.
7051 * Makefile.maint (ME): Allow VPATH usage.
7053 Use git-merge-changelog when available.
7054 * .gitattributes: New file.
7055 * README-hacking: Document use of git-merge-changelog.
7057 Work around cygwin bug.
7058 * tests/atlocal.in (unsupported_fs_chars): Avoid cygwin bug where
7059 "touch 't\'" creates regular file 't'.
7061 Ignore tests that require read-only directories under root.
7062 * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Skip
7063 no-write portion if user has root-like privileges.
7065 2008-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7067 * lib/autotest/general.m4 (AT_INIT): Fix detection of '-C -'.
7069 2008-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7071 autoreconf -m now honors $MAKE.
7072 * bin/autoreconf.in ($run_make): Renamed from ...
7073 ($make): ... this. Use now as command to run `make',
7074 overridden by $MAKE. Document this in --help output.
7075 * doc/autoconf.texi (autoreconf Invocation): Document
7076 all environment variables honored by autoreconf.
7078 Report by Paul Eggert.
7080 2008-03-03 Eric Blake <ebb9@byu.net>
7082 Documentation improvements.
7083 * doc/autoconf.texi (Looping constructs): s/recurses/repeats/.
7084 (Evaluation Macros): Drop `1' suffix from metasyntax variable name
7085 that preceeds @dots. Improve wording.
7086 (Text processing Macros): Drop `1' suffix from metasyntax variable
7087 name that preceeds @dots.
7088 (Number processing Macros): Drop `1' suffix from metasyntax
7089 variable name that preceeds @dots. Improve wording.
7090 * lib/m4sugar/m4sugar.m4 (m4_cmp): Comment wording fix.
7091 Suggested by Ralf Wildenhues.
7093 2008-03-02 Jim Meyering <meyering@redhat.com>
7095 Don't infloop upon "make dist".
7096 * GNUmakefile: Merge from coreutils.
7097 * Makefile.am (dist-hook): Inject .tarball-version into tarball,
7099 * configure.ac (AC_INIT): Use .tarball-version, not .version.
7100 * build-aux/git-version-gen: Update from gnulib.
7102 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7104 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
7105 Before using /dev/full, check that it is a writable character
7107 Report by Benoit Sigoure and Eric Blake.
7109 Actually test that @configure_input@ is expanded correctly.
7110 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
7111 Actually check generated file contents for the name of the
7112 generated file, using AC_PROG_FGREP and $FGREP.
7114 2008-03-01 Benoit Sigoure <tsuna@lrde.epita.fr>
7116 Be nice with file systems that don't handle unusual characters.
7117 * tests/atlocal.in (func_sanitize_file_name)
7118 (func_sanitize_dir_name): New shell functions.
7119 * tests/tools.at (autom4te and whitespace in file names)
7120 (autotools and whitespace in file names): Use them.
7121 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
7122 Cover more potentially problemtic file names. Use the new
7125 Properly handle funny file names for headers in config.status.
7126 The test suite did not cover this bug because the code was not
7127 quoting properly the arguments of `rm -f' (which "fails" silently)
7128 as well as the arguments of `diff' (whose output was redirected to
7129 /dev/null so we couldn't see its error message).
7130 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Properly quote the
7131 file names passed to `rm' and `diff'.
7132 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
7133 Add a regression test.
7135 2008-03-01 Benoit Sigoure <tsuna@lrde.epita.fr>
7136 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7138 Properly expand @configure_input@ in config.status.
7139 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_MAIN_LOOP):
7140 Escape the backslashes and ampersands in $configure_input before
7141 using it in the sed replacement string to expand @configure_input@.
7142 Report by Eric Blake and Patrick Welche.
7144 2008-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7146 Ignore errors from ./run on w32.
7147 * tests/autotest.at (whitespace in absolute testdir):
7148 Ignore stderr for `./run' which fails to remove the
7149 busy test directory on w32.
7151 2008-02-22 Eric Blake <ebb9@byu.net>
7153 Improve documentation for writing autotest suites.
7154 * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention that
7155 checks must live inside a test group.
7156 Reported by Christopher Hulbert.
7158 2008-02-21 Eric Blake <ebb9@byu.net>
7160 Sync git-version-gen from upstream.
7161 * build-aux/git-version-gen: Pull from gnulib.
7162 * configure.ac (AC_INIT): Adjust to new calling convention.
7164 2008-02-12 Eric Blake <ebb9@byu.net>
7166 Avoid trailing space in config.h with AC_DEFINE([var], []).
7167 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Explicitly mark empty
7168 defines with a comment.
7170 2008-02-08 Eric Blake <ebb9@byu.net>
7172 Fix texinfo typos in previous patch.
7173 * doc/autoconf.texi (Site Defaults): s/[{}]/@&/g.
7174 Reported by Ralf Wildenhues.
7176 Describe a config.site that can be used for FHS compliance.
7177 * doc/autoconf.texi (Site Defaults): Fix typo. Add new example
7180 Reported by Jules Colding and Ralf Wildenhues.
7182 2008-02-02 Eric Blake <ebb9@byu.net>
7184 * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Fix typo.
7186 2008-02-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7188 * lib/autotest/general.m4 (AT_INIT): Fix --clean to work
7189 again, broken since introduction of `-C dir'.
7190 * tests/autotest.at (Choosing where testsuite is run): Test it.
7192 2008-01-30 Paul Eggert <eggert@cs.ucla.edu>
7194 * doc/autoconf.texi: Update Back-Cover text to reflect new GNU wording.
7196 2008-01-29 Eric Blake <ebb9@byu.net>
7198 Fix more autotest regressions.
7199 * lib/autotest/general.m4 (AT_LINE): Fix regression from
7200 2007-10-04 when file name is `dnl'.
7201 (AT_INIT) <PREPARE_TESTS>: Move command-line assignments...
7202 <TESTS_BEGIN>: ...to this new diversion, to fix regression from
7203 yesterday in libtool's testsuite.
7204 (_AT_ARG_OPTION): Detect write failure.
7205 * doc/autoconf.texi (Diversion support): Document PREPARE_TESTS to
7206 make libtool's use kosher. Document m4_init.
7207 (Programming in M4sh): Document AS_INIT.
7208 (Writing Testsuites): Document limitation of AT_DATA file name.
7209 * tests/autotest.at (unusual file names): New test.
7210 (Banners, Keywords and ranges): Use correct shell.
7212 More corner cases in testsuite VAR=VALUE handling.
7213 * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS): Fix quoting
7215 <PARSE_ARGS_END>: Also detect leading digits in assignments.
7216 * tests/autotest.at (Using atlocal): Enhance test to catch last
7219 * doc/autoconf.texi (Limitations of Builtins) <.>: Mention bash
7222 2008-01-28 Eric Blake <ebb9@byu.net>
7224 Fix regression in handling VAR=VALUE arguments to testsuite.
7225 * lib/autotest/general.m4 (AT_INIT) <PARSE_ARGS_END>: Detect
7226 leading = as invalid. Defer use of command-line variable
7228 <PREPARE_TESTS>: ...here, after atconfig has been sourced. Fix
7229 regression in sourcing files.
7230 * tests/autotest.at (Using atlocal): New test to catch this.
7231 (Debugging a successful test, Choosing where testsuite is run):
7233 Reported by Ralf Wildenhues.
7235 Document grep peculiarity.
7236 * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
7237 BSD behavior on binary input.
7239 Minor testsuite improvements.
7240 * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Use fewer
7241 forks when sanitizing PATH. Always output machine information,
7242 not just when atconfig was located.
7244 Add 'testsuite -C dir'.
7245 * lib/autotest/general.m4 (_AT_ARG_OPTION): Move missing argument
7247 (AT_INIT) <PARSE_ARGS_END>: ...here, since -k always takes
7249 <DEFAULTS>: Delay computation of variables based on $at_dir...
7250 <PREPARE_TESTS>: ...to here, since -C can change $at_dir.
7251 <TESTS>: Re-invoke via absolute name, since -C may be in effect.
7252 <PARSE_ARGS>: Parse new option.
7253 <HELP_TUNING>: Document it.
7254 * tests/autotest.at (Choosing where testsuite is run): New test
7256 (Keywords and ranges): Add test for missing -k argument.
7257 * NEWS: Document this.
7258 * doc/autoconf.texi (testsuite Invocation): Likewise.
7260 2008-01-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7262 * build-aux/config.guess, build-aux/config.sub,
7263 build-aux/texinfo.tex: Sync from gnulib.
7264 * doc/fdl.texi, doc/make-stds.texi, doc/standards.texi:
7267 2008-01-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7269 * doc/autoconf.texi (Particular Programs): Do not mention the
7270 Autoconf version in which the AC_PROG_INSTALL change was done.
7271 Suggested by Paul Eggert.
7273 2008-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7275 Fix --help=recursive with multiple AC_CONFIG_SUBDIRS.
7276 * lib/autoconf/general.m4 (_AC_INIT_HELP): If, for recursive help
7277 mode, we change to the source directory, also set $ac_pwd so we
7278 do not go back to the build tree for the next config subdir.
7279 * tests/torture.at (Deep Package): Extend test to contain two
7280 config subdirs on the top level.
7282 Fix parallel `maintainer-check'.
7283 * Makefile.am (maintainer-check-tests): Depend on `all'.
7284 Use `$(MAKE) $(AM_MAKEFLAGS)' instead of plain `make'.
7285 * tests/Makefile.am (maintainer-check-c++, maintainer-check-posix):
7287 (maintainer-check): Serialize the testsuite runs.
7289 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE2): Accept `+'
7290 in feature string for --enable/--with. Convert to underscore
7293 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Require that
7294 `install -c file1 file2 dir' works.
7295 * doc/autoconf.texi (Particular Programs): Document this.
7298 2008-01-21 Eric Blake <ebb9@byu.net>
7300 Improve documentation about default include directives.
7301 * doc/autoconf.texi (Generic Headers, Generic Declarations)
7302 (Generic Structures, Generic Types)
7303 (Generic Compiler Characteristics): Add links to
7304 AC_INCLUDES_DEFAULT.
7305 Reported by Reuben Thomas.
7307 2008-01-15 Eric Blake <ebb9@byu.net>
7309 * lib/m4sugar/m4sugar.m4 (m4_qlen): Use fewer macros.
7311 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7313 * tests/Makefile.am (noinst_SCRIPTS): Renamed from
7314 check_SCRIPTS. Building the wrappers for `all' allows help2man
7315 to use them for the manpages.
7316 Report by Benoit Sigoure.
7318 * bin/autoreconf.in: Discard stderr for $autoconf/$aclocal --help.
7320 2007-12-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7322 Fix some write failure cases in Autotest.
7323 * lib/autotest/general.m4 (AT_INIT): Do not exit successfully
7324 upon write failures for --help, --version, --list.
7325 Guard against write failures for intermediate created scripts.
7326 <at_func_create_debugging_script>: Do not make the debugging
7327 script executable if it is not complete.
7329 2007-12-12 Eric Blake <ebb9@byu.net>
7331 Fix thinko in earlier patch - m4_join isn't defined yet.
7332 * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
7333 (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
7334 (m4_require): Use m4_do, not m4_join.
7336 Fix some whitespace tests on cygwin.
7337 * tests/tools.at (autom4te and whitespace in file names): Restore
7338 font-lock. Create $TMPDIR before it might be used.
7340 Fix spurious testsuite failure with M4 1.4.11.
7341 * tests/local.at (AT_CHECK_M4): Cater to new m4 error message.
7343 Optimize AC_REQUIRE.
7344 * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
7345 (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
7346 (m4_require): Avoid extra macro calls.
7348 2007-12-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7350 * tests/torture.at (srcdir): Fix quoting.
7352 Do not pass top_srcdir to configure scripts in testsuite.
7353 * tests/autotest.at (srcdir propagation): Copy install-sh to
7355 (my only test): Drop setting of `top_srcdir'.
7356 * tests/base.at (Input/Output): Likewise.
7357 * tests/local.at (AT_CONFIGURE_AC): Copy install-sh,
7358 config.guess, and config.sub to test source tree.
7359 Drop AC_CONFIG_AUX_DIR setting.
7360 (AT_CHECK_CONFIGURE): Drop setting of `top_srcdir'.
7361 * tests/torture.at (Substitute a 2000-byte string): Drop
7362 AC_CONFIG_AUX_DIR setting, copy install-sh to test source tree.
7363 (Substitute a newline, datarootdir workaround): Likewise.
7364 (Define a newline): Adjust for linenumber changes in configure.ac.
7365 * tests/foreign.at (Libtool): Adjust comment to reflect changes.
7367 * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): Skip test
7368 if `pwd` contains whitespace.
7370 Quote $abs_top_srcdir in tests.
7371 * tests/local.at (AT_CHECK_PERL_SYNTAX): Likewise.
7372 * tests/tools.at (Syntax of the shell scripts): Likewise.
7374 * tests/m4sh.at (LINENO): Quote $0.
7376 Fix testsuite program wrapper for whitespace in `pwd`.
7377 The problem here is that the usual mantra is that command
7378 variables can contain arguments, thus we cannot just escape
7379 $AUTOCONF, $AUTOM4TE etc. The compromise is to put the
7380 $top_builddir/tests directory early in $PATH, so that the
7381 wrappers are found by their plain name.
7382 * tests/wrapper.as: Put $testdir early in $PATH.
7383 (AUTOCONF, AUTOHEADER, AUTOM4TE): Set to plain command names.
7385 Proper config.status --file/--header and $srcdir escaping.
7386 * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Quote special
7387 characters in $ac_file_inputs.
7388 (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER): eval $ac_file_inputs
7390 * tests/torture.at (datarootdir workaround): Adjust.
7391 (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): Extend test.
7393 Fix Autotest for whitespace in `pwd`.
7394 * lib/autotest/general.m4 (AT_INIT)
7395 <at_func_create_debugging_script, Driver Loop>:
7396 Quote $at_group_dir.
7397 * tests/autotest.at (whitespace in absolute testdir): New test.
7399 * lib/autom4te.in: Quote @datadir@.
7401 Proper file name escaping in Autoconf programs and Perl modules.
7402 This includes escaping of characters special to the shell
7403 as well as special to Perl, e.g., leading `<' or `>'.
7404 For example, when $file starts with `>', `open ">$file"'
7405 wrongly tries to append to a different file.
7406 * bin/autoconf.as: Fix quoting for autom4te options.
7407 * lib/Autom4te/General.pm (shell_quote): New function, taken
7408 from coreutils, written by Jim Meyering.
7410 * bin/autom4te.in (files_to_options, handle_m4): Use shell_quote
7412 * bin/autoreconf.in (parse_args): Likewise.
7413 * bin/autoscan.in (main): Likewise.
7414 * bin/autoupdate.in (main): Likewise.
7415 * bin/autoheader.in: Likewise, fixing old insufficient escaping.
7416 * bin/ifnames.in: Likewise, XFile usage fixes.
7417 * tests/tools.at (autom4te and whitespace in file names): Extend
7418 test. Test twice, with special characters allowed on w32, and the
7419 rest. Test leading and trailing whitespace, for `open_quote'.
7420 (autotools and whitespace in file names): New, analogous test.
7421 Reported by Paul Eggert and Benoit Sigoure, additional suggestions
7422 by Russ Allbery and Eric Blake.
7425 * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
7426 lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Likewise.
7427 * lib/Autom4te/FileUtils.pm (open_quote): New function.
7428 (update_file, contents): Use it.
7430 * Makefile.am (autom4te-update): Rewrite for git.
7432 2007-12-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7434 * doc/autoconf.texi (autom4te Invocation, Autom4te Cache): Fix typos.
7436 Fix copyright years.
7437 * Makefile.am, doc/install.texi, lib/autoconf/fortran.m4,
7438 lib/autoconf/lang.m4, lib/freeze.mk: Likewise.
7440 2007-12-04 Eric Blake <ebb9@byu.net>
7442 Manually resync with gnulib, since 'make cvs-update' no longer works.
7443 * build-aux/config.guess: New upstream version.
7444 * build-aux/config.sub: Likewise.
7446 When using older automake, don't downgrade build-aux/texinfo.tex.
7447 * configure.ac (AM_INIT_AUTOMAKE): Add no-texinfo.tex option.
7448 * doc/Makefile.am (TEXINFO_TEX): Add.
7450 2007-11-27 Paul Eggert <eggert@cs.ucla.edu>
7452 Fix AC_C_BIGENDIAN bug caused by new awk method of substitution.
7453 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Don't comment out the
7454 #undef as this runs afoul of our new way of creating config.h.
7455 Problem reported by Jim Meyering in
7456 <http://lists.gnu.org/archive/html/autoconf-patches/2007-11/msg00164.html>.
7458 2007-11-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7460 Fix autom4te for unusual characters in input file names.
7461 * bin/autom4te.in (files_to_options): Quote active characters
7463 * tests/tools.at (autom4te and white space in file names):
7466 * doc/autoconf.texi (Limitations of Usual Tools) <awk>:
7467 Document that Tru64 awk always splits $0.
7469 2007-11-24 Stepan Kasal <kasal@ucw.cz>
7471 * lib/autotest/general.m4 (AT_INIT): Do not extract the
7472 `#AT_STOP_...' line at the end of each test.
7474 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7476 * lib/autotest/general.m4 (AT_INIT): For awk line number
7477 extraction script, ensure `$at_group' has a defined value
7478 even for the empty set, and properly quote its usage inside
7481 2007-11-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7483 * doc/autoconf.texi (Shell Functions): New chapter. Document
7484 IRIX sh $0 issue in functions, move content from ...
7485 (Portable Shell): ... here.
7486 (Shell Script Compiler): Note that shell functions are not
7487 totally unportable any more.
7489 2007-11-22 Stepan Kasal <kasal@ucw.cz>
7490 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7492 * lib/autotest/general.m4 (AT_INIT): Exit awk script after
7493 extracting the line numbers of the last needed test.
7495 2007-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7497 * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
7500 2007-11-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7502 Fix IRIX testsuite debugging failures: $0 in functions.
7503 * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
7504 Do not use $0 inside a function, as IRIX sh will set that to the
7505 function name rather than the script invocation name.
7507 2007-11-19 Paolo Bonzini <bonzini@gnu.org>
7508 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7510 * lib/autotest/general.m4 (at_func_test): Use cached line numbers
7511 to extract test scripts.
7512 (AT_INIT): Extract and cache test script line numbers.
7514 2007-11-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7516 * lib/autotest/general.m4: Revert 2007-11-15 patch and
7517 subsequent fixups; the awk -> here-document conversion trashes
7518 performance too much with AIX sh.
7520 2007-11-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7522 * tests/local.at: Do not test m4, perl with AT_TESTED.
7524 Diagnose and guard against write errors dealing with config.status.
7525 The general idea is this: all write failures from `configure'
7526 writing `config.status' are indicated by $ac_write_error, which
7527 is only checked at the end. This is safe because config.status
7528 code is not executed before the file is complete. Other write
7529 failures, be they inside config.status, or in sub shell/awk
7530 scripts spawned from configure or config.status, typically need
7531 earlier checking, as their results are used right afterwards.
7532 * lib/autoconf/status.m4 (AC_OUTPUT): Initialize `ac_write_fail'
7533 before writing config.status, check afterwards.
7534 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
7535 (_AC_OUTPUT_HEADERS_PREPARE,_AC_OUTPUT_CONFIG_STATUS):
7536 Set `ac_write_error' for write failures to config.status. Barf
7537 upon write failures to temporary files.
7538 Adjust note about closing and reopening the here-document.
7539 (_AC_OUTPUT_HEADER, _AC_OUTPUT_LINK, _AC_OUTPUT_COMMAND)
7540 (_AC_OUTPUT_MAIN_LOOP): Likewise, adjust note about closing and
7541 reopening the here-document.
7542 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
7543 Ensure `ac_write_error' does not escape into config.status.
7544 Also, add a couple of code paths not yet exercised in the test
7545 suite: a config file with input from stdin, and a config header
7547 Suggestion for catching write errors by Bruno Haible.
7549 2007-11-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7551 Avoid error with Tru64 awk and testsuite lines with many words.
7552 * lib/autotest/general.m4 (AT_INIT): In the awk script that
7553 reads the testsuite, set the field separator to an unusual value,
7554 in order to not run over the limit of 199 fields. Tru64 4.0D awk
7555 even splits the input if $i, i>0, was never accessed in the script.
7557 Revert 2007-10-17 change.
7558 * TODO: Multiline args in config files and headers mean something
7559 different and are not fixed, see
7560 <http://lists.gnu.org/archive/html/autoconf-patches/2007-05/msg00017.html>
7561 Report by Stepan Kasal.
7563 * doc/autoconf.texi (Generic Programs): Fix typo.
7565 2007-11-16 Stepan Kasal <kasal@ucw.cz>
7567 AC_*_TOOL does not canonicalize the prefix
7568 * doc/autoconf.texi (Generic Programs): Do not say that
7569 the *_TOOL macros canonicalize, they simply use the `host_alias'.
7571 2007-11-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7573 Diagnose write errors in config.status instantiations.
7574 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE)
7575 (_AC_OUTPUT_HEADER, _AC_OUTPUT_MAIN_LOOP): Bail out
7577 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
7578 Extend test to also check for some write error failures, using...
7579 <AT_CHECK_CONFIG_CREATION_NOWRITE>: ...this new macro.
7580 Report by Bruno Haible.
7583 * lib/autotest/general.m4 (AT_INIT) <at_func_log_failure>: Fix
7585 (_AT_CHECK): Use less indentation, to save space.
7587 2007-11-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7589 Add witness macro for @top_build_prefix@ substitution.
7590 * lib/autoconf/status.m4 (_AC_HAVE_TOP_BUILD_PREFIX): New macro.
7591 (_AC_OUTPUT_FILE): Mention it here.
7593 2007-11-15 Paolo Bonzini <bonzini@gnu.org>
7594 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7596 * lib/autotest/general.m4 (at_func_test): Remove.
7597 (AT_INIT): Pre-extract test groups into separate files.
7598 (AT_CLEANUP): Source pre-extracted file instead of calling at_func_test.
7599 Remove at-test-source files together with the $at_group_dir.
7600 * tests/autotest.at (Long test source lines): New test.
7602 2007-11-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7604 Shell functions and variables may share a namespace.
7605 * doc/autoconf.texi (Portable Shell): Mention Solaris sh
7608 2007-11-14 Paul Eggert <eggert@cs.ucla.edu>
7610 * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Make comment match
7613 2007-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7615 * lib/autoconf/status.m4: Fix a couple of comment typos.
7617 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Use $as_me, not $me.
7619 2007-11-13 Jim Meyering <meyering@redhat.com>
7621 Clean up the rule to create "expr".
7622 * tests/Makefile.am (expr): Don't redirect directly to target.
7623 Redirect just once, not for each echo statement.
7624 Use $@, not literal "expr".
7626 2007-11-13 Paul Eggert <eggert@cs.ucla.edu>
7628 Don't worry about preprocessor when testing long long.
7629 See: http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00075.html
7630 * doc/autoconf.texi (Preprocessor Arithmetic): New section.
7631 (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT):
7632 These no longer check for preprocessor flaws.
7633 * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET):
7634 Do not check for preprocessor flaws.
7636 2007-11-13 Jim Meyering <meyering@redhat.com>
7638 Adapt dependencies, now that a version change doesn't modify configure.ac
7639 * GNUmakefile: Remove "make clean" kludge.
7640 * lib/m4sugar/Makefile.am (version.m4): Depend on Makefile, not
7642 Don't redirect directly to target.
7643 Use $@, not literal "version.m4".
7645 2007-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7647 * doc/autoconf.texi (Making testsuite Scripts): Document
7648 ":;{" shorthand as in previous patch.
7650 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
7652 * doc/autoconf.texi (Limitations of Builtins): Document problem
7653 with { ... } a bit more clearly. Suggest ":;{" as a shorthand
7655 * lib/m4sugar/Makefile.am (version.m4): Detect 'echo' failure.
7656 Use ":;{" shorthand.
7657 * tests/Makefile.am ($(srcdir)/package.m4): Likewise.
7659 2007-11-12 Jim Meyering <meyering@redhat.com>
7661 Add more non-srcdir build support.
7662 * GNUmakefile (dummy): Split a long line.
7663 Add -v option to autoreconf invocation.
7665 Remove the autoreconf-provided INSTALL, so that we regenerate it.
7666 * GNUmakefile (dummy): Remove INSTALL.
7668 Remove racy commands to build scripts in bin/ and tests/.
7669 * man/Makefile.am (.x.1): Now that scripts in bin/ and tests/
7670 are guaranteed to be built, remove the rules that tried to build
7671 them. Before, with a parallel build, these rules could lead to
7672 two processes writing tests/wrapper.in concurrently.
7674 Build in man/ only *after* building in bin/ and tests/.
7675 * Makefile.am (SUBDIRS): The man-page-creation process runs $(MAKE)
7676 in both bin/ and tests/.
7678 Accommodate non-srcdir build-from-checkout.
7679 * build-aux/git-version-gen: Require an additional parameter: $srcdir.
7680 Use git's --git-dir=$srcdir/.git option.
7681 Add quotes, in case tarball_version_file contains shell meta-characters.
7682 * GNUmakefile (_curr-ver): Pass $(srcdir) to git-version-gen.
7683 * configure.ac: Pass "." to git-version-gen.
7685 Avoid spurious test failures due to version skew.
7686 * GNUmakefile (dummy): Run $(MAKE) clean after autoreconf -i.
7688 2007-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7690 Avoid warnings about conftest.dSYM directories on Mac OS X Leopard.
7691 * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_RUN_IFELSE):
7692 Remove conftest.dSYM directory.
7693 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT)
7694 (_AC_LANG_PROGRAM_C_, _AC_FC_MAIN, __AC_FC_NAME_MANGLING):
7695 Remove `conftest.*' recursively.
7696 * lib/autoconf/lang.m4 (AC_LINK_IFELSE): Likewise.
7697 * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
7699 (_AC_COMPILER_OBJEXT_REJECT): Reject *.dSYM.
7701 Report and analysis by Jeff Squyres and Peter O'Gorman.
7703 2007-11-12 Benoit Sigoure <tsuna@lrde.epita.fr>
7705 Fix typos in variable names.
7706 * tests/semantics.at (test for AC_CHECK_LIB): s/at_m/ac_m/.
7708 2007-11-11 Benoit Sigoure <tsuna@lrde.epita.fr>
7710 Document that $((expression)) is not portable.
7711 * doc/autoconf.texi (Shell Substitutions): Here.
7713 2007-11-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7715 Ignore configure --help* errors due to LINENO-impaired shells.
7716 * tests/torture.at (Configuring subdirectories, Deep Package):
7717 In the --help* tests in read-only trees, make `.' temporarily
7718 writable again for the `stderr' file, and ignore errors due to
7719 the attempt to write configure.lineno.
7720 Report by Patrick Welche.
7722 2007-11-10 Jim Meyering <meyering@redhat.com>
7724 Generate package.m4 in build-dir, not srcdir.
7725 * tests/Makefile.am (package.m4): Adjust target.
7726 Don't redirect directly to $@.
7727 (CLEANFILES): Add package.m4.
7728 ($(TESTSUITE)): Depend on just-built package.m4, not the one
7730 When running $(AUTOTEST), search "." before searching $(srcdir).
7732 Avoid a race condition that would make parallel "distclean" fail.
7733 * tests/Makefile.am (distclean-generic): Replace the default,
7734 automake-provided rule with an identical one, but with an additional
7735 dependency on distclean-local. Simply adding the dependency would
7736 cause automake not to emit the rule at all.
7737 * BUGS: Building with -jN works, now.
7739 Distribute git-version-gen.
7740 * Makefile.am (EXTRA_DIST): Add build-aux/git-version-gen,
7741 since GNUmakefile is distributed, and requires it for dist* rules.
7743 Remove two more generated files from version control.
7744 * INSTALL: Remove generated file.
7745 * lib/autoscan/autoscan.list: Remove generated file.
7747 2007-11-09 Paul Eggert <eggert@cs.ucla.edu>
7749 * GNUmakefile (PATH): Remove stray apostrophes; they become
7750 part of PATH, which isn't wanted here.
7752 2007-11-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7754 New config files output variable `top_build_prefix'.
7755 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Substitute
7757 * doc/autoconf.texi (Preset Output Variables): Document it.
7759 Report by Bob Friesenhahn.
7761 Avoid expr for arithmetic evaluation if the shell accepts $((...)).
7762 * lib/autotest/general.m4 (AT_INIT) <at_func_arith>: New
7763 function, to parametrize arithmetic with expr vs. the shell.
7764 Use it where possible.
7765 Suggestion by Benoit Sigoure.
7767 2007-11-03 Benoit Sigoure <tsuna@lrde.epita.fr>
7769 Adjust the documentation of autotest WRT atlocal.
7770 * doc/autoconf.texi (Making testsuite Scripts): It is not necessary,
7771 when using Automake, to write a rule to produce atlocal, since it's
7772 an AC_CONFIG_FILES. Mention that atlocal.in needs to be
7773 distributed, not atconfig.in.
7775 2007-11-04 Eric Blake <ebb9@byu.net>
7777 Update list information.
7778 * README: Mention new autoconf-commit list.
7779 * doc/autoconf.texi (Introduction): Mention autoconf-commit list.
7781 2007-11-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7783 * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Fix comment typo.
7785 * lib/m4sugar/Makefile.am (version.m4): Another bash bug workaround.
7787 * build-aux/.gitignore: Ignore mkinstalldirs.
7789 * doc/autoconf.texi (autoreconf Invocation): Fix an underfull line.
7791 2007-11-03 Jim Meyering <meyering@redhat.com>
7793 s/-/./ in snapshot version string: 2.61a-256-8b556 -> 2.61a.256-8b556
7794 * build-aux/git-version-gen: This syncs from coreutils.
7796 Adjust the build procedure so "make check" works reliably.
7797 * README-hacking: Include an extra step between "make" and
7798 "make check" to ensure that the latter passes.
7800 Use just-built tools, when possible.
7801 * GNUmakefile (PATH): Set and export here, ...
7802 (dummy): ... rather than here.
7804 2007-11-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7805 and Andreas Schwab <schwab@suse.de>
7807 * tests/Makefile.am ($(srcdir)/package.m4): Work around bash
7810 2007-11-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7812 * configure.ac (AC_PREREQ): Require version 2.60, for
7813 AC_PROG_SED, AC_PROG_GREP.
7815 2007-11-02 Benoit Sigoure <tsuna@lrde.epita.fr>
7816 and Jim Meyering <meyering@redhat.com>
7817 and Andreas Schwab <schwab@suse.de>
7818 and Eric Blake <ebb9@byu.net>
7820 Document a bug in GNU Bash with compound commands and redirections.
7821 * doc/autoconf.texi (Limitations of Builtins): Mention that GNU
7822 Bash doesn't properly set $? when `{ ... } >/bad' fails, and give
7825 2007-11-03 Eric Blake <ebb9@byu.net>
7827 Support m4 1.4.5 in testsuite.
7828 * tests/torture.at (Define a newline): Exclude line numbers in
7830 Reported by Ralf Wildenhues.
7832 2007-11-03 Jim Meyering <meyering@redhat.com>
7834 Remove automake-provided files from version control.
7835 * build-aux/elisp-comp: Remove file.
7836 * build-aux/install-sh: Remove file.
7837 * build-aux/missing: Remove file.
7838 * build-aux/mdate-sh: Remove file.
7839 * build-aux/.gitignore: New file.
7840 Suggestion from Ralf Wildenhues.
7842 2007-11-03 Eric Blake <ebb9@byu.net>
7844 Adjust version comparison to account for git snapshot numbers.
7845 * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Also treat - as a
7846 component separator.
7847 * doc/autoconf.texi (Number processing Macros)
7848 <m4_version_compare>: Document this change.
7849 * tests/m4sugar.at (m4@&t@_version_compare): Test it.
7851 2007-10-30 Bruno Haible <bruno@clisp.org>
7853 * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro,
7854 extracted from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
7855 (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT): Use it.
7856 Fixes problem with Sun C 5.[0-8] in 32-bit mode, reported in
7857 <http://lists.gnu.org/archive/html/autoconf-patches/2007-10/msg00210.html>
7858 Suggested by Paul Eggert.
7860 2007-10-28 Jim Meyering <meyering@redhat.com>
7862 * README-hacking: Autoconf, Automake, and Perl are required to build.
7863 List Gzip and Tar separately. Suggested by Ralf Wildenhues.
7865 2007-10-28 Jim Meyering <meyering@redhat.com>
7867 README-hacking: Recommend running autoreconf -vi.
7868 * GNUmakefile (dummy): Use autoreconf -i, with appropriate PATH,
7869 so that we use just-built tools when they're available.
7870 Suggestions from Ralf Wildenhues.
7872 2007-10-28 Jim Meyering <meyering@redhat.com>
7874 Make inter-release --version output more useful.
7876 Now, each unofficial build has a version "number" like 2.61a-19-58dd,
7877 which indicates that it is built using the 19th change set
7878 (in _some_ repository) following the "v2.61a" tag, and that 58dd
7879 is a prefix of the commit SHA1.
7880 * build-aux/git-version-gen: New file.
7881 * configure.ac: Run it to set the version.
7882 (AM_INIT_AUTOMAKE): Don't check NEWS here.
7883 * Makefile.am (dist-hook): Arrange so that .version appears only
7884 in distribution tarballs, never in a checked-out repository.
7885 * .gitignore: Add .version here, too. Just in case.
7886 * tests/Makefile.am ($(srcdir)/package.m4): Depend on Makefile,
7887 not configure.ac, now that the version number changes automatically.
7889 Ensure that $(VERSION) is up to date for dist-related targets.
7890 * GNUmakefile: Arrange to rerun autoconf, if the version reported by
7891 git-version-gen doesn't match $(VERSION), but only for dist targets.
7893 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7895 Fix `Deep Package' failure with a configure script early in PATH
7896 * tests/torture.at (Deep Package): Add `.' early in PATH.
7897 Report by Jim Meyering.
7899 2007-10-27 Jim Meyering <meyering@redhat.com>
7901 Remove all generated files from version control.
7902 * aclocal.m4: Remove.
7903 * configure: Remove.
7904 * Makefile.in: Remove, along with all other Makefile.in in subdirs.
7905 * .gitignore: Add aclocal.m4, configure and Makefile.in. Sort.
7906 * README-hacking: New file: how to build from just-checked-out sources.
7908 2007-10-23 Eric Blake <ebb9@byu.net>
7910 Improve corner case of m4_expand.
7911 * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Rewrite more
7913 * tests/m4sh.at (AS@&t@_HELP_STRING): Test overquoted comma.
7914 * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Update
7917 2007-10-23 Paul Eggert <eggert@cs.ucla.edu>
7919 * doc/make-stds.texi: Update from gnulib.
7921 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
7922 and Eric Blake <ebb9@byu.net>
7924 * lib/autoconf/c.m4 (AC_C_RESTRICT): Work around Sun C++ compatibility
7925 problem reported by Bruno Haible in
7926 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00027.html>.
7928 2007-10-22 Eric Blake <ebb9@byu.net>
7930 * doc/autoconf.texi (Particular Types): Mention bug in HP-UX 11.00
7933 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
7935 Don't check for bug in HP-UX 11.00 cpp.
7936 * lib/autoconf/types.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
7937 Use -1ull rather than -1u, since that causes problems with gnulib; see
7938 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
7940 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7942 * tests/autotest.at (Backquote command substitution)
7943 (Multiline backquote command substitution)
7944 (Parenthetical command substitution)
7945 (Multiline parenthetical command substitution): Fix typos in
7948 2007-10-21 Eric Blake <ebb9@byu.net>
7950 * configure: Regenerate.
7952 2007-10-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7954 Fix config status generation with Tru64 ksh.
7955 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix
7956 escaping of backslash in here-documents.
7958 Fix `Deep Package' test failure on FreeBSD.
7959 * tests/torture.at (Deep Package): Do not add `.' to $PATH
7960 unnecessarily. Do not try running `/bin/sh configure' with a
7961 configure script to be found in $PATH, if the shell does not do
7962 this resolution. Fixes test failure on FreeBSD.
7964 Fix config header generation with AIX awk.
7965 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): In awk
7966 script, use helper array D_is_set, as `" 0"' does not evaluate
7967 to true for AIX awk.
7969 2007-10-21 Eric Blake <ebb9@byu.net>
7971 * tests/autotest.at (Banners): Reinstate test, with typo
7974 2007-10-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7976 * lib/autotest/general.m4 (Defaults): Validate input ranges ...
7977 <at_func_validate_ranges>: ... using this new function.
7978 * tests/autotest.at (Keywords and ranges): Test invalid ranges.
7979 Test --list with ranges and keywords.
7980 (Banners): Remove one now-failing test.
7982 2007-10-20 Eric Blake <ebb9@byu.net>
7984 Fix testsuite --list subset.
7985 * lib/autotest/general.m4 (AT_INIT) <at_list_p>: Swap newlines
7986 back to spaces, before listing subset of tests.
7987 Reported by Ralf Wildenhues.
7989 2007-10-19 Eric Blake <ebb9@byu.net>
7991 s/parenthesis/parentheses/ where appropriate.
7992 * doc/autoconf.texi: Fix typos.
7993 * lib/m4sugar/m4sugar.m4: Likewise.
7994 Reported by Ralf Wildenhues.
7996 Document m4_expand limitation.
7997 * lib/m4sugar/m4sugar.m4 (m4_expand): Mention problem with
7999 * doc/autoconf.texi (Pretty Help Strings, Evaluation Macros)
8000 (Writing Testsuites): Mention limitations inherited from
8003 Improve AT_BANNER handling.
8004 * lib/autotest/general.m4 (BANNERS): New named diversion.
8005 (TESTS_END): Diversion no longer used.
8006 (AT_INIT) <at_func_banner, BANNERS>: Factor all banners into a
8007 shell function, which prints only as needed, using an associative
8008 array of banner text from a special diversion.
8009 <PARSE_ARGS_END>: No longer need awk to find banners.
8010 <TESTS>: Banners are no longer processed by main driver loop, so
8011 we no longer need case statement.
8012 (AT_BANNER): Rewrite to populate new diversion.
8013 (AT_SETUP): Each test invokes its own banner. No output is needed
8014 to the TESTS diversion.
8015 * doc/autoconf.texi (Writing Testsuites): Document slight
8017 * tests/autotest.at (AT_BANNERS): Enhance test.
8018 * NEWS: Document AT_BANNER.
8020 Document and test AT_BANNER.
8021 * doc/autoconf.texi (Writing Testsuites): Document AT_BANNER.
8022 * tests/autotest.at (AT_CHECK_EGREP): Share between tests.
8023 (AT_CHECK_BANNERS): New test.
8026 * doc/autoconf.texi (Text processing Macros) <m4_strip>
8027 <m4_text_wrap>: Clarify and fix typos.
8029 2007-10-18 Eric Blake <ebb9@byu.net>
8031 Ignore `make dist' changelogs in testsuite.log.
8032 * lib/autotest/general.m4 (AT_INIT) <ChangeLogs>: Prune
8033 directories matching AT_PACKAGE_TARNAME-*.
8035 Fix AT_TESTED, AT_KEYWORDS.
8036 * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Warn if separator
8037 occurs in string, as duplicates may be added.
8038 (_m4_append_uniq): New helper macro.
8039 (m4_append_uniq_w): New macro.
8040 * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Fix
8041 duplication bug by using new macro.
8042 (AT_INIT) <at_tested>: Restore newline separators. Invoke tested
8043 programs with stdin redirected, so programs that don't
8044 understand --version won't try to behave interactively.
8045 * tests/autotest.at (Tested programs): Catch this bug.
8046 * tests/m4sugar.at (m4@&t@_append): Test new macro.
8047 * tests/local.at (AT_TESTED): Add m4, perl.
8048 * doc/autoconf.texi (Text processing Macros): Document
8049 m4_append_uniq_w, and update text on m4_append.
8050 * NEWS: Document the addition.
8052 2007-10-17 Eric Blake <ebb9@byu.net>
8055 * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Convert
8057 (AT_INIT) <at_func_create_debugging_script>: ...to shell
8059 (AT_INIT): Defer function declarations until after --help,
8060 --version. Format functions consistently, trying to fit in 80
8062 (TEST_FUNCTIONS): Based on recent changes, rename...
8063 (TEST_GROUPS): ...to this.
8066 * m4/m4.m4 (AC_PROG_GNU_M4): Also check for frozen file support.
8067 * configure: Regenerate.
8068 Reported by Bob Friesenhahn.
8070 Test recent additions.
8071 * tests/m4sugar.at (m4@&t@_map, m4@&t@_combine)
8072 (m4@&t_max and m4@&t_min): New tests.
8073 * doc/autoconf.texi (Evaluation Macros) <m4_apply>: Enhance
8076 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8078 * TODO: multiline args in config files and headers work now.
8080 Autotest: do not use shell functions for individual tests.
8081 * lib/autotest/general.m4 (AT_INIT) <at_func_test>: Merely
8082 extract the source test source, do not invoke it.
8083 (AT_SETUP, AT_CLEANUP): Source test code outside shell function.
8084 * tests/autotest.at (Fallacy): Actually let the inner suite fail,
8085 expect exit status of 1.
8086 * tests/autotest.at (Skip): New test, for bogus zsh exit status.
8088 * lib/autotest/general.m4 (at_func_test): Fix test extraction
8091 2007-10-17 Eric Blake <ebb9@byu.net>
8093 Fix m4_combine for empty suffix list.
8094 * lib/m4sugar/m4sugar.m4 (m4_combine): Check for suffix list.
8095 * doc/autoconf.texi (Text processing Macros): Document this.
8097 Add m4_combine, based on Libtool's lt_combine.
8098 * lib/m4sugar/m4sugar.m4 (m4_combine): New macro.
8099 * doc/autoconf.texi (Text processing Macros): Document it.
8102 2007-10-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8104 Fix `configure --help=recursive' in unconfigured/read-only trees.
8105 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Avoid errors when `.'
8106 is not writable, use 'cp -p' in this case, in the hope that it
8107 will not actually be needed. Still try removing files, in case
8108 of other write errors.
8109 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): For ac_confdir,
8110 use $as_myself, not $0.
8111 (_AC_INIT_HELP): For --help=recursive, if the subdir does not
8112 exist, try again in the the source tree. This change assumes
8113 that the subpackage configure script is capable of running
8114 --help=recursive in the source tree.
8115 * tests/torture.at (Configuring subdirectories, Deep Package):
8116 Adjust tests to expose both issues, also try invocation as
8117 `sh configure ...' and plain `configure ...' with PATH adjusted.
8118 * NEWS, THANKS: Update.
8119 Report by Hans Ulrich Niedermann.
8121 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
8123 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
8124 Problem reported by H.Merijn Brand in
8125 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
8126 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
8127 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
8128 Check that preprocessor handles 64-bit ints, too.
8130 2007-10-16 Eric Blake <ebb9@byu.net>
8132 m4_map is a looping construct.
8133 * lib/m4sugar/m4sugar.m4 (m4_map, _m4_map, m4_map_sep): Move.
8135 Fix m4_map, and add some more utility macros.
8136 * lib/m4sugar/m4sugar.m4 (m4_apply, m4_count, m4_dquote_elt)
8137 (m4_echo, m4_make_list): New documented macros.
8138 (_m4_quote, _m4_shift2): New helper macros.
8139 (m4_map): Change semantics to allow calling macro without
8141 (m4_map_sep): Likewise. Also change semantics to quote separator,
8142 to match m4_join and m4_append.
8143 (m4_version_unletter): Fix use of m4_map.
8144 * doc/autoconf.texi (Evaluation Macros): Document m4_apply,
8145 m4_count, m4_dquote_elt, m4_echo, m4_make_list.
8146 (Text processing Macros): Mention m4_dquote as a faster
8147 alternative to joining with commas.
8148 (Looping constructs): Document m4_map, m4_map_sep.
8149 * NEWS: Mention new macros.
8151 A few more m4sugar improvements, to benefit libtool.
8152 * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts, _m4_shiftn): Reduce size
8153 of expansion by avoiding extra uses of $@.
8154 (m4_shiftn): Avoid extra dnl, and forbid shifting by 0.
8155 (_m4_cdr): New helper macro.
8156 (_m4_map, m4_map_sep): Use it to reduce size of expansion.
8157 (_m4_shift3): New helper macro.
8158 (_m4_foreach): Swap argument order, and use new macro to reduce
8160 * doc/autoconf.texi (Looping constructs) <m4_shiftn>: Mention that
8161 count must be positive.
8163 * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Fix typo.
8164 Reported by Ralf Wildenhues.
8166 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8168 * doc/autoconf.texi (Portable Shell): Improve description of zsh
8169 4.x function subshell bug with exit and trap.
8171 2007-10-15 Eric Blake <ebb9@byu.net>
8173 Enhance AS_HELP_STRING.
8174 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't expand arguments,
8175 and reduce number of expansions.
8176 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Rework to use m4_expand,
8177 and to take indent and wrap column numbers.
8178 * tests/m4sh.at (AS@&t@_HELP_STRING): Update the test.
8179 * doc/autoconf.texi (Pretty Help Strings): Document details about
8181 (Text processing Macros): Minor tweaks.
8182 * NEWS: Document this change.
8184 Fix 2007-10-03 regression with AT_SETUP([a, b]).
8185 * lib/m4sugar/m4sugar.m4 (m4_expand): New macro.
8186 (m4_text_box): Use it.
8187 * lib/autotest/general.m4 (AT_SETUP): Use it.
8188 * lib/m4sugar/m4sh.m4 (_AS_RUN): Use it.
8189 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Test this.
8190 * NEWS: Revert caveat about semantics change on comma.
8191 * doc/autoconf.texi (Evaluation Macros): Document m4_expand.
8193 2007-10-13 Eric Blake <ebb9@byu.net>
8195 Change m4_join to match libtool's ltsugar semantics.
8196 * lib/m4sugar/m4sugar.m4 (m4_join): Just define this, not defun.
8197 Ignore empty arguments, using...
8198 (_m4_join): ...this new helper.
8199 * tests/m4sugar.at (m4@&t@_join): New test.
8200 * doc/autoconf.texi (Text processing Macros): Document new
8201 semantics of m4_join.
8203 Make AC_PREREQ faster and more robust.
8204 * lib/m4sugar/m4sugar.m4 (m4_ignore, m4_unquote): New macros.
8205 (m4_version_prereq): Inline constant expansions.
8206 (m4_list_cmp): Reduce number of expansions, by avoiding m4_case.
8207 Rewrite in terms of [] list, not () list.
8208 (_m4_list_cmp, _m4_version_unletter): New helper macros.
8209 (m4_version_unletter): Write wrapper around new implementation to
8210 preserve old semantics.
8211 (m4_version_compare): Pass correct type of list, and avoid
8212 overhead of flattening expressions too early.
8213 (m4_do): Move to be near other quoting macros.
8214 (m4_max, m4_min): Always result in decimal output.
8215 * doc/autoconf.texi (Looping constructs): Add m4_car, m4_cdr.
8217 (Evaluation Macros): ...here. Add m4_ignore, m4_unquote.
8218 (Text processing Macros): Move m4_version_compare...
8219 (Number processing Macros): ...to this new node; document m4_cmp,
8220 m4_list_cmp, m4_sign, m4_max, m4_min.
8221 * tests/m4sugar.at (m4@&t@_version_compare): Enhance test, to pick
8222 up on bugs fixed by this patch.
8223 * NEWS: Document new macros.
8225 2007-10-12 Eric Blake <ebb9@byu.net>
8227 * doc/autoconf.texi (Text processing Macros): Fix bad merge.
8228 (Reporting Messages): Fix underfull hbox.
8230 Some more m4sugar documentation.
8231 * lib/m4sugar/m4sugar.m4: Clean up macro order.
8232 * doc/autoconf.texi (Programming in M4): Lighten the warning on
8233 using m4sugar; it is stabilizing and useful.
8234 (Redefined M4 Macros): Touch up wording on M4 builtins; sort. Add
8235 m4_divert, m4_undivert, __file__, __line__, __oline__.
8236 (Diagnostics): New node, documenting m4_assert, m4_errprintn,
8237 m4_fatal, m4_location, m4_warn.
8238 (Diversion support): New node, documenting m4_divert_push,
8239 m4_divert_pop, m4_divert_text, m4_divert_once.
8240 (Text processing Macros): Sort. Add m4_flatten, m4_join,
8241 m4_newline, m4_strip, m4_text_box, m4_text_wrap.
8242 (Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
8244 (Printing Messages): Change cross-reference.
8246 Document interaction of recent m4_append change with Libtool HEAD.
8247 * lib/m4sugar/m4sugar.m4 (m4_append): Document semantics change.
8248 (m4_append_uniq): Add new parameters, based on lt_append_uniq.
8249 * tests/m4sugar.at (m4@&t@_append): New test.
8250 * NEWS: Document semantics change.
8251 * doc/autoconf.texi (Text processing Macros): Likewise.
8253 s/AC_VERSION/AC_AUTOCONF_VERSION/.
8254 * doc/autoconf.texi (Versioning): Change the name.
8256 * lib/autoconf/general.m4 (AC_AUTOCONF_VERSION): Likewise.
8257 * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Likewise.
8258 Suggested by Ralf Wildenhues.
8261 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE)
8262 (_AC_OUTPUT_HEADERS_PREPARE): Convert here-doc delimiters into
8264 * doc/autoconf.texi (Programming in M4sugar, Forbidden Patterns)
8265 (Programming in M4sh, Macro Names): Beef up description of
8266 namespaces reserved for autoconf.
8267 * configure: Regenerate.
8269 2007-10-12 Eric Blake <ebb9@byu.net>
8270 and Paolo Bonzini <bonzini@gnu.org>
8272 Speed up execution of subset of testsuite.
8273 * lib/autotest/general.m4 (TEST_FUNCTIONS): New diversion.
8274 (AT_INIT) <at_func_test>: New shell function.
8275 (AT_INIT) <at_myself>: New variable, set to absolute $as_myself.
8276 (AT_INIT) <at_test_source> New variable, names file that holds
8277 current test function definition.
8278 (AT_SETUP): Start the shell function at_func_test_#, into the
8279 TEST_FUNCTIONS diversion.
8280 (AT_CLEANUP): End the shell function. Simplify the TESTS
8281 diversion to invoke the function.
8283 2007-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8285 * .gitignore: Ignore tags and TAGS files.
8287 2007-10-11 Eric Blake <ebb9@byu.net>
8289 Config header generation followup.
8290 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Check for raw newlines,
8291 which won't work with the preprocessor nor with the awk
8293 * tests/torture.at (Define a newline): Test raw newline detection,
8295 * doc/autoconf.texi (Defining Symbols): Document recent change to
8296 allow backslash-newline.
8299 2007-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8301 * lib/autotest/general.m4: Put function braces in separate line.
8303 2007-10-10 Eric Blake <ebb9@byu.net>
8305 Avoid some overhead from m4_defn and m4_popdef.
8306 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Only
8307 pass on first argument, since we are documented that way.
8308 (m4_for, m4_append_uniq, m4_text_wrap): Optimize out defined-ness
8309 check where it is safe to do so.
8310 (m4_append): Likewise, and quote the separator.
8311 (m4_text_box): Likewise, and avoid regex, also be robust to
8312 expansion and quadrigraphs.
8314 Another AC_DEFINE speedup.
8315 * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Move parameter
8317 (_AC_DEFINE_Q): ...here, and only do it once.
8318 * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid overquoting.
8319 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix m4_defn overquoting
8320 introduced 2007-10-05.
8323 * lib/autoconf/general.m4: Use consistent indentation.
8324 * configure: Regenerate.
8326 * NEWS: Announce recent round of speed optimizations.
8328 2007-10-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8330 * NEWS: Announce shell function usage in Autotest.
8332 2007-10-10 Eric Blake <ebb9@byu.net>
8333 and Paul Eggert <eggert@cs.ucla.edu>
8335 Reduce number of forks at startup.
8336 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Speed up NLS
8338 * configure: Regenerate.
8340 2007-10-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8341 and Paul Eggert <eggert@cs.ucla.edu>
8343 Use awk for config header generation.
8344 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix comments.
8345 (_AC_OUTPUT_HEADERS_PREPARE): New macro. Rewrite of the config
8346 header machinery for use with awk and placement outside the main
8347 config.status instantiation loop. Retain multi-line defines
8348 through backslash-newline combinations, do not split the script
8350 (_AC_OUTPUT_HEADER): Simplify accordingly, use $AWK.
8351 (_AC_OUTPUT_MAIN_LOOP): Call _AC_OUTPUT_HEADERS_PREPARE if
8353 (AC_OUTPUT_MAKE_DEFS): Remove backslash-newline combinations
8356 * tests/torture.at (#define header templates): Extend test by
8357 several more cases: white space before and after `#', macros
8358 with parameters in config.hin and as defines, multi-line macro
8360 (Torturing config.status): Use a define value twice the length
8361 in order to exercise the awk literal string limit.
8362 (Substitute and define special characters): Also try special
8363 delimiter, to exercise the special-case code.
8364 Suggestion by Eric Lemings.
8366 2007-10-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8368 * tests/local.at (AT_COPYRIGHT): Bump copyright years.
8370 2007-10-09 Eric Blake <ebb9@byu.net>
8372 Improve header of bin/autoconf.
8373 * lib/m4sugar/m4sh.m4 (AS_INIT): Add a 'generated from' notice.
8374 * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Override new notice
8376 * bin/autoconf.as: Put copyright up front in generated file.
8378 * bin/autoconf.as (exit_missing_arg): Font-lock tweak.
8380 2007-10-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8382 * doc/install.texi (Basic Installation): Document `uninstall'.
8383 * INSTALL: Regenerate.
8384 Suggestion by Roberto Bagnara.
8386 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
8388 * doc/autoconf.texi (Limitations of Usual Tools): V7 awk had 'index'.
8390 Adjust doc. to match latest gnulib.
8391 * build-aux/texinfo.tex: Sync from gnulib.
8392 * doc/standards.texi: Likewise.
8393 * doc/autoconf.texi (Copying This Manual): Rename to "GNU Free
8394 Documentation License" and remove the subsection. This simplifies
8395 the manual a bit and is more like what other GNU projects do
8398 2007-10-08 Eric Blake <ebb9@byu.net>
8401 * configure: Regenerate.
8403 Fix regression in m4_text_wrap from 2007-10-05.
8404 * lib/m4sugar/m4sugar.m4 (m4_max, m4_min): New macros.
8406 (m4_text_wrap): Fix off-by-one error in rewrite from m4_for to
8408 * lib/autotest/general.m4 (AT_SETUP): Avoid negative width.
8409 * tests/autotest.at (Long test title, Longer test title): Test
8410 this fix, beyond what AS_HELP_STRING already tests.
8412 Avoid m4 warnings on bad m4_format usage.
8413 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Use %*s, in case width
8415 * lib/autotest/general.m4 (AT_SETUP): Likewise; also ensure that
8416 enough arguments are provided.
8418 2007-10-06 Paolo Bonzini <bonzini@gnu.org>
8420 * doc/autoconf.texi (Shell portability): Document shell function
8423 2007-10-06 Paolo Bonzini <bonzini@gnu.org>
8425 * lib/autotest/general.m4 (AT_INIT): Add at_func_diff_devnull,
8426 at_func_check_skip, at_func_check_status, at_func_filter_trace,
8427 at_func_log_failure shell functions. Use test -s to avoid
8428 useless diff invocations.
8429 (at_func_check_newline): Renamed from at_check_newline.
8430 (AT_SETUP): Define AT_captured_files to empty.
8431 (AT_DIFF_STDERR(*), AT_DIFF_STDOUT(*)): New, extracted from _AT_CHECK.
8432 (_AT_CHECK): Replace m4_case with m4_ifdef/m4_indir. Use all
8433 the shell functions.
8435 2007-10-05 Paul Eggert <eggert@cs.ucla.edu>
8437 Don't assume "." is writeable, for commands like "autoconf --version".
8438 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use a
8439 different heuristic instead, one that doesn't rely on creating
8442 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle "///"
8445 2007-10-05 Jim Meyering <meyering@redhat.com>
8447 Avoid makeinfo warnings.
8448 * doc/autoconf.texi (Redefined M4 Macros): Add a `,' after @xref.
8449 (Looping constructs): Add ` ' after @defmac'd name, m4_do.
8451 2007-10-05 Eric Blake <ebb9@byu.net>
8453 Resolve Python issue 1676135 regarding configure directory args.
8454 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Strip trailing
8455 slashes from directory arguments.
8456 * tests/base.at (configure directories): New test.
8457 * doc/autoconf.texi (Installation Directory Variables): Document
8461 Reported by Björn Lindqvist.
8463 Provide better short-circuiting operation.
8464 * lib/m4sugar/m4sugar.m4 (m4_cond, m4_newline): New macros.
8465 (m4_text_wrap): Use it. Also avoid useless m4_for.
8466 * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE, AS_LITERAL_IF): Use
8468 (_AS_IDENTIFIER_IF): Likewise, and fix bug when $1 is [,].
8469 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Use new macros
8471 * doc/autoconf.texi (Redefined M4 Macros): Expand m4_if
8472 documentation. Sort m4_mkstemp, m4_undefine. Move m4_ifndef...
8473 (Conditional constructs): ...here, to new section. Also document
8474 m4_cond, m4_ifval, m4_n, m4_ifvaln, m4_ifset, m4_case, m4_bmatch,
8475 m4_bpatsubsts, and m4_default.
8476 (Looping constructs): Document m4_shiftn, m4_shift2, m4_shift3,
8479 2007-10-04 Eric Blake <ebb9@byu.net>
8481 Fix recent testsuite failures.
8482 * lib/autotest/general.m4 (AT_INIT, AT_SETUP): Double-quote text
8483 that must not be re-expanded after AS_ESCAPE.
8484 * lib/m4sugar/m4sh.m4 (_AS_IDENTIFIER_IF): Don't expand $1 when
8485 checking if it is an identifier.
8488 * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Avoid
8489 leading whitespace, as it caused space-tab in testsuite.
8490 (AT_INIT): Avoid trailing newlines in testsuite.
8492 One more round of m4_foreach_w speedups.
8493 * lib/m4sugar/m4sugar.m4 (m4_flatten): Only use regex if newline
8495 (_m4_split): Avoid useless expansions inside definition. Move
8496 argument defaulting...
8497 (m4_split): ...here. Change alternate quote to something less
8498 likely to appear in $1. Also, special case space as regexp...
8499 (m4_foreach_w): ...to avoid regexp on single-term list.
8500 (m4_default, m4_defn, m4_popdef, m4_undefine, _m4_foreach): Avoid
8501 useless expansions inside definition.
8502 * tests/m4sugar.at (m4@&t@_split): Add tests.
8504 2007-10-04 Paolo Bonzini <bonzini@gnu.org>
8506 * general.m4 (AT_INIT): Add at_check_newline function.
8507 (_AT_DECIDE_TRACEABLE): Include at_traceon test, use shell function.
8508 (_AT_CHECK): Don't use at_trace_this.
8510 2007-10-04 Paolo Bonzini <bonzini@gnu.org>
8512 Fix previous commit.
8513 * lib/autotest/general.m4 (AT_LINE): Fix regex.
8515 2007-10-04 Eric Blake <ebb9@byu.net>
8517 Speed up building testsuites.
8518 * lib/autotest/general.m4 (AT_LINE): Only use regex when file
8519 changed since last time. Use simpler regex.
8521 2007-10-03 Eric Blake <ebb9@byu.net>
8523 Optimize checking for identifiers.
8524 * lib/m4sugar/m4sh.m4 (AS_IDENTIFIER_IF, _AS_IDENTIFIER_IF): New
8525 macros, more efficient than regex on m4_re_word.
8526 * lib/autoconf/general.m4 (AC_SUBST, AC_DEFINE_TRACE_LITERAL):
8527 Rewrite in terms of new macro. As a side-effect, AC_DEFINE can
8529 * configure: Regenerate.
8531 Remove some XFAILs, and make AT_SETUP output line up.
8532 * lib/autotest/general.m4 (AT_SETUP): Only expand description
8533 once; thereafter, use its expansion, properly quoted.
8534 * tests/autotest.at (AT_CHECK_AT_TITLE): Also check macro
8535 expansion with arguments, and check for aligned output.
8536 (AT_CHECK_AT_TITLE_CHAR): Remove XFAILs for tests that now pass.
8537 Add a test for macros with parameters.
8538 * NEWS: Document the semantics change.
8539 * tests/base.at: Fix test titles containing commas.
8540 * tests/compile.at: Likewise.
8541 * tests/tools.at: Likewise.
8542 * tests/torture.at: Likewise.
8544 Another round of regex avoidance.
8545 * lib/m4sugar/m4sugar.m4 (m4_cr_alnum, m4_cr_all)
8546 (_m4_define_cr_not, m4_cr_not_letters, m4_cr_not_LETTERS)
8547 (m4_cr_not_Letters, m4_cr_not_digits, m4_cr_not_alnum)
8548 (m4_cr_not_symbols1, m4_cr_not_symbols2): New macros, implementing
8549 character ranges useful in m4_translit.
8550 (m4_toupper, m4_tolower): Optimize the constant portion of
8552 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Also reject @S|@ because it
8553 creates $, and reject [] thanks to AS_TR_SH rewrite.
8554 (AS_TR_SH, AS_TR_CPP): Use just translit, not bpatsubst.
8555 (AS_ESCAPE): Factor...
8556 (_AS_ESCAPE): ...into new macro, with second argument required.
8557 Avoid regex in common case.
8558 (_AS_QUOTE): Use new macro.
8561 * lib/autoconf/types.m4: Avoid space-tab.
8562 * lib/m4sugar/m4sh.m4: Use tab consistently.
8564 2007-10-03 Paul Eggert <eggert@cs.ucla.edu>
8566 * lib/m4sugar/m4sugar.m4 (m4_shift2, m4_shift3): New macros.
8567 (m4_shiftn): Remove no-longer-needed optimization. Perhaps we
8568 should remove m4_shiftn entirely?
8569 (m4_case, b4_bmatch, m4_map_sep, m4_bpatsubsts, m4_join):
8570 Prefer m4_shift2 and m4_shift3 to m4_shiftn.
8571 * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
8572 * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Likewise.
8573 * tests/autotest.at (AT_CHECK_AT_TEST): Likewise.
8575 2007-10-03 Eric Blake <ebb9@byu.net>
8578 * lib/m4sugar/m4sugar.m4: Grammar fixes in comments.
8580 2007-10-02 Eric Blake <ebb9@byu.net>
8582 Optimize appending text.
8583 * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Use index, not regular
8587 * lib/m4sugar/m4sugar.m4 (m4_shiftn): This macro is called in a
8588 lot of hot spots; optimize it for 2 and 3 shifts.
8590 Optimize AC_PREREQ and other m4sugar numerics.
8591 * lib/m4sugar/m4sugar.m4 (m4_sign): Write with m4_eval.
8592 (m4_cmp): Compare arbitrary expressions, without overflow.
8593 (m4_version_unletter): Also recognize capital letters.
8594 (m4_version_compare): Avoid regex when splitting version number
8597 2007-10-01 Eric Blake <ebb9@byu.net>
8599 Once again, reject IRIX m4.
8600 * m4/m4.m4 (AC_PROG_GNU_M4): Use indir builtin to root out non-GNU
8601 implementations that ignore --trace.
8602 * configure: Regenerate.
8603 Reported by Ralf Wildenhues.
8605 Fix regression in AC_DEFINE([macro(with_arg)]).
8606 * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't chop off close
8607 quotes with a careless m4_substr.
8609 2007-09-30 Eric Blake <ebb9@byu.net>
8611 Allow nameless iteration.
8612 * lib/m4sugar/m4sugar.m4 (m4_for, _m4_for): Access variable
8614 * tests/m4sugar.at (myvar): Test this.
8616 2007-09-29 Eric Blake <ebb9@byu.net>
8618 Speed optimization: avoid m4 regex when other algorithms work.
8619 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Rewrite without regex.
8620 (_AS_QUOTE_IFELSE): Likewise.
8621 * lib/m4sugar/m4sugar.m4 (m4_strip): Reduce from 3 to 2 regex.
8622 (m4_bpatsubsts): Split...
8623 (_m4_bpatsubsts): ...so that recursion can avoid patsubst on empty
8625 (_m4_divert()): Define, to avoid m4 warning on `m4_divert'.
8626 (m4_qlen): Optimize on short strings, to avoid regex.
8627 (m4_sign): Avoid regex, and fix bug with `01' and `-0'.
8628 * lib/autoconf/general.m4 (AC_CACHE_VAL): Rewrite without regex.
8629 (AC_DEFINE_TRACE): Likewise.
8631 2007-09-28 Eric Blake <ebb9@byu.net>
8633 Oops - my earlier 'optimization' caused a regression.
8634 * tests/local.at (AT_CHECK_M4): Fix typo.
8636 2007-09-27 Eric Blake <ebb9@byu.net>
8637 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8639 Catch even more common AC_CACHE_VAL mistakes.
8640 * lib/autoconf/general.m4 (AC_CACHE_VAL): Warn if cache variable
8641 lacks '_cv_', or if AC_SUBST appears in body.
8642 * tests/base.at (AC_CACHE_CHECK): Test this change.
8644 2007-09-27 Stepan Kasal <kasal@ucw.cz>
8645 and Eric Blake <ebb9@byu.net>
8647 Autotest no longer caters to Ultrix redirection limitation.
8648 * doc/autoconf.texi (Writing testsuite.at): Remove the
8649 limitation that the first parameter of AT_CHECK cannot
8650 contain redirection.
8651 (File Descriptors): Mention that Ultrix limitation is no longer a
8652 show-stopper in modern code.
8653 * tests/local.at (AT_CHECK_M4): Fix for cases when the fourth
8654 parameter is `stderr' or `experr'. Optimize if it was `ignore'.
8655 * lib/autotest/general.m4 (AT_CHECK): Update comment.
8657 2007-09-27 Eric Blake <ebb9@byu.net>
8659 Squelch changeword in m4sugar.
8660 * lib/m4sugar/m4sugar.m4 (changeword): Disable this experimental
8661 feature of m4 1.4.x.
8663 Configure whitespace touchups.
8664 * lib/autoconf/general.m4 (_AC_INIT_HELP): Fix alignment of
8665 installation directories, and avoid TAB, in configure --help
8667 * configure.ac: Avoid extra trailing newline.
8668 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Avoid space-tab.
8669 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid TAB in
8670 config.status --help output.
8671 * configure: Regenerate.
8673 Fix underquotation in AS_HELP_STRING.
8674 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Don't underquote lhs
8676 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't underquote
8677 first-prefix argument.
8678 * tests/m4sh.at (AS@&t@_HELP_STRING): Test this fix.
8679 * NEWS: Document AS_HELP_STRING fix.
8681 Autotest formatting touchups.
8682 * lib/autotest/general.m4 (HELP_TUNING): Avoid TAB in terminal
8684 (PATH): Simplify computation of new PATH.
8686 2007-09-26 Eric Blake <ebb9@byu.net>
8688 Fix testsuite breakage in last patch.
8689 * tests/autotest.at (AT_CHECK_AT_TITLE): Properly quote the
8691 * tests/torture.at (@%:@define header templates): Rename, so that
8692 output lines up correctly.
8694 More font-lock happiness.
8695 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Clean up font
8698 2007-09-25 Eric Blake <ebb9@byu.net>
8701 * lib/autoconf/general.m4 (AC_SUBST): Fix typo in comment.
8702 * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Likewise.
8704 Improve documentation of M4 parameter expansion.
8705 * doc/autoconf.texi (Quoting and Parameters): New section.
8706 (Quotation and Nested Macros): Improve wording.
8708 Improve C99 detection.
8709 * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and
8710 avoid deprecation warning with icc.
8712 Reported by Ted Bullock.
8714 2007-09-24 Jim Meyering <jim@meyering.net>
8716 Whenever possible, use the vertical bar as sed delimiter.
8717 * lib/autoconf/functions.m4 (GETLOADAVG_LIBS) [AC_FUNC_GETLOADAVG]:
8719 * lib/autoconf/status.m4 (_AC_SRCDIRS) [ac_top_builddir_sub]:
8720 [ac_dir_suffix]: Use "|", not "," as sed delimiter.
8721 * tests/mktests.sh (as_me): Likewise.
8722 * lib/freeze.mk (check-forbidden-patterns): Likewise.
8723 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
8724 * configure: Regenerate.
8725 * doc/autoconf.texi (Shell Substitutions): Use "|", not "," in examples.
8726 * lib/autotest/general.m4 (AT_INIT): Use "|", not "&" as sed delimiter
8727 in the : -> $PATH_SEPARATOR transformation of $AUTOTEST_PATH.
8728 This is fine, as long as $PATH_SEPARATOR doesn't contain "|".
8730 2007-09-22 Jim Meyering <jim@meyering.net>
8733 * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Document the
8734 2004-05-31 change also with a comment in the code.
8736 2007-09-20 Eric Blake <ebb9@byu.net>
8738 More contribution housekeeping.
8740 * AUTHORS: Sort, reflect recent assignment from Helge Deller.
8742 Ignore additional files, when copying cross-repository.
8743 * .gitignore: Ignore CVS directories, emacs edits.
8744 * .cvsignore: Ignore .git directory, emacs edits.
8746 2007-09-15 Eric Blake <ebb9@byu.net>
8748 Provide AC_VERSION, not m4_AUTOCONF_VERSION.
8749 * doc/autoconf.texi (Text processing Macros): Remove mention of
8750 m4_AUTOCONF_VERSION, and leave m4_PACKAGE_VERSION undocumented
8752 (Notices): Move AC_PREREQ...
8753 (Versioning): ...to this new section, alongside the new AC_VERSION
8754 alias for the undocumented m4_PACKAGE_VERSION.
8755 * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): Revert change.
8756 * lib/autoconf/general.m4 (AC_VERSION): New macro.
8757 * NEWS: Update to match this rename.
8758 * tests/m4sugar.at (m4@&t@_version_compare): Remove tests of
8760 * tests/tools.at (autoconf: AC_VERSION): New test.
8761 Suggested by Paolo Bonzini and Benoit Sigoure.
8763 2007-09-14 Eric Blake <ebb9@byu.net>
8765 Prepare for conversion to git.
8766 * doc/.cvsignore: Avoid multiple listings on one line.
8767 * bin/.cvsignore: Likewise.
8768 * .gitignore, bin/.gitignore, config/.gitignore, doc/.gitignore,
8769 lib/.gitignore, lib/Autom4te/.gitignore, lib/autoconf/.gitignore,
8770 lib/autoscan/.gitignore, lib/autotest/.gitignore,
8771 lib/emacs/.gitignore, lib/m4sugar/.gitignore, man/.gitignore,
8772 tests/.gitignore: New files, identical to .cvsignore counterpart.
8774 2007-09-13 Eric Blake <ebb9@byu.net>
8777 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Restore
8779 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Likewise.
8780 * lib/autoconf/general.m4 (_AC_DO_ECHO): Likewise.
8781 * configure: Regenerate.
8783 Clean up 'make dist' of previous patch.
8784 * tests/Makefile.am (EXTRA_DIST): Distribute mktests.stamp.
8785 (CLEANFILES): Don't clean the stamp, since we distribute the
8786 generated files pre-built.
8787 (MAINTAINERCLEANFILES): Clean it here instead.
8788 * tests/Makefile.in: Regenerate.
8790 Avoid parallel 'make check' issue.
8791 * tests/Makefile.am (mktests.stamp): New witness.
8792 (TESTSUITE_GENERATED_AT): Use it.
8793 (CLEANFILES): Clean the witness.
8794 * tests/.cvsignore (mktests.stamp): Ignore the witness.
8796 Document another awk pitfall.
8797 * doc/autoconf.texi (Limitations of Usual Tools) <awk>: Document
8798 limitation of field variables in END.
8799 Reported by Gary V. Vaughan.
8801 * AUTHORS: Add missing entries.
8803 2007-09-12 Eric Blake <ebb9@byu.net>
8805 Publish m4_ifndef, m4_version_compare, m4_AUTOCONF_VERSION.
8806 * doc/autoconf.texi (Text processing Macros): Document
8807 m4_version_compare, m4_AUTOCONF_VERSION, m4_PACKAGE_VERSION.
8808 (Redefined M4 Macros): Document m4_ifndef.
8809 * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): New macro; we
8810 can't obsolete m4_PACKAGE_VERSION at this time since Autoconf 1.10
8811 used it while it was undocumented.
8812 * NEWS: Document this change.
8813 * lib/m4sugar/Makefile.am (version.m4): Update copyright dates.
8814 * lib/m4sugar/Makefile.in: Regenerate.
8815 * tests/m4sugar.at (m4@&t@_version_compare): New test.
8816 Reported by Bruno Haible.
8818 * doc/autoconf.texi (Generic Compiler Characteristics): Add
8819 missing index entries.
8821 2007-09-11 Eric Blake <ebb9@byu.net>
8823 Centralize all system extensions checks.
8824 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
8825 from AC_AIX, AC_GNU_SOURCE, AC_MINIX. Add Interix support.
8826 (AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
8827 AC_USE_SYSTEM_EXTENSIONS.
8828 (AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
8829 (AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
8830 * doc/autoconf.texi (Posix Variants): Reword this section,
8831 emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
8832 rather than a series of system-specific checks.
8833 (Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
8835 * NEWS: Document this change.
8837 Reported by Martin Koeppe.
8839 2007-09-08 Eric Blake <ebb9@byu.net>
8841 Clean up obsolete macros references.
8842 * doc/autoconf.texi: Add anchors to support better
8844 (Particular Structures): Move obsolete macros descriptions...
8845 (External Software): Likewise.
8846 (Package Options): Likewise.
8847 (Obsolete Macros): ...to here. Add cross-references to
8848 documentation on replacements.
8849 * NEWS: Mention that these macros have been obsolete for a while
8850 now: AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_RDEV AC_WITH AC_ENABLE.
8852 Improve M4 path searching during configure.
8853 * lib/autoconf/programs.m4 (AC_PATH_PROGS_FEATURE_CHECK): New
8855 (_AC_PATH_PROG_FEATURE_CHECK): Rename...
8856 (_AC_PATH_PROGS_FEATURE_CHECK): ...to this, add defaulted action
8857 parameter, and kill side effects.
8858 (_AC_PROG_GREP, AC_PROG_SED): Adjust callers.
8859 (_AC_FEATURE_CHECK_LENGTH): Kill extra whitespace.
8860 * m4/m4.m4 (AC_PROG_GNU_M4): Don't stop searching until working m4
8862 (AC_PATH_PROGS_FEATURE_CHECK): Add backwards compatibility hack to
8863 allow bootstrapping with autoconf 2.61.
8864 * configure.ac (M4): AC_PROG_GNU_M4 now exits on failure.
8865 * configure: Regenerate.
8866 * doc/autoconf.texi (Generic Programs): Document new macro.
8867 * tests/mktests.sh (au_exclude_script): Exclude auto-testing new
8869 * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): New test.
8870 * NEWS: Document the change.
8872 Reported by Hans Aberg.
8874 * doc/autoconf.texi (Generic Programs): Fix typo.
8876 2007-09-06 Eric Blake <ebb9@byu.net>
8878 * doc/autoconf.texi (Generic Programs): Use $PATH_SEPARATOR, not
8879 :, and make it clear that optional @var{path} defaults to $PATH.
8880 (Erlang Compiler and Interpreter): Likewise.
8883 * doc/autoconf.texi: Avoid lines > 80 columns when possible.
8884 Reword some paragraphs to avoid overfull, underfull hbox
8885 warnings. Add index entries to avoid overfull vbox warnings.
8887 2007-09-05 Eric Blake <ebb9@byu.net>
8889 * NEWS: Adjust wording for AC_CONFIG_LINKS.
8890 Reported by Ralf Wildenhues.
8892 2007-09-03 Eric Blake <ebb9@byu.net>
8894 * NEWS: Document fixes that have been applied since 2.61a.
8897 * THANKS: Update, and convert to UTF-8 encoding.
8898 * AUTHORS: Likewise.
8900 2007-08-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8902 * lib/autoconf/general.m4 (AC_SITE_LOAD): Guard against file
8903 names beginning with `-' again.
8905 2007-08-22 Stepan Kasal <kasal@ucw.cz>
8906 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8908 * doc/autoconf.texi (Defining Directories): Mention
8909 AM_CPPFLAGS, as the way to modify CPPFLAGS when using Automake.
8911 2007-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8913 * lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
8914 here, this macro is expanded by AC_INIT. Fixes 2.60 regression.
8915 * tests/base.at (configure arguments): New test.
8917 Report by Olaf Lenz.
8919 * lib/autoconf/general.m4 (_AC_ENABLE_IF): Expand macro
8920 arguments in comment.
8921 Report by Vincent Torri <vtorri at univ minus evry dot fr>.
8923 2007-08-20 Benoit Sigoure <tsuna@lrde.epita.fr>
8925 * doc/autoconf.texi (File System Conventions): Index the proper
8926 way of detecting absolute file names.
8928 2007-08-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8930 * build-aux/config.guess, build-aux/config.sub,
8931 build-aux/elisp-comp, build-aux/install-sh, build-aux/mdate-sh,
8932 build-aux/missing, build-aux/texinfo.tex, doc/fdl.texi,
8933 doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
8934 * doc/autoconf.texi (GNU Free Documentation License): Adjust for
8935 sectioning change in fdl.texi.
8937 * bin/autoconf.as: Update --version output to match current GCS.
8938 * bin/autoheader.in: Likewise.
8939 * bin/autom4te.in: Likewise.
8940 * bin/autoreconf.in: Likewise.
8941 * bin/autoscan.in: Likewise.
8942 * bin/autoupdate.in: Likewise.
8943 * bin/ifnames.in: Likewise.
8945 2007-08-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8947 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not try to link a
8948 file to itself if source and build trees coincide.
8949 * tests/torture.at (AC_CONFIG_LINKS and identical files): New
8951 Report by Sebastian Freundt <hroptatyr@gna.org>.
8953 2007-07-20 Paul Eggert <eggert@cs.ucla.edu>
8955 Reword the copyright notices to match what's suggested in GPLv3.
8956 In ChangeLog files, use more-permissive notice rather than GPL, as
8957 per usual GNU standards these days.
8959 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
8961 * doc/autoconf.texi (autoreconf Invocation): Document ACLOCAL_AMFLAGS
8962 limitation reported by Leo Moisio in
8963 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432941>.
8965 2007-07-03 Paul Eggert <eggert@cs.ucla.edu>
8967 * COPYING: Update to GPLv3. All uses changed.
8969 2007-06-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8970 and Paul Eggert <eggert@cs.ucla.edu>
8972 * doc/autoconf.texi (Limitations of Usual Tools): sed -e ''
8975 2007-06-17 Noah Misch <noah@cs.caltech.edu>
8977 * lib/autotest/general.m4 (AT_INIT): Handle absolute `srcdir'.
8978 * tests/autotest.at (srcdir propagation): Test absolute `srcdir' and
8979 `srcdir' as subdirectory of `builddir'.
8981 2007-06-13 Noah Misch <noah@cs.caltech.edu>
8983 * lib/autotest/general.m4 (AT_INIT): Compute $srcdir correctly.
8984 * tests/autotest.at (srcdir propagation): New test.
8986 Reported by Mike Frysinger.
8988 2007-06-13 Paul Eggert <eggert@cs.ucla.edu>
8990 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Set FPATH too.
8991 Problem reported by Fred Kreek in
8992 <http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00009.html>.
8993 * doc/autoconf.texi (Special Shell Variables): Warn about FPATH.
8994 (Macro Names, Defining Directories): Don't mention PATH as a name
8995 for a fully qualified file name, as this usage violates the GNU
8996 coding standards and we shouldn't recommend it.
8998 * lib/autotest/general.m4 (AT_INIT): Don't set PATH to the empty
8999 string and then assume shell builtins like "test" will work.
9001 2007-06-12 Noah Misch <noah@cs.caltech.edu>
9003 * lib/autoconf/general.m4 (AC_SUBST): Raise a fatal error if VARIABLE is
9004 not a valid shell variable name.
9005 * tests/mktests.sh (ac_exclude_list): Add AC_ARG_VAR.
9006 * tests/torture.at (AC_SUBST: variable name validation): New test.
9007 Reported by Andreas Schwab.
9009 2007-06-04 Noah Misch <noah@cs.caltech.edu>
9011 * doc/autoconf.texi (AC_F77_MAIN): Give a specific usage example that
9012 works with both C and C++.
9014 2007-06-03 Noah Misch <noah@cs.caltech.edu>,
9015 Bruno Haible <bruno@clisp.org>
9017 * lib/autoconf/c.m4 (AC_OPENMP): Use a simple loop instead of compiler
9020 2007-05-31 Paul Eggert <eggert@cs.ucla.edu>
9022 * doc/autoconf.texi (Particular Types): Give example of use for
9025 2007-05-29 Stepan Kasal <kasal@ucw.cz>
9027 * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Fix a typo.
9029 2007-05-28 Paul Eggert <eggert@cs.ucla.edu>
9031 * doc/autoconf.texi (Particular Types): AC_TYPE_INT8_T does not
9032 define HAVE_INT8_T, and likewise for similar macros.
9033 Problem reported by Patrick Welche in
9034 <http://lists.gnu.org/archive/html/autoconf/2007-05/msg00062.html>.
9036 2007-05-25 Noah Misch <noah@cs.caltech.edu>
9038 * bin/Makefile.am ($(top_builddir)/bin/autom4te): New dependency.
9040 2007-05-21 Paul Eggert <eggert@cs.ucla.edu>
9042 * lib/autoconf/c.m4 (AC_OPENMP): Don't echo --enable-openmp
9043 choice, since that's what we do with --enable-largefile etc.
9044 Redo indenting and assignments to simplify things a bit, and make
9045 the parens work with Emacs.
9047 * doc/autoconf.texi (Generic Compiler Characteristics): Fix typo
9048 in my previous change: AC_C_OPENMP -> AC_OPENMP. Reported by Bruno
9051 2007-05-21 Noah Misch <noah@cs.caltech.edu>
9053 * lib/autoconf/c.m4 (AC_OPENMP): Simplify use of AC_ARG_ENABLE.
9054 * tests/local.at (AT_CHECK_ENV): Exempt OPENMP_CFLAGS.
9056 2007-05-21 Bruno Haible <bruno@clisp.org>
9058 * NEWS: Rename AC_C_OPENMP to AC_OPENMP.
9059 * lib/autoconf/c.m4 (AC_OPENMP): Renamed from AC_C_OPENMP.
9060 * doc/autoconf.texi (Generic Compiler Characteristics): Move
9061 renamed AC_OPENMP documentation here, from "C compiler".
9062 Mention C++ and Fortran.
9064 2007-05-21 Paul Eggert <eggert@cs.ucla.edu>
9066 * doc/autoconf.texi (C Compiler): Tweak OpenMP documentation a bit.
9068 2007-05-21 Bruno Haible <bruno@clisp.org>
9070 * NEWS: Mention AC_C_OPENMP.
9071 * lib/autoconf/c.m4 (AC_C_OPENMP): New macro.
9072 * doc/autoconf.texi (C Compiler): Document AC_C_OPENMP.
9073 Based in part on Steven G. Johnson's investigations for the AX_OPENMP
9074 macro in the Autoconf macro archive.
9076 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9078 * bin/autom4te.in: Fix typos.
9080 2007-05-16 Noah Misch <noah@cs.caltech.edu>
9082 * bin/autoconf.as: Handle `-' just like other input files.
9083 * bin/autom4te.in (parse_args): Pass `-' through.
9084 (handle_output): Skip the forbidden token search if we read from stdin.
9085 (up_to_date): Always treat stdin as out of date.
9086 * tests/tools.at (autoconf: input from stdin): New test.
9087 (autoconf: forbidden tokens, basic): Check a second `autoconf' run.
9089 2007-05-16 Stepan Kasal <kasal@ucw.cz>
9091 * tests/foreign.at tests/semantics.at, tests/tools.at: Remove
9092 parameters for AT_CLEANUP.
9093 * tests/local.at (AT_CHECK_AU_MACRO): Likewise.
9095 2007-05-14 Paul Eggert <eggert@cs.ucla.edu>
9097 * NEWS: Document that AC_C_RESTRICT checks 'restrict' last.
9098 * doc/autoconf.texi (C Compiler): Likewise.
9100 2007-05-14 Noah Misch <noah@cs.caltech.edu>
9102 * lib/autoconf/c.m4 (AC_C_RESTRICT): Check `restrict' last.
9104 2007-05-09 Stepan Kasal <kasal@ucw.cz>
9106 * doc/autoconf.texi: Direntry for "autoconf Invocation"
9107 renamed to "autoconf-invocation"
9109 * doc/autoconf.texi (Caching Results): The CACHE-ID variable
9110 in the examples should not use the internal "ac_" prefix.
9112 2007-05-05 Noah Misch <noah@cs.caltech.edu>
9114 * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): Use `eval'.
9115 * doc/autoconf.texi ($@, case): Document Zsh limitations.
9117 2007-05-03 Stepan Kasal <kasal@ucw.cz>
9119 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
9120 Reorganize the comments before and in the macro.
9122 2007-05-02 Stepan Kasal <kasal@ucw.cz>
9124 * lib/autoconf/lang.m4, lib/autoconf/c.m4,
9125 lib/autoconf/fortran.m4, lib/autoconf/erlang.m4: Cleanup of
9126 section titles and other comments; no code change.
9128 2007-05-01 Kevin Ryde <user42@zip.com.au>
9130 * doc/autoconf.texi (Particular Programs): Typo
9131 @acindex{AC_PROG_MKDIR_P} shouldn't have "AC" in that call.
9133 2007-04-30 Paul Eggert <eggert@cs.ucla.edu>
9135 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Don't imply that
9136 'configure' will fail if the shell lacks proper support for shell
9137 functions. Suggested by RMS.
9139 2007-04-29 Paul Eggert <eggert@cs.ucla.edu>
9141 * doc/autoconf.texi (Limitations of Builtins): Correct the warning
9142 about Solaris /bin/printf '%010000x' 123. Problem reported by
9145 2007-04-28 Paul Eggert <eggert@cs.ucla.edu>
9147 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look
9148 for a.* when searching for executables, as this prevents users
9149 from having files like a.c. Problem reported by Ralf Wildenhues in:
9150 http://lists.gnu.org/archive/html/autoconf-patches/2007-04/msg00029.html
9151 This fixes a problem introduced on 2000-12-19.
9153 2007-04-26 Paul Eggert <eggert@cs.ucla.edu>
9155 * doc/autoconf.texi (Limitations of Builtins): Warn about Solaris
9156 /bin/printf '%010000x' 123. Problem reported by Arto C. Nirkko
9159 2007-04-12 Paul Eggert <eggert@cs.ucla.edu>
9161 * NEWS: Document recent changes to AC_CHECK_ALIGNOF, AC_CHECK_SIZEOF,
9162 AC_CHECK_TYPE, AC_CHECK_TYPES.
9163 * doc/autoconf.texi (Generic types): C types must be type-names
9164 (the C terminology), not type-ids (the C++ term). C++ types
9165 must not be anonymous.
9166 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Remove special case
9167 for C++; this drops support for anonymous struct and union types,
9168 which were problematic anyway.
9169 * tests/semantics.at (AC_CHECK_HEADERS_NEW): Adjust test to work even
9172 2007-04-12 Jim Meyering <jim@meyering.net>
9174 * doc/autoconf.texi (Libraries): Typo fix: insert missing "in".
9176 2007-04-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9178 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Fix AC_CONFIG_LINKS
9179 to prefer a link source from the build tree, if it exists.
9180 Report by Pallav Gupta <pallavgupta@gmail.com>.
9182 2007-04-11 Paul Eggert <eggert@cs.ucla.edu>
9184 * doc/autoconf.texi (Generic Types): Document the restrictions
9185 on types imposed by AC_CHECK_TYPE, AC_CHECK_TYPES.
9186 (Generic Compiler Characteristics): AC_CHECK_SIZEOF now works
9187 with objects too. Document the restrictions on its use.
9188 Document the restrictions on AC_CHECK_ALIGNOF's type argument.
9189 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW):
9190 For C, just try sizeof (TYPE) and sizeof ((TYPE)); if the former
9191 works but the latter doesn't, then it's a valid type.
9192 This lets people use function types and so forth.
9193 For C++ there doesn't seem to be a simple solution, so leave it alone.
9194 (AC_CHECK_SIZEOF): Allow argument to be a variable.
9195 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Don't bother to invoke
9196 AC_CHECK_TYPE; that wasn't documented or necessary.
9198 2007-04-11 Stepan Kasal <kasal@ucw.cz>
9200 * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Skip AS_TEST_X
9201 when cross-compiling.
9203 2007-04-11 Stepan Kasal <kasal@ucw.cz>
9205 * doc/autoconf.texi (External Software): Fix a typo in the
9208 2007-04-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9210 * doc/autoconf.texi (External Software, Package Options):
9211 Fix ambiguous wording. Report by Reuben Thomas <rrt@sc3d.org>.
9213 2007-04-06 Paul Eggert <eggert@cs.ucla.edu>
9215 * doc/autoconf.texi (Particular Types): AC_C_LONG_DOUBLE is now
9216 obsolescent. Suggested by Bruno Haible.
9217 * NEWS: Document this.
9219 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
9221 * doc/autoconf.texi (Here-Documents, Limitations of Builtins):
9222 (Limitations of Usual Tools): Don't say "older" if Solaris 10 by
9223 default still has the problem. Problem reported by Bruce Korb.
9225 2007-03-28 Stepan Kasal <kasal@ucw.cz>
9226 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9228 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix a
9229 comment in the generated config.status.
9231 2007-03-27 Stepan Kasal <kasal@ucw.cz>
9233 * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Update comment.
9235 2007-03-26 Paul Eggert <eggert@cs.ucla.edu>
9237 * doc/autoconf.texi (Shellology): Rework treatment of the 'test'
9238 command and case statements to make it a bit clearer and describe
9241 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
9243 * doc/autoconf.texi (C Compiler): Mention that AC_PROG_CC_C99 also
9244 checks for unsigned long long int.
9246 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
9248 * doc/autoconf.texi (Limitations of Usual Tools): Warn about other
9249 nonstandard grep R.E. escape sequences.
9251 2007-03-17 Jim Meyering <jim@meyering.net>
9253 * doc/autoconf.texi: Adjust grammar around use of "heuristics".
9254 (Limitations of Usual Tools): Also list \< and \>, and mention that
9255 HP-UX's grep, like the one from Solaris, does not support that syntax.
9257 2007-03-09 Stepan Kasal <kasal@ucw.cz>
9259 * doc/autoconf.texi (Specifying Names): `--host' does not
9260 change the build type.
9262 2007-03-05 Paul Eggert <eggert@cs.ucla.edu>
9264 * doc/autoconf.texi (C Compiler): Warn that AC_C_BIGENDIAN
9265 suggests AC_CONFIG_HEADERS.
9266 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Warn if not using
9267 AC_CONFIG_HEADERS. Problem reported by
9270 2007-02-28 Paul Eggert <eggert@cs.ucla.edu>
9272 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Fix typo "__LITLE_ENDIAN__".
9273 Problem reported by Paolo Bonzini in:
9274 http://lists.gnu.org/archive/html/autoconf-patches/2007-02/msg00024.html
9275 * tests/semantics.at (AC_C_BIGENDIAN): Don't reject hosts that have
9276 universal binaries. Problem reported by Elias Pipping.
9278 2007-02-27 Paul Eggert <eggert@cs.ucla.edu>
9280 * NEWS: AC_C_BIGENDIAN now supports universal binaries a la Mac OS X.
9281 * doc/autoconf.texi (C Compiler): Document this. There is a new
9282 extra argument ACTION-IF-UNIVERSAL.
9283 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Implement this.
9284 Add support for Solaris-style _LITTLE_ENDIAN and _BIG_ENDIAN.
9285 Reindent for sanity's sake.
9287 2007-02-24 Eric Blake <ebb9@byu.net>
9289 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
9291 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
9292 * lib/autotest/general.m4 (AT_INIT): Likewise.
9293 (_AT_DECIDE_TRACEABLE): Fix syntax highlighting.
9295 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9297 * lib/autotest/general.m4 (AT_INIT): With --clean, return exit
9298 status of rm so we know when it failed.
9299 If cleaning of test dir failed before running the test, warn.
9300 Output the line separator in verbose mode before the warning
9301 to make clear the warning belongs to the following test.
9303 2007-02-08 Paul Eggert <eggert@cs.ucla.edu>
9305 * doc/autoconf.texi (Parentheses): Mention problem with (( in
9308 2007-02-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9309 and Paul Eggert <eggert@cs.ucla.edu>
9311 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix quoting
9312 errors introduced in last change.
9314 2007-02-07 Paul Eggert <eggert@cs.ucla.edu>
9316 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer \r to
9317 an actual carriage return. Use "ac_cr" to contain the actual
9319 * doc/autoconf.texi (Limitations of Usual Tools): Document problem
9320 with traditional Awk and begin.
9321 * tests/torture.at (Limitations of Builtins): Document the problem
9322 with Bash 2.03 printf.
9323 (Substitute and define special characters):
9324 Remove trailing white space. Work around a bug in Solaris 8 /bin/bash.
9326 2007-02-06 Ralf Menzel <menzel@ls6.cs.uni-dortmund.de> (tiny change)
9328 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Redirect
9329 input from /dev/null in awk test, so even Solaris /usr/bin/awk
9330 will not wait for input with a script containing only a BEGIN
9333 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
9335 * doc/autoconf.texi (Introduction, Why GNU M4): Clarify M4 version
9339 2007-02-02 Eric Blake <ebb9@byu.net>
9341 * NEWS: Update copyright.
9343 * m4/m4.m4 (AC_PROG_GNU_M4): Reject M4 1.4 through 1.4.4 as
9345 * configure.ac: Update error message.
9346 * NEWS: Note that M4 1.4.5 or later is now a hard dependency.
9347 Reported by Gary Vaughan and Jim Meyering, and problem analyzed
9349 http://lists.gnu.org/archive/html/bug-autoconf/2006-11/msg00025.html
9351 2007-01-31 Eric Blake <ebb9@byu.net>
9353 * THANKS (people): Update.
9355 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
9357 * doc/autoconf.texi (Shellology): pdksh 5.2.14 is still the
9359 (Shell Substitutions): Note problems with @{var:=value} etc.
9360 Add a new section for problems with @{#var} etc. Problem noted
9361 by Ralf Wildenhues. See:
9362 http://lists.gnu.org/archive/html/libtool-patches/2005-01/msg00157.html
9364 2007-01-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9366 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Also
9367 AC_SUBST([MKDIR_P]), so that Automake < 1.10 will pick up its
9368 trace, if a package uses AC_PROG_MKDIR_P explicitly. The actual
9369 substitution will still be done by the special code.
9370 Report by Jim Meyering.
9372 * doc/autoconf.texi (File System Conventions): Mention that
9373 $PATH_SEPARATOR is for the build system only.
9374 Report by Keith Marshall.
9376 2007-01-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9378 * doc/autoconf.texi (Setting Output Variables): Mention that
9379 all non-NUL characters are ok in substituted values.
9380 * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Fix comment typo.
9381 (_AC_OUTPUT_FILES_PREPARE): Test and use backslash escaping of
9382 carriage return for $AWK, needed for BSD awk.
9383 * tests/torture.at (Substitute and define special characters):
9384 Test all 8 bit non-NUL characters.
9385 Report against Automake by Patrick Welche.
9387 2007-01-15 Stepan Kasal <kasal@ucw.cz>
9389 * doc/autoconf.texi: Direntry for "autoconf Invocation" renamed.
9391 2007-01-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9393 * lib/autoconf/programs.m4 (AC_PROG_SED): When closing a pipe
9394 early on the reader side, drop stderr of the input to avoid
9395 `broken pipe' error output; this may happen even with shell
9396 builtin `echo' of some bash versions. Reports by Ian Macdonald
9397 <iamacdo@telkomsa.net> and Sam Sexton <Sam.Sexton@reuters.com>.
9399 2007-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9401 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Use newlines to
9402 separate items of `ac_user_opts', to avoid long lines.
9403 (_AC_INIT_PARSE_ENABLE2, _AC_ENABLE_IF_ACTION): Adjust.
9405 2007-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9407 * doc/autoconf.texi: Fix some typos.
9409 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
9411 Fix some wording problems noted by Paolo Bonzini in:
9412 http://lists.gnu.org/archive/html/autoconf-patches/2007-01/msg00077.html
9413 * doc/autoconf.texi (Signed Overflow Examples): Give more
9414 discussion about the allow_superuser_privileges example,
9415 and change it a bit to make things clearer.
9416 (Optimization and Wraparound): Clarify whether the compiler
9417 will generate an infinite loop for the example derived from
9418 Autoconf's mktime test.
9419 (Signed Overflow Advice): Say that -ftrapv is meant for debugging.
9420 Also, clarify unsigned multiplication overflow.
9422 2007-01-04 Eric Blake <ebb9@byu.net>
9424 * bin/Makefile.am (RELEASE_YEAR): New macro.
9425 (edit): Use it to supply correct copyright year to scripts.
9426 * bin/autoconf.as (version): Use it.
9427 * bin/autoheader.in ($version): Likewise.
9428 * bin/autom4te.in ($version): Likewise.
9429 * bin/autoreconf.in ($version): Likewise.
9430 * bin/autoscan.in ($version): Likewise.
9431 * bin/autoupdate.in ($version): Likewise.
9432 * bin/ifnames.in ($version): Likewise.
9434 2007-01-02 Paul Eggert <eggert@cs.ucla.edu>
9436 * doc/autoconf.texi (Integer Overflow): Revised based on today's
9437 feedback. The most important changes document what happens when
9438 you convert an out-of-range value to a signed integer type, and
9439 say that (sum < a) != (b < 0) reliably detects overflow when sum =
9442 * doc/autoconf.texi (Integer Overflow): Greatly expand and
9443 rewrite, taking notions from the recent discussion on the gcc and
9444 autoconf mailing lists; please see
9445 http://lists.gnu.org/archive/html/autoconf-patches/2006-12/msg00091.html
9446 and follow the many links.
9447 (Integer Overflow Basics, Signed Overflow Examples):
9448 (Optimization and Wraparound, Signed Overflow Advice):
9449 (Signed Integer Division): New sections.
9451 2006-12-28 Steven G. Johnson <stevenj@alum.mit.edu>
9453 * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't include
9454 preprocessor macro arguments in traced name.
9455 * doc/autoconf.texi (Defining symbols): Document longstanding
9456 support for AC_DEFINE-ing macros with arguments, and document
9457 behavior when the same variable has multiple AC_DEFINEs.
9458 * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Revert to the
9459 old implementation which AC_DEFINEs the FC_FUNC and FC_FUNC_
9460 macros directly, giving much shorter and simpler code.
9462 2006-12-28 Malcolm Purvis <malcolmp@xemacs.org> (trivial change)
9464 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Insert a
9465 space before "$ac_configure_args" to prevent a 'config.status
9466 --recheck' failure if ac_configure_args doesn't contain a leading
9467 space. This works around a problem with the XEmacs configure.ac,
9468 which uses the (undocumented) ac_configure_args variable
9469 inconsistently with Autoconf.
9471 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
9473 * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):
9474 Include <limits.h>, and use its INT_MAX to rewrite the
9475 j loop so that it does not overflow 'int'. Problem reported by
9477 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
9478 Play it safe by shifting left by 1 rather than multiplying by 2,
9479 as GCC is less likely to optimize this away when the value
9480 is signed (when it assumes overflow leads to undefined behavior).
9481 Also, don't assume time_t uses two's complement.
9483 2006-12-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9485 * tests/torture.at (Substitute a 2000-byte string): Avoid using
9486 a 10kB long (multi-line) string literal, OpenServer 5.0.7 ksh
9487 dumps core on it. Report by Tim Rice.
9489 2006-12-18 Steven G. Johnson <stevenj@alum.mit.edu>
9491 * lib/autoconf/general.m4 (AC_ARG_ENABLE): Print help about
9492 --disable-option-checking to --help output even when
9493 AC_PRESERVE_HELP_ORDER is not used.
9494 (_AC_INIT_PARSE_ENABLE2): Print warnings using actual --enable or
9495 --with argument, rather than argument with [-.] replaced by
9497 * NEWS: Fix typo in previous change; the news was in the
9500 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
9502 * NEWS: Warnings are now generated by default for unknown
9503 --enable-* and --with-* options.
9504 * doc/autoconf.texi (Option Checking): Renamed from
9505 (Configure Option Checking). Tighten up the wording a bit.
9506 (External Software, Package Options): Cross-reference to Option
9507 Checking, and use this to shorten our section.
9508 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Prefer test -n
9509 "$x" to test "x$foo" != x.
9510 * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
9511 Don't warn if $enable_option_checking is "no".
9512 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Initialize
9513 ac_unrecognized_opts to the empty string.
9514 Don't echo the unrecognized opts, as this might mishandle
9515 backslashes or leading -.
9516 (AC_PRESERVE_HELP_ORDER): Put the --disable-option-checking
9517 usage next to the other --disable-FEATURE options in the
9520 2006-12-18 Steven G. Johnson <stevenj@alum.mit.edu>
9522 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, _AC_INIT_PARSE_ARGS):
9523 (_AC_INIT_PARSE_ENABLE2, _AC_INIT_HELP, _AC_ENABLE_IF):
9524 Print warning for unrecognized --with and --enable options
9525 (AC_DISABLE_OPTION_CHECKING): New macro to disable warnings.
9526 * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS):
9527 Disable option checking when subdirs are configured.
9528 (AC_OUTPUT): If warnings are enabled, print warning about
9529 unrecognized --with and --enable options at the end of
9530 the configure output (as well as at the beginning).
9531 * doc/autoconf.texi (Option Checking): New node.
9532 Document new option warning functionality.
9534 2006-12-16 Eric Blake <ebb9@byu.net>
9536 * configure.ac (AC_INIT): Bump version, since 2.61a is released.
9537 * NEWS: Start news for current version.
9539 2006-12-15 Paul Eggert <eggert@cs.ucla.edu>
9541 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
9542 Define HAVE_GETMNTENT to 1, not to the empty string.
9543 Problem originally reported by Jochen Friedrich in
9544 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403243>.
9546 This change prompted by a problem report by Andrey Simonenko in
9547 <http://lists.gnu.org/archive/html/bug-autoconf/2006-12/msg00026.html>.
9548 * doc/autoconf.texi (Defining Symbols): AC_DEFINE works for
9549 object-like macros only, in the traditional portable character
9551 * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL):
9552 Warn about attempts to define things that are not identifiers.
9553 * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Rewrite to avoid
9554 awful hack that AC_DEFINEd macro names containing parentheses.
9556 2006-12-12 Paul Eggert <eggert@cs.ucla.edu>
9558 * doc/autoconf.texi: Undo some of the 2006-12-10 change. It was
9559 too drastic, even if Texinfo in theory requires it for info mode.
9561 (config.status Invocation): Renamed back from Recreating a
9563 (Obsolete config.status Use): Renamed back from Obsolete Recreation.
9564 (Autoconf 2.13): Renamed back from 20th-century Autoconf 2.
9566 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
9568 * NEWS: Version 2.61a.
9570 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
9571 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9573 * NEWS: Document changes with echo and printf, and the lack
9574 of limits on the total size of multi-line values of substituted
9575 variables, and the AC_FUNC_FSEEKO fix.
9577 2006-12-10 Paul Eggert <eggert@cs.ucla.edu>
9579 * doc/autoconf.texi (Writing Autoconf Input): Renamed from
9580 Writing configure.ac.
9581 (Autoconf Input Layout): Renamed from configure.ac Layout.
9582 (Recreating a Configuration): Renamed from config.status Invocation.
9583 (Obsolete Recreation): Renamed from Obsolete config.status Use.
9584 (acconfig Header): Renamed from acconfig.h.
9585 (20th-century Autoconf 2): Renamed from Autoconf 2.13.
9586 (Writing Testsuites): Renamed from Writing testsuite.at.
9587 (Autom4te Cache): Renamed from autom4te.cache.
9589 * BUGS: Remove mention of VPATH problem, since it's now documented
9590 not to be a bug in the Autoconf build procedure itself, but rather
9591 a problem with the proprietary `make' programs.
9593 * doc/autoconf.texi (Build Directories): Add a cross reference
9596 * build-aux/config.guess, build-aux/config.sub, build-aux/texinfo.tex:
9597 * doc/standards.texi: Sync from gnulib.
9599 * man/autoconf.1, man/autoheader.1, man/autom4te.1, man/autoreconf.1:
9600 * man/autoscan.1, man/autoupdate.1, man/config.guess.1:
9601 * man/config.sub.1, man/ifnames.1: Remove from CVS, since they're
9602 generated automatically.
9604 2006-12-06 Paul Eggert <eggert@cs.ucla.edu>
9606 * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Also try -xc99=all, for Sun
9607 C 5.8 on Solaris 10. Using -xc99=all rather than -xc99 bypasses
9608 the buggy -xc99 option of Forte Developer 7 C on Solaris 9.
9610 2006-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9612 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the
9613 `CEOF$ac_eof' special marker, the awk script cannot contain a
9614 line matching `^CEOF', so this is not needed any more.
9615 * tests/torture.at (Substitute a newline): Expose the `%!_!# '
9616 special marker in the test.
9618 2006-12-06 Stepan Kasal <kasal@ucw.cz>
9620 * tests/tools.at (autom4te preselections): Use `find -newer';
9621 remove one of the sleeps.
9623 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Make it
9624 more readable, using ...
9625 (_AC_INIT_PARSE_ENABLE2): ... this new helper macro.
9627 * doc/autoconf.texi (autoheader Invocation): Do not double-
9628 quote the parameter of `AH_BOTTOM' in the example.
9630 2006-12-05 Stepan Kasal <kasal@ucw.cz>
9632 * doc/autoconf.texi (Configuration Headers): Remove the
9633 example with multiple input files.
9634 (autoheader Invocation): Encourage `AH_BOTTOM', discouraging
9635 multiple input files.
9637 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9639 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When
9640 creating the awk substitution script, handle one input line at a
9641 time, so that the maximum length of a substituted (multi-line)
9642 value is not limited by the size of the sed pattern space.
9643 The trade-off is a slightly repetitive sed script.
9644 * doc/autoconf.texi (Limitations of Usual Tools): Branch labels
9645 can only have up to 7 characters, due to Solaris 10 /bin/sed.
9646 * tests/torture.at (Substitute a 2000-byte string): Increase the
9647 test with several long lines, they should not be caught by sed
9650 * tests/tools.at (autom4te preselections): New test, to flag
9651 entries missing from autom4te.cfg.
9652 Report by David Byron <dbyron@hheld.com>.
9654 * tests/torture.at (Substitute a 2000-byte string): Actually use
9655 AC_PROG_AWK, so the last change works as intended.
9656 (Substitute and define special characters): Likewise.
9657 (Substitute a newline): Likewise.
9659 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use `$AWK'
9660 instead of `awk' consistently.
9661 (_AC_OUTPUT_CONFIG_STATUS): Initialize $AWK.
9662 * tests/torture.at (Torturing config.status): Test both the
9663 result of AC_PROG_AWK and plain awk.
9664 (Substitute a 2000-byte string): Likewise.
9665 (Substitute and define special characters): Likewise.
9666 (Substitute a newline): Likewise.
9668 2006-12-04 Paul Eggert <eggert@cs.ucla.edu>
9670 * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko
9671 can be assigned to a function pointer. Problem reported by
9672 Peter Palfrader in <http://bugs.debian.org/401377>. Based on
9673 part of a patch by Ralf Wildenhues in that same bug report.
9675 2006-12-01 Paul Eggert <eggert@cs.ucla.edu>
9677 * tests/mktests.sh (ac_exclude_list): Exclude AC_FUNC_SETVBUF_REVERSED.
9678 * tests/semantics.at (AC_FUNC_SETVBUF_REVERSED): New test.
9680 2006-12-01 Eric Blake <ebb9@byu.net>
9682 * lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in
9683 cross-compiling from cygwin to mingw.
9684 Reported by Bob Rossi. This resurrects the 2000-11-30 patch to
9685 aclang.m4, which was mistakenly removed in the 2001-09-17 patch
9686 to lib/autoconf/c.m4.
9688 2006-12-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9690 * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Use a longer test
9691 string for more reliable failure. Wrap the entire test that
9692 causes the broken Solaris printf to dump core, in a subshell,
9693 so the segmentation fault message is reliably suppressed.
9694 Fix shell expansion errors by using /usr/ucb/echo always;
9695 avoid an error on systems without it by another subshell.
9696 Avoid m4 expansion of `$1'. Set the zeroth argument of the
9697 subshell-$as_echo to `as_echo', for better error message.
9699 2006-11-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9701 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): If `BASH_ARGV' or
9702 `BASH_SOURCE' contain a newline, set them to empty, as they may
9705 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
9707 Turn AC_FUNC_SETVBUF_REVERSED into a noop. It's been obsolete for
9708 years and is too hard to maintain now. The last straw was
9709 reported by Jerker Baeck in
9710 <http://lists.gnu.org/archive/html/autoconf/2006-11/msg00102.html>.
9711 * NEWS: AC_FUNC_SETVBUF_REVERSED is now obsolete.
9712 * doc/autoconf.texi (Particular Functions): Move
9713 AC_FUNC_SETVBUF_REVERSED from here...
9714 (Obsolete Macros): ... to here. Say that it does nothing now.
9715 * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
9716 Turn into (almost) a no-op.
9718 * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL, AC_C_CONST):
9720 Do not recommend via AN_FUNCTION, AN_IDENTIFIER, or AN_HEADER.
9721 These macros are obsolescent and new applications shouldn't need them.
9722 * lib/autoconf/functions.m4 (AC_FUNC_CLOSEDIR_VOID, AC_REPLACE_FNMATCH):
9723 (AC_FUNC_GETLOADAVG, AC_FUNC_GETPGRP, AC_FUNC_MEMCMP):
9724 (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP, AC_FUNC_STAT, AC_FUNC_LSTAT):
9725 (AC_FUNC_STRFTIME, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
9726 (AC_FUNC_VPRINTF): Likewise.
9727 * lib/autoconf/headers.m4 (AC_HEADER_DIRENT, AC_HEADER_STAT):
9728 (AC_HEADER_STDC, AC_HEADER_SYS_WAIT, AC_HEADER_TIME): Likewise.
9729 * lib/autoconf/types.m4 (AC_STRUCT_TM): Likewise.
9731 * doc/autoconf.texi (Setting Output Variables): Mention that
9732 @VAR1@VAR2 has unspecified behavior. Problem reported by
9734 * NEWS: Mention this.
9736 * Makefile.am: Put only a single '#' into the copyright notice,
9737 so that it's also present in the output file. Standardize wording
9738 in makefile copyright notices to match GNU coding standards.
9739 * bin/Makefile.am: Likewise.
9740 * doc/Makefile.am: Likewise.
9741 * lib/Makefile.am: Likewise.
9742 * lib/freeze.mk: Likewise.
9743 * lib/autoconf/Makefile.am: Likewise.
9744 * lib/autoscan/Makefile.am: Likewise.
9745 * lib/autotest/Makefile.am: Likewise.
9746 * lib/m4sugar/Makefile.am: Likewise.
9747 * man/Makefile.am: Likewise.
9748 * tests/Makefile.am: Likewise.
9749 * lib/emacs/Makefile.am: Remove copyright notice; it's just a
9752 2006-11-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9754 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix error
9755 in the sed script that mangles the awk script: delete up to the
9756 first exclamation mark only.
9757 * tests/torture.at (Substitute and define special characters):
9760 2006-11-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9762 Rewrite config files generation: avoid quadratic growth in
9763 the number of substituted variables by using awk instead of sed
9764 for the bulk of the substitutions.
9765 * NEWS: Mention this.
9766 * doc/autoconf.texi (Setting Output Variables): `|#_!!_#|' is also
9767 forbidden in the output (and thus input) file.
9768 * lib/autoconf/status.m4 (_AC_AWK_LITERAL_LIMIT): New macro.
9769 (_AC_OUTPUT_FILES_PREPARE): Instead of several sed scripts,
9770 generate just one large awk script for substitutions,
9771 eliminating much of the earlier complexity, while adding some
9772 new complexity. Only expand the substitution templates at
9773 configure time, for smaller configure script size. If
9774 _AC_SUBST_FILES are used, test 'awk' for working getline support
9775 at config.status time. If absent, interpolate through the
9776 shell. The awk script was written with much help
9777 from Paolo Bonzini and Paul Eggert.
9778 (_AC_SED_CMD_NUM, _AC_SED_DELIM_NUM, _AC_SED_FRAG): Removed.
9779 (_AC_SED_FRAG_NUM): Likewise.
9780 (_AC_SUBST_CMDS): Renamed from...
9781 (_AC_SED_CMDS): ...this.
9782 (_AC_OUTPUT_FILE): Use _AC_SUBST_CMDS.
9783 * tests/torture.at (Substitute a 2000-byte string): Also
9784 substitute a line with 1000 words, and a variable with several
9786 (Substitute and define special characters): Test awk special
9787 characters, and put substitution input strings `@foo@' in the
9788 output, to test that no recursion happens; test several other
9789 combinations from Paolo Bonzini.
9791 2006-11-25 Paul Eggert <eggert@cs.ucla.edu>
9793 * lib/autotest/general.m4 (AT_INIT): Undo recent changes
9794 that replaced echo with AS_ECHO where this wasn't necessary.
9795 Problem reportd by Ralf Wildenhues.
9796 * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Port to Solaris 7,
9797 where "/usr/bin/printf '%s\n' S" dumps core if S is long.
9798 This is Sun bug 4206210. Problem reportd by Ralf Wildenhues.
9800 2006-11-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9802 * lib/freeze.mk (GREP): Removed, no need to initialize this.
9804 2006-11-21 Paul Eggert <eggert@cs.ucla.edu>
9806 * doc/autoconf.texi (Limitations of Usual Tools): Don't claim
9807 that traditional Awk lacks 3-arg "split". It has it.
9808 Mention that FS must be a single character, and a few other
9809 99-byte limits of traditional Awk.
9810 Mention that if (i in a) doesn't work with traditional Awk.
9812 2006-11-18 Paul Eggert <eggert@cs.ucla.edu>
9814 * tests/autotest.at (BSx641-newline in command):
9815 (BS-BS-newline in command, BSx640-newline in command):
9816 (Newline-CODE-BS-newline in command):
9817 (Single-quote-BS-newline in command):
9818 (Single-quote-newline-BS-newline in command):
9819 Use printf '%s\n' instead of echo, for portability to hosts
9820 where echo interprets backslashes. This will break on hosts
9821 that lack printf, but for now let's assume all such hosts
9822 are dead (if not, we should get reports of test failures).
9824 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
9826 'echo' has some portability problems, when given a first argument
9827 with a leading '-', or when given any argument containing '\'.
9828 Avoid using 'echo' in these cases.
9829 * bin/Makefile.am $(bin_SCRIPTS): Rewrite to avoid 'echo' entirely.
9830 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Likewise.
9831 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
9832 * lib/autotest/general.m4 (AT_INIT): Likewise.
9833 * bin/autoconf.as: Use AS_ECHO rather than plain echo, when the
9834 argument might be unportable.
9835 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Likewise.
9836 * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Likewise.
9837 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT):
9838 (_AC_FC_LIBRARY_LDFLAGS): Likewise.
9839 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Likewise.
9840 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE, _AC_INIT_PREPARE):
9841 (_AC_ARG_VAR_VALIDATE, AC_ARG_PROGRAM, _AC_MSG_LOG_CONFTEST):
9842 (AC_RUN_LOG, _AC_RUN_IFELSE, _AC_LIBOBJS_NORMALIZE): Likewise.
9843 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
9844 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Likewise.
9845 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
9846 (AC_PROG_MAKE_SET): Likewise.
9847 * lib/autoconf/status.m4 (_AC_SRCDIRS, _AC_OUTPUT_HEADER):
9848 (_AC_OUTPUT_SUBDIRS, _AC_OUTPUT_CONFIG_STATUS): Likewise.
9849 * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT, AT_INIT):
9850 (AT_CLEANUP, _AT_DECIDE_TRACEABLE, _AT_CHECK): Likewise.
9851 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE, _AS_ECHO_UNQUOTED):
9852 (_AS_BASENAME_SED, _AS_DIRNAME_SED, AS_MKDIR_P, AS_TMPDIR, AS_UNAME):
9853 (AS_TR_SH, AS_TR_CPP, AS_VAR_GET): Likewise.
9854 * bin/autoconf.as: Redo verbose flag implementation, as the old
9855 scheme wouldn't work with AS_ECHO.
9856 * lib/autotest/general.m4 (AT_INIT): Likewise.
9857 * lib/autoconf/general.m4 (AC_MSG_RESULT, AC_MSG_RESULT_UNQUOTED):
9858 Don't use ECHO_T, since ECHO_N is now reliable.
9859 * lib/autotest/general.m4 (AT_INIT): Likewise.
9860 * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use sed "$script"
9861 rather than using a here-document to put the script into a file.
9862 (_AC_DO_ECHO): Hoist the eval out of the echo, so that we can
9864 * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Likewise.
9865 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Use
9866 AS_ECHO_N rather than ECHO_N and ECHO_C. This doesn't fix any
9867 bug, but we might as well stop using ECHO_N and ECHO_C internally.
9868 * lib/autotest/general.m4 (AT_SETUP): Likewise.
9869 * lib/m4sugar/m4sh.m4 (_AS_ECHO_N): Likewise.
9870 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
9871 (_AC_OUTPUT_MAIN_LOOP): Rework echo so that it has just one
9872 operand, as AS_ECHO requires. Avoid double file name expansion.
9873 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke _AS_ECHO_PREPARE.
9874 Don't set as_nl, since _AS_ECHO_PREPARE does that now.
9875 (_AS_PREPARE): Comment that _AS_ECHO_N_PREPARE is just for user code.
9876 (AS_ECHO, AS_ECHO_N, _AS_ECHO_PREPARE): New macros.
9877 * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
9878 Double-quote strings that would otherwise contain M4 comments.
9879 * tests/m4sh.at (AS_ECHO and AS_ECHO_N): New test.
9881 * configure.ac (AC_INIT): Bump to 2.61a.
9884 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
9888 * configure.ac (AC_INIT): Bump to 2.61.
9891 * tests/autotest.at (Macro with backslash in a test title):
9892 Comment out for now, as this tests neither fails nor passes
9893 reliably. Problem reported by Ralf Wildenhues.
9895 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
9897 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos
9898 in previous change, which caused test failures.
9900 2006-11-16 Stepan Kasal <kasal@ucw.cz>
9902 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Factor out
9903 code for --enable, --disable, --with, and --without to...
9904 (_AC_INIT_PARSE_ENABLE): ... a new macro.
9905 * doc/autoconf.texi (Package Options):
9906 * NEWS: Document that AC_ARG_ENABLE allows dots, too.
9908 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
9910 Import these changes from config via gnulib:
9912 2006-11-15 Ben Elliston <bje@gnu.org>
9914 From Josselin Mouette <joss@debian.org>:
9915 * build-aux/config.guess (SX-8:SUPER-UX:*:*): New.
9917 2006-11-08 Ben Elliston <bje@gnu.org>
9919 * build-aux/config.guess (authenticamd:Interix*:[3456]*): Another AMD64.
9921 2006-11-07 Steve Woodford <scw@NetBSD.org>
9922 Ben Elliston <bje@gnu.org>
9924 * build-aux/config.guess (*:NetBSD:*:*): Handle sh5el arch.
9925 * build-aux/config.sub (sh5el): New basic_machine.
9928 Import this change from coreutils:
9930 2006-02-13 Jim Meyering <jim@meyering.net>
9932 * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
9935 Import this change from gnustandards via gnulib:
9937 2006-11-15 Karl Berry <karl@gnu.org>
9939 * standards.texi: core -> memory, throughout.
9940 (CPU Portability): show correct example of calling write
9941 on a char value; thanks to Paul Eggert for the code.
9942 Both of these suggestions from Eugene Y. Vasserman.
9945 Import these changes from texinfo via gnulib:
9947 2006-11-08 Karl Berry <karl@gnu.org>
9949 * build-aux/texinfo.tex (\dopdfimage): look for png, jpg/jpeg/JPG, and
9950 as well as pdf images, since they are supported in pdftex with
9953 2006-11-05 Karl Berry <karl@gnu.org>
9955 * doc/texinfo.tex (Image Syntax): don't mention GIF any more.
9957 2006-11-13 Paul Eggert <eggert@cs.ucla.edu>
9959 * NEWS: Document the AC_ARG_WITH change.
9961 2006-11-13 Bruno Haible <bruno@clisp.org>
9963 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): For --with, --without
9964 options, transliterate also dots to underscores.
9965 (_AC_ENABLE_IF): Transliterate also dots to underscores.
9966 * doc/autoconf.texi (External Software): Document that AC_ARG_WITH's
9967 first argument may also contain dots.
9969 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
9971 * tests/mktests.sh (ac_exclude_list): Exclude AC_PROG_CXX_C_O, for
9972 benefit of platforms like Solaris+GCC where it is common to have a
9973 non-working g++ installation.
9975 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9976 and Joel E. Denny <jdenny@ces.clemson.edu>
9977 and Paul Eggert <eggert@cs.ucla.edu>
9979 * tests/autotest.at (AT_CHECK_AT_TITLE): Fix shell quoting bugs
9980 and non-portable sed scripts, and use $CONFIG_SHELL when invoking
9983 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
9985 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Set
9986 ac_cv_type_long_long_int to 'yes' instead of 'cross-compiling'.
9987 Imported from a similar patch to gnulib by Bruno Haible.
9989 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
9991 * NEWS: New macros AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS.
9992 * doc/autoconf.texi (C Compiler): Document them.
9993 * lib/autoconf/c.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS):
9994 New macros, taken from gnulib.
9996 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
9998 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
9999 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
10002 2006-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10004 * tests/torture.at (Configuring subdirectories): Do not skip
10005 Automake 1.10 nor future Automake 11.1 (sic).
10007 2006-10-26 Joel E. Denny <jdenny@ces.clemson.edu>
10008 and Stepan Kasal <kasal@ucw.cz>
10010 Handle special characters in test case titles correctly.
10011 * lib/autotest/general.m4 (AT_INIT): M4-quote and AS_ESCAPE AT_help_all
10013 (AT_SETUP): M4-quote and AS_ESCAPE the title properly everywhere.
10014 * tests/autotest.at (AT_CHECK_AT_TITLE): Add EXPANDED-TITLE-TO-TEST
10015 argument. Extend to check titles printed by ./micro-suite and
10016 ./micro-suite -l and the title in micro-suite.log.
10017 (Backquote in a test title,
10018 Single-quote in a test title,
10019 Double-quote in a test title): Don't expect failure anymore.
10020 (Backslash in a test title): Put a non-whitespace character after the
10021 backslash so that Bourne shells might actually see it as an escape
10023 (Brackets in a test title,
10024 Pound in a test title,
10025 Comma in a test title,
10026 Quoted Macro in a test title,
10027 Macro in a test title,
10028 Macro with single-quote in a test title): New tests.
10029 (Macro with backquote in a test title,
10030 Macro with double-quote in a test title,
10031 Macro with backslash in a test title): New tests expected to fail.
10032 * tests/torture.at (#define header templates): M4-quote this title in
10033 AT_SETUP call so that no M4 code is commented inadvertently somewhere.
10034 The visible effect was a stray [] in the testsuite output.
10036 2006-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10038 * doc/autoconf.texi (Limitations of Builtins): Do not invoke
10039 `trap ... 0' inside a function, for AIX sh.
10041 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
10043 * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0,
10044 since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build
10045 5363) simply issues a warning when dividing by zero at compile
10046 time. Problem reported by Elias Pipping.
10048 2006-10-26 Eric Blake <ebb9@byu.net>
10051 * doc/autoconf.texi (Evaluation Macros): Improve the example to
10052 show effect on macros that expand with commas.
10053 Reported by Joel E. Denny.
10055 * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
10056 Also work with M4 1.4.8.
10058 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
10060 * doc/autoconf.texi (Slashes): Document Tru64 4.0 bug reported by
10063 2006-10-25 Stepan Kasal <kasal@ucw.cz>
10065 * tests/tools.at (autom4te --force): New test, verifies that
10066 `--force' always rewrites the output file.
10068 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
10070 * doc/autoconf.texi (Limitations of Usual Tools): Document that rm
10071 needs operands on NetBSD 2.0.2. Problem reported by Bruno Haible.
10073 2006-10-24 Stepan Kasal <kasal@ucw.cz>
10075 * tools/trace.at (autoconf --trace: user macros): Test `$%'.
10077 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
10079 * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
10080 If FUNCTION-BODY is nonempty, use AC_LINK_IFELSE rather than
10081 AC_COMPILE_IFELSE, to work around problem with OSF/1 4.0F fseeko
10082 reported by Nelson H. F. Beebe for Coreutils 6.4.
10084 * tests/tools.at (autoconf --trace: user macros): Remove test
10085 for tracing multiline macros, since m4 1.4.7a uses a different
10086 way to number lines. Problem reported by Ralf Wildenhues.
10088 2006-10-24 Stepan Kasal <kasal@ucw.cz>
10090 * bin/autom4te.in (handle_m4): Do not redirect stdin to
10091 /dev/null since the heuristics for interactive behaviour was
10094 * bin/autom4te.in: With --force, always refresh the output
10095 file. Problem reported by Greg Schafer <gschafer@zip.com.au>.
10097 * bin/autoconf.as: Fix the verbose message at the end.
10099 2006-10-23 Paul Eggert <eggert@cs.ucla.edu>
10101 * configure.ac (AC_INIT): Bump to 2.60c.
10104 2006-10-22 Paul Eggert <eggert@cs.ucla.edu>
10106 * NEWS: Version 2.60b.
10108 Import this change from Texinfo:
10109 2006-10-15 Karl Berry <karl@gnu.org>
10110 * build-aux/texinfo.tex: automake 1.10
10112 * NEWS: Remove AC_CACHE_CHECK_INT.
10113 * doc/autoconf.texi (Caching Results): Likewise.
10114 * lib/autoconf/general.m4 (_AC_CACHE_CHECK_INT): Renamed from
10115 AC_CACHE_CHECK_INT, since it's no longer public.
10116 * lib/autoconf/types.m4: All uses of AC_CACHE_CHECK_INT changed.
10117 * tests/base.at (AC_COMPUTE_INT): Test this, not AC_CACHE_CHECK_INT.
10119 2006-10-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10121 * doc/autoconf.texi (Limitations of Usual Tools): Fix two typos.
10123 2006-10-19 Eric Blake <ebb9@byu.net>
10125 * lib/m4sugar/m4sugar.m4 (m4_mkstemp): New macro.
10126 (m4_maketemp): Avoid warnings with M4 1.9a.
10127 * lib/emacs/autoconf-mode.el (autoconf-font-lock-keywords): Color
10129 * doc/autoconf.texi (Redefined M4 Macros): Document m4_mkstemp.
10132 2006-10-16 Eric Blake <ebb9@byu.net>
10134 * doc/autoconf.texi (Setting Output Variables): Fix typo.
10136 * bin/autoconf.as (version): Reword to match GNU Coding
10138 * bin/autoheader.in (version): Likewise.
10139 * bin/autom4te.in (version): Likewise.
10140 * bin/autoreconf.in (version): Likewise.
10141 * bin/autoscan.in (version): Likewise.
10142 * bin/autoupdate.in (version): Likewise.
10143 * bin/ifnames.in (version): Likewise.
10145 2006-10-14 Stepan Kasal <kasal@ucw.cz>
10147 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Expand $1 before
10148 looking for special shell characters.
10149 * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Do not expand the
10150 macro defined by AS_VAR_PUSHDEF before passing it as a
10152 * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
10153 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB):
10154 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
10155 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL):
10156 (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_DIRENT):
10158 * lib/autotest/general.m4 (AT_INIT): Quote parameters of
10160 * tests/m4sh.at (AS_LITERAL_IF): New test.
10162 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
10164 (Imported from Automake.)
10165 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
10166 which incorrectly sets the mode of an existing destination
10167 directory. In some cases the unpatched install-sh could do the
10168 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
10169 system. We hope this is rare in practice, but it's clearly worth
10170 fixing. Problem reported by Alex Unleashed in
10171 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
10172 Also, don't bother to check for -m bugs unless we're using -m;
10173 suggested by Stepan Kasal.
10175 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
10177 Import this change from Automake:
10179 2006-08-23 Alexandre Duret-Lutz <adl@gnu.org>
10180 * lib/Autom4te/ChannelDefs.pm (usage): Mention that -Wportability
10181 is enabled by default with gnu and gnits strictness.
10182 Report from Bruno Haible.
10184 2006-03-10 Alexandre Duret-Lutz <adl@gnu.org>
10185 * lib/Autom4te/ChannelDefs.pm: Make -Wportability the default in
10186 gnu and gnits modes.
10188 Import this change from Config:
10190 2006-09-20 Ben Elliston <bje@gnu.org>
10191 * build-aux/config.sub (score, score-*): New.
10193 Import this change from Gnulib:
10195 2006-09-16 Karl Berry <karl@gnu.org>
10196 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
10197 to avoid sectioning errors.
10199 Import these changes from Texinfo:
10201 2006-10-04 Karl Berry <karl@gnu.org>
10202 * build-aux/texinfo.tex (\singlequotechar): rename to \codequoteright.
10203 (\quoteexpand): rename to \rquoteexpand.
10204 (\codequoteleft): new def, to look for @set codequotebacktick.
10205 (\lquoteexpand, \quoteexpand): new defs.
10206 (\lquoteChar, \rquoteChar, \dashChar, \underChar: new \chardef's.
10207 (\code): must use new \...Char values, since now ` is active.
10209 2006-08-26 Karl Berry <karl@gnu.org>
10210 * build-aux/texinfo.tex (\textdegree): New command.
10212 2006-08-12 Karl Berry <karl@gnu.org>
10213 * build-aux/texinfo.tex (error \box0): smaller font.
10215 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10217 * doc/autoconf.texi (Autoheader Macros): Fix syntax error.
10219 2006-10-13 Stepan Kasal <kasal@ucw.cz>
10221 * doc/autoconf.texi (Autoheader Macros): Warn that the text
10222 added to the template can get mangled.
10224 2006-10-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10226 * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): In the test,
10227 include the default headers, and redefine obstack_chunk_alloc
10228 and obstack_chunk_free. Fixes false failure with glibc.
10230 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
10232 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Set as_executable_p,
10233 for backward compatibility with Libtool 1.5.22. Problem reported
10234 by Ralf Wildenhues.
10236 2006-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10238 * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL): Require
10240 Report by IOhannes m zmoelnig <zmoelnig@iem.at>.
10242 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
10244 * NEWS: AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for
10245 the NonStop platform.
10246 * doc/autoconf.texi (Posix Variants): Likewise.
10247 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
10249 * lib/m4sugar/m4sh.m4 (AS_TEST_X): New macro.
10250 (AS_EXECUTABLE_P): Use as_test_x rather than as_executable_p.
10251 (_AS_TEST_PREPARE): Set as_test_x rather than as_executable_p.
10252 Use a better substitute, by inspecting the output of "ls"
10253 rather than just using ":".
10254 * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Use AS_TEST_X
10255 rather than AS_EXECUTABLE_P, since we needn't worry about
10256 non-regular files here.
10258 * NEWS: Autoconf-generated shell scripts no longer export BIN_SH,
10259 due to configuration hassles with this. See Tonya Underwood's report
10260 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00003.html>.
10261 * doc/autoconf.texi (Special Shell Variables): Likewise.
10263 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
10264 Stepan Kasal <kasal@ucw.cz>
10266 * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Don't set BIN_SH.
10267 (_AS_DETECT_BETTER_SHELL): Don't look in /usr/bin/posix.
10269 2006-10-11 Stepan Kasal <kasal@ucw.cz>
10271 * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Move the
10272 initialization which is not inherited through the environment
10273 (_AS_BOURNE_COMPATIBLE): ... to this new macro.
10274 (_AS_RUN): Call _AS_BOURNE_COMPATIBLE, not AS_BOURNE_COMPATIBLE.
10276 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
10278 * doc/autoconf.texi (Limitations of Usual Tools): Describe
10279 problems with mkdir -p -m.
10281 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
10283 * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Remove
10284 comment about ac_cpp_err; it was incorrect, and anyway
10285 ac_cpp_err is being removed below.
10286 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE): Don't
10287 set ac_cpp_err to 'yesyes' if preproc_warn_flag and werror_flag
10288 are both 'yes'. In fact, don't bother setting ac_cpp_err at all;
10290 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't log our funky tests
10291 with werror_flag and conftest.err and so forth. This is more
10292 compatible with how _AC_PROG_PREPROC_WORKS_IFELSE behaves,
10293 and anyway the user shouldn't normally want to see this gorp logged.
10294 Problem reported by Ralf Wildenhues.
10295 * lib/autoconf/lang.m4 (AC_LANG_WERROR): werror_flag's default is
10296 empty, not 'no', since the rest of the code uses 'test -z'.
10298 2006-10-04 Paul Eggert <eggert@cs.ucla.edu>
10300 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
10301 Use a single call to AC_DO_TOKENS rather than multiple, for
10303 (_AC_LINK_IFELSE): Test that resulting file is executable.
10304 Problem reported by mwoehlke in
10305 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00048.html>.
10307 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Use "test -x /" rather
10308 than creating a file to use with test -x; this is much faster.
10310 2006-10-02 Bruno Haible <bruno@clisp.org>
10312 * lib/autom4te.in (Automake-preselections): Add
10313 AM_GNU_GETTEXT_INTL_SUBDIR, for automake 1.10.
10315 2006-09-27 Stepan Kasal <kasal@ucw.cz>
10317 * doc/autoconf.texi (Writing testsuite.at): Fix a typo: for
10318 standard error, `experr' should be used, not `expout'.
10320 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
10322 * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Don't compile the
10323 fseeko testing program twice; just use the earlier result.
10324 * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
10325 Set cache var to 'unknown' (not 'no') if leaving the macro unset
10326 still doesn't let the program compile.
10327 (AC_SYS_LARGEFILE): Test for _LARGE_FILES only if earlier tests
10330 * lib/autoconf/functions.m4: Fix problems reported by Ralf Wildenhues.
10331 (AC_FUNC_ERROR_AT_LINE): Don't bother to check for error.h. Just
10332 include it, without including anything else.
10333 (AC_FUNC_FSEEKO): Avoid gcc -Wall warnings about constant
10335 (AC_FUNC_STRNLEN): Require AC_USE_SYSTEM_EXTENSIONS.
10337 2006-09-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10339 * lib/autoconf/functions.m4 (AC_FUNC_ERROR_AT_LINE): Check for
10340 `error.h', and include it, for a `error_at_line' prototype.
10341 Use a nonempty format string in the link test.
10342 * lib/autoconf/functions.m4 (AC_FUNC_WAIT3): Include <sys/wait.h>,
10343 for a declaration of wait3.
10345 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
10347 * NEWS: AC_CHECK_DECL now also works with aggregate objects.
10348 * doc/autoconf.texi (Generic Declarations): Clarify that AC_CHECK_DECL
10349 can apply to constants too, and that it checks for macro defns.
10350 * lib/autoconf/general.m4 (AC_CHECK_DECL): Assume C89 or better,
10351 and simply cast the identifier to void. This handles structure
10352 values. Problem reported by Ralf Wildenhues.
10353 * tests/semantics.at (AC_CHECK_DECLS): Also check enums.
10355 2006-09-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10357 * tests/semantics.at (AC_CHECK_DECLS): Also check macros,
10358 structure, and function symbols.
10360 2006-09-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10362 * tests/semantics.at (AC_CHECK_MEMBERS): Also test with a struct
10365 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
10367 * NEWS: Recommend M4 1.4.7 instead of 1.4.6.
10368 * README: Likewise.
10369 * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
10371 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
10372 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10374 * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): Avoid `gcc -Wall'
10375 warnings (uninitialized value).
10376 (AC_FUNC_UTIME_NULL): Likewise, test for and include <utime.h> if
10378 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Likewise, add
10380 (AC_STRUCT_TM): Likewise, avoid unused variables.
10382 2006-09-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10384 * lib/autoconf/c.m4 (_AC_ARG_VAR_LDFLAGS): Update comment.
10385 (_AC_ARG_VAR_LIBS): New macro: let LIBS be precious.
10386 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Call _AC_ARG_VAR_LIBS.
10387 * lib/autoconf/fortran.m4 (AC_PROG_F77, AC_PROG_FC): Likewise.
10388 Report by Olly Betts.
10390 2006-09-19 Eric Blake <ebb9@byu.net>
10392 * m4/m4.m4: Change copyright.
10393 * configure: Regenerate.
10394 * Makefile.in: Likewise.
10395 * bin/Makefile.in: Likewise.
10396 * doc/Makefile.in: Likewise.
10397 * lib/Makefile.in: Likewise.
10398 * lib/Autom4te/Makefile.in: Likewise.
10399 * lib/autoconf/Makefile.in: Likewise.
10400 * lib/autoscan/Makefile.in: Likewise.
10401 * lib/autotest/Makefile.in: Likewise.
10402 * lib/emacs/Makefile.in: Likewise.
10403 * lib/m4sugar/Makefile.in: Likewise.
10404 * man/Makefile.in: Likewise.
10405 * tests/Makefile.in: Likewise.
10407 * m4/m4.m4 (AC_PROG_GNU_M4): Check for m4 --debugfile support.
10408 * bin/Makefile.am (edit): Substitute M4_DEBUGFILE.
10409 * bin/autom4te.in (handle_m4): Favor --debugfile over misnamed
10410 --error-output, to avoid warnings with M4 2.0.
10412 2006-09-19 Stepan Kasal <kasal@ucw.cz>
10414 * lib/autoconf/libs.m4 (AH_CHECK_LIB): Fix quoting, to be
10415 consistent with _AH_CHECK_FUNCS and _AH_CHECK_HEADERS.
10416 * lib/autoconf/headers.m4 (AH_CHECK_HEADERS_DIRENT): Likewise.
10418 2006-09-15 Stepan Kasal <kasal@ucw.cz>
10420 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Eliminate the
10421 expansion of AC_CHECK_FUNCS.
10423 2006-09-14 Stepan Kasal <kasal@ucw.cz>
10425 * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Remove a
10426 mistaken comment: the path has to be relative; do not use
10427 the path at runtime.
10429 2006-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10431 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote the
10432 argument to `--prefix' for sub-configure scripts.
10433 Pass `--silent' to sub-configure scripts.
10434 * tests/torture.at (Configuring subdirectories): Add tests
10436 * doc/autoconf.texi (Setting Output Variables): Fix example to
10437 not show `--silent' being passed to a `configure' re-run.
10439 2006-09-12 Paul Eggert <eggert@cs.ucla.edu>
10441 * doc/autoconf.texi (Input): Clarify role of AC_CONFIG_MACRO_DIR.
10442 * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Do not check
10443 for the existence of the directory at configure-time. That's
10444 too late, anyway. Problem reported by Stefan Seefeld.
10446 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Avoid bug in UnixWare
10447 7.1.4 /usr/bin/posix/sh described by Tim Rice in
10448 <http://lists.gnu.org/archive/html/bug-autoconf/2006-09/msg00017.html>.
10450 2006-09-11 Stepan Kasal <kasal@ucw.cz>
10452 * tests/local.at (AT_CHECK_M4): Fix this so that the testsuite
10453 works with GNU M4 1.4.3 again; make the normalized form
10454 match the current m4 message; fix the description.
10455 * test/tools.at (autom4te cache): Adapt to the change.
10457 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
10459 * lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Add year_2050_test
10460 to catch glibc bug 2821
10461 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
10463 Merge from gnulib as follows: Use AC_CHECK_HEADERS_ONCE instead of
10464 AC_CHECK_HEADERS, and likewise for AC_CHECK_FUNCS_ONCE and
10465 AC_CHECK_FUNCS. Don't check for stdlib.h, since we now
10468 2006-09-08 Stepan Kasal <kasal@ucw.cz>
10470 * lib/autom4te.in (Autoconf-without-aclocal-m4): Move the
10472 (Autoconf): ... here.
10473 (Autoscan-preselections): Delete.
10475 2006-09-07 Stepan Kasal <kasal@ucw.cz>
10477 * lib/autom4te.in (Automake-preselections): Preselect
10478 AM_ENABLE_MULTILIB.
10480 2006-09-05 Paul Eggert <eggert@cs.ucla.edu>
10482 * doc/autoconf.texi (Preset Output Variables): srcdir and
10483 top_srcdir are not necessarily relative. Problem reported
10486 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10488 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Prefer xlf90/xlf95 over
10489 f90/f95 because the latter drivers of AIX Fortran 9.1 do not
10490 accept files with extension `.f'. For consistency, also prefer
10492 * doc/autoconf.texi (Fortran Compiler): Remove mention of bug
10495 2006-09-05 Romain Lenglet <rlenglet@users.forge.objectweb.org>
10497 * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB): Added substitution
10498 of ERLANG_LIB_VER_* variables.
10499 * doc/autoconf.texi (Erlang Libraries): Document ERLANG_LIB_VER_*
10502 2006-09-03 Paul Eggert <eggert@cs.ucla.edu>
10503 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10505 * doc/autoconf.texi (Limitations of Builtins): Document 'unset'
10506 bugs of Bash 2.01 and 2.05a.
10507 (Fortran Compiler): Document that AC_PROG_CC should be called
10508 before AC_PROG_FC, due to a bug in Autoconf.
10510 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
10512 * NEWS: New macro AC_CACHE_CHECK_INT. It replaces the
10513 old AC_COMPUTE_INT, which now behaves like _AC_COMPUTE_INT
10514 except the first two arguments are reversed.
10515 * doc/autoconf.texi (Caching Results): New macro AC_CACHE_CHECK_INT.
10516 (Generic Compiler Characteristics): AC_COMPUTE_INT no longer
10517 caches nor outputs a diagnostic. Suggested by Bruno Haible.
10518 * lib/autoconf/general.m4 (AC_CACHE_CHECK_INT): New macro,
10519 equivalent to the old AC_COMPUTE_INT.
10520 (AC_COMPUTE_INT): No longer caches or reports. New signature.
10521 All uses changed to AC_CACHE_CHECK_INT.
10522 * tests/base.at (AC_CACHE_CHECK_INT): New test.
10523 * tests/mktests.sh (ac_exclude_list): Add AC_CACHE_CHECK_INT.
10525 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
10527 * NEWS: AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_FUNC_GETLOADVG,
10528 and AC_REPLACE_FNMATCH are now obsolescent in Autoconf. New
10529 programs should use their Gnulib counterparts.
10530 * doc/autoconf.texi (Particular Functions): Likewise.
10531 (Macro Names, testsuite Invocation): Replace uses of these
10532 obsolete macros with uses of non-obsolete macros.
10534 2006-08-29 Eric Blake <ebb9@byu.net>
10536 * configure.ac (AC_INIT): Bump to 2.60b.
10539 2006-08-28 Eric Blake <ebb9@byu.net>
10541 * lib/autoconf/headers.m4 (AC_HEADER_STAT): Fix logic that was
10542 mistakenly swapped on 2006-08-15.
10544 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
10546 * NEWS: Version 2.60a.
10548 2006-08-25 Stepan Kasal <kasal@ucw.cz>
10550 * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Remove the IPA/IPO
10551 file created by the PGI compiler.
10553 2006-08-25 Noah Misch <noah@cs.caltech.edu>
10555 * lib/Autom4te/General.pm (END): Use `File::Path::rmtree' to
10558 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
10560 Fix Lex library problem reported to us by Julio Garvia.
10561 * doc/autoconf.texi (Particular Programs): YYTEXT_POINTER is
10562 for the default, which the user can override.
10563 * lib/autoconf/programs.m4 (AC_PROG_LEX): Let _AC_PROG_LEX_YYTEXT_DECL
10565 (_AC_PROG_LEX_YYTEXT_DECL): Handle caching correctly; the old code
10566 didn't work if some values were cached but not others. Test for
10567 broken lex libraries like native ia64-hp-hpux11.22; see
10568 <http://sources.redhat.com/ml/binutils/2003-12/msg00337.html>, and
10569 work around the problem by preferring an empty LEXLIB to -lfl or
10570 -ll. Let the user set LEXLIB='' to indicate no library needed.
10572 * NEWS: Recommend M4 1.4.6 instead of 1.4.5.
10573 * README: Likewise.
10574 * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
10576 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
10578 Rework to use more-modern build style.
10579 Many files are renamed; all uses of their names were changed.
10580 * .x-sc_trailing_blank: Renamed from .x-sc_trailing_space.
10581 * .x-sc_useless_cpp_parens: New file.
10582 * build-aux/config.guess: Renamed from config/config.guess. Update.
10583 * build-aux/config.sub: Renamed from config/config.sub. Update.
10584 * build-aux/elisp-comp: Renamed from config/elisp-comp.
10585 * build-aux/install-sh: Renamed from config/install-sh. Update.
10586 * build-aux/mdate-sh: Renamed from config/mdate-sh.
10587 * build-aux/missing: Renamed from config/missing.
10588 * build-aux/texinfo.tex: Renamed from config/texinfo.tex. Update.
10589 * build-aux/vc-list-files: Renamed from config/vc-list-files.
10590 * config/Makefile.am: Removed.
10591 * config/mkinstalldirs: Removed.
10592 * config/move-if-change: Removed.
10593 * m4/m4.m4: Renamed from config/m4.m4. Add (C) to copyright notice.
10594 * Makefile.am (SUBDIRS): Remove config.
10595 (ACLOCAL_AMFLAGS): Include from m4, not config.
10596 (EXTRA_DIST): Add config/announce-gen, config/prev-version.txt.
10597 (WGET, WGETFLAGS): New macros, since Makefile.maint no longer does this.
10598 (autom4te-update): Rewrite with a loop. Get from gnulib, not automake.
10599 Fail if there's an error.
10600 * Makefile.cfg (move_if_change): Remove.
10601 (wget_files): Remove.
10602 (cvs_executable_files): New macro.
10603 (cvs_files): Use it. Remove mkinstalldirs. Add fdl.texi.
10604 (executable-update): Use $(cvs_executable_files).
10605 (local-checks-to-skip): Remove.
10606 * Makefile.maint: Merge from coreutils, plus add our own changes
10607 (gzip_rsyncable): New macro.
10608 (GZIP_ENV): Use it.
10609 (CVS_LIST): Use build-aux/vc-list-files.
10610 (VERSION_REGEXP): New macro.
10611 (local-checks-available): Add patch-check, $(syntax-check-rules),
10613 (syntax-check-rules): Compute dynamically.
10614 (sc_cast_of_x_alloc_return_value): Work even if no source files.
10615 (sc_cast_of_alloca_return_value): Likewise.
10616 (sc_prohibit_atoi_atof): Simplify regexp.
10617 (sc_no_if_have_config_h, sc_require_config_h):
10618 (sc_prohibit_assert_without_use,
10619 (sc_obsolete_symbols): Check for O_NDELAY.
10620 (sc_texi_notab): Remove.
10621 (sc-changelog): Don't make an exception for '----' lines.
10622 (.re-list): Remove, so we don't have a junk file behind.
10623 (sc_system_h_headers): Remove the need for .re-list.
10624 (sc_the_the): New rule.
10625 (sc_tight_scope): Simplify.
10626 (sc_trailing_blank): Renamed from sc_trailing_space.
10627 (longopt_re): New macro.
10628 (sc_two_space_separator_in_usage): New rule.
10629 (sc_unmarked_diagnostics): Look at all files under CVS.
10630 (sc_useless_cpp_parens, patch-check, check-AUTHORS): New rules.
10631 (news-date-check, changelog-check): Version is OK.
10632 (po-check): Look for lib files even if not in CVS.
10633 (copyright-check): Use $() not ``.
10634 (maintainer-distcheck): Do not depend on changelog-check.
10635 (my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz).
10636 Also check for -Wpointer-arith.
10637 (WGET, WGETFLAGS, tgz-md5, tgz-sha1, bz2-md5, bz2-sha1):
10638 (xdelta-md5, xdelta-sha1, tgz-size, bz2-size, xd-size, rel-check):
10640 (announcement): Add --gpg-key-id arg.
10642 (move_if_change): Just use mv.
10643 (local_updates: Remove wget-update, po-update.
10644 (po_repo, do-po-update, po-update, wget_files, get-targets): Remove.
10645 (config.guess-url_prefix, config.sub-url_prefix): Remove.
10646 (ansi2knr.c-url_prefix, texinfo.tex-url_prefix):
10647 (standards.texi-url_prefix, make-stds.texi-url_prefix, target, url):
10648 ($(get-targets)): Remove.
10649 (cvs_files): Remove missing, mkinstalldirs, ansi2knr.c.
10650 (gnulib_repo): Renamed from automake_repo. Get from gnulib now.
10651 (cvs-update): Get from gnulib.
10652 (emut_upload_commands): gnupload is in build-aux now.
10653 (alpha beta major): Add changelog-check. Check version.
10654 * configure.ac (AC_CONFIG_AUX_DIR): Renamed from config to build-aux.
10655 (AC_CONFIG_FILES): Remove.
10656 * bin/autoconf.as: Add spaces to avoid distcheck warning.
10657 * config/announce-gen: Sync from coreutils.
10658 * doc/make-stds.texi: Sync from gnulib.
10659 * doc/standards.texi: Likewise.
10660 * man/Makefile.am: Adjust for config -> build-aux renaming.
10661 * tests/Makefile.am: Prefer $(FOO) to @FOO@.
10662 * tests/local.at: Adjust from config -> build-aux renaming.
10663 * tests/tools.at: Likewise.
10664 * tests/torture.at: Likewise.
10666 * NEWS: The C99 check now tests for vararg macros and 64-bit
10668 * doc/autoconf.texi (C Compiler): Document // comments, va_copy.
10669 * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Test varargs macros and
10670 64-bit preprocessor ints. Check for static initialization of
10671 long long. Remove unnecessary casts.
10673 2006-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10675 * doc/autoconf.texi (Particular Programs): Mention that
10676 @INSTALL@ and @MKDIR_P@ may vary for different output files.
10677 Reported by Alexandre Duret-Lutz.
10679 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
10681 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
10682 -lgcc?* and -lSystem, for Darwin/MacOS X. Problem reported by
10684 <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00083.html>.
10686 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
10688 * lib/autoconf/c.m4 (AC_C_CONST): Don't used shadowed vars, to
10689 pacify insanely picky compilers. Problem reported by Eric Blake.
10691 * doc/autoconf.texi (Posix Variants): INTERACTIVE Unix is no
10692 longer supported by Sun.
10694 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
10696 * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
10697 rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
10698 -Wundef -Werror". Problem reported by David Fang in
10699 <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
10700 * doc/autoconf.texi (Header Templates, Default Includes):
10701 (Particular Functions, Generic Functions, Header Portability):
10702 (Particular Headers, Generic Headers, Generic Declarations, Guidelines):
10703 (Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
10704 (Present But Cannot Be Compiled, Preprocessor Symbol Index):
10705 Prefer #ifdef to #if.
10706 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
10707 * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
10708 (AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
10709 (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
10711 * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
10712 (AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
10713 * lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
10714 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
10715 * lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
10716 S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
10719 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
10721 * doc/autoconf.texi (Limitations of Usual Tools): Document sed
10722 problems with arg script text that doesn't end in newline, and
10723 with '-e a...'. Problems reported by Ralf Wildenhues.
10725 2006-08-12 Alexandre Julliard <julliard@winehq.org> (tiny change)
10727 * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
10728 check for libXt by a check for libX11.
10730 2006-08-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10732 * doc/autoconf.texi (config.status Invocation): Adjust according
10735 2006-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10737 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
10738 --help' should mention that `--version' outputs configuration
10739 settings. Report by Bruno Haible.
10741 2006-08-06 Paul Eggert <eggert@cs.ucla.edu>
10743 Fix test suite failures reported by Pierre in
10744 <http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
10745 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
10746 the compiler created a file "b.out" when it didn't create anything
10748 * lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
10749 Discard stderr too, when invoking the test script.
10751 2006-08-05 Alexandre Julliard <julliard@winehq.org> (tiny change)
10753 * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
10754 in the restoring of the werror flag.
10756 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
10758 * doc/autoconf.texi (Volatile Objects): Be even a little
10759 less skeptical about "volatile", after discussion with
10760 Bruno Haible on bug-gnulib.
10761 (Limitations of Usual Tools): Warn about sed stripping
10762 leading white space from text. From Bruno Haible.
10764 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
10766 * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
10767 compiler complains about it, even if things works after the
10768 complaint. Problem reported by Peter O'Gorman.
10770 * doc/autoconf.texi (Preset Output Variables): Document CFLAGS,
10771 CPPFLAGS, and LDFLAGS better. Problem reported by Bruno Haible.
10772 Similarly for CXXFLAGS, OBJCFLAGS, ERLCFLAGS.
10774 2006-07-17 Paul Eggert <eggert@cs.ucla.edu>
10776 * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space
10777 after -R regardless of host. Patrick Welche reports that this
10778 fixes things on NetBSD 3.99.
10780 * NEWS: Recommend M4 1.4.5.
10781 * README: Likewise.
10782 * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
10783 * tests/tools.at (autom4te cache): Update wording of diagnostic
10786 2006-07-07 Paul Eggert <eggert@cs.ucla.edu>
10788 * doc/autoconf.texi (C Compiler): Add a ref to Volatile Objects
10789 under AC_C_VOLATILE.
10790 (Volatile Objects): Be a little less skeptical about what
10791 "volatile" means. Derived from thoughts by Ben Pfaff in
10792 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00092.html>.
10794 2006-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10796 * doc/autoconf.texi: Fix some typos.
10798 2006-07-07 Paul Eggert <eggert@cs.ucla.edu>
10800 * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
10801 more globally, since the 2006-06-30 patch didn't suffice. Problem
10802 reported by Keith Marshall. Also, don't bother with builddir2,
10803 since it shouldn't be needed any more.
10805 2006-07-07 Paolo Bonzini <bonzini@gnu.org>
10807 * doc/autoconf.texi (Generic compiler characteristics):
10808 Document AC_COMPUTE_INT. Fix wrong statements on Default
10809 Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.
10811 * lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
10812 (_AC_COMPUTE_INT): Add obsoletion warnings.
10813 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
10816 * NEWS: Document change.
10818 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
10820 * doc/autoconf.texi (Volatile Objects): New section.
10822 * NEWS: Document previous change.
10824 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
10826 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
10827 Require that long long int be at least 64 bits wide. C99 requires
10828 this and enough programs depend on it so we should check for it.
10829 Bruno Haible reports in
10830 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00286.html>
10831 that long long int is 32 bits wide with some nonstandard compilers.
10832 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
10834 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
10836 * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
10837 to a nonexistent file, so that we don't have to worry about
10838 a local site configuration that doesn't use /usr/local.
10839 Problem reported by Keith Marshall in
10840 <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00133.html>.
10842 2006-06-28 Paul Eggert <eggert@cs.ucla.edu>
10844 * doc/autoconf.texi: Be more consistent about using @acronym with
10845 "HP" and "HP-UX". Remove mention of OSF; the old version wasn't
10846 quite right (it talked about "OSF/Tru64", even though the
10847 operating systems were called OSF/1, Digital UNIX, and Tru64 UNIX,
10848 and it even mentioned "OSF 4"!) and at this point there's little
10849 reason to talk about OSF any more, since it died in 1994.
10850 (Specific Compiler Characteristics): Simplify example of
10851 negative-size array.
10852 (File Descriptors): Reorder to make the text flow better.
10853 Remove joke about "appreciate the various levels"; I didn't get it.
10854 Add remark about HP-UX sh -x bug with stderr noted by Bob Proulx in
10855 <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00225.html>.
10856 (File Descriptors, Limitations of Usual Tools):
10857 Tone down the advice against renaming or removing open files.
10858 (Limitations of Usual Tools): Add a new section, on 'rm'.
10860 2006-06-26 Stepan Kasal <kasal@ucw.cz>
10862 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
10863 -lXt in LIBS, idea from Karsten Hopp; this was due since
10866 2005-09-18 Paul Eggert <eggert@cs.ucla.edu>
10867 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
10868 and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
10869 (which belong to Xt, not X itself). See Debian bug 327655.
10871 2006-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10873 * configure.ac (AC_INIT): Bump to 2.60a.
10876 2006-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10880 * configure.ac, NEWS: Update.
10882 2006-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10884 * config/texinfo.tex: Sync from upstream.
10886 * bin/autom4te.in (handle_traces): Transform the `@S|@'
10887 quadrigraph correctly in traces.
10889 * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
10892 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
10893 datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
10895 * doc/autoconf.texi (Changed Directory Variables): New node,
10896 to document the whole `datarootdir' business a bit better.
10898 * tests/torture.at (datarootdir workaround): Extend test.
10899 Prompted by report by Alexandre Julliard.
10901 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
10903 * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
10904 when using default mode of IBM C 6 for AIX. Problem and two-line
10905 fix reported by Larry Jones.
10907 2006-06-22 Alexandre Julliard <julliard@winehq.org>
10909 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
10910 about literal '${datarootdir}' if a definition is found in the
10913 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
10915 * NEWS: Use "M4" rather than "m4" when appropriate.
10916 Problem reported by Eric Blake.
10917 * doc/autoconf.texi: Likewise.
10918 Use @acronym around BSD, GCC, and GNU when appropriate.
10919 (Why GNU M4): Renamed from "Why GNU m4".
10920 (Redefined M4 Macros): Mention that Posix
10921 m4wrap takes only 1 argument, but GNU M4 1.4.x takes more.
10922 (Buffer Overruns): Mention size_t and ptrdiff_t as alternatives
10925 2006-06-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10927 * bin/autom4te.in (handle_output): Do not forbid the empty
10929 * tests/tools.at (autoconf: the empty token): New test.
10931 2006-06-20 Stepan Kasal <kasal@ucw.cz>
10933 * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
10934 calls, so that we do not care whether they are LIFO or FIFO;
10935 in the m4_wrap, do not check which diversion is the topmost
10936 one, just check that the stack is balanced at the end.
10937 * lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
10938 base diversion forever--pop the previous diversion before
10939 opening the new one; consequently, remove the m4_wrap call.
10940 * lib/autotest/general.m4 (AT_INIT): Likewise.
10941 * tests/m4sugar.at: Do not use
10942 m4_wrap([m4_diversion_pop([..])]), for educational purposes.
10944 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
10945 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10947 * NEWS: Document that m4wrap/m4_wrap might not be LIFO.
10948 * doc/autoconf.texi (Redefined M4 Macros): Likewise.
10949 Rework example of m4wrap token-pasting trouble so that it doesn't
10950 care whether it's LIFO or FIFO.
10951 Fix some "contrary to"s that are awkward in English.
10953 2006-06-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10955 * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
10956 to `yes' instead of `int$1_t' if the type is found, for more
10957 consistent configure output (where $1 is the number of bits).
10958 (_AC_TYPE_UINT): Likewise for `uint$1_t'.
10959 Suggested by Bruno Haible.
10961 * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
10962 needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
10963 with system headers. Report by Bruno Haible.
10965 2006-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10967 * config/config.guess, config/config.sub: Sync from upstream.
10969 * bin/Makefile.am (autoconf.in): Use `--melt' for autom4te,
10970 in order to avoid picking up an older installed frozen m4sh.m4f.
10971 Besides an outdated shell startup, this could have been created
10972 by an earlier M4 version with incompatible frozen file format.
10974 2006-06-16 Paul Eggert <eggert@cs.ucla.edu>
10976 * README: Recommend m4 1.4.4 instead of 1.4.3..
10977 * doc/autoconf.texi: Likewise.
10978 (Special Chars in Names): Say that $(.FOO) is portable, as
10979 suggested by Stepan Kasal.
10980 (Installation Directory Variables, Build Directories):
10981 (Automatic Remaking, Subdirectories, Fortran Compiler):
10982 (Making testsuite Scripts, Defining Directories):
10983 Quote variable usages better.
10984 (Making testsuite Scripts): Add clean-local rule to makefile
10985 snippet, by Eric Blake.
10986 (Installation Directory Variables): Fix table item font.
10987 Reword slightly to clarify. Generalize advice about
10988 not using special characters to include all file-related
10989 vars, not just VPATH.
10990 (Special Chars in Variables): Warn about special characters in
10992 (Assignments): Clarify default-value example as suggested by
10994 <http://lists.gnu.org/archive/html/autoconf-patches/2006-06/msg00072.html>.
10995 (Special Shell Variables): Note leading ./ or ../, as suggested
10997 (Limitations of Builtins): Under cd, warn about CDPATH.
10998 (The Make Macro MAKEFLAGS): Untabify. Problem reported by
11001 2006-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11003 * doc/autoconf.texi (Configuration Actions): Remove duplicate
11004 `@var', for texi2html.
11005 (Systemology): Some more word wrapping, for DVI output.
11006 (autom4te Invocation): The short option for `--melt' is `-M',
11009 2006-06-15 Paul Eggert <eggert@cs.ucla.edu>
11011 * doc/autoconf.texi: More formatting and English tweaks,
11012 many suggested by Ralf Wildenhues.
11013 Reword to avoid "@code{...}'s" and the like, since it's ugly
11014 with Emacs info mode. discontents -> woes.
11015 Put a few "will"s back. time stamp -> timestamp.
11016 side-effect -> side effect.
11018 2006-06-14 Paul Eggert <eggert@cs.ucla.edu>
11020 * doc/autoconf.texi (Initializing configure, Shell Substitutions):
11021 Warn about $@ not persisting. Problem reported by Julien Danjou in
11022 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372179>.
11023 (Special Chars in Names): Renamed from Leading _ in Macro Names.
11024 Mention other special chars, too.
11026 2006-06-14 Eric Blake <ebb9@byu.net>
11028 * doc/autoconf.texi (The Make Macro MAKEFLAGS): New node.
11030 2006-06-13 Paul Eggert <eggert@cs.ucla.edu>
11032 * doc/autoconf.texi: Some systematic minor improvements, as
11033 follows. Use "makefile" when talking about makefiles
11034 generally (which might be named "makefile" or "Makefile" or even
11035 "foo.mk"), "Makefile" when talking about a specific makefile
11036 called "Makefile". This unclutters the text from weird quotes
11037 (e.g., "`Makefile's" in info mode). Similarly, use "@var{foo}
11038 values" rather than "@var{foo}s" and similar constructs containing
11039 "}s". Use "Make rules" rather than "Makefile rules". Minor
11040 English-language improvements. Change the prefix "sub-" to "sub"
11042 Put blank lines around examples more consistently.
11043 Avoid "rather" and "very" as intensifiers.
11044 Avoid "will" as an auxiliary.
11045 (Limitations of Make): Split this node into....
11046 (Portable Make, $< in Ordinary Make Rules, Failure in Make Rules):
11047 (Leading _ in Macro Names, Backslash-Newline-Newline):
11048 (Backslash-Newline Comments, Long Lines in Makefiles):
11049 (Macros and Submakes, The Make Macro SHELL, Comments in Make Rules):
11050 (obj/ and Make, make -k Status, VPATH and Make):
11051 (VPATH and Double-colon, $< in Explicit Rules):
11052 (Automatic Rule Rewriting, OSF/Tru64 Directory Magic):
11053 (Make Target Lookup, Single Suffix Rules, Timestamps and Make):
11054 New nodes, resulting from splitup of Limitations of Make.
11055 All cross-references changed. Raise the top node from
11056 a section to a chapter, and all subnodes accordingly.
11057 Redo the introductory wording to match the new organization.
11058 (Installation Directory Variables): Use an example that is
11059 closer to what Autoconf actually does. Mention that VPATH's
11060 value should not contain metacharacters or white space.
11061 (Fortran Compiler): Fix a VPATH bug in an example.
11062 (Leading _ in Macro Names): Mention that this problem is no longer
11063 of practical concern.
11064 (VPATH and Make): Reword the advice to make it clearer
11065 that Autoconf and Automake support VPATH in non-GNU make, but
11066 many packages have bugs in this area.
11067 ($< in Explicit Rules): Refer to Build Directories rather
11068 than using a (non-VPATH-safe) example.
11069 (Automatic Rule Rewriting): Mention the sort of disaster that
11070 can ensue with Solaris-style rule rewriting with VPATH.
11072 2006-06-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11074 * doc/install.texi (Compilers and Options): Weaken the
11075 suggestion to use GNU make for VPATH builds.
11077 * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
11078 AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
11080 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
11081 in regular expression.
11083 2006-06-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11085 * doc/autoconf.texi (Installation Directory Variables):
11086 Drop extra @samp from `@table @samp' item.
11087 (Limitations of Usual Tools): Comment fix.
11088 Do not nest @samp just to point to other table items.
11089 (Writing testsuite.at) <AT_CHECK>: The second argument to
11090 `@dvar' is already @samp'ed.
11091 (Making testsuite Scripts) <AC_CONFIG_TESTDIR>: Likewise,
11092 do not use @var in the second argument.
11094 2006-06-07 Paul Eggert <eggert@cs.ucla.edu>
11096 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
11097 $as_shell.exe too. Problem reported by Andreas Buening in
11098 <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
11100 2006-06-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11102 * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
11103 `unused variable' compiler warning, for `-Wall -Werror'.
11104 Reported by Jaap Haitsma in
11105 <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00012.html>.
11107 2006-06-06 Paul Eggert <eggert@cs.ucla.edu>
11109 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
11110 case the compiler dumps core. Problem reported for
11111 OpenServer 5.0.7 by Tim Rice in
11112 <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
11113 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
11116 2006-06-06 Tim Rice <tim@multitalents.net>.
11118 * lib/freeze.mk: Quiet check-forbidden-patterns so the string
11119 "ERROR" only shows up in "make check" output if there is an
11122 2006-06-06 Eric Blake <ebb9@byu.net>
11124 * tests/tools.at (automatically allowed tokens): Fix typo.
11126 2006-06-05 Paul Eggert <eggert@cs.ucla.edu>
11128 * NEWS: Don't blame non-GNU VPATH compatibility issues on Automake.
11130 * doc/autoconf.texi (Integer Overflow): Mention that INT_MIN % -1
11131 typically overflows on x86 CPUs, even though the C standard
11132 requires otherwise.
11134 2006-06-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11136 * configure.ac (AC_INIT): Bump to 2.59e.
11139 2006-06-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11143 * config/texinfo.tex: Sync from upstream.
11145 * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
11146 seen, invoke libtoolize with `--ltdl' argument.
11147 * lib/autom4te.in (Autoreconf-preselections): Adjust.
11149 Suggested by Eric Blake.
11151 2006-06-05 Paul Eggert <eggert@cs.ucla.edu>
11153 * NEWS: Whoops! AC_FUNC_STRNLEN isn't obsolescent. Problem
11154 reported by Ralf Wildenhues.
11155 * doc/autoconf.texi (AC_FUNC_STRNLEN): Likewise.
11157 2006-06-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11161 2006-06-05 Paul Eggert <eggert@cs.ucla.edu>
11163 * doc/autoconf.texi: Modernize some of the references to Solaris.
11165 2006-06-05 Stepan Kasal <kasal@ucw.cz>
11167 * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
11168 message issued by AC_REQUIRE.
11169 * tests/m4sugar.at: Check m4_require's error message.
11170 * tests/base.at: Check AC_REQUIRE's error message.
11171 * tests/local.at (AT_CHECK_M4): New macro, almost identical
11173 (AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
11175 (AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
11176 `expout' as the last parameter.
11177 * tests/tools.at: Adapt to the above change.
11179 2006-06-04 Stepan Kasal <kasal@ucw.cz>
11181 * doc/autoconf.texi (Limitations of Usual Tools): Correct
11182 information about race-free implementations of mkdir.
11184 2006-06-04 Eric Blake <ebb9@byu.net>
11186 * bin/autoreconf.in (help): Document M4 environment variable.
11187 * bin/autoconf.as (Usage): Likewise.
11188 * bin/autom4te.in (help): Likewise.
11189 * doc/autoconf.texi (autom4te Invocation): Likewise.
11191 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
11193 * NEWS: GNU make now recommended for VPATH builds.
11194 Mention that some macros are now documented to be obsolescent.
11195 * doc/autoconf.texi:
11196 Prefer "current" to "modern" to describe
11197 currently-used (albeit perhaps old-fashioned) hosts.
11198 Mention which ancient features no longer need to be worried about.
11199 setgid -> set-group-ID
11200 setuid -> set-user-ID (these are the Posix terms)
11201 Fix some misuses of "only".
11202 (AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
11203 (AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
11204 (AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
11205 (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
11206 (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
11207 (AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
11208 (AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
11209 (AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
11210 (AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
11211 Mention that these macros are obsolescent.
11212 (Installation Directory Variables): shall -> should
11213 (File Descriptors): Mention that 0, 1, 2 might get reopened.
11214 Mention that it's now safe to use 3 and 4.
11215 (Limitations of Usual Tools): cp -r is now specified by Posix.
11216 Omit longwinded and obsolescent discussion of cp -f.
11217 Modernize discussion of expr, ls.
11218 (Limitations of Make): Modernize discussion of VPATH builds.
11219 Mention $? as a workaround in some cases.
11220 * doc/install.texi (Basic Installation):
11221 Mention "./configure; make; make install" first. Be more
11222 specific about why this file is generic. Remove unnecessary
11223 parens. Remove misleading "only". Remove obsolete advice
11224 about csh. Don't say "configure" takes awhile; say it
11225 might take a while. Suggest CFLAGS=-g rather than CFLAGS=-O2,
11226 and CC=c99 rather than CC=c89, as these are blessed by current
11227 Posix. Recommend GNU make if doing a VPATH build.
11229 2006-06-03 Paul Eggert <eggert@cs.ucla.edu>
11231 * doc/autoconf.texi: Use a consistent style "$ @kbd{...}" for
11232 examples involving shell prompts.
11234 2006-06-02 Stepan Kasal <kasal@ucw.cz>
11235 and Paul Eggert <eggert@cs.ucla.edu>
11237 * doc/autoconf.texi (Here-Documents): Add details about the
11238 pre-ksh93g bug. Reword slightly to make it clearer. Consistently
11239 use "here-documents" instead of "here documents".
11241 2006-06-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11243 * config/texinfo.tex, doc/standards.texi: Sync from upstream.
11245 2006-06-01 Paul Eggert <eggert@cs.ucla.edu>
11247 * doc/autoconf.texi (File System Conventions): Warn about ":"
11248 anywhere in directory names.
11250 2006-05-31 Paul Eggert <eggert@cs.ucla.edu>
11252 * lib/autoconf/general.m4 (_AC_DO_ECHO): Be even more conservative
11253 about quoting the case statement, just in case.
11254 * doc/autoconf.texi (Here-Documents): Mention that the ksh bug
11255 was fixed in ksh93g; reported by Ralf Wildenhues.
11257 2006-05-31 Stepan Kasal <kasal@ucw.cz>
11259 * doc/autoconf.texi (System Services): Do not document
11260 overriding EXEEXT via ac_cv_exeext=ext.
11261 (Particular Programs) <AC_PROG_MKDIR_P>:
11262 Document that ${MKDIR_P} understands --.
11263 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Improve the
11266 2006-05-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11268 * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Guard against test
11269 argument with leading hyphen. Problem reported by Paul Eggert.
11271 2006-05-30 Paul Eggert <eggert@cs.ucla.edu>
11273 * lib/autoconf/general.m4 (_AC_DO_ECHO): Be more conservative
11274 about quoting ac_try: quote all of it, if any of it seems suspicious.
11275 This means we don't have to worry about ${ or sed any more.
11276 Also, double-quote the case statement, to work around misuses via
11277 underquoting as reported by Ralf Wildenhues in
11278 <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00169.html>.
11279 (_AC_EVAL_STDERR): Revert, since evidently some packages rely on this
11280 undocumented and dangerous macro.
11281 Problem reported by Ralf Wildenhues in
11282 <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00168.html>.
11284 2006-05-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11286 * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Check whether
11287 `dirname -- /' returns `/', for SunOS dirname scripts that escaped.
11288 Report by Sam Sirlin <sam@kalessin.jpl.nasa.gov>.
11290 2006-05-30 Paul Eggert <eggert@cs.ucla.edu>
11292 * lib/autoconf/general.m4: Revert AC_TRY_EVAL and AC_TRY_COMMAND,
11293 since evidently some packages rely on the old, broken behavior.
11294 Problem reported by Ralf Wildenhues in
11295 <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00160.html>.
11296 (AC_TRY_EVAL, AC_TRY_COMMAND, _AC_EVAL): Go back to the
11297 pre-2006-05-26 definitions, but leave in the comments that
11298 these macros are dangerous and should not be used.
11299 (_AC_DO_ECHO): Renamed from _AC_EVAL_ECHO. All callers changed.
11300 (_AC_DO): Renamed from _AC_EVAL. All callers changed.
11301 (_AC_DO_STDERR): Renamed from _AC_EVAL_STDERR. All callers changed.
11302 (_AC_DO_VAR): Renamed from AC_TRY_EVAL.
11303 (_AC_DO_TOKENS): Renamed from AC_TRY_COMMAND.
11305 2006-05-29 Paul Eggert <eggert@cs.ucla.edu>
11307 * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
11308 the use of 'tr', since this is our only use of 'tr'.
11310 2006-05-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11311 and Paul Eggert <eggert@cs.ucla.edu>
11313 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
11314 Don't assume 'grep' works on long lines, since AIX grep doesn't.
11316 2005-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11318 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on
11319 the output file in the `${datarootdir}' test.
11321 2005-05-28 Stepan Kasal <kasal@ucw.cz>
11322 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11324 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If we have not seen
11325 mention of `datarootdir' in the input file(s), but literal
11326 `${datarootdir}' in the output file, and we haven't warned yet,
11327 then warn as well: the user may have (erroneously) used
11328 `AC_SUBST([mydatadir], [$datadir/my])' instead of the correct
11329 `AC_SUBST([mydatadir], ['${datadir}/my'])'.
11330 * tests/torture.at (datarootdir workaround): Extend this test.
11333 2006-05-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11334 and Paul Eggert <eggert@cs.ucla.edu>
11336 * doc/autoconf.texi (autoheader Invocation): The first argument to
11337 `AC_DEFINE_UNQUOTED' need not be a literal. Mention the
11338 alternatives and clear up the language a bit.
11340 2006-05-27 Paul Eggert <eggert@cs.ucla.edu>
11342 * NEWS: Reword notice for AC_TRY_COMMAND, AC_TRY_EVAL,
11343 ac_config_guess, ac_config_sub, ac_configure.
11344 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
11345 Fix typo that prevented an unnecessary space from being removed.
11346 Problems reported by Ralf Wildenhues in:
11347 http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00143.html
11349 2006-05-26 Paul Eggert <eggert@cs.ucla.edu>
11351 * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
11352 Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
11353 Don't use the term "thread-safe" to talk about mkdir race
11354 conditions, since the problem is more a process than a thread
11355 issue. Problem reported by Stepan Kasal in:
11356 http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
11357 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
11358 the test for 'install' more closely. Look at MKDIR_P first.
11359 Look in the PATH, and at /opt/sfw/bin.
11360 Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
11361 Don't bother to try mkdir -p, since we already check mkdir --version;
11362 just look at the version number. (There's no easy way to check
11363 for race-free implementations.)
11364 * tests/tools.at (autoconf: subdirectories): Adjust to above
11365 changes, since MKDIR_P now might end in "/mkdir -p".
11367 * doc/autoconf.texi (autoheader Invocation): Mention that the
11368 first arg of AC_DEFINE_UNQUOTED must be a literal.
11369 Problem reported by Ben Pfaff in
11370 <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00090.html>.
11372 * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
11373 * doc/autoconf.texi (Special Chars in Variables): New section.
11374 (Preset Output Variables): Warn about special chars in CPPFLAGS.
11375 (Installation Directory Variables): Quote $(datadir) better.
11376 (Limitations of Builtins): Describe some of eval's trickiness.
11378 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
11379 * lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
11380 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
11381 in front of every arg, not just trailing args. Quote apostrophes.
11382 (_AC_EVAL_ECHO): New macro.
11383 (_AC_EVAL, AC_EVAL_STDERR): Use it. Quote arg of eval.
11384 (AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
11386 (_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
11387 exposed by quoting of eval argument. Put the command on line line
11389 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
11390 (_AC_PATH_X, AC_PATH_X): Quote more safely.
11391 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
11392 * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
11393 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
11394 Handle special chars in prefix, ac_srcdir, ac_aux_dir.
11395 Use eval more safely.
11396 (_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
11397 * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
11399 * tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
11400 lines, exposed by quoting of eval argument.
11402 2006-05-26 Stepan Kasal <kasal@ucw.cz>
11403 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11405 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
11406 initialization of `ac_cv_exeext', do not override it if it was
11407 already set, unless it was set to `no', for compatibility with
11408 Autoconf-2.13, and comment this.
11409 Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
11410 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
11411 (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
11412 * doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
11413 Document that this test may be overridden by setting
11416 2006-05-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11418 Revert these two patches:
11420 2006-04-06 Eric Blake <ebb9@byu.net>
11421 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
11422 check, s/ac_exeext/ac_cv_exeext/. Fixes regression introduced
11425 2006-04-01 Stepan Kasal <kasal@ucw.cz>
11426 Clean up _AC_COMPILER_EXEEXT* macros.
11427 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
11428 detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
11429 ac_file to the name of the default output file and call
11430 _AC_COMPILER_EXEEXT_WORKS. Move the definition of ac_files and the
11431 initial `rm' of the candidate files...
11432 (_AC_COMPILER_EXEEXT): ... here and simplify them. Moreover, use
11433 the same list in subsequent `rm' calls, and for the temporary
11434 redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
11435 and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
11436 (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
11437 (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
11438 no longer needed) by libtool. Make it a cache check.
11439 (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
11440 copied here by mistake.
11441 (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
11442 _AC_COMPILER_EXEEXT.
11443 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
11444 _AC_COMPILER_OBJEXT directly.
11445 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
11447 2006-05-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11449 * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
11450 Fix description of how the buggy `sed' works.
11452 2006-05-25 Noah Misch <noah@cs.caltech.edu>
11454 Sync from Automake:
11456 * lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
11457 ENOLCK. Only mention `make -j' when applicable. Only raise
11458 fatal errors when `make -j' is involved. Improve error message.
11460 2006-05-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11462 * doc/autoconf.texi (Here-Documents): We now know more about
11463 the variable expansion in here documents bug.
11464 Thanks to Tim Rice and Stepan Kasal.
11466 * doc/autoconf.texi (Making testsuite Scripts): Add an example
11467 how to use TESTSUITEFLAGS. Suggested by Eric Blake.
11469 2006-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11471 * tests/autotest.at (Multiline command from M4 expansion):
11472 No failure to be expected if the shell quotes newlines in
11473 commands in the `set -x' output. Report by Tim Rice.
11476 2006-05-23 Paul Eggert <eggert@cs.ucla.edu>
11478 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
11479 expansion in the here-documents used by config.status, as that
11480 runs afoul of the Korn shell version M-12/28/93d bug described in
11481 the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
11482 fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
11483 <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
11485 2006-05-23 Jim Meyering <jim@meyering.net>
11487 * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
11488 Fix typo introduced with 2006-04-02 change. It reversed the sense
11491 2006-05-23 Paul Eggert <eggert@cs.ucla.edu>
11493 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
11494 ac_dB slightly, to save bytes in the script.
11495 Max out at 50 lines, rather than 96; this is more likely
11496 (though not guaranteed) to avoid obscure 'sed' failures.
11498 2006-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11500 * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
11501 `tr -d -' as bad option argument. Work around this by deleting
11502 an unrelated character.
11503 Report by Tim Rice <tim@multitalents.net>.
11505 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>,
11506 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>,
11507 Stepan Kasal <kasal@ucw.cz>
11509 * doc/autoconf.texi (Particular Programs): Do not promise that
11510 we always prefer the GNU version of the program, and that we
11511 search according to PATH; both rules can have exceptions.
11512 Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
11513 AC_PROG_SED. Move descriptions of limitations
11514 to the Limitations of Usual Tools section.
11515 (Limitations of Usual Tools) <sed>: Mention script length
11516 limitations with Solaris /usr/ucb/sed.
11517 <grep>: Fix wording for empty alternative. Mention that -c and
11518 -l should not be combined, and that -E and -F should not be
11521 2006-05-21 Paul Eggert <eggert@cs.ucla.edu>
11522 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11524 * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
11525 limits in Solaris 8 /usr/ucb/sed by testing a long script.
11527 2006-05-22 Stepan Kasal <kasal@ucw.cz>
11529 * doc/autoconf.texi (Defining Symbols): Literal parameter of
11530 AC_DEFINE is now passed to m4_pattern_allow.
11531 * NEWS: Mention that; likewise for AC_SUBST.
11532 * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
11533 the parameter to m4_pattern_allow.
11534 * tests/tools.at: Add a check for that.
11536 2006-05-22 Stepan Kasal <kasal@ucw.cz>
11538 * lib/autoconf/status.m4: Fix typos.
11540 2006-05-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11542 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
11543 only the files that this macro generates.
11545 2006-05-21 Paul Eggert <eggert@cs.ucla.edu>
11547 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
11548 the HP-UX sed limitation of 99 commands, labels do not count.
11549 * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
11551 (_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
11553 2006-05-21 Paul Eggert <eggert@cs.ucla.edu>
11555 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
11556 Import the following fix from coreutils:
11558 2006-01-13 Jim Meyering <jim@meyering.net>
11560 Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
11561 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
11562 not double-quote uses of that variable, to accommodate the rare
11563 case in which getmntent is available in none of the libraries
11564 checked. This happens at least on FreeBSD 5.0.
11566 2006-05-20 Paul Eggert <eggert@cs.ucla.edu>
11568 * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
11569 ac_config_guess, ac_config_sub, and ac_configure, since evidently
11570 some other programs unwisely rely on these undocumented vars.
11571 But put in warning comments about them.
11572 Problem reported by Ralf Wildenhues in
11573 <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
11574 * NEWS: Document that these variables are intended to go away.
11576 2006-05-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11578 * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
11579 and set the language to C++ (analogous to the equivalent Fortran
11582 * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
11583 * doc/autoconf.texi (C++ Compiler): Document it.
11584 * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
11587 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
11589 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
11590 that caused config.status to generate 100-command sed scripts; the
11591 portable limit is 99.
11593 2006-05-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11595 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
11596 variable `ac_d' instead of `d' to avoid infringing namespace.
11597 Report by Ralf Menzel.
11599 2006-05-18 Paul Eggert <eggert@cs.ucla.edu>
11601 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
11602 $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
11603 * tests/tools.at (autoconf: subdirectories): New test, taken from
11604 the corresponding problem report by Ralf Wildenhues in:
11605 http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
11607 * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
11608 Quote some uses of shell variables if they might suffer unexpected
11609 globbing. This doesn't fix all instances of quoting problems that
11610 I found, just the easy ones that look safe.
11611 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
11612 (AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
11613 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
11614 (AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
11615 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
11616 * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
11617 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
11619 * lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
11620 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
11622 2006-05-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11624 * bin/autoreconf.in ($help): Reword according to the manual.
11625 Suggested by Olly Betts.
11627 2006-05-17 Olly Betts <olly@survex.com> (tiny change)
11628 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11630 * bin/autoreconf.in: Pass the directory argument to
11631 `require_configure_ac'. Fix comment.
11632 * tests/torture.at (Configuring subdirectories): Expose this.
11633 Reported by Olly Betts.
11635 2006-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11637 * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
11638 lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
11639 Automake as follows:
11641 * lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
11642 `$configure_in' instead of `configure.in', to preserve
11643 directory component.
11645 2006-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11647 * config/config.guess, config/config.sub, config/texinfo.tex,
11648 doc/make-stds.texi, doc/standards.texi: Sync from upstream.
11650 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
11652 * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
11653 test for C99 conformance; (bool) 0.5 is an integer constant
11654 expression, but (bool) -0.5 is not. Problem reported by Fedor
11655 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
11657 2006-05-13 Paul Eggert <eggert@cs.ucla.edu>
11659 * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
11660 sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
11661 Warn about obsolete install-sh files. Remove stray sentence
11662 fragment and fix cross reference.
11663 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
11664 install -d; this undoes the 2006-05-10 change.
11665 (MKDIR_P): Mark with AN_MAKEVAR.
11666 (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
11667 that we don't require $INSTALL to be thread-safe. Move comments
11668 out of generated code. Require AC_CONFIG_AUX_DIR_DEFAULT instead
11669 of AC_PROG_INSTALL. Output a message saying that we're checking
11670 mkdir -p. Set MKDIR_P rather than mkdir_p. Do special magic for
11671 MKDIR_P instead of AC_SUBST.
11672 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
11673 Special magic for MKDIR_P, too.
11674 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
11676 * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
11678 2006-05-11 Paul Eggert <eggert@cs.ucla.edu>
11680 Sync from Automake, as follows:
11682 2006-05-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11683 * config/install-sh: Initialize IFS, so field splitting isn't
11685 * config/mkinstalldirs: Likewise.
11686 * config/missing: Remove superfluous quotes. Replace all uses of
11687 `[' by `test', for consistency, and for..
11688 * config/missing (sed_minuso, sed_output): New variables.
11689 (autom4te, help2man, makeinfo): Use them. Unifies detection of
11690 `-o FILE', `--output FILE', `--output=FILE', stricter regex.
11691 Fixes `missing' to detect `--output' for help2man. Fixes
11692 PR automake/483. Report by Dennis J. Linse.
11693 (autom4te): Document in `missing --help'.
11695 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
11697 * NEWS: New macro AC_PROG_MKDIR_P. AS_MKDIR_P is now more robust.
11698 * config/install-sh: Don't use 'path' to talk about file names,
11699 as per GNU coding standards. Close a race condition reported by Ralf
11700 Wildenhues and Stepan Kasal. There is still a race condition
11701 on hosts that predate Posix 1003.1-1992, but we can't help this.
11702 Don't mishandle weird characters like space on pre-Posix hosts.
11703 Invoke mkdir at most once per dir arg on pre-Posix hosts.
11704 * doc/autoconf.texi (Programming in M4sh): Cross-reference to
11705 AC_PROG_MKDIR_P from AS_MKDIR_P.
11706 (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
11707 from mkdir. Mention that Autoconf 2.60 install-sh is safe but
11708 earlier editions are not (including Automake 1.8.3).
11709 Do not suggest mkinstalldirs for thread-safety.
11710 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
11711 that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
11712 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
11713 presence of special characters and race conditions.
11714 * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
11715 in Autoconf's name space.
11717 2006-05-10 Bruno Haible <bruno@clisp.org>
11718 and Paul Eggert <eggert@cs.ucla.edu>
11720 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
11721 from Automake with minor changes.
11722 * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
11724 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
11726 * config/install-sh: Update to Automake CVS version, as follows:
11727 2006-04-25 Stepan Kasal <kasal@ucw.cz>
11728 * lib/install-sh: Simplify the expr implementation of dirname.
11729 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
11730 * lib/install-sh: Handle --, and diagnose unknown options.
11732 2006-05-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11734 * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
11735 `./autom4te' to create `./testsuite', since the `all' target
11736 will ensure its presence, but `installcheck' should not create
11737 the uninstalled wrappers.
11739 * tests/torture.at (Unusual Automake input files): Skip if we
11740 detect automake < 1.8.
11742 2006-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11744 * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
11745 is set to `no', then that overrides and sets ac_cv_prog_cc_c89
11746 and ac_cv_prog_cc_c99 to `no', for backward compatibility.
11749 2006-05-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11751 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
11752 munge (multiple) white space and other oddities.
11753 * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
11754 single quotes in variable assignment.
11755 (AC_ARG_VAR, configure invocation): Adjust tests to expose this
11756 and similar failures by adding multiple spaces, tabs, and other
11757 special characters.
11758 Report and different test suggested by Francesco Romani
11759 <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
11761 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
11762 single quotes, we only need to search for single quotes; this
11763 both simplifies the search pattern, and makes us less
11764 susceptible to `echo' variations for arguments not containing
11766 (_AC_ARG_VAR_VALIDATE): Likewise.
11768 2006-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11770 * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
11771 `$*' and IFS concatenation issue with traditional shells and
11772 bash-2.04. Report by Seanster@Seanster.com.
11774 2006-05-03 Bruno Haible <bruno@clisp.org>
11776 * doc/autoconf.texi (Limitations of Usual Tools): Identify more
11777 precisely which Mac OS X versions have the od problem.
11779 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
11781 * doc/autoconf.texi: Use @option systematically.
11783 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
11784 and Bruno Haible <bruno@clisp.org>
11786 * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
11788 (Integer Overflow): Mention the special case of integer division
11791 2006-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11793 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
11794 traditional shells like the Solaris one that do not use the
11795 first IFS character for assembling `$*'.
11796 Prompted by a related report from autoconf_bug@nro.ca.
11798 2006-05-01 Paul Eggert <eggert@cs.ucla.edu>
11799 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11801 * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
11802 Mention more problems with the -e option.
11804 2006-04-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11807 * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
11809 * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
11810 in URLs to improve DVI formatted output (requires texinfo 4.6).
11811 (System Services, Systemology, Shellology): Likewise.
11812 (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
11815 * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
11817 (Runtime): Fix macro argument names to match description:
11818 `action-if-found' -> `action-if-true' and similarly.
11819 (Obsolete Macros): Likewise.
11820 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
11821 (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
11822 (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
11824 2006-04-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11826 * doc/autoconf.texi (Limitations of Make): Clean up markup.
11829 * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
11832 2006-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11834 * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
11835 /bin/sh set unsorted output.
11836 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
11837 * tests/local.at: Likewise.
11839 2006-04-26 Paul Eggert <eggert@cs.ucla.edu>
11841 * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
11842 (Integer Overflow, Null Pointers, Buffer Overruns):
11843 (Floating Point Portability, Exiting Portably): New sections.
11844 (Writing Test Programs): Fix some langauge. Recommend exiting
11845 with status 1, not merely nonzero. Clarify exit declaration.
11846 (Run Time): Move C exit status stuff to new Exiting Portably section.
11847 (Systemology): Mention Posix and levenez. Update v7 reference.
11848 (Portable Shell): Mention the Posix shell.
11850 2006-04-25 Stepan Kasal <kasal@ucw.cz>
11852 * bin/autoconf.as (me): Replace by as_me.
11854 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
11856 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
11857 since as_me isn't set yet.
11859 2006-04-23 Paul Eggert <eggert@cs.ucla.edu>
11861 Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
11862 a few minor bugs in this area.
11864 * doc/autoconf.texi (Programming in M4sh): Comment out the
11865 documentation of AS_BASENAME, for now.
11866 (Shell Substitutions): Do not use AS_DIRNAME in an example.
11867 (Limitations of Builtins) <basename>: Do not refer to
11869 * bin/autoconf.as (me): Don't use AS_BASENAME.
11870 (dir): Remove the unused variable.
11871 * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
11872 AS_DETECT_REQUIRED. All uses changed.
11873 (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
11875 (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
11876 (AS_BASENAME): Use "basename --" to protect against leading "-".
11877 (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR. All uses changed.
11878 (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED. All uses changed.
11879 (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
11880 (_AS_DIRNAME_PREPARE): Likewise.
11881 (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR. All uses changed.
11882 (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED. All uses changed.
11883 (AS_DIRNAME): Use "dirname --".
11885 2006-04-23 Paul Eggert <eggert@cs.ucla.edu>
11887 * doc/autoconf.texi (Runtime): Renamed from "Run Time". All uses
11888 of "run time" and "run-time" changed to "runtime", for consistency.
11889 * lib/autoconf/fortran.m4: Likewise (in comment).
11890 * lib/autoconf/functions.m4: Likewise.
11891 * lib/autoconf/general.m4: Likewise.
11892 * lib/autoconf/headers.m4: Likewise.
11894 * doc/autoconf.texi (Run Time): Document the exit status situation
11895 with more accuracy and detail.
11897 2006-04-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11899 * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
11900 Archive is not officially `GNU' any more. Update URL.
11901 (Defining Directories): Likewise
11902 * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
11904 2006-04-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11906 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
11907 newline from the `trap' code to finish `config.log'; the NetBSD
11908 /bin/sh resets the exit status after an empty command, as
11909 documented in doc/autoconf.texi.
11910 Reported by Dalibor Topic <robilad@kaffe.org>.
11912 2006-04-19 Paul Eggert <eggert@cs.ucla.edu>
11914 * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
11915 Suggested by Bruno Haible.
11917 2006-04-18 Paul Eggert <eggert@cs.ucla.edu>
11919 * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
11920 some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
11921 Instead, just list the shells that we know work.
11922 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg. All uses
11923 changed. Be more cautious about the _cv_ variable.
11924 * tests/tools.at (Syntax of the shell scripts): Check the
11925 _cv_ variable once, at first, to avoid an internal autoconf error
11926 when sh -n does not work.
11928 2006-04-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11930 * lib/Autom4te/FileUtils.pm: Sync from Automake.
11932 2006-04-16 Paul Eggert <eggert@cs.ucla.edu>
11934 * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
11935 use ">&-" since we're only 99.999% sure that this is portable,
11936 and since the MinGW bug is fixed in a different way.
11937 * lib/autotest/general.m4 (AT_INIT): Likewise.
11939 2006-04-16 Stepan Kasal <kasal@ucw.cz>
11941 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
11942 before opening config.log, to avoid hitting a bug on MinGW.
11944 2006-04-14 Paul Eggert <eggert@cs.ucla.edu>
11946 * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
11947 AS_MESSAGE_LOG_FD before reopening it onto the log file.
11948 This works around a MinGW bug reported by Eric Paire.
11949 Make sure that all writes to the log file append to it,
11950 rather than possibly losing data.
11951 * lib/autotest/general.m4 (AT_INIT): Likewise.
11953 2006-04-14 Stepan Kasal <kasal@ucw.cz>
11955 * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
11958 2006-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11962 * configure.ac (AC_INIT): Bump to 2.59d.
11964 2006-04-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11968 * Makefile.maint (news-date-check): Do not require a leading `*'
11969 before the release date in NEWS.
11971 2006-04-12 Stepan Kasal <kasal@ucw.cz>
11972 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11974 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
11975 the instantiated file do not contain the string 'datarootdir'
11976 but contain @datadir@, @docdir@, @infodir@, @localedir@, or
11977 @mandir@, replace the reference '${datarootdir}' by the value.
11978 * tests/torture.at (datarootdir workaround): New test.
11979 * NEWS: Advertise this temporary fixup.
11980 Based on a patch by Bruno Haible, reported and analyzed by
11981 Paul Eggert and Noah Misch.
11983 2006-04-12 Eric Blake <ebb9@byu.net>
11985 * tests/autotest.at (Debugging a failed test): Fix comment.
11987 2006-04-12 Stepan Kasal <kasal@ucw.cz>
11989 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
11990 all the changes since 2006-04-07.
11992 2006-04-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11994 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
11995 succeeded, but `ln -s file dir' failed, take care to remove the
11996 leftover target before the next test, to prevent its spurious
11997 failure; also make sure `ln file dir' works before selecting it.
11998 Thanks to Keith Marshall for pointing this out.
12001 * lib/autotest/general.m4 (AT_INIT): Store quoted variable
12002 assignments in `at_debug_args', so that we put them correctly
12003 in the `run' script.
12004 * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
12005 Reported by Eric Blake.
12007 2006-04-11 Eric Blake <ebb9@byu.net>
12009 * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
12010 top-level tests after micro-suite has been run. Used in...
12011 (Debugging a successful test, Debugging script and environment),
12012 (Debugging a failed test): ...these new tests. The first of these
12014 * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
12015 macro, split out from...
12016 (AT_INIT): ...here, so that using -d also generates a run script.
12017 Document that -d inhibits top-level logging.
12018 * doc/autoconf.texi (testsuite Invocation): Document that -d only
12019 inhibits top-level logging; debug scripts are created.
12021 * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
12023 * tests/autotest.at (Empty test, Empty check): New test to check it.
12025 * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
12028 2006-04-10 Stepan Kasal <kasal@ucw.cz>
12030 * tests/mktests.sh: Use "trap '' 0", not "trap 0". Do not touch
12031 the files if a problem appears. Make the empty *.at files
12032 read-only, too. Proposed by Ralf Wildenhues.
12034 2006-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12036 * config/Makefile.am: Add comment to force updated Makefile.in.
12038 * lib/freeze.mk: Fix typo in comment. Unlike the last, white
12039 space only patch to this file, this patch causes the Makefile.in
12040 files that include freeze.mk to be updated, and thus have a
12041 newer time stamp again, which in turn makes a pristine CVS
12042 checkout have correct time stamps.
12044 * Makefile.maint (cvs-sv): New macro, to be used..
12045 (config.guess-url_prefix, config.sub-url_prefix)
12046 (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
12047 point to CVS text checkout of Gnulib files.
12048 (copyright-check): Bump current year.
12049 (announcement): Do not hard-wire `./announce-gen'.
12050 (cvs-update): Propagate failures of `cvs' and `move-if-change'
12052 * Makefile.cfg (executable-update): Use `chmod a+x' instead of
12054 (wget_files): Update config.guess, config.sub, texinfo.tex by
12055 `wget-update', now that their URLs work again.
12057 2006-04-10 Paul Eggert <eggert@cs.ucla.edu>
12059 * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
12060 Problem noted by Paul D. Smith.
12062 2006-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12064 * doc/autoconf.texi: Remove unused words from word list.
12065 * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
12066 .x-sc_trailing_space: New files.
12068 * doc/standards.texi: Sync from gnulib.
12070 * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
12071 `LIBOBJDIR' as experimental.
12073 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
12074 with a target directory; it's internally implemented as `cp'
12075 anyway, but since Autoconf advertises the possibility to use
12076 a target directory when LN_S is `ln -s', we need to find out.
12077 Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
12078 analyzed by Keith Marshall <keith.marshall@total.com>.
12082 2006-04-10 Paul Eggert <eggert@cs.ucla.edu>
12084 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
12085 confdefs.h as-is. In general, if it has backslash-newline or the
12086 like, then it doesn't work either to sort or to remove empty
12089 2006-04-09 Stepan Kasal <kasal@ucw.cz>
12091 * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
12093 2006-04-09 Alexandre Duret-Lutz <adl@gnu.org>
12095 * lib/autom4te.in (Automake-preselections): Preselect
12098 2006-04-08 Paul Eggert <eggert@cs.ucla.edu>
12100 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
12101 apostrophe within a single-quoted string, as this is the usual
12102 tradition and is easier to read than '"'"'. Don't rely on the
12103 shell treating "$/" like '$/'. Use a more-consistent indenting
12104 style for the trap.
12106 2006-04-09 Eric Blake <ebb9@byu.net>
12108 * tests/autotest.at (Backquote command substitution),
12109 (Multiline backquote command substitution): Remove mistaken
12110 AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
12112 (Parenthetical command substitution, Multiline parenthetical
12113 command substitution): here.
12115 2006-04-08 Paul Eggert <eggert@cs.ucla.edu>
12117 Import macros from gnulib (often changing their name).
12119 * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
12120 New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
12121 AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
12122 AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
12123 AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
12124 AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
12125 AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
12126 AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
12127 AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
12128 AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
12129 The manual mentions Gnulib more prominently.
12130 * doc/autoconf.texi (Gnulib): New node.
12131 (Pointers): Add Gnulib URL.
12132 (Particular Functions): Alphabetize. Add AC_FUNC_STRTOLD.
12133 (Generic Functions): Add AC_CHECK_FUNCS_ONCE. Refer to new
12135 (Particular Headers): Add AC_HEADER_ASSERT. For stdbool.h,
12136 suggest a #define rather than a typedef for _Bool, and mention
12137 Gnulib rather than trying to substitute stdbool code.
12138 (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
12139 (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
12140 (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
12141 AC_STRUCT_DIRENT_D_TYPE.
12142 (Particular Types): Mention stdint.h and inttypes.h as standard
12144 Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
12145 AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
12146 AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
12147 AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
12148 AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
12149 (C Compiler): Move AC_C_LONG_DOUBLE to ...
12150 (Obsolete Macros): here. Under AC_LONG_DOUBLE, mention
12151 AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
12152 (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
12153 (Coding Style). Don't mention m4_expand_once.
12154 * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
12155 AC_TYPE_LONG_DOUBLE_WIDER. Now obsolete.
12156 * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
12157 (AC_CHECK_FUNCS): Use it.
12158 (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
12159 (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
12160 * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
12161 * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
12162 (AC_HEADER_ASSERT): New macro.
12163 (AC_HEADER_STDBOOL): Don't assume "#error" works.
12164 Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
12165 Catch a bug in an HP-UX C compiler.
12166 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
12167 * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
12168 (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
12169 (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
12170 (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
12171 (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
12174 * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
12175 use /^foo|bar$/, it does not mean /^(foo|bar)$/.
12177 2006-04-08 Stepan Kasal <kasal@ucw.cz>
12179 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
12180 of the warning introduced by the 2001-08-28 change.
12182 2006-04-08 Stepan Kasal <kasal@ucw.cz>,
12183 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12185 * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
12186 variables shall be overriden by the cache.
12187 * tests/torture.at (AC_ARG_VAR): Test also with a first value
12188 that contains braces.
12190 2006-04-07 Stepan Kasal <kasal@ucw.cz>
12192 Revert the patch from 2006-04-01 and only improve
12193 _AS_DETECT_BETTER_SHELL:
12195 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
12196 skip nonexistent directories.
12197 (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
12198 only shell candidates which exist.
12199 (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
12200 * lib/autotest/general.m4 (AT_INIT): No need to give three
12201 parameters to _AS_PATH_WALK.
12203 2006-04-07 Stepan Kasal <kasal@ucw.cz>,
12204 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12206 * bin/autoupdate.in (handle_autoconf_patches): Change the way we
12207 distinguish m4sugar macros.
12208 * tests/tools.at (autoupdating with aclocal and m4_include):
12209 New test. Bug reported by Gary V. Vaughan <gary@gnu.org>,
12210 test case by Noah Misch <noah@cs.caltech.edu>.
12212 2006-04-07 Stepan Kasal <kasal@ucw.cz>
12214 Revert my change from 2006-03-17, in other words:
12215 * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
12217 (AS_SHELL_SANITIZE): Remove DUALCASE=1.
12218 * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
12221 2006-04-07 Eric Blake <ebb9@byu.net>
12223 * doc/autoconf.texi (Programming in M4sh): Document that
12224 AS_MKDIR_P exits the script on failure.
12225 * lib/autotest/general.m4: Remove redundant AS_ERROR.
12227 2006-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12229 * config/elisp-comp, config/install-sh, config/mdate-sh,
12230 config/missing, config/mkinstalldirs: Sync from Automake.
12232 * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
12235 * doc/make-stds.texi: Sync from gnulib.
12237 2006-04-06 Eric Blake <ebb9@byu.net>
12239 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
12240 check, s/ac_exeext/ac_cv_exeext/. Fixes regression introduced
12243 2006-04-06 Stepan Kasal <kasal@ucw.cz>,
12244 Eric Blake <ebb9@byu.net>,
12245 Paul Eggert <eggert@cs.ucla.edu>,
12246 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12248 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
12249 whether `set' quotes correctly: redirect stderr of the tested
12250 `set', and use a subshell, for Ultrix; use `sed' instead of
12251 `grep' for zsh `set' which may write binary output; match only
12252 at the beginning of a line, to avoid false positives.
12253 In order to avoid false positives by unrelated variables with
12254 multiline content, put the dump algorithm in a subshell and
12255 unset all variables containing newlines (except some which are
12256 special to the shell). Warn about cache variables that are
12259 2006-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12261 * config/config.guess, config/config.sub, config/texinfo.tex:
12262 Sync from upstream.
12264 * tests/mktests.sh: Reword comments.
12266 * tests/mktests.sh: Only skip internal macros starting with
12267 `_AC_' or `__AC_'. Noted by Stepan Kasal.
12268 Update exclusion lists for the test suite to this end:
12269 (AC_ARG_VAR): Do test this now.
12270 (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
12271 (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
12272 (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
12273 (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
12275 * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
12276 shell issue with double-quoted command substitutions of native
12278 Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
12281 * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
12282 no file matches the glob, discard the warning, set `nullglob'.
12283 (syntax-check): Likewise.
12284 (sc_cast_of_x_alloc_return_value): Likewise.
12285 (sc_cast_of_alloca_return_value, sc_error_exit_success)
12286 (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
12287 (m4-check): Likewise.
12288 (sc_system_h_headers): Do not print rule on execution.
12289 (sc_tight_scope): Do not fail for non-existing `src' directory.
12290 (sc_changelog): Skip the Copyright footer.
12291 * lib/autoconf/lang.m4: Remove trailing space.
12293 * lib/autoconf/status.m4: More replacements to
12294 <tab><space> where this makes sense.
12296 2006-04-06 Stepan Kasal <kasal@ucw.cz>
12298 * tests/Makefile.am (maintainer-check-posix):
12299 s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
12301 * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
12302 ac_config_<foo>s again, sometimes normalized, sometimes not.
12303 (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
12304 (AC_CONFIG_COMMANDS): Do not do so here.
12305 (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
12306 and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
12307 2005-07-25 rewrite. Noticed by Noah Misch.
12309 * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
12310 _AC_PRESERVE_HELP_ORDER, ...
12311 (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
12313 * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
12314 inside m4_expand_once; it is redundant.
12316 * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
12317 for --help from Cygnus `configure.'
12319 2006-04-06 Paul Eggert <eggert@cs.ucla.edu>
12321 * doc/autoconf.texi (C Compiler): Warn about #error. Follows up
12322 on a patch proposed by Ralf Wildenhues.
12324 2006-04-05 Paul Eggert <eggert@cs.ucla.edu>
12326 * lib/autoconf/status.m4: Replace <space>''<tab> with
12327 <tab><space> where this makes sense.
12329 2006-04-05 Howard Chu <hyc@highlandsun.com> (trivial change)
12330 Noah Misch <noah@cs.caltech.edu>
12332 * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
12333 (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
12334 * doc/autoconf.texi (Help Formatting): New node.
12335 * NEWS: Announce AC_PRESERVE_HELP_ORDER.
12337 2006-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12339 * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
12340 lib/autoconf/specific.m4, lib/autoconf/status.m4,
12341 lib/autoconf/types.m4, lib/autotest/general.m4,
12342 tests/mktests.sh, tests/torture.at: White space cleanup:
12343 remove some SPACE before TAB, or add quoting ('' or @&t@).
12345 * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
12347 * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
12349 2006-04-05 Eric Blake <ebb9@byu.net>
12351 * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
12352 empty test suite works.
12353 * tests/autotest.at (Empty test suite): Remove xfail.
12355 2006-04-05 Noah Misch <noah@cs.caltech.edu>
12357 * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
12358 TAGS to ac_config_<foo>s.
12359 (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
12360 (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
12361 normalizing it, consistent it with previous releases.
12362 * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
12364 2006-04-05 Paul Eggert <eggert@cs.ucla.edu>
12366 * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
12367 Use simplified args that Eric Blake originally suggested.
12369 2006-04-04 Paul Eggert <eggert@cs.ucla.edu>
12371 * tests/mktests.sh: Don't use 'cat'; just read the files directly.
12372 Prefer 'sort -u' to 'sort | uniq'. Filter data before sorting it.
12373 Use 'comm' rather than N instances of grep; this also fixes a bug
12374 whereby substrings were incorrectly matched, causing us to not
12375 generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
12376 (exclude_list): Exclude empty macros.
12377 (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
12379 Use awk rather than grep -E or egrep, to avoid
12380 portability problems with regular expressions containing newlines.
12381 (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
12382 Switch from grep to awk syntax.
12383 (ac_exclude_script): Renamed from ac_exclude_egrep.
12384 (au_exclude_script): Renamed from au_exclude_egrep.
12386 2006-04-04 Noah Misch <noah@cs.caltech.edu>
12388 * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
12389 a subdirectory subject to Cygnus `configure'.
12390 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
12392 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
12393 report request when we have no AC_PACKAGE_BUGREPORT.
12395 2006-04-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12399 * tests/mktests.sh: Update copyright year in the header of the
12402 * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
12403 (AC_C_RESTRICT): Likewise. Furthermore, add a function with a
12404 typedef'ed restricted pointer, to catch a compiler bug on
12405 HP-UX 11.x, and fix warnings so it passes with -Werror.
12406 (_AC_PROG_CC_C99): Likewise.
12407 Reported by Albert Chin <china@thewrittenword.com>.
12408 * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
12410 2006-04-03 Noah Misch <noah@cs.caltech.edu>
12412 * bin/autoscan.in (subdirs): New global.
12413 (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
12414 (output): Emit AC_CONFIG_SUBDIRS as needed.
12415 * tests/autoscan.at (autoscan): Remove XFAIL.
12417 2006-04-03 Noah Misch <noah@cs.caltech.edu>
12419 * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
12421 2006-04-03 Eric Blake <ebb9@byu.net>
12423 * THANKS: Add myself.
12425 2006-04-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12427 * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
12428 to log, point to testsuite output tree.
12430 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
12432 * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
12433 * doc/autoconf.texi (Function Portability): Mention that C++
12434 has trouble with 'exit'.
12435 (Guidelines): Test programs shouldn't use 'exit'.
12436 * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
12437 Remove; all uses removed.
12438 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
12439 Return from 'main' instead of calling 'exit'.
12440 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
12441 (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
12442 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
12443 (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
12444 (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
12445 (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
12446 (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
12447 * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
12448 * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
12449 * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
12450 * tests/compile.at: Likewise.
12452 2006-04-02 Pavel Roskin <proski@gnu.org>
12454 * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
12456 2006-04-01 Stepan Kasal <kasal@ucw.cz>
12458 Clean up _AC_COMPILER_EXEEXT* macros.
12460 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
12461 detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
12462 ac_file to the name of the default output file and call
12463 _AC_COMPILER_EXEEXT_WORKS. Move the definition of ac_files and the
12464 initial `rm' of the candidate files...
12465 (_AC_COMPILER_EXEEXT): ... here and simplify them. Moreover, use
12466 the same list in subsequent `rm' calls, and for the temporary
12467 redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
12468 and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
12469 (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
12470 (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
12471 no longer needed) by libtool. Make it a cache check.
12472 (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
12473 copied here by mistake.
12474 (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
12475 _AC_COMPILER_EXEEXT.
12476 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
12477 _AC_COMPILER_OBJEXT directly.
12478 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
12480 2006-04-01 Stepan Kasal <kasal@ucw.cz>
12482 * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
12483 (AS_DIRNAME): Use it.
12484 (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
12486 * tests/*.at: Remove the generated ones.
12488 2006-04-01 Stepan Kasal <kasal@ucw.cz>
12490 * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
12492 2006-04-01 Eric Blake <ebb9@byu.net>
12494 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
12495 directories, unless optional third argument supplied.
12496 (AS_UNAME): Don't optimize PATH walk.
12498 * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
12500 2006-04-01 Eric Blake <ebb9@byu.net>
12501 and Stepan Kasal <kasal@ucw.cz>
12503 * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
12504 and fix some typos.
12506 2006-04-01 Noah Misch <noah@cs.caltech.edu>
12508 * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
12509 Autoconf version number despite a zero- or one-argument AC_INIT.
12511 * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
12513 * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
12514 * doc/autoconf.texi (autoreconf Invocation): Document it.
12516 * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
12517 Append LocalWords so ispell-buffer passes cleanly. Spelling fixes.
12519 2006-04-01 Eric Blake <ebb9@byu.net>
12521 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
12522 * lib/autotest/general.m4: Be tolerant of existing directory when
12523 rm failed to remove it.
12525 2006-04-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12527 * bin/autoupdate.in: Redefine m4_location so that warnings print
12528 the correct lines of the input file by subtracting..
12529 (_au__first_line): ..this new definition.
12531 * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
12532 AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
12533 Remove stray newline in output.
12534 (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
12535 AC_DEFUN this for autoconf, including the obsoletion diagnose.
12536 Fixes autoupdating of code where the replacement output contains
12538 * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
12539 * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
12540 (au_exclude_list): Add AC_LANG_SAVE.
12541 * tests/tools.at: Several new tests for all of this.
12542 * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
12544 The AC_LANG_SAVE issue was reported against Libtool by
12545 Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
12546 Kristian Kvilekval <kris@cs.ucsb.edu>.
12548 2006-04-01 Stepan Kasal <kasal@ucw.cz>
12550 * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
12551 switch all of them on and of when necessary. Fixes the bug when
12552 m4sugar macros (e.g., m4_define) were expanded after the first
12553 automatic update (e.g., after AC_PREREQ or AC_INIT).
12555 2006-03-31 Paul Eggert <eggert@cs.ucla.edu>
12557 * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
12558 of AS_BASENAME and AS_DIRNAME. Reported by Stepan Kasal.
12560 * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
12561 correctly. Problem reported by Eric Blake.
12562 (_AS_EXPR_PREPARE): Detect Tru64 expr bug. Problem reported by
12565 2006-03-30 Paul Eggert <eggert@cs.ucla.edu>
12567 * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
12568 Tighten up the basename/dirname wording.
12570 2006-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12572 * Makefile.maint (sc_texi_notab): New check: do not use TABs
12573 in texinfo files outside of verbatim environments.
12574 (syntax-check-rules): Update.
12575 * doc/autoconf.texi (Configuration Headers): Conform to it.
12577 2006-03-30 Chris Pickett <cpicke@cs.mcgill.ca> (tiny change)
12579 * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
12580 aclocal cannot be given on the command line.
12582 2006-03-29 Paul Eggert <eggert@cs.ucla.edu>
12584 * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
12585 Give an example for AS_DIRNAME instead of referring to Posix..
12586 (File System Conventions): Put discussion of // versus / here, and
12587 modernize it a bit.
12588 (Limitations of Usual Tools): Add basename. Remove verbiage
12589 after dirname, since it got moved to the above sections.
12590 All this was inspired by a patch proposed earlier by Eric Blake.
12592 2006-03-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12594 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
12595 `$0' to protect against spaces.
12596 * lib/autotest/general.m4 (AT_INIT): Likewise.
12597 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
12600 2006-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12602 * bin/autoscan.in: The value of find_configure_ac should be
12603 checked for existence, so we don't barf over a nonexisting
12604 configure.ac. Reported by Laurence Darby <ldarby@tuffmail.com>.
12606 2006-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12608 * bin/autoupdate.in: Fix some typos.
12610 2006-03-21 Stepan Kasal <kasal@ucw.cz>
12612 * doc/autoconf.texi (Installation Directory Variables): Fix typo.
12614 * lib/autoscan/autoscan.list: Refreshed.
12616 2006-03-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12618 * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
12619 and Erlang related variables.
12621 * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
12622 (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
12623 (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
12624 (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
12625 (AC_LANG_BOOL_COMPILE_TRY(Objective C))
12626 (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
12627 (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
12628 (_AC_PROG_OBJC_G): New macros.
12629 (_AC_ARG_VAR_CPPFLAGS): Adjusted.
12630 * doc/autoconf.texi (Objective C Compiler): New node.
12631 (Preset Output Variables): Document OBJCFLAGS.
12632 (Language Choice): Document `Objective C' language.
12633 (Fortran Compiler): Fix typo.
12635 Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
12637 2006-03-20 Stepan Kasal <kasal@ucw.cz>
12639 * doc/autoconf.texi (Default Includes): Fix typo
12640 s/AC_HEADERS_STDC/AC_HEADER_STDC/
12641 (Limitations of Usual Tools): s/unwriteable/unwritable/
12642 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
12643 Fix typos in the comments.
12645 2006-03-17 Stepan Kasal <kasal@ucw.cz>
12647 * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
12648 Factor out the warning to...
12649 (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
12650 * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
12651 * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
12653 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
12654 case `ac_delim' when writing the sed script.
12656 * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
12657 moved DUALCASE=1 ...
12658 (AS_SHELL_SANITIZE): ... here.
12659 * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
12662 * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
12664 (_AC_PATH_PROG): Store the result to VARIABLE.
12665 (AC_PATH_PROG): No need to set VARIABLE again.
12667 * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
12668 the first one is usual AT_CHECK_MACRO test, the second one checks
12669 that the same works when cross-compiling.
12670 * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
12671 (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
12673 2006-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12675 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
12676 the directory `/usr/bin/posix' in the shell search, to prefer
12677 the Posix shell not only in subsequent spawns as with `$BIN_SH'
12680 * doc/autoconf.texi (contents): To fix texi2html output, hide
12681 `@setcontentsaftertitlepage' for HTML.
12682 (Writing Autoconf Macros): Likewise, insert space after `@c'.
12683 (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
12686 2006-03-16 Stepan Kasal <kasal@ucw.cz>
12688 * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
12690 (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
12691 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
12692 why IFS is restored so late; thank you, Ralf, for reminding us.
12694 2006-03-15 Stepan Kasal <kasal@ucw.cz>
12696 * doc/autoconf.texi (Pretty Help Strings): No need to use cached
12697 variables in the examples.
12699 2006-03-14 Romain Lenglet <rlenglet@users.forge.objectweb.org>
12701 * doc/autoconf.texi (several sections): Cleaned up documentation for
12702 macros in erlang.m4.
12704 2006-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12706 * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
12707 failure condition for `$(cmd)' style command substitutions.
12708 (Parenthetical command substitution, Multiline parenthetical
12709 command substitution): Use it.
12711 * doc/autoconf.texi (Special Shell Variables): Missing word.
12712 Reported by Keith Marshall <keith.marshall@total.com>.
12714 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
12715 IFS even in case of empty `$PATH'.
12717 2006-03-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12719 * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
12720 `expr' away if there is nothing to do.
12721 < --keywords >: Simplify and robustify argument handling.
12722 Revert erroneous comment from 2005-08-23. Extend to allow
12723 keyword negation with `!'.
12724 Update help message. Remove broken code to prevent running
12725 tests multiple times.
12726 * doc/autoconf.texi (testsuite Invocation) < --keywords >:
12727 Update and fix the documentation accordingly.
12728 * tests/autotest.at (Keywords): Renamed to..
12729 (Keywords and ranges): .. this. Extended to make sure negated
12730 keywords, keywords taken from AT_SETUP arguments, and numeric
12731 test ranges work, and that matching is case-insensitive.
12733 2006-03-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12735 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
12736 allow to pass unnamed structs even in C++.
12737 (AC_CHECK_SIZEOF): Likewise.
12738 Also fix quoting error in `AC_MSG_FAILURE' arguments.
12739 * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
12740 struct): New tests for unnamed structs, each both native and
12743 * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
12744 a structure inside a cast, for C++ conformance.
12745 * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
12746 Also fix quoting error in `AC_MSG_FAILURE' arguments.
12748 * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
12749 nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
12750 trying to execute the command `no'.
12752 * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
12753 m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
12756 * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
12757 example. Do not emphasize `$%', it is hardly new and special.
12758 Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
12760 * doc/autoconf.texi (Limitations of Usual Tools): Document
12761 OpenBSD and traditional `grep' failure to handle multiple
12762 patterns separated by newlines.
12764 2006-03-10 Romain Lenglet <rlenglet@users.forge.objectweb.org>
12766 * doc/autoconf.texi (several sections): Add documentation for macros
12769 2006-03-10 Eric Blake <ebb9@byu.net>
12771 * doc/autoconf.texi (Obsolete Macros): Fix wording of
12774 2006-03-10 Paul Eggert <eggert@cs.ucla.edu>
12776 * doc/autoconf.texi: Use @acronym more consistently for acronyms
12777 like BSD, GPL, LGPL. Fix minor English typos.
12778 (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
12779 Mention that these macros are becoming obsolete.
12780 (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
12781 Use more modern terminology for which standard is what.
12782 (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
12784 (AC_PROG_CXX): Likewise.
12785 (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
12786 Remove obsolete discussion about how to port to K&R.
12787 (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
12788 the obsolescent AC_HEADER_STDC.
12789 (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
12792 2006-03-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12794 * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
12795 Remove stdin redirection from /dev/null to allow pipe to work.
12797 2006-03-08 Paul Eggert <eggert@cs.ucla.edu>
12799 * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
12800 Require that /lib/cpp include stdio.h correctly. Solaris 10's
12801 doesn't. Problem reported by D'Arcy A MacIsaac and diagnosed by
12804 2006-03-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12806 * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
12807 HP-UX sed is 99 commands, not 100.
12808 (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
12809 _AC_SUBST_FILES fragment. Separate `{' and `r' commands by
12810 newline for portability.
12811 * tests/torture.at (Torturing config.status): Also test 100
12812 AC_SUBST_FILE invocations. Fix test to actually verify the
12813 AC_CONFIG_FILES output.
12814 * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
12815 command, label, and read-file `r' limits. Unify HP-UX spelling.
12817 * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
12819 ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
12821 (autoconfdir, $(AUTOCONF_FILES)): Likewise.
12822 * tests/mktests.sh: Small shell portability fixes.
12824 2006-03-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12826 * doc/autoconf.texi (Caching Results): Fix the examples to use a
12827 recommended quoting style and discard unwanted output.
12829 2006-03-05 Paul Eggert <eggert@cs.ucla.edu>
12831 * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
12832 (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
12833 cases, and to work around Tru64 expr bug.
12835 2006-03-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12837 * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
12838 expr bug that turns the result of a regex match into a number if
12841 2006-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12843 * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
12844 HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
12845 in section `Specific Compiler Characteristics'.
12847 2006-03-04 Eric Blake <ebb9@byu.net>
12849 * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
12852 2006-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12854 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
12855 order of variable initialization, so even the Solaris 2.6 shell
12856 can create a config header correctly. Fixes lots of test suite
12859 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12861 * doc/autoconf.texi (Text processing Macros): New node to
12862 document the m4sugar macros m4_re_escape, m4_tolower,
12863 m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
12865 2006-02-22 Paul Eggert <eggert@cs.ucla.edu>
12867 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
12868 XrmInitialize (0) -> XrmInitialize ().
12869 Reported by Toshio Kuratomi.
12871 2006-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12873 * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
12874 test, as in `if tests; then cmd1; elif ...; else ...; fi'.
12875 * doc/autoconf.texi (Programming in M4sh): Adjusted.
12876 * tests/m4sh.at (AS_IF and AS_CASE): Test this. Also make sure
12877 both macros are defun'ed so that required macros are evaluated
12880 * doc/autoconf.texi (Prerequisite Macros): State more precisely
12881 where a required macro will be expanded.
12882 (Coding Style): Another reason not to use `m4_define'.
12884 2006-02-21 Eric Blake <ebb9@byu.net>
12886 * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
12888 2006-02-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12890 * doc/autoconf.texi (Looping constructs): New node, to
12891 document m4_for, m4_foreach, m4_foreach_w, and mention
12892 obsolete AC_FOREACH.
12893 (Obsolete Macros): Document AC_FOREACH.
12894 * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
12895 (m4_for): Fix to never loop (almost) endlessly, work correctly
12896 with arithmetic expressions in arguments, a step of zero or
12897 non-integer multiple of the interval, and avoid integer
12899 * tests/m4sugar.at: New test for m4_for, m4_foreach, and
12902 2006-02-20 Romain Lenglet <rlenglet@users.forge.objectweb.org>
12904 Add basic support for Erlang, both for configuring Erlang/OTP
12905 tools, and Erlang as a conf test language.
12906 * lib/autoconf/erlang.m4: New file.
12907 * lib/autoconf/autoconf.m4: Add erlang.m4.
12908 * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
12909 * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
12910 * NEWS: Add short description of new macros.
12911 * THANKS: Add Romain Lenglet.
12913 2006-02-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12915 * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
12916 native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
12918 2006-02-15 Eric Blake <ebb9@byu.net>
12920 * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
12923 2006-02-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12925 * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
12926 (_AS_CASE): Private helper macro.
12927 * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
12928 * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
12929 Fix syntax of AS_IF description
12930 (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
12931 for the AC_REQUIRE mess.
12932 * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
12935 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
12937 * doc/autoconf.texi: Minor style cleanup.
12938 Be consistent about spaces after commas.
12939 Insert [] where empty args look a bit funny.
12940 Fix some "i.e." and "e.g." usages.
12941 Try to avoid "X/Y" usages.
12942 Don't be pedantic about "ISO C99"; just say C99.
12943 Prefer GNU style for spaces in front of parens.
12944 (Function Portability): Comment about C89 versus C99
12945 signed integer division.
12946 (Particular Headers): Use current gnulib style for dirent
12949 2006-02-14 Stepan Kasal <kasal@ucw.cz>
12950 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12952 * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
12953 macros without parameters.
12954 * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
12955 * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
12956 * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
12958 (autoupdate): Updated to match AU_ALIAS fix.
12960 2006-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12961 and Paul Eggert <eggert@cs.ucla.edu>
12963 * doc/autoconf.texi (Programming in M4sh): Document
12964 AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
12966 2006-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12968 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
12969 (AS_BOURNE_COMPATIBLE): ..this.
12970 (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
12972 2006-02-12 Paul Eggert <eggert@cs.ucla.edu>
12974 * doc/install.texi (Defining Variables): Tighten up the
12975 CONFIG_SHELL wording.
12977 2006-02-12 Paul Eggert <eggert@cs.ucla.edu>
12978 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12980 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
12981 of (set -o) rather than testing whether (set -o posix) succeeds,
12982 to work around a bug in the AIX 5.3 shell. Problem originally
12983 reportd by Howard Chu for libtool.
12985 2006-02-10 J.T. Conklin <jtc@acorntoolworks.com>
12987 * doc/autoconf.texi (Running the Compiler, Running the Linker):
12988 Changes the macro arguments in summaries to match the
12991 2006-02-04 Stepan Kasal <kasal@ucw.cz>
12993 * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
12994 hint as ``a workaround for a bug.''
12996 2006-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12998 * bin/autoreconf.in: New option `--no-recursive'.
12999 Improve wording for subpackages a bit.
13000 * doc/autoconf.texi (autoreconf Invocation): Updated.
13003 * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
13004 in environment of `configure', not the command line.
13005 Reported by Howard Chu <hyc@highlandsun.com>.
13007 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
13009 * doc/autoconf.texi (Limitations of Builtins): Document the
13010 problem with "trap -".
13012 2006-01-23 Steven G. Johnson <stevenj@fftw.org>
13014 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
13015 (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
13016 messages to differentiate Fortran and Fortran 77 tests.
13017 (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
13018 AC_LANG_ASSERT, to allow use in mixed-language projects.
13020 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
13022 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
13023 FOO" to "defined (FOO)".
13024 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
13025 * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
13026 * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
13027 * tests/tools.at (ifnames): Likewise.
13029 2006-01-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13031 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
13032 * lib/Autom4te/General.pm (mktmpdir): Likewise.
13033 (END): Improve error message a bit.
13034 Reported by Bruce Korb <bkorb@gnu.org>.
13036 2006-01-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13038 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
13039 `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
13041 2006-01-11 Stepan Kasal <kasal@ucw.cz>
13043 * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
13044 requires sys/stream.h. Reported by Oliver Kiddle.
13046 2006-01-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13047 Stepan Kasal <kasal@ucw.cz>
13049 * lib/autotest/general.m4 (AT_INIT): When ensuring writability
13050 before the removals of test dirs, use `find' to avoid modification
13051 of symlinked directories.
13053 2006-01-11 Steven G. Johnson <stevenj@alum.mit.edu>
13055 * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
13056 Don't ignore the macro arguments.
13058 2006-01-11 David Thompson <dthompsn@vizsolutions.com>
13060 * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
13061 declaration that works for MSVC.
13063 2006-01-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13065 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
13066 Add `*.map' and `.inf' for Green Hills compiler.
13067 Reported by Stefan Seefeld <stefan@codesourcery.com>.
13069 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
13070 correctly: pad with spaces after FIRST_PREFIX if necessary,
13071 and compute string lenghts with `m4_qlen' instead of `m4_len'.
13072 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
13073 * tests/m4sh.at (AS_HELP_STRING): Test extended.
13075 Reported by numerous people, numerous times.
13077 2006-01-05 Paul Eggert <eggert@cs.ucla.edu>
13079 * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
13080 * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
13081 * lib/autoconf/general.m4, lib/autoconf/status.m4:
13082 * lib/autotest/general.m4, tests/local.at:
13083 Update copyright year to 2006.
13085 * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
13087 * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
13088 for file names, again. Reported by Noah Misch.
13089 (Coding Style): Explain that s|a|b| is preferred for file names.
13090 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
13091 (AC_OUTPUT_MAKE_DEFS): Likewise.
13092 * lib/autotest/general.m4 (AT_INIT): Likewise.
13093 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
13094 * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
13096 Fix Posix-conformance bugs re use of { command in sed scripts,
13097 and improve the sed-related documentation a bit.
13098 * doc/autoconf.texi (Installation Directory Variables): Use
13099 our own style advice re 's,a,b,' versus 's|a|b|'. Use "Sed"
13100 rather than "sed" when talking about Sed in general.
13101 (Particular Programs): Likewise.
13102 (Coding Style): y is like s with respect to / and ,.
13103 (Limitations of Usual Tools): Document the weird restrictions
13104 that Posix has about { }. Use better quoting.
13105 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
13106 Rewrite to conform to Posix rules about { } in sed scripts.
13107 * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
13108 * tests/foreign.at (Libtool): Likewise.
13109 * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
13110 Use our own style advice re 's,a,b,' versus 's|a|b|'.
13112 2006-01-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13114 * lib/autoconf/status.m4: Fix typo.
13116 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
13117 singly- or doubly-quoted arguments to `-cmdline', `-ignore',
13118 `-def', for the benefit of Portland `pgf90 -Mipa'.
13119 Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
13121 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
13123 * doc/autoconf.texi: Update copyright (and other) dates to 2006.
13124 * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
13125 shell from zsh to bash.
13127 2005-12-31 Stepan Kasal <kasal@ucw.cz>
13129 * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
13130 ":" caused problems on OS/2-EMX. Suggested by Andrew Belov.
13132 2005-12-29 Paul Eggert <eggert@cs.ucla.edu>
13134 * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
13135 parentheses in $(...). Problem reported by Eric Blake.
13137 2005-12-12 Paul Eggert <eggert@cs.ucla.edu>
13139 * doc/autoconf.texi (Limitations of Usual Tools):
13140 Mention which characters can be escaped with \ in portable regular
13141 expressions used in grep, sed, expr. Mention the leading ^ problem
13142 with expr. Clean up some confusing wording. Mention which
13143 grep options are portable.
13145 2005-12-09 Stepan Kasal <kasal@ucw.cz>
13147 * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
13149 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
13151 * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
13152 patch, noted by Ralf Wildenhues.
13154 2005-12-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13156 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
13157 posix' unconditionally, for pdksh in `native sh' emulation.
13159 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
13161 * doc/autoconf.texi (Shellology): Document eval $? problem
13163 (Limitations of Builtins): Likewise.
13165 2005-11-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13167 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
13168 CONFIG_SHELL in the environment of the configure rerun.
13169 * doc/autoconf.texi (Here-Documents, config.status Invocation):
13170 Suggest passing CONFIG_SHELL absolute, and in the environment
13171 rather than as option.
13173 2005-11-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13175 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
13176 Fix quoting of output line (triggered for many AC_SUBST_FILEs).
13177 Fix macro quoting. Fix output for n * 98 substituted variables.
13179 2005-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13181 * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
13182 `tmp' to avoid file removal race.
13184 2005-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13186 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
13187 ac_clean_files and LIBOBJS.
13189 2005-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13191 * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
13192 Factor functionality to..
13193 (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
13194 `AC_SUBST($1)' in the public version.
13195 (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
13196 (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
13199 2005-11-01 Stepan Kasal <kasal@ucw.cz>
13201 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
13204 2005-11-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13206 * NEWS: Move AH_HEADER mention to right place.
13208 2005-10-27 Stepan Kasal <kasal@ucw.cz>
13210 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
13211 * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
13213 2005-10-25 Stepan Kasal <kasal@ucw.cz>
13215 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
13216 conftst2.$ac_objext.
13217 * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
13219 2005-10-24 Stepan Kasal <kasal@ucw.cz>
13221 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
13222 conftest.o, to see whether the compiler really obeys; rm the object
13223 file before and after the test and register it with ac_clean_files.
13224 * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
13226 2005-10-21 Stepan Kasal <kasal@ucw.cz>
13228 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
13229 the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
13230 code so that the most common case requires less forks.
13232 2005-10-20 Stepan Kasal <kasal@ucw.cz>
13234 * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
13235 not portable; thanks to Paul Eggert and Alexandre.
13237 * NEWS: Fix an old typo.
13239 2005-10-20 Jim Meyering <jim@meyering.net>
13241 * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
13242 the latter'', in two places.
13244 2005-10-19 Paul Eggert <eggert@cs.ucla.edu>
13246 * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
13247 AC_LANG_PROGRAM, fixing a typo. Don't give details about
13248 the inner workings of AC_LANG_FUNC_LINK_TRY.
13249 * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
13250 AC_LANG_FUNC_LINK_TRY. This involves returning the value returned
13251 by the function rather than ignoring it.
13252 (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
13253 comparing its address. Intel's interprocedural optimization was
13254 outsmarting the old heuristic. Problem reported by
13257 2005-10-19 Stepan Kasal <kasal@ucw.cz>
13259 * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
13261 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
13263 * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
13264 (m4_map, m4_map_sep): Use it. Handle the empty list correctly.
13266 2005-10-04 Stepan Kasal <kasal@ucw.cz>
13268 * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
13269 before removing it (chmod -R u+rwx); there are three instances of this.
13271 2005-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13272 Stepan Kasal <kasal@ucw.cz>
13274 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
13275 * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
13276 make its content writable before removing it. Remove an errorneous
13277 comment from the end, where the logs of the failed tests are copied
13278 to the main log file.
13280 2005-09-27 Stepan Kasal <kasal@ucw.cz>
13282 * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
13283 in case the computer is too quick. Double quote the configure.ac
13286 * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
13287 problems if the testsuite were running too fast.
13289 2005-09-18 Paul Eggert <eggert@cs.ucla.edu>
13291 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
13292 and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
13293 (which belong to Xt, not X itself). See Debian bug 327655.
13294 * NEWS: Mention this.
13296 2005-09-07 Stepan Kasal <kasal@ucw.cz>
13298 * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
13300 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
13302 * config/move-if-change: Don't output "$2 is unchanged";
13303 suggested by Ben Elliston. Handle weird characters correctly.
13305 2005-09-06 Stepan Kasal <kasal@ucw.cz>
13307 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
13308 calls, so that the final expansion of this macro is shorter.
13309 Create the conftest.$ac_ext outside the `for' loop, to speed the run.
13310 Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
13311 the cleanup there. Use AS_VAR_* macros, to be more general.
13312 * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
13314 * lib/autoconf/general.m4: Use AS_IF where appropriate.
13316 * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
13318 2005-09-01 Stepan Kasal <kasal@ucw.cz>
13320 * doc/autoconf.texi (Configuration Headers): Add an index entry
13323 2005-08-26 Pavel Roskin <proski@gnu.org>
13325 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
13326 XMKMF to locate xmkmf. Make XMKMF precious. Export CC when
13329 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
13331 * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
13332 The previous patch didn't work, so try a better one.
13334 2005-08-26 Stepan Kasal <kasal@ucw.cz>
13336 * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
13337 in the example. Reported by Bruno Haible.
13338 <AS_TR_SH>: Likewise. Also modify the example to be more convincing:
13339 "if $undefined_var;" succeeds with my shell.
13341 * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
13342 AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
13343 but change the m4_divert_text to m4_divert_once.
13345 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
13347 * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
13348 Work around bug in Solaris /usr/xpg4/bin/awk.
13349 The bug is present in at least Solaris 8 through 10.
13351 2005-08-24 Stepan Kasal <kasal@ucw.cz>
13353 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
13354 some evil values and relying on the fact that $* concatenates the
13355 parameters by the first character from IFS.
13357 2005-08-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>,
13358 Stepan Kasal <kasal@ucw.cz>
13360 * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
13361 first header appears, define AH_HEADER.
13362 * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
13363 Update limitations about when to call AC_CONFIG_HEADERS.
13364 (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
13365 parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
13366 that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
13367 ``Configuration Actions''; fix their index entries.
13369 * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
13370 options correctly. Process N-M as M-N if M is smaller than N.
13371 Process ranges correctly so that N-N will run only N.
13372 Sort and uniquify the tests that will be run. If there is more
13373 than one test, reinsert the banners for the tests.
13374 * tests/autotest.at (Keywords): Unmark XFAIL.
13376 2005-08-23 Stepan Kasal <kasal@ucw.cz>
13378 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
13379 before passing the macro name to AH_TEMPLATE.
13381 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
13382 now opens log after option processing; in particular, --version
13383 and --help do not touch config.log.
13385 * Makefile.maint: Revert the change from 2005-08-12.
13387 2005-08-22 Stepan Kasal <kasal@ucw.cz>
13389 * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
13391 (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
13393 2005-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13395 * doc/autoconf.texi (Using Autotest, testsuite Scripts)
13396 (Autotest Logs, Writing testsuite.at, testsuite Invocation):
13399 * doc/autoconf.texi (Defining Symbols, Changed Results):
13400 Prepend to LIBS, not append, in examples.
13402 2005-08-16 Stepan Kasal <kasal@ucw.cz>
13404 When building in place, set srcdir="."; suggested by Tim Van Holder.
13406 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
13407 build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
13408 (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
13409 * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
13410 does not mean "no --srcdir option".
13412 2005-08-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13414 * tests/autoscan.at (autoscan): New file.
13415 * tests/suite.at: Use it.
13416 * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
13417 Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
13419 * tests/autotest.at (Keywords): Test keywords combinations.
13421 2005-08-12 Stepan Kasal <kasal@ucw.cz>
13423 * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
13424 add "2>&1"; gzip 1.2.4 prints help on stderr.
13426 2005-07-27 Stepan Kasal <kasal@ucw.cz>
13428 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
13429 was pushdef'ed twice while popped only once. Push it only once.
13430 (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
13432 2005-07-26 Stepan Kasal <kasal@ucw.cz>
13434 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
13435 prefixed by mere "===", not "configure: === ".
13437 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
13439 * Makefile.maint: Update from Bison.
13441 * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
13442 "<tab>" in comment, so that the point is understandable.
13444 2005-07-25 Stepan Kasal <kasal@ucw.cz>
13446 Rewrite substantial part of lib/autoconf/status.m4.
13447 The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
13448 and CONFIG_COMMANDS are not processed in four separate loops.
13449 Instead, there is one main loop. This alows that the common code
13450 is expanded only once, thus config.status (and configure) is smaller.
13452 The registration mechnism in AC_CONFIG_FILES and cousins also changed;
13453 the AC_LIST_FILES and cousins macros are no longer used.
13455 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
13456 _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
13457 (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
13458 _AC_OUTPUT_COMMAND): ..., respectively. These macros no longer
13459 contain the initialization, nor the for loop, nor the associated
13460 commands; all these go to ...
13461 (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
13462 _AC_OUTPUT_CONFIG_STATUS.
13463 (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
13464 Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
13465 (_AC_OUTPUT_FILE): The creation of the sed script ...
13466 (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
13467 (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
13468 _AC_OUTPUT_MAIN_LOOP.
13469 (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
13470 _AC_CONFIG_COMMANDS): Use ...
13471 (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
13472 (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
13473 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
13474 _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
13475 (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
13476 (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
13478 (_AC_CONFIG_UNIQUE): Update.
13479 (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
13480 Replaced by this ...
13481 (_AC_LIST_TAGS): ... new common macro.
13482 (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
13483 AC_LIST_COMMAND_COMMANDS): Replaced by this ...
13484 (_AC_LIST_TAG_COMMANDS): ... new common macro.
13485 (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
13486 this didn't belong to the `config commands' section.
13487 (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
13488 (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
13489 AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
13490 to the `config commands' section either.
13491 (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
13492 (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
13494 ... and many changes to the comments nearby.
13496 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
13497 set ac_subdirs_all='_AC_LIST_SUBDIRS'.
13498 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
13499 AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
13500 (#define header templates): The comment at the top of the generated
13501 header now includes the name(s) of the source file(s).
13503 Several unrelated small changes:
13505 * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
13506 parameter to AC_DIAGNOSE.
13507 * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
13508 (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
13509 with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
13510 (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
13511 with AU::AC_OUTPUT.
13512 (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
13513 in AC_OUTPUT doesn't double-quote it either.
13514 * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
13517 2005-07-10 Stepan Kasal <kasal@ucw.cz>
13519 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
13520 versions of Portland Group compiler produce single- and double-quoted
13521 -cmdline argument. Reported by Steven G. Johnson <stevenj@fftw.org>
13522 and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
13524 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
13526 * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
13527 This is a corrected version of yesterday's patch.
13529 2005-07-07 Stepan Kasal <kasal@ucw.cz>
13531 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
13532 path, too; insert a "===" to emphasize the line.
13534 * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
13535 ac_cv_build_alias to ac_build_alias.
13536 (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
13538 On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
13539 change eliminates it. Problem reported by Alexandre Duret-Lutz.
13540 * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
13541 (AC_ARG_VAR): ... here.
13542 (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
13545 Keep a list of all precious variables and process them with one simple
13546 for loop, instead of expanding all commands, or, OTOH, complicated
13547 processing of output of "set".
13548 * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
13549 variable names in new macro...
13550 (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
13551 (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
13552 a loop to assign all ac_env_* and ac_cv_env_* variables.
13553 (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
13555 (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
13556 its value to shell variable ac_precious_vars and call
13557 _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
13558 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
13559 _AC_ARG_VAR_VALIDATE.
13561 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
13562 and the AC_SUBSTs ...
13563 (AC_INIT): ... here.
13565 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
13566 the ac_subst_files section in config.log.
13568 * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
13570 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
13572 * NEWS: New macro AC_C_TYPEOF.
13573 * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
13574 * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
13575 * tests/c.at (C keywords): Test AC_C_TYPEOF.
13577 Fix problems reported by Nicolas Joly.
13578 * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
13579 * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
13580 They are generated by the Tru64 v5.1B shell.
13582 2005-07-05 Stepan Kasal <kasal@ucw.cz>
13584 Fix my changes from 2005-07-01; reported by Noah Misch.
13585 * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
13586 description, the macro now accepts only a single tag.
13587 (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
13589 Fix cases when the varsions of Autoconf and Autotest don't match.
13590 Reported by Noah Misch.
13591 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
13592 at_top_builddir, for compatibility with older autotest.
13593 * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
13594 is not set, use at_top_builddir, for compatibility with older
13595 versions of autoconf.
13597 2005-07-04 Paul Eggert <eggert@cs.ucla.edu>
13599 * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
13600 Problem reported by Patrick Welche.
13602 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
13604 * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
13605 sed substitution command, so that we allow | in program prefixes
13606 and program suffixes. (& is a problem anyway; we're not fixing
13608 * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
13609 configure_input, top_builddir, srcdir, etc.
13610 * lib/autotest/general.m4 (AT_INIT): Likewise, for
13611 PATH_SEPARATOR in AUTOTEST_PATH.
13613 2005-07-02 Alexandre Duret-Lutz <adl@gnu.org>
13615 * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
13616 for loop over config.site files using `set', to allow
13617 directory names containing IFS characters.
13619 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
13621 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
13622 directories with weird names. Apparently some people like living
13623 on the edge. However, improve the test that "pwd" actually does
13624 report a name for the working directory.
13625 * NEWS: Remove the claim that we test for funny chars in dir names.
13627 2005-07-01 Stepan Kasal <kasal@ucw.cz>
13629 * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
13631 * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
13632 * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
13633 Now accept a single tag, not whitespace separated list.
13634 (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
13636 2005-06-30 Stepan Kasal <kasal@ucw.cz>
13638 * doc/autoconf.texi (Configuration Headers): Change the explanation
13639 about #include <config.h>.
13640 (Generic Functions): Mention the Gnulib project.
13641 (Limitations of Usual Tools) <sed>: Another minor rephrasing.
13643 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
13644 document to output the default config_* lists to config.status.
13645 Don't recognize option --file, if the functionality is not there.
13646 Likewise for --header; moreover, recognize --he and --h as shortcuts
13647 for --help in that case.
13649 * lib/autoconf/status.m4: Fix the order of the "sections", so that it
13650 matches the order of execution. No code changed.
13652 2005-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13654 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
13655 single-quoted -cmdline argument in Portland Group compiler.
13656 Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
13658 2005-06-30 Alexandre Duret-Lutz <adl@gnu.org>
13660 * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
13662 2005-06-29 Stepan Kasal <kasal@ucw.cz>
13664 * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
13665 descriptors to child processes; reported by Norman Gray.
13667 2005-06-29 Stepan Kasal <kasal@ucw.cz>
13669 * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
13671 * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
13672 instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
13673 (AC_SUBST): Call it.
13674 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
13675 the directory specific variables; but don't call it for configure_input.
13677 2005-06-28 Derek Price <derek@ximbiot.com>
13679 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
13682 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
13684 * NEWS: Don't worry about spaces in bindir etc. Only srcdir and working
13685 directory have inherent problems with special characters like spaces,
13686 due to limitations in Make syntax. Problem reported by Alexandre
13688 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
13689 Also, fix Tru64 porting problem with shell patterns,
13690 reported by Ralf Wildenhues.
13692 2005-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13694 * doc/autoconf.texi (Subdirectories): Fix markup typos.
13696 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
13698 * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
13700 Fix some more shell quoting problems. Prompted by a bug report
13701 from Justace Clutter.
13702 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
13703 variable into diagnostic. Make the diagnostic an error, not a warning,
13704 because we really don't support spaces and suchlike in dir names.
13705 (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
13706 Don't worry about backslashes in srcdir; it can't happen now.
13707 (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
13708 Simplify ac_optarg handling.
13709 (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
13711 2005-06-22 Stepan Kasal <kasal@ucw.cz>
13713 Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
13714 * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
13715 * tests/atlocal.in: Propagate $EGREP and $SED.
13716 * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
13717 (AT_CONFIG_CMP): Use sed instead of grep plumbing.
13719 * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
13720 that '\|' is not allowed in BREs; recommend using newline separated
13721 list of patterns instead of multiple -e options.
13723 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
13725 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
13727 2005-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13729 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
13731 2005-06-21 Stepan Kasal <kasal@ucw.cz>
13733 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
13734 b, t, r, w commands require single space, while : cannot have any.
13735 (Special Shell Variables): Fix sed code this in the example.
13736 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
13737 * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
13739 * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
13740 expand to the empty list. Don't use two pairs of m4_changequote,
13741 it's not necessary.
13743 2005-06-20 Derek Price <derek@ximbiot.com>
13745 * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
13747 2005-06-17 Paul Eggert <eggert@cs.ucla.edu>
13749 * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
13750 * doc/autoconf.texi:
13751 Don't mention Solaris versions so much, if a
13752 problem is common to all extant versions of Solaris. Say "SunOS
13753 4" instead of "SunOS" for SunOS 4.
13754 (awk): Mention more of the limitations of traditional Awk.
13755 (cat): Don't talk about cat -v.
13757 2005-06-16 Paul Eggert <eggert@cs.ucla.edu>
13759 * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
13760 (AS_VERSION_COMPARE): New macro. The API is taken from CVS,
13761 but the implementation is entirely different and is designed
13762 to be compatible with glibc strverscmp.
13763 * tests/m4sh.at (AS_VERSION_COMPARE): New test.
13765 * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
13766 on Mac OS X 10.4 reported by Peter O'Gorman in:
13767 http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
13768 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
13769 Use shell builtins rather than 'expr', to work around expr bug.
13771 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
13773 * doc/autoconf.texi: "filesystem" -> "file system".
13774 "behaviour" -> "behavior".
13775 Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
13776 * lib/autoconf/general.m4: Omit blank after ":" sed command,
13778 * lib/m4sugar/m4sh.m4: Likewise.
13779 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
13780 with Solaris sed. Fix by Ralf Menzel and Stepan Kasal.
13782 * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
13783 (.x.1): Ignore the time stamp in the .TH line when deciding whether
13784 to update the man page. That way, we don't have to check in new
13785 man pages every month.
13787 * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
13788 quotes and backslashes. Patch from Derek Price.
13790 2005-06-10 Derek Price <derek@ximbiot.com>
13792 * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
13795 2005-06-08 Paul Eggert <eggert@cs.ucla.edu>
13797 * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
13798 -u, since it outputs chatter if the input files are the same.
13799 Problem reported by Ralf Menzel.
13801 2005-06-08 Derek Price <derek@ximbiot.com>
13803 * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
13804 renaming them since they are about to be redefined anyhow.
13806 2005-06-08 Derek Price <derek@ximbiot.com>
13808 * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
13809 redefined M4 macros to this node. Document m4_include & m4_sinclude.
13810 Move m4_undefine to alphabetical order.
13812 2005-06-07 Paul Eggert <eggert@cs.ucla.edu>
13814 * README: Recommend GNU M4 1.4.3 or later.
13815 * doc/autoconf.texi (Introduction): Likewise.
13816 Reword to avoid some formatting glitches.
13817 Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
13818 Clarify explanation of HP compiler bug.
13819 Redo example output tp match current CVS snapshot.
13820 Use @example.org in email addresses when the examples
13821 might get inadvertently cut-and-pasted into user code.
13822 Remove example of autom4te usage that doesn't seem to work now.
13823 Use modern AC_INIT (except when the example is meant to be
13824 shown with Autoconf 2.13).
13825 Update ksh info for Solaris 9 and later.
13827 Modernize description of Automake versions a bit.
13828 Don't claim a future version of Autoconf is near.
13829 * doc/install.texi: Reword to avoid some formatting glitches.
13831 2005-06-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13833 * doc/autoconf.texi: Add [] to examples, so that the manual
13834 follows its own advice about quoting better.
13835 Reword to avoid some formatting glitches.
13836 * doc/installt.exi: Reword to avoid some formatting glitches.
13838 * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
13839 Tru64 ksh pattern matching bug. Reported against Libtool by
13840 Albert Chin <libtool@mlists.thewrittenword.com> and
13841 Nicolas Joly <njoly@pasteur.fr>.
13843 2005-06-06 Stepan Kasal <kasal@ucw.cz>
13845 m4_cdr of one-member list was [[]] (one-member list containing an
13846 empty string) instead of [] (an empty list. Callers were skewed to
13847 match this misbehaviour. As a consequence of this:
13848 - m4_foreach([x], [], [foo]) expanded to `foo', while
13849 - the expansion of m4_foreach([x], [[]], [foo]) was empty.
13850 This bug has been fixed:
13852 * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
13853 expand to an empty string; print error msg if called without
13855 (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
13856 misbehaviour; handle [] and [[]] correctly.
13858 2005-06-06 Stepan Kasal <kasal@ucw.cz>
13860 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
13861 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
13862 scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
13864 2005-06-06 Ralf Menzel <menzel@ls6.cs.uni-dortmund.de> (trivial change)
13866 * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
13867 swallow records with more than 99 fields.
13868 * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
13869 parse the long line.
13871 2005-06-04 Stepan Kasal <kasal@ucw.cz>
13873 * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
13874 swallow literals longer than 399. Reported by Ralf Wildenhues.
13875 * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
13876 to workaround this limitation.
13878 2005-06-03 Steven G. Johnson <stevenj@alum.mit.edu>
13880 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
13881 to gfortran, and make these the first two compiler names
13882 checked (following the general autoconf preference for gcc).
13884 2005-06-03 Stepan Kasal <kasal@ucw.cz>
13886 * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
13887 (DISTCLEANFILES): Remove $(check_SCRIPTS).
13888 (testsuite): Make sure autotest.m4f is up-to-date before using it.
13890 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
13892 * lib/autotest/general.m4 (AT_INIT): Don't create a regular
13893 expression of unbounded size when processing the --list
13894 option. This runs afoul of a limit of 399 bytes per regular
13895 expression on AIX. Problem reported by Ralf Wildenhues.
13897 2005-06-01 Paul Eggert <eggert@cs.ucla.edu>
13899 * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
13900 * doc/autoconf.texi (Particular Headers): Reword example
13901 for multiline stdbool replacement.
13902 (Setting Output Variables): Reword text a bit. Don't
13903 give all the details about |#_!!_#|.
13904 Reword description of line replacement.
13906 2005-05-31 Dan Manthey <dan_manthey@partech.com>
13908 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
13909 now contain newlines, and substituted files must be referenced on
13910 a line alone; the sed scripts to substitute them are now very
13912 (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
13913 commands can be put in a sed script portably.
13914 * doc/autoconf.texi (Setting Output Variables): Document above
13915 changes. (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
13916 use of multiline substitution.
13917 * tests/torture.at: No longer expect substitution of newline to fail.
13919 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
13921 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
13922 From Ralf Menzel (trivial change).
13924 2005-05-25 Paul Eggert <eggert@cs.ucla.edu>
13926 * tests/local.at: Don't attempt to check for negated character
13927 classes in shell scripts. The test was too brittle.
13929 2005-05-25 Stepan Kasal <kasal@ucw.cz>
13931 * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
13932 * doc/autoconf.texi (Limitations of Builtins): Document this
13935 2005-05-24 Stepan Kasal <kasal@ucw.cz>
13937 * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
13938 common code; used in many places in the tree.
13939 (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
13940 (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
13942 * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
13944 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
13945 messages when ac_unique_file is not found.
13946 (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
13947 (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
13948 commands, for consistency with AC_MSG_ERROR and such.
13950 * bin/autoconf.as: Make more use of "shift 2" in option processing.
13952 * bin/Makefile.am: Merge the two rules for creating scripts.
13954 2005-05-23 Stepan Kasal <kasal@ucw.cz>
13956 * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
13957 obsolete; it was never documented.
13958 (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
13960 2005-05-20 Stepan Kasal <kasal@ucw.cz>
13962 * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
13963 * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
13964 (ac_top_builddir): ... this ...
13965 (ac_top_build_prefix): ... to this; the old name is also kept, for
13966 backward compatibility.
13967 (ac_top_builddir_sub): New variable, without the trailing slash,
13969 (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
13970 * doc/autoconf.texi (Configuration Actions): Rename
13971 ac_top_builddir to ac_top_build_prefix.
13972 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
13973 at_top_builddir to at_top_build_prefix.
13974 * lib/autotest/general.m4 (AT_INIT): Likewise.
13976 2005-05-20 Stepan Kasal <kasal@ucw.cz>
13978 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
13981 2005-05-17 Stepan Kasal <kasal@ucw.cz>
13983 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
13984 argument to m4_foreach. I guess it was necessary in the past,
13985 but I think it's a no-op now.
13987 2005-05-17 Stepan Kasal <kasal@ucw.cz>
13989 * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
13990 ``cat <<_ACEOF'' commands to one.
13991 (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
13992 * lib/autoconf/status.m4: On various places, use expr instead of
13994 (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
13995 (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
13996 * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
13998 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
13999 the wrong patterns between ``case'' and ``esac.'' The previous
14000 code had false positives.
14002 2005-05-14 Alexandre Duret-Lutz <adl@gnu.org>
14004 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
14006 * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
14009 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
14011 * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
14012 ChangeLog.2, GNUmakefile, Makefile.am, Makefile.cfg,
14013 Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
14014 bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
14015 bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
14016 bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
14017 config/config.guess, config/config.sub, config/elisp-comp,
14018 config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
14019 doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
14020 lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
14021 lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
14022 lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
14023 lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
14024 lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
14025 lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
14026 lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
14027 lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
14028 lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
14029 lib/autoconf/general.m4, lib/autoconf/headers.m4,
14030 lib/autoconf/lang.m4, lib/autoconf/libs.m4,
14031 lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
14032 lib/autoconf/specific.m4, lib/autoconf/status.m4,
14033 lib/autoconf/types.m4, lib/autoscan/Makefile.am,
14034 lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
14035 lib/autotest/Makefile.am, lib/autotest/autotest.m4,
14036 lib/autotest/general.m4, lib/emacs/Makefile.am,
14037 lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
14038 lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
14039 lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
14040 tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
14041 tests/compile.at, tests/foreign.at, tests/fortran.at,
14042 tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
14043 tests/semantics.at, tests/suite.at, tests/tools.at,
14044 tests/torture.at, tests/wrapper.as:
14045 Update FSF postal mail address.
14047 2005-05-13 Stepan Kasal <kasal@ucw.cz>
14049 * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
14051 * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
14052 enough arguments, similarly as in m4_bpatsubsts.
14054 2005-05-12 Stepan Kasal <kasal@ucw.cz>
14056 * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
14059 2005-05-11 Stepan Kasal <kasal@ucw.cz>
14061 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
14062 for absolute directory names in one loop.
14063 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
14064 abbreviations of --version and --debug.
14066 2005-05-10 Paul Eggert <eggert@cs.ucla.edu>
14068 * doc/autoconf.texi (Autoconf Language): Be more precise about
14069 quoting rules. Problems noted by Stepan Kasal.
14070 Also, throughout this document, be more careful about white space.
14071 "blank", "white space", and "space" all have different meanings
14072 and we should be careful to say what we mean.
14074 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
14076 Fix C++ related problems reported by Werner Lemberg.
14077 * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
14078 * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
14079 * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
14080 avoid problems with C++ and throw.
14081 * tests/compile.at: .cpp, not .cc.
14083 * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
14085 2005-05-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14087 * doc/autoconf.texi (Generic Functions): Typos.
14089 2005-05-02 Gary V. Vaughan <gary@gnu.org>
14091 * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
14092 object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
14093 set by latest automake.
14095 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
14097 * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
14098 outputs 0 on GNU/Linux these days.
14100 2005-04-29 Paul Eggert <eggert@cs.ucla.edu>
14102 * doc/autoconf.texi (Autoconf Language): Add more description
14103 about quoting heuristics.
14104 (Limitations of Builtins): Describe "set -" problems.
14106 2005-04-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14108 * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
14111 * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
14112 by AC_DEFINE; it was a mistake.
14113 From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
14115 2005-04-25 Stepan Kasal <kasal@ucw.cz>
14117 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
14119 2005-04-22 Stepan Kasal <kasal@ucw.cz>
14121 * doc/autoconf.texi (External Software): Quadrigraphs are not
14122 processed correctly in AS_HELP_STRING; avoid this in the examples.
14123 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
14124 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
14125 comment and reduce m4_default([foo], []) to [foo].
14126 (m4_strip): Update the explanation.
14128 2005-04-19 Paul Eggert <eggert@cs.ucla.edu>
14130 * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
14131 Remove core.conftest.* too; it's generated by Tru64 5.1.
14132 Problem reported by Jennis Pruett.
14133 * lib/autoconf/functions.m4
14134 (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
14135 Don't bother to remove core files; AC_RUN_IFELSE should do that
14138 2005-04-19 Stepan Kasal <kasal@ucw.cz>
14140 * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
14142 2005-04-19 Alexandre Duret-Lutz <adl@gnu.org>
14144 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
14145 Report from Horst Wente.
14147 2005-04-15 Stepan Kasal <kasal@ucw.cz>
14149 * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
14152 2005-04-14 Gregorio Guidi <greg_g@gentoo.org>
14154 * doc/autoconf.texi (External Software, Package Options): Add
14155 examples showing how to implement --with-* and --enable-* options.
14157 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
14159 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
14160 as well as configure.in. Problem reported by Gregorio Guidi.
14162 2005-04-10 Paul Eggert <eggert@cs.ucla.edu>
14164 * doc/autoconf.texi (Particular Functions): Use gnulib's current
14165 pattern for alloca snippet.
14167 2005-04-04 Stepan Kasal <kasal@ucw.cz>
14169 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
14171 2005-04-01 Stepan Kasal <kasal@ucw.cz>
14173 * doc/autoconf.texi (Generic Programs): Fix a typo.
14175 2005-04-01 Paul Eggert <eggert@cs.ucla.edu>
14177 * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
14178 fails if %s isn't supported. Problem reported by Ralf Wildenhues.
14180 2005-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14182 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
14183 Merge `-z option' as well for the benefit of Solaris link flags. Pass
14184 whole-archive (-zallextract, -zdefaultextract) options in the hope of
14185 unique libraries, for the Sun Fortran 95 8.0 compiler. Bug reported
14186 against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
14188 2005-03-22 Paul Eggert <eggert@cs.ucla.edu>
14190 * NEWS: The configure command now warns you if you attempt to use
14191 a directory whose name contains a special character like space,
14193 * doc/autoconf.texi (Installation Directory Variables): Allow
14194 "," in file names. Do not use \@; it's not a portable regexp.
14195 * bin/Makefile.am (edit): Likewise.
14196 * lib/Makefile.am (edit): Likewise.
14197 * tests/Makefile.am (edit): Likewise.
14198 * tests/semantics.at: Likewise.
14199 * tests/torture.at: Likewise.
14200 * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
14201 * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
14202 * doc/autoconf.texi (File System Conventions): Warn about
14203 unportable file names.
14204 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
14206 (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
14207 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
14208 ac_pwd, and quote srcdir.
14209 * lib/autotest/general.m4 (AT_INIT): Quote file name args.
14211 * doc/autoconf.texi: Fix some systematic formatting problems.
14212 ".)" needs a following @: if not at the end of a sentence, and
14213 similarly for "!)". "etc." should be preceded by a comma.
14214 "n-th" -> "@var{n}th". pdksh is still buggy, so update its date.
14216 2005-03-22 Bruno Haible <bruno@clisp.org>
14218 * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
14219 argument is often called 'build-aux'.
14221 2005-03-07 Stepan Kasal <kasal@ucw.cz>
14223 * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
14224 macro AC_TRY_LINK is obsolete.
14225 (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
14228 2005-02-24 Stepan Kasal <kasal@ucw.cz>
14230 * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
14231 `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
14232 from a Common Lisp's `cl'.
14233 (AC_PROG_CXX): Behave according to the documentation: don't
14234 search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
14235 make the variable CCC precious; use `cl.exe', not `cl'.
14237 2005-02-23 Paul Eggert <eggert@cs.ucla.edu>
14238 Alexandre Duret-Lutz <adl@gnu.org>
14240 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
14241 /dev/null, as "configure" shouldn't read stdin, and this insulates
14242 us from problems (e.g., when testing for "cl"). Also, do this
14243 redirection before invoking "hostname" or "uname", and keep the
14244 original input stream available via...
14245 (AS_ORIGINAL_STDIN_FD): ... this new macro.
14246 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
14247 bother with "</dev/null" since it's now done at the top of
14249 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
14250 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
14251 * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
14252 * doc/autoconf.texi (File Descriptor Macros): New section.
14253 (Printing Messages): Mention it.
14254 * tests/base.at (Input/Output): New test.
14256 2005-02-23 Paul Eggert <eggert@cs.ucla.edu>
14258 * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
14259 newline if neither \c nor -n work, as that would output two
14260 newlines. Prefer -n to \c. Reported by Stepan Kasal.
14262 2005-02-12 Stepan Kasal <kasal@ucw.cz>
14264 * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
14265 This causes that any required macros inside will get before the if.
14266 * doc/autoconf.texi (autom4te.cache): A typo.
14268 2005-02-12 Paul Eggert <eggert@cs.ucla.edu>
14270 Undo previous change, except keep the change to
14271 lib/autoconf/programs.m4 that replaced grep with shell
14272 pattern-matching. This is because net-snmp configure reads stdin.
14273 Reported by Noah Misch.
14275 2005-02-11 Paul Eggert <eggert@cs.ucla.edu>
14277 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
14278 from /dev/null, as "configure" shouldn't read stdin, and this
14279 insulates us from problems (e.g., when testing for "cl").
14280 Suggested by Alexandre Duret-Lutz. Also, do this redirection
14281 before invoking "hostname" or "uname".
14282 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
14283 _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
14284 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
14285 "</dev/null" since it's now done at the top of 'configure'.
14286 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
14287 * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
14288 Also, replace grep with shell pattern-matching, to save a process.
14290 2005-02-10 Paul Eggert <eggert@cs.ucla.edu>
14292 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
14293 _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
14294 avoid thinking that Allegro Common Lisp's "cl" command is a C++
14297 2005-02-09 Paul Eggert <eggert@cs.ucla.edu>
14299 * doc/autoconf.texi (Limitations of Usual Tools): Document that
14300 grep -q isn't portable. Improve grep -s explanation.
14301 Problem reported by Dan Manthey.
14303 2005-02-08 Paul Eggert <eggert@cs.ucla.edu>
14305 * doc/autoconf.texi (Special Shell Variables): Clarify
14306 PATH_SEPARATOR wording; fix typo in IFS. Reported by Gary V. Vaughan.
14308 2005-02-07 Paul Eggert <eggert@cs.ucla.edu>
14310 * doc/autoconf.texi: Use @acronym for DJGPP.
14311 Fix some @code's that should have been @env's, and vice versa.
14312 Sort environment variable names.
14313 Mention that shells no longer inherit IFS.
14314 Don't recommend PATH_SEPARATOR=';' so strongly.
14315 Mention that $RANDOM might expand to the empty string.
14316 "symlink" and "soft link" -> "symbolic link".
14317 Improve mktemp description (reported by Bruno Haible).
14319 2005-02-05 Paul Eggert <eggert@cs.ucla.edu>
14321 * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
14322 * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
14324 * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
14327 2005-02-04 Paul Eggert <eggert@cs.ucla.edu>
14329 * NEWS: Mention AT_COPYRIGHT.
14331 * tests/local.at (AT_CMP): Use diff directly on input files rather
14334 * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
14335 /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
14337 2005-02-04 Noah Misch <noah@cs.caltech.edu>
14338 and Paul Eggert <eggert@cs.ucla.edu>
14340 * tests/autotest.at (Empty test suite): New test.
14341 * tests/torture.at (Substitute and define special characters)
14342 (Substitute a 2000-byte string, Define to a 2000-byte string)
14343 (Substitute a newline, Define a newline): New tests.
14345 2005-02-04 Noah Misch <noah@cs.caltech.edu>
14347 * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
14348 * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
14349 (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
14350 * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
14351 (Standard regular expressions): New test.
14352 (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
14353 excess test name quoting.
14354 * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
14355 CPPFLAGS to `configure' instead of setting it in `configure'.
14357 * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
14358 any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
14361 * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
14362 s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
14364 * tests/local.at (AT_CMP): New macro.
14365 (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
14366 (AC_SAVE_STATE): Move environment grep...
14367 (AT_CHECK_ENV): to here. Filter out `'$''. Use AT_CMP.
14368 (AT_CONFIG_CMP): New macro.
14369 (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
14370 * tests/c.at (Extensions): Do not exit early.
14371 * tests/atlocal.in: Inherit $GREP.
14373 * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
14374 (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
14376 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
14377 (AC_COPYRIGHT): Factor header comment portion out and move into...
14378 * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
14379 * lib/autotest/general.at (AT_COPYRIGHT): New macro.
14380 (AT_INIT): Add Autotest copyright notice. Display copyright notices in
14382 * tests/local.at: Add Autoconf test suite copyright notice.
14383 * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
14385 2005-02-04 Bruno Haible <bruno@clisp.org>
14386 and Paul Eggert <eggert@cs.ucla.edu>
14388 * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
14390 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
14392 * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
14393 this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
14395 Try not to generated lines of unlimited length, as POSIX places a
14396 2047-byte limit on line length of portable text files.
14397 * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
14398 Use newline as a separator, not space.
14399 * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
14400 (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
14403 2005-02-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14405 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
14406 as_func_*. Add test to check whether positional parameters
14407 are restored after function return.
14409 2005-02-02 Paul Eggert <eggert@cs.ucla.edu>
14411 * doc/autoconf.texi (Special Shell Variables): Mention _,
14412 BIN_SH, DUALCASE. Say that variables other than "status" are safe
14413 if they contain a lower-case letter. The DUALCASE problem was
14414 reported by Ralf Wildenhues.
14416 * bin/autoconf.as: Don't exit with status 0 after write failure
14417 with --help or --version.
14418 * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
14419 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
14421 2005-02-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14423 * doc/autoconf.texi (Limitations of Usual Tools):
14424 Unicos 9 sed limitations.
14425 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
14426 to get the option-enhanced interface on older Crays. Try ftn for
14427 Fortran 95 (newer Crays).
14429 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
14431 * man/Makefile.am (.x.1): Go back to the simple solution, but take
14432 care to echo the commands, so the user knows what's going on.
14433 Modified from a suggestion by Stepan Kasal.
14435 * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
14436 with a cross reference. Derived from a suggestion by Bruce Korb.
14438 2005-01-31 Paul Eggert <eggert@cs.ucla.edu>
14440 * doc/autoconf.texi (config.status Invocation): Warn about
14441 discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
14442 * doc/install.texi (Defining Variables): Likewise.
14443 Based on a proposed patch by Ralf Wildenhues.
14445 * man/Makefile.am (.x.1): Make sure the required generated files
14446 are up to date. Problem and original solution proposed by Stepan Kasal.
14447 $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
14448 implicit-man-prerequisites): New rules, used by the above.
14450 * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
14451 * config/config.guess, config/config.sub, config/install-sh: Likewise.
14452 * config/missing, config/texinfo.tex: Likewise.
14454 2005-01-29 Stepan Kasal <kasal@ucw.cz>
14456 Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
14457 Update the long comment explaining it.
14459 m4_require no longer writes an ``is required by'' line to the
14460 execution stack. It contains only one bit of non-redundant
14461 information: that the macro was required, not called. And even
14462 this bit is useless in most situations: have you ever met a macro
14463 which both calls and requires the same macro?
14465 * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
14466 (_m4_defun_pro_outer): ... only via this macro, for the outermost
14468 (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
14469 (m4_expansion_stack_pop): Remove the misplaced comment.
14470 (m4_require): Don't put the ``is required by'' line to the
14471 execution stack; slightly improve the out-of-a-defun error message.
14472 (_m4_divert_grow): New macro, counter for the temporary diversions.
14473 (_m4_require_call): Use it.
14474 * tests/m4sugar.at (m4_require): Expect output without the
14475 ``is required by'' messages.
14477 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
14479 * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
14480 rather than x for expr.
14482 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
14484 * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
14485 * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
14486 * lib/autotest/general.m4 (AT_INIT): Likewise.
14487 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
14488 * tests/mktests.sh: Likewise.
14490 2005-01-27 Akim Demaille <akim@epita.fr>
14492 Have autoheader honor --force.
14494 * doc/make-stds.texi, doc/standards.texi: Update from masters.
14495 * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
14496 * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
14497 from masters, so that FileUtils.pm's update_file provide --force
14499 * bin/autoheader.in: Pass $force to update_file so that
14500 config.h.in is always recreated when --force.
14502 2005-01-24 Stepan Kasal <kasal@ucw.cz>
14504 * doc/autoconf.texi (Introduction): Update Peter Simons' address.
14506 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
14508 * doc/autoconf.texi (Limitations of Builtins): Clarify that
14509 "if test ! -d foo; ..." is portable. Suggested by Stepan Kasal.
14511 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
14513 * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
14514 Warn about newline stripping in `` and $(). Update Solaris
14516 (Limitations of Builtins): Use expr "X...", not expr "x...", as
14517 X insulates us from future changes to Posix.
14518 (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
14521 2005-01-19 Stepan Kasal <kasal@ucw.cz>
14523 * doc/autoconf.texi (Defining Symbols): Delete the false comment that
14524 you cannot use AC_DEFINE to define macros containing `[' or `]'.
14526 2005-01-13 Paul Eggert <eggert@cs.ucla.edu>
14528 * doc/autoconf.texi (Limitations of Usual Tools): Document bug
14529 in Solaris 8 join. Problem reported by Tomohiro Suzuki on
14530 bug-tar mailing list.
14532 2005-01-05 Stepan Kasal <kasal@ucw.cz>
14534 * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
14536 2005-01-05 Paul Eggert <eggert@cs.ucla.edu>
14538 * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
14539 ulongval to be static, to avoid unwanted GCC warning. Problem
14540 reported by Michael Jennings via Daniel Reed; see
14541 <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
14543 2005-01-05 Alexandre Duret-Lutz <adl@gnu.org>
14545 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
14546 docdir, htmldir, dvidir, pdfdir, psdir, and localdir. Update
14547 datadir, infodir, and mandir. Adjust argument parsing code.
14548 (_AC_INIT_HELP): Update help text.
14549 * doc/autoconf.texi (Installation Directory Variables): Document
14552 2005-01-04 Noah Misch <noah@cs.caltech.edu>
14554 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
14555 not seem to work, assume it does set $(MAKE).
14556 * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
14558 2005-01-03 Stepan Kasal <kasal@ucw.cz>
14560 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
14562 2005-01-03 Stepan Kasal <kasal@ucw.cz>
14564 A cleanup of the diversion support in m4sugar.
14566 * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
14567 (_m4_divert_n_stack): New macro; the expansion is
14568 <newline>m4_divert_stack, if m4_divert_stack is defined, and void
14570 (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
14571 (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
14572 stored in _m4_divert_diversion or _m4_divert_dump.
14573 (m4_divert_pop): When the parameter is given, compare the symbolic
14574 name with the last diversion pushed on the stack. Previously, the
14575 current diversion was compared with the numeric value of the
14576 diversion given as the parameter.
14577 (m4_require): If the macro hasn't been expanded yet, call ...
14578 (_m4_require_call): this new macro.
14580 2005-01-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14582 * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
14583 Workarounds for documented `case' limitations.
14585 2005-01-03 Paul Eggert <eggert@cs.ucla.edu>
14587 * doc/autoconf.texi (Limitations of Usual Tools): Warn about
14588 sed 'command1;command2'. Problem reported by Ralf Wildenhues.
14590 2005-01-02 Paul Eggert <eggert@cs.ucla.edu>
14592 * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
14593 bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
14594 bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
14596 Patch from Roger Leigh (with some minor changes) as follows:
14597 * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
14598 Resurrect AC_PROG_CC_STDC.
14599 * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
14600 AC_PROG_CC_C89, AC_PROG_CC_C99.
14601 (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
14602 * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
14603 AC_PROG_CC_C99): New macros.
14604 (AC_PROG_CC_STDC): Use them.
14605 (_AC_PROG_CC_STDC): Remove.
14606 (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
14607 * THANKS: Add Roger Leigh.
14609 2004-12-30 Noah Misch <noah@cs.caltech.edu>
14611 * bin/autoreconf.in (autoreconf_current_directory): AM_INIT_AUTOMAKE
14612 signals that the package uses Automake; a `Makefile.am' is typical but
14613 not essential. Reported by Magnus Therning.
14614 * tests/torture.at (autoreconf.): New banner.
14615 (autoreconf and non-AC configure): Rename to `Non-Autoconf
14616 AC_CONFIG_SUBDIRS'.
14617 (autoreconf an empty directory): Rename to `Empty directory'.
14618 (Unusual Automake input files): New test.
14620 2004-12-30 Noah Misch <noah@cs.caltech.edu>
14622 * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
14623 (AT_SETUP): Clear AT_capture_files.
14624 (_AT_CHECK): On failure, log each of AT_capture_files. Fix comment.
14625 (AT_KEYWORDS): Fix comment typo.
14626 * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
14627 * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
14628 * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
14630 2004-12-29 Albert Chin-A-Young <china@thewrittenword.com>
14632 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
14633 If the variable to set is already set, set ac_cv_path_$1
14634 to the preset value so caller can assume ac_cv_path_$1
14635 is available. (trivial change)
14637 2004-12-27 Noah Misch <noah@cs.caltech.edu>
14639 * BUGS (Minor Problems): Warn about makefile limitations.
14640 * Makefile.am: Find and update `INSTALL' in $(srcdir).
14641 * man/Makefile.am: Find and update manual pages in $(srcdir).
14643 2004-12-24 Eric Blake <ebb9@byu.net>
14645 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
14646 shells in subshell, to avoid noise from ash. (trivial change)
14648 2004-12-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14650 * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
14651 problems with SunOS ksh and backslash escaping, Bourne shells and
14652 closing brackets (both within character classes). Bug reported
14653 against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
14654 <read>: New entry. Mention non-availability of -r.
14656 2004-12-21 Akim Demaille <akim@epita.fr>
14658 * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
14659 avoid cluttering displayed messages. Rather, prepend srcdir where
14660 AT_LINE is used for log files.
14662 2004-12-21 Stepan Kasal <kasal@ucw.cz>
14664 * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
14665 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
14666 no longer part of the macro, quote the occurrence of ``$tmp''.
14667 * doc/autoconf.texi (Forbidden Patterns): Typo.
14669 2004-12-21 Akim Demaille <akim@epita.fr>
14671 * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
14672 separated from the test title by forcing a white space.
14674 2004-12-21 Akim Demaille <akim@epita.fr>
14676 Enable Emacs navigation within testsuite.log files.
14678 * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
14679 use the compilation mode.
14680 (AT_LINE): Point to the srcdir.
14682 2004-12-19 Noah Misch <noah@cs.caltech.edu>
14684 * tests/Makefile.am (installcheck-local): Use $(bindir).
14685 (check-local, installcheck-local): Pass TESTSUITEFLAGS.
14686 * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
14687 Makefile.am scheme Autoconf now uses.
14689 2004-12-18 Noah Misch <noah@cs.caltech.edu>
14691 * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
14692 * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
14694 2004-12-18 Noah Misch <noah@cs.caltech.edu>
14696 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
14697 (_AT_CHECK): Use it.
14698 * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
14699 (AS_ESCAPE): Fix comment.
14700 * tests/autotest.at: Adjust section banner comments.
14701 (AT_CHECK_AT): Accept STATUS and STDERR.
14702 (AT_CHECK_AT_TEST): Likewise.
14703 (Invalid brace-enclosed parameter expansion)
14704 (Multiline command from M4 expansion)
14705 (Double-M4-quoted command): New tests.
14707 2004-12-17 Paul Eggert <eggert@cs.ucla.edu>
14709 * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
14711 2004-12-17 Akim Demaille <akim@epita.fr>
14713 * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
14715 Suggested by Alexandre Duret-Lutz.
14716 * doc/autoconf.texi (Setting Output Variables): Catch up.
14718 2004-12-17 Stepan Kasal <kasal@ucw.cz>
14720 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
14722 2004-12-17 Stepan Kasal <kasal@ucw.cz>
14724 * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
14725 remove the comment which said we cannot.
14727 2004-12-17 Stepan Kasal <kasal@ucw.cz>
14729 Add a specialized check for resolv.h. Thanks to Gerrit P. Haase,
14730 Reini Urban and Paul Eggert for reporting the dependencies.
14732 * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
14733 * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
14734 (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
14736 2004-12-17 Stepan Kasal <kasal@ucw.cz>
14738 * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
14739 so that eg. ``autoscan --help'' doesn't truncate it.
14741 2004-12-15 Nicolas Joly <njoly@pasteur.fr>
14743 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
14744 generated conftest files.
14746 2004-12-13 Noah Misch <noah@cs.caltech.edu>
14748 * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
14749 tracing on commands with possibly-escaped newlines.
14750 * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
14751 discontinued behavior and its implications.
14752 * tests/autotest.at (BS-newline in command, ^BS-newline in command)
14753 (BSx641-newline in command, BS-BS-newline in command)
14754 (BSx640-newline in command, Newline-CODE-BS-newline in command)
14755 (Single-quote-BS-newline in command)
14756 (Single-quote-newline-BS-newline in command): New tests.
14758 2004-12-13 Stepan Kasal <kasal@ucw.cz>
14760 * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
14761 on platforms where it works.
14762 (_AS_TEST_PREPARE): Test for ``test -x''.
14763 (_AS_BROKEN_TEST_PREPARE): Nuke.
14765 2004-12-13 Stepan Kasal <kasal@ucw.cz>
14767 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
14768 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
14769 give only 4-letter prefix to AS_TMPDIR, comment fixed.
14770 * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
14771 create the temporary directory.
14772 (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
14774 2004-12-12 Kelley Cook <kcook@gcc.gnu.org>
14776 * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
14779 2004-12-12 Alexandre Duret-Lutz <adl@gnu.org>
14781 * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
14783 2004-12-11 Noah Misch <noah@cs.caltech.edu>
14785 * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
14786 to avoid using a negated character class. Reported by Nicolas Joly.
14787 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
14789 2004-12-10 Paul Eggert <eggert@cs.ucla.edu>
14791 * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
14792 autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
14793 Don't depend on .x file explicitly, since "make" does that for us.
14794 Suggested by Stepan Kasal.
14796 * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
14798 (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
14799 ifnames): Factor common code. And they said it couldn't be done!
14801 2004-12-09 Paul Eggert <eggert@cs.ucla.edu>
14803 * bin/.cvsignore: Add autoconf.in.
14804 * tests/.cvsignore: Add wrapper.in.
14805 * lib/autotest/general.m4: Escape '$' in case pattern.
14807 2004-12-09 Noah Misch <noah@cs.caltech.edu>
14809 * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
14811 * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
14813 * tests/autotest.at: New file.
14814 * tests/suite.at: Include it.
14815 * tests/Makefile.am: Distribute it.
14817 * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
14818 shell tracing on a command that could contain multiple lines.
14819 * doc/autoconf.text: Document that fact and its implications.
14820 * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
14821 * tests/autotest.at (Multiline backquote command substitution,
14822 Multiline parameter expansion, Literal multiline command,
14823 Multiline parenthetical command substitution): Remove XFAIL.
14825 2004-12-09 Paul Eggert <eggert@cs.ucla.edu>
14827 * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
14828 and suggest AC_SEARCH_LIBS. Suggested by Noah Misch and Stepan Kasal.
14830 2004-12-08 Noah Misch <noah@cs.caltech.edu>
14832 * configure.ac (test suite): Cease to generate wrapper scripts.
14833 * configure: Regenerate.
14834 * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
14835 (m4f_dependencies): Adjust accordingly.
14836 * tests/Makefile.am (Wrappers): Generate wrapper scripts.
14837 (wrapper.in): Generate it in the build directory.
14838 (MAINTAINERCLEANFILES): Delete wrapper.in.
14839 (CLEANFILES): Add wrapper.in.
14840 * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
14841 the output. Replace each $as_me with a @wrap_program@.
14842 * tests/wrapper.in: Delete it; we always build it.
14844 * bin/Makefile.am (autoconf.in): Generate it in the build directory.
14845 (EXTRA_DIST): Remove autoconf.in.
14846 (CLEANFILES): Add autoconf.in.
14847 (autoconf): Find autoconf.in in the build directory.
14848 * bin/autoconf.in: Delete it; we always build it.
14850 2004-12-08 Noah Misch <noah@cs.caltech.edu>
14852 * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'. Join
14853 PATH members so as to not prepend an empty element. Move a comment.
14854 * Makefile.am (SUBDIRS): Build in `tests' last.
14855 * tests/Makefile.am (installcheck-local): Add check-local dependencies.
14857 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
14859 * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
14860 the spaces inside $ls_command. Problem reported by Loulou Pouchet in
14861 <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
14862 Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
14864 2004-12-07 Stepan Kasal <kasal@ucw.cz>
14866 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
14867 patch: extra "-l"s.
14869 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
14871 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
14872 looking elsewhere for getmntent. Problem reported by Mark D. Baushke.
14873 * doc/autoconf.texi (Particular Functions): Mention new behavior.
14875 2004-12-03 Stepan Kasal <kasal@ucw.cz>
14877 * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
14878 out the common code to ...
14879 (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
14880 value of the #define--default to 1, iff the macro was called
14881 with exactly one parameter.
14883 2004-12-02 Paul Eggert <eggert@cs.ucla.edu>
14885 * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
14886 "char c = '\200';" rather than "char c = 0x80;" as the
14887 latter doesn't conform to the strict C standard due to
14888 overflow on signed char hosts.
14890 * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
14891 to -qlanglvl=ansi. We don't want to disable extensions.
14893 2004-11-29 Paul Eggert <eggert@cs.ucla.edu>
14895 * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
14896 (Using Autotest, testsuite Scripts, Writing testsuite.at):
14897 Reword slightly to avoid some English-language problems noted
14898 by Ralf Wildenhues in:
14899 http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
14901 2004-11-29 Stepan Kasal <kasal@ucw.cz>
14903 * NEWS: Add ^L above each release.
14905 2004-11-28 Paul Eggert <eggert@cs.ucla.edu>
14907 Fix documentation problems reported by Russ Boylan in
14908 <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
14909 along with some nearby cruft.
14910 * doc/autoconf.texi (Libtool): Libtool can be used without
14911 Automake (not without Autoconf).
14912 (Introduction): Mention lists.gnu.org.
14913 * BUGS: Don't mention bugs.gnu.org.
14914 Remove mention of ancient libtool compatibility problem.
14915 * NEWS: Mention that bugs.gnu.org is kaput.
14916 * README: Likewise. Mention where mailing list archives can be found.
14918 2004-11-28 Stepan Kasal <kasal@ucw.cz>
14920 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
14922 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
14924 * doc/autoconf.texi (Pretty Help Strings): Go back to
14925 single-quoting assignments to cache variables.
14927 2004-11-23 Stepan Kasal <kasal@ucw.cz>
14929 * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
14930 with the examples; fix the bug in MY_ARG_WITH example reported
14931 by Alexandre Duret-Lutz.
14932 * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
14933 expansion of $1 in the comment emitted to configure.
14935 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
14937 * doc/autoconf.texi (Pretty Help Strings): Fix typo
14938 in my editing of the previous patch. Problem reported
14939 by Alexandre Duret-Lutz.
14941 2004-11-22 Stepan Kasal <kasal@ucw.cz>
14943 * doc/autoconf.texi (Autoconf Language): Explain that
14944 ``descriptions'' may not be double quotes.
14945 (Quotation Rule Of Thumb): Likewise.
14946 (Pretty Help Strings): Likewise; remove the wrong comment;
14947 simplify the examples and improve their quoting.
14949 2004-11-13 Stepan Kasal <kasal@ucw.cz>
14951 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
14952 the $1_found variable, don't test whether the file is executable;
14953 Both things are checked ...
14954 (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
14955 the former ``test -f''.
14956 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
14958 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
14960 * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
14963 2004-11-10 Derek R. Price <derek@ximbiot.com>
14965 * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
14966 limitations. Reorder paragraphs for clarity.
14968 2004-10-11 Paul Eggert <eggert@cs.ucla.edu>
14970 * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
14971 to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
14972 variants", "Unix", and some related minor wording fixups.
14974 (Shellology, Special Shell Variables): Document that the Zsh
14975 problem with NULLCMD was fixed in zsh 3.1.6-dev-18. Thanks
14976 to Alexandre Duret-Lutz for this info.
14978 2004-10-10 Alexandre Duret-Lutz <adl@gnu.org>
14980 * doc/autoconf.texi (One-Shot Macros): New node.
14982 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
14984 * doc/autoconf.texi (Function Portability): Fix misdescription
14985 of putenv. Problem reported by Michael Wardle.
14987 2004-09-22 Paul Eggert <eggert@cs.ucla.edu>
14989 * doc/autoconf.texi (auindex): New macro.
14990 (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
14991 Problem reported by Stepan Kasal.
14993 2004-09-05 Paul Eggert <eggert@cs.ucla.edu>
14995 Fix problems reported by Andreas Buening in:
14996 http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
14997 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
14999 * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
15000 readable; it's not true in OS/2-emx.
15002 2004-09-04 Paul Eggert <eggert@cs.ucla.edu>
15004 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
15005 "/usr/include", clear ac_x_includes instead of leaving it as "no"
15006 (trivial change). Problem and patch reported by Andrew Church in:
15007 http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
15009 2004-09-03 Paul Eggert <eggert@cs.ucla.edu>
15011 * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
15012 three args in examples. Problem reported by Frederik Fouvry in:
15013 http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
15014 Also, fix some minor spacing and punctuation bugs.
15016 2004-09-02 Akim Demaille <akim@epita.fr>
15018 * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
15019 "case" to restore ordering.
15020 Reported by Stepan Kasal.
15022 2004-08-26 Akim Demaille <akim@epita.fr>
15024 * doc/autoconf.texi: Minor typos and stylos.
15026 2004-08-20 Paul Eggert <eggert@cs.ucla.edu>
15028 * configure.ac (AC_INIT): Bump to 2.59c.
15030 2004-08-20 Paul Eggert <eggert@cs.ucla.edu>
15034 * README: Add advice about m4 1.4.2.
15036 * Makefile.cfg (wget_files): Remove config.guess, config.sub,
15037 texinfo.tex for now (done by hand now).
15038 * Makefile.maint (wget_files, cvs_files):
15039 Remove ansi2knr.c; nobody uses it.
15040 (ansi2knr.c-url_prefix): Remove.
15041 (cvs-update): Fix test for failure. I don't know why it ever
15044 * doc/autoconf.texi: Update URLs, some of which went stale.
15045 Use @uref rather than @href.
15047 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
15048 handle "--" as per POSIX. Suggested by Paul Pogonyshev.
15050 * config/config.guess, config/config.sub, config/elisp-comp,
15051 config/install-sh, config/mkinstalldirs, config/texinfo.tex,
15052 doc/fdl.texi, doc/standards.texi: Sync with master copy.
15054 * NEWS, TODO, configure.ac, bin/autoscan.in,
15055 bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
15056 doc/install.texi, lib/Autom4te/Configure_ac.pm,
15057 lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
15058 lib/autoconf/programs.m4, lib/autoconf/status.m4,
15059 lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
15060 lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
15061 tests/tools.at, tests/torture.at:
15062 Use "file name" rather than "filename" or "path",
15063 to be consistent with the terminology of the GNU coding standards.
15065 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
15067 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
15068 AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
15069 HP-UX 11.23 cc/aCC or Tru64 4.0 cc. Problem reported by Noah Misch in
15070 <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
15072 More fixes to support spaces in the name of the build directory.
15073 This isn't a complete fix but it's an improvement.
15075 * bin/autoconf.as (autom4te_options): New var.
15076 Use it instead of appending to AUTOM4TE, so that we can allow
15077 spaces in the build directory's absolute name.
15078 * bin/autoheader.in ($autoconf): Allow spaces in file names.
15079 * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
15080 AT_CHECK_NOESCAPE): Likewise.
15081 * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
15082 main program): Likewise.
15084 2004-08-18 Paul Eggert <eggert@cs.ucla.edu>
15086 * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
15087 From Ralf Corsepius in:
15088 http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
15090 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
15092 * doc/autoconf.texi (Function Portability): Document isinf and
15093 and isnan. From a suggestion by Kevin Ryde.
15095 * lib/Autom4te/General.pm (END): Return correct exit status even
15096 if unlink succeeds and sets $?. Needed with Solaris 8's perl 5.00503.
15098 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
15100 * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
15101 for compatibility with Automake 1.4. Reported by J C Fitzgerald in
15102 <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
15104 2004-08-04 Alexandre Duret-Lutz <adl@gnu.org>
15106 * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
15107 (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
15108 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
15109 * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
15110 * lib/autom4te.in (Automake-preselections): Preselect
15111 AC_REQUIRE_AUX_FILE. Automake 1.10 will trace it.
15113 2004-08-02 Alexandre Duret-Lutz <adl@gnu.org>
15115 * lib/autom4te.in (Automake-preselections): Preselect
15116 AC_CANONICAL_BUILD and AC_CANONICAL_TARGET. Automake 1.9.1 will
15119 2004-07-29 Paul Eggert <eggert@cs.ucla.edu>
15121 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
15123 * doc/autoconf.texi (Shellology): Mention BIN_SH.
15124 Document problem with "`""`" in pdksh POSIX mode.
15126 2004-07-27 Paul Eggert <eggert@cs.ucla.edu>
15128 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
15129 with pdksh, too. Problem reported by Patrick Welche via
15131 * doc/autoconf.texi (Shellology): Note that set -o posix is
15132 useful for pkdsh, too.
15134 2004-06-24 Paul Eggert <eggert@cs.ucla.edu>
15136 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
15137 _AS_UNSET_PREPARE, so that we can use $as_unset directly.
15138 Don't fail if ENV or BASH_ENV is readonly.
15139 (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
15140 etc. are read only. Problem reported by Ludovic Courtes.
15142 2004-06-23 Noah Misch <noah@cs.caltech.edu>
15144 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
15145 zsh, disable GLOB_SUBST to avoid backslash handling problems.
15148 2004-06-04 Paul Eggert <eggert@cs.ucla.edu>
15150 * doc/autoconf.texi (File System Conventions): Warn about
15151 names like "aux". Problem reported by Eric Blake.
15153 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
15154 by zero instead of array size, so that we can use any arithmetic
15155 constant expression (instead of requiring an integer constant
15156 expression). This allows us to test expressions like DBL_MAX <
15157 LDBL_MAX, which didn't conform to the C standard using the old
15159 (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
15160 now that we can do floating-point tests at compile time.
15162 2004-06-02 Paul Eggert <eggert@cs.ucla.edu>
15164 * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
15165 and LDBL_EPSILON, as the resulting expression isn't an
15166 integer constant expression and violates the C standard.
15167 Problem reported by Nelson H. F. Beebe. Also, check
15168 for "L" suffix, and check that long double doesn't have
15169 worse range or precision than double, that mixed-mode
15170 arithmetic doesn't generate a diagnostic, that double
15171 constants fit in long double.
15173 2004-06-03 Kevin Ryde <user42@zip.com.au>
15175 * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
15176 malloc(0) and realloc(NULL,size).
15178 * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
15181 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
15183 * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
15184 in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. Problem reported
15187 2004-05-26 Paul Eggert <eggert@cs.ucla.edu>
15189 * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
15190 can be rewritten using if-then-else. Suggested by Bruno Haible.
15192 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
15194 * doc/autoconf.texi (testsuite Scripts): Fix typo.
15195 Problem reported by Stepan Kasal.
15197 2004-05-24 Paul Eggert <eggert@cs.ucla.edu>
15199 * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
15200 change). Patch reported by Ralf Wildenhues in
15201 <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
15203 * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
15204 function F exists if the compiler and linker let you compile an
15205 expression like (F != 0). Recent versions of GCC optimize away
15206 the reference to F in that case, since every function address must
15207 be nonzero, so the link succeeds even if F does not exist.
15208 Problem reported by Manu in
15209 <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
15211 * doc/autoconf.texi (Systemology): Standardize on the spelling of
15212 "Unix". Many uses changed.
15213 (Limitations of Builtins): Explain better why the ! command isn't
15216 2004-05-22 Alexandre Duret-Lutz <adl@gnu.org>
15218 * lib/autom4te.in (Automake-preselections): Preselect
15219 LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
15221 2004-05-19 Kevin Ryde <user42@zip.com.au>
15223 * doc/autoconf.texi (Function Portability): Add strerror_r, cross
15224 referencing AC_FUNC_STRERROR_R.
15226 * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
15227 note pessimistic assumption when cross compiling.
15229 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
15231 * doc/autoconf.texi (Limitations of Make): Note that BSD make
15232 (until 2004) invoked subcommands with sh -e, contra POSIX.
15233 Reported by Kevin Ryde.
15235 2004-05-10 Eric Sunshine <sunshine@sunshineco.com>
15237 * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
15238 _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
15239 " $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
15240 `test -f " /usr/bin/grep"', which _always_ failed.
15241 (AC_PROG_SED): Ditto bogus PATH fix.
15242 * autoconf.texi (AC_PROG_GREP): Properly document that this macro
15243 requires that grep correctly supports _multiple_ `-e' options, rather
15244 than stating only that grep should accept `-e'.
15246 2004-05-03 Paul Eggert <eggert@cs.ucla.edu>
15248 Port to C99, which requires that 'exit' be declared.
15250 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
15251 to ensure that stdlib.h is included.
15252 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
15253 AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
15254 _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
15255 * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
15256 * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
15257 * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
15258 when using 'exit' in a test; C99 requires that 'exit' be declared.
15260 2004-05-02 Paul Eggert <eggert@cs.ucla.edu>
15262 * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
15263 now prefers 'grep' implementations that accept -e.
15264 (Limitations of Usual Tools): Describe problems of traditional
15265 egrep and fgrep with long input lines, and of traditional grep
15267 * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
15268 (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
15269 All callers changed. Append /usr/xpg4/bin to the PATH, for
15271 (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
15272 the user with complaints about multiple -e options.
15273 * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
15274 Define it with AC_PROG_GREP.
15275 * configure.ac (AC_PROG_GREP): Add.
15276 * lib/freeze.mk (GREP): New macro.
15278 2004-05-02 Eric Sunshine <sunshine@sunshineco.com>
15280 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
15281 a possible candidate only after all others fail, rather than
15282 consulting it first. This improves backward compatibility by
15283 better reflecting the way shell selection occurred in previous
15284 versions of Autoconf, and should help to avoid triggering latent
15285 problems in other packages, such as the one in Automake where zsh
15286 is not handled robustly:
15287 http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
15288 Although it is not Autoconf's responsibility to work around
15289 problems in Automake, it nevertheless makes sense to avoid
15290 introducing unnecessary incompatibilites.
15292 2004-04-22 Albert Chin-A-Young <china@thewrittenword.com>,
15293 Gary V. Vaughan <gary@gnu.org>
15295 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
15296 how deeply nested we are when a suitable tool is found, set the
15297 ac_path_TOOL_found flag.
15298 (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
15299 nested we are in this macro. Break out of all 3 nested loops if
15300 ac_path_TOOL_found is set.
15302 2004-04-21 Gary V. Vaughan <gary@gnu.org>
15304 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
15305 of the _AS_PATH_WALK loop too if GNU flavor is found.
15307 2004-04-21 Alexandre Duret-Lutz <adl@gnu.org>
15309 * doc/autoconf.texi (Limitations of Make): Update documentation
15310 for `$<'. New entry `Long lines', based on a report from Simon
15311 Josefsson. Augment the documentation for SHELL = @SHELL@ with a
15312 paragraph about DJGPP, based on a mail from Richard Dawe.
15314 2004-04-20 Paul Eggert <eggert@twinsun.com>
15316 * tests/c.at (C keywords): Don't assume that GCC supports
15317 "restrict" and "inline", as sufficiently-old GCC versions do not
15318 (also, GCC configured to be in pedantic C89 mode does not).
15319 Problem reported by Sumit Pandya in:
15320 http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
15322 * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
15323 consider -g to work if it generates warnings when plain compiles
15324 don't. Problem reported by Braden McDaniel in:
15325 http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
15327 * doc/autoconf.texi (Slashes): New section, to document a problem
15328 reported by Jim Meyering in:
15329 http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
15331 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
15332 linker output files before linking, to work around IRIX 6 linker bug.
15333 Problem reported by Rainer Orth in:
15334 http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
15336 2004-04-20 Gary V. Vaughan <gary@gnu.org>
15338 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
15339 best tool so far counter rely on the tool path variable name to
15340 avoid checks for one tool being affected by the results of running
15341 the length check on a previous tool.
15343 * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
15344 match expression argument, as different greps have different
15345 regular expression flavours.
15346 (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
15348 (AC_PROG_EGREP): Pass 'EGREP$'.
15349 (AC_PROG_GREP): Pass 'GREP$'.
15351 2004-04-20 Albert Chin-A-Young <china@thewrittenword.com>
15353 * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
15354 is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
15356 2004-03-29 Paul Eggert <eggert@twinsun.com>
15358 * doc/autoconf.texi (Particular Headers, Particular Types, Generic
15359 Types, Specific Compiler Characteristics, System Services,
15360 Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
15361 etc. consistently instead of 'long', 'short', 'unsigned' etc.
15362 * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
15363 * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
15365 * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
15366 * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
15367 AC_TYPE_OFF_T): Likewise.
15368 * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
15371 * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
15372 pacify libtool 1.5.2. Fix quoting problems in sed command.
15374 2004-03-28 Paul Eggert <eggert@twinsun.com>
15376 * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
15377 now defines HAVE_DECL_TZNAME if it is declared, when
15378 HAVE_STRUCT_TM_TM_ZONE is not defined.
15379 * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
15380 Do not assume atoi. Rely on HAVE_DECL_TZNAME when testing
15383 2004-03-28 Steven G. Johnson <stevenj@fftw.org>
15385 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
15386 superfluous backslashing of quotes (") in sed expressions;
15387 thanks to Paul Eggert.
15389 2004-03-26 Steven G. Johnson <stevenj@alum.mit.edu>
15391 * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
15392 Fortran compiler is ifort, also added pghpf; thanks to Nelson
15393 H. F. Beebe for the bug report.
15395 2004-03-26 Steven G. Johnson <stevenj@fftw.org>
15397 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
15398 quoted -cmdline argument in Portland Group compiler (bug
15399 reported by Jeffrey J. Barteet).
15401 2004-03-25 Kevin Ryde <user42@zip.com.au>
15403 * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
15404 (Run Time): ... here, where it's now mentioned.
15406 2004-03-19 Alexandre Duret-Lutz <adl@gnu.org>
15408 * doc/autoconf.texi (autom4te Invocation): Language Autoconf
15409 inherits from language Autoconf-without-aclocal-m4.
15410 (Customizing autom4te): Adjust example; the cache must now be
15411 disabled for language Autoconf-without-aclocal-m4.
15413 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
15414 Nathanael Nerode <neroden@twcny.rr.com>
15416 * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
15417 AC_CHECK_TOOLS): Warn if a cross-tool is found without
15419 (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
15420 AC_CHECK_TARGET_TOOLS): New macros.
15421 * doc/autoconf.texi (Generic Programs): Document
15422 (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
15423 AC_CHECK_TARGET_TOOLS, and warn for future changes
15424 in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
15426 (Specifying Names): Document the reason for these future
15427 behavioral changes.
15428 * tests/mktests.sh: Do not generate tests for the
15430 * NEWS: Document these changes.
15432 * doc/autoconf.texi: Avoid macros with unbraced arguments,
15433 they make TeX hang up.
15435 2004-03-15 Paul Eggert <eggert@bogus.example.com>
15437 * NEWS: New macro AC_CHECK_ALIGNOF.
15438 * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
15439 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
15440 int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
15442 (AC_CHECK_ALIGNOF): New macro.
15443 * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
15444 * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
15447 2004-03-03 Paul Eggert <eggert@twinsun.com>
15449 * bin/Makefile.am (edit): Don't use $< in a context where
15450 POSIX doesn't require support for it. Use $@.in instead.
15451 Problem reported by Anthony N. Frasso in
15452 <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
15453 * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
15455 2004-02-23 Gary V. Vaughan <gary@gnu.org>
15457 * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
15458 from the next generation of Libtool.
15459 * lib/autom4te.in (Autoreconf-preselections): Ditto.
15461 2004-02-20 Alexandre Duret-Lutz <adl@gnu.org>
15463 * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
15464 is not always thread-safe. Report from Nathanael Nerode.
15466 2004-02-18 Paul Eggert <eggert@twinsun.com>
15468 Fix a dependencies problem, stemming from a Autoconf 2.59 build
15469 problem on QNX reported by Stephen Rasku in
15470 <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
15472 * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
15473 $(m4sh_m4f_dependencies); this removes a FIXME.
15474 * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
15475 (MAINTAINERCLEANFILES): Split into pieces,
15476 one per related section. Add $(srcdir)/wrapper.in.
15478 2004-02-09 Paul Eggert <eggert@twinsun.com>
15480 * doc/autoconf.texi (Setting Output Variables): Emphasize that
15481 AC_SUBST provides no portable way to escape literal newlines.
15483 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
15484 flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
15485 Darwin uses -lcrt2.o and there's little point to cataloging all
15486 the system variants. Partial fix reported by Andreas Waechter in:
15487 http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
15488 for bug reported by Nelson H. F. Beebe in:
15489 http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
15491 2004-02-04 Paolo Bonzini <bonzini@gnu.org>
15493 * doc/autoconf.texi (AU_DEFUN): Fix English,
15494 suggested by Paul Eggert.
15495 * lib/autoconf/autoupdate.m4: Correct reference to
15496 acobsolete.m4, suggested by Alexandre Duret-Lutz.
15498 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
15500 * bin/autoupdate.in: Define __file__ so that warnings
15501 refer to the correct file.
15502 * doc/autoconf.texi (AU_DEFUN): Describe more correctly
15503 the behavior of the third argument.
15504 * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
15505 correctly the behavior of the third argument. Document
15506 what the three macros that AU_DEFUN defines do. Fix
15507 warning message when the third argument includes $0
15508 (reported by Alexandre Duret-Lutz).
15510 2004-01-30 Paolo Bonzini <bonzini@gnu.org>
15511 Eric Sunshine <sunshine@sunshineco.com>
15512 Paul Eggert <eggert@twinsun.com>
15514 * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
15515 (AS_INIT): Output shell initialization there. Removed optional
15516 parameter. Expand _AS_SHELL_FN_SPY.
15517 (AS_INIT_WITH_SHELL_FN): Removed.
15518 (_AS_SHELL_FN_SPY): New macro.
15519 (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
15521 (AS_SHELL_SANITIZE): Remove loop to find better shell
15522 and documentation for the parameter.
15523 (_AS_DETECT_BETTER_SHELL): Move it here.
15524 (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
15525 (_AS_RUN): Move it here, support testing with eval.
15526 (AS_REQUIRE_SHELL_FN): Require shell functions when
15528 (_AS_LINENO_WORKS): Put around braces, we do not
15529 trigger the bash bug anymore.
15530 * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
15531 use AS_INIT_WITH_SHELL_FN.
15532 * bin/autoconf.in, tests/wrapper.in: Regenerated.
15534 2004-01-30 Paolo Bonzini <bonzini@gnu.org>
15536 * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
15537 * doc/autoconf.texi: Don't say that the third parameter
15539 * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
15540 (AU_DEFUN): Honor the third parameter, create autoupdate
15541 macros with AU_DEFINE.
15542 * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
15543 AC_DIR_HEADER): Use AU_DEFUN's third parameter.
15544 * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
15545 * lib/autoconf/programs.m4 (AC_RSH): Likewise.
15546 * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
15547 AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
15548 AC_XENIX_DIR): Likewise.
15549 * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
15550 AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
15551 * lib/autoconf/status.m4: Remove FIXME.
15552 * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
15553 that the macro is not present anymore in the updated
15555 * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
15558 2004-01-28 Paul Eggert <eggert@twinsun.com>
15560 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
15562 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
15563 2003 (except 1997) to the list of copyright years. This undoes
15564 the 2003-05-22 change, which removed the older years from the list.
15565 * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
15567 2004-01-27 Gary V. Vaughan <gary@gnu.org>
15568 Albert Chin-A-Young <china@thewrittenword.com>
15570 * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
15571 grep or ggrep program in PATH that accepts as long lines as
15573 * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
15575 (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
15576 egrep and fgrep respectively if $GREP -E/-F don't work.
15577 (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
15578 _AC_PROG_GREP, and AC_PROG_SED.
15579 (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
15580 longest input length accepted by a command.
15581 (AC_PROG_SED): Use it.
15582 * doc/autoconf.texi (Particular Programs): Document the changes.
15585 2004-01-27 Paul Eggert <eggert@twinsun.com>
15587 * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
15588 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
15589 bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
15590 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
15592 * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
15593 bin/autoconf.in, config/Makefile.in, config/config.guess,
15594 config/config.sub, config/install-sh, config/mdate-sh,
15595 config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
15596 lib/Makefile.in, lib/Autom4te/Makefile.in,
15597 lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
15598 lib/autotest/Makefile.in, lib/emacs/Makefile.in,
15599 lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
15600 man/autoheader.1, man/autom4te.1, man/autoreconf.1,
15601 man/autoscan.1, man/autoupdate.1, man/config.guess.1,
15602 man/config.sub.1, man/ifnames.1, tests/Makefile.in,
15603 tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
15604 tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
15605 tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
15606 tests/actypes.at: Regenerate and/or sync with original
15609 2004-01-26 Paul Eggert <eggert@twinsun.com>
15611 * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
15612 HAVE_INTTYPES_H is defined. This is needed on Tru64 5.1b with
15613 Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
15614 not <inttypes.h>. Problem reported by Tim Mooney in
15615 <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
15616 * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
15619 * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
15620 otherwise "make check" fails because it forbids cmp (I guess
15621 because cmp treats files as binary on DOS-like systems).
15623 * tests/mktests.sh: Update copyright date to 2004, since some tests
15624 have changed in 2004.
15626 2004-01-23 Gary V. Vaughan <gary@gnu.org>
15628 * lib/autoconf/programs.m4 (AC_PROG_SED): New macro to test for a
15629 non-truncating sed or gsed program in PATH.
15630 * tests/acprograms.at: Add it.
15631 * doc/autoconf.texi (Particular Programs): Document it.
15634 2004-01-15 Paul Eggert <eggert@twinsun.com>
15636 * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
15637 -std1 disables some useful extensions on Tru64. Problem reported
15638 by N. Lichtmaier in
15639 <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
15641 2004-01-14 Paul Eggert <eggert@twinsun.com>
15643 * doc/autoconf.texi (Programming in M4sh): Document that
15644 AS_MKDIR_P succeeds if the destination is a symbolic link
15645 to an existing directory.
15646 (Limitations of Usual Tools): Note that mkdir -p might not
15647 succeed on symlinks to directories.
15649 2004-01-13 Paul Hilfinger <hilfinger@CS.Berkeley.EDU>
15651 * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
15652 * bin/autoheader.in: Grammar fix in message.
15653 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
15654 Test for dir before calling mkdir -p. (trivial changes)
15656 2004-01-13 Eric Blake <ebb9@byu.net>
15658 * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
15659 AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/. (trivial change)
15661 2004-01-10 Jim Meyering <jim@meyering.net>
15663 * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
15665 2004-01-09 Paul Eggert <eggert@twinsun.com>
15667 * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
15668 with `autoconf -Wall,error'. Bug reported by Eric Blake in:
15669 http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
15670 (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
15671 AC_COMPILE_IFELSE, since we now assume our caller invokes
15672 AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
15673 (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
15674 of AC_RUN_IFELSE; this avoids the warning mentioned above.
15675 (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
15677 2004-01-07 Paul Eggert <eggert@twinsun.com>
15679 * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
15680 `"'...'"`, as it's confusing (and I suspect it may not work on
15681 some platforms). The code was incorrect anyway, as it assumed
15682 that \$ evaluated to itself in that context. Reported by
15683 Alexandre Duret-Lutz.
15685 2004-01-07 Alexandre Duret-Lutz <adl@gnu.org>
15687 * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
15688 and _LT_AC_TAGCONFIG.
15690 2004-01-06 Paul Eggert <eggert@twinsun.com>
15692 * doc/autoconf.texi (One Macro Call): Fix an incorrect
15693 example, and add more examples. Reported by Eric Sunshine.
15695 2004-01-05 Paul Eggert <eggert@twinsun.com>
15697 * doc/autoconf.texi (Limitations of Usual Tools):
15698 Remove warning against "rm -fr" introduced yesterday; it
15701 * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
15702 autoscan, autoupdate, ifnames): Don't use chmod -w.
15703 * lib/Makefile.am (autom4te.cfg): Likewise.
15704 * doc/autoconf.texi (Limitations of Usual Tools): Warn against
15707 2004-01-04 Paul Eggert <eggert@twinsun.com>
15708 Paolo Bonzini <bonzini@gnu.org>
15710 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
15711 by doing lineno substitution only on lines containing "$LINENO".
15713 2004-01-04 Paul Eggert <eggert@twinsun.com>
15715 * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
15716 Use "rm -f" to remove conftest.sed, not plain "rm".
15717 Bug reported by David Relson in
15718 <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
15720 * Makefile.am (autom4te-update):
15721 Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
15722 * Makefile.maint (my-distcheck, do-po-update): Likewise.
15723 * doc/autoconf.texi (Guidelines): Likewise.
15724 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
15725 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
15726 * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
15727 * lib/autotest/general.m4 (AT_INIT): Likewise.
15728 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
15729 * tests/Makefile.am (clean-local): Likewise.
15730 * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
15732 * doc/autoconf.texi (Limitations of Usual Tools):
15733 Warn against "rm -fr".
15735 2004-01-03 Paul Eggert <eggert@twinsun.com>
15737 * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
15738 -c -o might not work. From a suggestion by Kevin Ryde.
15739 (C Compiler, Generating Sources, Limitations
15740 of Usual Tools, Limitations of Make, Making testsuite Scripts):
15741 Don't put '-o' after non-options, as POSIX doesn't allow this.
15742 Mention that cc's name might be gcc or c89 or whatever.
15744 2004-01-04 Kevin Ryde <user42@zip.com.au>
15746 * doc/autoconf.texi: Add various further index entries.
15748 2003-12-29 Paul Eggert <eggert@twinsun.com>
15750 * bin/autoreconf.in (autoreconf_current_directory):
15751 Fix typo: mkdir without umask arg.
15753 2003-12-27 Alexandre Duret-Lutz <adl@gnu.org>
15755 * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
15756 Documents OSF1/Tru64 make behavior. Replace `VPATH = ../src' by
15757 `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
15758 explanation clearer.
15760 2003-12-24 Andreas Schwab <schwab@suse.de>
15762 * doc/autoconf.texi (Default Includes): Fix misspelling of
15763 AC_INCLUDES_DEFAULT.
15765 2003-12-03 Paolo Bonzini <bonzini@gnu.org>
15767 * configure.ac: Test if sh -n works.
15768 * configure: Regenerate.
15769 * tests/atlocal.in: Store the result here.
15770 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
15771 tools.at, looking in atlocal's ac_cv_sh_n_works instead
15772 of explicitly testing.
15773 (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
15774 (AT_CHECK_AUTOCONF): Test for the configure script syntax.
15775 * tests/tools.at (Syntax of the shell scripts): Simplify
15776 using AT_CHECK_SHELL_SYNTAX.
15777 (Syntax of the Perl scripts): Remove definition of
15778 AT_CHECK_PERL_SYNTAX.
15780 2003-12-03 Paolo Bonzini <bonzini@gnu.org>
15782 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
15783 stderr to /dev/null.
15784 * bin/autoconf.in: Regenerate.
15785 * bin/wrapper.in: Regenerate.
15787 2003-11-26 Paolo Bonzini <bonzini@gnu.org>
15789 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
15790 Extracted from AS_SHELL_SANITIZE.
15791 (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
15793 (AS_SHELL_SANITIZE): Move reinvocation code from
15794 _AS_LINENO_WORKS, use it to find out if shell
15796 (_AS_LINENO_WORKS): Don't find another shell if $LINENO
15798 (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
15799 (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
15801 * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
15802 * bin/autoconf.in: Regenerate.
15803 * tests/wrapper.in: Regenerate.
15804 * tests/tools.at: Test the syntax of tests/autoconf
15805 and tests/testsuite.
15807 2003-11-24 Akim Demaille <akim@epita.fr>
15809 * config/announce-gen (&print_locations, &print_signatures)
15812 No longer rely on Gnus to inline the list of signatures: compute
15815 2003-11-24 Akim Demaille <akim@epita.fr>
15817 * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
15818 override some files.
15819 (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
15820 From Debian Autoconf 2.58.
15822 2003-11-24 Akim Demaille <akim@epita.fr>
15824 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
15826 From Debian Autoconf 2.58.
15828 2003-11-24 Paolo Bonzini <bonzini@gnu.org>
15830 * TODO: Remove already done things. Update the part about finding
15831 tools for the target.
15833 2003-11-24 Paolo Bonzini <bonzini@gnu.org>
15835 * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
15836 Make wording more consistent.
15837 * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
15838 Explain the transition better.
15839 * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
15840 the transition better.
15842 2003-11-24 Paolo Bonzini <bonzini@gnu.org>
15844 * doc/autoconf.texi (Obsoleting Macros): Don't document the third
15845 parameter of AU_DEFUN.
15846 * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
15847 (AU_DEFUN): Remove the third parameter, it was not used.
15848 Use AC_DEFUN directly, not AU_DEFINE.
15849 * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
15850 the expanded body, consistently with other macros such as AC_USG.
15852 2003-11-17 Paul Eggert <eggert@twinsun.com>
15854 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
15855 into the initial confdefs.h, to work around a bug in NextStep 3.3
15856 patch 3 reported by Eric Sunshine.
15858 2003-11-15 Kevin Ryde <user42@zip.com.au>
15860 * doc/autoconf.texi (Using System Type): Revise, showing $host rather
15861 than $target since the latter is not usual, add guidelines on when to
15862 use or not use the system type.
15864 2003-11-12 Derek Price <derek@ximbiot.com>
15866 * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
15867 typo misrepaired by an auto-spellcheck.
15869 2003-11-12 Akim Demaille <akim@epita.fr>
15871 * bin/autoreconf.in (&parse_args): Don't call automake with
15872 --force-missing unless it actually supports it.
15873 From Debian #219336.
15875 2003-11-12 Akim Demaille <akim@epita.fr>
15877 * configure.ac: Bump to 2.59a.
15880 2003-11-06 Akim Demaille <akim@epita.fr>
15884 2003-11-05 Alexandre Duret-Lutz <adl@gnu.org>
15886 * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
15887 so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
15888 and ac_abs_top_srcdir are absolute paths.
15889 * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
15891 2003-11-05 Akim Demaille <akim@epita.fr>
15893 * configure.ac: Bump to 2.58a.
15895 2003-11-05 Kevin Ryde <user42@zip.com.au>
15897 * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
15898 it provokes a warning from makeinfo about looking like a cross
15899 reference in info output.
15901 * doc/autoconf.texi (Function Portability): Add notes on signal
15902 handler return type, as per AC_TYPE_SIGNAL.
15904 2003-11-04 Akim Demaille <akim@epita.fr>
15907 * doc/standards.texi: Update from master.
15909 * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
15911 2003-11-04 Akim Demaille <akim@epita.fr>
15913 AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
15914 computing the absolute path to d1 in the source hierarchy: it may
15915 not exist at all. So don't cd into it.
15916 From Alexandre Duret-Lutz.
15917 http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
15919 * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
15920 From Paul Eggert, but named after Perl's IO::Spec->catfile.
15921 * doc/autoconf.texi (Programming in M4sh): Document.
15922 * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
15924 2003-11-03 Pavel Roskin <proski@gnu.org>
15926 * doc/autoconf.texi (Generic Structure Checks): Describe
15927 action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
15929 2003-10-31 Akim Demaille <akim@epita.fr>
15931 * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
15932 (GNU Fortran): New.
15933 * doc/autoconf.texi (Language Choice): Document.
15934 * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
15935 the current language is Fortran.
15937 2003-10-31 Akim Demaille <akim@epita.fr>
15939 * bin/autom4te.in (&freeze): Use a less likely warning separator
15940 than `\n\n', so that `\n\n\n' is valid in warnings.
15941 Reported by Steve Huston.
15943 2003-10-28 Akim Demaille <akim@epita.fr>
15945 * Makefile.cfg (local_updates, executable-update): Tweak to be
15946 robust to parallel makes.
15947 Suggested by Alexandre Duret-Lutz.
15949 2003-10-27 Akim Demaille <akim@epita.fr>
15951 * Makefile.cfg (executable-update): New.
15952 (local_updates): Call it.
15954 2003-10-27 Akim Demaille <akim@epita.fr>
15956 * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
15957 Don't remove core.* as it may remove valid user files.
15958 * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
15959 (AC_FUNC_UTIME_NULL): Likewise.
15961 2003-10-23 Akim Demaille <akim@epita.fr>
15964 * config/config.guess, config/config.sub: Upgrade from masters.
15966 2003-10-23 Akim Demaille <akim@epita.fr>
15968 * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
15969 AC_COMPILE_IFELSE that use break skip the clean up. So do it by
15972 2003-10-23 Akim Demaille <akim@epita.fr>
15974 * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
15975 Don't forget to remove conftest.err.
15977 2003-10-23 Akim Demaille <akim@epita.fr>
15979 * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
15980 same object file in $LIBOBJS.
15981 Reported by Alexandre Duret-Lutz & Derek Robert Price.
15982 * doc/autoconf.texi (Generic Functions): Adjust.
15984 2003-10-20 Paul Eggert <eggert@twinsun.com>
15986 * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
15987 Use 'eval', so that the resulting configure scripts work even if
15988 the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
15990 2003-10-20 Daniel Jacobowitz <drow@mvista.com>
15992 * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
15993 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
15994 (_AC_LINK_IFELSE): Check the werror flag.
15995 * doc/autoconf.texi (Generic Compiler Characteristics): Document
15997 * NEWS: Mention it.
15999 2003-10-20 Daniel Jacobowitz <drow@mvista.com>
16001 * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
16002 _AC_COMPILER_EXEEXT to attempt a link. If linking fails,
16003 override AC_LINK_IFELSE.
16005 2003-10-15 Paul Eggert <eggert@twinsun.com>
16007 * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
16008 pdksh 5.2.14. Bug reported by Ralf Corsepius.
16009 * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
16010 Mention /usr/dt/bin/dtksh on Solaris.
16011 (Shell Substitutions): Warn about $((...)).
16012 (Parentheses): New section.
16014 2003-10-15 Kevin Ryde <user42@zip.com.au>
16016 * doc/autoconf.texi (Function Portability): Add @prindex for exit.
16017 Add putenv and unsetenv. Add sysconf _SC_PAGE_SIZE.
16019 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
16021 * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
16024 2003-10-11 Steven G. Johnson <stevenj@alum.mit.edu>
16026 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
16027 name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
16029 2003-10-10 Andreas Schwab <schwab@suse.de>
16031 * bin/autoheader.in: Avoid empty first line in --version and
16033 * bin/ifnames.in: Likewise.
16035 2003-10-09 Paul Eggert <eggert@twinsun.com>
16037 * lib/Autom4te/XFile.pm: Don't assume -j is solo.
16038 Issue a more-informative diagnostic.
16039 Problems reported by Eric Sunshine.
16041 2003-10-08 Steven G. Johnson <stevenj@alum.mit.edu>
16043 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
16044 -mGLOB_options_string stuff for Intel ifc, which can cause
16045 _AC_FC_LIBRARY_LDFLAGS to fail. Use (faster) case for
16046 pattern-matching instead of grep.
16048 2003-10-08 Steven G. Johnson <stevenj@alum.mit.edu>
16050 * doc/autoconf.texi: Document new FC Fortran macros.
16052 2003-10-08 Gary V. Vaughan <gary@gnu.org>
16054 * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
16055 that future autopoint/aclocal/automake/autoreconf will be able
16056 to trace to find where to install local m4 macros.
16057 * doc/autoconf.texi (Input): Document it.
16060 2003-10-06 Gary V. Vaughan <gary@gnu.org>
16062 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
16063 -lcrtbegin.o to list of ignored flags and fix underquoting of
16066 2003-10-04 Steven G. Johnson <stevenj@ab-initio.mit.edu>
16068 * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
16069 cache variable instead of $G77 to decide whether to include -O2,
16070 since $G77 is specific to Fortran 77.
16072 2003-10-03 Steven G. Johnson <stevenj@alum.mit.edu>
16074 * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
16075 free" flag. Re-order flags tested into rough order of popularity.
16077 2003-10-03 Steven G. Johnson <stevenj@alum.mit.edu>
16079 * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
16080 arguments so that it can be used with syntax identical to
16081 AC_PROG_F77, and so that we can more easily decide to
16082 remove/deprecate the DIALECT optional argument in the future if it
16083 proves troublesome.
16084 (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
16085 non-freeform-supporting compilers. Document freeform flags.
16087 2003-10-03 Akim Demaille <akim@epita.fr>
16089 * configure.ac: Look for emacs, not macs.
16090 Reported by Eric Sunshine.
16092 2003-10-03 Akim Demaille <akim@epita.fr>
16094 * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
16095 * bin/autoreconf.in (autoreconf_current_directory): Create the
16096 AUX_DIR if needed, for sake of automake --add-missing etc.
16097 Suggested by Alexandre Duret-Lutz.
16099 2003-10-03 Akim Demaille <akim@epita.fr>
16101 * configure.ac: Quotation and formatting changes.
16102 (EMACS): Don't set it if it is not recent enough to support
16104 From Eric Sunshine.
16106 2003-10-02 Akim Demaille <akim@epita.fr>
16108 * bin/ifnames.in (&scan_file): Skip C++ comments.
16109 From Jeremy Yallop.
16111 2003-10-01 Pavel Roskin <proski@gnu.org>
16113 * doc/autoconf.texi (Particular Structure Checks):
16114 Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
16116 2003-10-01 Akim Demaille <akim@epita.fr>
16120 2003-09-30 Paul Eggert <eggert@twinsun.com>
16122 * lib/Autom4te/XFile.pm: Use Errno.
16123 (lock): Ignore ENOLCK errors. Problem reported Andreas Schwab in
16124 <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
16126 2003-09-30 Akim Demaille <akim@epita.fr>
16128 * config/announce-gen (&print_news_deltas): Extracted from...
16129 (&print_changelog_deltas): here.
16130 (&news_file): Rename as...
16131 (@news_file): this.
16133 2003-09-30 Nicolas Joly <njoly@pasteur.fr>
16135 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
16136 have been created when invoking the compiler.
16137 * tests/fortran.at (GNU Fortran 77): Quote $G77.
16139 2003-09-29 Akim Demaille <akim@epita.fr>
16143 * config/mkinstalldirs: Upgrade.
16145 2003-09-28 Paul Eggert <eggert@twinsun.com>
16147 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
16148 Problem reported by Lars J. Aas in
16149 <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
16150 (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
16151 "test -d ./-p && rmdir ./-p". Suggested by Andreas Schwab in:
16152 http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
16154 2003-09-26 Akim Demaille <akim@epita.fr>
16156 * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
16157 directory for AC_CONFIG_COMMANDS' first argument exists.
16158 This makes valid the invocation of _AC_SRCPATH that follows.
16159 Reported by Eric Sunshine.
16160 * doc/autoconf.texi (Configuration Commands): Adjust.
16162 2003-09-26 Akim Demaille <akim@epita.fr>
16164 * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
16165 Reported by Ralf Corsepius.
16167 2003-09-26 Akim Demaille <akim@epita.fr>
16169 * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
16171 Actually, use AU_ALIAS.
16174 2003-09-26 Paul Eggert <eggert@twinsun.com>
16176 * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
16177 rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
16178 Problem reported by Eric Sunshine in:
16179 http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
16181 2003-09-26 Akim Demaille <akim@epita.fr>
16183 The test suite are sometimes assigning timings incorrectly.
16184 Reported by Henk Krus.
16185 Diagnosed by Nicolas Joly.
16187 * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
16189 Instead of making AT_help a sequence of assignments to grow
16190 $at_help_all, just make AT_help_all be the growing contents of
16191 $at_help_all, and make a single assignment in...
16193 (at_times_skip): Flip the meaning and rename as...
16194 (at_times_p): this.
16195 (AT_INIT): When summarizing the test that ran, remove
16196 $at_times_file after use, and check it is present before trying to
16199 2003-09-25 Akim Demaille <akim@epita.fr>
16203 * bin/Makefile.am (edit): Handle '@configure_input@'.
16204 (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
16205 (ifnames): chmod -w.
16206 * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
16207 executables, not bin/ executables! Otherwise all the magic needed
16208 to find non installed files is turned off. This caused a failure
16209 of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
16210 as found in its environment (sent by tests/autoreconf): pointing
16211 to bin/autom4te that could not find its files.
16212 * tests/mktests.sh: Force the replacement of generated files, for
16213 the sake of "mv" program that are interactive when overwriting a
16215 * config/install-sh: Upgrade from CVS Automake.
16217 2003-09-23 Paul Eggert <eggert@twinsun.com>
16219 * doc/autoconf.texi (Limitations of Builtins): Document test -h
16220 versus test -L issues.
16222 2003-09-23 Daniel Jacobowitz <drow@mvista.com> and
16223 Paul Eggert <eggert@twinsun.com>
16225 Trivial change to support GCC's configuration procedure.
16226 * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
16227 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
16228 about inconsistency if the preprocessor is set to give errors for
16230 * doc/autoconf.texi (C Compiler Characteristics): Document this.
16232 2003-09-13 Alexandre Duret-Lutz <adl@gnu.org>
16234 * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
16235 and XFile.pm from Automake.
16236 * lib/Autom4te/XFile.pm: Update from Automake.
16238 2003-09-12 Akim Demaille <akim@epita.fr>
16242 2003-09-12 Akim Demaille <akim@epita.fr>
16244 * config/config.guess, config/config.sub, config/missing,
16245 * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
16248 2003-09-12 Akim Demaille <akim@epita.fr>
16250 * doc/autoconf.texi (Header Portability): Promote linux/types.h,
16253 2003-09-11 Akim Demaille <akim@epita.fr>
16255 * doc/autoconf.texi (Header Portability): linux/random.h.
16256 From Peter Hendrickson.
16258 2003-09-10 Akim Demaille <akim@epita.fr>
16260 * tests/mktests.sh (au_exclude_egrep): Make it harder to be
16261 willing to edit the output files.
16263 2003-09-10 Akim Demaille <akim@epita.fr>
16265 * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
16266 and AC_FC_FREEFORM.
16267 * tests/mktests.sh: Skip AC_FC_SRCEXT.
16268 * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
16270 2003-09-09 Akim Demaille <akim@epita.fr>
16272 * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
16273 Reported by Gary Vaughan.
16274 * bin/autom4te.in (handle_m4): Likewise.
16276 2003-09-09 Akim Demaille <akim@epita.fr>
16278 * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
16281 2003-09-07 Paul Eggert <eggert@twinsun.com>
16283 * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
16284 Improve the accuracy of the wording about obsolescence.
16285 From a suggestion by Ian Lance Taylor in
16286 <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
16288 2003-09-05 Paul Eggert <eggert@twinsun.com>
16290 * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
16291 for the benefit of g77 3.2. Fix suggested by Steven G. Johnson.
16293 2003-09-04 Akim Demaille <akim@epita.fr>
16295 * tests/mktests.sh (ac_exclude_list): Fix the filtering of
16298 2003-09-04 Akim Demaille <akim@epita.fr>
16300 * bin/autom4te.in: Use &fatal where more appropriate than &error.
16301 (freeze): When exiting, use $exit_code.
16302 * lib/autoconf/fortran.m4: Comment changes.
16304 2003-09-04 Akim Demaille <akim@epita.fr>
16306 * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
16308 2003-09-02 Steven G. Johnson <stevenj@alum.mit.edu>
16310 Add support for newer Fortran dialects. The F77 interface is
16311 unchanged, and continues to support Fortran 77. New FC macros
16312 correspond to all the old F77 macros, with output variables FC,
16313 FCFLAGS, and FCLIBS. AC_PROG_FC defaults to picking the newest
16314 available dialect, but older dialects can be specified. There are
16315 new macros AC_FC_SRCEXT to set the source extension, and
16316 AC_FC_FREEFORM to accept free-form source files.
16318 * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
16320 (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
16321 * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
16322 _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
16323 _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
16324 AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
16325 AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
16326 _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
16327 _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
16328 AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
16329 _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
16330 AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
16331 _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
16332 AC_FC_SRCEXT, AC_FC_FREEFORM):
16334 (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
16335 AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
16336 AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
16337 Rewrite in terms of the above.
16338 (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
16339 * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
16340 * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
16341 AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
16343 2003-09-02 Paul Eggert <eggert@twinsun.com>
16345 * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
16346 Document problems with timestamp resolution that 'make', 'cp -p', and
16349 2003-08-27 Akim Demaille <akim@epita.fr>
16351 * tests/m4sugar.at (cross_warning): Make sure to enable the
16352 output, so that we can track spurious m4sugar output.
16353 * tests/local.at: Require 2.57.
16354 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
16355 are defaulted by AT_CHECK anyway.
16356 Use AT_CHECK_AUTOM4TE.
16357 * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
16360 2003-08-27 Akim Demaille <akim@epita.fr>
16362 * bin/autoheader.in: Issue the "Using auxiliary..." message only
16363 when -Wobsolete is set.
16364 Set it on by default.
16365 Suggested by Klee Dienes.
16367 2003-08-27 Akim Demaille <akim@epita.fr>
16369 * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
16371 From Guido Draheim.
16373 2003-08-26 Akim Demaille <akim@epita.fr>
16375 * doc/autoconf.texi (Output): Make clear that one can run code
16378 2003-08-25 Akim Demaille <akim@epita.fr>
16380 * config/announce-gen, GNUmakefile, Makefile.maint: Update from
16383 2003-08-25 Alexandre Duret-Lutz <adl@gnu.org>
16385 * bin/autoreconf.in (parse_args): Do not pass --no-force to
16386 Automake versions prior to 1.8.
16388 2003-08-25 Akim Demaille <akim@epita.fr>
16390 * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
16391 From Ville Karaila.
16393 2003-08-24 Akim Demaille <akim@epita.fr>
16395 * configure.ac: Bump to 2.57c.
16397 2003-08-22 Akim Demaille <akim@epita.fr>
16401 * Makefile.cfg (local-checks-to-skip): New.
16402 * Makefile.maint (local-check): Rename as...
16403 (local-checks-available): this.
16404 (local-check): New.
16406 * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
16407 * configure.ac: Require Automake 1.7.6.
16409 2003-08-22 Akim Demaille <akim@epita.fr>
16411 Output stack traces in warnings.
16413 * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
16414 Replace the former...
16415 (m4_warn): Pass the call stack to _m4_warn.
16416 * bin/autom4te.in: Adjust to output the call stack.
16417 * tests/m4sugar.at (m4@&t@_warn): Adjust.
16419 2003-08-22 Akim Demaille <akim@epita.fr>
16421 * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
16422 * bin/autom4te.in: Adjust.
16424 2003-08-21 Akim Demaille <akim@epita.fr>
16426 * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
16427 (&verbose): Remove.
16428 (&getopt): Adjust the note and verb channels, depending upon
16430 * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
16431 * bin/autoupdate.in: Adjust.
16432 Use &verb, not &verbose.
16434 2003-08-21 Akim Demaille <akim@epita.fr>
16436 * bin/autoheader.in (&parse_args): Use &parse_warnings and
16438 ($help): Use Autom4te::ChannelDefs::usage.
16439 * bin/autoscan.in: Use Autom4te::ChannelDefs.
16440 * lib/Autom4te/General.pm: Don't export error: you don't own it.
16442 2003-08-21 Akim Demaille <akim@epita.fr>
16444 First stab at preserving warnings between calls to autom4te,
16445 including when the cache is used.
16447 There are still several issues: (i) there are too many runs of m4
16448 (one for include, one for warnings, and some more), (ii) warnings
16449 spreading on several lines are not handled gracefully, (iii) the
16450 code meant to have the call stack display for errors does not work
16451 (its handling should move from m4 to autom4te).
16453 * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
16455 (@preselect): Add m4_warn.
16456 ($exit_status): Remove, use $exit_code.
16457 ($help): Use Autom4te::ChannelDefs::usage.
16458 (&handle_m4): No longer define the m4_warnings.
16459 At each run, extract and report the warnings.
16460 Always cache the result, including if the exit status is on
16461 failure, since if nothing changes, we should result in the same
16462 failure, hence we can use the cache.
16463 * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
16464 (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
16466 (m4_warn): Redefine as a do-nothing: it is its invocation that
16467 matters, as warnings are now reported via traces.
16468 * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
16469 the contents of m4_warn: make it _call_ m4_warn, so that tracing
16470 the latter reveals calls to the former.
16474 * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
16476 2003-08-21 Akim Demaille <akim@epita.fr>
16478 * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
16481 2003-08-21 Akim Demaille <akim@epita.fr>
16483 * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
16485 * lib/Autom4te/ChannelDefs.pm: Doc typos.
16486 (&parse_warnings): Accept a list of warning requests.
16487 (&usage): Return a string, not a side effect.
16488 (cross): New warning category.
16490 2003-08-21 Akim Demaille <akim@epita.fr>
16492 * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
16493 (&require_configure_ac): Accept an optional directory argument.
16494 ($configure_ac): Remove.
16495 * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
16496 (&catfile): Remove.
16497 * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
16498 * bin/autoscan.in: Adjust.
16500 2003-08-20 Akim Demaille <akim@epita.fr>
16502 * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
16503 Reported by Alexandre Duret-Lutz.
16505 2003-08-20 Akim Demaille <akim@epita.fr>
16507 * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
16508 * bin/autom4te: Adjust.
16509 In particular, be Autoconf tools are really silent when properly
16510 working, bind the verbosity of the 'note' channel to $verbose.
16511 * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
16512 (&xsystem, &contents): Remove, since they are exported by...
16513 * lib/Autom4te/FileUtils.pm: this.
16515 * lib/Autom4te/General.pm (&up_to_date_p): Move to...
16516 * lib/Autom4te/FileUtils.pm: here.
16518 2003-08-20 Akim Demaille <akim@epita.fr>
16520 * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
16521 * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
16524 2003-08-20 Akim Demaille <akim@epita.fr>
16526 * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
16527 (autom4te-update): New.
16528 * Makefile.cfg (update): Bind autom4te-update.
16530 2003-08-19 Derek Price <derek@ximbiot.com>
16532 * lib/autotest/general.m4: Comment various HELP_* diversions.
16533 (PARSE_ARGS_BEGIN): New section for option parsing related
16535 (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
16536 package specific options and associated help.
16538 2003-08-19 Akim Demaille <akim@epita.fr>
16540 * config/announce-gen, Makefile.cfg: New.
16541 * Makefile.am: Adjust.
16542 * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
16544 2003-08-19 Alexandre Duret-Lutz <adl@gnu.org>
16546 * lib/autom4te.in (Automake-preselections): Preselect
16547 AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
16550 2003-08-19 Alexandre Duret-Lutz <adl@gnu.org>
16552 * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
16553 (Autoconf-without-aclocal-m4): ... this new language.
16554 * doc/autoconf.texi (autom4te Invocation): Mention
16555 Autoconf-without-aclocal-m4.
16557 2003-08-18 Derek Price <derek@ximbiot.com>
16559 * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
16560 RUN-IF-PASS optional arguments.
16562 2003-08-18 Derek Price <derek@ximbiot.com>
16564 * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
16566 2003-08-16 Derek Price <derek@ximbiot.com>
16568 * doc/autoconf.texi (Writing testsuite.at): Document defaults for
16569 STDOUT & STDERR arguments.
16571 2003-08-14 Derek Price <derek@ximbiot.com>
16573 * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
16574 DESCRIPTION rather than FILE and LINE. Shorten result to fit in new,
16575 shorter column three. Add DESCRIPTION to log file content.
16577 2003-08-13 Derek Price <derek@ximbiot.com>
16579 * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
16582 2003-08-12 Derek Price <derek@ximbiot.com>
16584 * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
16585 (AT_CHECK_NOESCAPE): Move core functionality to...
16586 (_AT_CHECK): ...this new macro.
16588 2003-08-07 Derek Price <derek@ximbiot.com>
16590 * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
16591 (AT_CHECK_NOESCAPE): ...to this new macro.
16593 2003-07-31 Paul Eggert <eggert@twinsun.com>
16595 * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
16596 in Bash 2.01. Problem reported by Brian Gough in
16597 <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
16599 2003-07-25 John W. Eaton <jwe@bevo.che.wisc.edu>
16601 * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
16602 -lcrt1.o, for OS X. (trivial change)
16604 2003-07-07 Paul Eggert <eggert@twinsun.com>
16606 * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
16607 inside '#ifndef __cplusplus'. Problem reported by
16610 2003-07-06 Bill Clarke <llib@computer.org>
16612 * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
16613 'long', not 'int', for benefit of Sun's recent C++ compilers
16614 (trivial change). See:
16615 http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
16616 (This really should be 'intptr_t', not 'long', but that would
16619 2003-06-25 Akim Demaille <akim@epita.fr>
16621 * lib/Makefile.am (autom4te.cfg): Make it read only.
16622 Depend on Makefile since it contains substitutions.
16623 From Paolo Bonzini.
16624 * lib/autom4te.in (args): Add local.at? for Autotest args.
16625 This change was made on autom4te.cfg which is generated.
16626 Reported by Raja R. Harinath.
16628 2003-06-25 Akim Demaille <akim@epita.fr>
16630 * doc/autoconf.texi (Header Portability): sys/mount.h.
16631 From Gareth McCaughan.
16633 2003-06-23 Akim Demaille <akim@epita.fr>
16635 * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
16636 not all of them. This fixes 1. the fact that when testing
16637 Autoconf there are many many config.log, 2. the incorrect use of
16638 top_srcdir to find config.log.
16639 Don't mix the detailed output of failed test with the summary of
16640 failures. Rather, append detailed log afterwards.
16642 2003-06-23 Akim Demaille <akim@epita.fr>
16644 * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
16645 always run: output config.log on $at_group_log.
16647 2003-06-23 Akim Demaille <akim@epita.fr>
16649 * tests/torture.at (#define header templates): Don't use quotes in
16650 C++ comments as it puzzles Emacs' sh font-lock-mode.
16652 2003-06-23 Akim Demaille <akim@epita.fr>
16654 * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
16655 * lib/autom4te.cfg (args): Add local.at? for Autotest args.
16656 * tests/atspecific.m4: Rename as...
16657 * tests/local.at: This.
16658 * tests/suite.at: Move the globals into...
16659 * tests/local.at: here.
16660 * tests/Makefile.am: Adjust.
16661 * doc/autoconf.texi (testsuite Scripts): Adjust.
16663 2003-06-21 Kevin Ryde <user42@zip.com.au>
16665 * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
16666 error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
16667 ensuring we add -std1 for full-ANSI.
16669 * doc/autoconf.texi (hdrindex): New macro.
16670 Add index entries for portability of various standard header files.
16672 2003-06-20 Akim Demaille <akim@epita.fr>
16674 * configure.ac: Bump to 2.57b.
16676 2003-06-20 Akim Demaille <akim@epita.fr>
16680 2003-06-20 Akim Demaille <akim@epita.fr>
16682 * bin/autom4te.in: Don't rely on $HOME being defined.
16683 Reported by Marc Espie as PR/233.
16685 2003-06-20 Akim Demaille <akim@epita.fr>
16687 * lib/autotest/general.m4: Use at_times_file only if used.
16690 2003-06-20 Akim Demaille <akim@epita.fr>
16692 * config/config.guess, config/config.sub, config/elisp-comp,
16693 * config/install-sh, config/mkinstalldirs, doc/standards.texi:
16694 Update from masters.
16696 2003-06-11 Paolo Bonzini <bonzini@gnu.org>
16698 * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
16699 * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
16700 (TEST_SCRIPT): New diversion.
16701 (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
16702 (AT_CLEANUP): ...to here. Undivert TEST_SCRIPT.
16703 (AT_INIT): Support for expected failures.
16705 2003-06-02 Akim Demaille <akim@epita.fr>
16707 * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
16709 * lib/Autom4te/General.pm (&backname): Remove, no longer used by
16710 Autoconf nor Automake.
16711 (&contents): New, from Automake.
16714 2003-05-28 Paul Eggert <eggert@twinsun.com>
16716 * NEWS, doc/autoconf.texi (Particular Functions),
16717 lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
16718 is the inverse of localtime.
16720 2003-05-25 Alexandre Duret-Lutz <adl@gnu.org>
16722 * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
16723 (handle_exec_errors): New function. Work around $! being
16724 altered by WEXITSTATUS.
16725 (xqx, xsystem): Use handle_exec_errors.
16727 2003-05-23 Alexandre Duret-Lutz <adl@gnu.org>
16729 * lib/Autom4te/General.pm (END): Rewrite exit code processing.
16730 Do not call `_exit()', simply modify `$?'.
16731 (xsystem): Reset $! before running system, and check it afterward.
16732 * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
16733 63 for version mismatches.
16735 2003-05-23 Akim Demaille <akim@epita.fr>
16737 * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
16738 Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
16739 the middle of a line).
16740 * lib/m4sugar/m4sugar.m4: Likewise.
16741 Remove useless spaces in comments.
16743 2003-05-23 Akim Demaille <akim@epita.fr>
16745 * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
16746 exit 63, so that we (or Automake's "missing") can tell the
16747 difference with a plain failure.
16748 * doc/autoconf.texi (Notices): Adjust.
16750 2003-05-23 Akim Demaille <akim@epita.fr>
16752 * Makefile.am, bin/Makefile.am, config/Makefile.am,
16753 * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
16754 White spaces cleanup.
16756 2003-05-22 Jim Meyering <jim@meyering.net>
16757 Paul Eggert <eggert@twinsun.com>
16759 * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
16760 Remove `#include <stdlib.h>' from the list; we should never
16761 make confdefs.h include <stdlib.h> or <cstdlib>, because the
16762 resulting namespace pollution would cause other tests to fail.
16763 Configure scripts run with some older versions of g++ and HP's
16764 aCC would fail due to such an #include. Problems reported by
16765 Matthew Mueller in <http://bugs.debian.org/120704> and by
16767 <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
16768 In the test, use the test declaration before including <stdlib.h>,
16769 as that's closer to how it'll be used.
16771 2003-05-23 Akim Demaille <akim@epita.fr>
16773 * doc/autoconf.texi (Header Portability): ucred.h.
16776 2003-05-22 Paolo Bonzini <bonzini@gnu.org>
16778 Overhaul Autotest's logging: generate separate log files
16779 in testsuite.dir/NNN/testsuite.log, and append them to
16780 testsuite.log instead of re-running the test verbosely.
16782 * lib/autotest/general.m4 (AT_INIT): Use a single redirected
16783 file descriptor, write 0 to at_status_file instead of setting
16784 at_status=0, initialize some new variables (at_status_file,
16785 at_group_log, at_suite_log, at_tee_pipe). Remove the cruft
16786 to rerun the tests, instead append the at_group_log to the
16787 at_suite_log when a test fails.
16788 (AT_SETUP): pipe the test case's output into at_tee_pipe,
16789 with the AS_MESSAGE_LOG_FD redirected to stdout.
16790 (AT_CLEANUP): save the output status in $at_status_file
16791 and restore it, redirect the AS_MESSAGE_LOG_FD back to
16792 its original place.
16793 (AT_CHECK): since tests are run with a redirected stdout,
16794 and used to be re-run in verbose mode, turn some $at_verbose
16795 into echo, and don't redirect the output of testing stdout
16798 * lib/autotest/autoconf.texi (testsuite Scripts): Update
16799 the name of the debugging directory and information about
16802 2003-05-22 Paolo Bonzini <bonzini@gnu.org>
16804 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
16807 2003-05-22 Akim Demaille <akim@epita.fr>
16809 * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
16810 * lib/autoconf/fortran.m4 lib/autoconf/general.m4
16811 * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
16812 * lib/autoconf/status.m4: Fix and adjust copyright notices.
16814 2003-05-22 Akim Demaille <akim@epita.fr>
16816 * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
16817 * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
16818 * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
16819 * lib/autoconf/general.m4, lib/autoconf/headers.m4,
16820 * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
16821 * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
16822 * lib/autoconf/status.m4, lib/autoconf/types.m4,
16823 * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
16824 * tests/atspecific.m4, tests/base.at, tests/compile.at,
16825 * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
16826 * tests/tools.at, tests/torture.at:
16827 Whitespace clean up.
16828 Suggested by Jim Meyering.
16830 2003-05-22 Akim Demaille <akim@epita.fr>
16832 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
16833 ' \t' as '\t ' so that Emacs' whitespace.el keep it.
16834 Reported by Jim Meyering.
16836 2003-05-22 Akim Demaille <akim@epita.fr>
16838 * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
16839 Add AC_HELP_STRING to the obsolete macros section.
16841 Use '@.' for sentences that ended in a capital letter.
16844 2003-05-22 Akim Demaille <akim@epita.fr>
16846 * config/config.guess, config/config.sub, config/elisp-comp,
16847 * config/install-sh, config/mdate-sh, config/mkinstalldirs,
16848 * config/texinfo.tex, doc/standards.texi: Update from masters.
16850 2003-05-21 Paolo Bonzini <bonzini@gnu.org>
16852 * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
16855 2003-05-21 Akim Demaille <akim@epita.fr>
16857 * bin/autoupdate.in ($m4): Fix quotation.
16858 Reported by Martin Mokrejs.
16860 2003-05-19 Paul Eggert <eggert@twinsun.com>
16862 * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
16863 Remove non-ASCII characters.
16865 2003-05-18 Paolo Bonzini <bonzini@gnu.org>
16867 * tests/semantics.at (AC_SEARCH_LIBS): New test.
16868 * tests/semantics.at (AC_CHECK_HEADERS_OLD,
16869 AC_CHECK_HEADERS_NEW): New tests.
16871 2003-05-17 Akim Demaille <akim@epita.fr>
16873 * lib/autoconf/functions.m4: Use the default includes so that
16874 memcmp be declared before being tested.
16875 Reported by Sander Niemeijer.
16876 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
16877 * doc/autoconf.texi (Default Includes): Document
16878 AC_INCLUDES_DEFAULT.
16880 2003-05-17 Akim Demaille <akim@epita.fr>
16882 * lib/autoconf/specific.m4: Include signal.h and unistd.h.
16883 * doc/autoconf.texi (Obsolete Macros): Adjust.
16884 Reported by Werner LEMBERG and Debian Bug 190886.
16886 2003-05-16 Akim Demaille <akim@epita.fr>
16888 * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
16889 user name space clashes.
16890 Reported by Bruno Haible.
16892 2003-05-16 Akim Demaille <akim@epita.fr>
16894 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
16895 * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
16896 them uniform, and more robust to Perl special characters.
16897 Reported by Martin Mokrejs.
16899 2003-05-14 Akim Demaille <akim@epita.fr>
16901 * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
16903 2003-05-14 Akim Demaille <akim@epita.fr>
16905 * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
16908 2003-05-12 Akim Demaille <akim@epita.fr>
16910 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
16912 From Matthias Andree.
16914 2003-05-07 Alexandre Duret-Lutz <adl@gnu.org>
16916 * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
16919 2003-05-06 Akim Demaille <akim@epita.fr>
16921 Don't try to be smart with aclocal 1.8+ because (i) aclocal no
16922 longer updates aclocal.m4 if useless, (ii) if a file m4_included
16923 by aclocal.m4 is changed it might require the importing of another
16924 m4 extension file, i.e., aclocal must be run.
16926 * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
16927 (&parse_args): Use --force with aclocal if required and supported.
16928 (&autoreconf_current_directory): Use &run_aclocal.
16930 2003-05-06 Akim Demaille <akim@epita.fr>
16932 Lock autom4te's cache.
16934 * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
16935 * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
16936 argument instead of a file name, so that the request file remains
16937 open during the whole autom4te run.
16938 ($icache_file): New.
16939 (&freeze): Lock the $icache_file.
16941 2003-04-29 Derek Price <derek@ximbiot.com>
16943 * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
16944 seperator with m4_append_uniq(). It doesn't work.
16945 (AT_CLEANUP): Add `;' to end of at_help_all.
16946 (AT_INIT): Allow --keywords to be specified more than once. When
16947 grepping $at_help_all for keywords, use the field and keyword
16948 seperators to ensure a complete keyword match. Alter at_prev handling
16949 to support the new --keywords behavior.
16951 2003-04-27 Karl Berry <karl@freefriends.org>
16953 * doc/autoconf.texi: Make the dir entries in the autoconf manual
16954 align better with others. I also made some of the individual
16955 entries on one line, for brevity and to make it easier for me to
16956 sort my dir-example file in the Texinfo distribution :).
16958 2003-04-12 Jim Meyering <jim@meyering.net>
16960 * NEWS: Mention the new macro.
16961 * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
16962 * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
16963 * tests/c.at: Test AC_C_RESTRICT.
16964 * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
16966 2003-04-08 Akim Demaille <akim@epita.fr>
16968 * bin/ifnames.in: Skip C++ comments.
16969 From Jeremy Yallop.
16971 2003-04-08 Akim Demaille <akim@epita.fr>
16973 * GNUmakefile (SHELL): Don't assume sh is in /bin/.
16974 From Ilya Zakharevich.
16976 2003-04-08 Akim Demaille <akim@epita.fr>
16978 * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
16979 net/if.h, stdlib.h.
16981 2003-04-01 Derek Price <derek@ximbiot.com>
16983 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
16984 from Akim's checkin of 2003-03-29.
16986 2003-04-01 Derek Price <derek@ximbiot.com>
16988 * tests/torture.at (Configuring subdirectories): Add missing
16989 close-quote for Akim's change from 2003-03-28.
16991 2003-04-01 Akim Demaille <akim@epita.fr>
16993 * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
16994 (AC, AT, MS): these.
16995 (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
16998 * doc/Makefile.am (CLEANFILES): Adjust.
16999 (TEXI2DVI): Make it --batch.
17001 2003-03-31 Derek Price <derek@ximbiot.com>
17003 * lib/autotest/general.m4: Revert the checkin from 2003-03-27
17004 which removed the main loop.
17005 Thanks to Akim Demaille.
17007 2003-03-29 Akim Demaille <akim@epita.fr>
17009 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
17011 From Ilya Zakharevich.
17013 2003-03-29 Akim Demaille <akim@epita.fr>
17015 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
17016 documentation to read is Autoconf's.
17017 Suggested by Paul Eggert.
17019 2003-03-28 Akim Demaille <akim@epita.fr>
17021 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
17022 reading the section "Present But Cannot Be Compiled" when the
17023 header causes problems.
17025 2003-03-28 Akim Demaille <akim@epita.fr>
17027 * tests/torture.at (Configuring subdirectories): Require aclocal
17028 1.4, otherwise the test fails, as it does support configure.ac.
17029 This fixes the "test 40 failed" bug reports.
17031 2003-03-28 Akim Demaille <akim@epita.fr>
17033 * doc/autoconf.texi (C Compiler): `#line' portability.
17034 From Paul Eggert and Nelson H. F. Beebe.
17036 2003-03-27 Derek Price <derek@ximbiot.com>
17038 * lib/autotest/general.m4: Eliminate main loop and reorganize test
17039 layout in order to allow scripting around test groups.
17041 2003-03-27 Derek Price <derek@ximbiot.com>
17043 * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
17044 HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
17045 use new diversions in preparation for accepting new arguments and
17046 allowing scripting around tests.
17047 (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
17049 2003-03-26 Derek Price <derek@ximbiot.com>
17051 * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
17052 obsolete AC_HELP_STRING.
17053 (AC_HELP_STRING): AU_DEFUN to...
17054 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
17055 * tests/m4sh.at (AS_HELP_STRING): New test.
17057 * tests/acgeneral.at: Regenerated.
17059 2003-03-26 Derek Price <derek@ximbiot.com>
17061 * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
17062 sense. Verbosify the diversion definitions comment.
17064 2003-03-26 Derek Price <derek@ximbiot.com>
17066 * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
17069 2003-03-21 Eric Siegerman <eric_97@pobox.com>
17071 * doc/autoconf.texi (Present But Cannot Be Compiled):
17072 Grammar fixes and minor rewording. (trivial change)
17074 2003-03-06 Paul Eggert <eggert@twinsun.com>
17076 Work around a problem noted by Nelson H. F. Beebe with coreutils
17077 4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
17078 2002/05/09) rejects '#line 32768 "configure"' because the line
17080 * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
17082 * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
17083 * doc/autoconf.texi (Generating Sources): Document this.
17085 2003-03-01 Richard Dawe <rich@phekda.freeserve.co.uk>
17087 * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
17088 file name for the m4 program, when it has an "exe" file extension.
17089 DJGPP's error messages include the error code in brackets -
17090 remove the error code during normalization.
17092 2003-02-28 Akim Demaille <akim@epita.fr>
17094 * doc/autoconf.texi (Present But Cannot Be Compiled): New.
17096 2003-02-28 Alexandre Duret-Lutz <adl@gnu.org>
17098 * doc/autoconf.texi (Limitations of Make): Remove the section
17099 about `$<' in inference rules, it was a bogus interpretation of
17100 an old Automake change. Discuss NetBSD, FreeBSD, OpenBSD, and
17101 Tru64 make in the "target lookup" section.
17102 (Automake): Automake 1.5+ no longer requires special tools to be
17103 present on the developer's host.
17105 2003-02-26 Richard Dawe <rich@phekda.freeserve.co.uk>
17107 * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
17108 to a shell that can handle redirection or quoting correctly.
17109 Override SHELL with the shell detected by configure.
17110 Use of $^O suggested by Tim van Holder.
17111 * bin/autom4te.in (BEGIN): Likewise.
17112 * bin/autoreconf.in (BEGIN): Likewise.
17113 * bin/autoscan.in (BEGIN): Likewise.
17114 * bin/autoupdate.in (BEGIN): Likewise.
17115 * bin/ifnames.in (BEGIN): Likewise.
17117 * bin/ifnames.in: Add final newline to help and version messages.
17119 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
17120 to cope with DOS-style absolute paths, when constructing
17123 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
17124 When constructing paths with IFS=:, quote the path. If we're
17125 constructing a DOS-style absolute path, we don't want to split it
17128 * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
17131 2003-02-25 Pavel Roskin <proski@gnu.org>
17133 * bin/autoheader.in: Add missing newline when printing
17134 suggestion how change AC_DEFINE call.
17136 2003-02-24 Paul Eggert <eggert@twinsun.com>
17138 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
17139 2002-09-01 patch by replacing "test -n" with "test -z".
17140 This fixes a bug found by Jeff Painter and reported by Tom Epperly in
17141 <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
17143 * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
17144 to fix a mismatch between example and discussion.
17146 2003-02-24 Kevin Ryde <user42@zip.com.au>
17148 * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
17149 format starting with "-".
17151 2003-02-20 Alexandre Duret-Lutz <adl@gnu.org>
17153 * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
17154 is not portable inside Makefile.
17156 2003-02-20 Akim Demaille <akim@epita.fr>
17158 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
17159 compiler says yeah, but preproc says nope, compiler is right.
17160 Conversely, prompt the reader to send a bug report to the
17161 maintainers of the package, not of Autoconf.
17163 2003-02-20 Klee Dienes <kdienes@apple.com>
17165 * bin/autoreconf.in (autoreconf_current_directory): Properly
17166 handle an empty aclocal.m4.
17168 2003-02-20 Akim Demaille <akim@epita.fr>
17170 * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
17171 $ac_prefix_program.
17174 2002-12-23 Paul Eggert <eggert@twinsun.com>
17176 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
17177 innocuous variant befor including <limits.h> or <assert.h>. This
17178 works around a bug reported by Albert Chin: HP-UX 11i
17179 (and earlier versions) have a <limits.h> that declares
17180 gettimeofday and many other functions.
17182 2002-12-03 Paul Eggert <eggert@twinsun.com>
17186 * NEWS, configure.ac: Update version.
17188 * doc/fdl.texi: Upgrade to FDL version 1.2.
17190 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
17191 nontrivially in main's body, so that f's external declaration is
17192 not optimized away in AIX. This should fix the bug reported by
17194 <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
17196 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
17197 _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
17198 defined, to support freestanding compilers. This should fix the
17199 bug reported by Momchil Velkov in
17200 <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
17202 * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
17203 arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
17204 obsolete AC_CHECK_TYPE. The missing empty arg was reported
17205 by Simon Josefsson in
17206 <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
17208 * Makefile.maint (www-gnu): New macro.
17209 (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
17210 the location has moved.
17212 2002-12-02 Martin Frydl <martin@systinet.com>
17214 * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
17215 \(.*\) match is too long and there is something more to be checked.
17216 <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
17218 2002-11-15 Akim Demaille <akim@epita.fr>
17222 * config/install-sh: chmod +x.
17224 * config/move-if-change: Indenting changes.
17225 * Makefile.am (AUTOMAKE_OPTIONS): Move to...
17226 * configure.ac (AM_INIT_AUTOMAKE): here.
17229 2002-11-14 Akim Demaille <akim@epita.fr>
17233 * config/config.guess, config/config.sub, config/install-sh:
17234 Update from masters.
17236 2002-11-14 Akim Demaille <akim@epita.fr>
17238 * Makefile.maint: Sync with Bison, i.e.:
17239 (po-check): Scan .l and .y files instead of the
17240 .c and the .h files that they generate. This fixes the bug
17241 reported by Tim Van Holder in:
17242 <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
17243 Look for N_ as well as for _. Try to avoid matching #define for
17247 2002-11-14 Akim Demaille <akim@epita.fr>
17249 * doc/autoconf.texi (C Compiler): Compiling several files at once.
17250 From Paul Eggert and Albert Chin-A-Young.
17252 2002-11-14 Akim Demaille <akim@epita.fr>
17254 * doc/autoconf.texi (C Compiler): Solitary backslashes.
17255 From Paul Eggert and Albert Chin-A-Young.
17257 2002-11-14 Kevin Ryde <user42@zip.com.au>
17259 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
17260 than assigning in main, to avoid HP cc +O3 optimizing it away.
17262 2002-11-12 Peter Eisentraut <peter_e@gmx.net>
17264 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
17265 option. Process --recheck after parsing all options. Pass -q
17266 option to configure on --recheck.
17267 (AC_OUTPUT): Pass -q from configure to config.status.
17268 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
17269 arguments to record.
17270 * doc/autoconf.texi (config.status Invocation): Document
17271 config.status -q option.
17273 2002-11-07 Alexandre Duret-Lutz <adl@gnu.org>
17275 * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
17276 Makefile.in if Makefile.am exists.
17277 (output): Strip `.am' from Makefiles. Don't
17278 output AC_CONFIG_FILES if no Makefiles were found.
17280 2002-11-07 Akim Demaille <akim@epita.fr>
17282 * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
17283 (local_updates): New.
17284 * Makefile.maint: Update, from CVS Bison.
17285 (local_updates): New.
17287 2002-11-06 Akim Demaille <akim@epita.fr>
17289 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
17290 declaration in extern "C" too.
17291 Reported by Roberto Bagnara.
17293 2002-11-06 Akim Demaille <akim@epita.fr>
17295 * tests/torture.at (Configuring subdirectories): Don't use grep
17297 * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
17298 Reported by Ezra Peisach.
17300 2002-11-05 Akim Demaille <akim@epita.fr>
17302 * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
17304 We _have_ to stop using the old compatibility scheme that tried to
17305 avoid useless backslashes because Libtool 1.4.3 contains a
17306 AC_DEFINE([error_t], [int],
17307 [Define to a type to use for \`error_t' if it is not
17308 otherwise available.])
17309 We _have_ to quote the single quote and backslashes with \. The
17310 old compatibility scheme saw that ` was backslashed, and therefore
17311 did not quote the single quote. Hence before this patch, Autoconf
17312 was not compatible with Libtool.
17314 2002-11-04 Paul Eggert <eggert@twinsun.com>
17316 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
17317 too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
17318 LC_NAME, LC_PAPER, LC_TELEPHONE.
17319 * doc/autoconf.texi (Special Shell Variables): Mention those vars.
17321 2002-11-04 Akim Demaille <akim@epita.fr>
17325 * Makefile.maint (update, cvs-update, po-update, do-po-update):
17327 * config/texinfo.tex: Update.
17329 2002-11-03 Akim Demaille <akim@epita.fr>
17331 * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
17333 (&autoreconf): here.
17334 ($help, $make, &parse_args, &autoreconf_current_directory):
17336 * doc/autoconf.texi (autoreconf Invocation): Adjust.
17338 2002-10-31 Bruno Haible <bruno@clisp.org>
17340 * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
17341 Change name of cache variable to ac_cv_func_malloc_0_nonnull.
17342 (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
17343 (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
17344 to ac_cv_func_realloc_0_nonnull.
17345 (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
17347 2002-10-31 Akim Demaille <akim@epita.fr>
17349 The test suite was no longer checking for trailing envvars and files.
17351 * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
17352 (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
17354 2002-10-31 Akim Demaille <akim@epita.fr>
17356 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
17357 `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
17358 Make variable, not a shell variable.
17359 Suggested by Bruno Haible.
17361 2002-10-31 Akim Demaille <akim@epita.fr>
17363 * bin/autom4te.in (load_configuration): Reject #args out of any
17366 2002-10-31 Akim Demaille <akim@epita.fr>
17368 * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
17369 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
17370 (_AC_RUN_IFELSE): Use it.
17371 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
17372 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
17373 * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
17376 2002-10-30 Akim Demaille <akim@epita.fr>
17378 * bin/autom4te.in (&parse_args, $help): Support --no-cache.
17379 * doc/autoconf.texi (autom4te Invocation): Adjust.
17380 Suggested by Tim van Holder.
17382 2002-10-29 Paul Eggert <eggert@twinsun.com>
17384 * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
17385 AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
17386 Problem reported by Bruno Haible.
17388 2002-10-29 Akim Demaille <akim@epita.fr>
17390 * doc/autoconf.texi (Header Templates): Put also in words what the
17391 pictures says to assist free style readers.
17392 (Customizing autom4te): s/--cache=/--cache /.
17394 2002-10-29 Akim Demaille <akim@epita.fr>
17396 * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
17398 sparc_address_test returns void.
17399 Use it with an argument, as prototyped.
17402 2002-10-29 Akim Demaille <akim@epita.fr>
17404 * doc/autoconf.texi (Subdirectories): Cygnus dirs have
17405 configure.in, not configure.ac.
17406 Reported by Bruno Haible.
17408 2002-10-29 Akim Demaille <akim@epita.fr>
17410 * tests/torture.at (Deep Package): New test.
17411 (Configuring subdirectories): Don't use a testSubDir as Autotest
17412 now does it itself.
17414 2002-10-29 Akim Demaille <akim@epita.fr>
17416 * bin/autoreconf.in (&parse_args, $help): Support --warnings.
17417 * doc/autoconf.texi (Invoking autom4te): Rename as...
17418 (autom4te Invocation): this, for consistency with the other nodes.
17420 2002-10-29 Akim Demaille <akim@epita.fr>
17422 * lib/autom4te.in (Autoconf): s/automate/autom4te/.
17423 Reported by Ralf Corsepius.
17425 2002-10-29 Akim Demaille <akim@epita.fr>
17427 * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
17428 characters is a back as an `obsolete' warning now.
17429 Reported by Ralf Corsepius.
17431 2002-10-28 Akim Demaille <akim@epita.fr>
17433 * configure.ac: Bump to 2.54c.
17435 2002-10-28 Akim Demaille <akim@epita.fr>
17439 * tests/foreign.at (Libtool): Adjust to broken libtoolize.
17441 2002-10-28 Akim Demaille <akim@epita.fr>
17443 * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
17444 m4 executable names, and different GNU M4 version.
17445 Reported by Ezra Peisach and Paul Jarc.
17447 2002-10-27 Akim Demaille <akim@epita.fr>
17449 * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
17452 2002-10-27 Akim Demaille <akim@epita.fr>
17454 * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
17455 * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
17456 Die when a simple Fortran program cannot be compiled.
17457 * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
17458 Issue a warning if no function is given.
17460 2002-10-27 Akim Demaille <akim@epita.fr>
17462 * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
17463 Move the documentation of AC_TRY_RUN to...
17464 (Obsolete Macros): here.
17465 Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
17466 (autoconf Invocation): Remove the duplicates with `invoking
17468 * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
17469 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
17471 2002-10-27 Akim Demaille <akim@epita.fr>
17473 * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
17474 and AC_LANG_FUNC_LINK_TRY.
17475 (Examining Libraries): Rename as...
17476 (Running the Linker): this.
17477 Document AC_LINK_IFELSE.
17478 Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
17479 (Obsolete Macros): here.
17480 * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
17481 AC_TRY_LINK_FUNC nor AC_TRY_LINK.
17482 * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
17483 * lib/autoconf/headers.m4 (AC_USG): Likewise.
17485 2002-10-27 Akim Demaille <akim@epita.fr>
17487 * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
17489 More `check config.log' messages.
17491 * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
17492 * doc/autoconf.texi (Printing Messages): Document it.
17493 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
17495 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
17496 (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
17497 (_AC_COMPILER_OBJEXT): Likewise.
17498 * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
17499 * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
17501 * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
17504 Deprecate macros with unusual interfaces.
17506 * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
17507 (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
17509 Document the new ones, and proper style.
17511 * doc/autoconf.texi (Generating Sources): New.
17512 Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
17513 (Examining Declarations): Rename as...
17514 (Running the Preprocessor): this.
17515 Document AC_PREPROC_IFELSE.
17516 (Examining Syntax): Rename as...
17517 (Running the Compiler): this.
17518 (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
17519 (Obsolete Macros): Move the definition of AC_TRY_CPP and
17520 AC_TRY_COMPILE here.
17522 2002-10-27 Akim Demaille <akim@epita.fr>
17524 Move sections around.
17526 * doc/autoconf.texi (Customizing autom4te): Remove a lost
17528 Reported by Burno Haible.
17529 (Language Choice): Now the first section of...
17530 (Writing Tests): this section.
17531 Make the introduction less C-centric.
17532 (Guidelines, Test Functions): Move to...
17533 (Writing Test Programs): this new section.
17534 (Test Programs): Merge into...
17537 2002-10-27 Akim Demaille <akim@epita.fr>
17539 * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
17540 autom4te.in that resulted in the need for two `make' runs.
17542 2002-10-27 Akim Demaille <akim@epita.fr>
17544 * configure.ac: Bump to 2.54b.
17546 2002-10-25 Akim Demaille <akim@epita.fr>
17550 * Makefile.maint: Update from the Coreutils.
17551 (AMTAR): Remove, obsolete.
17552 (automake_repo): Update to redhat.com.
17554 Adjust to the fact that ansi2knr is now hosted by Automake.
17555 * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
17556 * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
17557 Update from masters.
17558 * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
17559 autoscan.pre is not to be installed, and autoscan.list is not to
17561 (CLEANFILES): Add autoscan.list.
17562 (autoscan.list): Disable the cache.
17563 * bin/Makefile.am: Include freeze.mk.
17565 2002-10-25 Akim Demaille <akim@epita.fr>
17567 * bin/autom4te.in (&load_configuration): Take the file as
17569 (&parse_args): Handle -C, --cache.
17571 (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
17572 * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
17573 * doc/autoconf.texi (Invoking autom4te): Document --cache.
17574 Now a subsection of...
17575 (Using autom4te): This new section.
17576 (Customizing autom4te): New.
17577 (autom4te.cache): Adjust.
17579 2002-10-25 Akim Demaille <akim@epita.fr>
17581 * doc/autoconf.texi (Generic Headers): More information on how to
17582 use AC_CHECK_HEADERS.
17584 2002-10-25 Akim Demaille <akim@epita.fr>
17586 * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
17589 2002-10-25 Akim Demaille <akim@epita.fr>
17591 * bin/autoscan.in (output): Output AC_PREREQ.
17592 (%needed_macros): Add AC_PREREQ so that configure.ac without one
17595 2002-10-23 Akim Demaille <akim@epita.fr>
17597 * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
17600 2002-10-23 Akim Demaille <akim@epita.fr>
17602 * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
17603 Reported by Peter Eisentraut.
17605 2002-10-23 Akim Demaille <akim@epita.fr>
17607 * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
17610 * doc/autoconf.texi (Particular Headers): Adjust according to Paul
17611 Eggert's recommandations.
17613 2002-10-22 Akim Demaille <akim@epita.fr>
17615 * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
17616 Bison, by Paul Eggert.
17617 * doc/autoconf.texi (Particular Headers): Document it.
17619 2002-10-22 Aaron M. Ucko <amu@alum.mit.edu>
17621 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
17622 `$ac_configure_args'.
17624 2002-10-22 Akim Demaille <akim@epita.fr>
17626 * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
17627 (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
17630 2002-10-22 Akim Demaille <akim@epita.fr>
17632 Restore the 2002-10-11 Akim Demaille <akim@epita.fr> patch:
17634 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
17635 (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
17636 (_AC_CHECK_HEADER_NEW): Rename as...
17637 (AC_CHECK_HEADER): this.
17639 2002-10-22 Akim Demaille <akim@epita.fr>
17641 * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
17642 words about HP-UX cmp: it was actually a user-written cmp.
17644 2002-10-22 Akim Demaille <akim@epita.fr>
17646 * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
17647 are a few warnings.
17648 * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
17649 Quote for Perl '' strings, not "".
17650 * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
17653 2002-10-22 Akim Demaille <akim@epita.fr>
17655 * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
17656 characters is a syntax warning now.
17657 (_AS_QUOTE): Accept $2 as list of characters to quote.
17658 * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
17659 Quote for Perl, not sh.
17660 * bin/autoheader.in: When $debug, report the file which is
17662 * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
17663 `@', to tickle Perl's lists.
17664 Reported by Carlos Velasco.
17666 2002-10-18 Akim Demaille <akim@epita.fr>
17668 * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
17669 missing included files _are_ errors.
17670 Thanks to Alexandre Duret-Lutz.
17671 * tests/tools.at (autom4te cache): Adjust.
17672 * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
17673 (AT_CHECK_M4SUGAR): Use it.
17674 * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
17676 * tests/tools.at (autom4te): Now it does exit 1.
17678 2002-10-17 Akim Demaille <akim@epita.fr>
17680 * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
17681 Fixes the `AC_ARG_VAR' test failures.
17682 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
17683 * lib/freeze.mk (check-forbidden-patterns): New.
17684 * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
17685 * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
17686 * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
17688 Reported months ago by H. Merijn Brand.
17690 2002-10-17 Akim Demaille <akim@epita.fr>
17692 * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
17694 2002-10-16 Paul Eggert <eggert@twinsun.com>
17696 * Makefile.maint (wget_files): Remove ansi2knr.c.
17697 (ansi2knr.c-url_prefix): Remove.
17699 2002-10-16 Akim Demaille <akim@epita.fr>
17701 Because of caching, some files that no longer exist and are no
17702 longer required can still cause errors.
17703 Reported by Alexandre Duret-Lutz.
17705 * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
17706 to frozen files in @ARGV, as @ARGV must remain being a list of
17707 files. Rather, at M4 call sites, use this...
17708 (&files_to_options): New function.
17709 (&freeze): Use &error.
17710 (&up_to_date): If a file that was included according to the cache
17711 is no longer there, then the output is out dated.
17712 (&main): Don't even check whether a file is up to date is anyway
17714 * tests/tools.at (autom4te cache): New.
17716 2002-10-16 Akim Demaille <akim@epita.fr>
17718 * bin/autoconf.as: Kill dead options.
17719 * bin/autoupdate.in (&parse_args): Kill old options.
17720 * bin/autoreconf.in (&parse_args): Remove dead options.
17722 (&autoreconf): Report the directories we enter *and leave*, so
17723 that error messages can be easily located, and use GNU Make
17724 format, so that Emacs' compile mode understands us.
17725 * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
17726 if some file was changed instead of `print'.
17727 * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
17728 (&parse_args): Remove the dead options.
17729 * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
17730 autoheader's quiet mode.
17731 (AT_CHECK_AUTOUPDATE): Likewise.
17732 * tests/tools.at (autoupdate): Adjust.
17733 * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
17735 2002-10-11 Akim Demaille <akim@epita.fr>
17737 No longer use CPP to check for the existing of headers: use CC to
17738 check for compilability.
17740 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
17741 (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
17742 (_AC_CHECK_HEADER_NEW): Rename as...
17743 (AC_CHECK_HEADER): this.
17745 * lib/autotest/general.m4 (AT_INIT): Include the failed test
17746 numbers in the Subject suggestion.
17748 2002-10-11 Akim Demaille <akim@epita.fr>
17750 * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
17751 Suggest using AC_CHECK_DECLS instead.
17753 2002-10-11 Akim Demaille <akim@epita.fr>
17755 * tests/torture.at (AC_ARG_VAR): Have configure report the value
17758 2002-10-11 Akim Demaille <akim@epita.fr>
17760 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
17761 file name to enable parallel executions.
17762 From Sam Varshavchik.
17764 2002-10-08 Akim Demaille <akim@epita.fr>
17766 * bin/autoreconf.in (&autoreconf): Run autopoint before the first
17767 aclocal invocation, as Gettext macros might not be visible to
17769 Instead of blindly running autopoint, scan configure.ac (not the
17770 traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
17771 Reported by Paul D. Smith.
17773 2002-10-08 Paul Eggert <eggert@twinsun.com>
17775 Work around problems found when POSIXLY_CORRECT=1 is set.
17776 None of this seems to have anything to do with POSIX, really,
17777 but it's how Perl getopt works.
17778 * bin/autom4te.in (parse_args): Configure GetOpt with
17780 * doc/autoconf.texi (Invoking autom4te):
17781 --warning -> --warnings.
17782 * lib/autom4te.in: --warning -> --warnings.
17784 2002-09-28 Akim Demaille <akim@epita.fr>
17786 * doc/autoconf.texi (autom4te.cache): New section.
17788 2002-09-28 Akim Demaille <akim@epita.fr>
17790 * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
17791 (Automake-preselections): Update.
17792 * bin/autoreconf.in, bin/autoheader.in: Comment changes.
17794 2002-09-28 Akim Demaille <akim@epita.fr>
17796 * lib/autoscan/autoscan.pre: Move all the remaining rules to...
17797 * lib/autoconf/c.m4, lib/autoconf/functions.m4,
17798 * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
17799 * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
17801 2002-09-28 Akim Demaille <akim@epita.fr>
17803 * tests/torture.at (Configuring subdirectories): Be robust to
17804 users who use config.site to require for a cache: in this case,
17805 the two last configure runs, using two different sets of
17806 arguments, trigger a legitimate error.
17808 2002-09-28 Akim Demaille <akim@epita.fr>
17810 * tests/m4sh.at (Functions Support, Functions and return Support):
17813 2002-09-28 Akim Demaille <akim@epita.fr>
17815 * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
17816 autoheader are Perl programs.
17817 (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
17818 (autom4te): Specify that the sources are in the $srcdir.
17819 * doc/autoconf.texi (Installation Directory Variables): Adjust.
17821 2002-09-28 Akim Demaille <akim@epita.fr>
17823 * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
17824 (tm_zone): Move their rules to...
17825 * lib/autoconf/types.m4: here, using AN_ macros.
17826 * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
17827 (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
17828 (make, mawk, nawk, ranlib, yacc): Similarly, move to...
17829 * lib/autoconf/programs.m4: here.
17830 * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
17831 (ETAGS_FOR_AUTOCONF): New.
17834 2002-09-28 Akim Demaille <akim@epita.fr>
17836 * lib/autoconf/autoscan.m4: New file.
17837 * lib/autoconf/autoconf.m4: Include it.
17838 * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
17839 that were listed in the original autoscan.list.
17840 * lib/autoconf/headers.m4: Similarly with headers.
17841 * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
17842 (.m4.m4f): Don't pass --prepend-include, since that's done by
17843 tests/autom4te itself.
17844 * lib/autoscan/Makefile.am: Include freeze.mk.
17845 (autoscan.list): New target --this file is no longer a source.
17846 (autoscan.pre): New file.
17848 2002-09-28 Akim Demaille <akim@epita.fr>
17850 * bin/autoscan.in (@kinds): Make them singular.
17852 (&init_tables): When --debug, report the list of rules to ease
17853 tracking changes in autoscan.list.
17854 * lib/autoscan/autoscan.list (function): Strip comments, sort.
17856 2002-09-28 Akim Demaille <akim@epita.fr>
17858 * lib/autoscan/functions, lib/autoscan/headers,
17859 * lib/autoscan/identifiers, lib/autoscan/makevars,
17860 * lib/autoscan/programs: Merge into...
17861 * lib/autoscan/autoscan.list: this.
17862 * bin/autoscan.in (&init_tables): Adjust.
17864 2002-09-28 Akim Demaille <akim@epita.fr>
17866 * lib/autoscan/functions, lib/autoscan/headers,
17867 * lib/autoscan/identifiers, lib/autoscan/makevars,
17868 * lib/autoscan/programs: Make the `kind' explicit, i.e., each
17869 `functions' line is now prefixed with `function:'.
17870 * bin/autoscan.in (&init_tables): Adjust.
17872 2002-09-28 Akim Demaille <akim@epita.fr>
17874 From now on, autoscan files must always map a macro name to a
17875 word: there is no `default' macro for autoscan.
17877 * bin/autoscan.in (&init_tables): Reject entries with no macro at
17879 * lib/autoscan/functions, lib/autoscan/headers: Make the macro
17882 2002-09-28 Akim Demaille <akim@epita.fr>
17884 * bin/autoscan.in (%c_keywords): Remove.
17885 (&used): Keep only track of the words we might be interested in.
17886 (&output_kind): It is no longer needed to look for non active
17889 2002-09-27 Akim Demaille <akim@epita.fr>
17891 * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
17892 jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
17893 * lib/autoscan/functions: Adjust.
17894 * doc/autoconf.texi (Particular Functions): Adjust.
17896 2002-09-27 Akim Demaille <akim@epita.fr>
17898 * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
17900 Thanks to Bill Moseley and Paul Eggert.
17901 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
17902 the tmpdir must be created.
17903 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
17904 dir be in the build tree, instead of $TMPDIR.
17906 2002-09-27 Akim Demaille <akim@epita.fr>
17908 * bin/autoscan.in: Improve the comments.
17909 (&parse_args): Drop obsolete undocumented options.
17910 (&output_kind): Output warnings.
17911 * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
17912 (getwd): Trigger a warning.
17914 2002-09-26 Akim Demaille <akim@epita.fr>
17916 * bin/autoreconf.in: Clarify that -s is meaningless without -i.
17917 Reported by Ralf Corsepius.
17918 * doc/autoconf.texi (autoreconf Invocation): Likewise.
17920 2002-09-26 Akim Demaille <akim@epita.fr>
17922 Single suffix rules and seperated dependencies are not portable.
17924 * doc/autoconf.texi (Installation Directory Variables): Update.
17925 (Limitations of Make): Some about `Single Suffix Rules and
17926 Separated Dependencies'.
17927 * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
17928 (ifnames, autoscan, autom4te): Un-factor into several rules.
17930 2002-09-25 Paul Eggert <eggert@twinsun.com>
17932 * BUGS (Interoperability bugs): New section. Mention libtool
17933 1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
17935 2002-09-24 Paul Eggert <eggert@twinsun.com>
17937 Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
17938 make handles suffix-rules differently from GNU make.
17940 * bin/Makefile.am (SUFFIXES, .in): Remove.
17941 (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
17942 Move the body of the old .in rule here.
17944 2002-09-16 Akim Demaille <akim@epita.fr>
17946 i960 compilers create `b.out' files by default.
17947 Reported by Ralf Corsepius.
17949 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
17950 (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
17952 2002-09-13 Paul Eggert <eggert@twinsun.com>
17954 * doc/autoconf.texi (Particular Headers): Remove obsolete
17955 reference to `struct timezone' in the description of
17958 2002-09-13 Akim Demaille <akim@epita.fr>
17962 * config/config.sub, config/config.guess: Update.
17963 * Makefile.maint: Update from bits of the Coreutils 4.5.1.
17964 * Makefile.am: Adjust.
17966 2002-09-13 Akim Demaille <akim@epita.fr>
17968 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
17969 reading config.log when the compiler is rejected.
17970 Suggested by Guido Draheim.
17972 2002-09-13 Akim Demaille <akim@epita.fr>
17974 * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
17975 (chdir_init) might hang when stat'ing mounted directories.
17976 Reported by Vance Shipley.
17978 2002-09-12 Akim Demaille <akim@epita.fr>
17980 * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
17983 2002-09-12 Akim Demaille <akim@epita.fr>
17985 * doc/autoconf.texi (Defining Symbols): Present two different
17986 prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
17987 difference between 1 argument calls, and 2-3 argument calls.
17989 2002-09-12 Peter Eisentraut <peter_e@gmx.net>
17991 * doc/autoconf.texi: Review grammar and punctuation.
17993 2002-09-11 Paul Eggert <eggert@twinsun.com>
17995 * doc/autoconf.texi: Fix minor formatting, spelling, and
17997 (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
17998 AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
18001 2002-09-11 Akim Demaille <akim@epita.fr>
18003 * doc/autoconf.texi (Questions): Rename as...
18005 (Defining Directories): New.
18007 2002-09-09 Akim Demaille <akim@epita.fr>
18009 * doc/autoconf.texi (Making testsuite Scripts): Update.
18010 Suggested by Nishio Futoshi.
18012 2002-09-09 Koji Arai <JCA02266@nifty.ne.jp>
18014 * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
18015 plain `@' is wanted.
18017 2002-09-09 Akim Demaille <akim@epita.fr>
18019 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
18020 `duplicates', since the algorithm was too naive and could keep
18021 `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
18022 keep `--prefix foo --prefix bar' as `--prefix foo bar'.
18023 Reported by Ralf Corsepius.
18024 * tests/torture.at (Configuring subdirectories): Exercise these
18027 2002-09-09 Akim Demaille <akim@epita.fr>
18029 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
18030 looking for a replacement file.
18031 * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
18032 directory is relative.
18033 * doc/autoconf.texi (Generic Functions): Clarify the replacement
18034 directory definition.
18035 Reported by Andreas Schwab and Jim Meyering.
18037 2002-09-06 Akim Demaille <akim@epita.fr>
18039 * doc/autoconf.texi (Setting Output Variables): Clarify what
18040 precious variables are.
18041 Suggested by Pontus Skoeld.
18043 2002-09-05 Akim Demaille <akim@epita.fr>
18045 * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
18046 (ifnames, autoscan, autom4te): Since we don't only depend on
18047 configure.ac variables (such as VERSION etc.), but also on prefix
18048 and so forth, depend on Makefile, not configure.ac.
18049 Reported by Alexandre Duret-Lutz.
18050 * doc/autoconf.texi (Installation Directory Variables): Adjust.
18052 2002-09-05 Kevin Ryde <user42@zip.com.au>
18054 * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
18055 doesn't seem to be confined to ia64, just say "some versions".
18057 2002-09-04 Akim Demaille <akim@epita.fr>
18059 * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
18061 * Makefile.am (maintainer-clean-local): Remove.
18062 (MAINTAINERCLEANFILES): Remove COPYING.
18064 2002-09-03 Paul Eggert <eggert@twinsun.com>
18066 * doc/autoconf.texi (Configuration Commands): Remove obsolete
18067 example for AC_CONFIG_COMMANDS_PRE. Problem reported by Marcus
18070 2002-09-03 Akim Demaille <akim@epita.fr>
18072 * configure.ac: Bump to 2.53d.
18073 * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
18074 as of today, on Automake's team suggestion.
18076 2002-09-03 Akim Demaille <akim@epita.fr>
18080 2002-09-02 Akim Demaille <akim@epita.fr>
18082 * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
18084 * configure.ac: Disable SITE_MACRO_DIR.
18086 2002-09-02 Jim Meyering <meyering@lucent.com>
18088 * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
18089 i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
18090 Also, tweak grammar: s/make sure to/be sure to/.
18092 2002-09-02 Paul Eggert <eggert@twinsun.com>
18094 * doc/autoconf.texi (Limitations of Builtins): Explain why logical
18095 directory names are generally preferable to physical names.
18097 2002-09-02 Akim Demaille <akim@epita.fr>
18099 * lib/Autom4te/General.pm (&update_file): s/die/error/.
18100 Reported by Raja R. Harinath.
18101 * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
18102 * bin/autoupdate.in: Use error instead of die.
18104 2002-09-01 Paul Eggert <eggert@twinsun.com>
18106 * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
18107 ordinary shell concatenation rather than echo+tr+sed command that
18108 runs afoul of a long-line-related sed bug in Solaris 8.
18110 * bin/autoheader.in (parse_args): --warning -> --warnings.
18112 * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
18113 stdout, as traditional "ls" does.
18114 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
18115 _AC_COMPILER_EXEEXT_O): Likewise.
18116 * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
18118 * bin/autoconf.as: Add --prepend-include option. This patch was
18119 applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
18120 but bin/autoconf.in is generated automatically from bin/autoconf.as.
18122 * bin/autoconf.in, configure: Regenerate.
18124 * doc/autoconf.texi (Special Shell Variables): Mention
18125 ENV, MAIL, MAILPATH, PS1, PS2, PS4. Index PWD.
18127 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
18128 MAILPATH and set PS1, PS2, PS4 to default values, to work
18129 around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
18130 For LC_ALL etc, first try to set to "C" as POSIX requires and as
18131 the Autoconf documentation specifies; fall back to "unset" only if
18132 this fails. Use a shell for-loop for this rather than an m4 loop,
18133 to shorten the output script.
18135 2002-08-30 Paul Eggert <eggert@twinsun.com>
18137 * doc/autoconf.texi (Special Shell Variables): Mention POSIX
18138 1003.1-2001's requirements for CDPATH. Give a simpler workaround
18139 for the CDPATH problem. Document PWD.
18140 (Limitations of Builtins): Document the problem that "cd $foo" and
18141 "ls $foo" may refer to different directories in shells conforming
18142 to POSIX 1003.1-2001. Use PS1 rather than CDPATH for "unset"
18143 example, since the old example is now out of date.
18145 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
18146 FOO" and "ls FOO" talk about different directories; this catches
18147 problems when POSIX 1003.1-2001 "cd" fails due to symlink
18150 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
18151 of rolling our own unset.
18152 (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
18153 in practice we needn't worry about CDPATH if unset doesn't work.
18155 * Makefile.in, aclocal.m4, bin/Makefile.in,
18156 config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
18157 lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
18158 lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
18159 lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
18160 tests/Makefile.in: Regenerate with Automake 1.6.3.
18162 * config/config.guess, config/config.sub, config/mkinstalldirs:
18165 * configure: Regenerate with self.
18167 2002-08-30 Kevin Ryde <user42@zip.com.au>
18169 * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
18172 2002-08-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18174 * bin/autom4te.in (Request::load): Correctly test for "do" read
18177 2002-08-29 Akim Demaille <akim@epita.fr>
18179 * lib/Autom4te/General.pm (&xqx): New.
18180 (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
18181 hand, which is not portable.
18183 * bin/autom4te.in: Use them.
18184 Use &error instead of die.
18185 * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
18188 2002-08-17 Paul Eggert <eggert@twinsun.com>
18190 * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
18191 default list of compilers to try, since it was long ago superseded
18192 by the ksh fc builtin. Suggested by Steven G. Johnson.
18194 2002-07-31 Alexandre Duret-Lutz <duret_g@epita.fr>
18196 * doc/autoconf.texi (Invoking autom4te): End the option table,
18197 fixing a bug introduced by the previous patch.
18198 (Limitations of Make): Add a 'target lookup' subentry in the
18199 'VPATH' entry. Rewrite all `make' occurences as `@command{make}'.
18201 2002-07-29 Mark D. Roth <roth@feep.net>
18203 * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
18204 options and use $AUTOM4TE_PATH.
18205 * doc/autoconf.texi: Remove documentation of autom4te
18206 --include-envvar and --site-macro-subdir options and document
18207 use of $AUTOM4TE_PATH.
18208 * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
18209 arguments from each language section.
18211 2002-07-29 Paul Eggert <eggert@twinsun.com>
18213 * doc/install.texi: Include copyright symbol in copyright notice.
18215 * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
18217 (AM_MAKEINFOFLAGS): New macro.
18218 * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
18219 * Makefile.am (INSTALL): Use the new macros.
18220 Use -o rather than --output, since "missing" does not grok --output.
18222 2002-07-25 Alexandre Duret-Lutz <duret_g@epita.fr>
18224 * doc/autoconf.texi (Limitations of Make): Escaped newlines in
18225 comments do not always work. Never trust the exit status of
18228 2002-07-24 Kevin Ryde <user42@zip.com.au>
18230 * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
18231 Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
18233 2002-07-23 Paul Eggert <eggert@twinsun.com>
18235 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
18236 Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
18237 apparently treats PATH="nonexistent" as if it contained ".".
18238 Bug reported by Stefan `Sec' Zehl.
18240 2002-07-22 Alexandre Duret-Lutz <duret_g@epita.fr>
18242 * doc/autoconf.texi (Limitations of Make): Mention the special
18243 handling of the obj/ directory by BSD make.
18245 2002-07-20 Kevin Ryde <user42@zip.com.au>
18247 * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
18250 2002-07-19 Akim Demaille <akim@epita.fr>
18252 * doc/autoconf.texi (Function Portability): `exit'.
18253 (Programming in M4sh): Ethymology of M4sh.
18255 2002-07-19 Akim Demaille <akim@epita.fr>
18257 * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
18259 2002-07-18 Akim Demaille <akim@epita.fr>
18263 2002-07-18 Akim Demaille <akim@epita.fr>
18265 * config/config.guess, config/config.sub: Update.
18267 2002-07-18 Akim Demaille <akim@epita.fr>
18269 Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
18272 * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
18273 * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
18274 * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
18276 2002-07-18 Akim Demaille <akim@epita.fr>,
18277 Alexandre Duret-Lutz <duret_g@epita.fr>
18279 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
18280 _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
18282 2002-07-17 Russ Allbery <rra@stanford.edu>
18284 * doc/autoconf.texi (Initializing configure): Clarify the
18285 description of the tarname default.
18287 2002-07-17 Andreas Buening <andreas.buening@nexgo.de>
18289 * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
18290 ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
18291 latter was not run.
18293 2002-07-17 Akim Demaille <akim@epita.fr>
18295 * lib/Autom4te/General.pm (find_file): Browse the directories in
18296 the order they are given.
18298 2002-07-17 Akim Demaille <akim@epita.fr>
18300 * tests/wrapsh.as, tests/wrappl.as: Merge into...
18301 * tests/wrapper.as: this.
18302 * tests/Makefile.am, configure.ac: Adjust.
18304 2002-07-17 Mark D. Roth <roth@feep.net>
18306 * configure.ac: Add --enable-site-macro-dir option.
18307 * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
18308 * bin/autom4te.in: Add --prepend-include, --include-envvar, and
18309 --site-macro-subdir options.
18310 * bin/autoconf.in: Add --prepend-include option.
18311 * bin/autoheader.in: Add --prepend-include option.
18312 * bin/autoreconf.in: Add --prepend-include option.
18313 * bin/autoscan.in: Add --prepend-include option.
18314 * bin/autoupdate.in: Add --prepend-include option.
18315 * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
18316 macro directory, remove note that include path directories are
18317 used in reverse order, and document --prepend-include option.
18318 * lib/autom4te.in: Use --prepend-include instead of --include.
18319 * tests/wrapsh.in: Use --prepend-include instead of --include.
18321 2002-07-17 Akim Demaille <akim@epita.fr>
18323 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
18325 * doc/autoconf.texi (Initializing configure): Adjust.
18327 2002-07-17 Akim Demaille <akim@epita.fr>
18329 * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
18330 (_AC_FUNC_MALLOC): New.
18331 (AC_FUNC_MALLOC): Use the latter.
18332 Define HAVE_MALLOC to 0 if broken.
18333 * doc/autoconf.texi (Particular Functions): Adjust.
18335 2002-07-16 Akim Demaille <akim@epita.fr>
18337 * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
18338 * doc/autoconf.texi (C Compiler): Adjust.
18340 2002-07-09 Akim Demaille <akim@epita.fr>
18342 * doc/autoconf.texi: Properly set the ``header'' part.
18344 2002-07-09 Akim Demaille <akim@epita.fr>
18346 * doc/autoconf.texi (Systemology): Some about Darwin.
18348 2002-07-09 Alexandre Duret-Lutz <duret_g@epita.fr>
18350 * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
18351 Don't use AC_REQUIRE in AU_DEFUN.
18353 2002-07-09 Art Haas <ahaas@neosoft.com>
18355 * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
18357 2002-07-02 Alexandre Duret-Lutz <duret_g@epita.fr>
18359 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
18360 bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
18361 lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
18362 so that Emacs setups GNU style for perl-mode and cperl-mode.
18364 2002-06-27 Paul Eggert <eggert@twinsun.com>
18366 * config/install-sh: Quote $src. Prefer || to test's -o option,
18367 as per "Limitations of Builtins".
18368 * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
18369 * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
18371 * tests/mktests.sh: Use grep instead of fgrep, as per
18372 "Limitations of Builtins".
18374 2002-06-15 Paul Eggert <eggert@twinsun.com>
18376 * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
18377 autom4te_perllibdir): Set to top build dir or src dir as appropriate,
18378 so that we consistently test the just-built programs.
18379 * tests/wrappl.as: Likewise.
18381 2002-06-12 Paul Eggert <eggert@twinsun.com>
18383 * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
18384 name, so that symlinks to 'autoconf' work properly. Bug reported
18386 * bin/autoheader.in (AUTOM4TE): Likewise.
18387 * bin/autoreconf.in (autoconf, autoheader): Likewise.
18388 * bin/autoscan.in (autom4te): Likewise.
18389 * bin/autoupdate.in (autom4te): Likewise.
18391 * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
18392 btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
18395 2002-06-11 Andreas Schwab <schwab@suse.de>
18397 * doc/autoconf.texi: Add more dir entries.
18399 2002-06-10 Alexandre Duret-Lutz <duret_g@epita.fr>
18401 * bin/autom4te.in ($cache): Don't define using `$me', the name
18402 of the cache should not depend on the name under which autom4te
18405 2002-06-07 Akim Demaille <akim@epita.fr>
18407 * tests/tools.at (autoconf: forbidden tokens, basic)
18408 (autoconf: forbidden tokens, exceptions): Adjust to the change of
18409 words in autom4te.in.
18411 2002-06-07 Peter Eisentraut <peter_e@gmx.net>
18413 * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
18414 _AC_LANG_PROGRAM_C_F77_HOOKS.
18416 2002-06-07 Akim Demaille <akim@epita.fr>
18418 * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
18420 (AC_REPLACE_FNMATCH): this.
18421 * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
18422 AC_FUNC_FNMATCH_GNU.
18424 2002-06-07 Akim Demaille <akim@epita.fr>
18426 * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
18427 Rosetta Stone for Unix.
18429 2002-06-07 Akim Demaille <akim@epita.fr>
18431 * bin/autom4te.in (warn_forbidden): When rejecting a token,
18432 suggest m4_pattern_allow.
18433 Suggested by Adam J. Richter.
18435 2002-06-07 Akim Demaille <akim@epita.fr>
18437 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
18438 ac_config_libobj_dir.
18439 (AC_CONFIG_LIBOBJ_DIR): New.
18440 * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
18441 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
18442 Use ac_config_libobj_dir to find the replacement files.
18443 (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
18444 (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
18445 (AC_REPLACE_FNMATCH_GNU): these.
18446 (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
18447 * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
18448 * tests/mktests.sh (ac_exclude_list): Don't check
18449 AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
18451 2002-06-06 Paul Eggert <eggert@twinsun.com>
18453 * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
18454 if ln doesn't work.
18456 * doc/autoconf.texi (Configuration Links): Likewise.
18457 (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
18459 2002-06-05 Paul Eggert <eggert@twinsun.com>
18461 * config/config.guess, config/config.sub, config/texinfo.tex:
18462 Update from masters.
18464 2002-05-29 Paul Eggert <eggert@twinsun.com>
18466 * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
18467 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
18468 * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
18470 * lib/autoconf/Makefile.am (check-local): Likewise.
18471 * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
18472 * lib/autoconf/types.m4 (commentary only): Likewise.
18473 * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
18474 * lib/autotest/Makefile.am (check-local): Likewise.
18475 * lib/m4sugar/Makefile.am (check-local): Likewise.
18476 * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
18477 * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
18479 * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
18480 * doc/autoconf.texi (Particular Programs): Document them.
18481 (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
18484 2002-05-27 Paul Eggert <eggert@twinsun.com>
18486 * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
18487 * NEWS, doc/autoconf.texi (Particular Types): Document it.
18488 * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
18489 instead of AC_MBSTATE_T, which never existed.
18491 2002-05-23 Akim Demaille <akim@epita.fr>
18493 * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
18494 version of Autoconf that is discussed.
18496 2002-05-22 Paul Eggert <eggert@twinsun.com>
18498 * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
18499 from the default list of compilers to try. Suggested by
18501 * NEWS: Document the above.
18502 * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
18504 2002-05-17 Paul Eggert <eggert@twinsun.com>
18506 * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
18507 the member is itself an aggregate. Bug reported by Sergey Poznyakoff.
18508 This improves on an earlier suggestion by H. Peter Anvin.
18510 2002-05-16 Paul Eggert <eggert@twinsun.com>
18512 AC_FUNC_FNMATCH now tests only for POSIX compatibility.
18513 AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
18514 Both macros now accept an optional source-dir arg.
18515 New macro AC_GNU_SOURCE to define _GNU_SOURCE.
18517 * NEWS: Document this.
18518 * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
18520 * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
18521 (AC_FUNC_FNMATCH): Use it. Test only for POSIX conformance,
18522 not for GNU extensions; this undoes part of the 2000-11-03 change,
18523 reverting to 2.13-compatible behavior.
18524 Add new optional argument DIR.
18525 (AC_FUNC_FNMATCH_GNU): New macro.
18527 * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
18529 2002-05-08 Paul Eggert <eggert@twinsun.com>
18531 * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
18532 Don't require AC_SYS_POSIX_TERMIOS. The test is unnecessary,
18533 and it causes a 'test' syntax error if it fails.
18534 Bug reported by Stephen Gildea.
18536 * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
18537 If prototypes are supported, use them to check this at compile-time,
18538 instead of trying to check it at run-time. If we must do a run-time
18539 check, assume that setvbuf is standard when cross-compiling, as
18540 nonstandard setvbuf occurs only on ancient and unlikely hosts.
18541 Bug reported by Paul D. Smith.
18543 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
18544 argument specifying location of getloadavg.c. This removes a
18545 FIXME. This idea was taken from Jim Meyering's implementation in
18547 * doc/autoconf.texi (Particular Functions): Document this.
18548 Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
18549 that's what the code does; this fixes a bug reported by
18552 2002-05-03 Akim Demaille <akim@epita.fr>
18554 * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
18555 autopoint instead of gettextize.
18556 ($uses_alocal): Rename as...
18557 ($uses_aclocal): this.
18558 * doc/autoconf.texi (autoreconf Invocation): Adjust.
18559 Suggested by Bruno Haible.
18561 2002-05-03 Akim Demaille <akim@epita.fr>
18563 * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
18565 2002-04-29 Paul Eggert <eggert@twinsun.com>
18567 * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
18568 files to be 1 second older; just set them to be the same time.
18569 Also, sleep 1 second after the first aclocal, to work around
18570 problems with sub-second time stamps on the input files.
18572 2002-04-29 Thien-Thi Nguyen <ttn@gnu.org>
18574 * doc/autoconf.texi: Mention "set -e -x" lossage
18575 under node "Limitations of Builtins".
18577 2002-04-29 Akim Demaille <akim@epita.fr>
18579 * doc/install.texi: Better wording for setting variables when
18581 From Christian Cornelssen.
18583 2002-04-29 Akim Demaille <akim@epita.fr>
18585 * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
18586 of lack of $LINENO support, then the test will compare the $LINENO
18587 in testsuite vs. the lineno in the test file. This is wrong, of
18589 Be sure to protect it.
18590 Reported by Patrick Welche.
18592 2002-04-25 Akim Demaille <akim@epita.fr>
18594 * doc/autoconf.texi (Obsolete Macros): Typo.
18595 Reported by Vladimir Volovich.
18597 2002-04-25 Akim Demaille <akim@epita.fr>
18599 * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
18600 than some of the input files, hence, on the second run of aclocal,
18601 if some of its input are younger, make them older.
18602 Suggested by Paul Eggert.
18604 2002-04-25 Akim Demaille <akim@epita.fr>
18606 * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
18607 Thanks to Paul Eggert.
18609 2002-04-25 Akim Demaille <akim@epita.fr>
18611 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
18612 and ac_subst_vars be sh variables containing the list of
18613 AC_SUBST_FILES'ed and AC_SUBST'ed identifiers. Output them in the
18615 (_AC_INIT_PREPARE): Use them to log them.
18616 (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
18617 (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
18618 _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
18619 _AC_SUBST_FILES and _AC_SUBST_VARS.
18620 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
18622 2002-04-24 Akim Demaille <akim@epita.fr>
18624 * bin/autoreconf.in (autoreconf): Run automake after autoconf and
18625 autoheader, so that automake does not complain about a missing
18626 config.h.in that was to be created.
18628 2002-04-23 Akim Demaille <akim@epita.fr>
18630 * bin/autoheader.in (parse_args): --warning takes an argument.
18633 2002-04-22 Peter Eisentraut <peter_e@gmx.net>
18635 * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
18636 and bb.out when cleaning up.
18638 2002-04-22 Akim Demaille <akim@epita.fr>
18642 2002-04-22 Akim Demaille <akim@epita.fr>
18644 * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
18646 2002-04-22 Akim Demaille <akim@epita.fr>
18648 * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
18650 Reported by Gregory Giannoni.
18652 2002-04-22 Akim Demaille <akim@epita.fr>
18654 * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
18655 Fixes false failures on Darwin.
18657 2002-04-21 Paul Eggert <eggert@twinsun.com>
18659 * TODO, bin/autoupdate.in, doc/autoconf.texi,
18660 lib/autoconf/general.m4, lib/autoconf/libs.m4,
18661 lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
18662 tests/tools.at: Minor spelling and grammar fixes.
18664 2002-04-20 Paul Eggert <eggert@twinsun.com>
18666 * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
18667 ZSH_VERSION fixes. Bug reported by Raja R Harinath.
18668 * lib/autotest/general.m4 (AT_INIT): Likewise.
18669 * tests/atgeneral.m4 (AT_INIT): Likewise.
18671 2002-04-19 Paul Eggert <eggert@twinsun.com>
18673 * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
18674 doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
18675 lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
18676 lib/autoconf/functions.m4, lib/autoconf/general.m4,
18677 lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
18678 lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
18679 tests/atspecific.m4, tests/semantics.at, tests/torture.at:
18680 Minor spelling and grammar fixes.
18682 * doc/autoconf.texi: Follow the outline suggested in the GNU
18683 Sample Texts sections of the Texinfo 4.2 manual. Most
18684 importantly, this makes sure that the copyright notices appear in
18685 all output formats. You probably need Texinfo 4.2 to generate
18688 Fix some bugs when using "$@" when there might be zero positional
18689 arguments in cases where this matters.
18691 * bin/autoconf.as: Rewrite so that the problem does not come up.
18692 * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
18693 * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
18694 * lib/autotest/general.m4 (AT_INIT): Likewise.
18696 * bin/autoheader.in: Use 'case' statement to work around problem.
18697 * bin/auto4mte.in: Likewise.
18698 * bin/autoreconf.in: Likewise.
18699 * bin/autoscan.in: Likewise.
18700 * bin/autoupdate.in: Likewise.
18701 * bin/ifnames.in: Likewise.
18703 * doc/autoconf.texi (Shell Substitutions): Document the problem.
18705 * lib/autotest/general.m4 (AT_INIT):
18706 Use Zsh alias to work around problem.
18707 * tests/atgeneral.m4 (AT_INIT): Likewise.
18709 * tests/c.at: We can't have zero arguments, so remove workaround
18710 that is not portable to Zsh.
18712 2002-04-19 Alexandre Duret-Lutz <duret_g@epita.fr>
18714 * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
18715 from aclocal.m4 too.
18717 2002-04-12 Akim Demaille <akim@epita.fr>
18719 * tests/wrappl.as: New, M4sh precursor of wrappl.in.
18721 2002-04-10 Akim Demaille <akim@epita.fr>
18723 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
18724 workaround for ${1+"$@"}.
18725 * doc/autoconf.texi (Shell Substitutions): Explain it.
18726 From Oliver Kiddle and Peter Stephenson.
18728 Have M4sh perform minimal shell sanitizing.
18730 * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
18732 (_AS_PREPARE): this new macro.
18734 (AS_INIT): Invoke AS_SHELL_SANITIZE.
18735 * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
18737 Adjust Autoconf and Autotest.
18739 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
18740 AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
18741 * lib/autotest/general.m4 (AT_INIT): Likewise.
18742 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
18743 Invoke _AS_PREPARE (not AS_PREPARE) in addition to
18746 Use this M4sh to generate Autoconf's shell scripts.
18748 * tests/wrapsh.as: New, precursor of wrapsh.in.
18749 * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
18750 on Autotest and M4sh.
18751 ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
18752 (wrapsh.in): New target.
18753 * bin/autoconf.as: New, precursor of autoconf.in.
18754 (autoconf.in): New target.
18756 2002-04-09 Alexandre Duret-Lutz <duret_g@epita.fr>
18758 * doc/autoconf.texi (Limitations of Make): Mention the issue
18759 with indented comments in rules.
18761 2002-04-09 Andreas Schwab <schwab@suse.de>
18763 * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
18764 ac_top_builddir when setting ac_abs_top_builddir.
18766 2002-04-06 Kevin Ryde <user42@zip.com.au>
18768 * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
18769 (Portable Shell): Cross reference to Systemology.
18771 2002-04-05 Akim Demaille <akim@epita.fr>
18773 * bin/autoreconf.in (autoreconf): Be sure to accumulate the
18774 directories when descending in a SUBDIRS.
18775 Reported by Ezra Peisach.
18777 2002-04-04 Andreas Schwab <schwab@suse.de>
18779 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
18780 contains no literal separators.
18782 2002-04-03 Akim Demaille <akim@epita.fr>
18784 * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
18785 (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
18786 Use dnl, not the KILL diversion.
18788 (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
18789 (AC_CONFIG_LINKS): here.
18791 Don't use the KILL diversion, as it kills spurious output, which
18792 results in failures being hidden.
18793 Use m4_defn where appropriate.
18794 (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
18795 after the second argument.
18797 * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
18798 syntax, as it is provided by M4sugar.
18799 * tests/torture.at (Multiple AC_CONFIG_FILES): New.
18801 2002-04-03 Andreas Schwab <schwab@suse.de>
18803 * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
18804 expanded if $# <= 2.
18806 * bin/autoreconf.in (autoreconf): Run automake after rerunning
18809 2002-04-03 Akim Demaille <akim@epita.fr>
18811 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
18812 (_AC_COMPILER_EXEEXT_REJECT): New.
18813 Also recognize *.bb and *.bbg as compilation byproducts.
18814 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
18815 (_AC_COMPILER_OBJEXT): Use them.
18816 Fixes Debian #138666.
18818 2002-04-02 Peter Eisentraut <peter_e@gmx.net>
18820 Integrate AC_PROG_CC_STDC into AC_PROG_CC.
18822 * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
18823 AU_DEFUN old name. Use _AC_COMPILE_IFELSE.
18824 (AC_PROG_CC): Call _AC_PROG_CC_STDC.
18825 (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
18826 (AC_C_CONST): Same.
18827 (AC_C_INLINE): Same.
18828 (AC_C_PROTOTYPES): Same. Require AC_PROG_CC instead.
18829 * doc/autoconf.texi, NEWS: Document.
18830 * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
18833 2002-04-02 Akim Demaille <akim@epita.fr>
18835 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
18836 _AS_MKDIR_P_PREPARE.
18838 2002-03-28 Kevin Ryde <user42@zip.com.au>
18840 * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
18841 to avoid versions of HP C which don't allow that.
18843 2002-03-27 Paul Eggert <eggert@twinsun.com>
18845 * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
18846 (AS_SHELL_SANITIZE): Invoke it.
18847 (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
18849 2002-03-26 Akim Demaille <akim@epita.fr>
18851 * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
18853 2002-03-26 Akim Demaille <akim@epita.fr>
18855 * doc/autoconf.texi (Introduction): The GNATS base moved.
18857 2002-03-25 Paul Eggert <eggert@twinsun.com>
18859 * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
18860 as POSIX requires, as it doesn't work with Zsh.
18861 * doc/autoconf.texi (Assignments): Document the problem.
18863 2002-03-25 Alexandre Duret-Lutz <duret_g@epita.fr>
18865 * doc/autoconf.texi (Limitations of Make): Mention more issue
18866 about VPATH, overriding of macros in sub-makes, and handling of
18869 2002-03-21 Paul Eggert <eggert@twinsun.com>
18871 * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
18872 problem with here-document buffer boundaries.
18874 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
18875 when reinvoking the shell, to work around problems with installers
18876 who put strange things like "cd" commands in their environments.
18878 2002-03-19 Akim Demaille <akim@epita.fr>
18880 * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
18883 2002-03-19 Akim Demaille <akim@epita.fr>
18885 * bin/autoscan.in (scan_file): Specify the location in `&used'
18889 2002-03-19 Akim Demaille <akim@epita.fr>
18891 * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
18892 From Nishio Futoshi.
18894 2002-03-19 Akim Demaille <akim@epita.fr>
18896 * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
18898 2002-03-18 Paul Eggert <eggert@twinsun.com>
18900 * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
18901 (Limitations of Usual Tools): Add mkdir section.
18903 * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
18904 (AS_MKDIR_P): Require it. Use mkdir -p if available, falling
18905 back on AS_DIRNAME to compute prefixes otherwise; this is
18906 roughly what mkinstalldirs does. That way, we need not have
18907 our own filename disassembler. The old disassembler did not
18908 work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
18910 * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
18911 Create at_test_all by a series of assignments,
18912 not by a single assignment of a long string. The latter causes ksh
18913 version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
18914 presumably because of a buffer overrun.
18916 2002-03-14 Paul Eggert <eggert@twinsun.com>
18918 * lib/autotest/general.m4 (at_times_skip):
18919 Renamed from at_times. Now a boolean.
18920 ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
18921 says 'times: not found'.
18923 2002-03-14 Akim Demaille <akim@epita.fr>
18925 * bin/autoreconf.in (&study_gettextize): New.
18926 (&autoreconf): Handle newest gettextize.
18927 Rerun aclocal if needed.
18928 Suggested by Andreas Schwab.
18930 2002-03-13 Akim Demaille <akim@epita.fr>
18932 * doc/autoconf.texi (Special Shell Variables): More about IFS.
18934 2002-03-13 Akim Demaille <akim@epita.fr>
18936 * doc/autoconf.texi (Header Portability): New.
18937 Add information about stdint.h and inttypes.h from Paul Eggert.
18939 2002-03-13 Akim Demaille <akim@epita.fr>
18941 * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
18945 2002-03-12 Akim Demaille <akim@epita.fr>
18947 * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
18950 2002-03-11 Andreas Schwab <schwab@suse.de>
18952 * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
18953 does not do it if --with-lispdir is given.
18955 2002-03-08 Akim Demaille <akim@epita.fr>
18959 2002-03-08 Akim Demaille <akim@epita.fr>
18961 * doc/autoconf.texi (Subdirectories): Clarify that the
18962 subdirectory should exist.
18964 2002-03-08 Akim Demaille <akim@epita.fr>
18966 * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
18968 2002-03-08 Akim Demaille <akim@epita.fr>
18970 * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
18971 aliases the actual variables, and modifications of the former
18974 2002-03-08 Akim Demaille <akim@epita.fr>
18976 * bin/autom4te.in (&handle_m4): Protect us from corrupted file
18977 because of C-c: have m4 output in tmp files, then mv them.
18979 2002-03-08 Akim Demaille <akim@epita.fr>
18981 * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
18982 * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
18983 * bin/ifnames.in: Copyright update.
18985 2002-03-08 Akim Demaille <akim@epita.fr>
18987 * doc/autoconf.texi (Invoking autom4te): New.
18989 2002-03-05 Akim Demaille <akim@epita.fr>
18991 * doc/autoconf.texi (Specifying Names): Clarification suggested by
18994 2002-03-05 Akim Demaille <akim@epita.fr>
18998 2002-03-04 Akim Demaille <akim@epita.fr>
19000 * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
19001 * lib/autoconf/general.m4 (AC_INIT): More informative error
19002 message for LIBOBJ.
19004 2002-03-04 Akim Demaille <akim@epita.fr>
19006 * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
19009 2002-03-04 Akim Demaille <akim@epita.fr>
19011 * doc/autoconf.texi (Transforming Names): Equality between target
19012 and host is irrelevant.
19013 (Specifying Names, Canonicalizing): Remove all references to the
19014 backward compatibility hooks. Rather, collect them all into...
19015 (Hosts and Cross-Compilation): this new section.
19016 * doc/install.texi (System Type): Ditto.
19017 * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
19018 that `--host' implies cross-compilation.
19020 2002-03-04 Akim Demaille <akim@epita.fr>
19022 * doc/autoconf.texi (Evaluation Macros): New.
19023 * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
19025 (_m4_foreach): Define the variant with immediate evaluation so
19026 that it contains exactly the items, not an expression which
19027 evaluation is the current item.
19028 (m4_re_string, m4_re_word): Don't over quote them.
19030 2002-03-04 Akim Demaille <akim@epita.fr>
19032 Instead of having stacking `shift's evaluated at the end, let
19033 `foreach' loops immediately evaluate them.
19035 * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
19036 $*. This is the n-th time I change my mind, but hopefully this is
19039 (m4_text_wrap): Use m4_foreach, which is finally correct _and_
19041 (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
19042 it was only a hack for m4_text_wrap.
19043 (m4_car2): Remove, replaced by...
19045 (_m4_foreach): Adjust.
19046 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
19047 m4_bpatsubst for clarification.
19049 2002-03-04 Akim Demaille <akim@epita.fr>
19051 * doc/autoconf.texi (Changequote is Evil): New.
19053 2002-03-03 Kevin Ryde <user42@zip.com.au>
19055 * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
19056 on old systems like SunOS.
19058 2002-03-01 Peter Eisentraut <peter_e@gmx.net>
19060 * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
19061 lib/autoconf/functions.m4, lib/autoconf/general.m4,
19062 lib/autoconf/headers.m4, lib/autoconf/lang.m4,
19063 lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
19066 2002-02-28 Akim Demaille <akim@epita.fr>
19068 * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
19069 message to be sent.
19071 2002-02-28 Kevin Ryde <user42@zip.com.au>
19073 * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
19075 2002-02-25 Akim Demaille <akim@epita.fr>
19077 * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
19078 From Akinori Musha.
19080 2002-02-13 Alexandre Duret-Lutz <duret_g@epita.fr>
19082 * lib/Autom4te/XFile.pm (getline, getlines): New functions,
19083 translate \r\n to \n.
19085 2002-02-07 Akim Demaille <akim@epita.fr>
19089 2002-02-07 Akim Demaille <akim@epita.fr>
19091 Fix Autoconf PR/209.
19092 Also reported by Frank Denis.
19094 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
19096 2002-02-07 Akim Demaille <akim@epita.fr>
19098 Fix Autoconf PR/207:
19099 AC_PREFIX_PROGRAM fails with dashed program names
19101 * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
19102 variable when looking for the prefix program.
19103 Now it also works for shell variables.
19105 2002-02-07 Akim Demaille <akim@epita.fr>
19107 * doc/autoconf.texi (Limitations of Builtins): More about
19110 2002-02-06 Akim Demaille <akim@epita.fr>
19112 * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
19113 case/esac, some shells don't support it.
19114 Reported by Zack Weinberg.
19115 * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
19117 2002-02-06 Akim Demaille <akim@epita.fr>
19119 * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
19120 sure not to introduce newlines in at_groups.
19121 * lib/autotest/Makefile.am (autotest.m4f): Typo.
19123 2002-02-06 Akim Demaille <akim@epita.fr>
19125 * tests/torture.at (Configuring subdirectories): Skip if aclocal
19128 2002-02-05 Paul Eggert <eggert@twinsun.com>
19130 * doc/autoconf.texi (Specific Compiler Characteristics):
19131 Describe HP-UX cc bug workaround more accurately.
19132 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
19134 * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
19135 cross-compilers, too. This undoes some of the most recent change
19138 2002-02-05 Akim Demaille <akim@epita.fr>
19140 * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
19141 to make sure they are up to date when `check' is run.
19143 2002-02-05 Akim Demaille <akim@epita.fr>
19145 * doc/autoconf.texi (Making testsuite Scripts): Document
19148 2002-02-05 Akim Demaille <akim@epita.fr>
19150 * lib/freeze.mk: New.
19152 2002-02-05 Akim Demaille <akim@epita.fr>
19154 Implement `autom4te --freeze'.
19156 * bin/autom4te.in (&freeze): New.
19157 * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
19158 * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
19160 2002-02-05 Akim Demaille <akim@epita.fr>
19162 * bin/autom4te.in (&parse_args): Implement `frozen files are
19163 optional are the sum of the previous files on the command line'.
19164 Also, pass `--reload-state=' on them, so...
19165 (handle_m4): don't.
19166 * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
19167 (M4sh): Rely on M4sugar.
19168 (Autotest, M4sh, M4sugar): Use frozen files.
19170 2002-01-31 Akim Demaille <akim@epita.fr>
19172 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
19173 * doc/autoconf.texi (Initializing configure): Adjust.
19175 2002-01-30 Akim Demaille <akim@epita.fr>
19177 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
19178 alphanumeric to `-' instead of `_'.
19180 2002-01-30 Akim Demaille <akim@epita.fr>
19182 * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
19183 for plain code, the other for cross-compilation code. The latter
19184 is now run with GCC only.
19185 * doc/autoconf.texi (Compilers and Preprocessors): New.
19187 2002-01-30 Akim Demaille <akim@epita.fr>
19189 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
19191 * doc/autoconf.texi (Initializing configure): Explain how to
19192 change AC_INIT default values.
19194 2002-01-29 Akim Demaille <akim@epita.fr>
19196 * tests/torture.at (Configuring subdirectories): Use configure.in,
19197 so that aclocal 1.4 works.
19198 Reported by Alexandre Duret-Lutz and Larry Schmitt.
19200 2002-01-28 Akim Demaille <akim@epita.fr>
19202 * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
19205 2002-01-28 Akim Demaille <akim@epita.fr>
19207 * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
19208 AUTOTEST_PATH *after* it was set.
19209 Don't put `.' in the PATH: the user should be precise and `./' if
19210 needed. In addition, given that the test suite does some `cd', if
19211 `.' is in the path, the `tested programs' sections will report
19212 programs found in the test suite's directory, while during the
19213 tests (performed in their own directory), these programs are no
19214 longer visible. In other words, the results is confusing and
19216 * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
19218 2002-01-24 Akim Demaille <akim@epita.fr>
19222 2002-01-24 Akim Demaille <akim@epita.fr>
19224 * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
19225 * doc/autoconf.texi: Finally add Akim as an author.
19227 2002-01-24 Akim Demaille <akim@epita.fr>
19229 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
19230 (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
19231 Bourne. Use /bin/sh.
19232 From Andreas Buening.
19234 2002-01-24 Akim Demaille <akim@epita.fr>
19236 * config/config.guess, config/config.sub, config/texinfo.tex:
19237 Update from masters.
19239 2002-01-24 Akim Demaille <akim@epita.fr>
19241 * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
19242 * config/auxdir.m4, config/cond.m4, config/depend.m4,
19243 * config/init.m4, config/install-sh.m4, config/lispdir.m4,
19244 * config/missing.m4, config/sanity.m4, config/select.m4,
19245 * config/strip.m4: Remove, to ease sync'ing with any version of
19248 2002-01-24 Akim Demaille <akim@epita.fr>
19250 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
19251 (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
19252 Reported by Geir Ove Myhr.
19254 2002-01-21 Akim Demaille <akim@epita.fr>
19256 * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
19258 2002-01-21 Akim Demaille <akim@epita.fr>
19260 * lib/Autom4te/General.pm (getopt): Use a more GNUish error
19261 message on invalid options.
19262 * bin/autom4te.in (parse_args): Don't use
19263 Autoconf::General::getopt with non valid options.
19265 2002-01-17 Jim Meyering <meyering@lucent.com>
19267 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
19268 $ac_cv_exeext so we don't use an old, invalid, cached value.
19270 2002-01-11 Akim Demaille <akim@epita.fr>
19272 * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
19274 * doc/autoconf.texi (Function Portability): Document the strnlen
19276 (Particular Functions): Document AC_FUNC_STRNLEN.
19277 * lib/autoscan/functions: Adjust.
19279 2002-01-06 Akim Demaille <akim@epita.fr>
19281 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
19282 package.m4, since is really depends upon configure.ac, not
19284 * doc/autoconf.texi (testsuite Scripts): Adjust.
19285 * tests/Makefile.am (package.m4): New.
19286 EXTRA_DIST it since its a source.
19288 2002-01-06 Akim Demaille <akim@epita.fr>
19290 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
19291 of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
19292 and PACKAGE_BUGREPORT from here...
19293 (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
19295 (_AC_INIT_PREPARE): AC_DEFINE these symbols.
19296 * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
19297 (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
19298 * tests/tools.at (autoheader): Adjust.
19299 * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
19301 2002-01-06 Akim Demaille <akim@epita.fr>
19303 * bin/autoscan.in (scan_file): Use `&used'.
19305 2002-01-03 Akim Demaille <akim@epita.fr>
19307 * doc/autoconf.texi (Output): Improved wording regarding use of
19311 2001-12-18 Kevin Ryde <user42@zip.com.au>
19313 * doc/autoconf.texi (Function Portability): Add notes on sscanf
19314 sometimes needing writable input.
19316 2001-12-17 Jim Meyering <meyering@lucent.com>
19318 * doc/autoconf.texi (New Macros): Tweak wording.
19320 2001-12-14 Akim Demaille <akim@epita.fr>
19322 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
19323 trailing files, don't apply `-rf' to files which might not be
19324 created by configure (core, core.*, and *.core), but just `rm -f'.
19325 Suggested by Jonathan Kamens.
19327 2001-12-14 Aaron M. Ucko <amu@alum.mit.edu>
19329 * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
19331 2001-12-14 Akim Demaille <akim@epita.fr>
19333 * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
19335 2001-12-13 Peter Eisentraut <peter_e@gmx.net>
19337 * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
19338 abs_builddir, top_buildpath to abs_top_builddir, srcpath to
19339 abs_srcdir, top_srcpath to abs_top_srcdir.
19340 (_AC_OUTPUT_FILES): Adjust.
19341 * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
19342 * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
19343 * tests/wrappl.in, tests/wrapsh.in: Adjust.
19345 2001-12-12 Steven G. Johnson <stevenj@alum.mit.edu>
19347 * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
19348 C/Fortran linking on HP/UX, by extracting the Fortran library
19349 search path from the LPATH line in the $F77 -v output.
19351 2001-12-12 Kevin Ryde <user42@zip.com.au>
19353 * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
19354 forbidden file descriptors table.
19356 2001-11-26 Akim Demaille <akim@epita.fr>
19358 * bin/autoscan.in (%c_keywords): Build it at top level.
19359 Map to 1 in order to simplify its uses.
19361 2001-11-26 Akim Demaille <akim@epita.fr>
19363 * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
19364 Remove $filepath, useless.
19365 (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
19366 variables, they are really part of the tokens.
19367 Split the input line on spaces and then look for tokens.
19368 Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
19369 because of `lex$U.$(OBJEXT)'.
19370 (&scan_files): Use "@list" instead of join.
19371 * doc/Makefile.am (CLEANFILES): Add *.fns.
19373 2001-11-26 Akim Demaille <akim@epita.fr>
19375 * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
19376 Remove, replaced by...
19377 * tests/wrappl.in: Be common for all the Perl executables.
19378 In particular autoscan and autoheader want -I.
19379 * configure.ac: Adjust.
19380 * lib/autoscan/headers: errno.h is portable.
19382 2001-11-26 Akim Demaille <akim@epita.fr>
19384 * bin/autoscan.in (used): New.
19387 2001-11-26 Akim Demaille <akim@epita.fr>
19389 * bin/autoscan.in (&scan_c_file): Better parsing of CPP
19391 (&scan_sh_file): Remove a duplicate pattern.
19392 (&check_configure_ac): Use long options.
19393 * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
19395 2001-11-26 Akim Demaille <akim@epita.fr>
19397 * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
19398 Before, having a line containing the opening of a multi line
19399 comment made the whole line be ignored.
19401 2001-11-26 Akim Demaille <akim@epita.fr>
19403 * doc/autoconf.texi (Using an Autotest Test Suite): New.
19404 (testsuite Scripts): Be one of its subsection.
19405 (Autotest Logs): New.
19407 2001-11-26 Akim Demaille <akim@epita.fr>
19409 Test groups are now run two directories deeper.
19411 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
19412 top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
19414 * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
19415 top_srcdir, builddir and top_builddir.
19416 Use `at_*dir' relatively to the directory containing the
19417 suite, use `*dir' when relatively to the current group dir.
19419 2001-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
19421 * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
19422 lib/autoconf/functions.m4, lib/autoconf/headers.m4,
19423 tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
19426 2001-11-22 Alexandre Duret-Lutz <duret_g@epita.fr>
19428 * doc/autoconf.texi (Using System Type): Add an example of `case
19429 $host' usage so people quit using `case $target' everywhere.
19431 2001-11-22 Akim Demaille <akim@epita.fr>
19433 * doc/autoconf.texi (Installation Directory Variables): Englishoes
19434 spotted by Jim Meyering.
19436 2001-11-16 Paul Eggert <eggert@twinsun.com>
19438 This patch implements a `long double' suggestion by Oliver Kiddle.
19440 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
19441 static, to catch errors if the value isn't known at compile-time
19442 and the compiler supports dynamic arrays. Change its name from
19443 `_array_' to `test_array' to avoid potential name clashes.
19444 (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
19445 test. Do not define HAVE_LONG_DOUBLE if `long double' is no
19446 better than double. Catch a bug in GCC 2.95.2 x86.
19447 * doc/autoconf.texi (C Compiler): Document the above.
19450 2001-11-13 Akim Demaille <akim@epita.fr>
19452 * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
19454 * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
19456 2001-11-13 Akim Demaille <akim@epita.fr>
19458 * lib/autotest/general.m4 (AT_INIT): After having run the test
19459 group, go back to the initial directory, not to at_suite_dir.
19461 2001-11-13 Akim Demaille <akim@epita.fr>
19463 * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
19464 (AT_DATA_AUTOCONF): Also protect @&t@ from autom4te.
19465 (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
19467 (AT_CHECK_CONFIGURE): Use absolute paths.
19468 (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
19469 The problem is still the old one: there is no means in M4 (that I
19470 know about) to create a defining macro, because there is no means
19471 to create `$1' etc., therefore, the defining macro ``swallows''
19472 all the arguments meant to the defined macro.
19474 2001-11-13 Akim Demaille <akim@epita.fr>
19476 * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
19477 (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
19479 * tests/aclocal.m4: Remove, as it is no longer used.
19481 2001-11-13 Akim Demaille <akim@epita.fr>
19483 * lib/autotest/general.m4: Change `tests?' into `groups?' in
19484 variable names when referring to a single test group, or to
19485 `suite' when referring to the whole test suite.
19486 `at_last_test' is removed: m4 compute at_format itself.
19487 (at_stdout, at_stder1, at_stderr): New variables.
19488 (AT_CHECK): Use them.
19490 2001-11-13 Akim Demaille <akim@epita.fr>
19492 * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
19494 Create `testsuite.dir/003/run' instead of `testsuite.003'.
19495 Do it as soon as a test fails, don't wait till the end of the test
19497 Don't remove $as_me.[0-9]*, since these files no longer exist.
19499 2001-11-13 Akim Demaille <akim@epita.fr>
19501 * tests/tools.at: Use absolute paths, since we are no longer run
19504 2001-11-13 Akim Demaille <akim@epita.fr>
19506 Now that tests are running in their own private dir, there is no
19507 need to list the files to remove at the end of tests groups.
19509 * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
19510 (AT_data_files, at_data_files): Remove.
19511 (AT_CLEANUP, AT_DATA): Simplify.
19513 Remove the group dir if !debug && !failed.
19514 * tests/atspecific.m4: Adjust.
19516 2001-11-13 Akim Demaille <akim@epita.fr>
19518 Start a new layout for Autotest: `testsuite' creates
19519 `testsuite.dir' in which the at-check-line etc. files are to be
19520 found, and `testsuite.dir/003' where the test group 3 is run.
19522 * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
19523 at_check_line_file, at_format, at_test_normalized, at_group_dir
19525 Create the directories.
19526 Use absolute paths for at- files.
19527 (AT_CHECK): Adjust.
19529 2001-11-11 Michael Matz <matz@kde.org>
19531 * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
19533 (m4_car): Properly quote arguments.
19535 2001-11-13 Akim Demaille <akim@epita.fr>
19537 * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
19538 with stricter rules on LIBOBJS.
19540 2001-11-12 Paul Eggert <eggert@twinsun.com>
19542 * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
19543 * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
19546 2001-11-12 Akim Demaille <akim@epita.fr>
19548 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
19550 2001-11-12 Akim Demaille <akim@epita.fr>
19552 * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
19553 * lib/autoconf/functions.m4, lib/autoconf/general.m4,
19554 * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
19555 * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
19556 * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
19557 specify to what the macro should be defined (typically to 1).
19559 2001-11-12 Akim Demaille <akim@epita.fr>
19561 * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
19564 2001-11-12 Akim Demaille <akim@epita.fr>
19566 * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
19567 AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND. This validates the
19568 definition used by Automake where LEX is +/- "${missing} lex" and
19569 `missing' itself contains variables.
19571 2001-11-12 Akim Demaille <akim@epita.fr>
19573 * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
19574 Now that M4sh pushes BODY, the comments were output at the end of
19577 2001-11-08 Akim Demaille <akim@epita.fr>
19579 * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
19580 that we can trace macros from aclocal.m4.
19581 Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
19582 obsoleted, and redirect to the former anyway.
19583 Reported by Ralf Corsepius.
19585 2001-11-08 Akim Demaille <akim@epita.fr>
19587 * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
19588 processed only if present.
19589 * tests/torture.at (Configuring subdirectories): Use autoreconf
19590 instead of successive calls to autoconf.
19591 Add a nonexistent subdirectory to exercise the patch above.
19592 Reported by Ralf Corsepius.
19594 2001-11-08 Kevin Ryde <user42@zip.com.au>
19596 * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
19597 doesn't accept .S files.
19599 2001-11-07 Akim Demaille <akim@epita.fr>
19601 * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
19602 * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
19603 (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
19604 * bin/autom4te.in (warn_forbidden): New.
19605 (handle_output): Use it.
19606 Read m4_pattern_forbid with messages.
19608 2001-11-05 Akim Demaille <akim@epita.fr>
19610 * bin/autom4te.in (--normalize): Remove.
19611 * lib/autom4te.in: Adjust.
19613 2001-11-05 Akim Demaille <akim@epita.fr>
19615 * tests/Makefile.am (testsuite): Rename this target as...
19616 ($(TESTSUITE)): this.
19619 2001-11-05 Alexandre Duret-Lutz <duret_g@epita.fr>
19621 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
19622 the --prefix option, also remove it's argument.
19624 2001-11-05 Akim Demaille <akim@epita.fr>
19626 * doc/autoconf.texi (testsuite Invocation): Update.
19627 (Writing testsuite.at): Update.
19629 2001-11-03 Akim Demaille <akim@epita.fr>
19631 * doc/autoconf.texi: s/@code/@command/ where appropriate.
19633 2001-11-03 Akim Demaille <akim@epita.fr>
19635 * lib/Autom4te/General.pm: (&catfile, &canonfile)
19636 (&file_name_is_absolute): New, wrappers around routines from
19638 Use and export them.
19639 (&find_configure_ac): Optionally take a directory where to look at.
19640 * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
19642 Default @ARGV to `.', not find_configure_ac.
19643 (&autoreconf): Argument is a directory.
19644 Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
19645 * doc/autoconf.texi (autoreconf Invocation): Update.
19647 2001-11-03 Akim Demaille <akim@epita.fr>
19649 * lib/Autom4te/General.pm (@export_vars, @export_subs)
19650 (@export_forward_subs): New.
19651 Add basename, dirname, and fileparse.
19653 * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
19654 Don't look for aclocal flags if we already know aclocal is not
19656 Move aclocal.m4t only if it exists.
19657 Reported by Ezra Peisach.
19659 2001-11-03 Akim Demaille <akim@epita.fr>
19661 * bin/autoreconf.in (&parse_args): Work only on the configure.ac
19662 passed on command line, defaulting to ./configure.ac if present.
19663 (&maybe_autoreconf, File::Find): Remove, unused.
19664 (&autoreconf): If autoconf is not used, don't try to trace.
19666 2001-11-02 Akim Demaille <akim@epita.fr>
19668 * configure.ac: Bump to 2.52g.
19670 2001-11-02 Akim Demaille <akim@epita.fr>
19674 2001-11-02 Akim Demaille <akim@epita.fr>
19676 * config/config.guess, config/config.sub, doc/standards.texi:
19677 * config/lispdir.m4: Update from masters.
19678 * configure.ac: Bump to 2.52f.
19680 2001-11-02 Akim Demaille <akim@epita.fr>
19682 * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
19683 Don't run aclocal when aclocal.m4 is not from aclocal.
19685 Don't run libtoolize and gettextize if --install is not given.
19687 2001-11-01 Paul Eggert <eggert@twinsun.com>
19689 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
19690 be invoked before _AS_LINENO_PREPARE.
19691 (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
19692 than character ranges.
19694 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
19695 invoking AS_BASENAME. Set the locale variables to 'C' if
19696 possible, as POSIX requires this to get the traditional
19698 * doc/autoconf.texi (Special Shell Variables): Describe the above.
19700 2001-10-31 Paul Eggert <eggert@twinsun.com>
19702 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
19703 with {}, as that triggers a bug in Bash 2.05.
19705 (_AS_LINENO_PREPARE): Use Sed rather than
19706 Awk. Fix the sed prepass to work even if there are multiple
19707 instances of $LINENO on the same line. Do not substitute for
19708 other variables like $LINENOT. Do not check file dates; such a
19709 check is unreliable on sufficiently fast machines, and removing
19710 the check makes the code simpler and more reliable. Check for
19711 output and chmod failures.
19713 * doc/autoconf.texi (Special Shell Variables): Document
19716 2001-10-31 Akim Demaille <akim@epita.fr>
19718 * tests/Makefile.am (atconfig): Remove this target, Automake
19721 2001-10-31 Akim Demaille <akim@epita.fr>
19723 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
19724 AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
19725 provided, while it is optional.
19726 * configure.ac: Adjust.
19728 2001-10-26 Paul Eggert <eggert@twinsun.com>
19730 * NEWS, README, configure.ac, lib/Autom4te/General.pm,
19731 lib/Autom4te/Struct.pm:
19732 Require Perl 5.005_03 instead of just 5.005, as some tests fail
19735 * doc/autoconf.texi (Special Shell Variables): Document some
19736 more LINENO gotchas, particularly with respect to the Awk+Sed hack.
19738 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
19739 (_AS_LINENO_PREPARE): Use it instead of shell eval, since
19740 eval $LINENO is not portable in practice.
19742 2001-10-24 Akim Demaille <akim@epita.fr>
19744 * lib/Autom4te/General.pm (backname): New.
19746 2001-10-24 Akim Demaille <akim@epita.fr>
19748 * m4/: Remove, merged into...
19751 2001-10-23 Tim Van Holder <tim.van.holder@pandora.be>
19753 * doc/autoconf.texi (Shellology): Mention the problems with bash
19754 2.05's use of ANSI quoting in its `set' builtin.
19756 2001-10-22 Paul Eggert <eggert@twinsun.com>
19758 * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
19759 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
19760 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
19761 POSIX decided to standardize on the int flavor of strerror_r.
19762 Always do char* test, as there's no reason not to.
19763 Assign to a char* var, to catch strerror_r that returns int*.
19765 * doc/autoconf.texi (Particular Functions):
19766 Document the above changes. Also, document the fact that
19767 AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
19769 * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
19771 2001-10-20 Akim Demaille <akim@epita.fr>
19773 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
19774 the executable was missing from the log.
19776 2001-10-20 Akim Demaille <akim@epita.fr>
19778 * lib/Autom4te/General.pm (&update_file): If destination is
19779 unchanged, remove the source.
19780 (&up_to_date_p): Don't be verbose, be debug.
19781 * bin/autoreconf.in: No longer support --m4dir.
19782 (&autoreconf): Display the full path of the configure.ac we are
19784 Trace it only once.
19785 Be sure to honor --force with gettextize.
19786 Always run aclocal.
19787 * doc/autoconf.texi: Adjust.
19789 2001-10-20 Akim Demaille <akim@epita.fr>
19791 * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
19793 * bin/autoreconf.in (&autoreconf): Do not run gettextize when
19794 `intl' is already present, as it refuses unless --force.
19795 (&parse_args): Use -I, --include instead of the old Autoconf
19797 ($localdir, $autoconf_dir): Remove.
19799 (&maybe_autoreconf): New, to preserve $_ for File::Find.
19801 2001-10-19 Jens Petersen <petersen@redhat.com>
19803 * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
19804 * doc/autoconf.texi (Particular Programs): Likewise.
19806 2001-10-19 Akim Demaille <akim@epita.fr>
19808 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
19809 file in @configure_input@.
19810 Don't mention `automatically' in addition to `generated'.
19811 * tests/torture.at (#define header templates): Adjust.
19813 2001-10-19 Akim Demaille <akim@epita.fr>
19815 * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
19816 comment, explain how to install automatic mode selection.
19819 2001-10-19 Ezra Peisach <epeisach@zif.mit.edu>
19821 * bin/autoreconf.in (autoreconf): Display the path to the
19822 configure.ac being studied.
19824 2001-10-18 Paul Eggert <eggert@twinsun.com>
19826 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
19827 long, to work around a bug in the HP C compiler version HP92453-01
19830 * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
19831 (AS_BASENAME_EXPR): New macro.
19832 (AS_BASENAME_SED): Do not assume GNU sed semantics.
19833 (AS_BASENAME): Use 'basename' if that works; then try 'expr';
19834 and fall back on 'sed' only if the other two fail. This makes
19835 AS_BASENAME act more like AS_DIRNAME.
19836 (as_me): Shell-quote the argument of AS_BASENAME, in case $0
19837 contains white space.
19838 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
19839 Use AS_DIRNAME, since I think it's now DOS-friendly.
19840 * tests/m4sh.at (DIRNAME_TEST): New arg $3.
19841 Allow "dirname //FOO" to return either / or //, as POSIX allows
19844 2001-10-10 Akim Demaille <akim@epita.fr>
19846 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
19847 `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
19850 2001-10-10 Akim Demaille <akim@epita.fr>
19852 * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
19853 m4_define, since...
19854 (_AS_ECHO_N): AS_REQUIREs it.
19856 2001-10-10 Akim Demaille <akim@epita.fr>
19858 * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
19859 (AC_INCLUDES_DEFAULT): Move to...
19860 * lib/autoconf/headers.m4: here.
19861 * lib/autoconf/types.m4: Comment changes.
19862 * doc/autoconf.texi: Specify where the default includes are used
19863 in the macro prototypes.
19865 2001-10-09 Akim Demaille <akim@epita.fr>
19867 * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
19870 2001-10-08 Akim Demaille <akim@epita.fr>
19872 * bin/autoreconf.in (&autoreconf): Remove debugging code.
19873 (&parse_args): Pass verbosity/debugging options to subtools when
19874 --debug, not when --verbose.
19875 * lib/autom4te.in (Autoreconf-preselections): New.
19876 (Autoconf): Use it.
19878 2001-10-08 Akim Demaille <akim@epita.fr>
19880 * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
19882 2001-10-08 Akim Demaille <akim@epita.fr>
19884 * doc/autoconf.texi (autoreconf Invocation): Adjust.
19885 * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
19887 2001-10-08 Akim Demaille <akim@epita.fr>
19889 * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
19890 (Syntax of the shell scripts): Don't.
19891 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
19892 bother with $force since...
19893 * lib/Autom4te/General.pm: does.
19895 2001-10-08 Akim Demaille <akim@epita.fr>
19897 * bin/autoreconf.in: Rewrite in Perl.
19898 * configure.ac: Adjust.
19899 * lib/Autom4te/General.pm (&up_to_date_p): New.
19900 * bin/autom4te.in (&up_to_date_p): Use it.
19902 (&up_to_date): this.
19904 2001-10-08 Akim Demaille <akim@epita.fr>
19906 * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
19907 (m4_list_cmp): Use $0 to reinvoke yourself.
19908 (m4_patsubsts): New.
19909 (m4_strip, m4_version_unletter): Use it.
19910 * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
19912 2001-10-08 Akim Demaille <akim@epita.fr>
19914 * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
19915 * lib/autoconf/libs.m4, lib/autoconf/status.m4,
19916 * lib/autoconf/types.m4, lib/autotest/general.m4,
19917 * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
19918 * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
19919 m4_bregexp, m4_bpatsubst, and m4_bmatch.
19920 * doc/autoconf.texi (Redefined M4 Macros): Adjust.
19922 2001-10-08 Akim Demaille <akim@epita.fr>
19924 * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
19926 2001-10-08 Akim Demaille <akim@epita.fr>
19928 * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
19929 * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
19930 * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
19931 * tests/tools.at, tests/m4sh.at: Use it.
19932 * tests/m4sh.at: Don't rely on Autoconf macros.
19933 (DIRNAME_TEST): Also exercise the expr variant.
19934 * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
19935 preferred M4sugar extension is now `.4s'.
19936 * tests/README: Remove.
19938 2001-10-08 Akim Demaille <akim@epita.fr>
19940 * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
19941 (m4_provide_if): this.
19942 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
19943 * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
19944 (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
19945 M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
19947 2001-10-08 Akim Demaille <akim@epita.fr>
19949 Use `add-log-current-defun-function' for ChangeLog creation.
19950 Suggested by Tom Tromey.
19952 * lib/emacs/autotest-mode.el (autotest-mode-map): New.
19953 (autotest-mode): Adjust.
19954 * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
19955 'comment-region onto `C-c ;'.
19956 Comments are `#', not `dnl'.
19957 (autoconf-current-defun): New.
19958 (autoconf-font-lock-keywords): Recognize `m4_defun'.
19960 2001-10-08 Akim Demaille <akim@epita.fr>
19962 * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
19963 * lib/m4sugar/m4sh.m4: here.
19964 (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
19965 * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
19966 (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
19967 include handle the m4_pattern_*, no longer push the
19968 BODY diversion nor set the /bin/sh line, AS_INIT does it.
19969 * lib/autotest/general.m4 (AT_INIT): Likewise.
19970 * tests/base.at: Adjust the tests to use AS_INIT.
19971 * tests/tools.at (AT_DATA_FORBIDDEN): New.
19972 (autoconf: forbidden tokens): Adjust to work on M4sh instead of
19975 2001-10-07 Paul Eggert <eggert@twinsun.com>
19977 * doc/autoconf.texi (config.status Invocation):
19978 CONFIG_SHELL defaults to a shell that supports LINENO if available.
19980 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
19981 shell does not support LINENO, and if CONFIG_SHELL is unset or
19982 empty, and if we can find a shell that does support LINENO,
19983 then set CONFIG_SHELL to that shell and then re-execute
19984 ourselves with CONFIG_SHELL.
19986 2001-10-05 Paul Eggert <eggert@twinsun.com>
19988 * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
19989 doesn't exist. Remove *.tmp, as a .tmp file is created during the
19990 build of $(TESTSUITE).
19992 2001-10-05 Akim Demaille <akim@epita.fr>
19994 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
19995 iff we are a bareword.
19996 Reported by Raja R Harinath.
19998 2001-10-05 Akim Demaille <akim@epita.fr>
20000 * tests/m4sh.at (LINENO): New.
20001 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
20002 PATH_SEPARATOR before using it.
20003 Fix the absolute path case/esac pattern.
20004 Provide $0 as fallback for as_myself.
20005 Reported by Raja R Harinath.
20007 2001-10-05 Akim Demaille <akim@epita.fr>
20009 * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
20010 * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
20012 2001-10-05 Akim Demaille <akim@epita.fr>
20014 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
20015 (AS_SHELL_SANITIZE): here. Use it.
20016 (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
20019 2001-10-04 Akim Demaille <akim@epita.fr>
20021 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
20022 combination of Awk and sed to replace $LINENO.
20024 2001-10-02 Paul Eggert <eggert@twinsun.com>
20026 * doc/autoconf.texi (Limitations of Builtins): You can't use
20027 "source"; it's not portable. Remove confusing and
20028 somewhat-incorrect example involving "." and "/".
20030 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
20031 compatibility with POSIX shells.
20033 2001-10-02 Akim Demaille <akim@epita.fr>
20035 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
20036 instead of exec'ing to preserve $0 and $@.
20038 2001-10-01 Akim Demaille <akim@epita.fr>
20040 * tests/testsuite (AT_INIT) <at_pass_list>: New.
20041 Don't run twice the same test.
20043 2001-10-01 Akim Demaille <akim@epita.fr>
20045 * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
20046 No longer output the list of tests.
20047 <--list>: New option.
20048 <--full-help>: Remove.
20049 Complete the short/long options duality.
20050 Various small adjustments.
20052 2001-10-01 Akim Demaille <akim@epita.fr>
20054 * doc/autoconf.texi: Use @kbd for user input.
20055 Always use `$' as shell prompt.
20057 2001-09-30 Paul Eggert <eggert@twinsun.com>
20059 * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
20060 Don't use nested parenthesization. This patch was originally
20061 suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
20062 but somehow it didn't get incorporated then.
20063 * doc/autoconf.texi (Limitations of Usual Tools):
20064 Clarify remark about sed and nested parenthesization.
20066 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
20067 Report an error if the size cannot be determined even though
20069 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
20070 Check for `expr' arithmetic overflow, and for compilation failure,
20071 and invoke a new argument $4 if either is discovered.
20072 This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
20073 (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
20075 2001-09-28 Akim Demaille <akim@epita.fr>
20077 * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
20078 * m4/lispdir.m4: New.
20079 * aclocal.m4, configure.ac: Adjust.
20081 2001-09-28 Akim Demaille <akim@epita.fr>
20083 * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
20085 (AT_INIT): More the wrapped section to where it will be expanded.
20086 Output `AT_tested' only when existing.
20087 Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
20089 2001-09-27 Akim Demaille <akim@epita.fr>
20091 Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
20092 generates too many bug reports.
20094 * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
20095 status when executing the ACTION-IF-FALSE.
20096 * tests/base.at (AC_TRY_*): Rename as...
20097 (AC_TRY_COMMAND): this.
20098 (AC_RUN_IFELSE): New.
20099 * tests/compile.at (Extensions, C keywords)
20100 (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
20101 (Broken/missing compilers, AC_PROG_CPP with warnings)
20102 (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
20103 * tests/c.at (Extensions, C keywords)
20104 (Broken/missing compilers, AC_PROG_CPP with warnings)
20105 (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
20106 (AC_PROG_CPP requires AC_PROG_CC): here and...
20107 * tests/fortran.at (GNU Fortran 77): there.
20108 * doc/autoconf.texi (autoconf Invocation): Fix the example:
20109 AC_TRY_RUN is about compilation, not shell commands.
20110 (Test Programs): AC_TRY_RUN works as used to be advertised.
20112 2001-09-27 Akim Demaille <akim@epita.fr>
20114 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
20116 Be sure to detect when $LINENO always returns the same value.
20117 Look for the original script, basename($0) is certainly not
20119 Pass the CLI arguments to `$as_me.lineno'.
20121 2001-09-25 Akim Demaille <akim@epita.fr>
20123 * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
20124 Be sure the close and reopen the LOG fd before and after using tee
20126 <at_tests_pattern>: Adjust to the new format of at_help_all.
20128 2001-09-23 Akim Demaille <akim@epita.fr>
20130 * bin/autom4te.in (parse_args): There can be several invocations
20133 2001-09-23 Akim Demaille <akim@epita.fr>
20135 * doc/autoconf.texi (Top): Wrap in @ifnottex.
20137 2001-09-23 Akim Demaille <akim@epita.fr>
20139 * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
20140 ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
20141 (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
20142 builddir, buildpath, top_builddir, and top_buildpath.
20143 (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
20144 the current directory.
20145 * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
20146 variables *before* changing the current directory.
20147 Skip nonexistent dirs.
20148 * doc/autoconf.texi (Preset Output Variables): Document these
20151 * lib/autotest/general.m4: Do not reset AT_victims.
20152 Don't compute at_srcdir nor at_top_srcdir.
20154 * tests/tools.at: Hence use top_srcdir.
20156 * tests/Makefile.am, tests/autoconf, tests/autoheader,
20157 * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
20159 * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
20160 * tests/wrapsh.in, tests/autoupdate.in: New.
20161 * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
20162 * configure.ac: Build the position independent wrappers.
20164 * man/Makefile.am: Now that test wrappers are position
20165 independent, use them and drop dark envvar magic.
20167 2001-09-23 Akim Demaille <akim@epita.fr>
20169 * doc/autoconf.texi (Common Shell Constructs): Rename as...
20170 (Programming in M4sh): this.
20171 Promote to @section.
20173 2001-09-23 Akim Demaille <akim@epita.fr>
20175 * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
20176 Pass $at_debug_args to the rerun test suite.
20177 * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
20178 * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
20181 2001-09-23 Akim Demaille <akim@epita.fr>
20183 * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
20185 2001-09-23 Akim Demaille <akim@epita.fr>
20187 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
20190 2001-09-23 Akim Demaille <akim@epita.fr>
20192 * lib/Autom4te/General.pm (&debug): New.
20193 * bin/autom4te.in ($language): Move to...
20194 (parse_args): here.
20195 Handle --language in languages.
20196 * lib/autom4te.in (Automake-selections, Autoheader-selections)
20197 (Autoscan-selections): New.
20198 (Autoconf): Adjust.
20200 2001-09-23 Tim Van Holder <tim.van.holder@pandora.be>
20202 * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
20203 * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
20204 to match current versions from CVS Automake.
20206 2001-09-23 Alexandre Duret-Lutz <duret_g@epita.fr>
20208 * doc/autoconf.texi (Special Shell Variables): Add pdksh output
20211 2001-09-22 Akim Demaille <akim@epita.fr>
20213 * lib/autoconf/autotest.m4: Create `package.m4'.
20214 * tests/Makefile.am (package.m4): Remove.
20216 2001-09-22 Akim Demaille <akim@epita.fr>
20218 Rely on `$LINENO' when possible instead of `__oline__'.
20220 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
20221 `$LINENO' support replacement when not supported.
20222 (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
20223 them explicitly to be sure they are not output before this section
20224 (via m4_require). Cosmetic only.
20225 * lib/autoconf/c.m4, lib/autoconf/general.m4,
20226 * lib/autoconf/programs.m4: Replace all the occurrences of
20227 `__oline__' with `$LINENO'.
20228 * doc/autoconf.texi (Special Shell Variables): Document LINENO.
20230 2001-09-21 Tim Van Holder <tim.van.holder@pandora.be>
20232 * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
20233 character (u: -> ue) in a code comment.
20234 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
20237 2001-09-21 Akim Demaille <akim@epita.fr>
20239 * Makefile.maint (AUTOM4TE): Neutralize autom4te.
20240 Suggested by Jim Meyering.
20242 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
20244 * lib/autoconf/programs.m4: Use extensions listed in
20245 $ac_executable_extensions when looking for programs.
20247 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
20249 * lib/autoconf/general.m4: Fix a small Englisho.
20250 * lib/autoconf/status.m4: Fix a small typo. Handle DOS paths when
20251 setting up ac_dir_suffix and ac_top_builddir.
20252 * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
20254 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
20256 * doc/autoconf.texi (File System Conventions): Clarify the use of
20258 (Special Shell Variables[PATH_SEPARATOR]): Ditto.
20259 (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
20260 be used instead of ':'.
20261 * lib/autotest/general.m4: Replace occurrences of ':' in
20262 AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
20264 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
20266 * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
20267 arguments. Fixed a typo.
20269 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
20271 * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
20272 $PATH. Also set AUTOM4TE_CFG, so we can process autom4te properly.
20274 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
20276 * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
20277 * bin/autoupdate.in: Ditto.
20278 * bin/autoheader.in: Reworded a few comments.
20279 * bin/autoconf.in: Reworded help text for a few options.
20280 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
20281 * bin/autoscan.in, bin/autoupdate.in: Ditto.
20283 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
20285 * lib/Autom4te/XFile.pm (open): Simplified the error message (we
20286 already have $file). Set output files to binary mode (helps avoid
20287 CR issues on DOSish systems).
20289 2001-09-19 Akim Demaille <akim@epita.fr>
20291 * lib/autotest/general.m4: Englishoes.
20292 From Tim Van Holder and Alexey Mahotkin.
20294 2001-09-18 Paul Eggert <eggert@twinsun.com>
20296 * doc/autoconf.texi (Common Shell Constructs): New node,
20297 documenting AS_DIRNAME.
20298 (Limitations of Usual Tools): Refer to it when discussing dirname.
20299 Also, update discussion of POSIX standard to reflect latest draft.
20301 * lib/autoconf/c.m4:
20302 (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
20304 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
20305 Do not pass a first argument with leading '-'
20306 to expr, by parenthesizing initial integers that might be negative.
20308 * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
20309 now merely checks whether it is an error to pass an argument
20312 * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
20313 (AC_FUNC_GETPGRP): Don't bother with a runtime test. Just check
20314 whether it is a (compile-time) error to pass an argument to
20315 getpgrp. This simpler test supports the revised documentation,
20316 and is all that AC_FUNC_GETPGRP's users really need.
20318 2001-09-18 Akim Demaille <akim@epita.fr>
20320 * doc/autoconf.texi (Limitations of Make) <$<>: New.
20322 2001-09-18 Akim Demaille <akim@epita.fr>
20324 * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
20326 * lib/autotest/general.m4 (AT_INIT): Adjust.
20328 2001-09-18 Paul Wagland <paul@wagland.net>
20330 * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
20332 Add test for AS_BASENAME.
20333 * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
20334 added test. It now correctly handles /1/2/3/, returning '3' not ''.
20335 Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
20336 * tests/base.at: Fixed the expected responses. The old ones were
20338 * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
20339 the documentation claims it should (and how it behaved in 2.13).
20341 2001-09-18 Akim Demaille <akim@epita.fr>
20343 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
20344 the AC_CONFIG_COMMANDS invocation.
20345 This also solves the name clash problems.
20346 Don't set the package's ID.
20347 * lib/m4sugar/Makefile.am (version.m4): Revamp.
20348 No longer to be shipped.
20349 (version.in): Remove.
20350 * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
20351 * lib/autoconf/status.m4: Adjust.
20352 Use `m4_PACKAGE_STRING'.
20353 * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
20354 the only optional argument is the name of the test suite.
20355 Expect `package.m4' to define the package signature.
20356 * lib/autom4te.in (Autotest): Add `package.m4?'.
20357 * tests/Makefile.am (package.m4): New.
20358 * tests/suite.at: ifnames is a victim.
20360 2001-09-18 Akim Demaille <akim@epita.fr>
20362 * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
20363 AC_LIBSOURCE, AC_CONFIG_FILES.
20364 * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
20365 program version string doesn't match the package's.
20366 * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
20369 2001-09-17 Paul Eggert <eggert@twinsun.com>
20371 * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
20372 Allow expression to return any value that can fit into unsigned long
20373 (not int, as before). Check for output errors.
20375 2001-09-17 Bruno Haible <haible@ilog.fr>
20377 * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
20378 Always include <stdio.h> and <stdlib.h>. Evaluate
20379 the expression in an extra function before these includes. Call
20380 fprintf "%d" only after ensuring the argument is of type 'int'.
20381 Reported by Wayne Chapeskie <waynec@spinnaker.com>.
20383 2001-09-17 Paul Eggert <eggert@twinsun.com>
20385 Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
20386 or CFLAGS=-O5. In that case, the linker has a relaxed view of
20387 fatal errors, and AC_CHECK_LIB causes it to include libraries even
20388 when they don't exist.
20390 * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
20391 not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
20394 * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
20395 version with the version used by fileutils 4.1, except use
20396 AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
20399 * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
20401 2001-09-13 Akim Demaille <akim@epita.fr>
20403 * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
20405 Reported by Gerrit P. Haase.
20407 2001-09-13 Akim Demaille <akim@epita.fr>
20409 * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
20410 m4_defn'ing is valid.
20412 2001-09-13 Akim Demaille <akim@epita.fr>
20414 * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
20415 * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
20418 2001-09-13 Akim Demaille <akim@epita.fr>
20420 * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
20422 (m4_re_escape): New.
20423 * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
20424 * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
20425 * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
20427 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
20428 (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
20429 * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
20430 AT_tests_all for consistency.
20432 (AT_VICTIMS): Similar to AT_KEYWORDS.
20433 (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
20435 2001-09-13 Akim Demaille <akim@epita.fr>
20437 * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
20439 2001-09-13 Akim Demaille <akim@epita.fr>
20441 * lib/autotest/general.m4 (AT_INIT): Create and remove
20442 `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
20443 test suites can cohabit.
20445 2001-09-13 Akim Demaille <akim@epita.fr>
20447 * tests/mktests.sh: Don't output banners for empty test files.
20449 2001-09-13 Akim Demaille <akim@epita.fr>
20451 Test suites can be run independently of configure.
20453 * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
20454 * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
20455 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
20457 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
20459 * lib/autotest/general.m4: Use ECHO_*.
20461 2001-09-13 Akim Demaille <akim@epita.fr>
20463 * bin/ifnames.in: Rewrite in Perl.
20464 * configure.ac: Don't look for AWK.
20465 * tests/tools.at (AWK portability): Remove.
20466 (Syntax of the shell scripts): Don't check ifnames.
20467 (AT_CHECK_PERL_SYNTAX): New.
20468 (Syntax of the Perl scripts): Check ifnames.
20469 * tests/ifnames: New.
20471 2001-09-13 Akim Demaille <akim@epita.fr>
20473 * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
20475 * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
20476 Remove all the other keywords.
20478 2001-09-10 Akim Demaille <akim@epita.fr>
20480 * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
20481 SETUP: no longer used.
20482 Support -k, --keywords.
20483 <at_help>: Be `no', `short', or `long'.
20484 <at_help_all>: New variable.
20485 (AT_KEYWORDS): New.
20486 (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
20487 (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
20488 (_AT_CLEANUP_FILE_IF): Simplify the regexp.
20489 (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
20490 No longer fill the HELP diversion.
20491 (AT_CLEANUP): Use them.
20492 * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
20493 (m4_list_append): Remove.
20495 Spread a few keywords in the Autoconf test suite.
20497 2001-09-10 Akim Demaille <akim@epita.fr>
20499 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
20500 PATH_SEPARATOR, let M4sh compute it.
20501 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
20502 * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
20504 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
20505 Simplify when the path is not a literal.
20506 (AS_UNAME): Use it to report PATH.
20507 * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
20508 (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
20509 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
20510 * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
20511 normalize the path, and to look for victims.
20512 * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
20513 (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
20515 2001-09-07 Akim Demaille <akim@epita.fr>
20517 * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
20518 doesn't neutralize SIGINT, making autoconf etc. non interruptible.
20519 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
20520 related variables into `at_package_*'.
20521 * lib/autotest/general.m4 (AT_VICTIMS): New.
20522 (AT_INIT): Adjust for stand-alone/embedded test suites.
20523 (AS_MESSAGE_LOG_FD): Define and use it.
20524 * tests/suite.at (AT_VICTIMS): Use it.
20525 * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
20528 2001-09-07 Akim Demaille <akim@epita.fr>
20530 Move toward possibly stand-alone test suites.
20532 * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
20533 in addition, it introduces useless differences in logs.
20534 (AT_INIT): Let atconfig and atlocal be both optional.
20535 Adjust PATH computation.
20536 * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
20538 2001-09-07 Akim Demaille <akim@epita.fr>
20540 * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
20541 m4sugar/version.m4.
20543 2001-09-05 Akim Demaille <akim@epita.fr>
20545 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
20546 to avoid GCC warnings.
20549 2001-09-05 Akim Demaille <akim@epita.fr>
20551 * bin/autom4te.in: --language is -l, not -s.
20553 2001-09-05 Akim Demaille <akim@epita.fr>
20555 Be ready to handle filenames as stupid as `dnl.at', for if even
20556 the maintainer is dumb enough to do that...
20558 * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
20559 excellence in M4 quotation: consider `__file__' is active.
20561 And BTW, when invoking m4, pass the --include in the right order:
20564 * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
20567 2001-09-05 Akim Demaille <akim@epita.fr>
20569 * lib/Autom4te/XFile.pm: New lib file.
20570 * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
20571 * bin/autoheader.in: Use it.
20573 2001-09-05 Akim Demaille <akim@epita.fr>
20575 * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
20578 2001-09-05 Akim Demaille <akim@epita.fr>
20580 * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
20581 * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
20583 * bin/autoscan.in: Use `getopt' and `find_files' etc.
20584 Add -I, --include support.
20585 * doc/autoconf.texi (autoscan Invocation): Adjust.
20587 2001-09-05 Akim Demaille <akim@epita.fr>
20589 CVS GNU M4 doesn't like `undefine(undefined)'.
20591 * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
20592 New, extracted from main.
20593 Use IO::File wherever possible.
20594 (input.m4): Be constant, use -I instead of hard coding $tmp.
20595 Therefore be a quoted heredoc.
20596 Don't invoke `_au_disable', since ac was not loaded, but just
20599 2001-08-31 Akim Demaille <akim@epita.fr>
20603 2001-08-31 Akim Demaille <akim@epita.fr>
20605 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
20607 * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
20609 2001-08-31 Akim Demaille <akim@epita.fr>
20611 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
20612 serious problems handling heredocs in heredocs.
20613 Reported by Nicolas Joly.
20615 2001-08-31 Akim Demaille <akim@epita.fr>
20617 * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
20618 (Making testsuite Scripts): Update.
20620 2001-08-31 Akim Demaille <akim@epita.fr>
20622 * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
20624 2001-08-31 Akim Demaille <akim@epita.fr>
20626 * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
20627 (testsuite Scripts): There is no such thing as `atconfig.in'.
20628 And actually one diagram is missing: test suite runtime.
20630 2001-08-31 Akim Demaille <akim@epita.fr>
20632 * lib/Autom4te/General.pm (&find_file): Browse the includes in the
20635 2001-08-31 Akim Demaille <akim@epita.fr>
20637 * bin/autoupdate.in (@include): `installcheck' revealed the path
20638 to m4sugar was lacking!
20640 2001-08-31 Akim Demaille <akim@epita.fr>
20642 * man/Makefile.am (.x.1): We really have to pass
20643 autom4te_perllibdir.
20645 2001-08-31 Akim Demaille <akim@epita.fr>
20647 * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
20648 debug scripts, in particular passing explicitly listed tests to
20651 2001-08-31 Akim Demaille <akim@epita.fr>
20653 * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
20654 * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
20655 Use directly autom4te, not autoconf.
20656 * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
20658 2001-08-31 Akim Demaille <akim@epita.fr>
20660 * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
20661 * bin/autoheader.in (%symbol): Strip arguments of macros.
20663 2001-08-31 Akim Demaille <akim@epita.fr>
20665 * doc/autoconf.texi: Catch up -I, --include changes.
20667 2001-08-31 Akim Demaille <akim@epita.fr>
20669 * bin/autom4te.in (&parse_args): Die on unknown languages.
20670 * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
20672 Promote --include over --macrodir and other obsolete options.
20674 2001-08-31 Akim Demaille <akim@epita.fr>
20676 * lib/Autom4te/General.pm ($version, $help, &getopt): New.
20677 * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
20678 * bin/autom4te.in ($autoconf): Pass --force.
20679 `print $out' doesn't print `$_' but `$out'.
20680 * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
20681 (autoheader): Pass --force since the test suite goes too fast for
20683 Adjust to the new autoheader messages.
20685 2001-08-31 Akim Demaille <akim@epita.fr>
20687 * bin/autoheader.in: Handle the acconfig.h etc. junk files.
20688 Check the completeness of the #template.
20689 * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
20690 * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
20693 2001-08-31 Akim Demaille <akim@epita.fr>
20695 * lib/Autom4te/General.pm (&find_file, &update_file): New.
20696 * bin/autoupdate.in, bin/autoheader.in: Adjust.
20697 Drop AC_MACRODIR dead for real.
20698 * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
20699 `autoheader: `config.hin' is created'.
20700 * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
20702 2001-08-31 Akim Demaille <akim@epita.fr>
20704 * bin/autoheader.in: Rewrite in Perl.
20705 * tests/autoheader: Adjust.
20707 2001-08-31 Akim Demaille <akim@epita.fr>
20709 * bin/autoconf.in (--include, -I): New option.
20710 Map --localdir, --autoconf-dir onto it.
20711 Forward autom4te's options instead of interpreting them.
20712 * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
20713 There is no such envvar since the inception of autom4te.cfg.
20714 * bin/autom4te.in (&parse_args): Uniquify `@include'.
20715 * bin/autoupdate.in: Adjust, and perform more control.
20716 * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
20717 * tests/autoconf: Dittowise.
20719 2001-08-31 Akim Demaille <akim@epita.fr>
20721 * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
20722 * bin/autom4te.in (&find_file): Support `FILE?' standing for
20724 Use -e, not -f, since /dev/null for instance is OK.
20725 (&parse_args): Adjust.
20726 * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
20728 2001-08-31 Akim Demaille <akim@epita.fr>
20730 * configure.ac: Also find tested executables in bin.
20731 * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
20732 * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
20733 installed peer executables, only PATH is allowed to resolve it.
20734 Pass `autoconf_dir' via options, not via invisible envvars.
20735 * lib/Autom4te/General.pm (&find_peer): Remove.
20736 * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
20737 `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
20738 * man/Makefile.am: Let help2man rely on PATH instead of trying to
20739 find the executables for it.
20740 * tests/Makefile.am: Major cleanup. Too lazy to document...
20741 * tests/atlocal.in: Remove all the obscure envvar manipulations.
20743 * tests/atspecific.m4, tests/tools.at: Passing --localdir is
20744 indeed related to running the test suite, while passing
20745 --autoconf-dir and others is related to running non installed
20746 Autoconf executables. So don't do that, leave it to...
20747 * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
20748 * tests/autoscan: New.
20749 * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
20750 refer to library files: rely on --language.
20752 2001-08-29 Akim Demaille <akim@epita.fr>
20754 * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
20755 s/--set/--language/.
20757 2001-08-29 Akim Demaille <akim@epita.fr>
20759 * doc/autoconf.texi: Strip the @nodes.
20760 Suggested by Paul Eggert.
20761 (Initializing configure): Typo.
20763 2001-08-29 Akim Demaille <akim@epita.fr>
20765 * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
20766 Suggested by Paul Eggert.
20768 2001-08-29 Akim Demaille <akim@epita.fr>
20770 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
20771 download in a tmp dir.
20773 2001-08-29 Akim Demaille <akim@epita.fr>
20775 * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
20776 case insensitive OSes out there :(
20777 From Tim Van Holder.
20779 2001-08-29 Akim Demaille <akim@epita.fr>
20781 * lib/autom4te.in: New.
20782 * lib/Makefile.am (edit, autom4te.cfg): New.
20783 * bin/autom4te.in (BEGIN): Simplify.
20784 Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
20785 (&load_configuration): New. Use it.
20786 (&parse_args): Support --mode, --set, and --melt.
20787 * bin/autoconf.in: Simplify and adjust.
20788 * tests/Makefile.am (AUTOMAKE): Use --set.
20789 * tests/atlocal.in: Adjust.
20790 * BUGS: distcheck and check are weak.
20792 2001-08-29 Akim Demaille <akim@epita.fr>
20794 * lib/autotest/general.m4: Use
20795 foo=`(command) 2>/dev/null`
20797 foo=`command` 2>/dev/null
20798 (at-devnull): Rename as...
20799 (AT-devnull): this.
20800 (--clean): Remove AT-* files too.
20801 * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
20802 Reported by Nicolas Joly.
20804 2001-08-28 Akim Demaille <akim@epita.fr>
20806 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
20807 quotes inside single quotes.
20808 Reported by Nicolas Joly.
20810 2001-08-28 Kevin Ryde <user42@zip.com.au>
20812 * doc/autoconf.texi (Function Portability): Mention C right shifts.
20814 2001-08-27 Tim Van Holder <tim.van.holder@pandora.be>
20816 * lib/autotest/general.m4: Reword some messages.
20817 (AT_INIT): Check for the `times' builtin before using it.
20818 Support test ranges as arguments to the testsuite.
20819 Have -e imply -d as the help text suggested.
20821 2001-08-27 Akim Demaille <akim@epita.fr>
20823 * Makefile.maint: Formatting changes.
20824 (do-po-update, po-update, cvs-update, update): New targets.
20827 2001-08-27 Akim Demaille <akim@epita.fr>
20829 * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
20830 <at_cmd_line>: New.
20831 Pass it to debug-*.sh scripts.
20832 <AUTOTEST_PATH>: May contain absolute dir names.
20834 2001-08-27 Akim Demaille <akim@epita.fr>
20836 * lib/autotest/general.m4 (AT_INIT): Log the command line.
20837 Support `VAR=VAL' as arguments.
20838 Compute PATH _after_ the options processing, so that AUTOTEST_PATH
20839 may be set via the command line.
20841 2001-08-27 Akim Demaille <akim@epita.fr>
20843 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
20844 * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
20845 first the build dirs, then the src dirs.
20846 * configure.ac (AC_CONFIG_TESTDIR): Adjust.
20848 2001-08-27 Akim Demaille <akim@epita.fr>
20850 * lib/autotest/general.m4 (AT_INIT): Output the definition of
20851 at_data_files earlier.
20852 (--clean, -c): New option.
20853 * tests/Makefile.am: Use this option.
20855 2001-08-27 Akim Demaille <akim@epita.fr>
20857 * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
20858 `ac_top_builddir' to mimic Automake's vocabulary, which much more
20861 * doc/autoconf.texi (Configuration Actions): Document the vars
20862 available in commands.
20863 Emphasize the risks of collisions in init-cmds.
20865 2001-08-27 Akim Demaille <akim@epita.fr>
20867 * doc/autoconf.texi (Input) <AC_INIT>: Move to..
20868 (Initializing configure): this new node.
20870 2001-08-27 Akim Demaille <akim@epita.fr>
20872 * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
20874 2001-08-27 Akim Demaille <akim@epita.fr>
20876 * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
20877 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
20879 * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
20881 2001-08-27 Akim Demaille <akim@epita.fr>
20883 * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
20885 * lib/autoconf/autoheader.m4: this new file.
20886 * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
20887 (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
20889 * lib/autoconf/autoupdate.m4: this new file.
20891 2001-08-27 Akim Demaille <akim@epita.fr>
20893 * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
20894 (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
20895 Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
20897 (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
20898 * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
20900 2001-08-27 Akim Demaille <akim@epita.fr>
20902 * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
20903 (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
20904 (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
20905 (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
20906 (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
20907 (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
20908 (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
20909 (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
20910 (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
20911 (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
20912 (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
20913 (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
20914 (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
20915 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
20916 (_AC_OUTPUT_SUBDIRS): Move to...
20917 * lib/autoconf/status.m4: this new file.
20918 * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
20919 * tests/Makefile.am, tests/suite.at: Adjust.
20921 2001-08-27 Akim Demaille <akim@epita.fr>
20925 * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
20926 (AMTAR): Help automake define it.
20927 (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
20928 needed, 1.5 can have a macro and a target with the same name.
20929 * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
20930 * m4/strip.m4: New.
20931 * m4/init.m4, m4/sanity.m4: Update.
20932 * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
20933 * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
20934 * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
20935 * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
20937 2001-08-27 Akim Demaille <akim@epita.fr>
20939 Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
20941 * lib/autoconf/version.in: Remove.
20942 * lib/m4sugar/version.in: New.
20943 * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
20945 * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
20946 the name of the directory they're in, instead of the filename,
20947 since version.m4 is now in m4sugar, but m4_acversion must not be
20948 classified as an Autoconf macro.
20949 ($input_m4): Don't qualify the path to m4sugar.
20950 Rather, pass autoconf_dir to m4.
20951 * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
20952 * tests/suite.at: Require 2.52c.
20954 2001-08-27 Akim Demaille <akim@epita.fr>
20956 testsuite.log should include config.log.
20958 * lib/autotest/autotest.m4: New.
20959 * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
20960 * tests/suite.at : Adjust.
20961 (AT_INIT): Log config.log.
20962 * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
20963 * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
20964 * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
20965 (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
20966 of config.log on traps.
20967 (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
20968 Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
20969 for config.status'.
20970 Open the log as soon as possible.
20971 Use the same log introduction as configure's.
20973 2001-08-22 Paul Eggert <eggert@twinsun.com>
20975 * doc/autoconf.texi (Indices): New node.
20976 Move indices out of the top level menu and into this submenu.
20978 2001-08-22 Akim Demaille <akim@epita.fr>
20980 * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
20982 (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
20984 2001-08-22 Akim Demaille <akim@epita.fr>
20986 * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
20987 (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
20988 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
20989 * lib/autoconf/programs.m4: here.
20990 * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
20991 (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
20992 (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
20993 * lib/autoconf/programs.m4: here.
20994 (_AC_DECL_YYTEXT): Rename as...
20995 (_AC_PROG_LEX_YYTEXT_DECL): this.
20996 * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
20997 * tests/Makefile.am, tests/suite.am: Adjust.
20999 2001-08-22 Akim Demaille <akim@epita.fr>
21001 * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
21003 * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
21005 * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
21006 * lib/autoconf/functions.m4: here.
21007 * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
21008 (AH_CHECK_LIB): Move to...
21009 * lib/autoconf/libs: this new file.
21010 * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
21011 (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
21012 * lib/autoconf/libs.m4: here.
21013 * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
21015 2001-08-22 Akim Demaille <akim@epita.fr>
21017 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
21018 * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
21019 (AC_SITE_LOAD): Better logging of config.site.
21021 2001-08-20 Akim Demaille <akim@epita.fr>
21023 * configure.ac (AT_CONFIG): Fix the path.
21024 * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
21027 2001-08-20 Alexandre Duret-Lutz <duret_g@epita.fr>
21029 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
21030 program with AC_LANG_PROGRAM before feeding it to
21031 AC_COMPILE_IFELSE. Cleanup grep usage.
21033 2001-08-20 Akim Demaille <akim@epita.fr>
21035 * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
21036 * NEWS, README, README-alpha, TODO, tests/README: This package is
21037 `Autoconf', not `autoconf' (the executable).
21039 2001-08-20 Akim Demaille <akim@epita.fr>
21041 Info readers seem to need `Index' in the index node title :(
21043 * doc/autoconf.texi: Reverse the 2001-08-15 change which
21044 simplified index node names.
21046 2001-08-20 Akim Demaille <akim@epita.fr>
21048 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
21049 arguments are not literals.
21050 * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
21051 Specify the output variables, and macros defined.
21053 2001-08-20 Akim Demaille <akim@epita.fr>
21055 * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
21056 (Examining Syntax) <AC_TRY_COMPILE>
21057 (Examining Libraries) <AC_TRY_LINK>
21058 (Test Programs) <AC_TRY_RUN>: These macros double quote some of
21060 Reported by Werner Lemberg.
21062 2001-08-20 Akim Demaille <akim@epita.fr>
21064 * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
21065 top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
21066 Load atlocal late enough to dump it in the log.
21067 * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
21069 2001-08-20 Akim Demaille <akim@epita.fr>
21071 * tests/torture.at (Configuring subdirectories): New test.
21072 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
21074 * m4/atconfig.m4: Be sure the let $[0] be expandable.
21075 (top_srcdir): Fix its computation.
21077 2001-08-20 Akim Demaille <akim@epita.fr>
21079 * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
21080 * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
21082 Create `atconfig' automagically.
21083 Configure atlocal.in if present.
21084 * tests/atconfig.in: Remove.
21085 * tests/atlocal.in: New.
21086 * tests/Makefile.am: Adjust.
21088 2001-08-20 Akim Demaille <akim@epita.fr>
21090 Huh!?!?! There are still some user EOF tags used, which prevents
21091 their use in AC_CONFIG_COMMANDS for instance...
21093 * lib/autoconf/general.m4, lib/autoconf/specific.m4,
21094 * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
21095 `_CSEOF', or `_ATEOF', as appropriate.
21096 * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
21097 * lib/autotest/Makefile.am (check-local): Enforce this constraint.
21099 2001-08-20 Akim Demaille <akim@epita.fr>
21101 * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
21102 * tests/semantics.at, tests/tools.at, tests/torture.at:
21103 s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
21105 2001-08-20 Akim Demaille <akim@epita.fr>
21107 Autotest invokes M4sh's initialization.
21109 * lib/autotest/general.m4: Adjust the diversion names.
21110 (AT_INIT): Run AS_INIT.
21111 Use the BINSH diversion to invoke /bin/sh.
21112 * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
21113 * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
21115 2001-08-20 Akim Demaille <akim@epita.fr>
21117 Let M4sh have its own diversions.
21119 * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
21120 (_m4_divert(NOTICE)): Rename as...
21121 * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
21122 (_m4_divert(HEADER-COMMENT)): these.
21123 (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
21124 (_m4_divert(NOTICE)): New, for Libtool.
21125 * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
21126 long ago with `_m4_divert(GROW)'.
21127 (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
21129 2001-08-20 Akim Demaille <akim@epita.fr>
21131 * tests/base.at, tests/compile.at, tests/foreign.at,
21132 * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
21133 * tests/semantics.at, tests/suite.at, tests/tools.at,
21134 * tests/torture.at: Ask Autotest mode, not Autoconf mode.
21136 2001-08-20 Akim Demaille <akim@epita.fr>
21138 * bin/autom4te.in (handle_output): Handle @__@.
21140 2001-08-20 Akim Demaille <akim@epita.fr>
21142 * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
21143 * lib/autotest/general.m4: Adjust the license.
21145 2001-08-17 Paul Eggert <eggert@twinsun.com>
21147 * doc/autoconf.texi (Function Portability): Mention snprintf,
21148 following up on a suggestion by Kevin Ryde.
21150 2001-08-17 Akim Demaille <akim@epita.fr>
21152 * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
21153 `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
21155 2001-08-17 Akim Demaille <akim@epita.fr>
21157 * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
21158 `$0.log' as for projects where testsuite is in src, we'd have
21159 testsuite.log created in src.
21161 2001-08-17 Akim Demaille <akim@epita.fr>
21163 * bin/autom4te.in (&parse_args): Recognize --normalize.
21165 2001-08-17 Akim Demaille <akim@epita.fr>
21167 Start implementing the AC_CHECK_HEADER transition scheme.
21169 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
21170 (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
21171 (AC_CHECK_HEADER): Use them.
21173 2001-08-17 Akim Demaille <akim@epita.fr>
21175 * doc/autoconf.texi: Work around Texinfo buglets.
21176 (Transformation Rules): One example is enough, users are expected
21177 to have their brains on. And BTW, use DESTDIR.
21178 (dvar): New macro. Use it.
21180 2001-08-17 Akim Demaille <akim@epita.fr>
21182 * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
21183 * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
21184 looking for ChangeLogs.
21186 2001-08-17 Akim Demaille <akim@epita.fr>
21188 * bin/autom4te.in: --normalize is a new option.
21189 * bin/autoconf.in: Use it.
21191 2001-08-17 Akim Demaille <akim@epita.fr>
21193 * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
21194 * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
21196 2001-08-16 Paul Eggert <eggert@twinsun.com>
21198 * doc/autoconf.texi, doc/install.texi: Put copyright notice at
21201 2001-08-15 Akim Demaille <akim@epita.fr>
21203 * doc/Makefile.am (fu): New index, can't use fn because of defmac.
21206 2001-08-15 Akim Demaille <akim@epita.fr>
21208 * doc/autoconf.texi (pr): New index.
21209 (prindex, findex): Use, merge, and output them.
21210 (Environment Variable Index, Output Variable Index)
21211 (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
21212 (Autotest Macro Index): Rename as...
21213 (Environment Variables, Output Variables,Preprocessor Symbols)
21214 (Autoconf Macros, M4 Macros, Autotest Macros): these.
21215 * doc/install.texi: Use @command.
21216 (Environment Variables): Rename as...
21217 (Defining Variables): this.
21219 2001-08-15 Akim Demaille <akim@epita.fr>
21221 * doc/autoconf.texi (Function Portability): sprintf's return
21225 2001-08-15 Akim Demaille <akim@epita.fr>
21227 * Makefile.maint (CVS): New.
21228 (local-check): Run changelog-check. last.
21229 (alpha): Don't depend upon local-check, since...
21230 (cvs-dist): depends upon it.
21232 2001-08-15 Tim Van Holder <tim.van.holder@pandora.be>
21234 * tests/Makefile.am: Use a clean-local rule to remove
21235 autom4te.cache (it's a directory, not a file.
21236 * Makefile.am: Ditto (but maintainer-clean-local).
21238 2001-08-15 Akim Demaille <akim@epita.fr>
21240 * bin/autom4te.in (@m4_warning): New.
21241 (&handle_m4): Use it.
21242 * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
21243 warnings are issued at each run.
21244 * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
21245 is in the src tree.
21247 2001-08-15 Akim Demaille <akim@epita.fr>
21249 * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
21250 don't waste time running `autoupdate --version' works.
21251 * tests/tools.at (autoupdating AC_PREREQ): Likewise.
21253 2001-08-13 Akim Demaille <akim@epita.fr>
21255 * doc/autoconf.texi (ma): Rename this index as...
21258 2001-08-13 Akim Demaille <akim@epita.fr>
21260 * Makefile.am: Remove dead code and dead comments.
21261 (pdf, html): New targets.
21262 * doc/autoconf.texi (Using Autotest): New chapter.
21263 * doc/Makefile.am (pdf): New targets.
21264 (CLEANFILES): Adjust.
21266 2001-08-13 Akim Demaille <akim@epita.fr>
21268 * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
21269 duration of the test suite.
21271 2001-08-12 Alexandre Duret-Lutz <duret_g@epita.fr>
21273 * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
21274 endianness for comparison instead of relying on AT_CHECK_ENV.
21276 2001-08-11 Paul Eggert <eggert@twinsun.com>
21278 * doc/autoconf.texi, doc/install.texi: Add a copyright notice
21279 to the INSTALL file.
21281 2001-08-11 Paul Eggert <eggert@twinsun.com>
21283 * NEWS: The autoconf manual now is distributed under the terms
21284 of the GNU Free Documentation License.
21286 * doc/autoconf.texi: Switch from old style copyright notice to FDL.
21287 Add an appendix "Copying This Manual" for the FDL.
21289 * doc/fdl.texi: New file, from
21290 <http://www.gnu.org/licenses/fdl.texi>.
21292 * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
21294 2001-08-10 Paul Eggert <eggert@twinsun.com>
21296 * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
21297 ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
21298 README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
21299 m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
21300 m4/sanity.m4, tests/README, tests/aclocal.m4,
21301 tests/atspecific.m4, tests/base.at, tests/compile.at,
21302 tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
21303 tests/semantics.at, tests/suite.at, tests/tools.at,
21304 tests/torture.at: Add copyright notice.
21306 * tests/mktests.sh: Update year in copyright notice.
21308 2001-08-12 Alexandre Duret-Lutz <duret_g@epita.fr>
21310 * tests/semantics.at (AC_C_BIGENDIAN): New test.
21312 2001-08-11 Alexandre Duret-Lutz <duret_g@epita.fr>
21314 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
21315 ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
21316 * doc/autoconf.texi (C Compiler Characteristics): Update
21317 documentation for AC_C_BIGENDIAN.
21319 2001-08-11 Alexandre Duret-Lutz <duret_g@epita.fr>
21321 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
21322 magic values from an object file when cross-compiling.
21323 Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
21325 2001-08-10 Akim Demaille <akim@epita.fr>
21327 * bin/autom4te.in (&handle_output): Don't use `grep' with side
21329 Suggested by Russ Allbery.
21331 2001-08-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
21333 * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
21334 current $prefix to the sub-configures.
21336 2001-08-09 Tim Van Holder <tim.van.holder@pandora.be>
21338 * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
21339 extension (needed on BeOS). Reported by Guido van Rossum.
21341 2001-08-09 Akim Demaille <akim@epita.fr>
21343 * bin/autom4te.in ($icache): Load it only if older than autom4te.
21345 2001-08-07 Akim Demaille <akim@epita.fr>
21347 * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
21349 (at-setup-line): Huh? Be a variable `at_setup_line', not a file.
21350 No need to remove the files before and after the each test, before
21351 each test and at the end of the suite is enough.
21352 Display only the children `times', not the shell's.
21353 If the test failed or was skipped, at-times is not available.
21355 2001-08-07 Akim Demaille <akim@epita.fr>
21357 Always produce testsuite.log, including when there are no
21358 failures. This helps getting information on skipped tests, and
21359 duration of the tests. Err, implement the latter btw.
21361 * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
21362 Dump information on the first run of each test.
21363 (AT_CLEANUP): Create `at-times' containing the duration of the
21366 2001-08-07 Akim Demaille <akim@epita.fr>
21368 The use of `dumpstat' revealed that `len' was used although it
21369 should not. m4_text_wrap was using it, but in the Autoconf world
21370 where it is legal. Hence (i) test M4sh in its own world, not
21371 Autoconf's, and (ii), ahem, fix the bug :)
21373 * lib/autotest/general.m4: Be sure the set good quotes, as tracing
21374 does not like `' instead of [].
21375 (AT_INIT): Forbid `^_?AT_'.
21376 And don't output such tokens.
21377 * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
21378 `script.as', and `autom4te.cache'.
21379 Remove `empty' and `macro' which are no longer used.
21380 * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
21381 * tests/m4sugar.at: Use it.
21382 * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
21384 2001-08-07 Akim Demaille <akim@epita.fr>
21386 * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
21388 2001-08-07 Alexandre Duret-Lutz <duret_g@epita.fr>
21390 * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
21392 2001-08-04 Akim Demaille <akim@epita.fr>
21394 * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
21395 (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
21397 * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
21398 * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
21399 (AC_F77_MAIN): Likewise.
21401 2001-08-04 Akim Demaille <akim@epita.fr>
21403 Don't rely on M4sugar outputting the patterns in files, since we
21404 might process the output _without_ running m4, hence without these
21407 * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
21408 * bin/autom4te.in (@Request::includes): Remove, unused.
21409 (@Request::source): Rename as...
21410 (@Request::input): this.
21411 (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
21412 (&handle_output): Fetch the patterns from the traces.
21413 `$forbidden' and `$allowed' are constant: use m//o.
21414 (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
21415 (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
21417 2001-08-04 Akim Demaille <akim@epita.fr>
21419 `autoconf && autoheader' is sped up. Now, speed up `autoheader &&
21420 autoconf', i.e., in addition to caching traces, cache the output.
21422 * bin/autom4te.in (Request::cache): Rename as...
21423 (Request::id): this.
21424 ($cache, $icache, $tcache, $ocache): New.
21425 (&handle_m4): Save M4 output in the cache instead of $tmp.
21426 (&handle_output): Adjust.
21427 (&up_to_date_p): Check that the output cache is up to date too.
21428 (top level): Run `&handle_m4' iff force or the cache is invalid.
21429 Run `&handle_output' if the output cache is more recent.
21431 2001-08-04 Akim Demaille <akim@epita.fr>
21433 * bin/autom4te.in ($force): New.
21434 (&parse_args, &print_usage): -f, --force is a new option.
21435 (&handle_output): CPP directives might have spaces after `#'.
21436 (&parse_args): The first file only can be frozen.
21438 2001-08-04 Akim Demaille <akim@epita.fr>
21440 Don't let autom4te compute the `include' traces several times:
21441 first check that the trace cache file is up to date, and then
21442 compare its timestamp with that of the output.
21444 * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
21445 the preamble. Don't require 5.005 as Autom4te::General does it,
21446 and better yet (use `use', not `require'!).
21447 * lib/Autom4te/Struct.pm: Rename the last occurrences of
21448 Class::Struct as Autom4te::Struct.
21449 * lib/Autom4te/General.pm (File::stat): Use it.
21450 (&mtime): New, export it.
21451 * bin/autom4te.in: Use it.
21452 Declare `$req' is invalid if it is outdated.
21453 Don't declare it valid before saving it if something went wrong.
21455 2001-08-04 Akim Demaille <akim@epita.fr>
21457 Autom4te shall not encode Autoconf data, and preselecting traces
21458 must be proposed to the users.
21460 * bin/autom4te.in (@required_trace): Remove.
21462 (&parse_args, &print_usage): -p, --preselect is a new option.
21463 (&up_to_date_p): Adjust.
21464 * bin/autoconf.in: Preselect some Autoconf macros.
21466 2001-08-04 Akim Demaille <akim@epita.fr>
21468 * tests/tools.at (autoconf --trace: user macros): Check traces on
21469 macros invoked without arguments, and macros invoked with multiple
21472 2001-08-03 Alexandre Duret-Lutz <duret_g@epita.fr>
21474 * bin/autom4te.in (handle_traces): Fix rewriting of traces without
21477 2001-08-03 Akim Demaille <akim@epita.fr>
21479 * bin/autoconf.in ($@): Work around the usual sh bug.
21482 2001-08-03 Akim Demaille <akim@epita.fr>
21484 Clean up the handling of the M4 builtins tracing exception.
21486 * bin/autom4te.in (Request::request): Don't complete M4 builtins
21488 (@m4_builtins): Rename as...
21489 (@m4_builtin): this.
21490 (%m4_builtin_alternate_name): New.
21491 (&parse_args): Complete the trace requests with alternate names.
21492 (&handle_traces): Hence no longer do it here.
21493 (&trace_requests): Remove, unused.
21495 2001-08-03 Akim Demaille <akim@epita.fr>
21497 * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
21498 m4_if, and m4_wrap.
21500 2001-08-03 Akim Demaille <akim@epita.fr>
21502 * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
21503 (m4_divert_pop): Dump the whole diversion stack when a diversion
21505 * bin/autom4te.in (&handle_output): Remember of the first
21506 occurrence of a possibly undefined macro, not the last.
21507 Complain about the possibly undefined macros in the same order as
21508 the appear in the output.
21509 * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
21510 * tests/tools.at (autoconf: forbidden tokens, basic)
21511 (autoconf: forbidden tokens, exceptions): No longer sort
21512 autoconf's stderr, as it is now deterministic.
21513 Check that `dnl' is caught.
21515 2001-08-01 Akim Demaille <akim@epita.fr>
21517 * configure.ac: Bump to 2.52c.
21519 2001-08-01 Akim Demaille <akim@epita.fr>
21523 * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
21525 2001-08-01 Akim Demaille <akim@epita.fr>
21529 2001-08-01 Akim Demaille <akim@epita.fr>
21531 * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
21534 * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
21535 `END', as `Autom4te::General::END' will be triggered.
21536 * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
21537 * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
21538 system to run `mv', `rm', and `cmp'.
21540 2001-08-01 Akim Demaille <akim@epita.fr>
21542 * lib/Autom4te/General.pm (&unique): New.
21543 * bin/autoscan.in (&output): Use it to issue trace requests once.
21545 2001-08-01 Akim Demaille <akim@epita.fr>
21547 * lib/Autom4te/General.pm: New.
21548 * bin/autom4te.in (Autom4te::General): Use it.
21549 ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
21550 (&find_configure_ac, &find_slave): Remove.
21551 * bin/autoscan.in: Likewise.
21552 * bin/autoupdate.in: Likewise.
21554 2001-08-01 Akim Demaille <akim@epita.fr>
21556 * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
21557 * autoheader.in, autoreconf.in, autoupdate.in: Move to...
21558 * bin: here, new directory.
21559 * lib/Autoconf: Rename as...
21560 * lib/Autom4te: this, to please case insensitive junkie OSes.
21562 2001-08-01 Akim Demaille <akim@epita.fr>
21564 * autom4te.in ($m4): Handle the --nesting-limit.
21565 * autoconf.in (M4): Remove.
21567 2001-08-01 Akim Demaille <akim@epita.fr>
21569 * autoconf.in ($AWK): Remove, no longer used.
21570 * test/tools.at: Use AT_CHECK_AUTOCONF.
21571 (AWK portability): Remove, for autoconf no longer uses AWK.
21572 (Syntax of the Perl scripts): New.
21573 * configure.ac: autoconf no longer needs an AWK with a good
21575 Use a static test on AC_PACKAGE_VERSION.
21576 * autom4te.in (&up_to_date_p): Output depends on the arguments.
21577 * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
21578 * tests/atconfig.in (PERL): New.
21580 2001-08-01 Akim Demaille <akim@epita.fr>
21582 * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
21583 (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
21584 (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
21585 (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
21586 (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
21587 (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
21588 (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
21589 (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
21590 (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
21591 (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
21592 (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
21593 (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
21594 (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
21595 * lib/autoconf/c.m4: here, new file.
21597 * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
21598 (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
21599 (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
21600 (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
21601 (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
21602 (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
21603 (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
21604 (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
21605 (AC_F77_FUNC): Move to...
21606 * lib/autoconf/fortran.m4: here, new file.
21608 2001-08-01 Akim Demaille <akim@epita.fr>
21610 * acfunctions.m4: Rename as...
21611 * lib/autoconf/functions.m4: this.
21612 * acgeneral.m4: Rename as...
21613 * lib/autoconf/general.m4: this.
21614 * acheaders.m4: Rename as...
21615 * lib/autoconf/headers.m4: this.
21616 * aclang.m4: Rename as...
21617 * lib/autoconf/lang.m4: this.
21618 * acoldnames.m4: Rename as...
21619 * lib/autoconf/oldnames.m4: this.
21620 * acspecific.m4: Rename as...
21621 * lib/autoconf/specific.m4: this.
21622 * actypes.m4: Rename as...
21623 * lib/autoconf/types.m4: this.
21624 * autoconf.m4: Rename as...
21625 * lib/autoconf/autoconf.m4: this.
21627 * m4sugar.m4: Rename as...
21628 * lib/m4sugar/m4sugar.m4: this.
21629 * m4sh.m4: Rename as...
21630 * lib/m4sugar/m4sh.m4: this.
21632 * tests/atgeneral.m4: Rename as...
21633 * lib/autotest/general.m4: this.
21635 * acfunctions: Rename as...
21636 * lib/autoscan/functions: this.
21637 * acheaders: Rename as...
21638 * lib/autoscan/headers: this.
21639 * acidentifiers: Rename as...
21640 * lib/autoscan/identifiers: this.
21641 * aclibraries: Rename as...
21642 * lib/autoscan/libraries: this.
21643 * acmakevars: Rename as...
21644 * lib/autoscan/makevars: this.
21645 * acprograms: Rename as...
21646 * lib/autoscan/programs: this.
21648 2001-08-01 Akim Demaille <akim@epita.fr>
21650 * doc/autoconf.texi: Moving/deleting open files is not portable.
21651 Portability issues for `.' (source), and more information about sed.
21653 2001-07-25 Steven G. Johnson <stevenj@alum.mit.edu>
21655 * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
21656 which has a special meaning and is not a reference to libibmil.a.
21657 Reported by Matteo Frigo.
21659 2001-07-25 Pavel Roskin <proski@gnu.org>
21661 * autom4te.in (mktmpdir): Strip trailing newline from mktemp
21664 2001-07-25 Akim Demaille <akim@epita.fr>
21666 * autoconf.in: Try to define the variables before using them.
21667 * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
21668 instead of `$perllibdir'.
21669 * tests/atconfig.in ($autom4te_perllibdir): Export it.
21671 2001-07-25 Akim Demaille <akim@epita.fr>
21673 * autoconf.in (ac_LF_and_DOT): Remove, unused.
21675 2001-07-24 Akim Demaille <akim@epita.fr>
21677 Let autoconf use autom4te for traces.
21679 * autoconf.in ($task, task trace): Remove, merely pass --trace to
21681 * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
21682 (Because I found no way for autom4te to accept `-').
21683 * autom4te.in (&Request::request): Beware of M4 builtins.
21684 (END): Don't try to remove the content of an empty dir.
21685 (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
21686 (&handle_output): Set a default value to `$forbidden'.
21687 * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
21688 ($autoconf): Pass --debug and --verbose.
21689 * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
21692 2001-07-24 Akim Demaille <akim@epita.fr>
21694 Let autoconf use autom4te to create configure.
21696 * autoconf.in ($automate): New var.
21697 (task script): Use autom4te.
21698 * autom4te.in (File::Spec): Use it.
21700 (&parse_args): --warning is -W, not -w.
21701 Find the top level files.
21702 (&handle_m4): Pass the warnings flags.
21703 Don't report verbosely m4's failures, unless requested.
21704 (&handle_output): Don't complain for forbidden tokens in comments.
21705 Be sure to report all the forbidden tokens within a single line.
21706 (&trace_format_to_m4): Preserve `$_'.
21707 (&handle_traces): Sort the output macros.
21708 (&up_to_date_p): Find the files before trying to get its time stamp.
21710 2001-07-24 Akim Demaille <akim@epita.fr>
21712 * Makefile.am: Ship, build and install Autom4te.
21713 (SUBDIRS): Add lib.
21714 * lib/Autoconf/Struct.pm: New, from Automake 1.5.
21715 * configure.in: Require Perl.
21716 * man/autom4te.in: New.
21718 2001-07-19 Paul Eggert <eggert@twinsun.com>
21720 * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
21721 example, rather than (exit 1); exit (which isn't portable).
21723 2001-07-18 Akim Demaille <akim@epita.fr>
21727 2001-07-18 Akim Demaille <akim@epita.fr>
21729 The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
21730 was run, while they are needed also when it is expanded.
21731 Reported by Nicolas Joly.
21733 * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
21734 (AC_LANG_PROGRAM(C)): Use it instead of depending upon
21735 AC_F77_DUMMY_MAIN being expanded.
21737 2001-07-18 Akim Demaille <akim@epita.fr>
21739 * configure.in: Bump to 2.51a.
21741 2001-07-17 Akim Demaille <akim@epita.fr>
21745 2001-07-17 Akim Demaille <akim@epita.fr>
21747 * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
21748 Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
21750 2001-07-17 Akim Demaille <akim@epita.fr>
21752 The runtime test for AC_FUNC_GETPGRP fails when prototypes are
21753 used. Well, then use the prototypes when you can, and runtime as
21755 Reported by Artur Frysiak
21757 * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
21758 (AC_FUNC_GETPGRP): Use it.
21759 First try to compile with 0-ary or 1-ary calls.
21761 2001-07-17 Akim Demaille <akim@epita.fr>
21763 * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
21767 2001-07-17 Akim Demaille <akim@epita.fr>
21769 * Makefile.maint: Sync. with cppi 1.10.
21771 2001-07-17 Akim Demaille <akim@epita.fr>
21773 * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
21774 AC_F77_DUMMY_MAIN has been run.
21775 From Pavel Roskin and Steven G. Johnson.
21777 2001-07-17 Akim Demaille <akim@epita.fr>
21779 * configure.in: Rename as...
21780 * configure.ac: this.
21782 2001-07-17 Akim Demaille <akim@epita.fr>
21784 * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
21787 * Makefile.maint (release-archive-dir): Rename as...
21788 (release_archive_dir): this, so that it can be specialized in
21791 2001-07-14 Akim Demaille <akim@epita.fr>
21793 * configure.in: Bump to 2.50d.
21795 2001-07-14 Akim Demaille <akim@epita.fr>
21798 * Makefile.maint (alpha): Typo.
21800 2001-07-14 Akim Demaille <akim@epita.fr>
21802 * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
21804 2001-07-14 Akim Demaille <akim@epita.fr>
21806 * config/config.guess, config/config.sub, config/texinfo.tex
21807 * doc/standards.texi, doc/make-stds.texi: Update.
21809 2001-07-14 Akim Demaille <akim@epita.fr>
21811 * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
21813 2001-07-14 Akim Demaille <akim@epita.fr>
21815 * Makefile.maint (maintainer-check): Rename as...
21816 (maintainer-distcheck): this.
21817 (changelog-check, static-check): New.
21820 2001-07-14 Kevin Ryde <user42@zip.com.au>
21822 * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
21823 for CXX is g++, not gcc.
21825 2001-07-14 Akim Demaille <akim@epita.fr>
21827 * doc/autoconf.texi (Files): New subsection.
21829 2001-07-14 Akim Demaille <akim@epita.fr>
21831 * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
21833 (Generic Compiler Characteristics): this.
21834 (C++ Compiler): New subsection.
21836 2001-07-14 Akim Demaille <akim@epita.fr>
21838 * autoscan.in: Use IO::File.
21839 Adjust all the routines to use it.
21840 ($log): New file (autoscan.log).
21841 (output): Dump detailed logs into $log, and a shortened version to
21843 (&scan_makefile): Refine the regexp catching tokens in the code.
21844 * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
21845 and the `configure.ac' checking feature.
21847 2001-07-12 Akim Demaille <akim@epita.fr>
21849 For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
21850 Reported by Michael Elizabeth Chastain.
21852 * autoconf.in: Refuse such AWK.
21853 * configure.in: Likewise.
21854 * Makefile.am (acversion.m4): Do not use move-if-change this file
21856 * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
21858 2001-07-10 Jens Petersen <petersen@redhat.com>
21860 * autoscan.in (&scan_makefile): Improve programs regexp to parse
21861 things like "g++", "file.c" and "some-conf" as tokens.
21862 (&scan_file): Match C++ files extensions.
21863 If the filename extension is C++ then ask for c++.
21865 2001-07-05 Steven G. Johnson <stevenj@alum.mit.edu>
21867 * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
21868 AC_TRY_LINK_FUNC, to check whether defining a dummy
21869 main-like routine is needed for linking with F77 libs.
21871 2001-07-05 Pavel Roskin <proski@gnu.org>
21873 * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
21875 (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
21878 2001-07-05 Akim Demaille <akim@epita.fr>
21880 * Makefile.am (move_if_change): New. Use it instead of `mv'.
21881 (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
21883 Reported by Nicolas Joly.
21885 2001-07-04 Akim Demaille <akim@epita.fr>
21887 * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
21889 * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
21890 warnings from compilers.
21891 * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
21892 for all the compilers, not only GNU. Hence move from here...
21893 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
21895 2001-07-04 Akim Demaille <akim@epita.fr>
21897 * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
21898 (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
21901 2001-07-04 Akim Demaille <akim@epita.fr>
21903 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
21904 the ``strings.h'' change claimed below.
21906 2001-07-04 Akim Demaille <akim@epita.fr>
21908 * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
21910 2001-07-04 Akim Demaille <akim@epita.fr>
21912 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
21913 strings.h if usable with string.h.
21914 Suggested by Paul Eggert.
21916 2001-07-04 Akim Demaille <akim@epita.fr>
21918 * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
21919 From Jens Petersen.
21921 2001-07-03 Akim Demaille <akim@epita.fr>
21923 * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
21926 2001-07-03 Akim Demaille <akim@epita.fr>
21928 * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
21929 compiler, not the preprocessor.
21930 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
21931 dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
21933 * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
21934 earlier if there are.
21936 2001-07-03 Akim Demaille <akim@epita.fr>
21938 * autoscan.in ($initfile): Remove.
21939 (&find_file): Rename as...
21940 (&scan_file): this.
21941 Immediately scan the current file, instead of gathering them, and
21942 later having them handled by &scan_files.
21943 (&scan_files): Merely invoke Find::File.
21946 2001-07-02 Akim Demaille <akim@epita.fr>
21948 * autoscan.in: Formatting changes, matching the invocation order.
21949 (File::Find): Use it instead of Perl 4's `find.pl'.
21950 (&wanted): Rename as...
21951 (&find_file): this.
21953 2001-07-01 Pavel Roskin <proski@gnu.org>
21955 * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
21956 break in the argument to AC_TRY_LINK_FUNC.
21957 (AC_F77_MAIN): Remove conftest* after using break in the
21958 argument to AC_TRY_LINK.
21960 2001-07-01 Steven G. Johnson <stevenj@alum.mit.edu>
21962 Add alternate 'main' routine detection for linking C/C++ with Fortran,
21963 fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
21965 * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
21966 dummy alternate main is required even if the user provides her own
21968 (AC_F77_MAIN): New macro to detect whether it is possible to
21969 provide an alternate 'main' function name, using the 'main' from
21970 the Fortran libraries.
21971 (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
21972 cross-language link tests can be performed successfully.
21973 (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN. Also put $FLIBS
21974 after $LIBS, for consistency; this should be the general rule since
21975 the user may want to link to Fortran libraries that require $FLIBS.
21976 * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
21978 2001-06-29 Pavel Roskin <proski@gnu.org>
21980 * atgeneral.m4 (AT_CHECK): Add a newline to the end of
21981 at-stdout and at-stderr instead of removing the newline
21982 from the echo output, which is not guaranteed to work.
21984 2001-06-28 Jens Petersen <petersen@redhat.com>
21986 * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
21987 confdefs.h when non-zero.
21989 2001-06-28 Akim Demaille <akim@epita.fr>
21991 * configure.in: Bump to 2.50c.
21993 2001-06-26 Akim Demaille <akim@epita.fr>
21997 2001-06-26 Akim Demaille <akim@epita.fr>
22001 2001-06-25 Pavel Roskin <proski@gnu.org>
22003 * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
22004 argument, AUTOCONF-FLAGS.
22005 * tests/mktests.sh (update_exclude_list): Add
22006 AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
22007 * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
22008 AC_FUNC_WAIT3 with "-W no-obsolete".
22010 2001-06-25 Akim Demaille <akim@epita.fr>
22012 * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
22014 2001-06-25 Akim Demaille <akim@epita.fr>
22016 * autoscan.in (%macro): Now maps from word to list of macros.
22017 (&init_tables): Die when a word which is already handled by
22018 explicit macros is mapped to the default macro.
22019 (&print_unique): Remove, inlined in...
22020 (&output_kind): here.
22021 (File::Basename): Use it.
22022 (&output): Sort the CONFIG_FILES.
22023 * acheaders: Normalize.
22024 * acfunctions: Likewise.
22026 2001-06-25 Akim Demaille <akim@epita.fr>
22028 * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
22029 characteristics in the logs.
22030 Suggested by Mo DeJong.
22032 2001-06-24 Akim Demaille <akim@epita.fr>
22034 * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
22035 (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
22036 * doc/autoconf.texi (Autoconf 2.13): New section.
22038 2001-06-24 Akim Demaille <akim@epita.fr>
22040 * autoconf.in (Task traces): Separate the error messages from the
22041 traces to improve robustness.
22043 2001-06-23 Akim Demaille <akim@epita.fr>
22045 * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
22046 three as failures are unlikely, and speed matters.
22048 2001-06-23 Akim Demaille <akim@epita.fr>
22050 * doc/autoconf.texi (Redefined M4 Macros): New.
22052 2001-06-23 Akim Demaille <akim@epita.fr>
22054 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
22055 inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
22058 2001-06-23 Paolo Bonzini <bonzini@gnu.org>
22060 * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
22061 config.status targets to after the evaluation of the INIT-CMDS.
22062 Double quote config.status targets (used to be single quoted).
22064 2001-06-23 Akim Demaille <akim@epita.fr>
22066 * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
22067 Check the content of the created file.
22068 Check the ./config.status command line invocation.
22070 2001-06-23 Akim Demaille <akim@epita.fr>
22072 * tests/foreign.at (Libtool): Reject prehistoric versions.
22074 2001-06-23 Akim Demaille <akim@epita.fr>
22076 * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
22077 preexisting files matching a.*.
22079 2001-06-23 Akim Demaille <akim@epita.fr>
22081 * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
22083 * doc/autoconf.texi (AC_ARG_VAR): Update.
22085 2001-06-21 Akim Demaille <akim@epita.fr>
22087 * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
22088 precious variables have changed.
22089 * tests/torture.at (AC_ARG_VAR): Adjust.
22091 2001-06-21 Akim Demaille <akim@epita.fr>
22093 ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
22094 but some sed choke on multiple `;', and other tools (e.g.,
22095 Automake), include the separator themselves.
22097 * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
22099 2001-06-19 Tim Van Holder <tim.van.holder@pandora.be>
22101 * doc/autoconf.texi (Functions Portability): Rename as...
22102 (Function Portability): this.
22103 (Function Portability): Document potential problems with unlink().
22105 2001-06-19 Paul Eggert <eggert@twinsun.com>
22107 * NEWS, doc/autoconf.texi: Document quadrigraphs.
22109 2001-06-18 Akim Demaille <akim@epita.fr>
22111 * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
22113 2001-06-18 Ruediger Kuhlmann <info@ruediger-kuhlmann.de>
22115 * acfunctions.m4: (AC_FUNC_VFORK) rename as...
22116 (_AC_FUNC_VFORK): this.
22117 Remove AC_DEFINEs and don't guess cross-compilation values.
22118 (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
22119 (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
22120 define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
22121 vfork doesn't work.
22122 Guess values if cross-compiling, but warn.
22123 * acfunctions: Add AC_FUNC_FORK.
22124 * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
22125 and vfork appropriately.
22127 2001-06-18 Akim Demaille <akim@epita.fr>
22129 * doc/autoconf.texi (Functions Portability): New section.
22131 2001-06-18 Akim Demaille <akim@epita.fr>
22133 * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
22135 Suggested by Andreas Schwab.
22137 2001-06-18 Akim Demaille <akim@epita.fr>
22139 * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
22140 (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
22141 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
22142 (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
22143 Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
22144 and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
22145 (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
22148 2001-06-18 Akim Demaille <akim@epita.fr>
22150 * doc/autoconf.texi (ms): New index.
22151 (Macro Index): Rename as...
22152 (Autoconf Macro Index): this.
22153 (M4 Macro Index): New appendix.
22154 (Programming in M4): New chapter.
22155 Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
22156 (Quoting): Rename as...
22157 (M$ Quotation): this.
22158 Be part of `Programming in M4).
22160 2001-06-18 Nicolas Joly <njoly@pasteur.fr>
22162 * tests/torture.at (AC_ARG_VAR): Set variables and export them
22163 in separate statements for compatibility with Tru64 v5.1.
22165 2001-06-17 Akim Demaille <akim@epita.fr>
22167 * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
22168 current values of the precious variables, not the previously
22170 Pass precious variables which are set to config.status.
22171 * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
22172 * tests/torture.at (AC_ARG_VAR): New.
22174 2001-06-15 Paul Eggert <eggert@twinsun.com>
22176 * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
22177 AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
22178 and explain why and how to replace them.
22179 * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
22180 * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
22182 2001-06-15 Akim Demaille <akim@epita.fr>
22184 `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
22185 Reported by Bruno Haible.
22187 * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
22188 (_AC_ARG_VAR_PRECIOUS): to here.
22190 2001-06-15 Pavel Roskin <proski@gnu.org>
22192 * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
22193 an unused pointer use cast to this type and `if' statement to
22194 avoid warnings from the compiler.
22195 (AC_HEADER_TIME): Likewise.
22196 * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
22197 in `if' statement to avoid warnings from the compiler. Declare
22198 ac_aggr static to avoid the need to initialize it.
22200 2001-06-14 Akim Demaille <akim@epita.fr>
22202 * doc/autoconf.texi (Portable Shell): Move to follow `Writing
22205 2001-06-13 Akim Demaille <akim@epita.fr>
22207 * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
22208 Suggested by Alexander Mai.
22210 2001-06-13 Akim Demaille <akim@epita.fr>
22212 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
22213 sys/types.h and sys/stat.h, and check for them.
22215 2001-06-13 Akim Demaille <akim@epita.fr>
22217 * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
22220 2001-06-12 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
22222 * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
22223 succeeds and only try adding libdnet upon a failure.
22225 2001-06-12 Akim Demaille <akim@epita.fr>
22227 * autoscan.in (&output_kind): Output the comment only if it exists.
22228 (%kind_comment): Add entry for `programs'.
22229 (&output_programs): Use &output_kind.
22230 (&output_functions, &output_identifiers, &output_headers)
22231 (&output_programs): Inline, and remove.
22233 2001-06-12 Akim Demaille <akim@epita.fr>
22235 * autoscan.in (%kind_comment): New.
22236 (output_kind): New.
22237 (output_functions, output_identifiers, output_headers): Use it.
22239 2001-06-12 Akim Demaille <akim@epita.fr>
22241 * autoscan.in (&print_unique): Take `$kind' and `$word' as
22242 arguments, to factor indirections into `%macro' and `%used'.
22243 (%generic_macro): Fix a typo.
22245 2001-06-12 Akim Demaille <akim@epita.fr>
22247 * aclibraries: New.
22248 * autoscan.in (@kinds): Add `libraries'.
22249 Use `@kinds' instead of hard coded lists.
22250 (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
22251 Remove, replaced by...
22254 2001-06-12 Akim Demaille <akim@epita.fr>
22256 * autoscan.in (%functions_macros %headers_macros)
22257 (%identifiers_macros %programs_macros %makevars_macros): Remove,
22261 2001-06-11 Raja R Harinath <harinath@cs.umn.edu>
22263 * aclang.m4 (AC_NO_EXECUTABLES): Override
22264 _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
22266 2001-06-11 Akim Demaille <akim@epita.fr>
22268 * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
22270 Reported by Andreas Schwab.
22272 2001-06-11 Akim Demaille <akim@epita.fr>
22274 * Makefile.am, Makefile.maint: Typos.
22276 2001-06-09 Akim Demaille <akim@epita.fr>
22278 * doc/autoconf.texi (Here-Documents): New section, gathering
22279 documentation about here-documents.
22280 Use `href', not `uref', and other changes.
22282 2001-06-09 Akim Demaille <akim@epita.fr>
22284 * doc/autoconf.texi (Portable Shell Programming): Promoted as a
22287 2001-06-09 Akim Demaille <akim@epita.fr>
22289 * doc/autoconf.texi (Limitations of Builtins): Complete the
22290 description of the here-docs penalties with Alexandre Oliva's
22293 2001-06-01 Paul Eggert <eggert@twinsun.com>
22295 * doc/autoconf.texi: Talk about here documents and speedups.
22296 Do not use "echo" on arbitrary strings.
22297 Spell "here-documents" consistently with the standard.
22299 2001-06-09 Akim Demaille <akim@epita.fr>
22301 * doc/autoconf.texi (Concept Index): Introduce it.
22302 Regenerate the menus.
22304 2001-06-09 Akim Demaille <akim@epita.fr>
22306 * Makefile.maint, GNUmakefile: New, from Jim Meyering.
22307 * config/prev-version.txt: New.
22308 * config/move-if-change: New, for GNU libc.
22310 2001-06-06 Pavel Roskin <proski@gnu.org>
22312 * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
22314 2001-06-06 Akim Demaille <akim@epita.fr>
22316 * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
22317 properly when $1 is not a literal.
22318 Fixes PR Autoconf/187, reported by Bram Moolenaar.
22320 2001-06-06 Akim Demaille <akim@epita.fr>
22322 Invoking AC_COPYRIGHT before AC_INIT fails.
22324 * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
22325 * acgeneral.m4 (_m4_divert(VERSION_FSF))
22326 (_m4_divert(VERSION_USER)): New.
22327 (AC_COPYRIGHT): $2 is the diversion to use.
22328 (_AC_INIT_COPYRIGHT): Use the FSF diversion.
22329 (AC_INIT): Remove dead comments as now it's commutative.
22331 2001-06-06 Akim Demaille <akim@epita.fr>
22333 * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
22336 2001-06-05 Akim Demaille <akim@epita.fr>
22338 * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
22340 `*dir' variables cannot be NONE.
22341 Reported by Mark Kettenis.
22343 2001-06-05 Paul Eggert <eggert@twinsun.com>
22345 * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
22347 2001-06-04 Akim Demaille <akim@epita.fr>
22349 * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
22350 (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
22351 (AC_TR_SH): Move as...
22352 * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
22353 (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
22355 (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
22356 (_AS_TR_SH_PREPARE): New.
22357 (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
22358 * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
22360 2001-06-02 Akim Demaille <akim@epita.fr>
22362 * Makefile.am (.m4.m4f): Pass the options first.
22363 Fixes PR autoconf/182.
22365 2001-06-02 Nathan Sidwell <nathan@codesourcery.com>
22367 GNU getopt, when POSIXLY_CORRECT does not permute options and
22368 arguments. So pass the options first.
22369 Fixes PR autoconf/184.
22371 * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
22372 (run_m4): Remove files.
22374 Update remainder of script to use them.
22375 (for warning in): Do not use a literal comma as it will not be
22378 2001-06-02 Christian Marquardt <marq@gfz-potsdam.de>
22380 * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
22381 Fortran compilers to check.
22382 (_AC_PROG_F77_V): Add '-###' as a possible option to print
22383 information on library and object files.
22384 (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
22387 2001-06-02 Akim Demaille <akim@epita.fr>
22389 * autom4te.in (Request::@request): Declare with `vars', not `my',
22390 as it prevents updates via `do FILENAME'.
22392 2001-06-02 Akim Demaille <akim@epita.fr>
22394 * configure.in (standards_texi): Remove, dead code.
22396 2001-06-02 Akim Demaille <akim@epita.fr>
22398 * autom4te.in: New.
22400 2001-06-02 Pavel Roskin <proski@gnu.org>
22402 * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
22403 for signals other than 0 - exit with code 1.
22404 * m4sh.m4 (AS_TMPDIR): Likewise.
22405 * autoconf.in: Likewise. Also don't rely on exit == exit $?.
22406 * autoheader.in: Likewise.
22407 * autoreconf.in: Likewise.
22408 * tests/torture.at (Signal handling): New test for the above.
22410 2001-06-01 Akim Demaille <akim@epita.fr>
22412 * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
22415 2001-05-31 Akim Demaille <akim@epita.fr>
22417 * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
22418 Add copyright and comments.
22419 * acheaders: Add stdint.h.
22420 Suggested by Paul Eggert.
22422 2001-05-31 Akim Demaille <akim@epita.fr>
22424 * atgeneral.m4 (AT_INIT): Use $SHELL.
22425 * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
22427 2001-05-31 Akim Demaille <akim@epita.fr>
22429 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
22431 From Paul Eggert and Lars Hecking.
22433 2001-05-31 Akim Demaille <akim@epita.fr>
22435 * tests/base.at: Adjust line numbers in error messages.
22437 2001-05-31 Akim Demaille <akim@epita.fr>
22439 * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
22440 to emit the bangshe line.
22441 Reported by David Carter.
22443 2001-05-30 Steven G. Johnson <stevenj@alum.mit.edu>
22445 * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
22446 Fortran (95) compilers to check.
22448 2001-05-29 Alexandre Duret-Lutz <duret_g@epita.fr>
22450 * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
22453 2001-05-23 Pavel Roskin <proski@gnu.org>
22455 * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
22456 _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
22457 (AC_PROG_CXXCPP): Likewise.
22459 2001-05-22 Akim Demaille <akim@epita.fr>
22461 * config: New directory.
22462 * configure.in: AC_CONFIG_AUX_DIR it.
22463 * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
22465 2001-05-22 Akim Demaille <akim@epita.fr>
22467 * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
22468 * autoupdate.in: Specify the Emacs mode.
22469 * acversion.m4.in: Rename as...
22470 * acversion.m4: this.
22471 * tests/Makefile.am (CLEANFILES): More garbage.
22473 2001-05-22 Akim Demaille <akim@epita.fr>
22475 * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
22477 * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
22480 2001-05-21 Akim Demaille <akim@epita.fr>
22482 * configure.in: Bump to 2.50a.
22491 Copyright (C) 2001-2011 Free Software Foundation, Inc.
22493 This program is free software: you can redistribute it and/or
22494 modify it under the terms of the GNU General Public License as
22495 published by the Free Software Foundation, either version 3 of the
22496 License, or (at your option) any later version.
22498 This program is distributed in the hope that it will be useful,
22499 but WITHOUT ANY WARRANTY; without even the implied warranty of
22500 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22501 General Public License for more details.
22503 You should have received a copy of the GNU General Public License
22504 along with this program. If not, see
22505 <http://www.gnu.org/licenses/>.